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 --enable-shared build shared libraries [default=no]
16 --enable-shared=PKGS only build shared libraries if the current package
17 appears as an element in the PKGS list"
19 --enable-static build static libraries [default=yes]
20 --enable-static=PKGS only build shared libraries if the current package
21 appears as an element in the PKGS list"
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 # Initialize some variables set by options.
26 # The variables have the same names as the options, with
27 # dashes changed to underlines.
29 cache_file=./config.cache
38 program_transform_name=s,x,x,
46 bindir='${exec_prefix}/bin'
47 sbindir='${exec_prefix}/sbin'
48 libexecdir='${exec_prefix}/libexec'
49 datadir='${prefix}/share'
50 sysconfdir='${prefix}/etc'
51 sharedstatedir='${prefix}/com'
52 localstatedir='${prefix}/var'
53 libdir='${exec_prefix}/lib'
54 includedir='${prefix}/include'
55 oldincludedir='/usr/include'
56 infodir='${prefix}/info'
57 mandir='${prefix}/man'
59 # Initialize some other variables.
62 # Maximum number of lines to put in a shell here document.
69 # If the previous option needs an argument, assign it.
70 if test -n "$ac_prev"; then
71 eval "$ac_prev=\$ac_option"
77 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
81 # Accept the important Cygnus configure options, so we can diagnose typos.
85 -bindir | --bindir | --bindi | --bind | --bin | --bi)
87 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
88 bindir="$ac_optarg" ;;
90 -build | --build | --buil | --bui | --bu)
92 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
95 -cache-file | --cache-file | --cache-fil | --cache-fi \
96 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
98 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
99 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
100 cache_file="$ac_optarg" ;;
102 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
104 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
106 datadir="$ac_optarg" ;;
108 -disable-* | --disable-*)
109 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
110 # Reject names that are not valid shell variable names.
111 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115 eval "enable_${ac_feature}=no" ;;
117 -enable-* | --enable-*)
118 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}='$ac_optarg'" ;;
130 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
131 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
132 | --exec | --exe | --ex)
133 ac_prev=exec_prefix ;;
134 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
135 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
136 | --exec=* | --exe=* | --ex=*)
137 exec_prefix="$ac_optarg" ;;
139 -gas | --gas | --ga | --g)
140 # Obsolete; use --with-gas.
143 -help | --help | --hel | --he)
144 # Omit some internal or obsolete options to make the list less imposing.
145 # This message is too long to be a string in the A/UX 3.1 sh.
147 Usage: configure [options] [host]
148 Options: [defaults in brackets after descriptions]
150 --cache-file=FILE cache test results in FILE
151 --help print this message
152 --no-create do not create output files
153 --quiet, --silent do not print \`checking...' messages
154 --version print the version of autoconf that created configure
155 Directory and file names:
156 --prefix=PREFIX install architecture-independent files in PREFIX
158 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
160 --bindir=DIR user executables in DIR [EPREFIX/bin]
161 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
162 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
163 --datadir=DIR read-only architecture-independent data in DIR
165 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
166 --sharedstatedir=DIR modifiable architecture-independent data in DIR
168 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
169 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
170 --includedir=DIR C header files in DIR [PREFIX/include]
171 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
172 --infodir=DIR info documentation in DIR [PREFIX/info]
173 --mandir=DIR man documentation in DIR [PREFIX/man]
174 --srcdir=DIR find the sources in DIR [configure dir or ..]
175 --program-prefix=PREFIX prepend PREFIX to installed program names
176 --program-suffix=SUFFIX append SUFFIX to installed program names
177 --program-transform-name=PROGRAM
178 run sed PROGRAM on installed program names
182 --build=BUILD configure for building on BUILD [BUILD=HOST]
183 --host=HOST configure for HOST [guessed]
184 --target=TARGET configure for TARGET [TARGET=HOST]
185 Features and packages:
186 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
187 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
188 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
189 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
190 --x-includes=DIR X include files are in DIR
191 --x-libraries=DIR X library files are in DIR
193 if test -n "$ac_help"; then
194 echo "--enable and --with options recognized:$ac_help"
198 -host | --host | --hos | --ho)
200 -host=* | --host=* | --hos=* | --ho=*)
203 -includedir | --includedir | --includedi | --included | --include \
204 | --includ | --inclu | --incl | --inc)
205 ac_prev=includedir ;;
206 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
207 | --includ=* | --inclu=* | --incl=* | --inc=*)
208 includedir="$ac_optarg" ;;
210 -infodir | --infodir | --infodi | --infod | --info | --inf)
212 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
213 infodir="$ac_optarg" ;;
215 -libdir | --libdir | --libdi | --libd)
217 -libdir=* | --libdir=* | --libdi=* | --libd=*)
218 libdir="$ac_optarg" ;;
220 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
221 | --libexe | --libex | --libe)
222 ac_prev=libexecdir ;;
223 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
224 | --libexe=* | --libex=* | --libe=*)
225 libexecdir="$ac_optarg" ;;
227 -localstatedir | --localstatedir | --localstatedi | --localstated \
228 | --localstate | --localstat | --localsta | --localst \
229 | --locals | --local | --loca | --loc | --lo)
230 ac_prev=localstatedir ;;
231 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
232 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
233 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
234 localstatedir="$ac_optarg" ;;
236 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
238 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
239 mandir="$ac_optarg" ;;
242 # Obsolete; use --without-fp.
245 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
249 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
250 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
253 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
254 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
255 | --oldin | --oldi | --old | --ol | --o)
256 ac_prev=oldincludedir ;;
257 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
258 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
259 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
260 oldincludedir="$ac_optarg" ;;
262 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
264 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
265 prefix="$ac_optarg" ;;
267 -program-prefix | --program-prefix | --program-prefi | --program-pref \
268 | --program-pre | --program-pr | --program-p)
269 ac_prev=program_prefix ;;
270 -program-prefix=* | --program-prefix=* | --program-prefi=* \
271 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
272 program_prefix="$ac_optarg" ;;
274 -program-suffix | --program-suffix | --program-suffi | --program-suff \
275 | --program-suf | --program-su | --program-s)
276 ac_prev=program_suffix ;;
277 -program-suffix=* | --program-suffix=* | --program-suffi=* \
278 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
279 program_suffix="$ac_optarg" ;;
281 -program-transform-name | --program-transform-name \
282 | --program-transform-nam | --program-transform-na \
283 | --program-transform-n | --program-transform- \
284 | --program-transform | --program-transfor \
285 | --program-transfo | --program-transf \
286 | --program-trans | --program-tran \
287 | --progr-tra | --program-tr | --program-t)
288 ac_prev=program_transform_name ;;
289 -program-transform-name=* | --program-transform-name=* \
290 | --program-transform-nam=* | --program-transform-na=* \
291 | --program-transform-n=* | --program-transform-=* \
292 | --program-transform=* | --program-transfor=* \
293 | --program-transfo=* | --program-transf=* \
294 | --program-trans=* | --program-tran=* \
295 | --progr-tra=* | --program-tr=* | --program-t=*)
296 program_transform_name="$ac_optarg" ;;
298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
299 | -silent | --silent | --silen | --sile | --sil)
302 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
304 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
306 sbindir="$ac_optarg" ;;
308 -sharedstatedir | --sharedstatedir | --sharedstatedi \
309 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
310 | --sharedst | --shareds | --shared | --share | --shar \
312 ac_prev=sharedstatedir ;;
313 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
314 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
315 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
317 sharedstatedir="$ac_optarg" ;;
319 -site | --site | --sit)
321 -site=* | --site=* | --sit=*)
324 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
326 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
327 srcdir="$ac_optarg" ;;
329 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
330 | --syscon | --sysco | --sysc | --sys | --sy)
331 ac_prev=sysconfdir ;;
332 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
333 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
334 sysconfdir="$ac_optarg" ;;
336 -target | --target | --targe | --targ | --tar | --ta | --t)
338 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
339 target="$ac_optarg" ;;
341 -v | -verbose | --verbose | --verbos | --verbo | --verb)
344 -version | --version | --versio | --versi | --vers)
345 echo "configure generated by autoconf version 2.12"
349 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
350 # Reject names that are not valid shell variable names.
351 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
352 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
354 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 eval "with_${ac_package}='$ac_optarg'" ;;
361 -without-* | --without-*)
362 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 ac_package=`echo $ac_package| sed 's/-/_/g'`
368 eval "with_${ac_package}=no" ;;
371 # Obsolete; use --with-x.
374 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
375 | --x-incl | --x-inc | --x-in | --x-i)
376 ac_prev=x_includes ;;
377 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
378 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
379 x_includes="$ac_optarg" ;;
381 -x-libraries | --x-libraries | --x-librarie | --x-librari \
382 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
383 ac_prev=x_libraries ;;
384 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
385 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
386 x_libraries="$ac_optarg" ;;
388 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
392 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
393 echo "configure: warning: $ac_option: invalid host type" 1>&2
395 if test "x$nonopt" != xNONE; then
396 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
404 if test -n "$ac_prev"; then
405 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
408 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
410 # File descriptor usage:
413 # 2 errors and warnings
414 # 3 some systems may open it to /dev/tty
415 # 4 used on the Kubota Titan
416 # 6 checking for... messages and results
417 # 5 compiler messages saved in config.log
418 if test "$silent" = yes; then
426 This file contains any messages produced by compilers while
427 running configure, to aid debugging if configure makes a mistake.
430 # Strip out --no-create and --no-recursion so they do not pile up.
431 # Also quote any args containing shell metacharacters.
436 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
437 | --no-cr | --no-c) ;;
438 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
439 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
441 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
442 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
447 # Only set these to C if already set. These must not be set unconditionally
448 # because not all systems understand e.g. LANG=C (notably SCO).
449 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
450 # Non-C LC_CTYPE values break the ctype check.
451 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
452 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
453 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
454 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
457 rm -rf conftest* confdefs.h
458 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
461 # A filename unique to this package, relative to the directory that
462 # configure is in, which we can look for to find out if srcdir is correct.
463 ac_unique_file=choleski.cc
465 # Find the source files, if location was not specified.
466 if test -z "$srcdir"; then
467 ac_srcdir_defaulted=yes
468 # Try the directory containing this script, then its parent.
470 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
471 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
473 if test ! -r $srcdir/$ac_unique_file; then
477 ac_srcdir_defaulted=no
479 if test ! -r $srcdir/$ac_unique_file; then
480 if test "$ac_srcdir_defaulted" = yes; then
481 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
483 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
486 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
488 # Prefer explicitly selected file to automatically selected ones.
489 if test -z "$CONFIG_SITE"; then
490 if test "x$prefix" != xNONE; then
491 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
493 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
496 for ac_site_file in $CONFIG_SITE; do
497 if test -r "$ac_site_file"; then
498 echo "loading site script $ac_site_file"
503 if test -r "$cache_file"; then
504 echo "loading cache $cache_file"
507 echo "creating cache $cache_file"
512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
513 ac_cpp='$CPP $CPPFLAGS'
514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
515 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
516 cross_compiling=$ac_cv_prog_cc_cross
518 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
519 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
520 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
527 ac_n= ac_c='\c' ac_t=
533 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
534 if test x$MY_PATCH_LEVEL != x; then
535 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
538 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
539 if test -f $ac_dir/install-sh; then
541 ac_install_sh="$ac_aux_dir/install-sh -c"
543 elif test -f $ac_dir/install.sh; then
545 ac_install_sh="$ac_aux_dir/install.sh -c"
549 if test -z "$ac_aux_dir"; then
550 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
552 ac_config_guess=$ac_aux_dir/config.guess
553 ac_config_sub=$ac_aux_dir/config.sub
554 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
556 # Find a good install program. We prefer a C program (faster),
557 # so one script is as good as another. But avoid the broken or
558 # incompatible versions:
559 # SysV /etc/install, /usr/sbin/install
560 # SunOS /usr/etc/install
563 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
564 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
565 # ./install, which can be erroneously created by make from ./install.sh.
566 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
567 echo "configure:568: checking for a BSD compatible install" >&5
568 if test -z "$INSTALL"; then
569 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
570 echo $ac_n "(cached) $ac_c" 1>&6
572 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
573 for ac_dir in $PATH; do
574 # Account for people who put trailing slashes in PATH elements.
576 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
578 # OSF1 and SCO ODT 3.0 have their own names for install.
579 for ac_prog in ginstall installbsd scoinst install; do
580 if test -f $ac_dir/$ac_prog; then
581 if test $ac_prog = install &&
582 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
583 # AIX install. It has an incompatible calling convention.
584 # OSF/1 installbsd also uses dspmsg, but is usable.
587 ac_cv_path_install="$ac_dir/$ac_prog -c"
598 if test "${ac_cv_path_install+set}" = set; then
599 INSTALL="$ac_cv_path_install"
601 # As a last resort, use the slow shell script. We don't cache a
602 # path for INSTALL within a source directory, because that will
603 # break other packages using the cache if that directory is
604 # removed, or if the path is relative.
605 INSTALL="$ac_install_sh"
608 echo "$ac_t""$INSTALL" 1>&6
610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
611 # It thinks the first close brace ends the variable substitution.
612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
614 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
617 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
619 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
620 echo "configure:621: checking whether build environment is sane" >&5
623 echo timestamp > conftestfile
624 # Do `set' in a subshell so we don't clobber the current shell's
625 # arguments. Must try -L first in case configure is actually a
626 # symlink; some systems play weird games with the mod time of symlinks
627 # (eg FreeBSD returns the mod time of the symlink's containing
630 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
631 if test "$*" = "X"; then
633 set X `ls -t $srcdir/configure conftestfile`
635 if test "$*" != "X $srcdir/configure conftestfile" \
636 && test "$*" != "X conftestfile $srcdir/configure"; then
638 # If neither matched, then we have a broken ls. This can happen
639 # if, for instance, CONFIG_SHELL is bash and it inherits a
640 # broken ls alias from the environment. This has actually
641 # happened. Such a system could not be considered "sane".
642 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
643 alias in your environment" 1>&2; exit 1; }
646 test "$2" = conftestfile
652 { echo "configure: error: newly created file is older than distributed files!
653 Check your system clock" 1>&2; exit 1; }
656 echo "$ac_t""yes" 1>&6
657 if test "$program_transform_name" = s,x,x,; then
658 program_transform_name=
660 # Double any \ or $. echo might interpret backslashes.
661 cat <<\EOF_SED > conftestsed
662 s,\\,\\\\,g; s,\$,$$,g
664 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
667 test "$program_prefix" != NONE &&
668 program_transform_name="s,^,${program_prefix},; $program_transform_name"
669 # Use a double $ so make ignores it.
670 test "$program_suffix" != NONE &&
671 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
673 # sed with no file args requires a program.
674 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
676 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
677 echo "configure:678: checking whether ${MAKE-make} sets \${MAKE}" >&5
678 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
679 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
680 echo $ac_n "(cached) $ac_c" 1>&6
682 cat > conftestmake <<\EOF
684 @echo 'ac_maketemp="${MAKE}"'
686 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
687 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
688 if test -n "$ac_maketemp"; then
689 eval ac_cv_prog_make_${ac_make}_set=yes
691 eval ac_cv_prog_make_${ac_make}_set=no
695 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
696 echo "$ac_t""yes" 1>&6
699 echo "$ac_t""no" 1>&6
700 SET_MAKE="MAKE=${MAKE-make}"
706 VERSION=$FULL_VERSION
708 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
709 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
711 cat >> confdefs.h <<EOF
712 #define PACKAGE "$PACKAGE"
715 cat >> confdefs.h <<EOF
716 #define VERSION "$VERSION"
721 missing_dir=`cd $ac_aux_dir && pwd`
722 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
723 echo "configure:724: checking for working aclocal" >&5
724 # Run test in a subshell; some versions of sh will print an error if
725 # an executable is not found, even if stderr is redirected.
726 # Redirect stdin to placate older versions of autoconf. Sigh.
727 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
729 echo "$ac_t""found" 1>&6
731 ACLOCAL="$missing_dir/missing aclocal"
732 echo "$ac_t""missing" 1>&6
735 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
736 echo "configure:737: checking for working autoconf" >&5
737 # Run test in a subshell; some versions of sh will print an error if
738 # an executable is not found, even if stderr is redirected.
739 # Redirect stdin to placate older versions of autoconf. Sigh.
740 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
742 echo "$ac_t""found" 1>&6
744 AUTOCONF="$missing_dir/missing autoconf"
745 echo "$ac_t""missing" 1>&6
748 echo $ac_n "checking for working automake""... $ac_c" 1>&6
749 echo "configure:750: checking for working automake" >&5
750 # Run test in a subshell; some versions of sh will print an error if
751 # an executable is not found, even if stderr is redirected.
752 # Redirect stdin to placate older versions of autoconf. Sigh.
753 if (automake --version) < /dev/null > /dev/null 2>&1; then
755 echo "$ac_t""found" 1>&6
757 AUTOMAKE="$missing_dir/missing automake"
758 echo "$ac_t""missing" 1>&6
761 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
762 echo "configure:763: checking for working autoheader" >&5
763 # Run test in a subshell; some versions of sh will print an error if
764 # an executable is not found, even if stderr is redirected.
765 # Redirect stdin to placate older versions of autoconf. Sigh.
766 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
767 AUTOHEADER=autoheader
768 echo "$ac_t""found" 1>&6
770 AUTOHEADER="$missing_dir/missing autoheader"
771 echo "$ac_t""missing" 1>&6
774 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
775 echo "configure:776: checking for working makeinfo" >&5
776 # Run test in a subshell; some versions of sh will print an error if
777 # an executable is not found, even if stderr is redirected.
778 # Redirect stdin to placate older versions of autoconf. Sigh.
779 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
781 echo "$ac_t""found" 1>&6
783 MAKEINFO="$missing_dir/missing makeinfo"
784 echo "$ac_t""missing" 1>&6
789 # Extract the first word of "gcc", so it can be a program name with args.
790 set dummy gcc; ac_word=$2
791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
792 echo "configure:793: checking for $ac_word" >&5
793 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
794 echo $ac_n "(cached) $ac_c" 1>&6
796 if test -n "$CC"; then
797 ac_cv_prog_CC="$CC" # Let the user override the test.
799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
800 for ac_dir in $PATH; do
801 test -z "$ac_dir" && ac_dir=.
802 if test -f $ac_dir/$ac_word; then
811 if test -n "$CC"; then
812 echo "$ac_t""$CC" 1>&6
814 echo "$ac_t""no" 1>&6
817 if test -z "$CC"; then
818 # Extract the first word of "cc", so it can be a program name with args.
819 set dummy cc; ac_word=$2
820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
821 echo "configure:822: checking for $ac_word" >&5
822 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
825 if test -n "$CC"; then
826 ac_cv_prog_CC="$CC" # Let the user override the test.
828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
830 for ac_dir in $PATH; do
831 test -z "$ac_dir" && ac_dir=.
832 if test -f $ac_dir/$ac_word; then
833 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
842 if test $ac_prog_rejected = yes; then
843 # We found a bogon in the path, so make sure we never use it.
844 set dummy $ac_cv_prog_CC
846 if test $# -gt 0; then
847 # We chose a different compiler from the bogus one.
848 # However, it has the same basename, so the bogon will be chosen
849 # first if we set CC to just the basename; use the full file name.
851 set dummy "$ac_dir/$ac_word" "$@"
859 if test -n "$CC"; then
860 echo "$ac_t""$CC" 1>&6
862 echo "$ac_t""no" 1>&6
865 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
868 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
869 echo "configure:870: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
872 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
873 ac_cpp='$CPP $CPPFLAGS'
874 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
875 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
876 cross_compiling=$ac_cv_prog_cc_cross
878 cat > conftest.$ac_ext <<EOF
879 #line 880 "configure"
880 #include "confdefs.h"
883 if { (eval echo configure:884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
884 ac_cv_prog_cc_works=yes
885 # If we can't run a trivial program, we are probably using a cross compiler.
886 if (./conftest; exit) 2>/dev/null; then
887 ac_cv_prog_cc_cross=no
889 ac_cv_prog_cc_cross=yes
892 echo "configure: failed program was:" >&5
893 cat conftest.$ac_ext >&5
894 ac_cv_prog_cc_works=no
898 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
899 if test $ac_cv_prog_cc_works = no; then
900 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
902 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
903 echo "configure:904: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
904 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
905 cross_compiling=$ac_cv_prog_cc_cross
907 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
908 echo "configure:909: checking whether we are using GNU C" >&5
909 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
910 echo $ac_n "(cached) $ac_c" 1>&6
912 cat > conftest.c <<EOF
917 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
924 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
926 if test $ac_cv_prog_gcc = yes; then
928 ac_test_CFLAGS="${CFLAGS+set}"
929 ac_save_CFLAGS="$CFLAGS"
931 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
932 echo "configure:933: checking whether ${CC-cc} accepts -g" >&5
933 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
934 echo $ac_n "(cached) $ac_c" 1>&6
936 echo 'void f(){}' > conftest.c
937 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
946 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
947 if test "$ac_test_CFLAGS" = set; then
948 CFLAGS="$ac_save_CFLAGS"
949 elif test $ac_cv_prog_cc_g = yes; then
956 test "${CFLAGS+set}" = set || CFLAGS="-g"
959 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
961 # Extract the first word of "$ac_prog", so it can be a program name with args.
962 set dummy $ac_prog; ac_word=$2
963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
964 echo "configure:965: checking for $ac_word" >&5
965 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
966 echo $ac_n "(cached) $ac_c" 1>&6
968 if test -n "$CXX"; then
969 ac_cv_prog_CXX="$CXX" # Let the user override the test.
971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
972 for ac_dir in $PATH; do
973 test -z "$ac_dir" && ac_dir=.
974 if test -f $ac_dir/$ac_word; then
975 ac_cv_prog_CXX="$ac_prog"
982 CXX="$ac_cv_prog_CXX"
983 if test -n "$CXX"; then
984 echo "$ac_t""$CXX" 1>&6
986 echo "$ac_t""no" 1>&6
989 test -n "$CXX" && break
991 test -n "$CXX" || CXX="gcc"
994 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
995 echo "configure:996: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
998 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
999 ac_cpp='$CXXCPP $CPPFLAGS'
1000 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1001 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1002 cross_compiling=$ac_cv_prog_cxx_cross
1004 cat > conftest.$ac_ext <<EOF
1005 #line 1006 "configure"
1006 #include "confdefs.h"
1009 if { (eval echo configure:1010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1010 ac_cv_prog_cxx_works=yes
1011 # If we can't run a trivial program, we are probably using a cross compiler.
1012 if (./conftest; exit) 2>/dev/null; then
1013 ac_cv_prog_cxx_cross=no
1015 ac_cv_prog_cxx_cross=yes
1018 echo "configure: failed program was:" >&5
1019 cat conftest.$ac_ext >&5
1020 ac_cv_prog_cxx_works=no
1024 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1025 ac_cpp='$CPP $CPPFLAGS'
1026 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1027 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1028 cross_compiling=$ac_cv_prog_cc_cross
1030 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1031 if test $ac_cv_prog_cxx_works = no; then
1032 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1034 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1035 echo "configure:1036: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1036 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1037 cross_compiling=$ac_cv_prog_cxx_cross
1039 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1040 echo "configure:1041: checking whether we are using GNU C++" >&5
1041 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1042 echo $ac_n "(cached) $ac_c" 1>&6
1044 cat > conftest.C <<EOF
1049 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1056 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1058 if test $ac_cv_prog_gxx = yes; then
1060 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1061 ac_save_CXXFLAGS="$CXXFLAGS"
1063 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1064 echo "configure:1065: checking whether ${CXX-g++} accepts -g" >&5
1065 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1068 echo 'void f(){}' > conftest.cc
1069 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1070 ac_cv_prog_cxx_g=yes
1078 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1079 if test "$ac_test_CXXFLAGS" = set; then
1080 CXXFLAGS="$ac_save_CXXFLAGS"
1081 elif test $ac_cv_prog_cxx_g = yes; then
1088 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1092 # turn off shared libraries by default (may be enabled using --enable-shared)
1093 # Check whether --enable-shared or --disable-shared was given.
1094 if test "${enable_shared+set}" = set; then
1095 enableval="$enable_shared"
1096 p=${PACKAGE-default}
1097 case "$enableval" in
1098 yes) enable_shared=yes ;;
1099 no) enable_shared=no ;;
1102 # Look at the argument we got. We use all the common list separators.
1103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1104 for pkg in $enableval; do
1105 if test "X$pkg" = "X$p"; then
1116 # Check whether --enable-static or --disable-static was given.
1117 if test "${enable_static+set}" = set; then
1118 enableval="$enable_static"
1119 p=${PACKAGE-default}
1120 case "$enableval" in
1121 yes) enable_static=yes ;;
1122 no) enable_static=no ;;
1125 # Look at the argument we got. We use all the common list separators.
1126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1127 for pkg in $enableval; do
1128 if test "X$pkg" = "X$p"; then
1140 # Make sure we can run config.sub.
1141 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1142 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1145 echo $ac_n "checking host system type""... $ac_c" 1>&6
1146 echo "configure:1147: checking host system type" >&5
1149 case "$host_alias" in
1153 if host_alias=`$ac_config_guess`; then :
1154 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1156 *) host_alias=$nonopt ;;
1160 host=`$ac_config_sub $host_alias`
1161 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1162 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1163 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1164 echo "$ac_t""$host" 1>&6
1166 # Extract the first word of "ranlib", so it can be a program name with args.
1167 set dummy ranlib; ac_word=$2
1168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1169 echo "configure:1170: checking for $ac_word" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 if test -n "$RANLIB"; then
1174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1176 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1177 for ac_dir in $PATH; do
1178 test -z "$ac_dir" && ac_dir=.
1179 if test -f $ac_dir/$ac_word; then
1180 ac_cv_prog_RANLIB="ranlib"
1185 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1188 RANLIB="$ac_cv_prog_RANLIB"
1189 if test -n "$RANLIB"; then
1190 echo "$ac_t""$RANLIB" 1>&6
1192 echo "$ac_t""no" 1>&6
1195 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1196 if test "${with_gnu_ld+set}" = set; then
1197 withval="$with_gnu_ld"
1198 test "$withval" = no || with_gnu_ld=yes
1205 if test "$ac_cv_prog_gcc" = yes; then
1206 # Check if gcc -print-prog-name=ld gives a path.
1207 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1208 echo "configure:1209: checking for ld used by GCC" >&5
1209 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1211 # Accept absolute paths.
1213 test -z "$LD" && LD="$ac_prog"
1216 # If it fails, then pretend we aren't using GCC.
1220 # If it is relative, then search for the first ld in PATH.
1224 elif test "$with_gnu_ld" = yes; then
1225 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1226 echo "configure:1227: checking for GNU ld" >&5
1228 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1229 echo "configure:1230: checking for non-GNU ld" >&5
1231 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1232 echo $ac_n "(cached) $ac_c" 1>&6
1234 if test -z "$LD"; then
1235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1236 for ac_dir in $PATH; do
1237 test -z "$ac_dir" && ac_dir=.
1238 if test -f "$ac_dir/$ac_prog"; then
1239 ac_cv_path_LD="$ac_dir/$ac_prog"
1240 # Check to see if the program is GNU ld. I'd rather use --version,
1241 # but apparently some GNU ld's only accept -v.
1242 # Break only if it was the GNU/non-GNU ld that we prefer.
1243 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1244 test "$with_gnu_ld" != no && break
1246 test "$with_gnu_ld" != yes && break
1252 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1257 if test -n "$LD"; then
1258 echo "$ac_t""$LD" 1>&6
1260 echo "$ac_t""no" 1>&6
1262 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1264 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1265 echo "configure:1266: checking if the linker ($LD) is GNU ld" >&5
1266 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1270 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1271 ac_cv_prog_gnu_ld=yes
1273 ac_cv_prog_gnu_ld=no
1277 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1280 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1281 echo "configure:1282: checking for BSD-compatible nm" >&5
1282 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1287 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1291 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1292 test -z "$ac_dir" && ac_dir=.
1293 if test -f $ac_dir/nm; then
1294 # Check to see if the nm accepts a BSD-compat flag.
1295 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1296 # nm: unknown option "B" ignored
1297 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1298 ac_cv_path_NM="$ac_dir/nm -B"
1299 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1300 ac_cv_path_NM="$ac_dir/nm -p"
1302 ac_cv_path_NM="$ac_dir/nm"
1308 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1314 echo "$ac_t""$NM" 1>&6
1317 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1318 echo "configure:1319: checking whether ln -s works" >&5
1319 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1323 if ln -s X conftestdata 2>/dev/null
1326 ac_cv_prog_LN_S="ln -s"
1331 LN_S="$ac_cv_prog_LN_S"
1332 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1333 echo "$ac_t""yes" 1>&6
1335 echo "$ac_t""no" 1>&6
1338 # Always use our own libtool.
1339 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1341 # Check for any special flags to pass to ltconfig.
1343 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1344 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1345 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1346 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1347 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1349 # Some flags need to be propagated to the compiler or linker for good
1353 # Find out which ABI we are using.
1354 echo '#line 1355 "configure"' > conftest.$ac_ext
1355 if { (eval echo configure:1356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1356 case "`/usr/bin/file conftest.o`" in
1372 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1373 CFLAGS="$CFLAGS -belf"
1377 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1378 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1379 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1380 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1381 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1382 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1386 missing_dir=`cd $ac_aux_dir && pwd`
1388 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1389 echo "configure:1390: checking for working aclocal" >&5
1390 # Run test in a subshell; some versions of sh will print an error if
1391 # an executable is not found, even if stderr is redirected.
1392 # Redirect stdin to placate older versions of autoconf. Sigh.
1393 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1395 echo "$ac_t""found" 1>&6
1397 ACLOCAL="$missing_dir/missing aclocal"
1398 echo "$ac_t""missing" 1>&6
1401 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1402 echo "configure:1403: checking for working autoconf" >&5
1403 # Run test in a subshell; some versions of sh will print an error if
1404 # an executable is not found, even if stderr is redirected.
1405 # Redirect stdin to placate older versions of autoconf. Sigh.
1406 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1408 echo "$ac_t""found" 1>&6
1410 AUTOCONF="$missing_dir/missing autoconf"
1411 echo "$ac_t""missing" 1>&6
1414 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1415 echo "configure:1416: checking for working automake" >&5
1416 # Run test in a subshell; some versions of sh will print an error if
1417 # an executable is not found, even if stderr is redirected.
1418 # Redirect stdin to placate older versions of autoconf. Sigh.
1419 if (automake --version) < /dev/null > /dev/null 2>&1; then
1421 echo "$ac_t""found" 1>&6
1423 AUTOMAKE="$missing_dir/missing automake"
1424 echo "$ac_t""missing" 1>&6
1427 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1428 echo "configure:1429: checking for working autoheader" >&5
1429 # Run test in a subshell; some versions of sh will print an error if
1430 # an executable is not found, even if stderr is redirected.
1431 # Redirect stdin to placate older versions of autoconf. Sigh.
1432 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1433 AUTOHEADER=autoheader
1434 echo "$ac_t""found" 1>&6
1436 AUTOHEADER="$missing_dir/missing autoheader"
1437 echo "$ac_t""missing" 1>&6
1440 # AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
1441 # Extract the first word of "perl", so it can be a program name with args.
1442 set dummy perl; ac_word=$2
1443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1444 echo "configure:1445: checking for $ac_word" >&5
1445 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1450 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1454 for ac_dir in $PATH; do
1455 test -z "$ac_dir" && ac_dir=.
1456 if test -f $ac_dir/$ac_word; then
1457 ac_cv_path_PERL="$ac_dir/$ac_word"
1462 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
1466 PERL="$ac_cv_path_PERL"
1467 if test -n "$PERL"; then
1468 echo "$ac_t""$PERL" 1>&6
1470 echo "$ac_t""no" 1>&6
1476 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1477 ac_cpp='$CXXCPP $CPPFLAGS'
1478 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1479 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1480 cross_compiling=$ac_cv_prog_cxx_cross
1486 MODULE_CXXFLAGS="$MODULE_CXXFLAGS -D_REENTRANT"
1488 if test $optimise_b = yes; then
1489 MODULE_CXXFLAGS="$MODULE_CXXFLAGS -O2 -DSTRING_UTILS_INLINED"
1496 # AC_SUBST(FULL_VERSION)
1497 # AC_SUBST(MAJOR_VERSION)
1498 # AC_SUBST(MINOR_VERSION)
1499 # AC_SUBST(PATCH_LEVEL)
1500 # AC_SUBST(MY_PATCH_LEVEL)
1503 # **Never** try to set library version numbers so that they correspond
1504 # to the release number of your package. This is an abuse that only
1505 # fosters misunderstanding of the purpose of library versions.
1507 REVISION=$PATCH_LEVEL
1508 # CURRENT=$MINOR_VERSION
1509 CURRENT=$(expr $MINOR_VERSION + 1)
1510 # AGE=$(expr $MAJOR_VERSION + 1)
1517 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1518 echo "configure:1519: checking for 8-bit clean memcmp" >&5
1519 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1520 echo $ac_n "(cached) $ac_c" 1>&6
1522 if test "$cross_compiling" = yes; then
1523 ac_cv_func_memcmp_clean=no
1525 cat > conftest.$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1529 extern "C" void exit(int);
1534 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1535 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
1539 if { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1541 ac_cv_func_memcmp_clean=yes
1543 echo "configure: failed program was:" >&5
1544 cat conftest.$ac_ext >&5
1546 ac_cv_func_memcmp_clean=no
1553 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
1554 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
1556 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1557 echo "configure:1558: checking for vprintf" >&5
1558 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1561 cat > conftest.$ac_ext <<EOF
1562 #line 1563 "configure"
1563 #include "confdefs.h"
1564 /* System header to define __stub macros and hopefully few prototypes,
1565 which can conflict with char vprintf(); below. */
1567 /* Override any gcc2 internal prototype to avoid an error. */
1571 /* We use char because int might match the return type of a gcc2
1572 builtin and then its argument prototype would still apply. */
1577 /* The GNU C library defines this for functions which it implements
1578 to always fail with ENOSYS. Some functions are actually named
1579 something starting with __ and the normal name is an alias. */
1580 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1588 if { (eval echo configure:1589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1590 eval "ac_cv_func_vprintf=yes"
1592 echo "configure: failed program was:" >&5
1593 cat conftest.$ac_ext >&5
1595 eval "ac_cv_func_vprintf=no"
1600 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1601 echo "$ac_t""yes" 1>&6
1602 cat >> confdefs.h <<\EOF
1603 #define HAVE_VPRINTF 1
1607 echo "$ac_t""no" 1>&6
1610 if test "$ac_cv_func_vprintf" != yes; then
1611 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1612 echo "configure:1613: checking for _doprnt" >&5
1613 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1614 echo $ac_n "(cached) $ac_c" 1>&6
1616 cat > conftest.$ac_ext <<EOF
1617 #line 1618 "configure"
1618 #include "confdefs.h"
1619 /* System header to define __stub macros and hopefully few prototypes,
1620 which can conflict with char _doprnt(); below. */
1622 /* Override any gcc2 internal prototype to avoid an error. */
1626 /* We use char because int might match the return type of a gcc2
1627 builtin and then its argument prototype would still apply. */
1632 /* The GNU C library defines this for functions which it implements
1633 to always fail with ENOSYS. Some functions are actually named
1634 something starting with __ and the normal name is an alias. */
1635 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1643 if { (eval echo configure:1644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1645 eval "ac_cv_func__doprnt=yes"
1647 echo "configure: failed program was:" >&5
1648 cat conftest.$ac_ext >&5
1650 eval "ac_cv_func__doprnt=no"
1655 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1656 echo "$ac_t""yes" 1>&6
1657 cat >> confdefs.h <<\EOF
1658 #define HAVE_DOPRNT 1
1662 echo "$ac_t""no" 1>&6
1667 for ac_func in memmem snprintf
1669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1670 echo "configure:1671: checking for $ac_func" >&5
1671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1674 cat > conftest.$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1677 /* System header to define __stub macros and hopefully few prototypes,
1678 which can conflict with char $ac_func(); below. */
1680 /* Override any gcc2 internal prototype to avoid an error. */
1684 /* We use char because int might match the return type of a gcc2
1685 builtin and then its argument prototype would still apply. */
1690 /* The GNU C library defines this for functions which it implements
1691 to always fail with ENOSYS. Some functions are actually named
1692 something starting with __ and the normal name is an alias. */
1693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1701 if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1703 eval "ac_cv_func_$ac_func=yes"
1705 echo "configure: failed program was:" >&5
1706 cat conftest.$ac_ext >&5
1708 eval "ac_cv_func_$ac_func=no"
1713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1714 echo "$ac_t""yes" 1>&6
1715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1716 cat >> confdefs.h <<EOF
1717 #define $ac_tr_func 1
1721 echo "$ac_t""no" 1>&6
1726 cat >> confdefs.h <<EOF
1727 #define MODULE_VERSION "${FULL_VERSION}"
1736 cat > confcache <<\EOF
1737 # This file is a shell script that caches the results of configure
1738 # tests run on this system so they can be shared between configure
1739 # scripts and configure runs. It is not useful on other systems.
1740 # If it contains results you don't want to keep, you may remove or edit it.
1742 # By default, configure uses ./config.cache as the cache file,
1743 # creating it if it does not exist already. You can give configure
1744 # the --cache-file=FILE option to use a different cache file; that is
1745 # what configure does when it calls configure scripts in
1746 # subdirectories, so they share the cache.
1747 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1748 # config.status only pays attention to the cache file if you give it the
1749 # --recheck option to rerun configure.
1752 # The following way of writing the cache mishandles newlines in values,
1753 # but we know of no workaround that is simple, portable, and efficient.
1754 # So, don't put newlines in cache variables' values.
1755 # Ultrix sh set writes to stderr and can't be redirected directly,
1756 # and sets the high bit in the cache file unless we assign to the vars.
1758 case `(ac_space=' '; set) 2>&1` in
1760 # `set' does not quote correctly, so add quotes (double-quote substitution
1761 # turns \\\\ into \\, and sed turns \\ into \).
1763 -e "s/'/'\\\\''/g" \
1764 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1767 # `set' quotes correctly as required by POSIX, so do not add quotes.
1768 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1771 if cmp -s $cache_file confcache; then
1774 if test -w $cache_file; then
1775 echo "updating cache $cache_file"
1776 cat confcache > $cache_file
1778 echo "not updating unwritable cache $cache_file"
1783 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1785 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1786 # Let make expand exec_prefix.
1787 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1789 # Any assignment to VPATH causes Sun make to only execute
1790 # the first set of double-colon rules, so remove it if not needed.
1791 # If there is a colon in the path, we need to keep it.
1792 if test "x$srcdir" = x.; then
1793 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1796 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1798 DEFS=-DHAVE_CONFIG_H
1800 # Without the "./", some shells look in PATH for config.status.
1801 : ${CONFIG_STATUS=./config.status}
1803 echo creating $CONFIG_STATUS
1804 rm -f $CONFIG_STATUS
1805 cat > $CONFIG_STATUS <<EOF
1807 # Generated automatically by configure.
1808 # Run this file to recreate the current configuration.
1809 # This directory was configured as follows,
1810 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1812 # $0 $ac_configure_args
1814 # Compiler output produced by configure, useful for debugging
1815 # configure, is in ./config.log if it exists.
1817 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1820 case "\$ac_option" in
1821 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1822 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1823 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1824 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1825 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1827 -help | --help | --hel | --he | --h)
1828 echo "\$ac_cs_usage"; exit 0 ;;
1829 *) echo "\$ac_cs_usage"; exit 1 ;;
1833 ac_given_srcdir=$srcdir
1834 ac_given_INSTALL="$INSTALL"
1836 trap 'rm -fr `echo "Makefile include/Makefile test/Makefile config.hh:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1838 cat >> $CONFIG_STATUS <<EOF
1840 # Protect against being on the right side of a sed subst in config.status.
1841 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1842 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1845 s%@CFLAGS@%$CFLAGS%g
1846 s%@CPPFLAGS@%$CPPFLAGS%g
1847 s%@CXXFLAGS@%$CXXFLAGS%g
1849 s%@LDFLAGS@%$LDFLAGS%g
1851 s%@exec_prefix@%$exec_prefix%g
1852 s%@prefix@%$prefix%g
1853 s%@program_transform_name@%$program_transform_name%g
1854 s%@bindir@%$bindir%g
1855 s%@sbindir@%$sbindir%g
1856 s%@libexecdir@%$libexecdir%g
1857 s%@datadir@%$datadir%g
1858 s%@sysconfdir@%$sysconfdir%g
1859 s%@sharedstatedir@%$sharedstatedir%g
1860 s%@localstatedir@%$localstatedir%g
1861 s%@libdir@%$libdir%g
1862 s%@includedir@%$includedir%g
1863 s%@oldincludedir@%$oldincludedir%g
1864 s%@infodir@%$infodir%g
1865 s%@mandir@%$mandir%g
1866 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1867 s%@INSTALL_DATA@%$INSTALL_DATA%g
1868 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1869 s%@PACKAGE@%$PACKAGE%g
1870 s%@VERSION@%$VERSION%g
1871 s%@ACLOCAL@%$ACLOCAL%g
1872 s%@AUTOCONF@%$AUTOCONF%g
1873 s%@AUTOMAKE@%$AUTOMAKE%g
1874 s%@AUTOHEADER@%$AUTOHEADER%g
1875 s%@MAKEINFO@%$MAKEINFO%g
1876 s%@SET_MAKE@%$SET_MAKE%g
1880 s%@host_alias@%$host_alias%g
1881 s%@host_cpu@%$host_cpu%g
1882 s%@host_vendor@%$host_vendor%g
1883 s%@host_os@%$host_os%g
1884 s%@RANLIB@%$RANLIB%g
1888 s%@LIBTOOL@%$LIBTOOL%g
1890 s%@MODULE_CXXFLAGS@%$MODULE_CXXFLAGS%g
1891 s%@MODULE_LDFLAGS@%$MODULE_LDFLAGS%g
1892 s%@LIB_SUFFIX@%$LIB_SUFFIX%g
1893 s%@CURRENT@%$CURRENT%g
1894 s%@REVISION@%$REVISION%g
1896 s%@LIBOBJS@%$LIBOBJS%g
1901 cat >> $CONFIG_STATUS <<\EOF
1903 # Split the substitutions into bite-sized pieces for seds with
1904 # small command number limits, like on Digital OSF/1 and HP-UX.
1905 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1906 ac_file=1 # Number of current file.
1907 ac_beg=1 # First line for current file.
1908 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1911 while $ac_more_lines; do
1912 if test $ac_beg -gt 1; then
1913 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1915 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1917 if test ! -s conftest.s$ac_file; then
1919 rm -f conftest.s$ac_file
1921 if test -z "$ac_sed_cmds"; then
1922 ac_sed_cmds="sed -f conftest.s$ac_file"
1924 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1926 ac_file=`expr $ac_file + 1`
1928 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1931 if test -z "$ac_sed_cmds"; then
1936 cat >> $CONFIG_STATUS <<EOF
1938 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/Makefile test/Makefile"}
1940 cat >> $CONFIG_STATUS <<\EOF
1941 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1942 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1944 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1945 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1946 *) ac_file_in="${ac_file}.in" ;;
1949 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1951 # Remove last slash and all that follows it. Not all systems have dirname.
1952 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1953 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1954 # The file is in a subdirectory.
1955 test ! -d "$ac_dir" && mkdir "$ac_dir"
1956 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1957 # A "../" for each directory in $ac_dir_suffix.
1958 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1960 ac_dir_suffix= ac_dots=
1963 case "$ac_given_srcdir" in
1965 if test -z "$ac_dots"; then top_srcdir=.
1966 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1967 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1969 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1970 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1973 case "$ac_given_INSTALL" in
1974 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1975 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1978 echo creating "$ac_file"
1980 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1982 *Makefile*) ac_comsub="1i\\
1983 # $configure_input" ;;
1987 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1989 s%@configure_input@%$configure_input%g
1990 s%@srcdir@%$srcdir%g
1991 s%@top_srcdir@%$top_srcdir%g
1992 s%@INSTALL@%$INSTALL%g
1993 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1997 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1998 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2000 # ac_d sets the value in "#define NAME VALUE" lines.
2001 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2002 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2005 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2006 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2007 ac_uB='\([ ]\)%\1#\2define\3'
2010 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2011 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2012 ac_eB='$%\1#\2define\3'
2016 if test "${CONFIG_HEADERS+set}" != set; then
2018 cat >> $CONFIG_STATUS <<EOF
2019 CONFIG_HEADERS="config.hh:config.hh.in"
2021 cat >> $CONFIG_STATUS <<\EOF
2023 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2024 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2026 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2027 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2028 *) ac_file_in="${ac_file}.in" ;;
2031 echo creating $ac_file
2033 rm -f conftest.frag conftest.in conftest.out
2034 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2035 cat $ac_file_inputs > conftest.in
2039 # Transform confdefs.h into a sed script conftest.vals that substitutes
2040 # the proper values into config.h.in to produce config.h. And first:
2041 # Protect against being on the right side of a sed subst in config.status.
2042 # Protect against being in an unquoted here document in config.status.
2044 cat > conftest.hdr <<\EOF
2047 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2051 sed -n -f conftest.hdr confdefs.h > conftest.vals
2054 # This sed command replaces #undef with comments. This is necessary, for
2055 # example, in the case of _POSIX_SOURCE, which is predefined and required
2056 # on some systems where configure will not decide to define it.
2057 cat >> conftest.vals <<\EOF
2058 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2061 # Break up conftest.vals because some shells have a limit on
2062 # the size of here documents, and old seds have small limits too.
2067 ac_lines=`grep -c . conftest.vals`
2068 # grep -c gives empty output for an empty file on some AIX systems.
2069 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2070 # Write a limited-size here document to conftest.frag.
2071 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2072 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2074 sed -f conftest.frag conftest.in > conftest.out
2076 mv conftest.out conftest.in
2078 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2080 mv conftest.tail conftest.vals
2084 cat >> $CONFIG_STATUS <<\EOF
2085 rm -f conftest.frag conftest.h
2086 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2087 cat conftest.in >> conftest.h
2089 if cmp -s $ac_file conftest.h 2>/dev/null; then
2090 echo "$ac_file is unchanged"
2093 # Remove last slash and all that follows it. Not all systems have dirname.
2094 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2095 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2096 # The file is in a subdirectory.
2097 test ! -d "$ac_dir" && mkdir "$ac_dir"
2100 mv conftest.h $ac_file
2105 cat >> $CONFIG_STATUS <<EOF
2109 cat >> $CONFIG_STATUS <<\EOF
2110 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2114 chmod +x $CONFIG_STATUS
2115 rm -fr confdefs* $ac_clean_files
2116 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1