3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
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 --with-x use the X Window System"
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
21 cache_file=./config.cache
30 program_transform_name=s,x,x,
38 bindir='${exec_prefix}/bin'
39 sbindir='${exec_prefix}/sbin'
40 libexecdir='${exec_prefix}/libexec'
41 datadir='${prefix}/share'
42 sysconfdir='${prefix}/etc'
43 sharedstatedir='${prefix}/com'
44 localstatedir='${prefix}/var'
45 libdir='${exec_prefix}/lib'
46 includedir='${prefix}/include'
47 oldincludedir='/usr/include'
48 infodir='${prefix}/info'
49 mandir='${prefix}/man'
51 # Initialize some other variables.
54 SHELL=${CONFIG_SHELL-/bin/sh}
55 # Maximum number of lines to put in a shell here document.
62 # If the previous option needs an argument, assign it.
63 if test -n "$ac_prev"; then
64 eval "$ac_prev=\$ac_option"
70 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
74 # Accept the important Cygnus configure options, so we can diagnose typos.
78 -bindir | --bindir | --bindi | --bind | --bin | --bi)
80 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81 bindir="$ac_optarg" ;;
83 -build | --build | --buil | --bui | --bu)
85 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
88 -cache-file | --cache-file | --cache-fil | --cache-fi \
89 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
91 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93 cache_file="$ac_optarg" ;;
95 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
97 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
99 datadir="$ac_optarg" ;;
101 -disable-* | --disable-*)
102 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
103 # Reject names that are not valid shell variable names.
104 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
107 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108 eval "enable_${ac_feature}=no" ;;
110 -enable-* | --enable-*)
111 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112 # Reject names that are not valid shell variable names.
113 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}='$ac_optarg'" ;;
123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
125 | --exec | --exe | --ex)
126 ac_prev=exec_prefix ;;
127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
129 | --exec=* | --exe=* | --ex=*)
130 exec_prefix="$ac_optarg" ;;
132 -gas | --gas | --ga | --g)
133 # Obsolete; use --with-gas.
136 -help | --help | --hel | --he)
137 # Omit some internal or obsolete options to make the list less imposing.
138 # This message is too long to be a string in the A/UX 3.1 sh.
140 Usage: configure [options] [host]
141 Options: [defaults in brackets after descriptions]
143 --cache-file=FILE cache test results in FILE
144 --help print this message
145 --no-create do not create output files
146 --quiet, --silent do not print \`checking...' messages
147 --version print the version of autoconf that created configure
148 Directory and file names:
149 --prefix=PREFIX install architecture-independent files in PREFIX
151 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
153 --bindir=DIR user executables in DIR [EPREFIX/bin]
154 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
155 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
156 --datadir=DIR read-only architecture-independent data in DIR
158 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
159 --sharedstatedir=DIR modifiable architecture-independent data in DIR
161 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
162 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
163 --includedir=DIR C header files in DIR [PREFIX/include]
164 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
165 --infodir=DIR info documentation in DIR [PREFIX/info]
166 --mandir=DIR man documentation in DIR [PREFIX/man]
167 --srcdir=DIR find the sources in DIR [configure dir or ..]
168 --program-prefix=PREFIX prepend PREFIX to installed program names
169 --program-suffix=SUFFIX append SUFFIX to installed program names
170 --program-transform-name=PROGRAM
171 run sed PROGRAM on installed program names
175 --build=BUILD configure for building on BUILD [BUILD=HOST]
176 --host=HOST configure for HOST [guessed]
177 --target=TARGET configure for TARGET [TARGET=HOST]
178 Features and packages:
179 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
180 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
181 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
182 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
183 --x-includes=DIR X include files are in DIR
184 --x-libraries=DIR X library files are in DIR
186 if test -n "$ac_help"; then
187 echo "--enable and --with options recognized:$ac_help"
191 -host | --host | --hos | --ho)
193 -host=* | --host=* | --hos=* | --ho=*)
196 -includedir | --includedir | --includedi | --included | --include \
197 | --includ | --inclu | --incl | --inc)
198 ac_prev=includedir ;;
199 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200 | --includ=* | --inclu=* | --incl=* | --inc=*)
201 includedir="$ac_optarg" ;;
203 -infodir | --infodir | --infodi | --infod | --info | --inf)
205 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206 infodir="$ac_optarg" ;;
208 -libdir | --libdir | --libdi | --libd)
210 -libdir=* | --libdir=* | --libdi=* | --libd=*)
211 libdir="$ac_optarg" ;;
213 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214 | --libexe | --libex | --libe)
215 ac_prev=libexecdir ;;
216 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217 | --libexe=* | --libex=* | --libe=*)
218 libexecdir="$ac_optarg" ;;
220 -localstatedir | --localstatedir | --localstatedi | --localstated \
221 | --localstate | --localstat | --localsta | --localst \
222 | --locals | --local | --loca | --loc | --lo)
223 ac_prev=localstatedir ;;
224 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227 localstatedir="$ac_optarg" ;;
229 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
231 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232 mandir="$ac_optarg" ;;
235 # Obsolete; use --without-fp.
238 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
242 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
246 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248 | --oldin | --oldi | --old | --ol | --o)
249 ac_prev=oldincludedir ;;
250 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253 oldincludedir="$ac_optarg" ;;
255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258 prefix="$ac_optarg" ;;
260 -program-prefix | --program-prefix | --program-prefi | --program-pref \
261 | --program-pre | --program-pr | --program-p)
262 ac_prev=program_prefix ;;
263 -program-prefix=* | --program-prefix=* | --program-prefi=* \
264 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265 program_prefix="$ac_optarg" ;;
267 -program-suffix | --program-suffix | --program-suffi | --program-suff \
268 | --program-suf | --program-su | --program-s)
269 ac_prev=program_suffix ;;
270 -program-suffix=* | --program-suffix=* | --program-suffi=* \
271 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272 program_suffix="$ac_optarg" ;;
274 -program-transform-name | --program-transform-name \
275 | --program-transform-nam | --program-transform-na \
276 | --program-transform-n | --program-transform- \
277 | --program-transform | --program-transfor \
278 | --program-transfo | --program-transf \
279 | --program-trans | --program-tran \
280 | --progr-tra | --program-tr | --program-t)
281 ac_prev=program_transform_name ;;
282 -program-transform-name=* | --program-transform-name=* \
283 | --program-transform-nam=* | --program-transform-na=* \
284 | --program-transform-n=* | --program-transform-=* \
285 | --program-transform=* | --program-transfor=* \
286 | --program-transfo=* | --program-transf=* \
287 | --program-trans=* | --program-tran=* \
288 | --progr-tra=* | --program-tr=* | --program-t=*)
289 program_transform_name="$ac_optarg" ;;
291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292 | -silent | --silent | --silen | --sile | --sil)
295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
299 sbindir="$ac_optarg" ;;
301 -sharedstatedir | --sharedstatedir | --sharedstatedi \
302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303 | --sharedst | --shareds | --shared | --share | --shar \
305 ac_prev=sharedstatedir ;;
306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
310 sharedstatedir="$ac_optarg" ;;
312 -site | --site | --sit)
314 -site=* | --site=* | --sit=*)
317 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
319 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320 srcdir="$ac_optarg" ;;
322 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
323 | --syscon | --sysco | --sysc | --sys | --sy)
324 ac_prev=sysconfdir ;;
325 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
326 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
327 sysconfdir="$ac_optarg" ;;
329 -target | --target | --targe | --targ | --tar | --ta | --t)
331 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332 target="$ac_optarg" ;;
334 -v | -verbose | --verbose | --verbos | --verbo | --verb)
337 -version | --version | --versio | --versi | --vers)
338 echo "configure generated by autoconf version 2.13"
342 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343 # Reject names that are not valid shell variable names.
344 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
347 ac_package=`echo $ac_package| sed 's/-/_/g'`
352 eval "with_${ac_package}='$ac_optarg'" ;;
354 -without-* | --without-*)
355 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
361 eval "with_${ac_package}=no" ;;
364 # Obsolete; use --with-x.
367 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
368 | --x-incl | --x-inc | --x-in | --x-i)
369 ac_prev=x_includes ;;
370 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
371 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
372 x_includes="$ac_optarg" ;;
374 -x-libraries | --x-libraries | --x-librarie | --x-librari \
375 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
376 ac_prev=x_libraries ;;
377 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
378 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
379 x_libraries="$ac_optarg" ;;
381 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
385 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386 echo "configure: warning: $ac_option: invalid host type" 1>&2
388 if test "x$nonopt" != xNONE; then
389 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
397 if test -n "$ac_prev"; then
398 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
403 # File descriptor usage:
406 # 2 errors and warnings
407 # 3 some systems may open it to /dev/tty
408 # 4 used on the Kubota Titan
409 # 6 checking for... messages and results
410 # 5 compiler messages saved in config.log
411 if test "$silent" = yes; then
419 This file contains any messages produced by compilers while
420 running configure, to aid debugging if configure makes a mistake.
423 # Strip out --no-create and --no-recursion so they do not pile up.
424 # Also quote any args containing shell metacharacters.
429 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
430 | --no-cr | --no-c) ;;
431 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
435 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
440 # Only set these to C if already set. These must not be set unconditionally
441 # because not all systems understand e.g. LANG=C (notably SCO).
442 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443 # Non-C LC_CTYPE values break the ctype check.
444 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
445 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
450 rm -rf conftest* confdefs.h
451 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
454 # A filename unique to this package, relative to the directory that
455 # configure is in, which we can look for to find out if srcdir is correct.
456 ac_unique_file=src/xappl.h
458 # Find the source files, if location was not specified.
459 if test -z "$srcdir"; then
460 ac_srcdir_defaulted=yes
461 # Try the directory containing this script, then its parent.
463 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
466 if test ! -r $srcdir/$ac_unique_file; then
470 ac_srcdir_defaulted=no
472 if test ! -r $srcdir/$ac_unique_file; then
473 if test "$ac_srcdir_defaulted" = yes; then
474 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
476 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
479 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
481 # Prefer explicitly selected file to automatically selected ones.
482 if test -z "$CONFIG_SITE"; then
483 if test "x$prefix" != xNONE; then
484 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
486 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
489 for ac_site_file in $CONFIG_SITE; do
490 if test -r "$ac_site_file"; then
491 echo "loading site script $ac_site_file"
496 if test -r "$cache_file"; then
497 echo "loading cache $cache_file"
500 echo "creating cache $cache_file"
505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506 ac_cpp='$CPP $CPPFLAGS'
507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509 cross_compiling=$ac_cv_prog_cc_cross
513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
514 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
522 ac_n= ac_c='\c' ac_t=
527 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
528 if test -f $ac_dir/install-sh; then
530 ac_install_sh="$ac_aux_dir/install-sh -c"
532 elif test -f $ac_dir/install.sh; then
534 ac_install_sh="$ac_aux_dir/install.sh -c"
538 if test -z "$ac_aux_dir"; then
539 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
541 ac_config_guess=$ac_aux_dir/config.guess
542 ac_config_sub=$ac_aux_dir/config.sub
543 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
545 # Find a good install program. We prefer a C program (faster),
546 # so one script is as good as another. But avoid the broken or
547 # incompatible versions:
548 # SysV /etc/install, /usr/sbin/install
549 # SunOS /usr/etc/install
552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
555 # ./install, which can be erroneously created by make from ./install.sh.
556 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
557 echo "configure:558: checking for a BSD compatible install" >&5
558 if test -z "$INSTALL"; then
559 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
560 echo $ac_n "(cached) $ac_c" 1>&6
562 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
563 for ac_dir in $PATH; do
564 # Account for people who put trailing slashes in PATH elements.
566 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
568 # OSF1 and SCO ODT 3.0 have their own names for install.
569 # Don't use installbsd from OSF since it installs stuff as root
571 for ac_prog in ginstall scoinst install; do
572 if test -f $ac_dir/$ac_prog; then
573 if test $ac_prog = install &&
574 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
575 # AIX install. It has an incompatible calling convention.
578 ac_cv_path_install="$ac_dir/$ac_prog -c"
589 if test "${ac_cv_path_install+set}" = set; then
590 INSTALL="$ac_cv_path_install"
592 # As a last resort, use the slow shell script. We don't cache a
593 # path for INSTALL within a source directory, because that will
594 # break other packages using the cache if that directory is
595 # removed, or if the path is relative.
596 INSTALL="$ac_install_sh"
599 echo "$ac_t""$INSTALL" 1>&6
601 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
602 # It thinks the first close brace ends the variable substitution.
603 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
605 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
607 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
609 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
610 echo "configure:611: checking whether build environment is sane" >&5
613 echo timestamp > conftestfile
614 # Do `set' in a subshell so we don't clobber the current shell's
615 # arguments. Must try -L first in case configure is actually a
616 # symlink; some systems play weird games with the mod time of symlinks
617 # (eg FreeBSD returns the mod time of the symlink's containing
620 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
621 if test "$*" = "X"; then
623 set X `ls -t $srcdir/configure conftestfile`
625 if test "$*" != "X $srcdir/configure conftestfile" \
626 && test "$*" != "X conftestfile $srcdir/configure"; then
628 # If neither matched, then we have a broken ls. This can happen
629 # if, for instance, CONFIG_SHELL is bash and it inherits a
630 # broken ls alias from the environment. This has actually
631 # happened. Such a system could not be considered "sane".
632 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
633 alias in your environment" 1>&2; exit 1; }
636 test "$2" = conftestfile
642 { echo "configure: error: newly created file is older than distributed files!
643 Check your system clock" 1>&2; exit 1; }
646 echo "$ac_t""yes" 1>&6
647 if test "$program_transform_name" = s,x,x,; then
648 program_transform_name=
650 # Double any \ or $. echo might interpret backslashes.
651 cat <<\EOF_SED > conftestsed
652 s,\\,\\\\,g; s,\$,$$,g
654 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
657 test "$program_prefix" != NONE &&
658 program_transform_name="s,^,${program_prefix},; $program_transform_name"
659 # Use a double $ so make ignores it.
660 test "$program_suffix" != NONE &&
661 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
663 # sed with no file args requires a program.
664 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
666 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
667 echo "configure:668: checking whether ${MAKE-make} sets \${MAKE}" >&5
668 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
669 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
670 echo $ac_n "(cached) $ac_c" 1>&6
672 cat > conftestmake <<\EOF
674 @echo 'ac_maketemp="${MAKE}"'
676 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
677 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
678 if test -n "$ac_maketemp"; then
679 eval ac_cv_prog_make_${ac_make}_set=yes
681 eval ac_cv_prog_make_${ac_make}_set=no
685 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
686 echo "$ac_t""yes" 1>&6
689 echo "$ac_t""no" 1>&6
690 SET_MAKE="MAKE=${MAKE-make}"
698 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
699 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
701 cat >> confdefs.h <<EOF
702 #define PACKAGE "$PACKAGE"
705 cat >> confdefs.h <<EOF
706 #define VERSION "$VERSION"
711 missing_dir=`cd $ac_aux_dir && pwd`
712 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
713 echo "configure:714: checking for working aclocal" >&5
714 # Run test in a subshell; some versions of sh will print an error if
715 # an executable is not found, even if stderr is redirected.
716 # Redirect stdin to placate older versions of autoconf. Sigh.
717 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
719 echo "$ac_t""found" 1>&6
721 ACLOCAL="$missing_dir/missing aclocal"
722 echo "$ac_t""missing" 1>&6
725 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
726 echo "configure:727: checking for working autoconf" >&5
727 # Run test in a subshell; some versions of sh will print an error if
728 # an executable is not found, even if stderr is redirected.
729 # Redirect stdin to placate older versions of autoconf. Sigh.
730 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
732 echo "$ac_t""found" 1>&6
734 AUTOCONF="$missing_dir/missing autoconf"
735 echo "$ac_t""missing" 1>&6
738 echo $ac_n "checking for working automake""... $ac_c" 1>&6
739 echo "configure:740: checking for working automake" >&5
740 # Run test in a subshell; some versions of sh will print an error if
741 # an executable is not found, even if stderr is redirected.
742 # Redirect stdin to placate older versions of autoconf. Sigh.
743 if (automake --version) < /dev/null > /dev/null 2>&1; then
745 echo "$ac_t""found" 1>&6
747 AUTOMAKE="$missing_dir/missing automake"
748 echo "$ac_t""missing" 1>&6
751 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
752 echo "configure:753: checking for working autoheader" >&5
753 # Run test in a subshell; some versions of sh will print an error if
754 # an executable is not found, even if stderr is redirected.
755 # Redirect stdin to placate older versions of autoconf. Sigh.
756 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
757 AUTOHEADER=autoheader
758 echo "$ac_t""found" 1>&6
760 AUTOHEADER="$missing_dir/missing autoheader"
761 echo "$ac_t""missing" 1>&6
764 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
765 echo "configure:766: checking for working makeinfo" >&5
766 # Run test in a subshell; some versions of sh will print an error if
767 # an executable is not found, even if stderr is redirected.
768 # Redirect stdin to placate older versions of autoconf. Sigh.
769 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
771 echo "$ac_t""found" 1>&6
773 MAKEINFO="$missing_dir/missing makeinfo"
774 echo "$ac_t""missing" 1>&6
780 # Extract the first word of "gcc", so it can be a program name with args.
781 set dummy gcc; ac_word=$2
782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
783 echo "configure:784: checking for $ac_word" >&5
784 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
787 if test -n "$CC"; then
788 ac_cv_prog_CC="$CC" # Let the user override the test.
790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
792 for ac_dir in $ac_dummy; do
793 test -z "$ac_dir" && ac_dir=.
794 if test -f $ac_dir/$ac_word; then
803 if test -n "$CC"; then
804 echo "$ac_t""$CC" 1>&6
806 echo "$ac_t""no" 1>&6
809 if test -z "$CC"; then
810 # Extract the first word of "cc", so it can be a program name with args.
811 set dummy cc; ac_word=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 echo "configure:814: checking for $ac_word" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 if test -n "$CC"; then
818 ac_cv_prog_CC="$CC" # Let the user override the test.
820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
823 for ac_dir in $ac_dummy; do
824 test -z "$ac_dir" && ac_dir=.
825 if test -f $ac_dir/$ac_word; then
826 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
835 if test $ac_prog_rejected = yes; then
836 # We found a bogon in the path, so make sure we never use it.
837 set dummy $ac_cv_prog_CC
839 if test $# -gt 0; then
840 # We chose a different compiler from the bogus one.
841 # However, it has the same basename, so the bogon will be chosen
842 # first if we set CC to just the basename; use the full file name.
844 set dummy "$ac_dir/$ac_word" "$@"
852 if test -n "$CC"; then
853 echo "$ac_t""$CC" 1>&6
855 echo "$ac_t""no" 1>&6
858 if test -z "$CC"; then
861 # Extract the first word of "cl", so it can be a program name with args.
862 set dummy cl; ac_word=$2
863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
864 echo "configure:865: checking for $ac_word" >&5
865 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
868 if test -n "$CC"; then
869 ac_cv_prog_CC="$CC" # Let the user override the test.
871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
873 for ac_dir in $ac_dummy; do
874 test -z "$ac_dir" && ac_dir=.
875 if test -f $ac_dir/$ac_word; then
884 if test -n "$CC"; then
885 echo "$ac_t""$CC" 1>&6
887 echo "$ac_t""no" 1>&6
892 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
895 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
896 echo "configure:897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
899 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
900 ac_cpp='$CPP $CPPFLAGS'
901 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
902 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
903 cross_compiling=$ac_cv_prog_cc_cross
905 cat > conftest.$ac_ext << EOF
907 #line 908 "configure"
908 #include "confdefs.h"
912 if { (eval echo configure:913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
913 ac_cv_prog_cc_works=yes
914 # If we can't run a trivial program, we are probably using a cross compiler.
915 if (./conftest; exit) 2>/dev/null; then
916 ac_cv_prog_cc_cross=no
918 ac_cv_prog_cc_cross=yes
921 echo "configure: failed program was:" >&5
922 cat conftest.$ac_ext >&5
923 ac_cv_prog_cc_works=no
927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
928 ac_cpp='$CPP $CPPFLAGS'
929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
931 cross_compiling=$ac_cv_prog_cc_cross
933 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
934 if test $ac_cv_prog_cc_works = no; then
935 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
937 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
938 echo "configure:939: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
939 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
940 cross_compiling=$ac_cv_prog_cc_cross
942 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
943 echo "configure:944: checking whether we are using GNU C" >&5
944 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
945 echo $ac_n "(cached) $ac_c" 1>&6
947 cat > conftest.c <<EOF
952 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
959 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
961 if test $ac_cv_prog_gcc = yes; then
967 ac_test_CFLAGS="${CFLAGS+set}"
968 ac_save_CFLAGS="$CFLAGS"
970 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
971 echo "configure:972: checking whether ${CC-cc} accepts -g" >&5
972 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
975 echo 'void f(){}' > conftest.c
976 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
985 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
986 if test "$ac_test_CFLAGS" = set; then
987 CFLAGS="$ac_save_CFLAGS"
988 elif test $ac_cv_prog_cc_g = yes; then
989 if test "$GCC" = yes; then
995 if test "$GCC" = yes; then
1002 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1004 # Extract the first word of "$ac_prog", so it can be a program name with args.
1005 set dummy $ac_prog; ac_word=$2
1006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1007 echo "configure:1008: checking for $ac_word" >&5
1008 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1011 if test -n "$CXX"; then
1012 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1016 for ac_dir in $ac_dummy; do
1017 test -z "$ac_dir" && ac_dir=.
1018 if test -f $ac_dir/$ac_word; then
1019 ac_cv_prog_CXX="$ac_prog"
1026 CXX="$ac_cv_prog_CXX"
1027 if test -n "$CXX"; then
1028 echo "$ac_t""$CXX" 1>&6
1030 echo "$ac_t""no" 1>&6
1033 test -n "$CXX" && break
1035 test -n "$CXX" || CXX="gcc"
1038 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1039 echo "configure:1040: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1042 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1043 ac_cpp='$CXXCPP $CPPFLAGS'
1044 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1045 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1046 cross_compiling=$ac_cv_prog_cxx_cross
1048 cat > conftest.$ac_ext << EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1053 int main(){return(0);}
1055 if { (eval echo configure:1056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1056 ac_cv_prog_cxx_works=yes
1057 # If we can't run a trivial program, we are probably using a cross compiler.
1058 if (./conftest; exit) 2>/dev/null; then
1059 ac_cv_prog_cxx_cross=no
1061 ac_cv_prog_cxx_cross=yes
1064 echo "configure: failed program was:" >&5
1065 cat conftest.$ac_ext >&5
1066 ac_cv_prog_cxx_works=no
1070 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1071 ac_cpp='$CPP $CPPFLAGS'
1072 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1073 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1074 cross_compiling=$ac_cv_prog_cc_cross
1076 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1077 if test $ac_cv_prog_cxx_works = no; then
1078 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1080 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1081 echo "configure:1082: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1082 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1083 cross_compiling=$ac_cv_prog_cxx_cross
1085 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1086 echo "configure:1087: checking whether we are using GNU C++" >&5
1087 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1090 cat > conftest.C <<EOF
1095 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1102 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1104 if test $ac_cv_prog_gxx = yes; then
1110 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1111 ac_save_CXXFLAGS="$CXXFLAGS"
1113 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1114 echo "configure:1115: checking whether ${CXX-g++} accepts -g" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1118 echo 'void f(){}' > conftest.cc
1119 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1120 ac_cv_prog_cxx_g=yes
1128 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1129 if test "$ac_test_CXXFLAGS" = set; then
1130 CXXFLAGS="$ac_save_CXXFLAGS"
1131 elif test $ac_cv_prog_cxx_g = yes; then
1132 if test "$GXX" = yes; then
1138 if test "$GXX" = yes; then
1145 for ac_declaration in \
1147 '#include <stdlib.h>' \
1148 'extern "C" void std::exit (int) throw (); using std::exit;' \
1149 'extern "C" void std::exit (int); using std::exit;' \
1150 'extern "C" void exit (int) throw ();' \
1151 'extern "C" void exit (int);' \
1154 cat > conftest.$ac_ext <<EOF
1155 #line 1156 "configure"
1156 #include "confdefs.h"
1163 if { (eval echo configure:1164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1166 echo "configure: failed program was:" >&5
1167 cat conftest.$ac_ext >&5
1172 cat > conftest.$ac_ext <<EOF
1173 #line 1174 "configure"
1174 #include "confdefs.h"
1180 if { (eval echo configure:1181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1184 echo "configure: failed program was:" >&5
1185 cat conftest.$ac_ext >&5
1189 if test -n "$ac_declaration"; then
1190 echo '#ifdef __cplusplus' >>confdefs.h
1191 echo $ac_declaration >>confdefs.h
1192 echo '#endif' >>confdefs.h
1196 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1197 echo "configure:1198: checking how to run the C preprocessor" >&5
1198 # On Suns, sometimes $CPP names a directory.
1199 if test -n "$CPP" && test -d "$CPP"; then
1202 if test -z "$CPP"; then
1203 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1204 echo $ac_n "(cached) $ac_c" 1>&6
1206 # This must be in double quotes, not single quotes, because CPP may get
1207 # substituted into the Makefile and "${CC-cc}" will confuse make.
1209 # On the NeXT, cc -E runs the code through the compiler's parser,
1210 # not just through cpp.
1211 cat > conftest.$ac_ext <<EOF
1212 #line 1213 "configure"
1213 #include "confdefs.h"
1217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1218 { (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1220 if test -z "$ac_err"; then
1224 echo "configure: failed program was:" >&5
1225 cat conftest.$ac_ext >&5
1227 CPP="${CC-cc} -E -traditional-cpp"
1228 cat > conftest.$ac_ext <<EOF
1229 #line 1230 "configure"
1230 #include "confdefs.h"
1234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1235 { (eval echo configure:1236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1237 if test -z "$ac_err"; then
1241 echo "configure: failed program was:" >&5
1242 cat conftest.$ac_ext >&5
1244 CPP="${CC-cc} -nologo -E"
1245 cat > conftest.$ac_ext <<EOF
1246 #line 1247 "configure"
1247 #include "confdefs.h"
1251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1252 { (eval echo configure:1253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1254 if test -z "$ac_err"; then
1258 echo "configure: failed program was:" >&5
1259 cat conftest.$ac_ext >&5
1268 ac_cv_prog_CPP="$CPP"
1270 CPP="$ac_cv_prog_CPP"
1272 ac_cv_prog_CPP="$CPP"
1274 echo "$ac_t""$CPP" 1>&6
1276 missing_dir=`cd $ac_aux_dir && pwd`
1277 for ac_prog in flex lex
1279 # Extract the first word of "$ac_prog", so it can be a program name with args.
1280 set dummy $ac_prog; ac_word=$2
1281 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1282 echo "configure:1283: checking for $ac_word" >&5
1283 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1284 echo $ac_n "(cached) $ac_c" 1>&6
1286 if test -n "$LEX"; then
1287 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1291 for ac_dir in $ac_dummy; do
1292 test -z "$ac_dir" && ac_dir=.
1293 if test -f $ac_dir/$ac_word; then
1294 ac_cv_prog_LEX="$ac_prog"
1301 LEX="$ac_cv_prog_LEX"
1302 if test -n "$LEX"; then
1303 echo "$ac_t""$LEX" 1>&6
1305 echo "$ac_t""no" 1>&6
1308 test -n "$LEX" && break
1310 test -n "$LEX" || LEX=""$missing_dir/missing flex""
1312 # Extract the first word of "flex", so it can be a program name with args.
1313 set dummy flex; ac_word=$2
1314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1315 echo "configure:1316: checking for $ac_word" >&5
1316 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1319 if test -n "$LEX"; then
1320 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1324 for ac_dir in $ac_dummy; do
1325 test -z "$ac_dir" && ac_dir=.
1326 if test -f $ac_dir/$ac_word; then
1327 ac_cv_prog_LEX="flex"
1332 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1335 LEX="$ac_cv_prog_LEX"
1336 if test -n "$LEX"; then
1337 echo "$ac_t""$LEX" 1>&6
1339 echo "$ac_t""no" 1>&6
1342 if test -z "$LEXLIB"
1348 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1349 echo "configure:1350: checking for yywrap in -l$ac_lib" >&5
1350 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1351 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 ac_save_LIBS="$LIBS"
1355 LIBS="-l$ac_lib $LIBS"
1356 cat > conftest.$ac_ext <<EOF
1357 #line 1358 "configure"
1358 #include "confdefs.h"
1359 /* Override any gcc2 internal prototype to avoid an error. */
1360 /* We use char because int might match the return type of a gcc2
1361 builtin and then its argument prototype would still apply. */
1368 if { (eval echo configure:1369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1370 eval "ac_cv_lib_$ac_lib_var=yes"
1372 echo "configure: failed program was:" >&5
1373 cat conftest.$ac_ext >&5
1375 eval "ac_cv_lib_$ac_lib_var=no"
1378 LIBS="$ac_save_LIBS"
1381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1382 echo "$ac_t""yes" 1>&6
1385 echo "$ac_t""no" 1>&6
1390 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1391 echo "configure:1392: checking lex output file root" >&5
1392 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 # The minimal lex program is just a single line: %%. But some broken lexes
1396 # (Solaris, I think it was) want two %% lines, so accommodate them.
1399 if test -f lex.yy.c; then
1400 ac_cv_prog_lex_root=lex.yy
1401 elif test -f lexyy.c; then
1402 ac_cv_prog_lex_root=lexyy
1404 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1408 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1409 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1411 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1412 echo "configure:1413: checking whether yytext is a pointer" >&5
1413 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1414 echo $ac_n "(cached) $ac_c" 1>&6
1416 # POSIX says lex can declare yytext either as a pointer or an array; the
1417 # default is implementation-dependent. Figure out which it is, since
1418 # not all implementations provide the %pointer and %array declarations.
1419 ac_cv_prog_lex_yytext_pointer=no
1420 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1421 ac_save_LIBS="$LIBS"
1422 LIBS="$LIBS $LEXLIB"
1423 cat > conftest.$ac_ext <<EOF
1424 #line 1425 "configure"
1425 #include "confdefs.h"
1426 `cat $LEX_OUTPUT_ROOT.c`
1431 if { (eval echo configure:1432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1433 ac_cv_prog_lex_yytext_pointer=yes
1435 echo "configure: failed program was:" >&5
1436 cat conftest.$ac_ext >&5
1439 LIBS="$ac_save_LIBS"
1440 rm -f "${LEX_OUTPUT_ROOT}.c"
1444 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1445 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1446 cat >> confdefs.h <<\EOF
1447 #define YYTEXT_POINTER 1
1452 # Find a good install program. We prefer a C program (faster),
1453 # so one script is as good as another. But avoid the broken or
1454 # incompatible versions:
1455 # SysV /etc/install, /usr/sbin/install
1456 # SunOS /usr/etc/install
1457 # IRIX /sbin/install
1459 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1460 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1461 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1462 # ./install, which can be erroneously created by make from ./install.sh.
1463 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1464 echo "configure:1465: checking for a BSD compatible install" >&5
1465 if test -z "$INSTALL"; then
1466 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1469 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1470 for ac_dir in $PATH; do
1471 # Account for people who put trailing slashes in PATH elements.
1473 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1475 # OSF1 and SCO ODT 3.0 have their own names for install.
1476 # Don't use installbsd from OSF since it installs stuff as root
1478 for ac_prog in ginstall scoinst install; do
1479 if test -f $ac_dir/$ac_prog; then
1480 if test $ac_prog = install &&
1481 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1482 # AIX install. It has an incompatible calling convention.
1485 ac_cv_path_install="$ac_dir/$ac_prog -c"
1496 if test "${ac_cv_path_install+set}" = set; then
1497 INSTALL="$ac_cv_path_install"
1499 # As a last resort, use the slow shell script. We don't cache a
1500 # path for INSTALL within a source directory, because that will
1501 # break other packages using the cache if that directory is
1502 # removed, or if the path is relative.
1503 INSTALL="$ac_install_sh"
1506 echo "$ac_t""$INSTALL" 1>&6
1508 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1509 # It thinks the first close brace ends the variable substitution.
1510 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1512 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1514 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1516 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1517 echo "configure:1518: checking whether ln -s works" >&5
1518 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1522 if ln -s X conftestdata 2>/dev/null
1525 ac_cv_prog_LN_S="ln -s"
1530 LN_S="$ac_cv_prog_LN_S"
1531 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1532 echo "$ac_t""yes" 1>&6
1534 echo "$ac_t""no" 1>&6
1537 # Extract the first word of "ranlib", so it can be a program name with args.
1538 set dummy ranlib; ac_word=$2
1539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1540 echo "configure:1541: checking for $ac_word" >&5
1541 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1544 if test -n "$RANLIB"; then
1545 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1549 for ac_dir in $ac_dummy; do
1550 test -z "$ac_dir" && ac_dir=.
1551 if test -f $ac_dir/$ac_word; then
1552 ac_cv_prog_RANLIB="ranlib"
1557 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1560 RANLIB="$ac_cv_prog_RANLIB"
1561 if test -n "$RANLIB"; then
1562 echo "$ac_t""$RANLIB" 1>&6
1564 echo "$ac_t""no" 1>&6
1567 for ac_prog in 'bison -y' byacc
1569 # Extract the first word of "$ac_prog", so it can be a program name with args.
1570 set dummy $ac_prog; ac_word=$2
1571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1572 echo "configure:1573: checking for $ac_word" >&5
1573 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 if test -n "$YACC"; then
1577 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1581 for ac_dir in $ac_dummy; do
1582 test -z "$ac_dir" && ac_dir=.
1583 if test -f $ac_dir/$ac_word; then
1584 ac_cv_prog_YACC="$ac_prog"
1591 YACC="$ac_cv_prog_YACC"
1592 if test -n "$YACC"; then
1593 echo "$ac_t""$YACC" 1>&6
1595 echo "$ac_t""no" 1>&6
1598 test -n "$YACC" && break
1600 test -n "$YACC" || YACC="yacc"
1602 for ac_prog in gawk mawk nawk awk
1604 # Extract the first word of "$ac_prog", so it can be a program name with args.
1605 set dummy $ac_prog; ac_word=$2
1606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1607 echo "configure:1608: checking for $ac_word" >&5
1608 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1611 if test -n "$AWK"; then
1612 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1616 for ac_dir in $ac_dummy; do
1617 test -z "$ac_dir" && ac_dir=.
1618 if test -f $ac_dir/$ac_word; then
1619 ac_cv_prog_AWK="$ac_prog"
1626 AWK="$ac_cv_prog_AWK"
1627 if test -n "$AWK"; then
1628 echo "$ac_t""$AWK" 1>&6
1630 echo "$ac_t""no" 1>&6
1633 test -n "$AWK" && break
1637 # Extract the first word of "xml2-config", so it can be a program name with args.
1638 set dummy xml2-config; ac_word=$2
1639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1640 echo "configure:1641: checking for $ac_word" >&5
1641 if eval "test \"`echo '$''{'ac_cv_path_XML_CONFIG'+set}'`\" = set"; then
1642 echo $ac_n "(cached) $ac_c" 1>&6
1644 case "$XML_CONFIG" in
1646 ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
1649 ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a dos path.
1652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1654 for ac_dir in $ac_dummy; do
1655 test -z "$ac_dir" && ac_dir=.
1656 if test -f $ac_dir/$ac_word; then
1657 ac_cv_path_XML_CONFIG="$ac_dir/$ac_word"
1662 test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
1666 XML_CONFIG="$ac_cv_path_XML_CONFIG"
1667 if test -n "$XML_CONFIG"; then
1668 echo "$ac_t""$XML_CONFIG" 1>&6
1670 echo "$ac_t""no" 1>&6
1674 if test $XML_CONFIG = "no"
1676 echo "XML library not found (see http://xmlsoft.org/)."
1681 # If we find X, set shell vars x_includes and x_libraries to the
1682 # paths, otherwise set no_x=yes.
1683 # Uses ac_ vars as temps to allow command line to override cache and checks.
1684 # --without-x overrides everything else, but does not touch the cache.
1685 echo $ac_n "checking for X""... $ac_c" 1>&6
1686 echo "configure:1687: checking for X" >&5
1688 # Check whether --with-x or --without-x was given.
1689 if test "${with_x+set}" = set; then
1694 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1695 if test "x$with_x" = xno; then
1696 # The user explicitly disabled X.
1699 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1700 # Both variables are already set.
1703 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1706 # One or both of the vars are not set, and there is no cached value.
1707 ac_x_includes=NO ac_x_libraries=NO
1709 if mkdir conftestdir; then
1711 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1712 cat > Imakefile <<'EOF'
1714 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1716 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1717 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1718 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1719 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1720 for ac_extension in a so sl; do
1721 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1722 test -f $ac_im_libdir/libX11.$ac_extension; then
1723 ac_im_usrlibdir=$ac_im_libdir; break
1726 # Screen out bogus values from the imake configuration. They are
1727 # bogus both because they are the default anyway, and because
1728 # using them would break gcc on systems where it needs fixed includes.
1729 case "$ac_im_incroot" in
1731 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1733 case "$ac_im_usrlibdir" in
1735 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1742 if test "$ac_x_includes" = NO; then
1743 # Guess where to find include files, by looking for this one X11 .h file.
1744 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1746 # First, try using that file with no special directory specified.
1747 cat > conftest.$ac_ext <<EOF
1748 #line 1749 "configure"
1749 #include "confdefs.h"
1750 #include <$x_direct_test_include>
1752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1753 { (eval echo configure:1754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1755 if test -z "$ac_err"; then
1757 # We can compile using X headers with no special include directory.
1761 echo "configure: failed program was:" >&5
1762 cat conftest.$ac_ext >&5
1764 # Look for the header file in a standard set of common directories.
1765 # Check X11 before X11Rn because it is often a symlink to the current release.
1768 /usr/X11R6/include \
1769 /usr/X11R5/include \
1770 /usr/X11R4/include \
1773 /usr/include/X11R6 \
1774 /usr/include/X11R5 \
1775 /usr/include/X11R4 \
1777 /usr/local/X11/include \
1778 /usr/local/X11R6/include \
1779 /usr/local/X11R5/include \
1780 /usr/local/X11R4/include \
1782 /usr/local/include/X11 \
1783 /usr/local/include/X11R6 \
1784 /usr/local/include/X11R5 \
1785 /usr/local/include/X11R4 \
1789 /usr/XFree86/include/X11 \
1792 /usr/local/include \
1793 /usr/unsupported/include \
1794 /usr/athena/include \
1795 /usr/local/x11r5/include \
1796 /usr/lpp/Xamples/include \
1798 /usr/openwin/include \
1799 /usr/openwin/share/include \
1802 if test -r "$ac_dir/$x_direct_test_include"; then
1803 ac_x_includes=$ac_dir
1809 fi # $ac_x_includes = NO
1811 if test "$ac_x_libraries" = NO; then
1812 # Check for the libraries.
1814 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1815 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1817 # See if we find them without any special options.
1818 # Don't add to $LIBS permanently.
1819 ac_save_LIBS="$LIBS"
1820 LIBS="-l$x_direct_test_library $LIBS"
1821 cat > conftest.$ac_ext <<EOF
1822 #line 1823 "configure"
1823 #include "confdefs.h"
1826 ${x_direct_test_function}()
1829 if { (eval echo configure:1830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1831 LIBS="$ac_save_LIBS"
1832 # We can link X programs with no special library path.
1835 echo "configure: failed program was:" >&5
1836 cat conftest.$ac_ext >&5
1838 LIBS="$ac_save_LIBS"
1839 # First see if replacing the include by lib works.
1840 # Check X11 before X11Rn because it is often a symlink to the current release.
1841 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1852 /usr/local/X11/lib \
1853 /usr/local/X11R6/lib \
1854 /usr/local/X11R5/lib \
1855 /usr/local/X11R4/lib \
1857 /usr/local/lib/X11 \
1858 /usr/local/lib/X11R6 \
1859 /usr/local/lib/X11R5 \
1860 /usr/local/lib/X11R4 \
1864 /usr/XFree86/lib/X11 \
1868 /usr/unsupported/lib \
1870 /usr/local/x11r5/lib \
1871 /usr/lpp/Xamples/lib \
1875 /usr/openwin/share/lib \
1878 for ac_extension in a so sl; do
1879 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1880 ac_x_libraries=$ac_dir
1887 fi # $ac_x_libraries = NO
1889 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1890 # Didn't find X anywhere. Cache the known absence of X.
1891 ac_cv_have_x="have_x=no"
1893 # Record where we found X for the cache.
1894 ac_cv_have_x="have_x=yes \
1895 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1899 eval "$ac_cv_have_x"
1902 if test "$have_x" != yes; then
1903 echo "$ac_t""$have_x" 1>&6
1906 # If each of the values was on the command line, it overrides each guess.
1907 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1908 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1909 # Update the cache value to reflect the command line values.
1910 ac_cv_have_x="have_x=yes \
1911 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1912 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1915 if test "$no_x" = yes; then
1916 # Not all programs may use this symbol, but it does not hurt to define it.
1917 cat >> confdefs.h <<\EOF
1918 #define X_DISPLAY_MISSING 1
1921 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1923 if test -n "$x_includes"; then
1924 X_CFLAGS="$X_CFLAGS -I$x_includes"
1927 # It would also be nice to do this for all -L options, not just this one.
1928 if test -n "$x_libraries"; then
1929 X_LIBS="$X_LIBS -L$x_libraries"
1930 # For Solaris; some versions of Sun CC require a space after -R and
1931 # others require no space. Words are not sufficient . . . .
1932 case "`(uname -sr) 2>/dev/null`" in
1934 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1935 echo "configure:1936: checking whether -R must be followed by a space" >&5
1936 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1937 cat > conftest.$ac_ext <<EOF
1938 #line 1939 "configure"
1939 #include "confdefs.h"
1945 if { (eval echo configure:1946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1949 echo "configure: failed program was:" >&5
1950 cat conftest.$ac_ext >&5
1955 if test $ac_R_nospace = yes; then
1956 echo "$ac_t""no" 1>&6
1957 X_LIBS="$X_LIBS -R$x_libraries"
1959 LIBS="$ac_xsave_LIBS -R $x_libraries"
1960 cat > conftest.$ac_ext <<EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1968 if { (eval echo configure:1969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1972 echo "configure: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1978 if test $ac_R_space = yes; then
1979 echo "$ac_t""yes" 1>&6
1980 X_LIBS="$X_LIBS -R $x_libraries"
1982 echo "$ac_t""neither works" 1>&6
1985 LIBS="$ac_xsave_LIBS"
1989 # Check for system-dependent libraries X programs must link with.
1990 # Do this before checking for the system-independent R6 libraries
1991 # (-lICE), since we may need -lsocket or whatever for X linking.
1993 if test "$ISC" = yes; then
1994 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1996 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1997 # libraries were built with DECnet support. And karl@cs.umb.edu says
1998 # the Alpha needs dnet_stub (dnet does not exist).
1999 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2000 echo "configure:2001: checking for dnet_ntoa in -ldnet" >&5
2001 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2005 ac_save_LIBS="$LIBS"
2007 cat > conftest.$ac_ext <<EOF
2008 #line 2009 "configure"
2009 #include "confdefs.h"
2010 /* Override any gcc2 internal prototype to avoid an error. */
2011 /* We use char because int might match the return type of a gcc2
2012 builtin and then its argument prototype would still apply. */
2019 if { (eval echo configure:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2021 eval "ac_cv_lib_$ac_lib_var=yes"
2023 echo "configure: failed program was:" >&5
2024 cat conftest.$ac_ext >&5
2026 eval "ac_cv_lib_$ac_lib_var=no"
2029 LIBS="$ac_save_LIBS"
2032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2033 echo "$ac_t""yes" 1>&6
2034 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2036 echo "$ac_t""no" 1>&6
2039 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2040 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2041 echo "configure:2042: checking for dnet_ntoa in -ldnet_stub" >&5
2042 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2043 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2046 ac_save_LIBS="$LIBS"
2047 LIBS="-ldnet_stub $LIBS"
2048 cat > conftest.$ac_ext <<EOF
2049 #line 2050 "configure"
2050 #include "confdefs.h"
2051 /* Override any gcc2 internal prototype to avoid an error. */
2052 /* We use char because int might match the return type of a gcc2
2053 builtin and then its argument prototype would still apply. */
2060 if { (eval echo configure:2061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2062 eval "ac_cv_lib_$ac_lib_var=yes"
2064 echo "configure: failed program was:" >&5
2065 cat conftest.$ac_ext >&5
2067 eval "ac_cv_lib_$ac_lib_var=no"
2070 LIBS="$ac_save_LIBS"
2073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2074 echo "$ac_t""yes" 1>&6
2075 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2077 echo "$ac_t""no" 1>&6
2082 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2083 # to get the SysV transport functions.
2084 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2086 # The nsl library prevents programs from opening the X display
2087 # on Irix 5.2, according to dickey@clark.net.
2088 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2089 echo "configure:2090: checking for gethostbyname" >&5
2090 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2093 cat > conftest.$ac_ext <<EOF
2094 #line 2095 "configure"
2095 #include "confdefs.h"
2096 /* System header to define __stub macros and hopefully few prototypes,
2097 which can conflict with char gethostbyname(); below. */
2099 /* Override any gcc2 internal prototype to avoid an error. */
2100 /* We use char because int might match the return type of a gcc2
2101 builtin and then its argument prototype would still apply. */
2102 char gethostbyname();
2106 /* The GNU C library defines this for functions which it implements
2107 to always fail with ENOSYS. Some functions are actually named
2108 something starting with __ and the normal name is an alias. */
2109 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2117 if { (eval echo configure:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2119 eval "ac_cv_func_gethostbyname=yes"
2121 echo "configure: failed program was:" >&5
2122 cat conftest.$ac_ext >&5
2124 eval "ac_cv_func_gethostbyname=no"
2129 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2130 echo "$ac_t""yes" 1>&6
2133 echo "$ac_t""no" 1>&6
2136 if test $ac_cv_func_gethostbyname = no; then
2137 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2138 echo "configure:2139: checking for gethostbyname in -lnsl" >&5
2139 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2141 echo $ac_n "(cached) $ac_c" 1>&6
2143 ac_save_LIBS="$LIBS"
2145 cat > conftest.$ac_ext <<EOF
2146 #line 2147 "configure"
2147 #include "confdefs.h"
2148 /* Override any gcc2 internal prototype to avoid an error. */
2149 /* We use char because int might match the return type of a gcc2
2150 builtin and then its argument prototype would still apply. */
2151 char gethostbyname();
2157 if { (eval echo configure:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2159 eval "ac_cv_lib_$ac_lib_var=yes"
2161 echo "configure: failed program was:" >&5
2162 cat conftest.$ac_ext >&5
2164 eval "ac_cv_lib_$ac_lib_var=no"
2167 LIBS="$ac_save_LIBS"
2170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2171 echo "$ac_t""yes" 1>&6
2172 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2174 echo "$ac_t""no" 1>&6
2179 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2180 # socket/setsockopt and other routines are undefined under SCO ODT
2181 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2182 # on later versions), says simon@lia.di.epfl.ch: it contains
2183 # gethostby* variants that don't use the nameserver (or something).
2184 # -lsocket must be given before -lnsl if both are needed.
2185 # We assume that if connect needs -lnsl, so does gethostbyname.
2186 echo $ac_n "checking for connect""... $ac_c" 1>&6
2187 echo "configure:2188: checking for connect" >&5
2188 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6
2191 cat > conftest.$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2194 /* System header to define __stub macros and hopefully few prototypes,
2195 which can conflict with char connect(); below. */
2197 /* Override any gcc2 internal prototype to avoid an error. */
2198 /* We use char because int might match the return type of a gcc2
2199 builtin and then its argument prototype would still apply. */
2204 /* The GNU C library defines this for functions which it implements
2205 to always fail with ENOSYS. Some functions are actually named
2206 something starting with __ and the normal name is an alias. */
2207 #if defined (__stub_connect) || defined (__stub___connect)
2215 if { (eval echo configure:2216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2217 eval "ac_cv_func_connect=yes"
2219 echo "configure: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2222 eval "ac_cv_func_connect=no"
2227 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2228 echo "$ac_t""yes" 1>&6
2231 echo "$ac_t""no" 1>&6
2234 if test $ac_cv_func_connect = no; then
2235 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2236 echo "configure:2237: checking for connect in -lsocket" >&5
2237 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2239 echo $ac_n "(cached) $ac_c" 1>&6
2241 ac_save_LIBS="$LIBS"
2242 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2243 cat > conftest.$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2246 /* Override any gcc2 internal prototype to avoid an error. */
2247 /* We use char because int might match the return type of a gcc2
2248 builtin and then its argument prototype would still apply. */
2255 if { (eval echo configure:2256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2257 eval "ac_cv_lib_$ac_lib_var=yes"
2259 echo "configure: failed program was:" >&5
2260 cat conftest.$ac_ext >&5
2262 eval "ac_cv_lib_$ac_lib_var=no"
2265 LIBS="$ac_save_LIBS"
2268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2269 echo "$ac_t""yes" 1>&6
2270 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2272 echo "$ac_t""no" 1>&6
2277 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2278 echo $ac_n "checking for remove""... $ac_c" 1>&6
2279 echo "configure:2280: checking for remove" >&5
2280 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2281 echo $ac_n "(cached) $ac_c" 1>&6
2283 cat > conftest.$ac_ext <<EOF
2284 #line 2285 "configure"
2285 #include "confdefs.h"
2286 /* System header to define __stub macros and hopefully few prototypes,
2287 which can conflict with char remove(); below. */
2289 /* Override any gcc2 internal prototype to avoid an error. */
2290 /* We use char because int might match the return type of a gcc2
2291 builtin and then its argument prototype would still apply. */
2296 /* The GNU C library defines this for functions which it implements
2297 to always fail with ENOSYS. Some functions are actually named
2298 something starting with __ and the normal name is an alias. */
2299 #if defined (__stub_remove) || defined (__stub___remove)
2307 if { (eval echo configure:2308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2309 eval "ac_cv_func_remove=yes"
2311 echo "configure: failed program was:" >&5
2312 cat conftest.$ac_ext >&5
2314 eval "ac_cv_func_remove=no"
2319 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2320 echo "$ac_t""yes" 1>&6
2323 echo "$ac_t""no" 1>&6
2326 if test $ac_cv_func_remove = no; then
2327 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2328 echo "configure:2329: checking for remove in -lposix" >&5
2329 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2333 ac_save_LIBS="$LIBS"
2334 LIBS="-lposix $LIBS"
2335 cat > conftest.$ac_ext <<EOF
2336 #line 2337 "configure"
2337 #include "confdefs.h"
2338 /* Override any gcc2 internal prototype to avoid an error. */
2339 /* We use char because int might match the return type of a gcc2
2340 builtin and then its argument prototype would still apply. */
2347 if { (eval echo configure:2348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2349 eval "ac_cv_lib_$ac_lib_var=yes"
2351 echo "configure: failed program was:" >&5
2352 cat conftest.$ac_ext >&5
2354 eval "ac_cv_lib_$ac_lib_var=no"
2357 LIBS="$ac_save_LIBS"
2360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2361 echo "$ac_t""yes" 1>&6
2362 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2364 echo "$ac_t""no" 1>&6
2369 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2370 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2371 echo "configure:2372: checking for shmat" >&5
2372 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2373 echo $ac_n "(cached) $ac_c" 1>&6
2375 cat > conftest.$ac_ext <<EOF
2376 #line 2377 "configure"
2377 #include "confdefs.h"
2378 /* System header to define __stub macros and hopefully few prototypes,
2379 which can conflict with char shmat(); below. */
2381 /* Override any gcc2 internal prototype to avoid an error. */
2382 /* We use char because int might match the return type of a gcc2
2383 builtin and then its argument prototype would still apply. */
2388 /* The GNU C library defines this for functions which it implements
2389 to always fail with ENOSYS. Some functions are actually named
2390 something starting with __ and the normal name is an alias. */
2391 #if defined (__stub_shmat) || defined (__stub___shmat)
2399 if { (eval echo configure:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2401 eval "ac_cv_func_shmat=yes"
2403 echo "configure: failed program was:" >&5
2404 cat conftest.$ac_ext >&5
2406 eval "ac_cv_func_shmat=no"
2411 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2412 echo "$ac_t""yes" 1>&6
2415 echo "$ac_t""no" 1>&6
2418 if test $ac_cv_func_shmat = no; then
2419 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2420 echo "configure:2421: checking for shmat in -lipc" >&5
2421 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2423 echo $ac_n "(cached) $ac_c" 1>&6
2425 ac_save_LIBS="$LIBS"
2427 cat > conftest.$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2430 /* Override any gcc2 internal prototype to avoid an error. */
2431 /* We use char because int might match the return type of a gcc2
2432 builtin and then its argument prototype would still apply. */
2439 if { (eval echo configure:2440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2441 eval "ac_cv_lib_$ac_lib_var=yes"
2443 echo "configure: failed program was:" >&5
2444 cat conftest.$ac_ext >&5
2446 eval "ac_cv_lib_$ac_lib_var=no"
2449 LIBS="$ac_save_LIBS"
2452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2453 echo "$ac_t""yes" 1>&6
2454 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2456 echo "$ac_t""no" 1>&6
2462 # Check for libraries that X11R6 Xt/Xaw programs need.
2463 ac_save_LDFLAGS="$LDFLAGS"
2464 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2465 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2466 # check for ICE first), but we must link in the order -lSM -lICE or
2467 # we get undefined symbols. So assume we have SM if we have ICE.
2468 # These have to be linked with before -lX11, unlike the other
2469 # libraries we check for below, so use a different variable.
2470 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2471 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2472 echo "configure:2473: checking for IceConnectionNumber in -lICE" >&5
2473 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2474 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2477 ac_save_LIBS="$LIBS"
2478 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
2479 cat > conftest.$ac_ext <<EOF
2480 #line 2481 "configure"
2481 #include "confdefs.h"
2482 /* Override any gcc2 internal prototype to avoid an error. */
2483 /* We use char because int might match the return type of a gcc2
2484 builtin and then its argument prototype would still apply. */
2485 char IceConnectionNumber();
2488 IceConnectionNumber()
2491 if { (eval echo configure:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2493 eval "ac_cv_lib_$ac_lib_var=yes"
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2498 eval "ac_cv_lib_$ac_lib_var=no"
2501 LIBS="$ac_save_LIBS"
2504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2505 echo "$ac_t""yes" 1>&6
2506 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2508 echo "$ac_t""no" 1>&6
2511 LDFLAGS="$ac_save_LDFLAGS"
2516 XML_CFLAGS=`$XML_CONFIG --cflags`
2517 XML_LFLAGS=`$XML_CONFIG --libs`
2519 LIBS="$LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
2520 LDFLAGS="$LDFLAGS -L/usr/local/lib $XML_LFLAGS"
2521 CFLAGS="$CFLAGS $X_CFLAGS $XML_CFLAGS"
2522 CXXFLAGS="$CXXFLAGS $X_CFLAGS $XML_CFLAGS"
2524 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
2525 echo "configure:2526: checking for XOpenDisplay in -lX11" >&5
2526 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
2527 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2528 echo $ac_n "(cached) $ac_c" 1>&6
2530 ac_save_LIBS="$LIBS"
2532 cat > conftest.$ac_ext <<EOF
2533 #line 2534 "configure"
2534 #include "confdefs.h"
2535 /* Override any gcc2 internal prototype to avoid an error. */
2536 /* We use char because int might match the return type of a gcc2
2537 builtin and then its argument prototype would still apply. */
2538 char XOpenDisplay();
2544 if { (eval echo configure:2545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2546 eval "ac_cv_lib_$ac_lib_var=yes"
2548 echo "configure: failed program was:" >&5
2549 cat conftest.$ac_ext >&5
2551 eval "ac_cv_lib_$ac_lib_var=no"
2554 LIBS="$ac_save_LIBS"
2557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2558 echo "$ac_t""yes" 1>&6
2559 ac_tr_lib=HAVE_LIB`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2560 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2561 cat >> confdefs.h <<EOF
2562 #define $ac_tr_lib 1
2568 echo "$ac_t""no" 1>&6
2571 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2572 echo "configure:2573: checking for XpmCreatePixmapFromData in -lXpm" >&5
2573 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2574 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2575 echo $ac_n "(cached) $ac_c" 1>&6
2577 ac_save_LIBS="$LIBS"
2579 cat > conftest.$ac_ext <<EOF
2580 #line 2581 "configure"
2581 #include "confdefs.h"
2582 /* Override any gcc2 internal prototype to avoid an error. */
2583 /* We use char because int might match the return type of a gcc2
2584 builtin and then its argument prototype would still apply. */
2585 char XpmCreatePixmapFromData();
2588 XpmCreatePixmapFromData()
2591 if { (eval echo configure:2592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2593 eval "ac_cv_lib_$ac_lib_var=yes"
2595 echo "configure: failed program was:" >&5
2596 cat conftest.$ac_ext >&5
2598 eval "ac_cv_lib_$ac_lib_var=no"
2601 LIBS="$ac_save_LIBS"
2604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2605 echo "$ac_t""yes" 1>&6
2606 ac_tr_lib=HAVE_LIB`echo Xpm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2607 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2608 cat >> confdefs.h <<EOF
2609 #define $ac_tr_lib 1
2615 echo "$ac_t""no" 1>&6
2618 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2619 echo "configure:2620: checking for pthread_create in -lpthread" >&5
2620 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2621 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2622 echo $ac_n "(cached) $ac_c" 1>&6
2624 ac_save_LIBS="$LIBS"
2625 LIBS="-lpthread $LIBS"
2626 cat > conftest.$ac_ext <<EOF
2627 #line 2628 "configure"
2628 #include "confdefs.h"
2629 /* Override any gcc2 internal prototype to avoid an error. */
2630 /* We use char because int might match the return type of a gcc2
2631 builtin and then its argument prototype would still apply. */
2632 char pthread_create();
2638 if { (eval echo configure:2639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2640 eval "ac_cv_lib_$ac_lib_var=yes"
2642 echo "configure: failed program was:" >&5
2643 cat conftest.$ac_ext >&5
2645 eval "ac_cv_lib_$ac_lib_var=no"
2648 LIBS="$ac_save_LIBS"
2651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2652 echo "$ac_t""yes" 1>&6
2653 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2654 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2655 cat >> confdefs.h <<EOF
2656 #define $ac_tr_lib 1
2659 LIBS="-lpthread $LIBS"
2662 echo "$ac_t""no" 1>&6
2665 echo $ac_n "checking for xmlParseFile in -lxml2""... $ac_c" 1>&6
2666 echo "configure:2667: checking for xmlParseFile in -lxml2" >&5
2667 ac_lib_var=`echo xml2'_'xmlParseFile | sed 'y%./+-%__p_%'`
2668 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2669 echo $ac_n "(cached) $ac_c" 1>&6
2671 ac_save_LIBS="$LIBS"
2673 cat > conftest.$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2676 /* Override any gcc2 internal prototype to avoid an error. */
2677 /* We use char because int might match the return type of a gcc2
2678 builtin and then its argument prototype would still apply. */
2679 char xmlParseFile();
2685 if { (eval echo configure:2686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2687 eval "ac_cv_lib_$ac_lib_var=yes"
2689 echo "configure: failed program was:" >&5
2690 cat conftest.$ac_ext >&5
2692 eval "ac_cv_lib_$ac_lib_var=no"
2695 LIBS="$ac_save_LIBS"
2698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2699 echo "$ac_t""yes" 1>&6
2700 ac_tr_lib=HAVE_LIB`echo xml2 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2701 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2702 cat >> confdefs.h <<EOF
2703 #define $ac_tr_lib 1
2709 echo "$ac_t""no" 1>&6
2714 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2716 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2717 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2718 echo "configure:2719: checking for $ac_hdr that defines DIR" >&5
2719 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2720 echo $ac_n "(cached) $ac_c" 1>&6
2722 cat > conftest.$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2725 #include <sys/types.h>
2731 if { (eval echo configure:2732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2733 eval "ac_cv_header_dirent_$ac_safe=yes"
2735 echo "configure: failed program was:" >&5
2736 cat conftest.$ac_ext >&5
2738 eval "ac_cv_header_dirent_$ac_safe=no"
2742 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2743 echo "$ac_t""yes" 1>&6
2744 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2745 cat >> confdefs.h <<EOF
2746 #define $ac_tr_hdr 1
2748 ac_header_dirent=$ac_hdr; break
2750 echo "$ac_t""no" 1>&6
2753 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2754 if test $ac_header_dirent = dirent.h; then
2755 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2756 echo "configure:2757: checking for opendir in -ldir" >&5
2757 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2758 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2761 ac_save_LIBS="$LIBS"
2763 cat > conftest.$ac_ext <<EOF
2764 #line 2765 "configure"
2765 #include "confdefs.h"
2766 /* Override any gcc2 internal prototype to avoid an error. */
2767 /* We use char because int might match the return type of a gcc2
2768 builtin and then its argument prototype would still apply. */
2775 if { (eval echo configure:2776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2777 eval "ac_cv_lib_$ac_lib_var=yes"
2779 echo "configure: failed program was:" >&5
2780 cat conftest.$ac_ext >&5
2782 eval "ac_cv_lib_$ac_lib_var=no"
2785 LIBS="$ac_save_LIBS"
2788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2789 echo "$ac_t""yes" 1>&6
2792 echo "$ac_t""no" 1>&6
2796 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2797 echo "configure:2798: checking for opendir in -lx" >&5
2798 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2799 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2800 echo $ac_n "(cached) $ac_c" 1>&6
2802 ac_save_LIBS="$LIBS"
2804 cat > conftest.$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2807 /* Override any gcc2 internal prototype to avoid an error. */
2808 /* We use char because int might match the return type of a gcc2
2809 builtin and then its argument prototype would still apply. */
2816 if { (eval echo configure:2817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2818 eval "ac_cv_lib_$ac_lib_var=yes"
2820 echo "configure: failed program was:" >&5
2821 cat conftest.$ac_ext >&5
2823 eval "ac_cv_lib_$ac_lib_var=no"
2826 LIBS="$ac_save_LIBS"
2829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2830 echo "$ac_t""yes" 1>&6
2833 echo "$ac_t""no" 1>&6
2838 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2839 echo "configure:2840: checking for ANSI C header files" >&5
2840 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2841 echo $ac_n "(cached) $ac_c" 1>&6
2843 cat > conftest.$ac_ext <<EOF
2844 #line 2845 "configure"
2845 #include "confdefs.h"
2851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2852 { (eval echo configure:2853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2854 if test -z "$ac_err"; then
2856 ac_cv_header_stdc=yes
2859 echo "configure: failed program was:" >&5
2860 cat conftest.$ac_ext >&5
2862 ac_cv_header_stdc=no
2866 if test $ac_cv_header_stdc = yes; then
2867 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2868 cat > conftest.$ac_ext <<EOF
2869 #line 2870 "configure"
2870 #include "confdefs.h"
2873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2874 egrep "memchr" >/dev/null 2>&1; then
2878 ac_cv_header_stdc=no
2884 if test $ac_cv_header_stdc = yes; then
2885 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2886 cat > conftest.$ac_ext <<EOF
2887 #line 2888 "configure"
2888 #include "confdefs.h"
2891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2892 egrep "free" >/dev/null 2>&1; then
2896 ac_cv_header_stdc=no
2902 if test $ac_cv_header_stdc = yes; then
2903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2904 if test "$cross_compiling" = yes; then
2907 cat > conftest.$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2911 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2912 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2913 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2914 int main () { int i; for (i = 0; i < 256; i++)
2915 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2919 if { (eval echo configure:2920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2923 echo "configure: failed program was:" >&5
2924 cat conftest.$ac_ext >&5
2926 ac_cv_header_stdc=no
2934 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2935 if test $ac_cv_header_stdc = yes; then
2936 cat >> confdefs.h <<\EOF
2937 #define STDC_HEADERS 1
2942 for ac_hdr in unistd.h
2944 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2945 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2946 echo "configure:2947: checking for $ac_hdr" >&5
2947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2950 cat > conftest.$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2956 { (eval echo configure:2957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2958 if test -z "$ac_err"; then
2960 eval "ac_cv_header_$ac_safe=yes"
2963 echo "configure: failed program was:" >&5
2964 cat conftest.$ac_ext >&5
2966 eval "ac_cv_header_$ac_safe=no"
2970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2971 echo "$ac_t""yes" 1>&6
2972 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2973 cat >> confdefs.h <<EOF
2974 #define $ac_tr_hdr 1
2978 echo "$ac_t""no" 1>&6
2983 echo $ac_n "checking for working const""... $ac_c" 1>&6
2984 echo "configure:2985: checking for working const" >&5
2985 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2986 echo $ac_n "(cached) $ac_c" 1>&6
2988 cat > conftest.$ac_ext <<EOF
2989 #line 2990 "configure"
2990 #include "confdefs.h"
2994 /* Ultrix mips cc rejects this. */
2995 typedef int charset[2]; const charset x;
2996 /* SunOS 4.1.1 cc rejects this. */
2997 char const *const *ccp;
2999 /* NEC SVR4.0.2 mips cc rejects this. */
3000 struct point {int x, y;};
3001 static struct point const zero = {0,0};
3002 /* AIX XL C 1.02.0.0 rejects this.
3003 It does not let you subtract one const X* pointer from another in an arm
3004 of an if-expression whose if-part is not a constant expression */
3005 const char *g = "string";
3006 ccp = &g + (g ? g-g : 0);
3007 /* HPUX 7.0 cc rejects these. */
3010 ccp = (char const *const *) p;
3011 { /* SCO 3.2v4 cc rejects this. */
3013 char const *s = 0 ? (char *) 0 : (char const *) 0;
3017 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3019 const int *foo = &x[0];
3022 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3023 typedef const int *iptr;
3027 { /* AIX XL C 1.02.0.0 rejects this saying
3028 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3029 struct s { int j; const int *ap[3]; };
3030 struct s *b; b->j = 5;
3032 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3038 if { (eval echo configure:3039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3042 echo "configure: failed program was:" >&5
3043 cat conftest.$ac_ext >&5
3050 echo "$ac_t""$ac_cv_c_const" 1>&6
3051 if test $ac_cv_c_const = no; then
3052 cat >> confdefs.h <<\EOF
3059 for ac_func in strtod strtol strtoul
3061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3062 echo "configure:3063: checking for $ac_func" >&5
3063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3066 cat > conftest.$ac_ext <<EOF
3067 #line 3068 "configure"
3068 #include "confdefs.h"
3069 /* System header to define __stub macros and hopefully few prototypes,
3070 which can conflict with char $ac_func(); below. */
3072 /* Override any gcc2 internal prototype to avoid an error. */
3073 /* We use char because int might match the return type of a gcc2
3074 builtin and then its argument prototype would still apply. */
3079 /* The GNU C library defines this for functions which it implements
3080 to always fail with ENOSYS. Some functions are actually named
3081 something starting with __ and the normal name is an alias. */
3082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3090 if { (eval echo configure:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3092 eval "ac_cv_func_$ac_func=yes"
3094 echo "configure: failed program was:" >&5
3095 cat conftest.$ac_ext >&5
3097 eval "ac_cv_func_$ac_func=no"
3102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3103 echo "$ac_t""yes" 1>&6
3104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3105 cat >> confdefs.h <<EOF
3106 #define $ac_tr_func 1
3110 echo "$ac_t""no" 1>&6
3116 cat > confcache <<\EOF
3117 # This file is a shell script that caches the results of configure
3118 # tests run on this system so they can be shared between configure
3119 # scripts and configure runs. It is not useful on other systems.
3120 # If it contains results you don't want to keep, you may remove or edit it.
3122 # By default, configure uses ./config.cache as the cache file,
3123 # creating it if it does not exist already. You can give configure
3124 # the --cache-file=FILE option to use a different cache file; that is
3125 # what configure does when it calls configure scripts in
3126 # subdirectories, so they share the cache.
3127 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3128 # config.status only pays attention to the cache file if you give it the
3129 # --recheck option to rerun configure.
3132 # The following way of writing the cache mishandles newlines in values,
3133 # but we know of no workaround that is simple, portable, and efficient.
3134 # So, don't put newlines in cache variables' values.
3135 # Ultrix sh set writes to stderr and can't be redirected directly,
3136 # and sets the high bit in the cache file unless we assign to the vars.
3138 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3140 # `set' does not quote correctly, so add quotes (double-quote substitution
3141 # turns \\\\ into \\, and sed turns \\ into \).
3143 -e "s/'/'\\\\''/g" \
3144 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3147 # `set' quotes correctly as required by POSIX, so do not add quotes.
3148 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3151 if cmp -s $cache_file confcache; then
3154 if test -w $cache_file; then
3155 echo "updating cache $cache_file"
3156 cat confcache > $cache_file
3158 echo "not updating unwritable cache $cache_file"
3163 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3165 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3166 # Let make expand exec_prefix.
3167 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3169 # Any assignment to VPATH causes Sun make to only execute
3170 # the first set of double-colon rules, so remove it if not needed.
3171 # If there is a colon in the path, we need to keep it.
3172 if test "x$srcdir" = x.; then
3173 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3176 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3178 # Transform confdefs.h into DEFS.
3179 # Protect against shell expansion while executing Makefile rules.
3180 # Protect against Makefile macro expansion.
3181 cat > conftest.defs <<\EOF
3182 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3183 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
3188 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3192 # Without the "./", some shells look in PATH for config.status.
3193 : ${CONFIG_STATUS=./config.status}
3195 echo creating $CONFIG_STATUS
3196 rm -f $CONFIG_STATUS
3197 cat > $CONFIG_STATUS <<EOF
3199 # Generated automatically by configure.
3200 # Run this file to recreate the current configuration.
3201 # This directory was configured as follows,
3202 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3204 # $0 $ac_configure_args
3206 # Compiler output produced by configure, useful for debugging
3207 # configure, is in ./config.log if it exists.
3209 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3212 case "\$ac_option" in
3213 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3214 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3215 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3216 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3217 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3219 -help | --help | --hel | --he | --h)
3220 echo "\$ac_cs_usage"; exit 0 ;;
3221 *) echo "\$ac_cs_usage"; exit 1 ;;
3225 ac_given_srcdir=$srcdir
3226 ac_given_INSTALL="$INSTALL"
3228 trap 'rm -fr `echo "Makefile src/Makefile demos/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3230 cat >> $CONFIG_STATUS <<EOF
3232 # Protect against being on the right side of a sed subst in config.status.
3233 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3234 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3238 s%@CFLAGS@%$CFLAGS%g
3239 s%@CPPFLAGS@%$CPPFLAGS%g
3240 s%@CXXFLAGS@%$CXXFLAGS%g
3241 s%@FFLAGS@%$FFLAGS%g
3243 s%@LDFLAGS@%$LDFLAGS%g
3245 s%@exec_prefix@%$exec_prefix%g
3246 s%@prefix@%$prefix%g
3247 s%@program_transform_name@%$program_transform_name%g
3248 s%@bindir@%$bindir%g
3249 s%@sbindir@%$sbindir%g
3250 s%@libexecdir@%$libexecdir%g
3251 s%@datadir@%$datadir%g
3252 s%@sysconfdir@%$sysconfdir%g
3253 s%@sharedstatedir@%$sharedstatedir%g
3254 s%@localstatedir@%$localstatedir%g
3255 s%@libdir@%$libdir%g
3256 s%@includedir@%$includedir%g
3257 s%@oldincludedir@%$oldincludedir%g
3258 s%@infodir@%$infodir%g
3259 s%@mandir@%$mandir%g
3260 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3261 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3262 s%@INSTALL_DATA@%$INSTALL_DATA%g
3263 s%@PACKAGE@%$PACKAGE%g
3264 s%@VERSION@%$VERSION%g
3265 s%@ACLOCAL@%$ACLOCAL%g
3266 s%@AUTOCONF@%$AUTOCONF%g
3267 s%@AUTOMAKE@%$AUTOMAKE%g
3268 s%@AUTOHEADER@%$AUTOHEADER%g
3269 s%@MAKEINFO@%$MAKEINFO%g
3270 s%@SET_MAKE@%$SET_MAKE%g
3275 s%@LEXLIB@%$LEXLIB%g
3276 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
3278 s%@RANLIB@%$RANLIB%g
3281 s%@XML_CONFIG@%$XML_CONFIG%g
3282 s%@X_CFLAGS@%$X_CFLAGS%g
3283 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3284 s%@X_LIBS@%$X_LIBS%g
3285 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3290 cat >> $CONFIG_STATUS <<\EOF
3292 # Split the substitutions into bite-sized pieces for seds with
3293 # small command number limits, like on Digital OSF/1 and HP-UX.
3294 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3295 ac_file=1 # Number of current file.
3296 ac_beg=1 # First line for current file.
3297 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3300 while $ac_more_lines; do
3301 if test $ac_beg -gt 1; then
3302 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3304 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3306 if test ! -s conftest.s$ac_file; then
3308 rm -f conftest.s$ac_file
3310 if test -z "$ac_sed_cmds"; then
3311 ac_sed_cmds="sed -f conftest.s$ac_file"
3313 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3315 ac_file=`expr $ac_file + 1`
3317 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3320 if test -z "$ac_sed_cmds"; then
3325 cat >> $CONFIG_STATUS <<EOF
3327 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile demos/Makefile"}
3329 cat >> $CONFIG_STATUS <<\EOF
3330 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3331 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3333 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3334 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3335 *) ac_file_in="${ac_file}.in" ;;
3338 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3340 # Remove last slash and all that follows it. Not all systems have dirname.
3341 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3342 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3343 # The file is in a subdirectory.
3344 test ! -d "$ac_dir" && mkdir "$ac_dir"
3345 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3346 # A "../" for each directory in $ac_dir_suffix.
3347 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3349 ac_dir_suffix= ac_dots=
3352 case "$ac_given_srcdir" in
3354 if test -z "$ac_dots"; then top_srcdir=.
3355 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3356 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3358 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3359 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3362 case "$ac_given_INSTALL" in
3363 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3364 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3367 echo creating "$ac_file"
3369 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3371 *Makefile*) ac_comsub="1i\\
3372 # $configure_input" ;;
3376 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3378 s%@configure_input@%$configure_input%g
3379 s%@srcdir@%$srcdir%g
3380 s%@top_srcdir@%$top_srcdir%g
3381 s%@INSTALL@%$INSTALL%g
3382 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3387 cat >> $CONFIG_STATUS <<EOF
3390 cat >> $CONFIG_STATUS <<\EOF
3394 chmod +x $CONFIG_STATUS
3395 rm -fr confdefs* $ac_clean_files
3396 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1