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-glib-prefix=PFX Prefix where GLIB is installed (optional)"
17 --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)"
19 --disable-glibtest Do not try to compile and run a test GLIB program"
21 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
23 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
25 --disable-gtktest Do not try to compile and run a test GTK program"
27 --with-wiretap Include wiretap library.
28 --without-wiretap Don't include wiretap library (default)"
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
34 cache_file=./config.cache
43 program_transform_name=s,x,x,
51 bindir='${exec_prefix}/bin'
52 sbindir='${exec_prefix}/sbin'
53 libexecdir='${exec_prefix}/libexec'
54 datadir='${prefix}/share'
55 sysconfdir='${prefix}/etc'
56 sharedstatedir='${prefix}/com'
57 localstatedir='${prefix}/var'
58 libdir='${exec_prefix}/lib'
59 includedir='${prefix}/include'
60 oldincludedir='/usr/include'
61 infodir='${prefix}/info'
62 mandir='${prefix}/man'
64 # Initialize some other variables.
67 SHELL=${CONFIG_SHELL-/bin/sh}
68 # Maximum number of lines to put in a shell here document.
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
83 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87 # Accept the important Cygnus configure options, so we can diagnose typos.
91 -bindir | --bindir | --bindi | --bind | --bin | --bi)
93 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
94 bindir="$ac_optarg" ;;
96 -build | --build | --buil | --bui | --bu)
98 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 -cache-file | --cache-file | --cache-fil | --cache-fi \
102 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
103 ac_prev=cache_file ;;
104 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
105 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
106 cache_file="$ac_optarg" ;;
108 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
110 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
112 datadir="$ac_optarg" ;;
114 -disable-* | --disable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
123 -enable-* | --enable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
138 | --exec | --exe | --ex)
139 ac_prev=exec_prefix ;;
140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
142 | --exec=* | --exe=* | --ex=*)
143 exec_prefix="$ac_optarg" ;;
145 -gas | --gas | --ga | --g)
146 # Obsolete; use --with-gas.
149 -help | --help | --hel | --he)
150 # Omit some internal or obsolete options to make the list less imposing.
151 # This message is too long to be a string in the A/UX 3.1 sh.
153 Usage: configure [options] [host]
154 Options: [defaults in brackets after descriptions]
156 --cache-file=FILE cache test results in FILE
157 --help print this message
158 --no-create do not create output files
159 --quiet, --silent do not print \`checking...' messages
160 --version print the version of autoconf that created configure
161 Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191 Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
204 -host | --host | --hos | --ho)
206 -host=* | --host=* | --hos=* | --ho=*)
209 -includedir | --includedir | --includedi | --included | --include \
210 | --includ | --inclu | --incl | --inc)
211 ac_prev=includedir ;;
212 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
213 | --includ=* | --inclu=* | --incl=* | --inc=*)
214 includedir="$ac_optarg" ;;
216 -infodir | --infodir | --infodi | --infod | --info | --inf)
218 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
219 infodir="$ac_optarg" ;;
221 -libdir | --libdir | --libdi | --libd)
223 -libdir=* | --libdir=* | --libdi=* | --libd=*)
224 libdir="$ac_optarg" ;;
226 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
227 | --libexe | --libex | --libe)
228 ac_prev=libexecdir ;;
229 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
230 | --libexe=* | --libex=* | --libe=*)
231 libexecdir="$ac_optarg" ;;
233 -localstatedir | --localstatedir | --localstatedi | --localstated \
234 | --localstate | --localstat | --localsta | --localst \
235 | --locals | --local | --loca | --loc | --lo)
236 ac_prev=localstatedir ;;
237 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
238 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
239 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
240 localstatedir="$ac_optarg" ;;
242 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
244 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
245 mandir="$ac_optarg" ;;
248 # Obsolete; use --without-fp.
251 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
255 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
256 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
260 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
261 | --oldin | --oldi | --old | --ol | --o)
262 ac_prev=oldincludedir ;;
263 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
264 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
265 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
266 oldincludedir="$ac_optarg" ;;
268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
271 prefix="$ac_optarg" ;;
273 -program-prefix | --program-prefix | --program-prefi | --program-pref \
274 | --program-pre | --program-pr | --program-p)
275 ac_prev=program_prefix ;;
276 -program-prefix=* | --program-prefix=* | --program-prefi=* \
277 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
278 program_prefix="$ac_optarg" ;;
280 -program-suffix | --program-suffix | --program-suffi | --program-suff \
281 | --program-suf | --program-su | --program-s)
282 ac_prev=program_suffix ;;
283 -program-suffix=* | --program-suffix=* | --program-suffi=* \
284 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
285 program_suffix="$ac_optarg" ;;
287 -program-transform-name | --program-transform-name \
288 | --program-transform-nam | --program-transform-na \
289 | --program-transform-n | --program-transform- \
290 | --program-transform | --program-transfor \
291 | --program-transfo | --program-transf \
292 | --program-trans | --program-tran \
293 | --progr-tra | --program-tr | --program-t)
294 ac_prev=program_transform_name ;;
295 -program-transform-name=* | --program-transform-name=* \
296 | --program-transform-nam=* | --program-transform-na=* \
297 | --program-transform-n=* | --program-transform-=* \
298 | --program-transform=* | --program-transfor=* \
299 | --program-transfo=* | --program-transf=* \
300 | --program-trans=* | --program-tran=* \
301 | --progr-tra=* | --program-tr=* | --program-t=*)
302 program_transform_name="$ac_optarg" ;;
304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
305 | -silent | --silent | --silen | --sile | --sil)
308 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
310 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
312 sbindir="$ac_optarg" ;;
314 -sharedstatedir | --sharedstatedir | --sharedstatedi \
315 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
316 | --sharedst | --shareds | --shared | --share | --shar \
318 ac_prev=sharedstatedir ;;
319 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
320 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
321 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
323 sharedstatedir="$ac_optarg" ;;
325 -site | --site | --sit)
327 -site=* | --site=* | --sit=*)
330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
333 srcdir="$ac_optarg" ;;
335 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
336 | --syscon | --sysco | --sysc | --sys | --sy)
337 ac_prev=sysconfdir ;;
338 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
339 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
340 sysconfdir="$ac_optarg" ;;
342 -target | --target | --targe | --targ | --tar | --ta | --t)
344 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
345 target="$ac_optarg" ;;
347 -v | -verbose | --verbose | --verbos | --verbo | --verb)
350 -version | --version | --versio | --versi | --vers)
351 echo "configure generated by autoconf version 2.13"
355 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
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'`
365 eval "with_${ac_package}='$ac_optarg'" ;;
367 -without-* | --without-*)
368 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
377 # Obsolete; use --with-x.
380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
381 | --x-incl | --x-inc | --x-in | --x-i)
382 ac_prev=x_includes ;;
383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
385 x_includes="$ac_optarg" ;;
387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
389 ac_prev=x_libraries ;;
390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
392 x_libraries="$ac_optarg" ;;
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
401 if test "x$nonopt" != xNONE; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410 if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
416 # File descriptor usage:
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
442 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443 | --no-cr | --no-c) ;;
444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
453 # Only set these to C if already set. These must not be set unconditionally
454 # because not all systems understand e.g. LANG=C (notably SCO).
455 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456 # Non-C LC_CTYPE values break the ctype check.
457 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
458 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
460 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
463 rm -rf conftest* confdefs.h
464 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
467 # A filename unique to this package, relative to the directory that
468 # configure is in, which we can look for to find out if srcdir is correct.
469 ac_unique_file=wtap.c
471 # Find the source files, if location was not specified.
472 if test -z "$srcdir"; then
473 ac_srcdir_defaulted=yes
474 # Try the directory containing this script, then its parent.
476 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
479 if test ! -r $srcdir/$ac_unique_file; then
483 ac_srcdir_defaulted=no
485 if test ! -r $srcdir/$ac_unique_file; then
486 if test "$ac_srcdir_defaulted" = yes; then
487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
494 # Prefer explicitly selected file to automatically selected ones.
495 if test -z "$CONFIG_SITE"; then
496 if test "x$prefix" != xNONE; then
497 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
499 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502 for ac_site_file in $CONFIG_SITE; do
503 if test -r "$ac_site_file"; then
504 echo "loading site script $ac_site_file"
509 if test -r "$cache_file"; then
510 echo "loading cache $cache_file"
513 echo "creating cache $cache_file"
518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519 ac_cpp='$CPP $CPPFLAGS'
520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522 cross_compiling=$ac_cv_prog_cc_cross
526 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
535 ac_n= ac_c='\c' ac_t=
540 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
541 if test -f $ac_dir/install-sh; then
543 ac_install_sh="$ac_aux_dir/install-sh -c"
545 elif test -f $ac_dir/install.sh; then
547 ac_install_sh="$ac_aux_dir/install.sh -c"
551 if test -z "$ac_aux_dir"; then
552 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
554 ac_config_guess=$ac_aux_dir/config.guess
555 ac_config_sub=$ac_aux_dir/config.sub
556 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
558 # Find a good install program. We prefer a C program (faster),
559 # so one script is as good as another. But avoid the broken or
560 # incompatible versions:
561 # SysV /etc/install, /usr/sbin/install
562 # SunOS /usr/etc/install
565 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
566 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
567 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
568 # ./install, which can be erroneously created by make from ./install.sh.
569 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
570 echo "configure:571: checking for a BSD compatible install" >&5
571 if test -z "$INSTALL"; then
572 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
573 echo $ac_n "(cached) $ac_c" 1>&6
575 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
576 for ac_dir in $PATH; do
577 # Account for people who put trailing slashes in PATH elements.
579 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
581 # OSF1 and SCO ODT 3.0 have their own names for install.
582 # Don't use installbsd from OSF since it installs stuff as root
584 for ac_prog in ginstall scoinst install; do
585 if test -f $ac_dir/$ac_prog; then
586 if test $ac_prog = install &&
587 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
588 # AIX install. It has an incompatible calling convention.
591 ac_cv_path_install="$ac_dir/$ac_prog -c"
602 if test "${ac_cv_path_install+set}" = set; then
603 INSTALL="$ac_cv_path_install"
605 # As a last resort, use the slow shell script. We don't cache a
606 # path for INSTALL within a source directory, because that will
607 # break other packages using the cache if that directory is
608 # removed, or if the path is relative.
609 INSTALL="$ac_install_sh"
612 echo "$ac_t""$INSTALL" 1>&6
614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
615 # It thinks the first close brace ends the variable substitution.
616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
618 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
620 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
622 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
623 echo "configure:624: checking whether build environment is sane" >&5
626 echo timestamp > conftestfile
627 # Do `set' in a subshell so we don't clobber the current shell's
628 # arguments. Must try -L first in case configure is actually a
629 # symlink; some systems play weird games with the mod time of symlinks
630 # (eg FreeBSD returns the mod time of the symlink's containing
633 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
634 if test "$*" = "X"; then
636 set X `ls -t $srcdir/configure conftestfile`
638 if test "$*" != "X $srcdir/configure conftestfile" \
639 && test "$*" != "X conftestfile $srcdir/configure"; then
641 # If neither matched, then we have a broken ls. This can happen
642 # if, for instance, CONFIG_SHELL is bash and it inherits a
643 # broken ls alias from the environment. This has actually
644 # happened. Such a system could not be considered "sane".
645 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
646 alias in your environment" 1>&2; exit 1; }
649 test "$2" = conftestfile
655 { echo "configure: error: newly created file is older than distributed files!
656 Check your system clock" 1>&2; exit 1; }
659 echo "$ac_t""yes" 1>&6
660 if test "$program_transform_name" = s,x,x,; then
661 program_transform_name=
663 # Double any \ or $. echo might interpret backslashes.
664 cat <<\EOF_SED > conftestsed
665 s,\\,\\\\,g; s,\$,$$,g
667 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
670 test "$program_prefix" != NONE &&
671 program_transform_name="s,^,${program_prefix},; $program_transform_name"
672 # Use a double $ so make ignores it.
673 test "$program_suffix" != NONE &&
674 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
676 # sed with no file args requires a program.
677 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
679 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
680 echo "configure:681: checking whether ${MAKE-make} sets \${MAKE}" >&5
681 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
682 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
683 echo $ac_n "(cached) $ac_c" 1>&6
685 cat > conftestmake <<\EOF
687 @echo 'ac_maketemp="${MAKE}"'
689 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
690 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
691 if test -n "$ac_maketemp"; then
692 eval ac_cv_prog_make_${ac_make}_set=yes
694 eval ac_cv_prog_make_${ac_make}_set=no
698 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
699 echo "$ac_t""yes" 1>&6
702 echo "$ac_t""no" 1>&6
703 SET_MAKE="MAKE=${MAKE-make}"
711 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
712 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
714 cat >> confdefs.h <<EOF
715 #define PACKAGE "$PACKAGE"
718 cat >> confdefs.h <<EOF
719 #define VERSION "$VERSION"
724 missing_dir=`cd $ac_aux_dir && pwd`
725 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
726 echo "configure:727: checking for working aclocal" >&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 (aclocal --version) < /dev/null > /dev/null 2>&1; then
732 echo "$ac_t""found" 1>&6
734 ACLOCAL="$missing_dir/missing aclocal"
735 echo "$ac_t""missing" 1>&6
738 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
739 echo "configure:740: checking for working autoconf" >&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 (autoconf --version) < /dev/null > /dev/null 2>&1; then
745 echo "$ac_t""found" 1>&6
747 AUTOCONF="$missing_dir/missing autoconf"
748 echo "$ac_t""missing" 1>&6
751 echo $ac_n "checking for working automake""... $ac_c" 1>&6
752 echo "configure:753: checking for working automake" >&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 (automake --version) < /dev/null > /dev/null 2>&1; then
758 echo "$ac_t""found" 1>&6
760 AUTOMAKE="$missing_dir/missing automake"
761 echo "$ac_t""missing" 1>&6
764 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
765 echo "configure:766: checking for working autoheader" >&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 (autoheader --version) < /dev/null > /dev/null 2>&1; then
770 AUTOHEADER=autoheader
771 echo "$ac_t""found" 1>&6
773 AUTOHEADER="$missing_dir/missing autoheader"
774 echo "$ac_t""missing" 1>&6
777 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
778 echo "configure:779: checking for working makeinfo" >&5
779 # Run test in a subshell; some versions of sh will print an error if
780 # an executable is not found, even if stderr is redirected.
781 # Redirect stdin to placate older versions of autoconf. Sigh.
782 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
784 echo "$ac_t""found" 1>&6
786 MAKEINFO="$missing_dir/missing makeinfo"
787 echo "$ac_t""missing" 1>&6
795 # Extract the first word of "gcc", so it can be a program name with args.
796 set dummy gcc; ac_word=$2
797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
798 echo "configure:799: checking for $ac_word" >&5
799 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
800 echo $ac_n "(cached) $ac_c" 1>&6
802 if test -n "$CC"; then
803 ac_cv_prog_CC="$CC" # Let the user override the test.
805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
807 for ac_dir in $ac_dummy; do
808 test -z "$ac_dir" && ac_dir=.
809 if test -f $ac_dir/$ac_word; then
818 if test -n "$CC"; then
819 echo "$ac_t""$CC" 1>&6
821 echo "$ac_t""no" 1>&6
824 if test -z "$CC"; then
825 # Extract the first word of "cc", so it can be a program name with args.
826 set dummy cc; ac_word=$2
827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
828 echo "configure:829: checking for $ac_word" >&5
829 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 if test -n "$CC"; then
833 ac_cv_prog_CC="$CC" # Let the user override the test.
835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
838 for ac_dir in $ac_dummy; do
839 test -z "$ac_dir" && ac_dir=.
840 if test -f $ac_dir/$ac_word; then
841 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
850 if test $ac_prog_rejected = yes; then
851 # We found a bogon in the path, so make sure we never use it.
852 set dummy $ac_cv_prog_CC
854 if test $# -gt 0; then
855 # We chose a different compiler from the bogus one.
856 # However, it has the same basename, so the bogon will be chosen
857 # first if we set CC to just the basename; use the full file name.
859 set dummy "$ac_dir/$ac_word" "$@"
867 if test -n "$CC"; then
868 echo "$ac_t""$CC" 1>&6
870 echo "$ac_t""no" 1>&6
873 if test -z "$CC"; then
876 # Extract the first word of "cl", so it can be a program name with args.
877 set dummy cl; ac_word=$2
878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
879 echo "configure:880: checking for $ac_word" >&5
880 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
881 echo $ac_n "(cached) $ac_c" 1>&6
883 if test -n "$CC"; then
884 ac_cv_prog_CC="$CC" # Let the user override the test.
886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
888 for ac_dir in $ac_dummy; do
889 test -z "$ac_dir" && ac_dir=.
890 if test -f $ac_dir/$ac_word; then
899 if test -n "$CC"; then
900 echo "$ac_t""$CC" 1>&6
902 echo "$ac_t""no" 1>&6
907 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
910 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
911 echo "configure:912: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
914 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
915 ac_cpp='$CPP $CPPFLAGS'
916 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
917 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
918 cross_compiling=$ac_cv_prog_cc_cross
920 cat > conftest.$ac_ext << EOF
922 #line 923 "configure"
923 #include "confdefs.h"
927 if { (eval echo configure:928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
928 ac_cv_prog_cc_works=yes
929 # If we can't run a trivial program, we are probably using a cross compiler.
930 if (./conftest; exit) 2>/dev/null; then
931 ac_cv_prog_cc_cross=no
933 ac_cv_prog_cc_cross=yes
936 echo "configure: failed program was:" >&5
937 cat conftest.$ac_ext >&5
938 ac_cv_prog_cc_works=no
942 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
943 ac_cpp='$CPP $CPPFLAGS'
944 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
945 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
946 cross_compiling=$ac_cv_prog_cc_cross
948 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
949 if test $ac_cv_prog_cc_works = no; then
950 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
952 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
953 echo "configure:954: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
954 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
955 cross_compiling=$ac_cv_prog_cc_cross
957 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
958 echo "configure:959: checking whether we are using GNU C" >&5
959 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
960 echo $ac_n "(cached) $ac_c" 1>&6
962 cat > conftest.c <<EOF
967 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
974 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
976 if test $ac_cv_prog_gcc = yes; then
982 ac_test_CFLAGS="${CFLAGS+set}"
983 ac_save_CFLAGS="$CFLAGS"
985 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
986 echo "configure:987: checking whether ${CC-cc} accepts -g" >&5
987 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
990 echo 'void f(){}' > conftest.c
991 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1000 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1001 if test "$ac_test_CFLAGS" = set; then
1002 CFLAGS="$ac_save_CFLAGS"
1003 elif test $ac_cv_prog_cc_g = yes; then
1004 if test "$GCC" = yes; then
1010 if test "$GCC" = yes; then
1017 # Extract the first word of "ranlib", so it can be a program name with args.
1018 set dummy ranlib; ac_word=$2
1019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1020 echo "configure:1021: checking for $ac_word" >&5
1021 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1022 echo $ac_n "(cached) $ac_c" 1>&6
1024 if test -n "$RANLIB"; then
1025 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1029 for ac_dir in $ac_dummy; do
1030 test -z "$ac_dir" && ac_dir=.
1031 if test -f $ac_dir/$ac_word; then
1032 ac_cv_prog_RANLIB="ranlib"
1037 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1040 RANLIB="$ac_cv_prog_RANLIB"
1041 if test -n "$RANLIB"; then
1042 echo "$ac_t""$RANLIB" 1>&6
1044 echo "$ac_t""no" 1>&6
1047 for ac_prog in 'bison -y' byacc
1049 # Extract the first word of "$ac_prog", so it can be a program name with args.
1050 set dummy $ac_prog; ac_word=$2
1051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1052 echo "configure:1053: checking for $ac_word" >&5
1053 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1054 echo $ac_n "(cached) $ac_c" 1>&6
1056 if test -n "$YACC"; then
1057 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1061 for ac_dir in $ac_dummy; do
1062 test -z "$ac_dir" && ac_dir=.
1063 if test -f $ac_dir/$ac_word; then
1064 ac_cv_prog_YACC="$ac_prog"
1071 YACC="$ac_cv_prog_YACC"
1072 if test -n "$YACC"; then
1073 echo "$ac_t""$YACC" 1>&6
1075 echo "$ac_t""no" 1>&6
1078 test -n "$YACC" && break
1080 test -n "$YACC" || YACC="yacc"
1082 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1083 echo "configure:1084: checking how to run the C preprocessor" >&5
1084 # On Suns, sometimes $CPP names a directory.
1085 if test -n "$CPP" && test -d "$CPP"; then
1088 if test -z "$CPP"; then
1089 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1092 # This must be in double quotes, not single quotes, because CPP may get
1093 # substituted into the Makefile and "${CC-cc}" will confuse make.
1095 # On the NeXT, cc -E runs the code through the compiler's parser,
1096 # not just through cpp.
1097 cat > conftest.$ac_ext <<EOF
1098 #line 1099 "configure"
1099 #include "confdefs.h"
1103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1104 { (eval echo configure:1105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1106 if test -z "$ac_err"; then
1110 echo "configure: failed program was:" >&5
1111 cat conftest.$ac_ext >&5
1113 CPP="${CC-cc} -E -traditional-cpp"
1114 cat > conftest.$ac_ext <<EOF
1115 #line 1116 "configure"
1116 #include "confdefs.h"
1120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1121 { (eval echo configure:1122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1123 if test -z "$ac_err"; then
1127 echo "configure: failed program was:" >&5
1128 cat conftest.$ac_ext >&5
1130 CPP="${CC-cc} -nologo -E"
1131 cat > conftest.$ac_ext <<EOF
1132 #line 1133 "configure"
1133 #include "confdefs.h"
1137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1138 { (eval echo configure:1139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1140 if test -z "$ac_err"; then
1144 echo "configure: failed program was:" >&5
1145 cat conftest.$ac_ext >&5
1154 ac_cv_prog_CPP="$CPP"
1156 CPP="$ac_cv_prog_CPP"
1158 ac_cv_prog_CPP="$CPP"
1160 echo "$ac_t""$CPP" 1>&6
1162 missing_dir=`cd $ac_aux_dir && pwd`
1163 for ac_prog in flex lex
1165 # Extract the first word of "$ac_prog", so it can be a program name with args.
1166 set dummy $ac_prog; ac_word=$2
1167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1168 echo "configure:1169: checking for $ac_word" >&5
1169 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 if test -n "$LEX"; then
1173 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1177 for ac_dir in $ac_dummy; do
1178 test -z "$ac_dir" && ac_dir=.
1179 if test -f $ac_dir/$ac_word; then
1180 ac_cv_prog_LEX="$ac_prog"
1187 LEX="$ac_cv_prog_LEX"
1188 if test -n "$LEX"; then
1189 echo "$ac_t""$LEX" 1>&6
1191 echo "$ac_t""no" 1>&6
1194 test -n "$LEX" && break
1196 test -n "$LEX" || LEX=""$missing_dir/missing flex""
1198 # Extract the first word of "flex", so it can be a program name with args.
1199 set dummy flex; ac_word=$2
1200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1201 echo "configure:1202: checking for $ac_word" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 if test -n "$LEX"; then
1206 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1210 for ac_dir in $ac_dummy; do
1211 test -z "$ac_dir" && ac_dir=.
1212 if test -f $ac_dir/$ac_word; then
1213 ac_cv_prog_LEX="flex"
1218 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1221 LEX="$ac_cv_prog_LEX"
1222 if test -n "$LEX"; then
1223 echo "$ac_t""$LEX" 1>&6
1225 echo "$ac_t""no" 1>&6
1228 if test -z "$LEXLIB"
1234 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1235 echo "configure:1236: checking for yywrap in -l$ac_lib" >&5
1236 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1240 ac_save_LIBS="$LIBS"
1241 LIBS="-l$ac_lib $LIBS"
1242 cat > conftest.$ac_ext <<EOF
1243 #line 1244 "configure"
1244 #include "confdefs.h"
1245 /* Override any gcc2 internal prototype to avoid an error. */
1246 /* We use char because int might match the return type of a gcc2
1247 builtin and then its argument prototype would still apply. */
1254 if { (eval echo configure:1255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1256 eval "ac_cv_lib_$ac_lib_var=yes"
1258 echo "configure: failed program was:" >&5
1259 cat conftest.$ac_ext >&5
1261 eval "ac_cv_lib_$ac_lib_var=no"
1264 LIBS="$ac_save_LIBS"
1267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1268 echo "$ac_t""yes" 1>&6
1271 echo "$ac_t""no" 1>&6
1276 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1277 echo "configure:1278: checking lex output file root" >&5
1278 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1281 # The minimal lex program is just a single line: %%. But some broken lexes
1282 # (Solaris, I think it was) want two %% lines, so accommodate them.
1285 if test -f lex.yy.c; then
1286 ac_cv_prog_lex_root=lex.yy
1287 elif test -f lexyy.c; then
1288 ac_cv_prog_lex_root=lexyy
1290 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1294 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1295 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1297 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1298 echo "configure:1299: checking whether yytext is a pointer" >&5
1299 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 # POSIX says lex can declare yytext either as a pointer or an array; the
1303 # default is implementation-dependent. Figure out which it is, since
1304 # not all implementations provide the %pointer and %array declarations.
1305 ac_cv_prog_lex_yytext_pointer=no
1306 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1307 ac_save_LIBS="$LIBS"
1308 LIBS="$LIBS $LEXLIB"
1309 cat > conftest.$ac_ext <<EOF
1310 #line 1311 "configure"
1311 #include "confdefs.h"
1312 `cat $LEX_OUTPUT_ROOT.c`
1317 if { (eval echo configure:1318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1319 ac_cv_prog_lex_yytext_pointer=yes
1321 echo "configure: failed program was:" >&5
1322 cat conftest.$ac_ext >&5
1325 LIBS="$ac_save_LIBS"
1326 rm -f "${LEX_OUTPUT_ROOT}.c"
1330 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1331 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1332 cat >> confdefs.h <<\EOF
1333 #define YYTEXT_POINTER 1
1339 # If we're running gcc, add '-Wall' to CFLAGS.
1340 echo $ac_n "checking to see if we can add '-Wall' to CFLAGS""... $ac_c" 1>&6
1341 echo "configure:1342: checking to see if we can add '-Wall' to CFLAGS" >&5
1342 if test x$GCC != x ; then
1343 CFLAGS="-Wall $CFLAGS"
1344 echo "$ac_t""yes" 1>&6
1346 echo "$ac_t""no" 1>&6
1349 # Checks for glib first, or gtk+ if not present
1350 # Check whether --with-glib-prefix or --without-glib-prefix was given.
1351 if test "${with_glib_prefix+set}" = set; then
1352 withval="$with_glib_prefix"
1353 glib_config_prefix="$withval"
1355 glib_config_prefix=""
1358 # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
1359 if test "${with_glib_exec_prefix+set}" = set; then
1360 withval="$with_glib_exec_prefix"
1361 glib_config_exec_prefix="$withval"
1363 glib_config_exec_prefix=""
1366 # Check whether --enable-glibtest or --disable-glibtest was given.
1367 if test "${enable_glibtest+set}" = set; then
1368 enableval="$enable_glibtest"
1375 if test x$glib_config_exec_prefix != x ; then
1376 glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
1377 if test x${GLIB_CONFIG+set} != xset ; then
1378 GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
1381 if test x$glib_config_prefix != x ; then
1382 glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
1383 if test x${GLIB_CONFIG+set} != xset ; then
1384 GLIB_CONFIG=$glib_config_prefix/bin/glib-config
1392 glib_config_args="$glib_config_args gmodule"
1395 glib_config_args="$glib_config_args gthread"
1400 # Extract the first word of "glib-config", so it can be a program name with args.
1401 set dummy glib-config; ac_word=$2
1402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1403 echo "configure:1404: checking for $ac_word" >&5
1404 if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1407 case "$GLIB_CONFIG" in
1409 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
1412 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
1415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1417 for ac_dir in $ac_dummy; do
1418 test -z "$ac_dir" && ac_dir=.
1419 if test -f $ac_dir/$ac_word; then
1420 ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
1425 test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
1429 GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
1430 if test -n "$GLIB_CONFIG"; then
1431 echo "$ac_t""$GLIB_CONFIG" 1>&6
1433 echo "$ac_t""no" 1>&6
1436 min_glib_version=1.1.0
1437 echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
1438 echo "configure:1439: checking for GLIB - version >= $min_glib_version" >&5
1440 if test "$GLIB_CONFIG" = "no" ; then
1443 GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
1444 GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
1445 glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
1446 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1447 glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
1448 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1449 glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
1450 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
1451 if test "x$enable_glibtest" = "xyes" ; then
1452 ac_save_CFLAGS="$CFLAGS"
1453 ac_save_LIBS="$LIBS"
1454 CFLAGS="$CFLAGS $GLIB_CFLAGS"
1455 LIBS="$GLIB_LIBS $LIBS"
1457 if test "$cross_compiling" = yes; then
1458 echo $ac_n "cross compiling; assumed OK... $ac_c"
1460 cat > conftest.$ac_ext <<EOF
1461 #line 1462 "configure"
1462 #include "confdefs.h"
1471 int major, minor, micro;
1474 system ("touch conf.glibtest");
1476 /* HP/UX 9 (%@#!) writes to sscanf strings */
1477 tmp_version = g_strdup("$min_glib_version");
1478 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
1479 printf("%s, bad version string\n", "$min_glib_version");
1483 if ((glib_major_version != $glib_config_major_version) ||
1484 (glib_minor_version != $glib_config_minor_version) ||
1485 (glib_micro_version != $glib_config_micro_version))
1487 printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
1488 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
1489 glib_major_version, glib_minor_version, glib_micro_version);
1490 printf ("*** was found! If glib-config was correct, then it is best\n");
1491 printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
1492 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
1493 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
1494 printf("*** required on your system.\n");
1495 printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
1496 printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
1497 printf("*** before re-running configure\n");
1499 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
1500 (glib_minor_version != GLIB_MINOR_VERSION) ||
1501 (glib_micro_version != GLIB_MICRO_VERSION))
1503 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
1504 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
1505 printf("*** library (version %d.%d.%d)\n",
1506 glib_major_version, glib_minor_version, glib_micro_version);
1510 if ((glib_major_version > major) ||
1511 ((glib_major_version == major) && (glib_minor_version > minor)) ||
1512 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
1518 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
1519 glib_major_version, glib_minor_version, glib_micro_version);
1520 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
1521 major, minor, micro);
1522 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
1524 printf("*** If you have already installed a sufficiently new version, this error\n");
1525 printf("*** probably means that the wrong copy of the glib-config shell script is\n");
1526 printf("*** being found. The easiest way to fix this is to remove the old version\n");
1527 printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
1528 printf("*** correct copy of glib-config. (In this case, you will have to\n");
1529 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
1530 printf("*** so that the correct libraries are found at run-time))\n");
1537 if { (eval echo configure:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1541 echo "configure: failed program was:" >&5
1542 cat conftest.$ac_ext >&5
1549 CFLAGS="$ac_save_CFLAGS"
1550 LIBS="$ac_save_LIBS"
1553 if test "x$no_glib" = x ; then
1554 echo "$ac_t""yes" 1>&6
1555 CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS"
1557 echo "$ac_t""no" 1>&6
1558 if test "$GLIB_CONFIG" = "no" ; then
1559 echo "*** The glib-config script installed by GLIB could not be found"
1560 echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
1561 echo "*** your path, or set the GLIB_CONFIG environment variable to the"
1562 echo "*** full path to glib-config."
1564 if test -f conf.glibtest ; then
1567 echo "*** Could not run GLIB test program, checking why..."
1568 CFLAGS="$CFLAGS $GLIB_CFLAGS"
1569 LIBS="$LIBS $GLIB_LIBS"
1570 cat > conftest.$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1578 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
1581 if { (eval echo configure:1582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1583 echo "*** The test program compiled, but did not run. This usually means"
1584 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
1585 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
1586 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1587 echo "*** to the installed location Also, make sure you have run ldconfig if that"
1588 echo "*** is required on your system"
1590 echo "*** If you have an old version installed, it is best to remove it, although"
1591 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1593 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
1594 echo "*** came with the system with the command"
1596 echo "*** rpm --erase --nodeps gtk gtk-devel"
1598 echo "configure: failed program was:" >&5
1599 cat conftest.$ac_ext >&5
1601 echo "*** The test program failed to compile or link. See the file config.log for the"
1602 echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
1603 echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
1604 echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
1607 CFLAGS="$ac_save_CFLAGS"
1608 LIBS="$ac_save_LIBS"
1620 if test "x$GLIB_CFLAGS" = x ; then
1621 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1622 if test "${with_gtk_prefix+set}" = set; then
1623 withval="$with_gtk_prefix"
1624 gtk_config_prefix="$withval"
1626 gtk_config_prefix=""
1629 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1630 if test "${with_gtk_exec_prefix+set}" = set; then
1631 withval="$with_gtk_exec_prefix"
1632 gtk_config_exec_prefix="$withval"
1634 gtk_config_exec_prefix=""
1637 # Check whether --enable-gtktest or --disable-gtktest was given.
1638 if test "${enable_gtktest+set}" = set; then
1639 enableval="$enable_gtktest"
1650 gtk_config_args="$gtk_config_args gthread"
1655 if test x$gtk_config_exec_prefix != x ; then
1656 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
1657 if test x${GTK_CONFIG+set} != xset ; then
1658 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
1661 if test x$gtk_config_prefix != x ; then
1662 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
1663 if test x${GTK_CONFIG+set} != xset ; then
1664 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
1668 # Extract the first word of "gtk-config", so it can be a program name with args.
1669 set dummy gtk-config; ac_word=$2
1670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1671 echo "configure:1672: checking for $ac_word" >&5
1672 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
1673 echo $ac_n "(cached) $ac_c" 1>&6
1675 case "$GTK_CONFIG" in
1677 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
1680 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
1683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1685 for ac_dir in $ac_dummy; do
1686 test -z "$ac_dir" && ac_dir=.
1687 if test -f $ac_dir/$ac_word; then
1688 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
1693 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
1697 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
1698 if test -n "$GTK_CONFIG"; then
1699 echo "$ac_t""$GTK_CONFIG" 1>&6
1701 echo "$ac_t""no" 1>&6
1704 min_gtk_version=1.0.0
1705 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1706 echo "configure:1707: checking for GTK - version >= $min_gtk_version" >&5
1708 if test "$GTK_CONFIG" = "no" ; then
1711 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
1712 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
1713 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
1714 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1715 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
1716 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1717 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
1718 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
1719 if test "x$enable_gtktest" = "xyes" ; then
1720 ac_save_CFLAGS="$CFLAGS"
1721 ac_save_LIBS="$LIBS"
1722 CFLAGS="$CFLAGS $GTK_CFLAGS"
1723 LIBS="$GTK_LIBS $LIBS"
1725 if test "$cross_compiling" = yes; then
1726 echo $ac_n "cross compiling; assumed OK... $ac_c"
1728 cat > conftest.$ac_ext <<EOF
1729 #line 1730 "configure"
1730 #include "confdefs.h"
1732 #include <gtk/gtk.h>
1739 int major, minor, micro;
1742 system ("touch conf.gtktest");
1744 /* HP/UX 9 (%@#!) writes to sscanf strings */
1745 tmp_version = g_strdup("$min_gtk_version");
1746 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
1747 printf("%s, bad version string\n", "$min_gtk_version");
1751 if ((gtk_major_version != $gtk_config_major_version) ||
1752 (gtk_minor_version != $gtk_config_minor_version) ||
1753 (gtk_micro_version != $gtk_config_micro_version))
1755 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
1756 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
1757 gtk_major_version, gtk_minor_version, gtk_micro_version);
1758 printf ("*** was found! If gtk-config was correct, then it is best\n");
1759 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
1760 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
1761 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
1762 printf("*** required on your system.\n");
1763 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
1764 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
1765 printf("*** before re-running configure\n");
1767 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
1768 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
1769 (gtk_minor_version != GTK_MINOR_VERSION) ||
1770 (gtk_micro_version != GTK_MICRO_VERSION))
1772 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
1773 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
1774 printf("*** library (version %d.%d.%d)\n",
1775 gtk_major_version, gtk_minor_version, gtk_micro_version);
1777 #endif /* defined (GTK_MAJOR_VERSION) ... */
1780 if ((gtk_major_version > major) ||
1781 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
1782 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
1788 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
1789 gtk_major_version, gtk_minor_version, gtk_micro_version);
1790 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
1791 major, minor, micro);
1792 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
1794 printf("*** If you have already installed a sufficiently new version, this error\n");
1795 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
1796 printf("*** being found. The easiest way to fix this is to remove the old version\n");
1797 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
1798 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
1799 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
1800 printf("*** so that the correct libraries are found at run-time))\n");
1807 if { (eval echo configure:1808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1811 echo "configure: failed program was:" >&5
1812 cat conftest.$ac_ext >&5
1819 CFLAGS="$ac_save_CFLAGS"
1820 LIBS="$ac_save_LIBS"
1823 if test "x$no_gtk" = x ; then
1824 echo "$ac_t""yes" 1>&6
1825 CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS"
1827 echo "$ac_t""no" 1>&6
1828 if test "$GTK_CONFIG" = "no" ; then
1829 echo "*** The gtk-config script installed by GTK could not be found"
1830 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
1831 echo "*** your path, or set the GTK_CONFIG environment variable to the"
1832 echo "*** full path to gtk-config."
1834 if test -f conf.gtktest ; then
1837 echo "*** Could not run GTK test program, checking why..."
1838 CFLAGS="$CFLAGS $GTK_CFLAGS"
1839 LIBS="$LIBS $GTK_LIBS"
1840 cat > conftest.$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1844 #include <gtk/gtk.h>
1848 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
1851 if { (eval echo configure:1852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1853 echo "*** The test program compiled, but did not run. This usually means"
1854 echo "*** that the run-time linker is not finding GTK or finding the wrong"
1855 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
1856 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1857 echo "*** to the installed location Also, make sure you have run ldconfig if that"
1858 echo "*** is required on your system"
1860 echo "*** If you have an old version installed, it is best to remove it, although"
1861 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1863 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
1864 echo "*** came with the system with the command"
1866 echo "*** rpm --erase --nodeps gtk gtk-devel"
1868 echo "configure: failed program was:" >&5
1869 cat conftest.$ac_ext >&5
1871 echo "*** The test program failed to compile or link. See the file config.log for the"
1872 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
1873 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
1874 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
1877 CFLAGS="$ac_save_CFLAGS"
1878 LIBS="$ac_save_LIBS"
1883 { echo "configure: error: GTK+ library not found." 1>&2; exit 1; }
1889 cat >> confdefs.h <<\EOF
1890 #define HAVE_GLIB10 1
1895 # Wiretap check (copied and modified from ethereal)
1896 echo $ac_n "checking whether to include wiretap library""... $ac_c" 1>&6
1897 echo "configure:1898: checking whether to include wiretap library" >&5
1898 # Check whether --with-wiretap or --without-wiretap was given.
1899 if test "${with_wiretap+set}" = set; then
1900 withval="$with_wiretap"
1903 echo "$ac_t""yes" 1>&6
1904 LIBWIRETAP_A="libwiretap.a"
1907 echo "$ac_t""no" 1>&6
1912 echo "$ac_t""no" 1>&6
1918 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1919 echo "configure:1920: checking for ANSI C header files" >&5
1920 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1921 echo $ac_n "(cached) $ac_c" 1>&6
1923 cat > conftest.$ac_ext <<EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1932 { (eval echo configure:1933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1934 if test -z "$ac_err"; then
1936 ac_cv_header_stdc=yes
1939 echo "configure: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1942 ac_cv_header_stdc=no
1946 if test $ac_cv_header_stdc = yes; then
1947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1948 cat > conftest.$ac_ext <<EOF
1949 #line 1950 "configure"
1950 #include "confdefs.h"
1953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1954 egrep "memchr" >/dev/null 2>&1; then
1958 ac_cv_header_stdc=no
1964 if test $ac_cv_header_stdc = yes; then
1965 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1966 cat > conftest.$ac_ext <<EOF
1967 #line 1968 "configure"
1968 #include "confdefs.h"
1971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1972 egrep "free" >/dev/null 2>&1; then
1976 ac_cv_header_stdc=no
1982 if test $ac_cv_header_stdc = yes; then
1983 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1984 if test "$cross_compiling" = yes; then
1987 cat > conftest.$ac_ext <<EOF
1988 #line 1989 "configure"
1989 #include "confdefs.h"
1991 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1992 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1994 int main () { int i; for (i = 0; i < 256; i++)
1995 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1999 if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2003 echo "configure: failed program was:" >&5
2004 cat conftest.$ac_ext >&5
2006 ac_cv_header_stdc=no
2014 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2015 if test $ac_cv_header_stdc = yes; then
2016 cat >> confdefs.h <<\EOF
2017 #define STDC_HEADERS 1
2022 for ac_hdr in unistd.h
2024 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2025 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2026 echo "configure:2027: checking for $ac_hdr" >&5
2027 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2028 echo $ac_n "(cached) $ac_c" 1>&6
2030 cat > conftest.$ac_ext <<EOF
2031 #line 2032 "configure"
2032 #include "confdefs.h"
2035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2036 { (eval echo configure:2037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2038 if test -z "$ac_err"; then
2040 eval "ac_cv_header_$ac_safe=yes"
2043 echo "configure: failed program was:" >&5
2044 cat conftest.$ac_ext >&5
2046 eval "ac_cv_header_$ac_safe=no"
2050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2051 echo "$ac_t""yes" 1>&6
2052 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2053 cat >> confdefs.h <<EOF
2054 #define $ac_tr_hdr 1
2058 echo "$ac_t""no" 1>&6
2064 cat > confcache <<\EOF
2065 # This file is a shell script that caches the results of configure
2066 # tests run on this system so they can be shared between configure
2067 # scripts and configure runs. It is not useful on other systems.
2068 # If it contains results you don't want to keep, you may remove or edit it.
2070 # By default, configure uses ./config.cache as the cache file,
2071 # creating it if it does not exist already. You can give configure
2072 # the --cache-file=FILE option to use a different cache file; that is
2073 # what configure does when it calls configure scripts in
2074 # subdirectories, so they share the cache.
2075 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2076 # config.status only pays attention to the cache file if you give it the
2077 # --recheck option to rerun configure.
2080 # The following way of writing the cache mishandles newlines in values,
2081 # but we know of no workaround that is simple, portable, and efficient.
2082 # So, don't put newlines in cache variables' values.
2083 # Ultrix sh set writes to stderr and can't be redirected directly,
2084 # and sets the high bit in the cache file unless we assign to the vars.
2086 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2088 # `set' does not quote correctly, so add quotes (double-quote substitution
2089 # turns \\\\ into \\, and sed turns \\ into \).
2091 -e "s/'/'\\\\''/g" \
2092 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2095 # `set' quotes correctly as required by POSIX, so do not add quotes.
2096 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2099 if cmp -s $cache_file confcache; then
2102 if test -w $cache_file; then
2103 echo "updating cache $cache_file"
2104 cat confcache > $cache_file
2106 echo "not updating unwritable cache $cache_file"
2111 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2113 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2114 # Let make expand exec_prefix.
2115 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2117 # Any assignment to VPATH causes Sun make to only execute
2118 # the first set of double-colon rules, so remove it if not needed.
2119 # If there is a colon in the path, we need to keep it.
2120 if test "x$srcdir" = x.; then
2121 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2124 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2126 DEFS=-DHAVE_CONFIG_H
2128 # Without the "./", some shells look in PATH for config.status.
2129 : ${CONFIG_STATUS=./config.status}
2131 echo creating $CONFIG_STATUS
2132 rm -f $CONFIG_STATUS
2133 cat > $CONFIG_STATUS <<EOF
2135 # Generated automatically by configure.
2136 # Run this file to recreate the current configuration.
2137 # This directory was configured as follows,
2138 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2140 # $0 $ac_configure_args
2142 # Compiler output produced by configure, useful for debugging
2143 # configure, is in ./config.log if it exists.
2145 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2148 case "\$ac_option" in
2149 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2150 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2151 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2152 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2153 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2155 -help | --help | --hel | --he | --h)
2156 echo "\$ac_cs_usage"; exit 0 ;;
2157 *) echo "\$ac_cs_usage"; exit 1 ;;
2161 ac_given_srcdir=$srcdir
2162 ac_given_INSTALL="$INSTALL"
2164 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2166 cat >> $CONFIG_STATUS <<EOF
2168 # Protect against being on the right side of a sed subst in config.status.
2169 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2170 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2174 s%@CFLAGS@%$CFLAGS%g
2175 s%@CPPFLAGS@%$CPPFLAGS%g
2176 s%@CXXFLAGS@%$CXXFLAGS%g
2177 s%@FFLAGS@%$FFLAGS%g
2179 s%@LDFLAGS@%$LDFLAGS%g
2181 s%@exec_prefix@%$exec_prefix%g
2182 s%@prefix@%$prefix%g
2183 s%@program_transform_name@%$program_transform_name%g
2184 s%@bindir@%$bindir%g
2185 s%@sbindir@%$sbindir%g
2186 s%@libexecdir@%$libexecdir%g
2187 s%@datadir@%$datadir%g
2188 s%@sysconfdir@%$sysconfdir%g
2189 s%@sharedstatedir@%$sharedstatedir%g
2190 s%@localstatedir@%$localstatedir%g
2191 s%@libdir@%$libdir%g
2192 s%@includedir@%$includedir%g
2193 s%@oldincludedir@%$oldincludedir%g
2194 s%@infodir@%$infodir%g
2195 s%@mandir@%$mandir%g
2196 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2197 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2198 s%@INSTALL_DATA@%$INSTALL_DATA%g
2199 s%@PACKAGE@%$PACKAGE%g
2200 s%@VERSION@%$VERSION%g
2201 s%@ACLOCAL@%$ACLOCAL%g
2202 s%@AUTOCONF@%$AUTOCONF%g
2203 s%@AUTOMAKE@%$AUTOMAKE%g
2204 s%@AUTOHEADER@%$AUTOHEADER%g
2205 s%@MAKEINFO@%$MAKEINFO%g
2206 s%@SET_MAKE@%$SET_MAKE%g
2208 s%@RANLIB@%$RANLIB%g
2211 s%@LEXLIB@%$LEXLIB%g
2213 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
2214 s%@GLIB_CONFIG@%$GLIB_CONFIG%g
2215 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
2216 s%@GLIB_LIBS@%$GLIB_LIBS%g
2217 s%@GTK_CONFIG@%$GTK_CONFIG%g
2218 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
2219 s%@GTK_LIBS@%$GTK_LIBS%g
2220 s%@LIBWIRETAP_A@%$LIBWIRETAP_A%g
2225 cat >> $CONFIG_STATUS <<\EOF
2227 # Split the substitutions into bite-sized pieces for seds with
2228 # small command number limits, like on Digital OSF/1 and HP-UX.
2229 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2230 ac_file=1 # Number of current file.
2231 ac_beg=1 # First line for current file.
2232 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2235 while $ac_more_lines; do
2236 if test $ac_beg -gt 1; then
2237 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2239 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2241 if test ! -s conftest.s$ac_file; then
2243 rm -f conftest.s$ac_file
2245 if test -z "$ac_sed_cmds"; then
2246 ac_sed_cmds="sed -f conftest.s$ac_file"
2248 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2250 ac_file=`expr $ac_file + 1`
2252 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2255 if test -z "$ac_sed_cmds"; then
2260 cat >> $CONFIG_STATUS <<EOF
2262 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2264 cat >> $CONFIG_STATUS <<\EOF
2265 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2266 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2268 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2269 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2270 *) ac_file_in="${ac_file}.in" ;;
2273 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2275 # Remove last slash and all that follows it. Not all systems have dirname.
2276 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2277 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2278 # The file is in a subdirectory.
2279 test ! -d "$ac_dir" && mkdir "$ac_dir"
2280 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2281 # A "../" for each directory in $ac_dir_suffix.
2282 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2284 ac_dir_suffix= ac_dots=
2287 case "$ac_given_srcdir" in
2289 if test -z "$ac_dots"; then top_srcdir=.
2290 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2291 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2293 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2294 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2297 case "$ac_given_INSTALL" in
2298 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2299 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2302 echo creating "$ac_file"
2304 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2306 *Makefile*) ac_comsub="1i\\
2307 # $configure_input" ;;
2311 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2313 s%@configure_input@%$configure_input%g
2314 s%@srcdir@%$srcdir%g
2315 s%@top_srcdir@%$top_srcdir%g
2316 s%@INSTALL@%$INSTALL%g
2317 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2321 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2322 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2324 # ac_d sets the value in "#define NAME VALUE" lines.
2325 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2326 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2329 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2330 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2331 ac_uB='\([ ]\)%\1#\2define\3'
2334 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2335 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2336 ac_eB='$%\1#\2define\3'
2340 if test "${CONFIG_HEADERS+set}" != set; then
2342 cat >> $CONFIG_STATUS <<EOF
2343 CONFIG_HEADERS="config.h"
2345 cat >> $CONFIG_STATUS <<\EOF
2347 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2348 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2350 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2351 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2352 *) ac_file_in="${ac_file}.in" ;;
2355 echo creating $ac_file
2357 rm -f conftest.frag conftest.in conftest.out
2358 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2359 cat $ac_file_inputs > conftest.in
2363 # Transform confdefs.h into a sed script conftest.vals that substitutes
2364 # the proper values into config.h.in to produce config.h. And first:
2365 # Protect against being on the right side of a sed subst in config.status.
2366 # Protect against being in an unquoted here document in config.status.
2368 cat > conftest.hdr <<\EOF
2371 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2375 sed -n -f conftest.hdr confdefs.h > conftest.vals
2378 # This sed command replaces #undef with comments. This is necessary, for
2379 # example, in the case of _POSIX_SOURCE, which is predefined and required
2380 # on some systems where configure will not decide to define it.
2381 cat >> conftest.vals <<\EOF
2382 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2385 # Break up conftest.vals because some shells have a limit on
2386 # the size of here documents, and old seds have small limits too.
2391 ac_lines=`grep -c . conftest.vals`
2392 # grep -c gives empty output for an empty file on some AIX systems.
2393 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2394 # Write a limited-size here document to conftest.frag.
2395 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2396 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2398 sed -f conftest.frag conftest.in > conftest.out
2400 mv conftest.out conftest.in
2402 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2404 mv conftest.tail conftest.vals
2408 cat >> $CONFIG_STATUS <<\EOF
2409 rm -f conftest.frag conftest.h
2410 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2411 cat conftest.in >> conftest.h
2413 if cmp -s $ac_file conftest.h 2>/dev/null; then
2414 echo "$ac_file is unchanged"
2417 # Remove last slash and all that follows it. Not all systems have dirname.
2418 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2419 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2420 # The file is in a subdirectory.
2421 test ! -d "$ac_dir" && mkdir "$ac_dir"
2424 mv conftest.h $ac_file
2429 cat >> $CONFIG_STATUS <<EOF
2433 cat >> $CONFIG_STATUS <<\EOF
2434 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2438 chmod +x $CONFIG_STATUS
2439 rm -fr confdefs* $ac_clean_files
2440 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1