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 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --enable-maintainer-mode enable make rules and dependencies not useful
26 (and sometimes confusing) to the casual installer"
28 --disable-nls do not use Native Language Support"
30 --with-included-gettext use the GNU gettext library included here"
32 --with-catgets use catgets functions if available"
34 --with-glib-prefix=PFX Prefix where GLIB is installed (optional)"
36 --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)"
38 --disable-glibtest Do not try to compile and run a test GLIB program"
40 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
42 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
44 --disable-gtktest Do not try to compile and run a test GTK program"
46 --disable-gdk-pixbuf Do not use gdk-pixbuf"
48 --disable-imlib Do not use imlib"
50 --with-gdk-pixbuf-prefix=PFX Prefix where GDK_PIXBUF is installed (optional)"
52 --with-gdk-pixbuf-exec-prefix=PFX Exec prefix where GDK_PIXBUF is installed (optional)"
54 --disable-gdk_pixbuftest Do not try to compile and run a test GDK_PIXBUF program"
56 --with-imlib-prefix=PFX Prefix where IMLIB is installed (optional)"
58 --with-imlib-exec-prefix=PFX Exec prefix where IMLIB is installed (optional)"
60 --disable-imlibtest Do not try to compile and run a test IMLIB program"
62 --enable-gpgme Enable GnuPG support using GPGME [default=no]"
64 --with-gpgme-prefix=PFX Prefix where gpgme is installed (optional)"
66 --disable-gpgmetest Do not try to compile and run a test gpgme program"
68 --disable-compface Do not use compface (X-Face)"
70 --disable-jconv Do not use libjconv"
72 --enable-threads Enable multithread support [default=no]"
74 --enable-ipv6 Enable IPv6 support [default=no]"
76 # Initialize some variables set by options.
77 # The variables have the same names as the options, with
78 # dashes changed to underlines.
80 cache_file=./config.cache
89 program_transform_name=s,x,x,
97 bindir='${exec_prefix}/bin'
98 sbindir='${exec_prefix}/sbin'
99 libexecdir='${exec_prefix}/libexec'
100 datadir='${prefix}/share'
101 sysconfdir='${prefix}/etc'
102 sharedstatedir='${prefix}/com'
103 localstatedir='${prefix}/var'
104 libdir='${exec_prefix}/lib'
105 includedir='${prefix}/include'
106 oldincludedir='/usr/include'
107 infodir='${prefix}/info'
108 mandir='${prefix}/man'
110 # Initialize some other variables.
113 SHELL=${CONFIG_SHELL-/bin/sh}
114 # Maximum number of lines to put in a shell here document.
121 # If the previous option needs an argument, assign it.
122 if test -n "$ac_prev"; then
123 eval "$ac_prev=\$ac_option"
129 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
133 # Accept the important Cygnus configure options, so we can diagnose typos.
137 -bindir | --bindir | --bindi | --bind | --bin | --bi)
139 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
140 bindir="$ac_optarg" ;;
142 -build | --build | --buil | --bui | --bu)
144 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
145 build="$ac_optarg" ;;
147 -cache-file | --cache-file | --cache-fil | --cache-fi \
148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
149 ac_prev=cache_file ;;
150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
152 cache_file="$ac_optarg" ;;
154 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
156 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
158 datadir="$ac_optarg" ;;
160 -disable-* | --disable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}=no" ;;
169 -enable-* | --enable-*)
170 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
171 # Reject names that are not valid shell variable names.
172 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
173 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180 eval "enable_${ac_feature}='$ac_optarg'" ;;
182 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
183 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
184 | --exec | --exe | --ex)
185 ac_prev=exec_prefix ;;
186 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
187 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
188 | --exec=* | --exe=* | --ex=*)
189 exec_prefix="$ac_optarg" ;;
191 -gas | --gas | --ga | --g)
192 # Obsolete; use --with-gas.
195 -help | --help | --hel | --he)
196 # Omit some internal or obsolete options to make the list less imposing.
197 # This message is too long to be a string in the A/UX 3.1 sh.
199 Usage: configure [options] [host]
200 Options: [defaults in brackets after descriptions]
202 --cache-file=FILE cache test results in FILE
203 --help print this message
204 --no-create do not create output files
205 --quiet, --silent do not print \`checking...' messages
206 --version print the version of autoconf that created configure
207 Directory and file names:
208 --prefix=PREFIX install architecture-independent files in PREFIX
210 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
212 --bindir=DIR user executables in DIR [EPREFIX/bin]
213 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
214 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
215 --datadir=DIR read-only architecture-independent data in DIR
217 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
218 --sharedstatedir=DIR modifiable architecture-independent data in DIR
220 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
221 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
222 --includedir=DIR C header files in DIR [PREFIX/include]
223 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
224 --infodir=DIR info documentation in DIR [PREFIX/info]
225 --mandir=DIR man documentation in DIR [PREFIX/man]
226 --srcdir=DIR find the sources in DIR [configure dir or ..]
227 --program-prefix=PREFIX prepend PREFIX to installed program names
228 --program-suffix=SUFFIX append SUFFIX to installed program names
229 --program-transform-name=PROGRAM
230 run sed PROGRAM on installed program names
234 --build=BUILD configure for building on BUILD [BUILD=HOST]
235 --host=HOST configure for HOST [guessed]
236 --target=TARGET configure for TARGET [TARGET=HOST]
237 Features and packages:
238 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
239 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
240 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
241 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
242 --x-includes=DIR X include files are in DIR
243 --x-libraries=DIR X library files are in DIR
245 if test -n "$ac_help"; then
246 echo "--enable and --with options recognized:$ac_help"
250 -host | --host | --hos | --ho)
252 -host=* | --host=* | --hos=* | --ho=*)
255 -includedir | --includedir | --includedi | --included | --include \
256 | --includ | --inclu | --incl | --inc)
257 ac_prev=includedir ;;
258 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
259 | --includ=* | --inclu=* | --incl=* | --inc=*)
260 includedir="$ac_optarg" ;;
262 -infodir | --infodir | --infodi | --infod | --info | --inf)
264 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
265 infodir="$ac_optarg" ;;
267 -libdir | --libdir | --libdi | --libd)
269 -libdir=* | --libdir=* | --libdi=* | --libd=*)
270 libdir="$ac_optarg" ;;
272 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
273 | --libexe | --libex | --libe)
274 ac_prev=libexecdir ;;
275 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
276 | --libexe=* | --libex=* | --libe=*)
277 libexecdir="$ac_optarg" ;;
279 -localstatedir | --localstatedir | --localstatedi | --localstated \
280 | --localstate | --localstat | --localsta | --localst \
281 | --locals | --local | --loca | --loc | --lo)
282 ac_prev=localstatedir ;;
283 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
284 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
285 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
286 localstatedir="$ac_optarg" ;;
288 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
290 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
291 mandir="$ac_optarg" ;;
294 # Obsolete; use --without-fp.
297 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
301 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
302 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
305 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
306 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
307 | --oldin | --oldi | --old | --ol | --o)
308 ac_prev=oldincludedir ;;
309 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
310 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
311 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
312 oldincludedir="$ac_optarg" ;;
314 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
316 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
317 prefix="$ac_optarg" ;;
319 -program-prefix | --program-prefix | --program-prefi | --program-pref \
320 | --program-pre | --program-pr | --program-p)
321 ac_prev=program_prefix ;;
322 -program-prefix=* | --program-prefix=* | --program-prefi=* \
323 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
324 program_prefix="$ac_optarg" ;;
326 -program-suffix | --program-suffix | --program-suffi | --program-suff \
327 | --program-suf | --program-su | --program-s)
328 ac_prev=program_suffix ;;
329 -program-suffix=* | --program-suffix=* | --program-suffi=* \
330 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
331 program_suffix="$ac_optarg" ;;
333 -program-transform-name | --program-transform-name \
334 | --program-transform-nam | --program-transform-na \
335 | --program-transform-n | --program-transform- \
336 | --program-transform | --program-transfor \
337 | --program-transfo | --program-transf \
338 | --program-trans | --program-tran \
339 | --progr-tra | --program-tr | --program-t)
340 ac_prev=program_transform_name ;;
341 -program-transform-name=* | --program-transform-name=* \
342 | --program-transform-nam=* | --program-transform-na=* \
343 | --program-transform-n=* | --program-transform-=* \
344 | --program-transform=* | --program-transfor=* \
345 | --program-transfo=* | --program-transf=* \
346 | --program-trans=* | --program-tran=* \
347 | --progr-tra=* | --program-tr=* | --program-t=*)
348 program_transform_name="$ac_optarg" ;;
350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
351 | -silent | --silent | --silen | --sile | --sil)
354 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
356 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
358 sbindir="$ac_optarg" ;;
360 -sharedstatedir | --sharedstatedir | --sharedstatedi \
361 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
362 | --sharedst | --shareds | --shared | --share | --shar \
364 ac_prev=sharedstatedir ;;
365 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
366 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
367 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
369 sharedstatedir="$ac_optarg" ;;
371 -site | --site | --sit)
373 -site=* | --site=* | --sit=*)
376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
379 srcdir="$ac_optarg" ;;
381 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
382 | --syscon | --sysco | --sysc | --sys | --sy)
383 ac_prev=sysconfdir ;;
384 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
385 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
386 sysconfdir="$ac_optarg" ;;
388 -target | --target | --targe | --targ | --tar | --ta | --t)
390 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
391 target="$ac_optarg" ;;
393 -v | -verbose | --verbose | --verbos | --verbo | --verb)
396 -version | --version | --versio | --versi | --vers)
397 echo "configure generated by autoconf version 2.13"
401 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}='$ac_optarg'" ;;
413 -without-* | --without-*)
414 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}=no" ;;
423 # Obsolete; use --with-x.
426 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
427 | --x-incl | --x-inc | --x-in | --x-i)
428 ac_prev=x_includes ;;
429 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
430 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
431 x_includes="$ac_optarg" ;;
433 -x-libraries | --x-libraries | --x-librarie | --x-librari \
434 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
435 ac_prev=x_libraries ;;
436 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
437 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
438 x_libraries="$ac_optarg" ;;
440 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
445 echo "configure: warning: $ac_option: invalid host type" 1>&2
447 if test "x$nonopt" != xNONE; then
448 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
456 if test -n "$ac_prev"; then
457 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
460 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462 # File descriptor usage:
465 # 2 errors and warnings
466 # 3 some systems may open it to /dev/tty
467 # 4 used on the Kubota Titan
468 # 6 checking for... messages and results
469 # 5 compiler messages saved in config.log
470 if test "$silent" = yes; then
478 This file contains any messages produced by compilers while
479 running configure, to aid debugging if configure makes a mistake.
482 # Strip out --no-create and --no-recursion so they do not pile up.
483 # Also quote any args containing shell metacharacters.
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c) ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
493 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
494 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
499 # Only set these to C if already set. These must not be set unconditionally
500 # because not all systems understand e.g. LANG=C (notably SCO).
501 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
502 # Non-C LC_CTYPE values break the ctype check.
503 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
504 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
505 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
506 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
508 # confdefs.h avoids OS command line length limits that DEFS can exceed.
509 rm -rf conftest* confdefs.h
510 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
513 # A filename unique to this package, relative to the directory that
514 # configure is in, which we can look for to find out if srcdir is correct.
515 ac_unique_file=src/main.c
517 # Find the source files, if location was not specified.
518 if test -z "$srcdir"; then
519 ac_srcdir_defaulted=yes
520 # Try the directory containing this script, then its parent.
522 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
523 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
525 if test ! -r $srcdir/$ac_unique_file; then
529 ac_srcdir_defaulted=no
531 if test ! -r $srcdir/$ac_unique_file; then
532 if test "$ac_srcdir_defaulted" = yes; then
533 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
538 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540 # Prefer explicitly selected file to automatically selected ones.
541 if test -z "$CONFIG_SITE"; then
542 if test "x$prefix" != xNONE; then
543 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
545 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
548 for ac_site_file in $CONFIG_SITE; do
549 if test -r "$ac_site_file"; then
550 echo "loading site script $ac_site_file"
555 if test -r "$cache_file"; then
556 echo "loading cache $cache_file"
559 echo "creating cache $cache_file"
564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
565 ac_cpp='$CPP $CPPFLAGS'
566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
568 cross_compiling=$ac_cv_prog_cc_cross
572 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
573 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
574 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
581 ac_n= ac_c='\c' ac_t=
593 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
596 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
597 if test -f $ac_dir/install-sh; then
599 ac_install_sh="$ac_aux_dir/install-sh -c"
601 elif test -f $ac_dir/install.sh; then
603 ac_install_sh="$ac_aux_dir/install.sh -c"
607 if test -z "$ac_aux_dir"; then
608 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
610 ac_config_guess=$ac_aux_dir/config.guess
611 ac_config_sub=$ac_aux_dir/config.sub
612 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
614 # Find a good install program. We prefer a C program (faster),
615 # so one script is as good as another. But avoid the broken or
616 # incompatible versions:
617 # SysV /etc/install, /usr/sbin/install
618 # SunOS /usr/etc/install
621 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
622 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
623 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
624 # ./install, which can be erroneously created by make from ./install.sh.
625 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
626 echo "configure:627: checking for a BSD compatible install" >&5
627 if test -z "$INSTALL"; then
628 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
629 echo $ac_n "(cached) $ac_c" 1>&6
631 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
632 for ac_dir in $PATH; do
633 # Account for people who put trailing slashes in PATH elements.
635 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
637 # OSF1 and SCO ODT 3.0 have their own names for install.
638 # Don't use installbsd from OSF since it installs stuff as root
640 for ac_prog in ginstall scoinst install; do
641 if test -f $ac_dir/$ac_prog; then
642 if test $ac_prog = install &&
643 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
644 # AIX install. It has an incompatible calling convention.
647 ac_cv_path_install="$ac_dir/$ac_prog -c"
658 if test "${ac_cv_path_install+set}" = set; then
659 INSTALL="$ac_cv_path_install"
661 # As a last resort, use the slow shell script. We don't cache a
662 # path for INSTALL within a source directory, because that will
663 # break other packages using the cache if that directory is
664 # removed, or if the path is relative.
665 INSTALL="$ac_install_sh"
668 echo "$ac_t""$INSTALL" 1>&6
670 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
671 # It thinks the first close brace ends the variable substitution.
672 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
674 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
676 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
678 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
679 echo "configure:680: checking whether build environment is sane" >&5
682 echo timestamp > conftestfile
683 # Do `set' in a subshell so we don't clobber the current shell's
684 # arguments. Must try -L first in case configure is actually a
685 # symlink; some systems play weird games with the mod time of symlinks
686 # (eg FreeBSD returns the mod time of the symlink's containing
689 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
690 if test "$*" = "X"; then
692 set X `ls -t $srcdir/configure conftestfile`
694 if test "$*" != "X $srcdir/configure conftestfile" \
695 && test "$*" != "X conftestfile $srcdir/configure"; then
697 # If neither matched, then we have a broken ls. This can happen
698 # if, for instance, CONFIG_SHELL is bash and it inherits a
699 # broken ls alias from the environment. This has actually
700 # happened. Such a system could not be considered "sane".
701 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
702 alias in your environment" 1>&2; exit 1; }
705 test "$2" = conftestfile
711 { echo "configure: error: newly created file is older than distributed files!
712 Check your system clock" 1>&2; exit 1; }
715 echo "$ac_t""yes" 1>&6
716 if test "$program_transform_name" = s,x,x,; then
717 program_transform_name=
719 # Double any \ or $. echo might interpret backslashes.
720 cat <<\EOF_SED > conftestsed
721 s,\\,\\\\,g; s,\$,$$,g
723 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
726 test "$program_prefix" != NONE &&
727 program_transform_name="s,^,${program_prefix},; $program_transform_name"
728 # Use a double $ so make ignores it.
729 test "$program_suffix" != NONE &&
730 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
732 # sed with no file args requires a program.
733 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
735 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
736 echo "configure:737: checking whether ${MAKE-make} sets \${MAKE}" >&5
737 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
738 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
739 echo $ac_n "(cached) $ac_c" 1>&6
741 cat > conftestmake <<\EOF
743 @echo 'ac_maketemp="${MAKE}"'
745 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
746 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
747 if test -n "$ac_maketemp"; then
748 eval ac_cv_prog_make_${ac_make}_set=yes
750 eval ac_cv_prog_make_${ac_make}_set=no
754 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
755 echo "$ac_t""yes" 1>&6
758 echo "$ac_t""no" 1>&6
759 SET_MAKE="MAKE=${MAKE-make}"
767 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
768 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
773 missing_dir=`cd $ac_aux_dir && pwd`
774 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
775 echo "configure:776: checking for working aclocal" >&5
776 # Run test in a subshell; some versions of sh will print an error if
777 # an executable is not found, even if stderr is redirected.
778 # Redirect stdin to placate older versions of autoconf. Sigh.
779 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
781 echo "$ac_t""found" 1>&6
783 ACLOCAL="$missing_dir/missing aclocal"
784 echo "$ac_t""missing" 1>&6
787 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
788 echo "configure:789: checking for working autoconf" >&5
789 # Run test in a subshell; some versions of sh will print an error if
790 # an executable is not found, even if stderr is redirected.
791 # Redirect stdin to placate older versions of autoconf. Sigh.
792 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
794 echo "$ac_t""found" 1>&6
796 AUTOCONF="$missing_dir/missing autoconf"
797 echo "$ac_t""missing" 1>&6
800 echo $ac_n "checking for working automake""... $ac_c" 1>&6
801 echo "configure:802: checking for working automake" >&5
802 # Run test in a subshell; some versions of sh will print an error if
803 # an executable is not found, even if stderr is redirected.
804 # Redirect stdin to placate older versions of autoconf. Sigh.
805 if (automake --version) < /dev/null > /dev/null 2>&1; then
807 echo "$ac_t""found" 1>&6
809 AUTOMAKE="$missing_dir/missing automake"
810 echo "$ac_t""missing" 1>&6
813 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
814 echo "configure:815: checking for working autoheader" >&5
815 # Run test in a subshell; some versions of sh will print an error if
816 # an executable is not found, even if stderr is redirected.
817 # Redirect stdin to placate older versions of autoconf. Sigh.
818 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
819 AUTOHEADER=autoheader
820 echo "$ac_t""found" 1>&6
822 AUTOHEADER="$missing_dir/missing autoheader"
823 echo "$ac_t""missing" 1>&6
826 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
827 echo "configure:828: checking for working makeinfo" >&5
828 # Run test in a subshell; some versions of sh will print an error if
829 # an executable is not found, even if stderr is redirected.
830 # Redirect stdin to placate older versions of autoconf. Sigh.
831 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
833 echo "$ac_t""found" 1>&6
835 MAKEINFO="$missing_dir/missing makeinfo"
836 echo "$ac_t""missing" 1>&6
840 cat >> confdefs.h <<EOF
841 #define PACKAGE "$PACKAGE"
844 cat >> confdefs.h <<EOF
845 #define VERSION "$VERSION"
849 LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
850 LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
851 LT_REVISION=$INTERFACE_AGE
852 LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
862 # Check whether --enable-shared or --disable-shared was given.
863 if test "${enable_shared+set}" = set; then
864 enableval="$enable_shared"
867 yes) enable_shared=yes ;;
868 no) enable_shared=no ;;
871 # Look at the argument we got. We use all the common list separators.
872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
873 for pkg in $enableval; do
874 if test "X$pkg" = "X$p"; then
885 # Check whether --enable-static or --disable-static was given.
886 if test "${enable_static+set}" = set; then
887 enableval="$enable_static"
890 yes) enable_static=yes ;;
891 no) enable_static=no ;;
894 # Look at the argument we got. We use all the common list separators.
895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
896 for pkg in $enableval; do
897 if test "X$pkg" = "X$p"; then
908 # Check whether --enable-fast-install or --disable-fast-install was given.
909 if test "${enable_fast_install+set}" = set; then
910 enableval="$enable_fast_install"
913 yes) enable_fast_install=yes ;;
914 no) enable_fast_install=no ;;
916 enable_fast_install=no
917 # Look at the argument we got. We use all the common list separators.
918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
919 for pkg in $enableval; do
920 if test "X$pkg" = "X$p"; then
921 enable_fast_install=yes
928 enable_fast_install=yes
932 # Make sure we can run config.sub.
933 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
934 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
937 echo $ac_n "checking host system type""... $ac_c" 1>&6
938 echo "configure:939: checking host system type" >&5
941 case "$host_alias" in
945 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
946 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
948 *) host_alias=$nonopt ;;
952 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
953 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
954 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
955 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
956 echo "$ac_t""$host" 1>&6
958 echo $ac_n "checking build system type""... $ac_c" 1>&6
959 echo "configure:960: checking build system type" >&5
962 case "$build_alias" in
965 NONE) build_alias=$host_alias ;;
966 *) build_alias=$nonopt ;;
970 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
971 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
972 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
973 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
974 echo "$ac_t""$build" 1>&6
976 # Extract the first word of "ranlib", so it can be a program name with args.
977 set dummy ranlib; ac_word=$2
978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
979 echo "configure:980: checking for $ac_word" >&5
980 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&6
983 if test -n "$RANLIB"; then
984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
988 for ac_dir in $ac_dummy; do
989 test -z "$ac_dir" && ac_dir=.
990 if test -f $ac_dir/$ac_word; then
991 ac_cv_prog_RANLIB="ranlib"
996 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
999 RANLIB="$ac_cv_prog_RANLIB"
1000 if test -n "$RANLIB"; then
1001 echo "$ac_t""$RANLIB" 1>&6
1003 echo "$ac_t""no" 1>&6
1006 # Extract the first word of "gcc", so it can be a program name with args.
1007 set dummy gcc; ac_word=$2
1008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1009 echo "configure:1010: checking for $ac_word" >&5
1010 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1013 if test -n "$CC"; then
1014 ac_cv_prog_CC="$CC" # Let the user override the test.
1016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1018 for ac_dir in $ac_dummy; do
1019 test -z "$ac_dir" && ac_dir=.
1020 if test -f $ac_dir/$ac_word; then
1029 if test -n "$CC"; then
1030 echo "$ac_t""$CC" 1>&6
1032 echo "$ac_t""no" 1>&6
1035 if test -z "$CC"; then
1036 # Extract the first word of "cc", so it can be a program name with args.
1037 set dummy cc; ac_word=$2
1038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1039 echo "configure:1040: checking for $ac_word" >&5
1040 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1043 if test -n "$CC"; then
1044 ac_cv_prog_CC="$CC" # Let the user override the test.
1046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1049 for ac_dir in $ac_dummy; do
1050 test -z "$ac_dir" && ac_dir=.
1051 if test -f $ac_dir/$ac_word; then
1052 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1053 ac_prog_rejected=yes
1061 if test $ac_prog_rejected = yes; then
1062 # We found a bogon in the path, so make sure we never use it.
1063 set dummy $ac_cv_prog_CC
1065 if test $# -gt 0; then
1066 # We chose a different compiler from the bogus one.
1067 # However, it has the same basename, so the bogon will be chosen
1068 # first if we set CC to just the basename; use the full file name.
1070 set dummy "$ac_dir/$ac_word" "$@"
1078 if test -n "$CC"; then
1079 echo "$ac_t""$CC" 1>&6
1081 echo "$ac_t""no" 1>&6
1084 if test -z "$CC"; then
1085 case "`uname -s`" in
1087 # Extract the first word of "cl", so it can be a program name with args.
1088 set dummy cl; ac_word=$2
1089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1090 echo "configure:1091: checking for $ac_word" >&5
1091 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1094 if test -n "$CC"; then
1095 ac_cv_prog_CC="$CC" # Let the user override the test.
1097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1099 for ac_dir in $ac_dummy; do
1100 test -z "$ac_dir" && ac_dir=.
1101 if test -f $ac_dir/$ac_word; then
1110 if test -n "$CC"; then
1111 echo "$ac_t""$CC" 1>&6
1113 echo "$ac_t""no" 1>&6
1118 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1121 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1122 echo "configure:1123: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1125 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1126 ac_cpp='$CPP $CPPFLAGS'
1127 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1128 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1129 cross_compiling=$ac_cv_prog_cc_cross
1131 cat > conftest.$ac_ext << EOF
1133 #line 1134 "configure"
1134 #include "confdefs.h"
1138 if { (eval echo configure:1139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1139 ac_cv_prog_cc_works=yes
1140 # If we can't run a trivial program, we are probably using a cross compiler.
1141 if (./conftest; exit) 2>/dev/null; then
1142 ac_cv_prog_cc_cross=no
1144 ac_cv_prog_cc_cross=yes
1147 echo "configure: failed program was:" >&5
1148 cat conftest.$ac_ext >&5
1149 ac_cv_prog_cc_works=no
1153 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1154 ac_cpp='$CPP $CPPFLAGS'
1155 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1156 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1157 cross_compiling=$ac_cv_prog_cc_cross
1159 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1160 if test $ac_cv_prog_cc_works = no; then
1161 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1163 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1164 echo "configure:1165: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1165 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1166 cross_compiling=$ac_cv_prog_cc_cross
1168 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1169 echo "configure:1170: checking whether we are using GNU C" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 cat > conftest.c <<EOF
1178 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1185 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1187 if test $ac_cv_prog_gcc = yes; then
1193 ac_test_CFLAGS="${CFLAGS+set}"
1194 ac_save_CFLAGS="$CFLAGS"
1196 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1197 echo "configure:1198: checking whether ${CC-cc} accepts -g" >&5
1198 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 echo 'void f(){}' > conftest.c
1202 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1211 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1212 if test "$ac_test_CFLAGS" = set; then
1213 CFLAGS="$ac_save_CFLAGS"
1214 elif test $ac_cv_prog_cc_g = yes; then
1215 if test "$GCC" = yes; then
1221 if test "$GCC" = yes; then
1228 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1229 if test "${with_gnu_ld+set}" = set; then
1230 withval="$with_gnu_ld"
1231 test "$withval" = no || with_gnu_ld=yes
1237 if test "$ac_cv_prog_gcc" = yes; then
1238 # Check if gcc -print-prog-name=ld gives a path.
1239 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1240 echo "configure:1241: checking for ld used by GCC" >&5
1241 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1243 # Accept absolute paths.
1244 [\\/]* | [A-Za-z]:[\\/]*)
1245 re_direlt='/[^/][^/]*/\.\./'
1246 # Canonicalize the path of ld
1247 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1248 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1249 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1251 test -z "$LD" && LD="$ac_prog"
1254 # If it fails, then pretend we aren't using GCC.
1258 # If it is relative, then search for the first ld in PATH.
1262 elif test "$with_gnu_ld" = yes; then
1263 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1264 echo "configure:1265: checking for GNU ld" >&5
1266 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1267 echo "configure:1268: checking for non-GNU ld" >&5
1269 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1272 if test -z "$LD"; then
1273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1274 for ac_dir in $PATH; do
1275 test -z "$ac_dir" && ac_dir=.
1276 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1277 ac_cv_path_LD="$ac_dir/$ac_prog"
1278 # Check to see if the program is GNU ld. I'd rather use --version,
1279 # but apparently some GNU ld's only accept -v.
1280 # Break only if it was the GNU/non-GNU ld that we prefer.
1281 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1282 test "$with_gnu_ld" != no && break
1284 test "$with_gnu_ld" != yes && break
1290 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1295 if test -n "$LD"; then
1296 echo "$ac_t""$LD" 1>&6
1298 echo "$ac_t""no" 1>&6
1300 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1301 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1302 echo "configure:1303: checking if the linker ($LD) is GNU ld" >&5
1303 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1306 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1307 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1308 ac_cv_prog_gnu_ld=yes
1310 ac_cv_prog_gnu_ld=no
1314 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1317 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1318 echo "configure:1319: checking for BSD-compatible nm" >&5
1319 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1322 if test -n "$NM"; then
1323 # Let the user override the test.
1326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1327 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1328 test -z "$ac_dir" && ac_dir=.
1329 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1330 # Check to see if the nm accepts a BSD-compat flag.
1331 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1332 # nm: unknown option "B" ignored
1333 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1334 ac_cv_path_NM="$ac_dir/nm -B"
1336 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1337 ac_cv_path_NM="$ac_dir/nm -p"
1340 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1341 continue # so that we can try to find one that supports BSD flags
1346 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1351 echo "$ac_t""$NM" 1>&6
1353 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1354 echo "configure:1355: checking whether ln -s works" >&5
1355 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1359 if ln -s X conftestdata 2>/dev/null
1362 ac_cv_prog_LN_S="ln -s"
1367 LN_S="$ac_cv_prog_LN_S"
1368 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1369 echo "$ac_t""yes" 1>&6
1371 echo "$ac_t""no" 1>&6
1376 NONE) lt_target="$host" ;;
1377 *) lt_target="$target" ;;
1380 # Check for any special flags to pass to ltconfig.
1382 # the following will cause an existing older ltconfig to fail, so
1383 # we ignore this at the expense of the cache file... Checking this
1384 # will just take longer ... bummer!
1385 #libtool_flags="--cache-file=$cache_file"
1387 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1388 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1389 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1390 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1391 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1394 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1395 if test "${enable_libtool_lock+set}" = set; then
1396 enableval="$enable_libtool_lock"
1400 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1401 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1403 # Some flags need to be propagated to the compiler or linker for good
1405 case "$lt_target" in
1407 # Find out which ABI we are using.
1408 echo '#line 1409 "configure"' > conftest.$ac_ext
1409 if { (eval echo configure:1410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1410 case "`/usr/bin/file conftest.o`" in
1426 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1427 SAVE_CFLAGS="$CFLAGS"
1428 CFLAGS="$CFLAGS -belf"
1429 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1430 echo "configure:1431: checking whether the C compiler needs -belf" >&5
1431 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1432 echo $ac_n "(cached) $ac_c" 1>&6
1434 cat > conftest.$ac_ext <<EOF
1435 #line 1436 "configure"
1436 #include "confdefs.h"
1442 if { (eval echo configure:1443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1444 lt_cv_cc_needs_belf=yes
1446 echo "configure: failed program was:" >&5
1447 cat conftest.$ac_ext >&5
1449 lt_cv_cc_needs_belf=no
1454 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1455 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1456 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1457 CFLAGS="$SAVE_CFLAGS"
1465 # Save cache, so that ltconfig can load it
1466 cat > confcache <<\EOF
1467 # This file is a shell script that caches the results of configure
1468 # tests run on this system so they can be shared between configure
1469 # scripts and configure runs. It is not useful on other systems.
1470 # If it contains results you don't want to keep, you may remove or edit it.
1472 # By default, configure uses ./config.cache as the cache file,
1473 # creating it if it does not exist already. You can give configure
1474 # the --cache-file=FILE option to use a different cache file; that is
1475 # what configure does when it calls configure scripts in
1476 # subdirectories, so they share the cache.
1477 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1478 # config.status only pays attention to the cache file if you give it the
1479 # --recheck option to rerun configure.
1482 # The following way of writing the cache mishandles newlines in values,
1483 # but we know of no workaround that is simple, portable, and efficient.
1484 # So, don't put newlines in cache variables' values.
1485 # Ultrix sh set writes to stderr and can't be redirected directly,
1486 # and sets the high bit in the cache file unless we assign to the vars.
1488 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1490 # `set' does not quote correctly, so add quotes (double-quote substitution
1491 # turns \\\\ into \\, and sed turns \\ into \).
1493 -e "s/'/'\\\\''/g" \
1494 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1497 # `set' quotes correctly as required by POSIX, so do not add quotes.
1498 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1501 if cmp -s $cache_file confcache; then
1504 if test -w $cache_file; then
1505 echo "updating cache $cache_file"
1506 cat confcache > $cache_file
1508 echo "not updating unwritable cache $cache_file"
1514 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1515 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1516 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1517 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1518 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1519 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1520 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1521 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1523 # Reload cache, that may have been modified by ltconfig
1524 if test -r "$cache_file"; then
1525 echo "loading cache $cache_file"
1528 echo "creating cache $cache_file"
1533 # This can be used to rebuild libtool when needed
1534 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1536 # Always use our own libtool.
1537 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1539 # Redirect the config.log output again, so that the ltconfig log is not
1540 # clobbered by the next message.
1541 exec 5>>./config.log
1543 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1544 echo "configure:1545: checking whether to enable maintainer-specific portions of Makefiles" >&5
1545 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1546 if test "${enable_maintainer_mode+set}" = set; then
1547 enableval="$enable_maintainer_mode"
1548 USE_MAINTAINER_MODE=$enableval
1550 USE_MAINTAINER_MODE=no
1553 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1556 if test $USE_MAINTAINER_MODE = yes; then
1557 MAINTAINER_MODE_TRUE=
1558 MAINTAINER_MODE_FALSE='#'
1560 MAINTAINER_MODE_TRUE='#'
1561 MAINTAINER_MODE_FALSE=
1563 MAINT=$MAINTAINER_MODE_TRUE
1567 if test "$program_transform_name" = s,x,x,; then
1568 program_transform_name=
1570 # Double any \ or $. echo might interpret backslashes.
1571 cat <<\EOF_SED > conftestsed
1572 s,\\,\\\\,g; s,\$,$$,g
1574 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1577 test "$program_prefix" != NONE &&
1578 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1579 # Use a double $ so make ignores it.
1580 test "$program_suffix" != NONE &&
1581 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1583 # sed with no file args requires a program.
1584 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1586 # Extract the first word of "gcc", so it can be a program name with args.
1587 set dummy gcc; ac_word=$2
1588 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1589 echo "configure:1590: checking for $ac_word" >&5
1590 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1591 echo $ac_n "(cached) $ac_c" 1>&6
1593 if test -n "$CC"; then
1594 ac_cv_prog_CC="$CC" # Let the user override the test.
1596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1598 for ac_dir in $ac_dummy; do
1599 test -z "$ac_dir" && ac_dir=.
1600 if test -f $ac_dir/$ac_word; then
1609 if test -n "$CC"; then
1610 echo "$ac_t""$CC" 1>&6
1612 echo "$ac_t""no" 1>&6
1615 if test -z "$CC"; then
1616 # Extract the first word of "cc", so it can be a program name with args.
1617 set dummy cc; ac_word=$2
1618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1619 echo "configure:1620: checking for $ac_word" >&5
1620 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1621 echo $ac_n "(cached) $ac_c" 1>&6
1623 if test -n "$CC"; then
1624 ac_cv_prog_CC="$CC" # Let the user override the test.
1626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1629 for ac_dir in $ac_dummy; do
1630 test -z "$ac_dir" && ac_dir=.
1631 if test -f $ac_dir/$ac_word; then
1632 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1633 ac_prog_rejected=yes
1641 if test $ac_prog_rejected = yes; then
1642 # We found a bogon in the path, so make sure we never use it.
1643 set dummy $ac_cv_prog_CC
1645 if test $# -gt 0; then
1646 # We chose a different compiler from the bogus one.
1647 # However, it has the same basename, so the bogon will be chosen
1648 # first if we set CC to just the basename; use the full file name.
1650 set dummy "$ac_dir/$ac_word" "$@"
1658 if test -n "$CC"; then
1659 echo "$ac_t""$CC" 1>&6
1661 echo "$ac_t""no" 1>&6
1664 if test -z "$CC"; then
1665 case "`uname -s`" in
1667 # Extract the first word of "cl", so it can be a program name with args.
1668 set dummy cl; ac_word=$2
1669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1670 echo "configure:1671: checking for $ac_word" >&5
1671 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1674 if test -n "$CC"; then
1675 ac_cv_prog_CC="$CC" # Let the user override the test.
1677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1679 for ac_dir in $ac_dummy; do
1680 test -z "$ac_dir" && ac_dir=.
1681 if test -f $ac_dir/$ac_word; then
1690 if test -n "$CC"; then
1691 echo "$ac_t""$CC" 1>&6
1693 echo "$ac_t""no" 1>&6
1698 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1701 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1702 echo "configure:1703: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1705 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1706 ac_cpp='$CPP $CPPFLAGS'
1707 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1708 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1709 cross_compiling=$ac_cv_prog_cc_cross
1711 cat > conftest.$ac_ext << EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1718 if { (eval echo configure:1719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1719 ac_cv_prog_cc_works=yes
1720 # If we can't run a trivial program, we are probably using a cross compiler.
1721 if (./conftest; exit) 2>/dev/null; then
1722 ac_cv_prog_cc_cross=no
1724 ac_cv_prog_cc_cross=yes
1727 echo "configure: failed program was:" >&5
1728 cat conftest.$ac_ext >&5
1729 ac_cv_prog_cc_works=no
1733 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1734 ac_cpp='$CPP $CPPFLAGS'
1735 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1736 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1737 cross_compiling=$ac_cv_prog_cc_cross
1739 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1740 if test $ac_cv_prog_cc_works = no; then
1741 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1743 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1744 echo "configure:1745: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1745 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1746 cross_compiling=$ac_cv_prog_cc_cross
1748 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1749 echo "configure:1750: checking whether we are using GNU C" >&5
1750 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1753 cat > conftest.c <<EOF
1758 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1765 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1767 if test $ac_cv_prog_gcc = yes; then
1773 ac_test_CFLAGS="${CFLAGS+set}"
1774 ac_save_CFLAGS="$CFLAGS"
1776 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1777 echo "configure:1778: checking whether ${CC-cc} accepts -g" >&5
1778 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1779 echo $ac_n "(cached) $ac_c" 1>&6
1781 echo 'void f(){}' > conftest.c
1782 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1791 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1792 if test "$ac_test_CFLAGS" = set; then
1793 CFLAGS="$ac_save_CFLAGS"
1794 elif test $ac_cv_prog_cc_g = yes; then
1795 if test "$GCC" = yes; then
1801 if test "$GCC" = yes; then
1808 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1809 echo "configure:1810: checking for POSIXized ISC" >&5
1810 if test -d /etc/conf/kconfig.d &&
1811 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1813 echo "$ac_t""yes" 1>&6
1814 ISC=yes # If later tests want to check for ISC.
1815 cat >> confdefs.h <<\EOF
1816 #define _POSIX_SOURCE 1
1819 if test "$GCC" = yes; then
1825 echo "$ac_t""no" 1>&6
1832 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1833 echo "configure:1834: checking for ${CC-cc} option to accept ANSI C" >&5
1834 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1837 am_cv_prog_cc_stdc=no
1839 # Don't try gcc -ansi; that turns off useful extensions and
1840 # breaks some systems' header files.
1841 # AIX -qlanglvl=ansi
1842 # Ultrix and OSF/1 -std1
1843 # HP-UX -Aa -D_HPUX_SOURCE
1844 # SVR4 -Xc -D__EXTENSIONS__
1845 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1847 CC="$ac_save_CC $ac_arg"
1848 cat > conftest.$ac_ext <<EOF
1849 #line 1850 "configure"
1850 #include "confdefs.h"
1853 #include <sys/types.h>
1854 #include <sys/stat.h>
1855 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1856 struct buf { int x; };
1857 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1858 static char *e (p, i)
1864 static char *f (char * (*g) (char **, int), char **p, ...)
1869 s = g (p, va_arg (v,int));
1873 int test (int i, double x);
1874 struct s1 {int (*f) (int a);};
1875 struct s2 {int (*f) (double a);};
1876 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1882 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1886 if { (eval echo configure:1887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1888 am_cv_prog_cc_stdc="$ac_arg"; break
1890 echo "configure: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1899 if test -z "$am_cv_prog_cc_stdc"; then
1900 echo "$ac_t""none needed" 1>&6
1902 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1904 case "x$am_cv_prog_cc_stdc" in
1906 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1909 # Find a good install program. We prefer a C program (faster),
1910 # so one script is as good as another. But avoid the broken or
1911 # incompatible versions:
1912 # SysV /etc/install, /usr/sbin/install
1913 # SunOS /usr/etc/install
1914 # IRIX /sbin/install
1916 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1917 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1918 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1919 # ./install, which can be erroneously created by make from ./install.sh.
1920 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1921 echo "configure:1922: checking for a BSD compatible install" >&5
1922 if test -z "$INSTALL"; then
1923 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1924 echo $ac_n "(cached) $ac_c" 1>&6
1926 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1927 for ac_dir in $PATH; do
1928 # Account for people who put trailing slashes in PATH elements.
1930 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1932 # OSF1 and SCO ODT 3.0 have their own names for install.
1933 # Don't use installbsd from OSF since it installs stuff as root
1935 for ac_prog in ginstall scoinst install; do
1936 if test -f $ac_dir/$ac_prog; then
1937 if test $ac_prog = install &&
1938 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1939 # AIX install. It has an incompatible calling convention.
1942 ac_cv_path_install="$ac_dir/$ac_prog -c"
1953 if test "${ac_cv_path_install+set}" = set; then
1954 INSTALL="$ac_cv_path_install"
1956 # As a last resort, use the slow shell script. We don't cache a
1957 # path for INSTALL within a source directory, because that will
1958 # break other packages using the cache if that directory is
1959 # removed, or if the path is relative.
1960 INSTALL="$ac_install_sh"
1963 echo "$ac_t""$INSTALL" 1>&6
1965 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1966 # It thinks the first close brace ends the variable substitution.
1967 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1969 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1971 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1973 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1974 echo "configure:1975: checking whether ln -s works" >&5
1975 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1979 if ln -s X conftestdata 2>/dev/null
1982 ac_cv_prog_LN_S="ln -s"
1987 LN_S="$ac_cv_prog_LN_S"
1988 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1989 echo "$ac_t""yes" 1>&6
1991 echo "$ac_t""no" 1>&6
1994 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1995 echo "configure:1996: checking whether ${MAKE-make} sets \${MAKE}" >&5
1996 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1997 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1998 echo $ac_n "(cached) $ac_c" 1>&6
2000 cat > conftestmake <<\EOF
2002 @echo 'ac_maketemp="${MAKE}"'
2004 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2005 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2006 if test -n "$ac_maketemp"; then
2007 eval ac_cv_prog_make_${ac_make}_set=yes
2009 eval ac_cv_prog_make_${ac_make}_set=no
2013 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2014 echo "$ac_t""yes" 1>&6
2017 echo "$ac_t""no" 1>&6
2018 SET_MAKE="MAKE=${MAKE-make}"
2021 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2022 echo "configure:2023: checking how to run the C preprocessor" >&5
2023 # On Suns, sometimes $CPP names a directory.
2024 if test -n "$CPP" && test -d "$CPP"; then
2027 if test -z "$CPP"; then
2028 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2029 echo $ac_n "(cached) $ac_c" 1>&6
2031 # This must be in double quotes, not single quotes, because CPP may get
2032 # substituted into the Makefile and "${CC-cc}" will confuse make.
2034 # On the NeXT, cc -E runs the code through the compiler's parser,
2035 # not just through cpp.
2036 cat > conftest.$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2043 { (eval echo configure:2044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2045 if test -z "$ac_err"; then
2049 echo "configure: failed program was:" >&5
2050 cat conftest.$ac_ext >&5
2052 CPP="${CC-cc} -E -traditional-cpp"
2053 cat > conftest.$ac_ext <<EOF
2054 #line 2055 "configure"
2055 #include "confdefs.h"
2059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2060 { (eval echo configure:2061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2062 if test -z "$ac_err"; then
2066 echo "configure: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2069 CPP="${CC-cc} -nologo -E"
2070 cat > conftest.$ac_ext <<EOF
2071 #line 2072 "configure"
2072 #include "confdefs.h"
2076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2077 { (eval echo configure:2078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2079 if test -z "$ac_err"; then
2083 echo "configure: failed program was:" >&5
2084 cat conftest.$ac_ext >&5
2093 ac_cv_prog_CPP="$CPP"
2095 CPP="$ac_cv_prog_CPP"
2097 ac_cv_prog_CPP="$CPP"
2099 echo "$ac_t""$CPP" 1>&6
2103 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2105 for k in ac ; do ACLOCAL="$ACLOCAL -I $k" ; done
2108 ALL_LINGUAS="cs de el es fr it ja ko nl pt_BR ru zh_CN.GB2312 zh_TW.Big5"
2109 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2110 echo "configure:2111: checking for ANSI C header files" >&5
2111 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2114 cat > conftest.$ac_ext <<EOF
2115 #line 2116 "configure"
2116 #include "confdefs.h"
2122 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2123 { (eval echo configure:2124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2124 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2125 if test -z "$ac_err"; then
2127 ac_cv_header_stdc=yes
2130 echo "configure: failed program was:" >&5
2131 cat conftest.$ac_ext >&5
2133 ac_cv_header_stdc=no
2137 if test $ac_cv_header_stdc = yes; then
2138 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2139 cat > conftest.$ac_ext <<EOF
2140 #line 2141 "configure"
2141 #include "confdefs.h"
2144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2145 egrep "memchr" >/dev/null 2>&1; then
2149 ac_cv_header_stdc=no
2155 if test $ac_cv_header_stdc = yes; then
2156 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2157 cat > conftest.$ac_ext <<EOF
2158 #line 2159 "configure"
2159 #include "confdefs.h"
2162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2163 egrep "free" >/dev/null 2>&1; then
2167 ac_cv_header_stdc=no
2173 if test $ac_cv_header_stdc = yes; then
2174 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2175 if test "$cross_compiling" = yes; then
2178 cat > conftest.$ac_ext <<EOF
2179 #line 2180 "configure"
2180 #include "confdefs.h"
2182 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2183 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2184 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2185 int main () { int i; for (i = 0; i < 256; i++)
2186 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2190 if { (eval echo configure:2191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2194 echo "configure: failed program was:" >&5
2195 cat conftest.$ac_ext >&5
2197 ac_cv_header_stdc=no
2205 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2206 if test $ac_cv_header_stdc = yes; then
2207 cat >> confdefs.h <<\EOF
2208 #define STDC_HEADERS 1
2213 echo $ac_n "checking for working const""... $ac_c" 1>&6
2214 echo "configure:2215: checking for working const" >&5
2215 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2216 echo $ac_n "(cached) $ac_c" 1>&6
2218 cat > conftest.$ac_ext <<EOF
2219 #line 2220 "configure"
2220 #include "confdefs.h"
2224 /* Ultrix mips cc rejects this. */
2225 typedef int charset[2]; const charset x;
2226 /* SunOS 4.1.1 cc rejects this. */
2227 char const *const *ccp;
2229 /* NEC SVR4.0.2 mips cc rejects this. */
2230 struct point {int x, y;};
2231 static struct point const zero = {0,0};
2232 /* AIX XL C 1.02.0.0 rejects this.
2233 It does not let you subtract one const X* pointer from another in an arm
2234 of an if-expression whose if-part is not a constant expression */
2235 const char *g = "string";
2236 ccp = &g + (g ? g-g : 0);
2237 /* HPUX 7.0 cc rejects these. */
2240 ccp = (char const *const *) p;
2241 { /* SCO 3.2v4 cc rejects this. */
2243 char const *s = 0 ? (char *) 0 : (char const *) 0;
2247 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2249 const int *foo = &x[0];
2252 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2253 typedef const int *iptr;
2257 { /* AIX XL C 1.02.0.0 rejects this saying
2258 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2259 struct s { int j; const int *ap[3]; };
2260 struct s *b; b->j = 5;
2262 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2268 if { (eval echo configure:2269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2272 echo "configure: failed program was:" >&5
2273 cat conftest.$ac_ext >&5
2280 echo "$ac_t""$ac_cv_c_const" 1>&6
2281 if test $ac_cv_c_const = no; then
2282 cat >> confdefs.h <<\EOF
2288 echo $ac_n "checking for inline""... $ac_c" 1>&6
2289 echo "configure:2290: checking for inline" >&5
2290 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2294 for ac_kw in inline __inline__ __inline; do
2295 cat > conftest.$ac_ext <<EOF
2296 #line 2297 "configure"
2297 #include "confdefs.h"
2303 if { (eval echo configure:2304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2305 ac_cv_c_inline=$ac_kw; break
2307 echo "configure: failed program was:" >&5
2308 cat conftest.$ac_ext >&5
2315 echo "$ac_t""$ac_cv_c_inline" 1>&6
2316 case "$ac_cv_c_inline" in
2318 no) cat >> confdefs.h <<\EOF
2322 *) cat >> confdefs.h <<EOF
2323 #define inline $ac_cv_c_inline
2328 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2329 echo "configure:2330: checking for off_t" >&5
2330 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2333 cat > conftest.$ac_ext <<EOF
2334 #line 2335 "configure"
2335 #include "confdefs.h"
2336 #include <sys/types.h>
2342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2343 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2345 ac_cv_type_off_t=yes
2353 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2354 if test $ac_cv_type_off_t = no; then
2355 cat >> confdefs.h <<\EOF
2361 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2362 echo "configure:2363: checking for size_t" >&5
2363 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2364 echo $ac_n "(cached) $ac_c" 1>&6
2366 cat > conftest.$ac_ext <<EOF
2367 #line 2368 "configure"
2368 #include "confdefs.h"
2369 #include <sys/types.h>
2375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2376 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2378 ac_cv_type_size_t=yes
2381 ac_cv_type_size_t=no
2386 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2387 if test $ac_cv_type_size_t = no; then
2388 cat >> confdefs.h <<\EOF
2389 #define size_t unsigned
2394 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2395 # for constant arguments. Useless!
2396 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2397 echo "configure:2398: checking for working alloca.h" >&5
2398 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2399 echo $ac_n "(cached) $ac_c" 1>&6
2401 cat > conftest.$ac_ext <<EOF
2402 #line 2403 "configure"
2403 #include "confdefs.h"
2406 char *p = alloca(2 * sizeof(int));
2409 if { (eval echo configure:2410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2411 ac_cv_header_alloca_h=yes
2413 echo "configure: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2416 ac_cv_header_alloca_h=no
2421 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2422 if test $ac_cv_header_alloca_h = yes; then
2423 cat >> confdefs.h <<\EOF
2424 #define HAVE_ALLOCA_H 1
2429 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2430 echo "configure:2431: checking for alloca" >&5
2431 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2434 cat > conftest.$ac_ext <<EOF
2435 #line 2436 "configure"
2436 #include "confdefs.h"
2439 # define alloca __builtin_alloca
2442 # include <malloc.h>
2443 # define alloca _alloca
2446 # include <alloca.h>
2451 # ifndef alloca /* predefined by HP cc +Olibcalls */
2460 char *p = (char *) alloca(1);
2463 if { (eval echo configure:2464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2465 ac_cv_func_alloca_works=yes
2467 echo "configure: failed program was:" >&5
2468 cat conftest.$ac_ext >&5
2470 ac_cv_func_alloca_works=no
2475 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2476 if test $ac_cv_func_alloca_works = yes; then
2477 cat >> confdefs.h <<\EOF
2478 #define HAVE_ALLOCA 1
2483 if test $ac_cv_func_alloca_works = no; then
2484 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2485 # that cause trouble. Some versions do not even contain alloca or
2486 # contain a buggy version. If you still want to use their alloca,
2487 # use ar to extract alloca.o from them instead of compiling alloca.c.
2488 ALLOCA=alloca.${ac_objext}
2489 cat >> confdefs.h <<\EOF
2494 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2495 echo "configure:2496: checking whether alloca needs Cray hooks" >&5
2496 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2497 echo $ac_n "(cached) $ac_c" 1>&6
2499 cat > conftest.$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2502 #if defined(CRAY) && ! defined(CRAY2)
2509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2510 egrep "webecray" >/dev/null 2>&1; then
2521 echo "$ac_t""$ac_cv_os_cray" 1>&6
2522 if test $ac_cv_os_cray = yes; then
2523 for ac_func in _getb67 GETB67 getb67; do
2524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2525 echo "configure:2526: checking for $ac_func" >&5
2526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2527 echo $ac_n "(cached) $ac_c" 1>&6
2529 cat > conftest.$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2532 /* System header to define __stub macros and hopefully few prototypes,
2533 which can conflict with char $ac_func(); below. */
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. */
2542 /* The GNU C library defines this for functions which it implements
2543 to always fail with ENOSYS. Some functions are actually named
2544 something starting with __ and the normal name is an alias. */
2545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2553 if { (eval echo configure:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2555 eval "ac_cv_func_$ac_func=yes"
2557 echo "configure: failed program was:" >&5
2558 cat conftest.$ac_ext >&5
2560 eval "ac_cv_func_$ac_func=no"
2565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2566 echo "$ac_t""yes" 1>&6
2567 cat >> confdefs.h <<EOF
2568 #define CRAY_STACKSEG_END $ac_func
2573 echo "$ac_t""no" 1>&6
2579 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2580 echo "configure:2581: checking stack direction for C alloca" >&5
2581 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2584 if test "$cross_compiling" = yes; then
2585 ac_cv_c_stack_direction=0
2587 cat > conftest.$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2590 find_stack_direction ()
2592 static char *addr = 0;
2597 return find_stack_direction ();
2600 return (&dummy > addr) ? 1 : -1;
2604 exit (find_stack_direction() < 0);
2607 if { (eval echo configure:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2609 ac_cv_c_stack_direction=1
2611 echo "configure: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2614 ac_cv_c_stack_direction=-1
2621 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2622 cat >> confdefs.h <<EOF
2623 #define STACK_DIRECTION $ac_cv_c_stack_direction
2628 for ac_hdr in unistd.h
2630 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2631 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2632 echo "configure:2633: checking for $ac_hdr" >&5
2633 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2634 echo $ac_n "(cached) $ac_c" 1>&6
2636 cat > conftest.$ac_ext <<EOF
2637 #line 2638 "configure"
2638 #include "confdefs.h"
2641 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2642 { (eval echo configure:2643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2643 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2644 if test -z "$ac_err"; then
2646 eval "ac_cv_header_$ac_safe=yes"
2649 echo "configure: failed program was:" >&5
2650 cat conftest.$ac_ext >&5
2652 eval "ac_cv_header_$ac_safe=no"
2656 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2657 echo "$ac_t""yes" 1>&6
2658 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2659 cat >> confdefs.h <<EOF
2660 #define $ac_tr_hdr 1
2664 echo "$ac_t""no" 1>&6
2668 for ac_func in getpagesize
2670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2671 echo "configure:2672: checking for $ac_func" >&5
2672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2673 echo $ac_n "(cached) $ac_c" 1>&6
2675 cat > conftest.$ac_ext <<EOF
2676 #line 2677 "configure"
2677 #include "confdefs.h"
2678 /* System header to define __stub macros and hopefully few prototypes,
2679 which can conflict with char $ac_func(); below. */
2681 /* Override any gcc2 internal prototype to avoid an error. */
2682 /* We use char because int might match the return type of a gcc2
2683 builtin and then its argument prototype would still apply. */
2688 /* The GNU C library defines this for functions which it implements
2689 to always fail with ENOSYS. Some functions are actually named
2690 something starting with __ and the normal name is an alias. */
2691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2699 if { (eval echo configure:2700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2701 eval "ac_cv_func_$ac_func=yes"
2703 echo "configure: failed program was:" >&5
2704 cat conftest.$ac_ext >&5
2706 eval "ac_cv_func_$ac_func=no"
2711 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2712 echo "$ac_t""yes" 1>&6
2713 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2714 cat >> confdefs.h <<EOF
2715 #define $ac_tr_func 1
2719 echo "$ac_t""no" 1>&6
2723 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2724 echo "configure:2725: checking for working mmap" >&5
2725 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2728 if test "$cross_compiling" = yes; then
2729 ac_cv_func_mmap_fixed_mapped=no
2731 cat > conftest.$ac_ext <<EOF
2732 #line 2733 "configure"
2733 #include "confdefs.h"
2735 /* Thanks to Mike Haertel and Jim Avera for this test.
2736 Here is a matrix of mmap possibilities:
2737 mmap private not fixed
2738 mmap private fixed at somewhere currently unmapped
2739 mmap private fixed at somewhere already mapped
2740 mmap shared not fixed
2741 mmap shared fixed at somewhere currently unmapped
2742 mmap shared fixed at somewhere already mapped
2743 For private mappings, we should verify that changes cannot be read()
2744 back from the file, nor mmap's back from the file at a different
2745 address. (There have been systems where private was not correctly
2746 implemented like the infamous i386 svr4.0, and systems where the
2747 VM page cache was not coherent with the filesystem buffer cache
2748 like early versions of FreeBSD and possibly contemporary NetBSD.)
2749 For shared mappings, we should conversely verify that changes get
2750 propogated back to all the places they're supposed to be.
2752 Grep wants private fixed already mapped.
2753 The main things grep needs to know about mmap are:
2754 * does it exist and is it safe to write into the mmap'd area
2755 * how to use it (BSD variants) */
2756 #include <sys/types.h>
2758 #include <sys/mman.h>
2760 /* This mess was copied from the GNU getpagesize.h. */
2761 #ifndef HAVE_GETPAGESIZE
2762 # ifdef HAVE_UNISTD_H
2763 # include <unistd.h>
2766 /* Assume that all systems that can run configure have sys/param.h. */
2767 # ifndef HAVE_SYS_PARAM_H
2768 # define HAVE_SYS_PARAM_H 1
2771 # ifdef _SC_PAGESIZE
2772 # define getpagesize() sysconf(_SC_PAGESIZE)
2773 # else /* no _SC_PAGESIZE */
2774 # ifdef HAVE_SYS_PARAM_H
2775 # include <sys/param.h>
2776 # ifdef EXEC_PAGESIZE
2777 # define getpagesize() EXEC_PAGESIZE
2778 # else /* no EXEC_PAGESIZE */
2780 # define getpagesize() NBPG * CLSIZE
2783 # endif /* no CLSIZE */
2784 # else /* no NBPG */
2786 # define getpagesize() NBPC
2787 # else /* no NBPC */
2789 # define getpagesize() PAGESIZE
2790 # endif /* PAGESIZE */
2791 # endif /* no NBPC */
2792 # endif /* no NBPG */
2793 # endif /* no EXEC_PAGESIZE */
2794 # else /* no HAVE_SYS_PARAM_H */
2795 # define getpagesize() 8192 /* punt totally */
2796 # endif /* no HAVE_SYS_PARAM_H */
2797 # endif /* no _SC_PAGESIZE */
2799 #endif /* no HAVE_GETPAGESIZE */
2802 extern "C" { void *malloc(unsigned); }
2810 char *data, *data2, *data3;
2814 pagesize = getpagesize();
2817 * First, make a file with some known garbage in it.
2819 data = malloc(pagesize);
2822 for (i = 0; i < pagesize; ++i)
2823 *(data + i) = rand();
2825 fd = creat("conftestmmap", 0600);
2828 if (write(fd, data, pagesize) != pagesize)
2833 * Next, try to mmap the file at a fixed address which
2834 * already has something else allocated at it. If we can,
2835 * also make sure that we see the same garbage.
2837 fd = open("conftestmmap", O_RDWR);
2840 data2 = malloc(2 * pagesize);
2843 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2844 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2845 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2847 for (i = 0; i < pagesize; ++i)
2848 if (*(data + i) != *(data2 + i))
2852 * Finally, make sure that changes to the mapped area
2853 * do not percolate back to the file as seen by read().
2854 * (This is a bug on some variants of i386 svr4.0.)
2856 for (i = 0; i < pagesize; ++i)
2857 *(data2 + i) = *(data2 + i) + 1;
2858 data3 = malloc(pagesize);
2861 if (read(fd, data3, pagesize) != pagesize)
2863 for (i = 0; i < pagesize; ++i)
2864 if (*(data + i) != *(data3 + i))
2867 unlink("conftestmmap");
2872 if { (eval echo configure:2873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2874 ac_cv_func_mmap_fixed_mapped=yes
2876 echo "configure: failed program was:" >&5
2877 cat conftest.$ac_ext >&5
2879 ac_cv_func_mmap_fixed_mapped=no
2886 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2887 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2888 cat >> confdefs.h <<\EOF
2895 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2896 unistd.h sys/param.h
2898 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2899 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2900 echo "configure:2901: checking for $ac_hdr" >&5
2901 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2902 echo $ac_n "(cached) $ac_c" 1>&6
2904 cat > conftest.$ac_ext <<EOF
2905 #line 2906 "configure"
2906 #include "confdefs.h"
2909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2910 { (eval echo configure:2911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2912 if test -z "$ac_err"; then
2914 eval "ac_cv_header_$ac_safe=yes"
2917 echo "configure: failed program was:" >&5
2918 cat conftest.$ac_ext >&5
2920 eval "ac_cv_header_$ac_safe=no"
2924 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2925 echo "$ac_t""yes" 1>&6
2926 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2927 cat >> confdefs.h <<EOF
2928 #define $ac_tr_hdr 1
2932 echo "$ac_t""no" 1>&6
2936 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2937 strdup __argz_count __argz_stringify __argz_next
2939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2940 echo "configure:2941: checking for $ac_func" >&5
2941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2942 echo $ac_n "(cached) $ac_c" 1>&6
2944 cat > conftest.$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2947 /* System header to define __stub macros and hopefully few prototypes,
2948 which can conflict with char $ac_func(); below. */
2950 /* Override any gcc2 internal prototype to avoid an error. */
2951 /* We use char because int might match the return type of a gcc2
2952 builtin and then its argument prototype would still apply. */
2957 /* The GNU C library defines this for functions which it implements
2958 to always fail with ENOSYS. Some functions are actually named
2959 something starting with __ and the normal name is an alias. */
2960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2968 if { (eval echo configure:2969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2970 eval "ac_cv_func_$ac_func=yes"
2972 echo "configure: failed program was:" >&5
2973 cat conftest.$ac_ext >&5
2975 eval "ac_cv_func_$ac_func=no"
2980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2981 echo "$ac_t""yes" 1>&6
2982 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2983 cat >> confdefs.h <<EOF
2984 #define $ac_tr_func 1
2988 echo "$ac_t""no" 1>&6
2993 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2994 for ac_func in stpcpy
2996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2997 echo "configure:2998: checking for $ac_func" >&5
2998 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2999 echo $ac_n "(cached) $ac_c" 1>&6
3001 cat > conftest.$ac_ext <<EOF
3002 #line 3003 "configure"
3003 #include "confdefs.h"
3004 /* System header to define __stub macros and hopefully few prototypes,
3005 which can conflict with char $ac_func(); below. */
3007 /* Override any gcc2 internal prototype to avoid an error. */
3008 /* We use char because int might match the return type of a gcc2
3009 builtin and then its argument prototype would still apply. */
3014 /* The GNU C library defines this for functions which it implements
3015 to always fail with ENOSYS. Some functions are actually named
3016 something starting with __ and the normal name is an alias. */
3017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3025 if { (eval echo configure:3026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3027 eval "ac_cv_func_$ac_func=yes"
3029 echo "configure: failed program was:" >&5
3030 cat conftest.$ac_ext >&5
3032 eval "ac_cv_func_$ac_func=no"
3037 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3038 echo "$ac_t""yes" 1>&6
3039 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3040 cat >> confdefs.h <<EOF
3041 #define $ac_tr_func 1
3045 echo "$ac_t""no" 1>&6
3050 if test "${ac_cv_func_stpcpy}" = "yes"; then
3051 cat >> confdefs.h <<\EOF
3052 #define HAVE_STPCPY 1
3057 if test $ac_cv_header_locale_h = yes; then
3058 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3059 echo "configure:3060: checking for LC_MESSAGES" >&5
3060 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3063 cat > conftest.$ac_ext <<EOF
3064 #line 3065 "configure"
3065 #include "confdefs.h"
3071 if { (eval echo configure:3072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3073 am_cv_val_LC_MESSAGES=yes
3075 echo "configure: failed program was:" >&5
3076 cat conftest.$ac_ext >&5
3078 am_cv_val_LC_MESSAGES=no
3083 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3084 if test $am_cv_val_LC_MESSAGES = yes; then
3085 cat >> confdefs.h <<\EOF
3086 #define HAVE_LC_MESSAGES 1
3091 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3092 echo "configure:3093: checking whether NLS is requested" >&5
3093 # Check whether --enable-nls or --disable-nls was given.
3094 if test "${enable_nls+set}" = set; then
3095 enableval="$enable_nls"
3101 echo "$ac_t""$USE_NLS" 1>&6
3104 USE_INCLUDED_LIBINTL=no
3106 if test "$USE_NLS" = "yes"; then
3107 cat >> confdefs.h <<\EOF
3108 #define ENABLE_NLS 1
3111 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3112 echo "configure:3113: checking whether included gettext is requested" >&5
3113 # Check whether --with-included-gettext or --without-included-gettext was given.
3114 if test "${with_included_gettext+set}" = set; then
3115 withval="$with_included_gettext"
3116 nls_cv_force_use_gnu_gettext=$withval
3118 nls_cv_force_use_gnu_gettext=no
3121 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3123 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3124 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3126 nls_cv_header_libgt=
3129 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3130 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3131 echo "configure:3132: checking for libintl.h" >&5
3132 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3133 echo $ac_n "(cached) $ac_c" 1>&6
3135 cat > conftest.$ac_ext <<EOF
3136 #line 3137 "configure"
3137 #include "confdefs.h"
3138 #include <libintl.h>
3140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3141 { (eval echo configure:3142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3142 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3143 if test -z "$ac_err"; then
3145 eval "ac_cv_header_$ac_safe=yes"
3148 echo "configure: failed program was:" >&5
3149 cat conftest.$ac_ext >&5
3151 eval "ac_cv_header_$ac_safe=no"
3155 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3156 echo "$ac_t""yes" 1>&6
3157 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3158 echo "configure:3159: checking for gettext in libc" >&5
3159 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3160 echo $ac_n "(cached) $ac_c" 1>&6
3162 cat > conftest.$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3165 #include <libintl.h>
3167 return (int) gettext ("")
3170 if { (eval echo configure:3171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3172 gt_cv_func_gettext_libc=yes
3174 echo "configure: failed program was:" >&5
3175 cat conftest.$ac_ext >&5
3177 gt_cv_func_gettext_libc=no
3182 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3184 if test "$gt_cv_func_gettext_libc" != "yes"; then
3185 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3186 echo "configure:3187: checking for bindtextdomain in -lintl" >&5
3187 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3189 echo $ac_n "(cached) $ac_c" 1>&6
3191 ac_save_LIBS="$LIBS"
3193 cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3196 /* Override any gcc2 internal prototype to avoid an error. */
3197 /* We use char because int might match the return type of a gcc2
3198 builtin and then its argument prototype would still apply. */
3199 char bindtextdomain();
3205 if { (eval echo configure:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3207 eval "ac_cv_lib_$ac_lib_var=yes"
3209 echo "configure: failed program was:" >&5
3210 cat conftest.$ac_ext >&5
3212 eval "ac_cv_lib_$ac_lib_var=no"
3215 LIBS="$ac_save_LIBS"
3218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3219 echo "$ac_t""yes" 1>&6
3220 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3221 echo "configure:3222: checking for gettext in libintl" >&5
3222 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3223 echo $ac_n "(cached) $ac_c" 1>&6
3225 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
3226 echo "configure:3227: checking for gettext in -lintl" >&5
3227 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
3228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3231 ac_save_LIBS="$LIBS"
3233 cat > conftest.$ac_ext <<EOF
3234 #line 3235 "configure"
3235 #include "confdefs.h"
3236 /* Override any gcc2 internal prototype to avoid an error. */
3237 /* We use char because int might match the return type of a gcc2
3238 builtin and then its argument prototype would still apply. */
3245 if { (eval echo configure:3246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3247 eval "ac_cv_lib_$ac_lib_var=yes"
3249 echo "configure: failed program was:" >&5
3250 cat conftest.$ac_ext >&5
3252 eval "ac_cv_lib_$ac_lib_var=no"
3255 LIBS="$ac_save_LIBS"
3258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3259 echo "$ac_t""yes" 1>&6
3260 gt_cv_func_gettext_libintl=yes
3262 echo "$ac_t""no" 1>&6
3263 gt_cv_func_gettext_libintl=no
3268 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3270 echo "$ac_t""no" 1>&6
3275 if test "$gt_cv_func_gettext_libc" = "yes" \
3276 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3277 cat >> confdefs.h <<\EOF
3278 #define HAVE_GETTEXT 1
3281 # Extract the first word of "msgfmt", so it can be a program name with args.
3282 set dummy msgfmt; ac_word=$2
3283 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3284 echo "configure:3285: checking for $ac_word" >&5
3285 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3286 echo $ac_n "(cached) $ac_c" 1>&6
3290 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3294 for ac_dir in $PATH; do
3295 test -z "$ac_dir" && ac_dir=.
3296 if test -f $ac_dir/$ac_word; then
3297 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3298 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3304 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3308 MSGFMT="$ac_cv_path_MSGFMT"
3309 if test -n "$MSGFMT"; then
3310 echo "$ac_t""$MSGFMT" 1>&6
3312 echo "$ac_t""no" 1>&6
3314 if test "$MSGFMT" != "no"; then
3315 for ac_func in dcgettext
3317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3318 echo "configure:3319: checking for $ac_func" >&5
3319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3320 echo $ac_n "(cached) $ac_c" 1>&6
3322 cat > conftest.$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3325 /* System header to define __stub macros and hopefully few prototypes,
3326 which can conflict with char $ac_func(); below. */
3328 /* Override any gcc2 internal prototype to avoid an error. */
3329 /* We use char because int might match the return type of a gcc2
3330 builtin and then its argument prototype would still apply. */
3335 /* The GNU C library defines this for functions which it implements
3336 to always fail with ENOSYS. Some functions are actually named
3337 something starting with __ and the normal name is an alias. */
3338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3346 if { (eval echo configure:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3348 eval "ac_cv_func_$ac_func=yes"
3350 echo "configure: failed program was:" >&5
3351 cat conftest.$ac_ext >&5
3353 eval "ac_cv_func_$ac_func=no"
3358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3359 echo "$ac_t""yes" 1>&6
3360 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3361 cat >> confdefs.h <<EOF
3362 #define $ac_tr_func 1
3366 echo "$ac_t""no" 1>&6
3370 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3371 set dummy gmsgfmt; ac_word=$2
3372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3373 echo "configure:3374: checking for $ac_word" >&5
3374 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3375 echo $ac_n "(cached) $ac_c" 1>&6
3379 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3382 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3387 for ac_dir in $ac_dummy; do
3388 test -z "$ac_dir" && ac_dir=.
3389 if test -f $ac_dir/$ac_word; then
3390 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3395 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3399 GMSGFMT="$ac_cv_path_GMSGFMT"
3400 if test -n "$GMSGFMT"; then
3401 echo "$ac_t""$GMSGFMT" 1>&6
3403 echo "$ac_t""no" 1>&6
3406 # Extract the first word of "xgettext", so it can be a program name with args.
3407 set dummy xgettext; ac_word=$2
3408 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3409 echo "configure:3410: checking for $ac_word" >&5
3410 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3415 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3419 for ac_dir in $PATH; do
3420 test -z "$ac_dir" && ac_dir=.
3421 if test -f $ac_dir/$ac_word; then
3422 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3423 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3429 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3433 XGETTEXT="$ac_cv_path_XGETTEXT"
3434 if test -n "$XGETTEXT"; then
3435 echo "$ac_t""$XGETTEXT" 1>&6
3437 echo "$ac_t""no" 1>&6
3440 cat > conftest.$ac_ext <<EOF
3441 #line 3442 "configure"
3442 #include "confdefs.h"
3445 extern int _nl_msg_cat_cntr;
3446 return _nl_msg_cat_cntr
3449 if { (eval echo configure:3450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3454 echo "configure: failed program was:" >&5
3455 cat conftest.$ac_ext >&5
3466 echo "$ac_t""no" 1>&6
3470 if test "$CATOBJEXT" = "NONE"; then
3471 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
3472 echo "configure:3473: checking whether catgets can be used" >&5
3473 # Check whether --with-catgets or --without-catgets was given.
3474 if test "${with_catgets+set}" = set; then
3475 withval="$with_catgets"
3476 nls_cv_use_catgets=$withval
3478 nls_cv_use_catgets=no
3481 echo "$ac_t""$nls_cv_use_catgets" 1>&6
3483 if test "$nls_cv_use_catgets" = "yes"; then
3484 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
3485 echo "configure:3486: checking for main in -li" >&5
3486 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
3487 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3490 ac_save_LIBS="$LIBS"
3492 cat > conftest.$ac_ext <<EOF
3493 #line 3494 "configure"
3494 #include "confdefs.h"
3500 if { (eval echo configure:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3502 eval "ac_cv_lib_$ac_lib_var=yes"
3504 echo "configure: failed program was:" >&5
3505 cat conftest.$ac_ext >&5
3507 eval "ac_cv_lib_$ac_lib_var=no"
3510 LIBS="$ac_save_LIBS"
3513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3514 echo "$ac_t""yes" 1>&6
3515 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3516 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3517 cat >> confdefs.h <<EOF
3518 #define $ac_tr_lib 1
3524 echo "$ac_t""no" 1>&6
3527 echo $ac_n "checking for catgets""... $ac_c" 1>&6
3528 echo "configure:3529: checking for catgets" >&5
3529 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3532 cat > conftest.$ac_ext <<EOF
3533 #line 3534 "configure"
3534 #include "confdefs.h"
3535 /* System header to define __stub macros and hopefully few prototypes,
3536 which can conflict with char catgets(); below. */
3538 /* Override any gcc2 internal prototype to avoid an error. */
3539 /* We use char because int might match the return type of a gcc2
3540 builtin and then its argument prototype would still apply. */
3545 /* The GNU C library defines this for functions which it implements
3546 to always fail with ENOSYS. Some functions are actually named
3547 something starting with __ and the normal name is an alias. */
3548 #if defined (__stub_catgets) || defined (__stub___catgets)
3556 if { (eval echo configure:3557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3558 eval "ac_cv_func_catgets=yes"
3560 echo "configure: failed program was:" >&5
3561 cat conftest.$ac_ext >&5
3563 eval "ac_cv_func_catgets=no"
3568 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
3569 echo "$ac_t""yes" 1>&6
3570 cat >> confdefs.h <<\EOF
3571 #define HAVE_CATGETS 1
3574 INTLOBJS="\$(CATOBJS)"
3575 # Extract the first word of "gencat", so it can be a program name with args.
3576 set dummy gencat; ac_word=$2
3577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3578 echo "configure:3579: checking for $ac_word" >&5
3579 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3584 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
3587 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
3590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3592 for ac_dir in $ac_dummy; do
3593 test -z "$ac_dir" && ac_dir=.
3594 if test -f $ac_dir/$ac_word; then
3595 ac_cv_path_GENCAT="$ac_dir/$ac_word"
3600 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
3604 GENCAT="$ac_cv_path_GENCAT"
3605 if test -n "$GENCAT"; then
3606 echo "$ac_t""$GENCAT" 1>&6
3608 echo "$ac_t""no" 1>&6
3610 if test "$GENCAT" != "no"; then
3611 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3612 set dummy gmsgfmt; ac_word=$2
3613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3614 echo "configure:3615: checking for $ac_word" >&5
3615 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3620 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3623 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3628 for ac_dir in $ac_dummy; do
3629 test -z "$ac_dir" && ac_dir=.
3630 if test -f $ac_dir/$ac_word; then
3631 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3636 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3640 GMSGFMT="$ac_cv_path_GMSGFMT"
3641 if test -n "$GMSGFMT"; then
3642 echo "$ac_t""$GMSGFMT" 1>&6
3644 echo "$ac_t""no" 1>&6
3647 if test "$GMSGFMT" = "no"; then
3648 # Extract the first word of "msgfmt", so it can be a program name with args.
3649 set dummy msgfmt; ac_word=$2
3650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3651 echo "configure:3652: checking for $ac_word" >&5
3652 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3657 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3661 for ac_dir in $PATH; do
3662 test -z "$ac_dir" && ac_dir=.
3663 if test -f $ac_dir/$ac_word; then
3664 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3665 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3671 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3675 GMSGFMT="$ac_cv_path_GMSGFMT"
3676 if test -n "$GMSGFMT"; then
3677 echo "$ac_t""$GMSGFMT" 1>&6
3679 echo "$ac_t""no" 1>&6
3683 # Extract the first word of "xgettext", so it can be a program name with args.
3684 set dummy xgettext; ac_word=$2
3685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3686 echo "configure:3687: checking for $ac_word" >&5
3687 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3688 echo $ac_n "(cached) $ac_c" 1>&6
3692 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3696 for ac_dir in $PATH; do
3697 test -z "$ac_dir" && ac_dir=.
3698 if test -f $ac_dir/$ac_word; then
3699 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3700 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3706 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3710 XGETTEXT="$ac_cv_path_XGETTEXT"
3711 if test -n "$XGETTEXT"; then
3712 echo "$ac_t""$XGETTEXT" 1>&6
3714 echo "$ac_t""no" 1>&6
3717 USE_INCLUDED_LIBINTL=yes
3721 INTLDEPS='$(top_builddir)/intl/libintl.a'
3723 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3724 nls_cv_header_intl=intl/libintl.h
3725 nls_cv_header_libgt=intl/libgettext.h
3728 echo "$ac_t""no" 1>&6
3734 if test "$CATOBJEXT" = "NONE"; then
3735 nls_cv_use_gnu_gettext=yes
3739 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3740 INTLOBJS="\$(GETTOBJS)"
3741 # Extract the first word of "msgfmt", so it can be a program name with args.
3742 set dummy msgfmt; ac_word=$2
3743 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3744 echo "configure:3745: checking for $ac_word" >&5
3745 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3746 echo $ac_n "(cached) $ac_c" 1>&6
3750 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3754 for ac_dir in $PATH; do
3755 test -z "$ac_dir" && ac_dir=.
3756 if test -f $ac_dir/$ac_word; then
3757 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3758 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3764 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3768 MSGFMT="$ac_cv_path_MSGFMT"
3769 if test -n "$MSGFMT"; then
3770 echo "$ac_t""$MSGFMT" 1>&6
3772 echo "$ac_t""no" 1>&6
3775 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3776 set dummy gmsgfmt; ac_word=$2
3777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3778 echo "configure:3779: checking for $ac_word" >&5
3779 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3780 echo $ac_n "(cached) $ac_c" 1>&6
3784 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3787 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3792 for ac_dir in $ac_dummy; do
3793 test -z "$ac_dir" && ac_dir=.
3794 if test -f $ac_dir/$ac_word; then
3795 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3800 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3804 GMSGFMT="$ac_cv_path_GMSGFMT"
3805 if test -n "$GMSGFMT"; then
3806 echo "$ac_t""$GMSGFMT" 1>&6
3808 echo "$ac_t""no" 1>&6
3811 # Extract the first word of "xgettext", so it can be a program name with args.
3812 set dummy xgettext; ac_word=$2
3813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3814 echo "configure:3815: checking for $ac_word" >&5
3815 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3820 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3824 for ac_dir in $PATH; do
3825 test -z "$ac_dir" && ac_dir=.
3826 if test -f $ac_dir/$ac_word; then
3827 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3828 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3834 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3838 XGETTEXT="$ac_cv_path_XGETTEXT"
3839 if test -n "$XGETTEXT"; then
3840 echo "$ac_t""$XGETTEXT" 1>&6
3842 echo "$ac_t""no" 1>&6
3846 USE_INCLUDED_LIBINTL=yes
3850 INTLDEPS='$(top_builddir)/intl/libintl.a'
3852 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3853 nls_cv_header_intl=intl/libintl.h
3854 nls_cv_header_libgt=intl/libgettext.h
3857 if test "$XGETTEXT" != ":"; then
3858 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3861 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3866 # We need to process the po/ directory.
3870 nls_cv_header_intl=intl/libintl.h
3871 nls_cv_header_libgt=intl/libgettext.h
3877 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3878 # because some of the sources are only built for this goal.
3879 if test "$PACKAGE" = gettext; then
3881 USE_INCLUDED_LIBINTL=yes
3884 for lang in $ALL_LINGUAS; do
3885 GMOFILES="$GMOFILES $lang.gmo"
3886 POFILES="$POFILES $lang.po"
3902 if test "x$CATOBJEXT" != "x"; then
3903 if test "x$ALL_LINGUAS" = "x"; then
3906 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3907 echo "configure:3908: checking for catalogs to be installed" >&5
3909 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3910 case "$ALL_LINGUAS" in
3911 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3914 LINGUAS=$NEW_LINGUAS
3915 echo "$ac_t""$LINGUAS" 1>&6
3918 if test -n "$LINGUAS"; then
3919 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3923 if test $ac_cv_header_locale_h = yes; then
3924 INCLUDE_LOCALE_H="#include <locale.h>"
3927 /* The system does not provide the header <locale.h>. Take care yourself. */"
3931 test -d intl || mkdir intl
3932 if test "$CATOBJEXT" = ".cat"; then
3933 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3934 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3935 echo "configure:3936: checking for linux/version.h" >&5
3936 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3937 echo $ac_n "(cached) $ac_c" 1>&6
3939 cat > conftest.$ac_ext <<EOF
3940 #line 3941 "configure"
3941 #include "confdefs.h"
3942 #include <linux/version.h>
3944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3945 { (eval echo configure:3946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3947 if test -z "$ac_err"; then
3949 eval "ac_cv_header_$ac_safe=yes"
3952 echo "configure: failed program was:" >&5
3953 cat conftest.$ac_ext >&5
3955 eval "ac_cv_header_$ac_safe=no"
3959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3960 echo "$ac_t""yes" 1>&6
3963 echo "$ac_t""no" 1>&6
3968 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3970 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3971 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3973 if test "$PACKAGE" = "gettext"; then
3984 if test -n "$ac_aux_dir"; then
3985 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3987 if test -z "$MKINSTALLDIRS"; then
3988 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3995 test -d po || mkdir po
3996 if test "x$srcdir" != "x."; then
3997 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3998 posrcprefix="$srcdir/"
4000 posrcprefix="../$srcdir/"
4006 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4007 < $srcdir/po/POTFILES.in > po/POTFILES
4009 localedir='${prefix}/${DATADIRNAME}/locale'
4012 manualdir='${prefix}/${DATADIRNAME}/${PACKAGE}/manual'
4015 # Check whether --with-glib-prefix or --without-glib-prefix was given.
4016 if test "${with_glib_prefix+set}" = set; then
4017 withval="$with_glib_prefix"
4018 glib_config_prefix="$withval"
4020 glib_config_prefix=""
4023 # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
4024 if test "${with_glib_exec_prefix+set}" = set; then
4025 withval="$with_glib_exec_prefix"
4026 glib_config_exec_prefix="$withval"
4028 glib_config_exec_prefix=""
4031 # Check whether --enable-glibtest or --disable-glibtest was given.
4032 if test "${enable_glibtest+set}" = set; then
4033 enableval="$enable_glibtest"
4040 if test x$glib_config_exec_prefix != x ; then
4041 glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
4042 if test x${GLIB_CONFIG+set} != xset ; then
4043 GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
4046 if test x$glib_config_prefix != x ; then
4047 glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
4048 if test x${GLIB_CONFIG+set} != xset ; then
4049 GLIB_CONFIG=$glib_config_prefix/bin/glib-config
4053 for module in . gthread
4057 glib_config_args="$glib_config_args gmodule"
4060 glib_config_args="$glib_config_args gthread"
4065 # Extract the first word of "glib-config", so it can be a program name with args.
4066 set dummy glib-config; ac_word=$2
4067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4068 echo "configure:4069: checking for $ac_word" >&5
4069 if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
4070 echo $ac_n "(cached) $ac_c" 1>&6
4072 case "$GLIB_CONFIG" in
4074 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
4077 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
4080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4082 for ac_dir in $ac_dummy; do
4083 test -z "$ac_dir" && ac_dir=.
4084 if test -f $ac_dir/$ac_word; then
4085 ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
4090 test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
4094 GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
4095 if test -n "$GLIB_CONFIG"; then
4096 echo "$ac_t""$GLIB_CONFIG" 1>&6
4098 echo "$ac_t""no" 1>&6
4101 min_glib_version=1.2.6
4102 echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
4103 echo "configure:4104: checking for GLIB - version >= $min_glib_version" >&5
4105 if test "$GLIB_CONFIG" = "no" ; then
4108 GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
4109 GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
4110 glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
4111 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4112 glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
4113 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4114 glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
4115 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4116 if test "x$enable_glibtest" = "xyes" ; then
4117 ac_save_CFLAGS="$CFLAGS"
4118 ac_save_LIBS="$LIBS"
4119 CFLAGS="$CFLAGS $GLIB_CFLAGS"
4120 LIBS="$GLIB_LIBS $LIBS"
4122 if test "$cross_compiling" = yes; then
4123 echo $ac_n "cross compiling; assumed OK... $ac_c"
4125 cat > conftest.$ac_ext <<EOF
4126 #line 4127 "configure"
4127 #include "confdefs.h"
4136 int major, minor, micro;
4139 system ("touch conf.glibtest");
4141 /* HP/UX 9 (%@#!) writes to sscanf strings */
4142 tmp_version = g_strdup("$min_glib_version");
4143 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
4144 printf("%s, bad version string\n", "$min_glib_version");
4148 if ((glib_major_version != $glib_config_major_version) ||
4149 (glib_minor_version != $glib_config_minor_version) ||
4150 (glib_micro_version != $glib_config_micro_version))
4152 printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
4153 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
4154 glib_major_version, glib_minor_version, glib_micro_version);
4155 printf ("*** was found! If glib-config was correct, then it is best\n");
4156 printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
4157 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
4158 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
4159 printf("*** required on your system.\n");
4160 printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
4161 printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
4162 printf("*** before re-running configure\n");
4164 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
4165 (glib_minor_version != GLIB_MINOR_VERSION) ||
4166 (glib_micro_version != GLIB_MICRO_VERSION))
4168 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
4169 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
4170 printf("*** library (version %d.%d.%d)\n",
4171 glib_major_version, glib_minor_version, glib_micro_version);
4175 if ((glib_major_version > major) ||
4176 ((glib_major_version == major) && (glib_minor_version > minor)) ||
4177 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
4183 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
4184 glib_major_version, glib_minor_version, glib_micro_version);
4185 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
4186 major, minor, micro);
4187 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
4189 printf("*** If you have already installed a sufficiently new version, this error\n");
4190 printf("*** probably means that the wrong copy of the glib-config shell script is\n");
4191 printf("*** being found. The easiest way to fix this is to remove the old version\n");
4192 printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
4193 printf("*** correct copy of glib-config. (In this case, you will have to\n");
4194 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
4195 printf("*** so that the correct libraries are found at run-time))\n");
4202 if { (eval echo configure:4203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4206 echo "configure: failed program was:" >&5
4207 cat conftest.$ac_ext >&5
4214 CFLAGS="$ac_save_CFLAGS"
4215 LIBS="$ac_save_LIBS"
4218 if test "x$no_glib" = x ; then
4219 echo "$ac_t""yes" 1>&6
4222 echo "$ac_t""no" 1>&6
4223 if test "$GLIB_CONFIG" = "no" ; then
4224 echo "*** The glib-config script installed by GLIB could not be found"
4225 echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
4226 echo "*** your path, or set the GLIB_CONFIG environment variable to the"
4227 echo "*** full path to glib-config."
4229 if test -f conf.glibtest ; then
4232 echo "*** Could not run GLIB test program, checking why..."
4233 CFLAGS="$CFLAGS $GLIB_CFLAGS"
4234 LIBS="$LIBS $GLIB_LIBS"
4235 cat > conftest.$ac_ext <<EOF
4236 #line 4237 "configure"
4237 #include "confdefs.h"
4243 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
4246 if { (eval echo configure:4247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4248 echo "*** The test program compiled, but did not run. This usually means"
4249 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
4250 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
4251 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4252 echo "*** to the installed location Also, make sure you have run ldconfig if that"
4253 echo "*** is required on your system"
4255 echo "*** If you have an old version installed, it is best to remove it, although"
4256 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4258 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
4259 echo "*** came with the system with the command"
4261 echo "*** rpm --erase --nodeps gtk gtk-devel"
4263 echo "configure: failed program was:" >&5
4264 cat conftest.$ac_ext >&5
4266 echo "*** The test program failed to compile or link. See the file config.log for the"
4267 echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
4268 echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
4269 echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
4272 CFLAGS="$ac_save_CFLAGS"
4273 LIBS="$ac_save_LIBS"
4278 { echo "configure: error: Test for GLIB failed. See the file 'INSTALL' for help." 1>&2; exit 1; }
4284 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
4285 if test "${with_gtk_prefix+set}" = set; then
4286 withval="$with_gtk_prefix"
4287 gtk_config_prefix="$withval"
4289 gtk_config_prefix=""
4292 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
4293 if test "${with_gtk_exec_prefix+set}" = set; then
4294 withval="$with_gtk_exec_prefix"
4295 gtk_config_exec_prefix="$withval"
4297 gtk_config_exec_prefix=""
4300 # Check whether --enable-gtktest or --disable-gtktest was given.
4301 if test "${enable_gtktest+set}" = set; then
4302 enableval="$enable_gtktest"
4313 gtk_config_args="$gtk_config_args gthread"
4318 if test x$gtk_config_exec_prefix != x ; then
4319 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
4320 if test x${GTK_CONFIG+set} != xset ; then
4321 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
4324 if test x$gtk_config_prefix != x ; then
4325 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
4326 if test x${GTK_CONFIG+set} != xset ; then
4327 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
4331 # Extract the first word of "gtk-config", so it can be a program name with args.
4332 set dummy gtk-config; ac_word=$2
4333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4334 echo "configure:4335: checking for $ac_word" >&5
4335 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
4336 echo $ac_n "(cached) $ac_c" 1>&6
4338 case "$GTK_CONFIG" in
4340 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
4343 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
4346 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4348 for ac_dir in $ac_dummy; do
4349 test -z "$ac_dir" && ac_dir=.
4350 if test -f $ac_dir/$ac_word; then
4351 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
4356 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
4360 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
4361 if test -n "$GTK_CONFIG"; then
4362 echo "$ac_t""$GTK_CONFIG" 1>&6
4364 echo "$ac_t""no" 1>&6
4367 min_gtk_version=1.2.6
4368 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
4369 echo "configure:4370: checking for GTK - version >= $min_gtk_version" >&5
4371 if test "$GTK_CONFIG" = "no" ; then
4374 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
4375 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
4376 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
4377 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4378 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
4379 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4380 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
4381 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4382 if test "x$enable_gtktest" = "xyes" ; then
4383 ac_save_CFLAGS="$CFLAGS"
4384 ac_save_LIBS="$LIBS"
4385 CFLAGS="$CFLAGS $GTK_CFLAGS"
4386 LIBS="$GTK_LIBS $LIBS"
4388 if test "$cross_compiling" = yes; then
4389 echo $ac_n "cross compiling; assumed OK... $ac_c"
4391 cat > conftest.$ac_ext <<EOF
4392 #line 4393 "configure"
4393 #include "confdefs.h"
4395 #include <gtk/gtk.h>
4402 int major, minor, micro;
4405 system ("touch conf.gtktest");
4407 /* HP/UX 9 (%@#!) writes to sscanf strings */
4408 tmp_version = g_strdup("$min_gtk_version");
4409 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
4410 printf("%s, bad version string\n", "$min_gtk_version");
4414 if ((gtk_major_version != $gtk_config_major_version) ||
4415 (gtk_minor_version != $gtk_config_minor_version) ||
4416 (gtk_micro_version != $gtk_config_micro_version))
4418 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
4419 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
4420 gtk_major_version, gtk_minor_version, gtk_micro_version);
4421 printf ("*** was found! If gtk-config was correct, then it is best\n");
4422 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
4423 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
4424 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
4425 printf("*** required on your system.\n");
4426 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
4427 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
4428 printf("*** before re-running configure\n");
4430 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
4431 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
4432 (gtk_minor_version != GTK_MINOR_VERSION) ||
4433 (gtk_micro_version != GTK_MICRO_VERSION))
4435 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
4436 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
4437 printf("*** library (version %d.%d.%d)\n",
4438 gtk_major_version, gtk_minor_version, gtk_micro_version);
4440 #endif /* defined (GTK_MAJOR_VERSION) ... */
4443 if ((gtk_major_version > major) ||
4444 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
4445 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
4451 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
4452 gtk_major_version, gtk_minor_version, gtk_micro_version);
4453 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
4454 major, minor, micro);
4455 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
4457 printf("*** If you have already installed a sufficiently new version, this error\n");
4458 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
4459 printf("*** being found. The easiest way to fix this is to remove the old version\n");
4460 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
4461 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
4462 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
4463 printf("*** so that the correct libraries are found at run-time))\n");
4470 if { (eval echo configure:4471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4474 echo "configure: failed program was:" >&5
4475 cat conftest.$ac_ext >&5
4482 CFLAGS="$ac_save_CFLAGS"
4483 LIBS="$ac_save_LIBS"
4486 if test "x$no_gtk" = x ; then
4487 echo "$ac_t""yes" 1>&6
4490 echo "$ac_t""no" 1>&6
4491 if test "$GTK_CONFIG" = "no" ; then
4492 echo "*** The gtk-config script installed by GTK could not be found"
4493 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
4494 echo "*** your path, or set the GTK_CONFIG environment variable to the"
4495 echo "*** full path to gtk-config."
4497 if test -f conf.gtktest ; then
4500 echo "*** Could not run GTK test program, checking why..."
4501 CFLAGS="$CFLAGS $GTK_CFLAGS"
4502 LIBS="$LIBS $GTK_LIBS"
4503 cat > conftest.$ac_ext <<EOF
4504 #line 4505 "configure"
4505 #include "confdefs.h"
4507 #include <gtk/gtk.h>
4511 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
4514 if { (eval echo configure:4515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4516 echo "*** The test program compiled, but did not run. This usually means"
4517 echo "*** that the run-time linker is not finding GTK or finding the wrong"
4518 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
4519 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4520 echo "*** to the installed location Also, make sure you have run ldconfig if that"
4521 echo "*** is required on your system"
4523 echo "*** If you have an old version installed, it is best to remove it, although"
4524 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4526 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
4527 echo "*** came with the system with the command"
4529 echo "*** rpm --erase --nodeps gtk gtk-devel"
4531 echo "configure: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4534 echo "*** The test program failed to compile or link. See the file config.log for the"
4535 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
4536 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
4537 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
4540 CFLAGS="$ac_save_CFLAGS"
4541 LIBS="$ac_save_LIBS"
4546 { echo "configure: error: Test for GTK failed. See the file 'INSTALL' for help." 1>&2; exit 1; }
4553 # Check whether --enable-gdk-pixbuf or --disable-gdk-pixbuf was given.
4554 if test "${enable_gdk_pixbuf+set}" = set; then
4555 enableval="$enable_gdk_pixbuf"
4556 ac_cv_disable_gdk_pixbuf=disable
4558 ac_cv_disable_gdk_pixbuf=no
4561 # Check whether --enable-imlib or --disable-imlib was given.
4562 if test "${enable_imlib+set}" = set; then
4563 enableval="$enable_imlib"
4564 ac_cv_disable_imlib=disable
4566 ac_cv_disable_imlib=no
4570 if test "$ac_cv_disable_gdk_pixbuf" = no; then
4571 # Check whether --with-gdk-pixbuf-prefix or --without-gdk-pixbuf-prefix was given.
4572 if test "${with_gdk_pixbuf_prefix+set}" = set; then
4573 withval="$with_gdk_pixbuf_prefix"
4574 gdk_pixbuf_prefix="$withval"
4576 gdk_pixbuf_prefix=""
4579 # Check whether --with-gdk-pixbuf-exec-prefix or --without-gdk-pixbuf-exec-prefix was given.
4580 if test "${with_gdk_pixbuf_exec_prefix+set}" = set; then
4581 withval="$with_gdk_pixbuf_exec_prefix"
4582 gdk_pixbuf_exec_prefix="$withval"
4584 gdk_pixbuf_exec_prefix=""
4587 # Check whether --enable-gdk_pixbuftest or --disable-gdk_pixbuftest was given.
4588 if test "${enable_gdk_pixbuftest+set}" = set; then
4589 enableval="$enable_gdk_pixbuftest"
4592 enable_gdk_pixbuftest=yes
4596 if test x$gdk_pixbuf_exec_prefix != x ; then
4597 gdk_pixbuf_args="$gdk_pixbuf_args --exec-prefix=$gdk_pixbuf_exec_prefix"
4598 if test x${GDK_PIXBUF_CONFIG+set} = xset ; then
4599 GDK_PIXBUF_CONFIG=$gdk_pixbuf_exec_prefix/gdk-pixbuf-config
4602 if test x$gdk_pixbuf_prefix != x ; then
4603 gdk_pixbuf_args="$gdk_pixbuf_args --prefix=$gdk_pixbuf_prefix"
4604 if test x${GDK_PIXBUF_CONFIG+set} = xset ; then
4605 GDK_PIXBUF_CONFIG=$gdk_pixbuf_prefix/bin/gdk-pixbuf-config
4609 # Extract the first word of "gdk-pixbuf-config", so it can be a program name with args.
4610 set dummy gdk-pixbuf-config; ac_word=$2
4611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4612 echo "configure:4613: checking for $ac_word" >&5
4613 if eval "test \"`echo '$''{'ac_cv_path_GDK_PIXBUF_CONFIG'+set}'`\" = set"; then
4614 echo $ac_n "(cached) $ac_c" 1>&6
4616 case "$GDK_PIXBUF_CONFIG" in
4618 ac_cv_path_GDK_PIXBUF_CONFIG="$GDK_PIXBUF_CONFIG" # Let the user override the test with a path.
4621 ac_cv_path_GDK_PIXBUF_CONFIG="$GDK_PIXBUF_CONFIG" # Let the user override the test with a dos path.
4624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4626 for ac_dir in $ac_dummy; do
4627 test -z "$ac_dir" && ac_dir=.
4628 if test -f $ac_dir/$ac_word; then
4629 ac_cv_path_GDK_PIXBUF_CONFIG="$ac_dir/$ac_word"
4634 test -z "$ac_cv_path_GDK_PIXBUF_CONFIG" && ac_cv_path_GDK_PIXBUF_CONFIG="no"
4638 GDK_PIXBUF_CONFIG="$ac_cv_path_GDK_PIXBUF_CONFIG"
4639 if test -n "$GDK_PIXBUF_CONFIG"; then
4640 echo "$ac_t""$GDK_PIXBUF_CONFIG" 1>&6
4642 echo "$ac_t""no" 1>&6
4645 min_gdk_pixbuf_version=0.8.0
4646 echo $ac_n "checking for GDK_PIXBUF - version >= $min_gdk_pixbuf_version""... $ac_c" 1>&6
4647 echo "configure:4648: checking for GDK_PIXBUF - version >= $min_gdk_pixbuf_version" >&5
4649 if test "$GDK_PIXBUF_CONFIG" = "no" ; then
4652 GDK_PIXBUF_CFLAGS=`$GDK_PIXBUF_CONFIG $gdk_pixbufconf_args --cflags`
4653 GDK_PIXBUF_LIBS=`$GDK_PIXBUF_CONFIG $gdk_pixbufconf_args --libs`
4655 gdk_pixbuf_major_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_args --version | \
4656 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4657 gdk_pixbuf_minor_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_args --version | \
4658 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4659 gdk_pixbuf_micro_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_config_args --version | \
4660 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4661 if test "x$enable_gdk_pixbuftest" = "xyes" ; then
4662 ac_save_CFLAGS="$CFLAGS"
4663 ac_save_LIBS="$LIBS"
4664 CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS"
4665 LIBS="$LIBS $GDK_PIXBUF_LIBS"
4666 rm -f conf.gdk_pixbuftest
4667 if test "$cross_compiling" = yes; then
4668 echo $ac_n "cross compiling; assumed OK... $ac_c"
4670 cat > conftest.$ac_ext <<EOF
4671 #line 4672 "configure"
4672 #include "confdefs.h"
4677 #include <gdk-pixbuf/gdk-pixbuf.h>
4680 my_strdup (char *str)
4686 new_str = malloc ((strlen (str) + 1) * sizeof(char));
4687 strcpy (new_str, str);
4697 int major, minor, micro;
4700 system ("touch conf.gdk_pixbuftest");
4702 /* HP/UX 9 (%@#!) writes to sscanf strings */
4703 tmp_version = my_strdup("$min_gdk_pixbuf_version");
4704 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
4705 printf("%s, bad version string\n", "$min_gdk_pixbuf_version");
4709 if (($gdk_pixbuf_major_version > major) ||
4710 (($gdk_pixbuf_major_version == major) && ($gdk_pixbuf_minor_version > minor)) ||
4711 (($gdk_pixbuf_major_version == major) && ($gdk_pixbuf_minor_version == minor) && ($gdk_pixbuf_micro_version >= micro)))
4717 printf("\n*** 'gdk-pixbuf-config --version' returned %d.%d.%d, but the minimum version\n", $gdk_pixbuf_major_version, $gdk_pixbuf_minor_version, $gdk_pixbuf_micro_version);
4718 printf("*** of GDK_PIXBUF required is %d.%d.%d. If gdk-pixbuf-config is correct, then it is\n", major, minor, micro);
4719 printf("*** best to upgrade to the required version.\n");
4720 printf("*** If gdk-pixbuf-config was wrong, set the environment variable GDK_PIXBUF_CONFIG\n");
4721 printf("*** to point to the correct copy of gdk-pixbuf-config, and remove the file\n");
4722 printf("*** config.cache before re-running configure\n");
4729 if { (eval echo configure:4730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4733 echo "configure: failed program was:" >&5
4734 cat conftest.$ac_ext >&5
4741 CFLAGS="$ac_save_CFLAGS"
4742 LIBS="$ac_save_LIBS"
4745 if test "x$no_gdk_pixbuf" = x ; then
4746 echo "$ac_t""yes" 1>&6
4747 cat >> confdefs.h <<\EOF
4748 #define HAVE_GDK_PIXBUF 1
4752 echo "$ac_t""no" 1>&6
4753 if test "$GDK_PIXBUF_CONFIG" = "no" ; then
4754 echo "*** The gdk-pixbuf-config script installed by GDK_PIXBUF could not be found"
4755 echo "*** If GDK_PIXBUF was installed in PREFIX, make sure PREFIX/bin is in"
4756 echo "*** your path, or set the GDK_PIXBUF_CONFIG environment variable to the"
4757 echo "*** full path to gdk-pixbuf-config."
4759 if test -f conf.gdk_pixbuftest ; then
4762 echo "*** Could not run GDK_PIXBUF test program, checking why..."
4763 CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS"
4764 LIBS="$LIBS $GDK_PIXBUF_LIBS"
4765 cat > conftest.$ac_ext <<EOF
4766 #line 4767 "configure"
4767 #include "confdefs.h"
4770 #include <gdk-pixbuf/gdk-pixbuf.h>
4776 if { (eval echo configure:4777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4778 echo "*** The test program compiled, but did not run. This usually means"
4779 echo "*** that the run-time linker is not finding GDK_PIXBUF or finding the wrong"
4780 echo "*** version of GDK_PIXBUF. If it is not finding GDK_PIXBUF, you'll need to set your"
4781 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4782 echo "*** to the installed location Also, make sure you have run ldconfig if that"
4783 echo "*** is required on your system"
4785 echo "*** If you have an old version installed, it is best to remove it, although"
4786 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4788 echo "configure: failed program was:" >&5
4789 cat conftest.$ac_ext >&5
4791 echo "*** The test program failed to compile or link. See the file config.log for the"
4792 echo "*** exact error that occured. This usually means GDK_PIXBUF was incorrectly installed"
4793 echo "*** or that you have moved GDK_PIXBUF since it was installed. In the latter case, you"
4794 echo "*** may want to edit the gdk-pixbuf-config script: $GDK_PIXBUF_CONFIG"
4797 CFLAGS="$ac_save_CFLAGS"
4798 LIBS="$ac_save_LIBS"
4801 GDK_PIXBUF_CFLAGS=""
4803 ac_cv_disable_gdk_pixbuf=disable
4807 rm -f conf.gdk_pixbuftest
4810 if test "$ac_cv_disable_gdk_pixbuf" = disable -a "$ac_cv_disable_imlib" = no; then
4811 # Check whether --with-imlib-prefix or --without-imlib-prefix was given.
4812 if test "${with_imlib_prefix+set}" = set; then
4813 withval="$with_imlib_prefix"
4814 imlib_prefix="$withval"
4819 # Check whether --with-imlib-exec-prefix or --without-imlib-exec-prefix was given.
4820 if test "${with_imlib_exec_prefix+set}" = set; then
4821 withval="$with_imlib_exec_prefix"
4822 imlib_exec_prefix="$withval"
4824 imlib_exec_prefix=""
4827 # Check whether --enable-imlibtest or --disable-imlibtest was given.
4828 if test "${enable_imlibtest+set}" = set; then
4829 enableval="$enable_imlibtest"
4832 enable_imlibtest=yes
4836 if test x$imlib_exec_prefix != x ; then
4837 imlib_args="$imlib_args --exec-prefix=$imlib_exec_prefix"
4838 if test x${IMLIB_CONFIG+set} != xset ; then
4839 IMLIB_CONFIG=$imlib_exec_prefix/bin/imlib-config
4842 if test x$imlib_prefix != x ; then
4843 imlib_args="$imlib_args --prefix=$imlib_prefix"
4844 if test x${IMLIB_CONFIG+set} != xset ; then
4845 IMLIB_CONFIG=$imlib_prefix/bin/imlib-config
4849 # Extract the first word of "imlib-config", so it can be a program name with args.
4850 set dummy imlib-config; ac_word=$2
4851 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4852 echo "configure:4853: checking for $ac_word" >&5
4853 if eval "test \"`echo '$''{'ac_cv_path_IMLIB_CONFIG'+set}'`\" = set"; then
4854 echo $ac_n "(cached) $ac_c" 1>&6
4856 case "$IMLIB_CONFIG" in
4858 ac_cv_path_IMLIB_CONFIG="$IMLIB_CONFIG" # Let the user override the test with a path.
4861 ac_cv_path_IMLIB_CONFIG="$IMLIB_CONFIG" # Let the user override the test with a dos path.
4864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4866 for ac_dir in $ac_dummy; do
4867 test -z "$ac_dir" && ac_dir=.
4868 if test -f $ac_dir/$ac_word; then
4869 ac_cv_path_IMLIB_CONFIG="$ac_dir/$ac_word"
4874 test -z "$ac_cv_path_IMLIB_CONFIG" && ac_cv_path_IMLIB_CONFIG="no"
4878 IMLIB_CONFIG="$ac_cv_path_IMLIB_CONFIG"
4879 if test -n "$IMLIB_CONFIG"; then
4880 echo "$ac_t""$IMLIB_CONFIG" 1>&6
4882 echo "$ac_t""no" 1>&6
4885 min_imlib_version=1.9
4886 echo $ac_n "checking for IMLIB - version >= $min_imlib_version""... $ac_c" 1>&6
4887 echo "configure:4888: checking for IMLIB - version >= $min_imlib_version" >&5
4889 if test "$IMLIB_CONFIG" = "no" ; then
4892 GDK_IMLIB_CFLAGS=`$IMLIB_CONFIG $imlibconf_args --cflags-gdk`
4893 GDK_IMLIB_LIBS=`$IMLIB_CONFIG $imlibconf_args --libs-gdk`
4895 imlib_major_version=`$IMLIB_CONFIG $imlib_args --version | \
4896 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4897 imlib_minor_version=`$IMLIB_CONFIG $imlib_args --version | \
4898 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4899 if test "x$enable_imlibtest" = "xyes" ; then
4900 ac_save_CFLAGS="$CFLAGS"
4901 ac_save_LIBS="$LIBS"
4902 CFLAGS="$CFLAGS $GDK_IMLIB_CFLAGS"
4903 LIBS="$LIBS $GDK_IMLIB_LIBS"
4904 rm -f conf.imlibtest
4905 if test "$cross_compiling" = yes; then
4906 echo $ac_n "cross compiling; assumed OK... $ac_c"
4908 cat > conftest.$ac_ext <<EOF
4909 #line 4910 "configure"
4910 #include "confdefs.h"
4914 #include <gdk_imlib.h>
4921 system ("touch conf.gdkimlibtest");
4923 /* HP/UX 9 (%@#!) writes to sscanf strings */
4924 tmp_version = g_strdup("$min_imlib_version");
4925 if (sscanf(tmp_version, "%d.%d", &major, &minor) != 2) {
4926 printf("%s, bad version string\n", "$min_imlib_version");
4930 if (($imlib_major_version > major) ||
4931 (($imlib_major_version == major) && ($imlib_minor_version >= minor)))
4937 printf("\n*** 'imlib-config --version' returned %d.%d, but the minimum version\n", $imlib_major_version, $imlib_minor_version);
4938 printf("*** of IMLIB required is %d.%d. If imlib-config is correct, then it is\n", major, minor);
4939 printf("*** best to upgrade to the required version.\n");
4940 printf("*** If imlib-config was wrong, set the environment variable IMLIB_CONFIG\n");
4941 printf("*** to point to the correct copy of imlib-config, and remove the file\n");
4942 printf("*** config.cache before re-running configure\n");
4949 if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4953 echo "configure: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
4961 CFLAGS="$ac_save_CFLAGS"
4962 LIBS="$ac_save_LIBS"
4965 if test "x$no_imlib" = x ; then
4966 echo "$ac_t""yes" 1>&6
4967 cat >> confdefs.h <<\EOF
4968 #define HAVE_GDK_IMLIB 1
4972 echo "$ac_t""no" 1>&6
4973 if test "$IMLIB_CONFIG" = "no" ; then
4974 echo "*** The imlib-config script installed by IMLIB could not be found"
4975 echo "*** If IMLIB was installed in PREFIX, make sure PREFIX/bin is in"
4976 echo "*** your path, or set the IMLIB_CONFIG environment variable to the"
4977 echo "*** full path to imlib-config."
4979 if test -f conf.gdkimlibtest ; then
4982 echo "*** Could not run IMLIB test program, checking why..."
4983 CFLAGS="$CFLAGS $GDK_IMLIB_CFLAGS"
4984 LIBS="$LIBS $GDK_IMLIB_LIBS"
4985 cat > conftest.$ac_ext <<EOF
4986 #line 4987 "configure"
4987 #include "confdefs.h"
4990 #include <gdk_imlib.h>
4996 if { (eval echo configure:4997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4998 echo "*** The test program compiled, but did not run. This usually means"
4999 echo "*** that the run-time linker is not finding IMLIB or finding the wrong"
5000 echo "*** version of IMLIB. If it is not finding IMLIB, you'll need to set your"
5001 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
5002 echo "*** to the installed location Also, make sure you have run ldconfig if that"
5003 echo "*** is required on your system"
5005 echo "*** If you have an old version installed, it is best to remove it, although"
5006 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
5008 echo "configure: failed program was:" >&5
5009 cat conftest.$ac_ext >&5
5011 echo "*** The test program failed to compile or link. See the file config.log for the"
5012 echo "*** exact error that occured. This usually means IMLIB was incorrectly installed"
5013 echo "*** or that you have moved IMLIB since it was installed. In the latter case, you"
5014 echo "*** may want to edit the imlib-config script: $IMLIB_CONFIG"
5017 CFLAGS="$ac_save_CFLAGS"
5018 LIBS="$ac_save_LIBS"
5023 ac_cv_disable_imlib=disable
5027 rm -f conf.gdkimlibtest
5030 if test "$ac_cv_disable_gdk_pixbuf" = disable -a "$ac_cv_disable_imlib" = disable; then
5031 echo "configure: warning: *** Built-in image view will not be supported ***" 1>&2
5034 # Check whether --enable-gpgme or --disable-gpgme was given.
5035 if test "${enable_gpgme+set}" = set; then
5036 enableval="$enable_gpgme"
5037 ac_cv_enable_gpgme=$enableval
5039 ac_cv_enable_gpgme=no
5042 if test $ac_cv_enable_gpgme = yes; then
5043 # Check whether --with-gpgme-prefix or --without-gpgme-prefix was given.
5044 if test "${with_gpgme_prefix+set}" = set; then
5045 withval="$with_gpgme_prefix"
5046 gpgme_config_prefix="$withval"
5048 gpgme_config_prefix=""
5051 # Check whether --enable-gpgmetest or --disable-gpgmetest was given.
5052 if test "${enable_gpgmetest+set}" = set; then
5053 enableval="$enable_gpgmetest"
5056 enable_gpgmetest=yes
5060 if test x$gpgme_config_prefix != x ; then
5061 gpgme_config_args="$gpgme_config_args --prefix=$gpgme_config_prefix"
5062 if test x${GPGME_CONFIG+set} != xset ; then
5063 GPGME_CONFIG=$gpgme_config_prefix/bin/gpgme-config
5067 # Extract the first word of "gpgme-config", so it can be a program name with args.
5068 set dummy gpgme-config; ac_word=$2
5069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5070 echo "configure:5071: checking for $ac_word" >&5
5071 if eval "test \"`echo '$''{'ac_cv_path_GPGME_CONFIG'+set}'`\" = set"; then
5072 echo $ac_n "(cached) $ac_c" 1>&6
5074 case "$GPGME_CONFIG" in
5076 ac_cv_path_GPGME_CONFIG="$GPGME_CONFIG" # Let the user override the test with a path.
5079 ac_cv_path_GPGME_CONFIG="$GPGME_CONFIG" # Let the user override the test with a dos path.
5082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5084 for ac_dir in $ac_dummy; do
5085 test -z "$ac_dir" && ac_dir=.
5086 if test -f $ac_dir/$ac_word; then
5087 ac_cv_path_GPGME_CONFIG="$ac_dir/$ac_word"
5092 test -z "$ac_cv_path_GPGME_CONFIG" && ac_cv_path_GPGME_CONFIG="no"
5096 GPGME_CONFIG="$ac_cv_path_GPGME_CONFIG"
5097 if test -n "$GPGME_CONFIG"; then
5098 echo "$ac_t""$GPGME_CONFIG" 1>&6
5100 echo "$ac_t""no" 1>&6
5103 min_gpgme_version=0.1.4
5104 echo $ac_n "checking for GPGME - version >= $min_gpgme_version""... $ac_c" 1>&6
5105 echo "configure:5106: checking for GPGME - version >= $min_gpgme_version" >&5
5107 if test "$GPGME_CONFIG" = "no" ; then
5110 GPGME_CFLAGS=`$GPGME_CONFIG $gpgme_config_args --cflags`
5111 GPGME_LIBS=`$GPGME_CONFIG $gpgme_config_args --libs`
5112 gpgme_config_version=`$GPGME_CONFIG $gpgme_config_args --version`
5113 if test "x$enable_gpgmetest" = "xyes" ; then
5114 ac_save_CFLAGS="$CFLAGS"
5115 ac_save_LIBS="$LIBS"
5116 CFLAGS="$CFLAGS $GPGME_CFLAGS"
5117 LIBS="$LIBS $GPGME_LIBS"
5118 rm -f conf.gpgmetest
5119 if test "$cross_compiling" = yes; then
5120 echo $ac_n "cross compiling; assumed OK... $ac_c"
5122 cat > conftest.$ac_ext <<EOF
5123 #line 5124 "configure"
5124 #include "confdefs.h"
5134 system ("touch conf.gpgmetest");
5136 if( strcmp( gpgme_check_version(NULL), "$gpgme_config_version" ) )
5139 "*** 'gpgme-config --version' returned %s, but GPGME (%s) was found!\n",
5140 "$gpgme_config_version", gpgme_check_version(NULL) );
5142 "*** If gpgme-config was correct, then it is best to remove the old\n"
5143 "*** version of GPGME. You may also be able to fix the error\n"
5144 "*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"
5145 "*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"
5146 "*** required on your system.\n"
5147 "*** If gpgme-config was wrong, set the environment variable GPGME_CONFIG\n"
5148 "*** to point to the correct copy of gpgme-config, \n"
5149 "*** and remove the file config.cache before re-running configure\n"
5152 else if ( strcmp(gpgme_check_version(NULL), GPGME_VERSION ) )
5154 printf("\n*** GPGME header file (version %s) does not match\n",
5156 printf("*** library (version %s)\n", gpgme_check_version(NULL) );
5160 if ( gpgme_check_version( "$min_gpgme_version" ) )
5163 "*** An old version of GPGME (%s) was found.\n", gpgme_check_version(NULL) );
5165 "*** You need a version of GPGME newer than %s.\n", "$min_gpgme_version" );
5167 "*** The latest version of GPGME is always available at\n"
5168 "*** ftp://ftp.gnupg.org/pub/gcrypt/alpha/gpgme/\n"
5170 "*** If you have already installed a sufficiently new version, this error\n"
5171 "*** probably means that the wrong copy of the gpgme-config shell script is\n"
5172 "*** being found. The easiest way to fix this is to remove the old version\n"
5173 "*** of GPGME, but you can also set the GPGME_CONFIG environment to point to\n"
5174 "*** the correct copy of gpgme-config. (In this case, you will have to\n"
5175 "*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"
5176 "*** so that the correct libraries are found at run-time).\n"
5183 if { (eval echo configure:5184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5187 echo "configure: failed program was:" >&5
5188 cat conftest.$ac_ext >&5
5195 CFLAGS="$ac_save_CFLAGS"
5196 LIBS="$ac_save_LIBS"
5199 if test "x$no_gpgme" = x ; then
5200 echo "$ac_t""yes" 1>&6
5201 cat >> confdefs.h <<\EOF
5206 if test -f conf.gpgmetest ; then
5209 echo "$ac_t""no" 1>&6
5211 if test "$GPGME_CONFIG" = "no" ; then
5212 echo "*** The gpgme-config script installed by GPGME could not be found"
5213 echo "*** If GPGME was installed in PREFIX, make sure PREFIX/bin is in"
5214 echo "*** your path, or set the GPGME_CONFIG environment variable to the"
5215 echo "*** full path to gpgme-config."
5217 if test -f conf.gpgmetest ; then
5220 echo "*** Could not run gpgme test program, checking why..."
5221 CFLAGS="$CFLAGS $GPGME_CFLAGS"
5222 LIBS="$LIBS $GPGME_LIBS"
5223 cat > conftest.$ac_ext <<EOF
5224 #line 5225 "configure"
5225 #include "confdefs.h"
5233 gpgme_check_version(NULL); return 0
5236 if { (eval echo configure:5237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5239 echo "*** The test program compiled, but did not run. This usually means"
5240 echo "*** that the run-time linker is not finding GPGME or finding the wrong"
5241 echo "*** version of GPGME. If it is not finding GPGME, you'll need to set your"
5242 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
5243 echo "*** to the installed location Also, make sure you have run ldconfig if"
5244 echo "*** that is required on your system"
5246 echo "*** If you have an old version installed, it is best to remove it,"
5247 echo "*** although you may also be able to get things to work by"
5248 echo "*** modifying LD_LIBRARY_PATH"
5252 echo "configure: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5256 echo "*** The test program failed to compile or link. See the file config.log"
5257 echo "*** for the exact error that occured. This usually means GPGME was"
5258 echo "*** incorrectly installed or that you have moved GPGME since it was"
5259 echo "*** installed. In the latter case, you may want to edit the"
5260 echo "*** gpgme-config script: $GPGME_CONFIG"
5264 CFLAGS="$ac_save_CFLAGS"
5265 LIBS="$ac_save_LIBS"
5274 rm -f conf.gpgmetest
5278 # Check whether --enable-compface or --disable-compface was given.
5279 if test "${enable_compface+set}" = set; then
5280 enableval="$enable_compface"
5281 ac_cv_disable_compface=disable
5283 ac_cv_disable_compface=no
5286 if test "$ac_cv_disable_compface" = no; then
5287 echo $ac_n "checking for uncompface in -lcompface""... $ac_c" 1>&6
5288 echo "configure:5289: checking for uncompface in -lcompface" >&5
5289 ac_lib_var=`echo compface'_'uncompface | sed 'y%./+-%__p_%'`
5290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5291 echo $ac_n "(cached) $ac_c" 1>&6
5293 ac_save_LIBS="$LIBS"
5294 LIBS="-lcompface $LIBS"
5295 cat > conftest.$ac_ext <<EOF
5296 #line 5297 "configure"
5297 #include "confdefs.h"
5298 /* Override any gcc2 internal prototype to avoid an error. */
5299 /* We use char because int might match the return type of a gcc2
5300 builtin and then its argument prototype would still apply. */
5307 if { (eval echo configure:5308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5309 eval "ac_cv_lib_$ac_lib_var=yes"
5311 echo "configure: failed program was:" >&5
5312 cat conftest.$ac_ext >&5
5314 eval "ac_cv_lib_$ac_lib_var=no"
5317 LIBS="$ac_save_LIBS"
5320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5321 echo "$ac_t""yes" 1>&6
5322 ac_tr_lib=HAVE_LIB`echo compface | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5323 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5324 cat >> confdefs.h <<EOF
5325 #define $ac_tr_lib 1
5328 LIBS="-lcompface $LIBS"
5331 echo "$ac_t""no" 1>&6
5336 # Check whether --enable-jconv or --disable-jconv was given.
5337 if test "${enable_jconv+set}" = set; then
5338 enableval="$enable_jconv"
5339 ac_cv_disable_jconv=disable
5341 ac_cv_disable_jconv=no
5344 if test "$ac_cv_disable_jconv" = no; then
5345 echo $ac_n "checking for jconv_alloc_conv in -ljconv""... $ac_c" 1>&6
5346 echo "configure:5347: checking for jconv_alloc_conv in -ljconv" >&5
5347 ac_lib_var=`echo jconv'_'jconv_alloc_conv | sed 'y%./+-%__p_%'`
5348 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5349 echo $ac_n "(cached) $ac_c" 1>&6
5351 ac_save_LIBS="$LIBS"
5352 LIBS="-ljconv $LIBS"
5353 cat > conftest.$ac_ext <<EOF
5354 #line 5355 "configure"
5355 #include "confdefs.h"
5356 /* Override any gcc2 internal prototype to avoid an error. */
5357 /* We use char because int might match the return type of a gcc2
5358 builtin and then its argument prototype would still apply. */
5359 char jconv_alloc_conv();
5365 if { (eval echo configure:5366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5367 eval "ac_cv_lib_$ac_lib_var=yes"
5369 echo "configure: failed program was:" >&5
5370 cat conftest.$ac_ext >&5
5372 eval "ac_cv_lib_$ac_lib_var=no"
5375 LIBS="$ac_save_LIBS"
5378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5379 echo "$ac_t""yes" 1>&6
5380 ac_tr_lib=HAVE_LIB`echo jconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5381 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5382 cat >> confdefs.h <<EOF
5383 #define $ac_tr_lib 1
5386 LIBS="-ljconv $LIBS"
5389 echo "$ac_t""no" 1>&6
5394 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
5395 echo "configure:5396: checking for setlocale in -lxpg4" >&5
5396 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
5397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5398 echo $ac_n "(cached) $ac_c" 1>&6
5400 ac_save_LIBS="$LIBS"
5402 cat > conftest.$ac_ext <<EOF
5403 #line 5404 "configure"
5404 #include "confdefs.h"
5405 /* Override any gcc2 internal prototype to avoid an error. */
5406 /* We use char because int might match the return type of a gcc2
5407 builtin and then its argument prototype would still apply. */
5414 if { (eval echo configure:5415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5416 eval "ac_cv_lib_$ac_lib_var=yes"
5418 echo "configure: failed program was:" >&5
5419 cat conftest.$ac_ext >&5
5421 eval "ac_cv_lib_$ac_lib_var=no"
5424 LIBS="$ac_save_LIBS"
5427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5428 echo "$ac_t""yes" 1>&6
5429 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5430 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5431 cat >> confdefs.h <<EOF
5432 #define $ac_tr_lib 1
5438 echo "$ac_t""no" 1>&6
5442 # Check whether --enable-threads or --disable-threads was given.
5443 if test "${enable_threads+set}" = set; then
5444 enableval="$enable_threads"
5445 use_threads=$enableval
5451 echo $ac_n "checking whether to use threads""... $ac_c" 1>&6
5452 echo "configure:5453: checking whether to use threads" >&5
5453 if test x"$use_threads" = xyes ; then
5454 echo "$ac_t""yes" 1>&6
5455 if test ! -z `$GLIB_CONFIG --help 2>&1 |grep 'gthread'` ; then
5456 CFLAGS="$CFLAGS `$GLIB_CONFIG --cflags gthread`"
5457 LIBS="$LIBS `$GLIB_CONFIG --libs gthread`"
5458 cat >> confdefs.h <<\EOF
5459 #define USE_THREADS 1
5463 { echo "configure: error: Sylpheed requires GThread from GLib to use threading." 1>&2; exit 1; }
5466 echo "$ac_t""no" 1>&6
5469 # Check whether --enable-ipv6 or --disable-ipv6 was given.
5470 if test "${enable_ipv6+set}" = set; then
5471 enableval="$enable_ipv6"
5472 ac_cv_enableipv6=$enableval
5478 if test x"$ac_cv_enableipv6" = xyes; then
5479 echo $ac_n "checking for IPv6 support""... $ac_c" 1>&6
5480 echo "configure:5481: checking for IPv6 support" >&5
5481 if eval "test \"`echo '$''{'ac_cv_ipv6'+set}'`\" = set"; then
5482 echo $ac_n "(cached) $ac_c" 1>&6
5485 cat > conftest.$ac_ext <<EOF
5486 #line 5487 "configure"
5487 #include "confdefs.h"
5489 #include <sys/types.h>
5490 #include <netinet/in.h>
5492 int x = IPPROTO_IPV6; struct in6_addr a;
5495 if { (eval echo configure:5496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5499 echo "configure: failed program was:" >&5
5500 cat conftest.$ac_ext >&5
5508 echo "$ac_t""$ac_cv_ipv6" 1>&6
5509 if test $ac_cv_ipv6 = yes; then
5510 cat >> confdefs.h <<\EOF
5518 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5520 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5521 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5522 echo "configure:5523: checking for $ac_hdr that defines DIR" >&5
5523 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5524 echo $ac_n "(cached) $ac_c" 1>&6
5526 cat > conftest.$ac_ext <<EOF
5527 #line 5528 "configure"
5528 #include "confdefs.h"
5529 #include <sys/types.h>
5535 if { (eval echo configure:5536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5537 eval "ac_cv_header_dirent_$ac_safe=yes"
5539 echo "configure: failed program was:" >&5
5540 cat conftest.$ac_ext >&5
5542 eval "ac_cv_header_dirent_$ac_safe=no"
5546 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5547 echo "$ac_t""yes" 1>&6
5548 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5549 cat >> confdefs.h <<EOF
5550 #define $ac_tr_hdr 1
5552 ac_header_dirent=$ac_hdr; break
5554 echo "$ac_t""no" 1>&6
5557 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5558 if test $ac_header_dirent = dirent.h; then
5559 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5560 echo "configure:5561: checking for opendir in -ldir" >&5
5561 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
5562 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5563 echo $ac_n "(cached) $ac_c" 1>&6
5565 ac_save_LIBS="$LIBS"
5567 cat > conftest.$ac_ext <<EOF
5568 #line 5569 "configure"
5569 #include "confdefs.h"
5570 /* Override any gcc2 internal prototype to avoid an error. */
5571 /* We use char because int might match the return type of a gcc2
5572 builtin and then its argument prototype would still apply. */
5579 if { (eval echo configure:5580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5581 eval "ac_cv_lib_$ac_lib_var=yes"
5583 echo "configure: failed program was:" >&5
5584 cat conftest.$ac_ext >&5
5586 eval "ac_cv_lib_$ac_lib_var=no"
5589 LIBS="$ac_save_LIBS"
5592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5593 echo "$ac_t""yes" 1>&6
5596 echo "$ac_t""no" 1>&6
5600 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5601 echo "configure:5602: checking for opendir in -lx" >&5
5602 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5603 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5604 echo $ac_n "(cached) $ac_c" 1>&6
5606 ac_save_LIBS="$LIBS"
5608 cat > conftest.$ac_ext <<EOF
5609 #line 5610 "configure"
5610 #include "confdefs.h"
5611 /* Override any gcc2 internal prototype to avoid an error. */
5612 /* We use char because int might match the return type of a gcc2
5613 builtin and then its argument prototype would still apply. */
5620 if { (eval echo configure:5621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5622 eval "ac_cv_lib_$ac_lib_var=yes"
5624 echo "configure: failed program was:" >&5
5625 cat conftest.$ac_ext >&5
5627 eval "ac_cv_lib_$ac_lib_var=no"
5630 LIBS="$ac_save_LIBS"
5633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5634 echo "$ac_t""yes" 1>&6
5637 echo "$ac_t""no" 1>&6
5642 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5643 echo "configure:5644: checking for ANSI C header files" >&5
5644 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5647 cat > conftest.$ac_ext <<EOF
5648 #line 5649 "configure"
5649 #include "confdefs.h"
5655 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5656 { (eval echo configure:5657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5657 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5658 if test -z "$ac_err"; then
5660 ac_cv_header_stdc=yes
5663 echo "configure: failed program was:" >&5
5664 cat conftest.$ac_ext >&5
5666 ac_cv_header_stdc=no
5670 if test $ac_cv_header_stdc = yes; then
5671 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5672 cat > conftest.$ac_ext <<EOF
5673 #line 5674 "configure"
5674 #include "confdefs.h"
5677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5678 egrep "memchr" >/dev/null 2>&1; then
5682 ac_cv_header_stdc=no
5688 if test $ac_cv_header_stdc = yes; then
5689 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5690 cat > conftest.$ac_ext <<EOF
5691 #line 5692 "configure"
5692 #include "confdefs.h"
5695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5696 egrep "free" >/dev/null 2>&1; then
5700 ac_cv_header_stdc=no
5706 if test $ac_cv_header_stdc = yes; then
5707 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5708 if test "$cross_compiling" = yes; then
5711 cat > conftest.$ac_ext <<EOF
5712 #line 5713 "configure"
5713 #include "confdefs.h"
5715 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5716 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5717 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5718 int main () { int i; for (i = 0; i < 256; i++)
5719 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5723 if { (eval echo configure:5724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5727 echo "configure: failed program was:" >&5
5728 cat conftest.$ac_ext >&5
5730 ac_cv_header_stdc=no
5738 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5739 if test $ac_cv_header_stdc = yes; then
5740 cat >> confdefs.h <<\EOF
5741 #define STDC_HEADERS 1
5746 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5747 echo "configure:5748: checking for sys/wait.h that is POSIX.1 compatible" >&5
5748 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5749 echo $ac_n "(cached) $ac_c" 1>&6
5751 cat > conftest.$ac_ext <<EOF
5752 #line 5753 "configure"
5753 #include "confdefs.h"
5754 #include <sys/types.h>
5755 #include <sys/wait.h>
5757 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5760 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5765 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5768 if { (eval echo configure:5769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5770 ac_cv_header_sys_wait_h=yes
5772 echo "configure: failed program was:" >&5
5773 cat conftest.$ac_ext >&5
5775 ac_cv_header_sys_wait_h=no
5780 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5781 if test $ac_cv_header_sys_wait_h = yes; then
5782 cat >> confdefs.h <<\EOF
5783 #define HAVE_SYS_WAIT_H 1
5788 for ac_hdr in fcntl.h sys/file.h unistd.h paths.h sys/param.h
5790 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5791 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5792 echo "configure:5793: checking for $ac_hdr" >&5
5793 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5794 echo $ac_n "(cached) $ac_c" 1>&6
5796 cat > conftest.$ac_ext <<EOF
5797 #line 5798 "configure"
5798 #include "confdefs.h"
5801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5802 { (eval echo configure:5803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5804 if test -z "$ac_err"; then
5806 eval "ac_cv_header_$ac_safe=yes"
5809 echo "configure: failed program was:" >&5
5810 cat conftest.$ac_ext >&5
5812 eval "ac_cv_header_$ac_safe=no"
5816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5817 echo "$ac_t""yes" 1>&6
5818 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5819 cat >> confdefs.h <<EOF
5820 #define $ac_tr_hdr 1
5824 echo "$ac_t""no" 1>&6
5829 echo $ac_n "checking for working const""... $ac_c" 1>&6
5830 echo "configure:5831: checking for working const" >&5
5831 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6
5834 cat > conftest.$ac_ext <<EOF
5835 #line 5836 "configure"
5836 #include "confdefs.h"
5840 /* Ultrix mips cc rejects this. */
5841 typedef int charset[2]; const charset x;
5842 /* SunOS 4.1.1 cc rejects this. */
5843 char const *const *ccp;
5845 /* NEC SVR4.0.2 mips cc rejects this. */
5846 struct point {int x, y;};
5847 static struct point const zero = {0,0};
5848 /* AIX XL C 1.02.0.0 rejects this.
5849 It does not let you subtract one const X* pointer from another in an arm
5850 of an if-expression whose if-part is not a constant expression */
5851 const char *g = "string";
5852 ccp = &g + (g ? g-g : 0);
5853 /* HPUX 7.0 cc rejects these. */
5856 ccp = (char const *const *) p;
5857 { /* SCO 3.2v4 cc rejects this. */
5859 char const *s = 0 ? (char *) 0 : (char const *) 0;
5863 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5865 const int *foo = &x[0];
5868 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5869 typedef const int *iptr;
5873 { /* AIX XL C 1.02.0.0 rejects this saying
5874 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5875 struct s { int j; const int *ap[3]; };
5876 struct s *b; b->j = 5;
5878 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5884 if { (eval echo configure:5885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5888 echo "configure: failed program was:" >&5
5889 cat conftest.$ac_ext >&5
5896 echo "$ac_t""$ac_cv_c_const" 1>&6
5897 if test $ac_cv_c_const = no; then
5898 cat >> confdefs.h <<\EOF
5904 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5905 echo "configure:5906: checking for off_t" >&5
5906 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5907 echo $ac_n "(cached) $ac_c" 1>&6
5909 cat > conftest.$ac_ext <<EOF
5910 #line 5911 "configure"
5911 #include "confdefs.h"
5912 #include <sys/types.h>
5918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5919 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5921 ac_cv_type_off_t=yes
5929 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5930 if test $ac_cv_type_off_t = no; then
5931 cat >> confdefs.h <<\EOF
5937 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5938 echo "configure:5939: checking for pid_t" >&5
5939 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5940 echo $ac_n "(cached) $ac_c" 1>&6
5942 cat > conftest.$ac_ext <<EOF
5943 #line 5944 "configure"
5944 #include "confdefs.h"
5945 #include <sys/types.h>
5951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5952 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5954 ac_cv_type_pid_t=yes
5962 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5963 if test $ac_cv_type_pid_t = no; then
5964 cat >> confdefs.h <<\EOF
5970 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5971 echo "configure:5972: checking for size_t" >&5
5972 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5973 echo $ac_n "(cached) $ac_c" 1>&6
5975 cat > conftest.$ac_ext <<EOF
5976 #line 5977 "configure"
5977 #include "confdefs.h"
5978 #include <sys/types.h>
5984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5985 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5987 ac_cv_type_size_t=yes
5990 ac_cv_type_size_t=no
5995 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5996 if test $ac_cv_type_size_t = no; then
5997 cat >> confdefs.h <<\EOF
5998 #define size_t unsigned
6003 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6004 echo "configure:6005: checking whether struct tm is in sys/time.h or time.h" >&5
6005 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6006 echo $ac_n "(cached) $ac_c" 1>&6
6008 cat > conftest.$ac_ext <<EOF
6009 #line 6010 "configure"
6010 #include "confdefs.h"
6011 #include <sys/types.h>
6014 struct tm *tp; tp->tm_sec;
6017 if { (eval echo configure:6018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6019 ac_cv_struct_tm=time.h
6021 echo "configure: failed program was:" >&5
6022 cat conftest.$ac_ext >&5
6024 ac_cv_struct_tm=sys/time.h
6029 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6030 if test $ac_cv_struct_tm = sys/time.h; then
6031 cat >> confdefs.h <<\EOF
6032 #define TM_IN_SYS_TIME 1
6037 echo $ac_n "checking for wint_t""... $ac_c" 1>&6
6038 echo "configure:6039: checking for wint_t" >&5
6039 if eval "test \"`echo '$''{'ac_cv_type_wint_t'+set}'`\" = set"; then
6040 echo $ac_n "(cached) $ac_c" 1>&6
6042 cat > conftest.$ac_ext <<EOF
6043 #line 6044 "configure"
6044 #include "confdefs.h"
6045 #include <sys/types.h>
6051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6052 egrep "(^|[^a-zA-Z_0-9])wint_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6054 ac_cv_type_wint_t=yes
6057 ac_cv_type_wint_t=no
6062 echo "$ac_t""$ac_cv_type_wint_t" 1>&6
6063 if test $ac_cv_type_wint_t = no; then
6064 cat >> confdefs.h <<\EOF
6065 #define wint_t unsigned int
6071 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6072 # for constant arguments. Useless!
6073 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6074 echo "configure:6075: checking for working alloca.h" >&5
6075 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6076 echo $ac_n "(cached) $ac_c" 1>&6
6078 cat > conftest.$ac_ext <<EOF
6079 #line 6080 "configure"
6080 #include "confdefs.h"
6083 char *p = alloca(2 * sizeof(int));
6086 if { (eval echo configure:6087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6088 ac_cv_header_alloca_h=yes
6090 echo "configure: failed program was:" >&5
6091 cat conftest.$ac_ext >&5
6093 ac_cv_header_alloca_h=no
6098 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6099 if test $ac_cv_header_alloca_h = yes; then
6100 cat >> confdefs.h <<\EOF
6101 #define HAVE_ALLOCA_H 1
6106 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6107 echo "configure:6108: checking for alloca" >&5
6108 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6109 echo $ac_n "(cached) $ac_c" 1>&6
6111 cat > conftest.$ac_ext <<EOF
6112 #line 6113 "configure"
6113 #include "confdefs.h"
6116 # define alloca __builtin_alloca
6119 # include <malloc.h>
6120 # define alloca _alloca
6123 # include <alloca.h>
6128 # ifndef alloca /* predefined by HP cc +Olibcalls */
6137 char *p = (char *) alloca(1);
6140 if { (eval echo configure:6141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6142 ac_cv_func_alloca_works=yes
6144 echo "configure: failed program was:" >&5
6145 cat conftest.$ac_ext >&5
6147 ac_cv_func_alloca_works=no
6152 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6153 if test $ac_cv_func_alloca_works = yes; then
6154 cat >> confdefs.h <<\EOF
6155 #define HAVE_ALLOCA 1
6160 if test $ac_cv_func_alloca_works = no; then
6161 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6162 # that cause trouble. Some versions do not even contain alloca or
6163 # contain a buggy version. If you still want to use their alloca,
6164 # use ar to extract alloca.o from them instead of compiling alloca.c.
6165 ALLOCA=alloca.${ac_objext}
6166 cat >> confdefs.h <<\EOF
6171 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6172 echo "configure:6173: checking whether alloca needs Cray hooks" >&5
6173 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6174 echo $ac_n "(cached) $ac_c" 1>&6
6176 cat > conftest.$ac_ext <<EOF
6177 #line 6178 "configure"
6178 #include "confdefs.h"
6179 #if defined(CRAY) && ! defined(CRAY2)
6186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6187 egrep "webecray" >/dev/null 2>&1; then
6198 echo "$ac_t""$ac_cv_os_cray" 1>&6
6199 if test $ac_cv_os_cray = yes; then
6200 for ac_func in _getb67 GETB67 getb67; do
6201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6202 echo "configure:6203: checking for $ac_func" >&5
6203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6204 echo $ac_n "(cached) $ac_c" 1>&6
6206 cat > conftest.$ac_ext <<EOF
6207 #line 6208 "configure"
6208 #include "confdefs.h"
6209 /* System header to define __stub macros and hopefully few prototypes,
6210 which can conflict with char $ac_func(); below. */
6212 /* Override any gcc2 internal prototype to avoid an error. */
6213 /* We use char because int might match the return type of a gcc2
6214 builtin and then its argument prototype would still apply. */
6219 /* The GNU C library defines this for functions which it implements
6220 to always fail with ENOSYS. Some functions are actually named
6221 something starting with __ and the normal name is an alias. */
6222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6230 if { (eval echo configure:6231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6232 eval "ac_cv_func_$ac_func=yes"
6234 echo "configure: failed program was:" >&5
6235 cat conftest.$ac_ext >&5
6237 eval "ac_cv_func_$ac_func=no"
6242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6243 echo "$ac_t""yes" 1>&6
6244 cat >> confdefs.h <<EOF
6245 #define CRAY_STACKSEG_END $ac_func
6250 echo "$ac_t""no" 1>&6
6256 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6257 echo "configure:6258: checking stack direction for C alloca" >&5
6258 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6259 echo $ac_n "(cached) $ac_c" 1>&6
6261 if test "$cross_compiling" = yes; then
6262 ac_cv_c_stack_direction=0
6264 cat > conftest.$ac_ext <<EOF
6265 #line 6266 "configure"
6266 #include "confdefs.h"
6267 find_stack_direction ()
6269 static char *addr = 0;
6274 return find_stack_direction ();
6277 return (&dummy > addr) ? 1 : -1;
6281 exit (find_stack_direction() < 0);
6284 if { (eval echo configure:6285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6286 ac_cv_c_stack_direction=1
6288 echo "configure: failed program was:" >&5
6289 cat conftest.$ac_ext >&5
6291 ac_cv_c_stack_direction=-1
6298 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6299 cat >> confdefs.h <<EOF
6300 #define STACK_DIRECTION $ac_cv_c_stack_direction
6305 for ac_hdr in wchar.h wctype.h
6307 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6308 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6309 echo "configure:6310: checking for $ac_hdr" >&5
6310 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6311 echo $ac_n "(cached) $ac_c" 1>&6
6313 cat > conftest.$ac_ext <<EOF
6314 #line 6315 "configure"
6315 #include "confdefs.h"
6318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6319 { (eval echo configure:6320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6321 if test -z "$ac_err"; then
6323 eval "ac_cv_header_$ac_safe=yes"
6326 echo "configure: failed program was:" >&5
6327 cat conftest.$ac_ext >&5
6329 eval "ac_cv_header_$ac_safe=no"
6333 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6334 echo "$ac_t""yes" 1>&6
6335 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6336 cat >> confdefs.h <<EOF
6337 #define $ac_tr_hdr 1
6341 echo "$ac_t""no" 1>&6
6345 for ac_func in gethostname mkdir mktime socket strstr \
6346 wcsstr wcswcs iswalnum iswspace towlower \
6347 wcslen wcscpy wcsncpy \
6348 uname flock lockf inet_aton inet_addr \
6351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6352 echo "configure:6353: checking for $ac_func" >&5
6353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6354 echo $ac_n "(cached) $ac_c" 1>&6
6356 cat > conftest.$ac_ext <<EOF
6357 #line 6358 "configure"
6358 #include "confdefs.h"
6359 /* System header to define __stub macros and hopefully few prototypes,
6360 which can conflict with char $ac_func(); below. */
6362 /* Override any gcc2 internal prototype to avoid an error. */
6363 /* We use char because int might match the return type of a gcc2
6364 builtin and then its argument prototype would still apply. */
6369 /* The GNU C library defines this for functions which it implements
6370 to always fail with ENOSYS. Some functions are actually named
6371 something starting with __ and the normal name is an alias. */
6372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6380 if { (eval echo configure:6381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6382 eval "ac_cv_func_$ac_func=yes"
6384 echo "configure: failed program was:" >&5
6385 cat conftest.$ac_ext >&5
6387 eval "ac_cv_func_$ac_func=no"
6392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6393 echo "$ac_t""yes" 1>&6
6394 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6395 cat >> confdefs.h <<EOF
6396 #define $ac_tr_func 1
6400 echo "$ac_t""no" 1>&6
6406 cat > confcache <<\EOF
6407 # This file is a shell script that caches the results of configure
6408 # tests run on this system so they can be shared between configure
6409 # scripts and configure runs. It is not useful on other systems.
6410 # If it contains results you don't want to keep, you may remove or edit it.
6412 # By default, configure uses ./config.cache as the cache file,
6413 # creating it if it does not exist already. You can give configure
6414 # the --cache-file=FILE option to use a different cache file; that is
6415 # what configure does when it calls configure scripts in
6416 # subdirectories, so they share the cache.
6417 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6418 # config.status only pays attention to the cache file if you give it the
6419 # --recheck option to rerun configure.
6422 # The following way of writing the cache mishandles newlines in values,
6423 # but we know of no workaround that is simple, portable, and efficient.
6424 # So, don't put newlines in cache variables' values.
6425 # Ultrix sh set writes to stderr and can't be redirected directly,
6426 # and sets the high bit in the cache file unless we assign to the vars.
6428 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6430 # `set' does not quote correctly, so add quotes (double-quote substitution
6431 # turns \\\\ into \\, and sed turns \\ into \).
6433 -e "s/'/'\\\\''/g" \
6434 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6437 # `set' quotes correctly as required by POSIX, so do not add quotes.
6438 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6441 if cmp -s $cache_file confcache; then
6444 if test -w $cache_file; then
6445 echo "updating cache $cache_file"
6446 cat confcache > $cache_file
6448 echo "not updating unwritable cache $cache_file"
6453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6455 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6456 # Let make expand exec_prefix.
6457 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6459 # Any assignment to VPATH causes Sun make to only execute
6460 # the first set of double-colon rules, so remove it if not needed.
6461 # If there is a colon in the path, we need to keep it.
6462 if test "x$srcdir" = x.; then
6463 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6466 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6468 DEFS=-DHAVE_CONFIG_H
6470 # Without the "./", some shells look in PATH for config.status.
6471 : ${CONFIG_STATUS=./config.status}
6473 echo creating $CONFIG_STATUS
6474 rm -f $CONFIG_STATUS
6475 cat > $CONFIG_STATUS <<EOF
6477 # Generated automatically by configure.
6478 # Run this file to recreate the current configuration.
6479 # This directory was configured as follows,
6480 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6482 # $0 $ac_configure_args
6484 # Compiler output produced by configure, useful for debugging
6485 # configure, is in ./config.log if it exists.
6487 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6490 case "\$ac_option" in
6491 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6492 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6493 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6494 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6495 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6497 -help | --help | --hel | --he | --h)
6498 echo "\$ac_cs_usage"; exit 0 ;;
6499 *) echo "\$ac_cs_usage"; exit 1 ;;
6503 ac_given_srcdir=$srcdir
6504 ac_given_INSTALL="$INSTALL"
6506 trap 'rm -fr `echo "
6516 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6518 cat >> $CONFIG_STATUS <<EOF
6520 # Protect against being on the right side of a sed subst in config.status.
6521 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6522 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6526 s%@CFLAGS@%$CFLAGS%g
6527 s%@CPPFLAGS@%$CPPFLAGS%g
6528 s%@CXXFLAGS@%$CXXFLAGS%g
6529 s%@FFLAGS@%$FFLAGS%g
6531 s%@LDFLAGS@%$LDFLAGS%g
6533 s%@exec_prefix@%$exec_prefix%g
6534 s%@prefix@%$prefix%g
6535 s%@program_transform_name@%$program_transform_name%g
6536 s%@bindir@%$bindir%g
6537 s%@sbindir@%$sbindir%g
6538 s%@libexecdir@%$libexecdir%g
6539 s%@datadir@%$datadir%g
6540 s%@sysconfdir@%$sysconfdir%g
6541 s%@sharedstatedir@%$sharedstatedir%g
6542 s%@localstatedir@%$localstatedir%g
6543 s%@libdir@%$libdir%g
6544 s%@includedir@%$includedir%g
6545 s%@oldincludedir@%$oldincludedir%g
6546 s%@infodir@%$infodir%g
6547 s%@mandir@%$mandir%g
6548 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6549 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6550 s%@INSTALL_DATA@%$INSTALL_DATA%g
6551 s%@PACKAGE@%$PACKAGE%g
6552 s%@VERSION@%$VERSION%g
6553 s%@ACLOCAL@%$ACLOCAL%g
6554 s%@AUTOCONF@%$AUTOCONF%g
6555 s%@AUTOMAKE@%$AUTOMAKE%g
6556 s%@AUTOHEADER@%$AUTOHEADER%g
6557 s%@MAKEINFO@%$MAKEINFO%g
6558 s%@SET_MAKE@%$SET_MAKE%g
6559 s%@LT_RELEASE@%$LT_RELEASE%g
6560 s%@LT_CURRENT@%$LT_CURRENT%g
6561 s%@LT_REVISION@%$LT_REVISION%g
6562 s%@LT_AGE@%$LT_AGE%g
6564 s%@host_alias@%$host_alias%g
6565 s%@host_cpu@%$host_cpu%g
6566 s%@host_vendor@%$host_vendor%g
6567 s%@host_os@%$host_os%g
6569 s%@build_alias@%$build_alias%g
6570 s%@build_cpu@%$build_cpu%g
6571 s%@build_vendor@%$build_vendor%g
6572 s%@build_os@%$build_os%g
6573 s%@RANLIB@%$RANLIB%g
6576 s%@LIBTOOL@%$LIBTOOL%g
6577 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6578 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6581 s%@ALLOCA@%$ALLOCA%g
6582 s%@USE_NLS@%$USE_NLS%g
6583 s%@MSGFMT@%$MSGFMT%g
6584 s%@GMSGFMT@%$GMSGFMT%g
6585 s%@XGETTEXT@%$XGETTEXT%g
6586 s%@GENCAT@%$GENCAT%g
6587 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6588 s%@CATALOGS@%$CATALOGS%g
6589 s%@CATOBJEXT@%$CATOBJEXT%g
6590 s%@DATADIRNAME@%$DATADIRNAME%g
6591 s%@GMOFILES@%$GMOFILES%g
6592 s%@INSTOBJEXT@%$INSTOBJEXT%g
6593 s%@INTLDEPS@%$INTLDEPS%g
6594 s%@INTLLIBS@%$INTLLIBS%g
6595 s%@INTLOBJS@%$INTLOBJS%g
6596 s%@POFILES@%$POFILES%g
6598 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6600 s%@GT_YES@%$GT_YES%g
6601 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6603 s%@localedir@%$localedir%g
6604 s%@manualdir@%$manualdir%g
6605 s%@GLIB_CONFIG@%$GLIB_CONFIG%g
6606 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
6607 s%@GLIB_LIBS@%$GLIB_LIBS%g
6608 s%@GTK_CONFIG@%$GTK_CONFIG%g
6609 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
6610 s%@GTK_LIBS@%$GTK_LIBS%g
6611 s%@GDK_PIXBUF_CONFIG@%$GDK_PIXBUF_CONFIG%g
6612 s%@GDK_PIXBUF_CFLAGS@%$GDK_PIXBUF_CFLAGS%g
6613 s%@GDK_PIXBUF_LIBS@%$GDK_PIXBUF_LIBS%g
6614 s%@IMLIB_CONFIG@%$IMLIB_CONFIG%g
6615 s%@GDK_IMLIB_CFLAGS@%$GDK_IMLIB_CFLAGS%g
6616 s%@GDK_IMLIB_LIBS@%$GDK_IMLIB_LIBS%g
6617 s%@GPGME_CONFIG@%$GPGME_CONFIG%g
6618 s%@GPGME_CFLAGS@%$GPGME_CFLAGS%g
6619 s%@GPGME_LIBS@%$GPGME_LIBS%g
6624 cat >> $CONFIG_STATUS <<\EOF
6626 # Split the substitutions into bite-sized pieces for seds with
6627 # small command number limits, like on Digital OSF/1 and HP-UX.
6628 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6629 ac_file=1 # Number of current file.
6630 ac_beg=1 # First line for current file.
6631 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6634 while $ac_more_lines; do
6635 if test $ac_beg -gt 1; then
6636 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6638 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6640 if test ! -s conftest.s$ac_file; then
6642 rm -f conftest.s$ac_file
6644 if test -z "$ac_sed_cmds"; then
6645 ac_sed_cmds="sed -f conftest.s$ac_file"
6647 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6649 ac_file=`expr $ac_file + 1`
6651 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6654 if test -z "$ac_sed_cmds"; then
6659 cat >> $CONFIG_STATUS <<EOF
6661 CONFIG_FILES=\${CONFIG_FILES-"Makefile
6672 cat >> $CONFIG_STATUS <<\EOF
6673 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6674 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6676 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6677 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6678 *) ac_file_in="${ac_file}.in" ;;
6681 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6683 # Remove last slash and all that follows it. Not all systems have dirname.
6684 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6685 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6686 # The file is in a subdirectory.
6687 test ! -d "$ac_dir" && mkdir "$ac_dir"
6688 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6689 # A "../" for each directory in $ac_dir_suffix.
6690 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6692 ac_dir_suffix= ac_dots=
6695 case "$ac_given_srcdir" in
6697 if test -z "$ac_dots"; then top_srcdir=.
6698 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6699 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6701 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6702 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6705 case "$ac_given_INSTALL" in
6706 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6707 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6710 echo creating "$ac_file"
6712 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6714 *Makefile*) ac_comsub="1i\\
6715 # $configure_input" ;;
6719 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6721 s%@configure_input@%$configure_input%g
6722 s%@srcdir@%$srcdir%g
6723 s%@top_srcdir@%$top_srcdir%g
6724 s%@INSTALL@%$INSTALL%g
6725 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6729 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6730 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6732 # ac_d sets the value in "#define NAME VALUE" lines.
6733 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6734 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6737 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6738 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6739 ac_uB='\([ ]\)%\1#\2define\3'
6742 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6743 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6744 ac_eB='$%\1#\2define\3'
6748 if test "${CONFIG_HEADERS+set}" != set; then
6750 cat >> $CONFIG_STATUS <<EOF
6751 CONFIG_HEADERS="config.h"
6753 cat >> $CONFIG_STATUS <<\EOF
6755 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6756 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6758 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6759 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6760 *) ac_file_in="${ac_file}.in" ;;
6763 echo creating $ac_file
6765 rm -f conftest.frag conftest.in conftest.out
6766 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6767 cat $ac_file_inputs > conftest.in
6771 # Transform confdefs.h into a sed script conftest.vals that substitutes
6772 # the proper values into config.h.in to produce config.h. And first:
6773 # Protect against being on the right side of a sed subst in config.status.
6774 # Protect against being in an unquoted here document in config.status.
6776 cat > conftest.hdr <<\EOF
6779 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6783 sed -n -f conftest.hdr confdefs.h > conftest.vals
6786 # This sed command replaces #undef with comments. This is necessary, for
6787 # example, in the case of _POSIX_SOURCE, which is predefined and required
6788 # on some systems where configure will not decide to define it.
6789 cat >> conftest.vals <<\EOF
6790 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6793 # Break up conftest.vals because some shells have a limit on
6794 # the size of here documents, and old seds have small limits too.
6799 ac_lines=`grep -c . conftest.vals`
6800 # grep -c gives empty output for an empty file on some AIX systems.
6801 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6802 # Write a limited-size here document to conftest.frag.
6803 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6804 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6806 sed -f conftest.frag conftest.in > conftest.out
6808 mv conftest.out conftest.in
6810 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6812 mv conftest.tail conftest.vals
6816 cat >> $CONFIG_STATUS <<\EOF
6817 rm -f conftest.frag conftest.h
6818 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6819 cat conftest.in >> conftest.h
6821 if cmp -s $ac_file conftest.h 2>/dev/null; then
6822 echo "$ac_file is unchanged"
6825 # Remove last slash and all that follows it. Not all systems have dirname.
6826 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6827 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6828 # The file is in a subdirectory.
6829 test ! -d "$ac_dir" && mkdir "$ac_dir"
6832 mv conftest.h $ac_file
6838 cat >> $CONFIG_STATUS <<EOF
6839 ac_sources="$nls_cv_header_libgt"
6840 ac_dests="$nls_cv_header_intl"
6843 cat >> $CONFIG_STATUS <<\EOF
6844 srcdir=$ac_given_srcdir
6845 while test -n "$ac_sources"; do
6846 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6847 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6849 echo "linking $srcdir/$ac_source to $ac_dest"
6851 if test ! -r $srcdir/$ac_source; then
6852 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
6856 # Make relative symlinks.
6857 # Remove last slash and all that follows it. Not all systems have dirname.
6858 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
6859 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
6860 # The dest file is in a subdirectory.
6861 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
6862 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
6863 # A "../" for each directory in $ac_dest_dir_suffix.
6864 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
6866 ac_dest_dir_suffix= ac_dots=
6870 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
6871 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
6874 # Make a symlink if possible; otherwise try a hard link.
6875 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6876 ln $srcdir/$ac_source $ac_dest; then :
6878 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
6882 cat >> $CONFIG_STATUS <<EOF
6887 cat >> $CONFIG_STATUS <<\EOF
6888 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6889 case "$CONFIG_FILES" in *po/Makefile.in*)
6890 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
6895 chmod +x $CONFIG_STATUS
6896 rm -fr confdefs* $ac_clean_files
6897 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1