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 force libtool not to do file locking"
25 --disable-nls do not use Native Language Support"
27 --with-included-gettext use the GNU gettext library included here"
29 --enable-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
36 cache_file=./config.cache
45 program_transform_name=s,x,x,
53 bindir='${exec_prefix}/bin'
54 sbindir='${exec_prefix}/sbin'
55 libexecdir='${exec_prefix}/libexec'
56 datadir='${prefix}/share'
57 sysconfdir='${prefix}/etc'
58 sharedstatedir='${prefix}/com'
59 localstatedir='${prefix}/var'
60 libdir='${exec_prefix}/lib'
61 includedir='${prefix}/include'
62 oldincludedir='/usr/include'
63 infodir='${prefix}/info'
64 mandir='${prefix}/man'
66 # Initialize some other variables.
69 SHELL=${CONFIG_SHELL-/bin/sh}
70 # Maximum number of lines to put in a shell here document.
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 # Accept the important Cygnus configure options, so we can diagnose typos.
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
98 -build | --build | --buil | --bui | --bu)
100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 build="$ac_optarg" ;;
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105 ac_prev=cache_file ;;
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108 cache_file="$ac_optarg" ;;
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114 datadir="$ac_optarg" ;;
116 -disable-* | --disable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* | --enable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140 | --exec | --exe | --ex)
141 ac_prev=exec_prefix ;;
142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144 | --exec=* | --exe=* | --ex=*)
145 exec_prefix="$ac_optarg" ;;
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
151 -help | --help | --hel | --he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
206 -host | --host | --hos | --ho)
208 -host=* | --host=* | --hos=* | --ho=*)
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
223 -libdir | --libdir | --libdi | --libd)
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
250 # Obsolete; use --without-fp.
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314 sbindir="$ac_optarg" ;;
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325 sharedstatedir="$ac_optarg" ;;
327 -site | --site | --sit)
329 -site=* | --site=* | --sit=*)
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338 | --syscon | --sysco | --sysc | --sys | --sy)
339 ac_prev=sysconfdir ;;
340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342 sysconfdir="$ac_optarg" ;;
344 -target | --target | --targe | --targ | --tar | --ta | --t)
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
352 -version | --version | --versio | --versi | --vers)
353 echo "configure generated by autoconf version 2.13"
357 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* | --without-*)
370 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
379 # Obsolete; use --with-x.
382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383 | --x-incl | --x-inc | --x-in | --x-i)
384 ac_prev=x_includes ;;
385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387 x_includes="$ac_optarg" ;;
389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391 ac_prev=x_libraries ;;
392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394 x_libraries="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 | --no-cr | --no-c) ;;
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file=gprof.c
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted=yes
476 # Try the directory containing this script, then its parent.
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481 if test ! -r $srcdir/$ac_unique_file; then
485 ac_srcdir_defaulted=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE; then
499 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
515 echo "creating cache $cache_file"
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling=$ac_cv_prog_cc_cross
528 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
530 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
537 ac_n= ac_c='\c' ac_t=
543 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
544 if test -f $ac_dir/install-sh; then
546 ac_install_sh="$ac_aux_dir/install-sh -c"
548 elif test -f $ac_dir/install.sh; then
550 ac_install_sh="$ac_aux_dir/install.sh -c"
554 if test -z "$ac_aux_dir"; then
555 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
557 ac_config_guess=$ac_aux_dir/config.guess
558 ac_config_sub=$ac_aux_dir/config.sub
559 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
562 # Do some error checking and defaulting for the host and target type.
564 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
567 # 1. You are not allowed to specify --host, --target, and nonopt at the
569 # 2. Host defaults to nonopt.
570 # 3. If nonopt is not specified, then host defaults to the current host,
571 # as determined by config.guess.
572 # 4. Target and build default to nonopt.
573 # 5. If nonopt is not specified, then target and build default to host.
575 # The aliases save the names the user supplied, while $host etc.
576 # will get canonicalized.
577 case $host---$target---$nonopt in
578 NONE---*---* | *---NONE---* | *---*---NONE) ;;
579 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
583 # Make sure we can run config.sub.
584 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
585 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
588 echo $ac_n "checking host system type""... $ac_c" 1>&6
589 echo "configure:590: checking host system type" >&5
592 case "$host_alias" in
596 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
597 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
599 *) host_alias=$nonopt ;;
603 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
604 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
605 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
606 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
607 echo "$ac_t""$host" 1>&6
609 echo $ac_n "checking target system type""... $ac_c" 1>&6
610 echo "configure:611: checking target system type" >&5
613 case "$target_alias" in
616 NONE) target_alias=$host_alias ;;
617 *) target_alias=$nonopt ;;
621 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
622 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
623 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
624 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
625 echo "$ac_t""$target" 1>&6
627 echo $ac_n "checking build system type""... $ac_c" 1>&6
628 echo "configure:629: checking build system type" >&5
631 case "$build_alias" in
634 NONE) build_alias=$host_alias ;;
635 *) build_alias=$nonopt ;;
639 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
640 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
641 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
642 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
643 echo "$ac_t""$build" 1>&6
645 test "$host_alias" != "$target_alias" &&
646 test "$program_prefix$program_suffix$program_transform_name" = \
648 program_prefix=${target_alias}-
651 # Find a good install program. We prefer a C program (faster),
652 # so one script is as good as another. But avoid the broken or
653 # incompatible versions:
654 # SysV /etc/install, /usr/sbin/install
655 # SunOS /usr/etc/install
658 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
659 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
660 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
661 # ./install, which can be erroneously created by make from ./install.sh.
662 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
663 echo "configure:664: checking for a BSD compatible install" >&5
664 if test -z "$INSTALL"; then
665 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
666 echo $ac_n "(cached) $ac_c" 1>&6
668 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
669 for ac_dir in $PATH; do
670 # Account for people who put trailing slashes in PATH elements.
672 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
674 # OSF1 and SCO ODT 3.0 have their own names for install.
675 # Don't use installbsd from OSF since it installs stuff as root
677 for ac_prog in ginstall scoinst install; do
678 if test -f $ac_dir/$ac_prog; then
679 if test $ac_prog = install &&
680 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
681 # AIX install. It has an incompatible calling convention.
684 ac_cv_path_install="$ac_dir/$ac_prog -c"
695 if test "${ac_cv_path_install+set}" = set; then
696 INSTALL="$ac_cv_path_install"
698 # As a last resort, use the slow shell script. We don't cache a
699 # path for INSTALL within a source directory, because that will
700 # break other packages using the cache if that directory is
701 # removed, or if the path is relative.
702 INSTALL="$ac_install_sh"
705 echo "$ac_t""$INSTALL" 1>&6
707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
708 # It thinks the first close brace ends the variable substitution.
709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
713 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
715 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
716 echo "configure:717: checking whether build environment is sane" >&5
719 echo timestamp > conftestfile
720 # Do `set' in a subshell so we don't clobber the current shell's
721 # arguments. Must try -L first in case configure is actually a
722 # symlink; some systems play weird games with the mod time of symlinks
723 # (eg FreeBSD returns the mod time of the symlink's containing
726 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
727 if test "$*" = "X"; then
729 set X `ls -t $srcdir/configure conftestfile`
731 if test "$*" != "X $srcdir/configure conftestfile" \
732 && test "$*" != "X conftestfile $srcdir/configure"; then
734 # If neither matched, then we have a broken ls. This can happen
735 # if, for instance, CONFIG_SHELL is bash and it inherits a
736 # broken ls alias from the environment. This has actually
737 # happened. Such a system could not be considered "sane".
738 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
739 alias in your environment" 1>&2; exit 1; }
742 test "$2" = conftestfile
748 { echo "configure: error: newly created file is older than distributed files!
749 Check your system clock" 1>&2; exit 1; }
752 echo "$ac_t""yes" 1>&6
753 if test "$program_transform_name" = s,x,x,; then
754 program_transform_name=
756 # Double any \ or $. echo might interpret backslashes.
757 cat <<\EOF_SED > conftestsed
758 s,\\,\\\\,g; s,\$,$$,g
760 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
763 test "$program_prefix" != NONE &&
764 program_transform_name="s,^,${program_prefix},; $program_transform_name"
765 # Use a double $ so make ignores it.
766 test "$program_suffix" != NONE &&
767 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
769 # sed with no file args requires a program.
770 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
772 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
773 echo "configure:774: checking whether ${MAKE-make} sets \${MAKE}" >&5
774 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
775 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
778 cat > conftestmake <<\EOF
780 @echo 'ac_maketemp="${MAKE}"'
782 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
783 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
784 if test -n "$ac_maketemp"; then
785 eval ac_cv_prog_make_${ac_make}_set=yes
787 eval ac_cv_prog_make_${ac_make}_set=no
791 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
792 echo "$ac_t""yes" 1>&6
795 echo "$ac_t""no" 1>&6
796 SET_MAKE="MAKE=${MAKE-make}"
804 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
805 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
807 cat >> confdefs.h <<EOF
808 #define PACKAGE "$PACKAGE"
811 cat >> confdefs.h <<EOF
812 #define VERSION "$VERSION"
817 missing_dir=`cd $ac_aux_dir && pwd`
818 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
819 echo "configure:820: checking for working aclocal" >&5
820 # Run test in a subshell; some versions of sh will print an error if
821 # an executable is not found, even if stderr is redirected.
822 # Redirect stdin to placate older versions of autoconf. Sigh.
823 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
825 echo "$ac_t""found" 1>&6
827 ACLOCAL="$missing_dir/missing aclocal"
828 echo "$ac_t""missing" 1>&6
831 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
832 echo "configure:833: checking for working autoconf" >&5
833 # Run test in a subshell; some versions of sh will print an error if
834 # an executable is not found, even if stderr is redirected.
835 # Redirect stdin to placate older versions of autoconf. Sigh.
836 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
838 echo "$ac_t""found" 1>&6
840 AUTOCONF="$missing_dir/missing autoconf"
841 echo "$ac_t""missing" 1>&6
844 echo $ac_n "checking for working automake""... $ac_c" 1>&6
845 echo "configure:846: checking for working automake" >&5
846 # Run test in a subshell; some versions of sh will print an error if
847 # an executable is not found, even if stderr is redirected.
848 # Redirect stdin to placate older versions of autoconf. Sigh.
849 if (automake --version) < /dev/null > /dev/null 2>&1; then
851 echo "$ac_t""found" 1>&6
853 AUTOMAKE="$missing_dir/missing automake"
854 echo "$ac_t""missing" 1>&6
857 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
858 echo "configure:859: checking for working autoheader" >&5
859 # Run test in a subshell; some versions of sh will print an error if
860 # an executable is not found, even if stderr is redirected.
861 # Redirect stdin to placate older versions of autoconf. Sigh.
862 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
863 AUTOHEADER=autoheader
864 echo "$ac_t""found" 1>&6
866 AUTOHEADER="$missing_dir/missing autoheader"
867 echo "$ac_t""missing" 1>&6
870 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
871 echo "configure:872: checking for working makeinfo" >&5
872 # Run test in a subshell; some versions of sh will print an error if
873 # an executable is not found, even if stderr is redirected.
874 # Redirect stdin to placate older versions of autoconf. Sigh.
875 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
877 echo "$ac_t""found" 1>&6
879 MAKEINFO="$missing_dir/missing makeinfo"
880 echo "$ac_t""missing" 1>&6
885 # Check whether --enable-shared or --disable-shared was given.
886 if test "${enable_shared+set}" = set; then
887 enableval="$enable_shared"
890 yes) enable_shared=yes ;;
891 no) enable_shared=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-static or --disable-static was given.
909 if test "${enable_static+set}" = set; then
910 enableval="$enable_static"
913 yes) enable_static=yes ;;
914 no) enable_static=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
931 # Check whether --enable-fast-install or --disable-fast-install was given.
932 if test "${enable_fast_install+set}" = set; then
933 enableval="$enable_fast_install"
936 yes) enable_fast_install=yes ;;
937 no) enable_fast_install=no ;;
939 enable_fast_install=no
940 # Look at the argument we got. We use all the common list separators.
941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
942 for pkg in $enableval; do
943 if test "X$pkg" = "X$p"; then
944 enable_fast_install=yes
951 enable_fast_install=yes
954 # Extract the first word of "ranlib", so it can be a program name with args.
955 set dummy ranlib; ac_word=$2
956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
957 echo "configure:958: checking for $ac_word" >&5
958 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
961 if test -n "$RANLIB"; then
962 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
966 for ac_dir in $ac_dummy; do
967 test -z "$ac_dir" && ac_dir=.
968 if test -f $ac_dir/$ac_word; then
969 ac_cv_prog_RANLIB="ranlib"
974 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
977 RANLIB="$ac_cv_prog_RANLIB"
978 if test -n "$RANLIB"; then
979 echo "$ac_t""$RANLIB" 1>&6
981 echo "$ac_t""no" 1>&6
984 # Extract the first word of "gcc", so it can be a program name with args.
985 set dummy gcc; ac_word=$2
986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
987 echo "configure:988: checking for $ac_word" >&5
988 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
991 if test -n "$CC"; then
992 ac_cv_prog_CC="$CC" # Let the user override the test.
994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
996 for ac_dir in $ac_dummy; do
997 test -z "$ac_dir" && ac_dir=.
998 if test -f $ac_dir/$ac_word; then
1007 if test -n "$CC"; then
1008 echo "$ac_t""$CC" 1>&6
1010 echo "$ac_t""no" 1>&6
1013 if test -z "$CC"; then
1014 # Extract the first word of "cc", so it can be a program name with args.
1015 set dummy cc; ac_word=$2
1016 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1017 echo "configure:1018: checking for $ac_word" >&5
1018 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1019 echo $ac_n "(cached) $ac_c" 1>&6
1021 if test -n "$CC"; then
1022 ac_cv_prog_CC="$CC" # Let the user override the test.
1024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1027 for ac_dir in $ac_dummy; do
1028 test -z "$ac_dir" && ac_dir=.
1029 if test -f $ac_dir/$ac_word; then
1030 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1031 ac_prog_rejected=yes
1039 if test $ac_prog_rejected = yes; then
1040 # We found a bogon in the path, so make sure we never use it.
1041 set dummy $ac_cv_prog_CC
1043 if test $# -gt 0; then
1044 # We chose a different compiler from the bogus one.
1045 # However, it has the same basename, so the bogon will be chosen
1046 # first if we set CC to just the basename; use the full file name.
1048 set dummy "$ac_dir/$ac_word" "$@"
1056 if test -n "$CC"; then
1057 echo "$ac_t""$CC" 1>&6
1059 echo "$ac_t""no" 1>&6
1062 if test -z "$CC"; then
1063 case "`uname -s`" in
1065 # Extract the first word of "cl", so it can be a program name with args.
1066 set dummy cl; ac_word=$2
1067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1068 echo "configure:1069: checking for $ac_word" >&5
1069 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&6
1072 if test -n "$CC"; then
1073 ac_cv_prog_CC="$CC" # Let the user override the test.
1075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1077 for ac_dir in $ac_dummy; do
1078 test -z "$ac_dir" && ac_dir=.
1079 if test -f $ac_dir/$ac_word; then
1088 if test -n "$CC"; then
1089 echo "$ac_t""$CC" 1>&6
1091 echo "$ac_t""no" 1>&6
1096 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1099 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1100 echo "configure:1101: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1103 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1104 ac_cpp='$CPP $CPPFLAGS'
1105 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1106 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1107 cross_compiling=$ac_cv_prog_cc_cross
1109 cat > conftest.$ac_ext << EOF
1111 #line 1112 "configure"
1112 #include "confdefs.h"
1116 if { (eval echo configure:1117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1117 ac_cv_prog_cc_works=yes
1118 # If we can't run a trivial program, we are probably using a cross compiler.
1119 if (./conftest; exit) 2>/dev/null; then
1120 ac_cv_prog_cc_cross=no
1122 ac_cv_prog_cc_cross=yes
1125 echo "configure: failed program was:" >&5
1126 cat conftest.$ac_ext >&5
1127 ac_cv_prog_cc_works=no
1131 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1132 ac_cpp='$CPP $CPPFLAGS'
1133 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1134 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1135 cross_compiling=$ac_cv_prog_cc_cross
1137 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1138 if test $ac_cv_prog_cc_works = no; then
1139 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1141 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1142 echo "configure:1143: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1143 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1144 cross_compiling=$ac_cv_prog_cc_cross
1146 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1147 echo "configure:1148: checking whether we are using GNU C" >&5
1148 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 cat > conftest.c <<EOF
1156 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1163 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1165 if test $ac_cv_prog_gcc = yes; then
1171 ac_test_CFLAGS="${CFLAGS+set}"
1172 ac_save_CFLAGS="$CFLAGS"
1174 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1175 echo "configure:1176: checking whether ${CC-cc} accepts -g" >&5
1176 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1179 echo 'void f(){}' > conftest.c
1180 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1189 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1190 if test "$ac_test_CFLAGS" = set; then
1191 CFLAGS="$ac_save_CFLAGS"
1192 elif test $ac_cv_prog_cc_g = yes; then
1193 if test "$GCC" = yes; then
1199 if test "$GCC" = yes; then
1206 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1207 if test "${with_gnu_ld+set}" = set; then
1208 withval="$with_gnu_ld"
1209 test "$withval" = no || with_gnu_ld=yes
1215 if test "$ac_cv_prog_gcc" = yes; then
1216 # Check if gcc -print-prog-name=ld gives a path.
1217 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1218 echo "configure:1219: checking for ld used by GCC" >&5
1219 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1221 # Accept absolute paths.
1222 /* | [A-Za-z]:[\\/]*)
1223 re_direlt='/[^/][^/]*/\.\./'
1224 # Canonicalize the path of ld
1225 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1226 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1227 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1229 test -z "$LD" && LD="$ac_prog"
1232 # If it fails, then pretend we aren't using GCC.
1236 # If it is relative, then search for the first ld in PATH.
1240 elif test "$with_gnu_ld" = yes; then
1241 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1242 echo "configure:1243: checking for GNU ld" >&5
1244 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1245 echo "configure:1246: checking for non-GNU ld" >&5
1247 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 if test -z "$LD"; then
1251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1252 for ac_dir in $PATH; do
1253 test -z "$ac_dir" && ac_dir=.
1254 if test -f "$ac_dir/$ac_prog"; then
1255 ac_cv_path_LD="$ac_dir/$ac_prog"
1256 # Check to see if the program is GNU ld. I'd rather use --version,
1257 # but apparently some GNU ld's only accept -v.
1258 # Break only if it was the GNU/non-GNU ld that we prefer.
1259 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1260 test "$with_gnu_ld" != no && break
1262 test "$with_gnu_ld" != yes && break
1268 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1273 if test -n "$LD"; then
1274 echo "$ac_t""$LD" 1>&6
1276 echo "$ac_t""no" 1>&6
1278 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1280 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1281 echo "configure:1282: checking if the linker ($LD) is GNU ld" >&5
1282 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1285 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1286 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1287 ac_cv_prog_gnu_ld=yes
1289 ac_cv_prog_gnu_ld=no
1293 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1296 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1297 echo "configure:1298: checking for BSD-compatible nm" >&5
1298 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1301 if test -n "$NM"; then
1302 # Let the user override the test.
1305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1306 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1307 test -z "$ac_dir" && ac_dir=.
1308 if test -f $ac_dir/nm; then
1309 # Check to see if the nm accepts a BSD-compat flag.
1310 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1311 # nm: unknown option "B" ignored
1312 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1313 ac_cv_path_NM="$ac_dir/nm -B"
1315 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1316 ac_cv_path_NM="$ac_dir/nm -p"
1319 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1320 continue # so that we can try to find one that supports BSD flags
1325 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1330 echo "$ac_t""$NM" 1>&6
1333 # Check for command to grab the raw symbol name followed by C symbol from nm.
1334 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1335 echo "configure:1336: checking command to parse $NM output" >&5
1336 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1339 # These are sane defaults that work on at least a few old systems.
1340 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
1342 # Character class describing NM global symbol codes.
1343 ac_symcode='[BCDEGRST]'
1345 # Regexp to match symbols that can be accessed directly from C.
1346 ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1348 # Transform the above into a raw symbol and a C symbol.
1349 ac_symxfrm='\1 \2\3 \3'
1351 # Transform an extracted symbol line into a proper C declaration
1352 ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1354 # Define system-specific variables.
1360 ac_symcode='[ABCDGISTW]'
1363 ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
1366 ac_symcode='[BCDEGRST]'
1373 # If we're using GNU nm, then use its standard symbol codes.
1374 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1375 ac_symcode='[ABCDGISTW]'
1378 # Try without a prefix undercore, then with it.
1379 for ac_symprfx in "" "_"; do
1381 ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
1383 # Check to see that the pipe works correctly.
1385 rm -f conftest.$ac_ext
1386 cat > conftest.$ac_ext <<EOF
1391 void nm_test_func(){}
1395 int main(){nm_test_var='a';nm_test_func;return 0;}
1398 if { (eval echo configure:1399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1399 # Now try to grab the symbols.
1400 ac_nlist=conftest.nm
1402 if { (eval echo configure:1403: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1404 # Try sorting and uniquifying the output.
1405 if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
1406 mv -f "$ac_nlist"T "$ac_nlist"
1411 # Make sure that we snagged all the symbols we need.
1412 if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
1413 if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
1414 cat <<EOF > conftest.c
1420 # Now generate the symbol file.
1421 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
1423 cat <<EOF >> conftest.c
1424 #if defined (__STDC__) && __STDC__
1425 # define lt_ptr_t void *
1427 # define lt_ptr_t char *
1431 /* The mapping between symbol names and symbols. */
1436 lt_preloaded_symbols[] =
1439 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
1440 cat <<\EOF >> conftest.c
1448 # Now try linking the two files.
1449 mv conftest.$ac_objext conftestm.$ac_objext
1450 ac_save_LIBS="$LIBS"
1451 ac_save_CFLAGS="$CFLAGS"
1452 LIBS="conftestm.$ac_objext"
1453 CFLAGS="$CFLAGS$no_builtin_flag"
1454 if { (eval echo configure:1455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1457 echo "configure: failed program was:" >&5
1460 LIBS="$ac_save_LIBS"
1461 CFLAGS="$ac_save_CFLAGS"
1463 echo "cannot find nm_test_func in $ac_nlist" >&5
1466 echo "cannot find nm_test_var in $ac_nlist" >&5
1469 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
1472 echo "$progname: failed program was:" >&5
1477 # Do not use the global_symbol_pipe unless it works.
1478 if test "$ac_pipe_works" = yes; then
1479 if test x"$ac_symprfx" = x"_"; then
1480 ac_cv_sys_symbol_underscore=yes
1482 ac_cv_sys_symbol_underscore=no
1486 ac_cv_sys_global_symbol_pipe=
1494 if test -z "$ac_cv_sys_global_symbol_pipe"; then
1497 echo "$ac_t""$ac_result" 1>&6
1499 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
1500 echo "configure:1501: checking for _ prefix in compiled symbols" >&5
1501 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
1502 echo $ac_n "(cached) $ac_c" 1>&6
1504 ac_cv_sys_symbol_underscore=no
1505 cat > conftest.$ac_ext <<EOF
1506 void nm_test_func(){}
1507 int main(){nm_test_func;return 0;}
1509 if { (eval echo configure:1510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1510 # Now try to grab the symbols.
1511 ac_nlist=conftest.nm
1512 if { (eval echo configure:1513: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1513 # See whether the symbols have a leading underscore.
1514 if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
1515 ac_cv_sys_symbol_underscore=yes
1517 if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
1520 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
1524 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
1527 echo "configure: failed program was:" >&5
1534 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
1535 USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
1537 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1538 echo "configure:1539: checking whether ln -s works" >&5
1539 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1543 if ln -s X conftestdata 2>/dev/null
1546 ac_cv_prog_LN_S="ln -s"
1551 LN_S="$ac_cv_prog_LN_S"
1552 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1553 echo "$ac_t""yes" 1>&6
1555 echo "$ac_t""no" 1>&6
1558 if test $host != $build; then
1559 ac_tool_prefix=${host_alias}-
1565 # Check for any special flags to pass to ltconfig.
1566 libtool_flags="--cache-file=$cache_file"
1567 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1568 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1569 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1570 test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen"
1571 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1572 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1573 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1575 # Some flags need to be propagated to the compiler or linker for good
1579 # Find out which ABI we are using.
1580 echo '#line 1581 "configure"' > conftest.$ac_ext
1581 if { (eval echo configure:1582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1582 case "`/usr/bin/file conftest.o`" in
1598 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1599 SAVE_CFLAGS="$CFLAGS"
1600 CFLAGS="$CFLAGS -belf"
1601 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1602 echo "configure:1603: checking whether the C compiler needs -belf" >&5
1603 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1604 echo $ac_n "(cached) $ac_c" 1>&6
1606 cat > conftest.$ac_ext <<EOF
1607 #line 1608 "configure"
1608 #include "confdefs.h"
1614 if { (eval echo configure:1615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1616 lt_cv_cc_needs_belf=yes
1618 echo "configure: failed program was:" >&5
1619 cat conftest.$ac_ext >&5
1621 lt_cv_cc_needs_belf=no
1626 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1627 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1628 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1629 CFLAGS="$SAVE_CFLAGS"
1634 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1635 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1637 echo "configure:1638: checking for $ac_word" >&5
1638 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1639 echo $ac_n "(cached) $ac_c" 1>&6
1641 if test -n "$DLLTOOL"; then
1642 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1646 for ac_dir in $ac_dummy; do
1647 test -z "$ac_dir" && ac_dir=.
1648 if test -f $ac_dir/$ac_word; then
1649 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1656 DLLTOOL="$ac_cv_prog_DLLTOOL"
1657 if test -n "$DLLTOOL"; then
1658 echo "$ac_t""$DLLTOOL" 1>&6
1660 echo "$ac_t""no" 1>&6
1664 if test -z "$ac_cv_prog_DLLTOOL"; then
1665 if test -n "$ac_tool_prefix"; then
1666 # Extract the first word of "dlltool", so it can be a program name with args.
1667 set dummy dlltool; ac_word=$2
1668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1669 echo "configure:1670: checking for $ac_word" >&5
1670 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1673 if test -n "$DLLTOOL"; then
1674 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1678 for ac_dir in $ac_dummy; do
1679 test -z "$ac_dir" && ac_dir=.
1680 if test -f $ac_dir/$ac_word; then
1681 ac_cv_prog_DLLTOOL="dlltool"
1686 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
1689 DLLTOOL="$ac_cv_prog_DLLTOOL"
1690 if test -n "$DLLTOOL"; then
1691 echo "$ac_t""$DLLTOOL" 1>&6
1693 echo "$ac_t""no" 1>&6
1701 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1702 set dummy ${ac_tool_prefix}as; ac_word=$2
1703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1704 echo "configure:1705: checking for $ac_word" >&5
1705 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1706 echo $ac_n "(cached) $ac_c" 1>&6
1708 if test -n "$AS"; then
1709 ac_cv_prog_AS="$AS" # Let the user override the test.
1711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1713 for ac_dir in $ac_dummy; do
1714 test -z "$ac_dir" && ac_dir=.
1715 if test -f $ac_dir/$ac_word; then
1716 ac_cv_prog_AS="${ac_tool_prefix}as"
1724 if test -n "$AS"; then
1725 echo "$ac_t""$AS" 1>&6
1727 echo "$ac_t""no" 1>&6
1731 if test -z "$ac_cv_prog_AS"; then
1732 if test -n "$ac_tool_prefix"; then
1733 # Extract the first word of "as", so it can be a program name with args.
1734 set dummy as; ac_word=$2
1735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1736 echo "configure:1737: checking for $ac_word" >&5
1737 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1740 if test -n "$AS"; then
1741 ac_cv_prog_AS="$AS" # Let the user override the test.
1743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1745 for ac_dir in $ac_dummy; do
1746 test -z "$ac_dir" && ac_dir=.
1747 if test -f $ac_dir/$ac_word; then
1753 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
1757 if test -n "$AS"; then
1758 echo "$ac_t""$AS" 1>&6
1760 echo "$ac_t""no" 1>&6
1773 # enable the --disable-libtool-lock switch
1775 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1776 if test "${enable_libtool_lock+set}" = set; then
1777 enableval="$enable_libtool_lock"
1778 need_locks=$enableval
1784 if test x"$need_locks" = xno; then
1785 libtool_flags="$libtool_flags --disable-lock"
1789 # Save cache, so that ltconfig can load it
1790 cat > confcache <<\EOF
1791 # This file is a shell script that caches the results of configure
1792 # tests run on this system so they can be shared between configure
1793 # scripts and configure runs. It is not useful on other systems.
1794 # If it contains results you don't want to keep, you may remove or edit it.
1796 # By default, configure uses ./config.cache as the cache file,
1797 # creating it if it does not exist already. You can give configure
1798 # the --cache-file=FILE option to use a different cache file; that is
1799 # what configure does when it calls configure scripts in
1800 # subdirectories, so they share the cache.
1801 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1802 # config.status only pays attention to the cache file if you give it the
1803 # --recheck option to rerun configure.
1806 # The following way of writing the cache mishandles newlines in values,
1807 # but we know of no workaround that is simple, portable, and efficient.
1808 # So, don't put newlines in cache variables' values.
1809 # Ultrix sh set writes to stderr and can't be redirected directly,
1810 # and sets the high bit in the cache file unless we assign to the vars.
1812 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1814 # `set' does not quote correctly, so add quotes (double-quote substitution
1815 # turns \\\\ into \\, and sed turns \\ into \).
1817 -e "s/'/'\\\\''/g" \
1818 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1821 # `set' quotes correctly as required by POSIX, so do not add quotes.
1822 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1825 if cmp -s $cache_file confcache; then
1828 if test -w $cache_file; then
1829 echo "updating cache $cache_file"
1830 cat confcache > $cache_file
1832 echo "not updating unwritable cache $cache_file"
1838 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1839 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1840 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1841 DLLTOOL="$DLLTOOL" AS="$AS" \
1842 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1843 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1844 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1846 # Reload cache, that may have been modified by ltconfig
1847 if test -r "$cache_file"; then
1848 echo "loading cache $cache_file"
1851 echo "creating cache $cache_file"
1856 # This can be used to rebuild libtool when needed
1857 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1859 # Always use our own libtool.
1860 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1862 # Redirect the config.log output again, so that the ltconfig log is not
1863 # clobbered by the next message.
1864 exec 5>>./config.log
1871 # Extract the first word of "gcc", so it can be a program name with args.
1872 set dummy gcc; ac_word=$2
1873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1874 echo "configure:1875: checking for $ac_word" >&5
1875 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1876 echo $ac_n "(cached) $ac_c" 1>&6
1878 if test -n "$CC"; then
1879 ac_cv_prog_CC="$CC" # Let the user override the test.
1881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1883 for ac_dir in $ac_dummy; do
1884 test -z "$ac_dir" && ac_dir=.
1885 if test -f $ac_dir/$ac_word; then
1894 if test -n "$CC"; then
1895 echo "$ac_t""$CC" 1>&6
1897 echo "$ac_t""no" 1>&6
1900 if test -z "$CC"; then
1901 # Extract the first word of "cc", so it can be a program name with args.
1902 set dummy cc; ac_word=$2
1903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1904 echo "configure:1905: checking for $ac_word" >&5
1905 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 if test -n "$CC"; then
1909 ac_cv_prog_CC="$CC" # Let the user override the test.
1911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1914 for ac_dir in $ac_dummy; do
1915 test -z "$ac_dir" && ac_dir=.
1916 if test -f $ac_dir/$ac_word; then
1917 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1918 ac_prog_rejected=yes
1926 if test $ac_prog_rejected = yes; then
1927 # We found a bogon in the path, so make sure we never use it.
1928 set dummy $ac_cv_prog_CC
1930 if test $# -gt 0; then
1931 # We chose a different compiler from the bogus one.
1932 # However, it has the same basename, so the bogon will be chosen
1933 # first if we set CC to just the basename; use the full file name.
1935 set dummy "$ac_dir/$ac_word" "$@"
1943 if test -n "$CC"; then
1944 echo "$ac_t""$CC" 1>&6
1946 echo "$ac_t""no" 1>&6
1949 if test -z "$CC"; then
1950 case "`uname -s`" in
1952 # Extract the first word of "cl", so it can be a program name with args.
1953 set dummy cl; ac_word=$2
1954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1955 echo "configure:1956: checking for $ac_word" >&5
1956 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1959 if test -n "$CC"; then
1960 ac_cv_prog_CC="$CC" # Let the user override the test.
1962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1964 for ac_dir in $ac_dummy; do
1965 test -z "$ac_dir" && ac_dir=.
1966 if test -f $ac_dir/$ac_word; then
1975 if test -n "$CC"; then
1976 echo "$ac_t""$CC" 1>&6
1978 echo "$ac_t""no" 1>&6
1983 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1986 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1987 echo "configure:1988: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1990 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1991 ac_cpp='$CPP $CPPFLAGS'
1992 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1993 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1994 cross_compiling=$ac_cv_prog_cc_cross
1996 cat > conftest.$ac_ext << EOF
1998 #line 1999 "configure"
1999 #include "confdefs.h"
2003 if { (eval echo configure:2004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2004 ac_cv_prog_cc_works=yes
2005 # If we can't run a trivial program, we are probably using a cross compiler.
2006 if (./conftest; exit) 2>/dev/null; then
2007 ac_cv_prog_cc_cross=no
2009 ac_cv_prog_cc_cross=yes
2012 echo "configure: failed program was:" >&5
2013 cat conftest.$ac_ext >&5
2014 ac_cv_prog_cc_works=no
2018 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2019 ac_cpp='$CPP $CPPFLAGS'
2020 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2021 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2022 cross_compiling=$ac_cv_prog_cc_cross
2024 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2025 if test $ac_cv_prog_cc_works = no; then
2026 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2028 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2029 echo "configure:2030: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2030 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2031 cross_compiling=$ac_cv_prog_cc_cross
2033 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2034 echo "configure:2035: checking whether we are using GNU C" >&5
2035 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2038 cat > conftest.c <<EOF
2043 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2050 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2052 if test $ac_cv_prog_gcc = yes; then
2058 ac_test_CFLAGS="${CFLAGS+set}"
2059 ac_save_CFLAGS="$CFLAGS"
2061 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2062 echo "configure:2063: checking whether ${CC-cc} accepts -g" >&5
2063 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2066 echo 'void f(){}' > conftest.c
2067 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2076 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2077 if test "$ac_test_CFLAGS" = set; then
2078 CFLAGS="$ac_save_CFLAGS"
2079 elif test $ac_cv_prog_cc_g = yes; then
2080 if test "$GCC" = yes; then
2086 if test "$GCC" = yes; then
2093 # Find a good install program. We prefer a C program (faster),
2094 # so one script is as good as another. But avoid the broken or
2095 # incompatible versions:
2096 # SysV /etc/install, /usr/sbin/install
2097 # SunOS /usr/etc/install
2098 # IRIX /sbin/install
2100 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2101 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2102 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2103 # ./install, which can be erroneously created by make from ./install.sh.
2104 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2105 echo "configure:2106: checking for a BSD compatible install" >&5
2106 if test -z "$INSTALL"; then
2107 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2108 echo $ac_n "(cached) $ac_c" 1>&6
2110 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2111 for ac_dir in $PATH; do
2112 # Account for people who put trailing slashes in PATH elements.
2114 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2116 # OSF1 and SCO ODT 3.0 have their own names for install.
2117 # Don't use installbsd from OSF since it installs stuff as root
2119 for ac_prog in ginstall scoinst install; do
2120 if test -f $ac_dir/$ac_prog; then
2121 if test $ac_prog = install &&
2122 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2123 # AIX install. It has an incompatible calling convention.
2126 ac_cv_path_install="$ac_dir/$ac_prog -c"
2137 if test "${ac_cv_path_install+set}" = set; then
2138 INSTALL="$ac_cv_path_install"
2140 # As a last resort, use the slow shell script. We don't cache a
2141 # path for INSTALL within a source directory, because that will
2142 # break other packages using the cache if that directory is
2143 # removed, or if the path is relative.
2144 INSTALL="$ac_install_sh"
2147 echo "$ac_t""$INSTALL" 1>&6
2149 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2150 # It thinks the first close brace ends the variable substitution.
2151 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2153 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2155 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2158 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2159 echo "configure:2160: checking for POSIXized ISC" >&5
2160 if test -d /etc/conf/kconfig.d &&
2161 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2163 echo "$ac_t""yes" 1>&6
2164 ISC=yes # If later tests want to check for ISC.
2165 cat >> confdefs.h <<\EOF
2166 #define _POSIX_SOURCE 1
2169 if test "$GCC" = yes; then
2175 echo "$ac_t""no" 1>&6
2181 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2182 echo "configure:2183: checking how to run the C preprocessor" >&5
2183 # On Suns, sometimes $CPP names a directory.
2184 if test -n "$CPP" && test -d "$CPP"; then
2187 if test -z "$CPP"; then
2188 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6
2191 # This must be in double quotes, not single quotes, because CPP may get
2192 # substituted into the Makefile and "${CC-cc}" will confuse make.
2194 # On the NeXT, cc -E runs the code through the compiler's parser,
2195 # not just through cpp.
2196 cat > conftest.$ac_ext <<EOF
2197 #line 2198 "configure"
2198 #include "confdefs.h"
2202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2203 { (eval echo configure:2204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2205 if test -z "$ac_err"; then
2209 echo "configure: failed program was:" >&5
2210 cat conftest.$ac_ext >&5
2212 CPP="${CC-cc} -E -traditional-cpp"
2213 cat > conftest.$ac_ext <<EOF
2214 #line 2215 "configure"
2215 #include "confdefs.h"
2219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2220 { (eval echo configure:2221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2221 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2222 if test -z "$ac_err"; then
2226 echo "configure: failed program was:" >&5
2227 cat conftest.$ac_ext >&5
2229 CPP="${CC-cc} -nologo -E"
2230 cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2237 { (eval echo configure:2238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2239 if test -z "$ac_err"; then
2243 echo "configure: failed program was:" >&5
2244 cat conftest.$ac_ext >&5
2253 ac_cv_prog_CPP="$CPP"
2255 CPP="$ac_cv_prog_CPP"
2257 ac_cv_prog_CPP="$CPP"
2259 echo "$ac_t""$CPP" 1>&6
2261 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2262 echo "configure:2263: checking for ANSI C header files" >&5
2263 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2264 echo $ac_n "(cached) $ac_c" 1>&6
2266 cat > conftest.$ac_ext <<EOF
2267 #line 2268 "configure"
2268 #include "confdefs.h"
2274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2275 { (eval echo configure:2276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2277 if test -z "$ac_err"; then
2279 ac_cv_header_stdc=yes
2282 echo "configure: failed program was:" >&5
2283 cat conftest.$ac_ext >&5
2285 ac_cv_header_stdc=no
2289 if test $ac_cv_header_stdc = yes; then
2290 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2291 cat > conftest.$ac_ext <<EOF
2292 #line 2293 "configure"
2293 #include "confdefs.h"
2296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2297 egrep "memchr" >/dev/null 2>&1; then
2301 ac_cv_header_stdc=no
2307 if test $ac_cv_header_stdc = yes; then
2308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2309 cat > conftest.$ac_ext <<EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2315 egrep "free" >/dev/null 2>&1; then
2319 ac_cv_header_stdc=no
2325 if test $ac_cv_header_stdc = yes; then
2326 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2327 if test "$cross_compiling" = yes; then
2330 cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2334 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2335 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2336 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2337 int main () { int i; for (i = 0; i < 256; i++)
2338 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2342 if { (eval echo configure:2343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2346 echo "configure: failed program was:" >&5
2347 cat conftest.$ac_ext >&5
2349 ac_cv_header_stdc=no
2357 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2358 if test $ac_cv_header_stdc = yes; then
2359 cat >> confdefs.h <<\EOF
2360 #define STDC_HEADERS 1
2365 echo $ac_n "checking for working const""... $ac_c" 1>&6
2366 echo "configure:2367: checking for working const" >&5
2367 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2368 echo $ac_n "(cached) $ac_c" 1>&6
2370 cat > conftest.$ac_ext <<EOF
2371 #line 2372 "configure"
2372 #include "confdefs.h"
2376 /* Ultrix mips cc rejects this. */
2377 typedef int charset[2]; const charset x;
2378 /* SunOS 4.1.1 cc rejects this. */
2379 char const *const *ccp;
2381 /* NEC SVR4.0.2 mips cc rejects this. */
2382 struct point {int x, y;};
2383 static struct point const zero = {0,0};
2384 /* AIX XL C 1.02.0.0 rejects this.
2385 It does not let you subtract one const X* pointer from another in an arm
2386 of an if-expression whose if-part is not a constant expression */
2387 const char *g = "string";
2388 ccp = &g + (g ? g-g : 0);
2389 /* HPUX 7.0 cc rejects these. */
2392 ccp = (char const *const *) p;
2393 { /* SCO 3.2v4 cc rejects this. */
2395 char const *s = 0 ? (char *) 0 : (char const *) 0;
2399 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2401 const int *foo = &x[0];
2404 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2405 typedef const int *iptr;
2409 { /* AIX XL C 1.02.0.0 rejects this saying
2410 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2411 struct s { int j; const int *ap[3]; };
2412 struct s *b; b->j = 5;
2414 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2420 if { (eval echo configure:2421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2424 echo "configure: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2432 echo "$ac_t""$ac_cv_c_const" 1>&6
2433 if test $ac_cv_c_const = no; then
2434 cat >> confdefs.h <<\EOF
2440 echo $ac_n "checking for inline""... $ac_c" 1>&6
2441 echo "configure:2442: checking for inline" >&5
2442 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2446 for ac_kw in inline __inline__ __inline; do
2447 cat > conftest.$ac_ext <<EOF
2448 #line 2449 "configure"
2449 #include "confdefs.h"
2455 if { (eval echo configure:2456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2457 ac_cv_c_inline=$ac_kw; break
2459 echo "configure: failed program was:" >&5
2460 cat conftest.$ac_ext >&5
2467 echo "$ac_t""$ac_cv_c_inline" 1>&6
2468 case "$ac_cv_c_inline" in
2470 no) cat >> confdefs.h <<\EOF
2474 *) cat >> confdefs.h <<EOF
2475 #define inline $ac_cv_c_inline
2480 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2481 echo "configure:2482: checking for off_t" >&5
2482 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2483 echo $ac_n "(cached) $ac_c" 1>&6
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488 #include <sys/types.h>
2494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2495 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2497 ac_cv_type_off_t=yes
2505 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2506 if test $ac_cv_type_off_t = no; then
2507 cat >> confdefs.h <<\EOF
2513 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2514 echo "configure:2515: checking for size_t" >&5
2515 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6
2518 cat > conftest.$ac_ext <<EOF
2519 #line 2520 "configure"
2520 #include "confdefs.h"
2521 #include <sys/types.h>
2527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2528 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2530 ac_cv_type_size_t=yes
2533 ac_cv_type_size_t=no
2538 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2539 if test $ac_cv_type_size_t = no; then
2540 cat >> confdefs.h <<\EOF
2541 #define size_t unsigned
2546 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2547 # for constant arguments. Useless!
2548 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2549 echo "configure:2550: checking for working alloca.h" >&5
2550 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2553 cat > conftest.$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2558 char *p = alloca(2 * sizeof(int));
2561 if { (eval echo configure:2562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2563 ac_cv_header_alloca_h=yes
2565 echo "configure: failed program was:" >&5
2566 cat conftest.$ac_ext >&5
2568 ac_cv_header_alloca_h=no
2573 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2574 if test $ac_cv_header_alloca_h = yes; then
2575 cat >> confdefs.h <<\EOF
2576 #define HAVE_ALLOCA_H 1
2581 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2582 echo "configure:2583: checking for alloca" >&5
2583 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2584 echo $ac_n "(cached) $ac_c" 1>&6
2586 cat > conftest.$ac_ext <<EOF
2587 #line 2588 "configure"
2588 #include "confdefs.h"
2591 # define alloca __builtin_alloca
2594 # include <malloc.h>
2595 # define alloca _alloca
2598 # include <alloca.h>
2603 # ifndef alloca /* predefined by HP cc +Olibcalls */
2612 char *p = (char *) alloca(1);
2615 if { (eval echo configure:2616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2617 ac_cv_func_alloca_works=yes
2619 echo "configure: failed program was:" >&5
2620 cat conftest.$ac_ext >&5
2622 ac_cv_func_alloca_works=no
2627 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2628 if test $ac_cv_func_alloca_works = yes; then
2629 cat >> confdefs.h <<\EOF
2630 #define HAVE_ALLOCA 1
2635 if test $ac_cv_func_alloca_works = no; then
2636 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2637 # that cause trouble. Some versions do not even contain alloca or
2638 # contain a buggy version. If you still want to use their alloca,
2639 # use ar to extract alloca.o from them instead of compiling alloca.c.
2640 ALLOCA=alloca.${ac_objext}
2641 cat >> confdefs.h <<\EOF
2646 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2647 echo "configure:2648: checking whether alloca needs Cray hooks" >&5
2648 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6
2651 cat > conftest.$ac_ext <<EOF
2652 #line 2653 "configure"
2653 #include "confdefs.h"
2654 #if defined(CRAY) && ! defined(CRAY2)
2661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2662 egrep "webecray" >/dev/null 2>&1; then
2673 echo "$ac_t""$ac_cv_os_cray" 1>&6
2674 if test $ac_cv_os_cray = yes; then
2675 for ac_func in _getb67 GETB67 getb67; do
2676 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2677 echo "configure:2678: checking for $ac_func" >&5
2678 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2679 echo $ac_n "(cached) $ac_c" 1>&6
2681 cat > conftest.$ac_ext <<EOF
2682 #line 2683 "configure"
2683 #include "confdefs.h"
2684 /* System header to define __stub macros and hopefully few prototypes,
2685 which can conflict with char $ac_func(); below. */
2687 /* Override any gcc2 internal prototype to avoid an error. */
2688 /* We use char because int might match the return type of a gcc2
2689 builtin and then its argument prototype would still apply. */
2694 /* The GNU C library defines this for functions which it implements
2695 to always fail with ENOSYS. Some functions are actually named
2696 something starting with __ and the normal name is an alias. */
2697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2705 if { (eval echo configure:2706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2707 eval "ac_cv_func_$ac_func=yes"
2709 echo "configure: failed program was:" >&5
2710 cat conftest.$ac_ext >&5
2712 eval "ac_cv_func_$ac_func=no"
2717 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2718 echo "$ac_t""yes" 1>&6
2719 cat >> confdefs.h <<EOF
2720 #define CRAY_STACKSEG_END $ac_func
2725 echo "$ac_t""no" 1>&6
2731 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2732 echo "configure:2733: checking stack direction for C alloca" >&5
2733 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2734 echo $ac_n "(cached) $ac_c" 1>&6
2736 if test "$cross_compiling" = yes; then
2737 ac_cv_c_stack_direction=0
2739 cat > conftest.$ac_ext <<EOF
2740 #line 2741 "configure"
2741 #include "confdefs.h"
2742 find_stack_direction ()
2744 static char *addr = 0;
2749 return find_stack_direction ();
2752 return (&dummy > addr) ? 1 : -1;
2756 exit (find_stack_direction() < 0);
2759 if { (eval echo configure:2760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2761 ac_cv_c_stack_direction=1
2763 echo "configure: failed program was:" >&5
2764 cat conftest.$ac_ext >&5
2766 ac_cv_c_stack_direction=-1
2773 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2774 cat >> confdefs.h <<EOF
2775 #define STACK_DIRECTION $ac_cv_c_stack_direction
2780 for ac_hdr in unistd.h
2782 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2783 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2784 echo "configure:2785: checking for $ac_hdr" >&5
2785 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2788 cat > conftest.$ac_ext <<EOF
2789 #line 2790 "configure"
2790 #include "confdefs.h"
2793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2794 { (eval echo configure:2795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2796 if test -z "$ac_err"; then
2798 eval "ac_cv_header_$ac_safe=yes"
2801 echo "configure: failed program was:" >&5
2802 cat conftest.$ac_ext >&5
2804 eval "ac_cv_header_$ac_safe=no"
2808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2809 echo "$ac_t""yes" 1>&6
2810 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2811 cat >> confdefs.h <<EOF
2812 #define $ac_tr_hdr 1
2816 echo "$ac_t""no" 1>&6
2820 for ac_func in getpagesize
2822 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2823 echo "configure:2824: checking for $ac_func" >&5
2824 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2827 cat > conftest.$ac_ext <<EOF
2828 #line 2829 "configure"
2829 #include "confdefs.h"
2830 /* System header to define __stub macros and hopefully few prototypes,
2831 which can conflict with char $ac_func(); below. */
2833 /* Override any gcc2 internal prototype to avoid an error. */
2834 /* We use char because int might match the return type of a gcc2
2835 builtin and then its argument prototype would still apply. */
2840 /* The GNU C library defines this for functions which it implements
2841 to always fail with ENOSYS. Some functions are actually named
2842 something starting with __ and the normal name is an alias. */
2843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2851 if { (eval echo configure:2852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2853 eval "ac_cv_func_$ac_func=yes"
2855 echo "configure: failed program was:" >&5
2856 cat conftest.$ac_ext >&5
2858 eval "ac_cv_func_$ac_func=no"
2863 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2864 echo "$ac_t""yes" 1>&6
2865 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2866 cat >> confdefs.h <<EOF
2867 #define $ac_tr_func 1
2871 echo "$ac_t""no" 1>&6
2875 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2876 echo "configure:2877: checking for working mmap" >&5
2877 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2880 if test "$cross_compiling" = yes; then
2881 ac_cv_func_mmap_fixed_mapped=no
2883 cat > conftest.$ac_ext <<EOF
2884 #line 2885 "configure"
2885 #include "confdefs.h"
2887 /* Thanks to Mike Haertel and Jim Avera for this test.
2888 Here is a matrix of mmap possibilities:
2889 mmap private not fixed
2890 mmap private fixed at somewhere currently unmapped
2891 mmap private fixed at somewhere already mapped
2892 mmap shared not fixed
2893 mmap shared fixed at somewhere currently unmapped
2894 mmap shared fixed at somewhere already mapped
2895 For private mappings, we should verify that changes cannot be read()
2896 back from the file, nor mmap's back from the file at a different
2897 address. (There have been systems where private was not correctly
2898 implemented like the infamous i386 svr4.0, and systems where the
2899 VM page cache was not coherent with the filesystem buffer cache
2900 like early versions of FreeBSD and possibly contemporary NetBSD.)
2901 For shared mappings, we should conversely verify that changes get
2902 propogated back to all the places they're supposed to be.
2904 Grep wants private fixed already mapped.
2905 The main things grep needs to know about mmap are:
2906 * does it exist and is it safe to write into the mmap'd area
2907 * how to use it (BSD variants) */
2908 #include <sys/types.h>
2910 #include <sys/mman.h>
2912 /* This mess was copied from the GNU getpagesize.h. */
2913 #ifndef HAVE_GETPAGESIZE
2914 # ifdef HAVE_UNISTD_H
2915 # include <unistd.h>
2918 /* Assume that all systems that can run configure have sys/param.h. */
2919 # ifndef HAVE_SYS_PARAM_H
2920 # define HAVE_SYS_PARAM_H 1
2923 # ifdef _SC_PAGESIZE
2924 # define getpagesize() sysconf(_SC_PAGESIZE)
2925 # else /* no _SC_PAGESIZE */
2926 # ifdef HAVE_SYS_PARAM_H
2927 # include <sys/param.h>
2928 # ifdef EXEC_PAGESIZE
2929 # define getpagesize() EXEC_PAGESIZE
2930 # else /* no EXEC_PAGESIZE */
2932 # define getpagesize() NBPG * CLSIZE
2935 # endif /* no CLSIZE */
2936 # else /* no NBPG */
2938 # define getpagesize() NBPC
2939 # else /* no NBPC */
2941 # define getpagesize() PAGESIZE
2942 # endif /* PAGESIZE */
2943 # endif /* no NBPC */
2944 # endif /* no NBPG */
2945 # endif /* no EXEC_PAGESIZE */
2946 # else /* no HAVE_SYS_PARAM_H */
2947 # define getpagesize() 8192 /* punt totally */
2948 # endif /* no HAVE_SYS_PARAM_H */
2949 # endif /* no _SC_PAGESIZE */
2951 #endif /* no HAVE_GETPAGESIZE */
2954 extern "C" { void *malloc(unsigned); }
2962 char *data, *data2, *data3;
2966 pagesize = getpagesize();
2969 * First, make a file with some known garbage in it.
2971 data = malloc(pagesize);
2974 for (i = 0; i < pagesize; ++i)
2975 *(data + i) = rand();
2977 fd = creat("conftestmmap", 0600);
2980 if (write(fd, data, pagesize) != pagesize)
2985 * Next, try to mmap the file at a fixed address which
2986 * already has something else allocated at it. If we can,
2987 * also make sure that we see the same garbage.
2989 fd = open("conftestmmap", O_RDWR);
2992 data2 = malloc(2 * pagesize);
2995 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2996 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2997 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2999 for (i = 0; i < pagesize; ++i)
3000 if (*(data + i) != *(data2 + i))
3004 * Finally, make sure that changes to the mapped area
3005 * do not percolate back to the file as seen by read().
3006 * (This is a bug on some variants of i386 svr4.0.)
3008 for (i = 0; i < pagesize; ++i)
3009 *(data2 + i) = *(data2 + i) + 1;
3010 data3 = malloc(pagesize);
3013 if (read(fd, data3, pagesize) != pagesize)
3015 for (i = 0; i < pagesize; ++i)
3016 if (*(data + i) != *(data3 + i))
3019 unlink("conftestmmap");
3024 if { (eval echo configure:3025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3026 ac_cv_func_mmap_fixed_mapped=yes
3028 echo "configure: failed program was:" >&5
3029 cat conftest.$ac_ext >&5
3031 ac_cv_func_mmap_fixed_mapped=no
3038 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3039 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3040 cat >> confdefs.h <<\EOF
3047 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3048 unistd.h values.h sys/param.h
3050 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3051 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3052 echo "configure:3053: checking for $ac_hdr" >&5
3053 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3054 echo $ac_n "(cached) $ac_c" 1>&6
3056 cat > conftest.$ac_ext <<EOF
3057 #line 3058 "configure"
3058 #include "confdefs.h"
3061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3062 { (eval echo configure:3063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3064 if test -z "$ac_err"; then
3066 eval "ac_cv_header_$ac_safe=yes"
3069 echo "configure: failed program was:" >&5
3070 cat conftest.$ac_ext >&5
3072 eval "ac_cv_header_$ac_safe=no"
3076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3077 echo "$ac_t""yes" 1>&6
3078 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3079 cat >> confdefs.h <<EOF
3080 #define $ac_tr_hdr 1
3084 echo "$ac_t""no" 1>&6
3088 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3089 __argz_count __argz_stringify __argz_next
3091 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3092 echo "configure:3093: checking for $ac_func" >&5
3093 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3094 echo $ac_n "(cached) $ac_c" 1>&6
3096 cat > conftest.$ac_ext <<EOF
3097 #line 3098 "configure"
3098 #include "confdefs.h"
3099 /* System header to define __stub macros and hopefully few prototypes,
3100 which can conflict with char $ac_func(); below. */
3102 /* Override any gcc2 internal prototype to avoid an error. */
3103 /* We use char because int might match the return type of a gcc2
3104 builtin and then its argument prototype would still apply. */
3109 /* The GNU C library defines this for functions which it implements
3110 to always fail with ENOSYS. Some functions are actually named
3111 something starting with __ and the normal name is an alias. */
3112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3120 if { (eval echo configure:3121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3122 eval "ac_cv_func_$ac_func=yes"
3124 echo "configure: failed program was:" >&5
3125 cat conftest.$ac_ext >&5
3127 eval "ac_cv_func_$ac_func=no"
3132 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3133 echo "$ac_t""yes" 1>&6
3134 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3135 cat >> confdefs.h <<EOF
3136 #define $ac_tr_func 1
3140 echo "$ac_t""no" 1>&6
3145 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3146 for ac_func in stpcpy
3148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3149 echo "configure:3150: checking for $ac_func" >&5
3150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3153 cat > conftest.$ac_ext <<EOF
3154 #line 3155 "configure"
3155 #include "confdefs.h"
3156 /* System header to define __stub macros and hopefully few prototypes,
3157 which can conflict with char $ac_func(); below. */
3159 /* Override any gcc2 internal prototype to avoid an error. */
3160 /* We use char because int might match the return type of a gcc2
3161 builtin and then its argument prototype would still apply. */
3166 /* The GNU C library defines this for functions which it implements
3167 to always fail with ENOSYS. Some functions are actually named
3168 something starting with __ and the normal name is an alias. */
3169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3177 if { (eval echo configure:3178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3179 eval "ac_cv_func_$ac_func=yes"
3181 echo "configure: failed program was:" >&5
3182 cat conftest.$ac_ext >&5
3184 eval "ac_cv_func_$ac_func=no"
3189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3190 echo "$ac_t""yes" 1>&6
3191 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3192 cat >> confdefs.h <<EOF
3193 #define $ac_tr_func 1
3197 echo "$ac_t""no" 1>&6
3202 if test "${ac_cv_func_stpcpy}" = "yes"; then
3203 cat >> confdefs.h <<\EOF
3204 #define HAVE_STPCPY 1
3209 if test $ac_cv_header_locale_h = yes; then
3210 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3211 echo "configure:3212: checking for LC_MESSAGES" >&5
3212 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3213 echo $ac_n "(cached) $ac_c" 1>&6
3215 cat > conftest.$ac_ext <<EOF
3216 #line 3217 "configure"
3217 #include "confdefs.h"
3223 if { (eval echo configure:3224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3225 am_cv_val_LC_MESSAGES=yes
3227 echo "configure: failed program was:" >&5
3228 cat conftest.$ac_ext >&5
3230 am_cv_val_LC_MESSAGES=no
3235 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3236 if test $am_cv_val_LC_MESSAGES = yes; then
3237 cat >> confdefs.h <<\EOF
3238 #define HAVE_LC_MESSAGES 1
3243 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3244 echo "configure:3245: checking whether NLS is requested" >&5
3245 # Check whether --enable-nls or --disable-nls was given.
3246 if test "${enable_nls+set}" = set; then
3247 enableval="$enable_nls"
3253 echo "$ac_t""$USE_NLS" 1>&6
3256 USE_INCLUDED_LIBINTL=no
3258 if test "$USE_NLS" = "yes"; then
3259 cat >> confdefs.h <<\EOF
3260 #define ENABLE_NLS 1
3263 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3264 echo "configure:3265: checking whether included gettext is requested" >&5
3265 # Check whether --with-included-gettext or --without-included-gettext was given.
3266 if test "${with_included_gettext+set}" = set; then
3267 withval="$with_included_gettext"
3268 nls_cv_force_use_gnu_gettext=$withval
3270 nls_cv_force_use_gnu_gettext=no
3273 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3275 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3276 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3278 nls_cv_header_libgt=
3281 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3282 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3283 echo "configure:3284: checking for libintl.h" >&5
3284 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3285 echo $ac_n "(cached) $ac_c" 1>&6
3287 cat > conftest.$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3290 #include <libintl.h>
3292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3293 { (eval echo configure:3294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3295 if test -z "$ac_err"; then
3297 eval "ac_cv_header_$ac_safe=yes"
3300 echo "configure: failed program was:" >&5
3301 cat conftest.$ac_ext >&5
3303 eval "ac_cv_header_$ac_safe=no"
3307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3308 echo "$ac_t""yes" 1>&6
3309 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3310 echo "configure:3311: checking for gettext in libc" >&5
3311 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3312 echo $ac_n "(cached) $ac_c" 1>&6
3314 cat > conftest.$ac_ext <<EOF
3315 #line 3316 "configure"
3316 #include "confdefs.h"
3317 #include <libintl.h>
3319 return (int) gettext ("")
3322 if { (eval echo configure:3323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3324 gt_cv_func_gettext_libc=yes
3326 echo "configure: failed program was:" >&5
3327 cat conftest.$ac_ext >&5
3329 gt_cv_func_gettext_libc=no
3334 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3336 if test "$gt_cv_func_gettext_libc" != "yes"; then
3337 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3338 echo "configure:3339: checking for bindtextdomain in -lintl" >&5
3339 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3340 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3341 echo $ac_n "(cached) $ac_c" 1>&6
3343 ac_save_LIBS="$LIBS"
3345 cat > conftest.$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3348 /* Override any gcc2 internal prototype to avoid an error. */
3349 /* We use char because int might match the return type of a gcc2
3350 builtin and then its argument prototype would still apply. */
3351 char bindtextdomain();
3357 if { (eval echo configure:3358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3359 eval "ac_cv_lib_$ac_lib_var=yes"
3361 echo "configure: failed program was:" >&5
3362 cat conftest.$ac_ext >&5
3364 eval "ac_cv_lib_$ac_lib_var=no"
3367 LIBS="$ac_save_LIBS"
3370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3371 echo "$ac_t""yes" 1>&6
3372 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3373 echo "configure:3374: checking for gettext in libintl" >&5
3374 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3375 echo $ac_n "(cached) $ac_c" 1>&6
3377 cat > conftest.$ac_ext <<EOF
3378 #line 3379 "configure"
3379 #include "confdefs.h"
3382 return (int) gettext ("")
3385 if { (eval echo configure:3386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3387 gt_cv_func_gettext_libintl=yes
3389 echo "configure: failed program was:" >&5
3390 cat conftest.$ac_ext >&5
3392 gt_cv_func_gettext_libintl=no
3397 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3399 echo "$ac_t""no" 1>&6
3404 if test "$gt_cv_func_gettext_libc" = "yes" \
3405 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3406 cat >> confdefs.h <<\EOF
3407 #define HAVE_GETTEXT 1
3410 # Extract the first word of "msgfmt", so it can be a program name with args.
3411 set dummy msgfmt; ac_word=$2
3412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3413 echo "configure:3414: checking for $ac_word" >&5
3414 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3415 echo $ac_n "(cached) $ac_c" 1>&6
3419 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3423 for ac_dir in $PATH; do
3424 test -z "$ac_dir" && ac_dir=.
3425 if test -f $ac_dir/$ac_word; then
3426 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3427 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3433 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3437 MSGFMT="$ac_cv_path_MSGFMT"
3438 if test -n "$MSGFMT"; then
3439 echo "$ac_t""$MSGFMT" 1>&6
3441 echo "$ac_t""no" 1>&6
3443 if test "$MSGFMT" != "no"; then
3444 for ac_func in dcgettext
3446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3447 echo "configure:3448: checking for $ac_func" >&5
3448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3449 echo $ac_n "(cached) $ac_c" 1>&6
3451 cat > conftest.$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3454 /* System header to define __stub macros and hopefully few prototypes,
3455 which can conflict with char $ac_func(); below. */
3457 /* Override any gcc2 internal prototype to avoid an error. */
3458 /* We use char because int might match the return type of a gcc2
3459 builtin and then its argument prototype would still apply. */
3464 /* The GNU C library defines this for functions which it implements
3465 to always fail with ENOSYS. Some functions are actually named
3466 something starting with __ and the normal name is an alias. */
3467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3475 if { (eval echo configure:3476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3477 eval "ac_cv_func_$ac_func=yes"
3479 echo "configure: failed program was:" >&5
3480 cat conftest.$ac_ext >&5
3482 eval "ac_cv_func_$ac_func=no"
3487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3488 echo "$ac_t""yes" 1>&6
3489 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3490 cat >> confdefs.h <<EOF
3491 #define $ac_tr_func 1
3495 echo "$ac_t""no" 1>&6
3499 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3500 set dummy gmsgfmt; ac_word=$2
3501 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3502 echo "configure:3503: checking for $ac_word" >&5
3503 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3504 echo $ac_n "(cached) $ac_c" 1>&6
3508 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3511 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3516 for ac_dir in $ac_dummy; do
3517 test -z "$ac_dir" && ac_dir=.
3518 if test -f $ac_dir/$ac_word; then
3519 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3524 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3528 GMSGFMT="$ac_cv_path_GMSGFMT"
3529 if test -n "$GMSGFMT"; then
3530 echo "$ac_t""$GMSGFMT" 1>&6
3532 echo "$ac_t""no" 1>&6
3535 # Extract the first word of "xgettext", so it can be a program name with args.
3536 set dummy xgettext; ac_word=$2
3537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3538 echo "configure:3539: checking for $ac_word" >&5
3539 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3540 echo $ac_n "(cached) $ac_c" 1>&6
3544 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3548 for ac_dir in $PATH; do
3549 test -z "$ac_dir" && ac_dir=.
3550 if test -f $ac_dir/$ac_word; then
3551 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3552 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3558 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3562 XGETTEXT="$ac_cv_path_XGETTEXT"
3563 if test -n "$XGETTEXT"; then
3564 echo "$ac_t""$XGETTEXT" 1>&6
3566 echo "$ac_t""no" 1>&6
3569 cat > conftest.$ac_ext <<EOF
3570 #line 3571 "configure"
3571 #include "confdefs.h"
3574 extern int _nl_msg_cat_cntr;
3575 return _nl_msg_cat_cntr
3578 if { (eval echo configure:3579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3583 echo "configure: failed program was:" >&5
3584 cat conftest.$ac_ext >&5
3595 echo "$ac_t""no" 1>&6
3600 if test "$CATOBJEXT" = "NONE"; then
3601 nls_cv_use_gnu_gettext=yes
3605 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3606 INTLOBJS="\$(GETTOBJS)"
3607 # Extract the first word of "msgfmt", so it can be a program name with args.
3608 set dummy msgfmt; ac_word=$2
3609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3610 echo "configure:3611: checking for $ac_word" >&5
3611 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3612 echo $ac_n "(cached) $ac_c" 1>&6
3616 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3620 for ac_dir in $PATH; do
3621 test -z "$ac_dir" && ac_dir=.
3622 if test -f $ac_dir/$ac_word; then
3623 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3624 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3630 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3634 MSGFMT="$ac_cv_path_MSGFMT"
3635 if test -n "$MSGFMT"; then
3636 echo "$ac_t""$MSGFMT" 1>&6
3638 echo "$ac_t""no" 1>&6
3641 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3642 set dummy gmsgfmt; ac_word=$2
3643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3644 echo "configure:3645: checking for $ac_word" >&5
3645 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3646 echo $ac_n "(cached) $ac_c" 1>&6
3650 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3653 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3658 for ac_dir in $ac_dummy; do
3659 test -z "$ac_dir" && ac_dir=.
3660 if test -f $ac_dir/$ac_word; then
3661 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3666 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3670 GMSGFMT="$ac_cv_path_GMSGFMT"
3671 if test -n "$GMSGFMT"; then
3672 echo "$ac_t""$GMSGFMT" 1>&6
3674 echo "$ac_t""no" 1>&6
3677 # Extract the first word of "xgettext", so it can be a program name with args.
3678 set dummy xgettext; ac_word=$2
3679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3680 echo "configure:3681: checking for $ac_word" >&5
3681 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3682 echo $ac_n "(cached) $ac_c" 1>&6
3686 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3690 for ac_dir in $PATH; do
3691 test -z "$ac_dir" && ac_dir=.
3692 if test -f $ac_dir/$ac_word; then
3693 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3694 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3700 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3704 XGETTEXT="$ac_cv_path_XGETTEXT"
3705 if test -n "$XGETTEXT"; then
3706 echo "$ac_t""$XGETTEXT" 1>&6
3708 echo "$ac_t""no" 1>&6
3712 USE_INCLUDED_LIBINTL=yes
3716 INTLDEPS='$(top_builddir)/../intl/libintl.a'
3718 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3719 nls_cv_header_intl=libintl.h
3720 nls_cv_header_libgt=libgettext.h
3723 if test "$XGETTEXT" != ":"; then
3724 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3727 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3732 # We need to process the po/ directory.
3736 nls_cv_header_intl=libintl.h
3737 nls_cv_header_libgt=libgettext.h
3740 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3741 # because some of the sources are only built for this goal.
3742 if test "$PACKAGE" = gettext; then
3744 USE_INCLUDED_LIBINTL=yes
3747 for lang in $ALL_LINGUAS; do
3748 GMOFILES="$GMOFILES $lang.gmo"
3749 POFILES="$POFILES $lang.po"
3765 if test "x$CATOBJEXT" != "x"; then
3766 if test "x$ALL_LINGUAS" = "x"; then
3769 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3770 echo "configure:3771: checking for catalogs to be installed" >&5
3772 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3773 case "$ALL_LINGUAS" in
3774 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3777 LINGUAS=$NEW_LINGUAS
3778 echo "$ac_t""$LINGUAS" 1>&6
3781 if test -n "$LINGUAS"; then
3782 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3786 if test $ac_cv_header_locale_h = yes; then
3787 INCLUDE_LOCALE_H="#include <locale.h>"
3790 /* The system does not provide the header <locale.h>. Take care yourself. */"
3794 if test -f $srcdir/po2tbl.sed.in; then
3795 if test "$CATOBJEXT" = ".cat"; then
3796 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3797 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3798 echo "configure:3799: checking for linux/version.h" >&5
3799 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3800 echo $ac_n "(cached) $ac_c" 1>&6
3802 cat > conftest.$ac_ext <<EOF
3803 #line 3804 "configure"
3804 #include "confdefs.h"
3805 #include <linux/version.h>
3807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3808 { (eval echo configure:3809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3810 if test -z "$ac_err"; then
3812 eval "ac_cv_header_$ac_safe=yes"
3815 echo "configure: failed program was:" >&5
3816 cat conftest.$ac_ext >&5
3818 eval "ac_cv_header_$ac_safe=no"
3822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3823 echo "$ac_t""yes" 1>&6
3826 echo "$ac_t""no" 1>&6
3831 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
3833 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3834 $srcdir/po2tbl.sed.in > po2tbl.sed
3837 if test "$PACKAGE" = "gettext"; then
3847 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
3853 if test -d $srcdir/po; then
3854 test -d po || mkdir po
3855 if test "x$srcdir" != "x."; then
3856 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3857 posrcprefix="$srcdir/"
3859 posrcprefix="../$srcdir/"
3865 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3866 < $srcdir/po/POTFILES.in > po/POTFILES
3870 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
3871 echo "configure:3872: checking whether to enable maintainer-specific portions of Makefiles" >&5
3872 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3873 if test "${enable_maintainer_mode+set}" = set; then
3874 enableval="$enable_maintainer_mode"
3875 USE_MAINTAINER_MODE=$enableval
3877 USE_MAINTAINER_MODE=no
3880 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
3883 if test $USE_MAINTAINER_MODE = yes; then
3884 MAINTAINER_MODE_TRUE=
3885 MAINTAINER_MODE_FALSE='#'
3887 MAINTAINER_MODE_TRUE='#'
3888 MAINTAINER_MODE_FALSE=
3890 MAINT=$MAINTAINER_MODE_TRUE
3893 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3894 echo "configure:3895: checking for Cygwin environment" >&5
3895 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
3896 echo $ac_n "(cached) $ac_c" 1>&6
3898 cat > conftest.$ac_ext <<EOF
3899 #line 3900 "configure"
3900 #include "confdefs.h"
3905 #define __CYGWIN__ __CYGWIN32__
3910 if { (eval echo configure:3911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3914 echo "configure: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3923 echo "$ac_t""$ac_cv_cygwin" 1>&6
3925 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3926 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3927 echo "configure:3928: checking for mingw32 environment" >&5
3928 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
3929 echo $ac_n "(cached) $ac_c" 1>&6
3931 cat > conftest.$ac_ext <<EOF
3932 #line 3933 "configure"
3933 #include "confdefs.h"
3939 if { (eval echo configure:3940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3943 echo "configure: failed program was:" >&5
3944 cat conftest.$ac_ext >&5
3952 echo "$ac_t""$ac_cv_mingw32" 1>&6
3954 test "$ac_cv_mingw32" = yes && MINGW32=yes
3957 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3958 echo "configure:3959: checking for executable suffix" >&5
3959 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3960 echo $ac_n "(cached) $ac_c" 1>&6
3962 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3966 echo 'int main () { return 0; }' > conftest.$ac_ext
3968 if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3969 for file in conftest.*; do
3971 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
3972 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3976 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3979 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3984 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3985 echo "$ac_t""${ac_cv_exeext}" 1>&6
3990 cat > confcache <<\EOF
3991 # This file is a shell script that caches the results of configure
3992 # tests run on this system so they can be shared between configure
3993 # scripts and configure runs. It is not useful on other systems.
3994 # If it contains results you don't want to keep, you may remove or edit it.
3996 # By default, configure uses ./config.cache as the cache file,
3997 # creating it if it does not exist already. You can give configure
3998 # the --cache-file=FILE option to use a different cache file; that is
3999 # what configure does when it calls configure scripts in
4000 # subdirectories, so they share the cache.
4001 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4002 # config.status only pays attention to the cache file if you give it the
4003 # --recheck option to rerun configure.
4006 # The following way of writing the cache mishandles newlines in values,
4007 # but we know of no workaround that is simple, portable, and efficient.
4008 # So, don't put newlines in cache variables' values.
4009 # Ultrix sh set writes to stderr and can't be redirected directly,
4010 # and sets the high bit in the cache file unless we assign to the vars.
4012 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4014 # `set' does not quote correctly, so add quotes (double-quote substitution
4015 # turns \\\\ into \\, and sed turns \\ into \).
4017 -e "s/'/'\\\\''/g" \
4018 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4021 # `set' quotes correctly as required by POSIX, so do not add quotes.
4022 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4025 if cmp -s $cache_file confcache; then
4028 if test -w $cache_file; then
4029 echo "updating cache $cache_file"
4030 cat confcache > $cache_file
4032 echo "not updating unwritable cache $cache_file"
4037 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4039 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4040 # Let make expand exec_prefix.
4041 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4043 # Any assignment to VPATH causes Sun make to only execute
4044 # the first set of double-colon rules, so remove it if not needed.
4045 # If there is a colon in the path, we need to keep it.
4046 if test "x$srcdir" = x.; then
4047 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4050 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4052 DEFS=-DHAVE_CONFIG_H
4054 # Without the "./", some shells look in PATH for config.status.
4055 : ${CONFIG_STATUS=./config.status}
4057 echo creating $CONFIG_STATUS
4058 rm -f $CONFIG_STATUS
4059 cat > $CONFIG_STATUS <<EOF
4061 # Generated automatically by configure.
4062 # Run this file to recreate the current configuration.
4063 # This directory was configured as follows,
4064 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4066 # $0 $ac_configure_args
4068 # Compiler output produced by configure, useful for debugging
4069 # configure, is in ./config.log if it exists.
4071 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4074 case "\$ac_option" in
4075 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4076 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4077 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4078 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4079 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4081 -help | --help | --hel | --he | --h)
4082 echo "\$ac_cs_usage"; exit 0 ;;
4083 *) echo "\$ac_cs_usage"; exit 1 ;;
4087 ac_given_srcdir=$srcdir
4088 ac_given_INSTALL="$INSTALL"
4090 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4092 cat >> $CONFIG_STATUS <<EOF
4094 # Protect against being on the right side of a sed subst in config.status.
4095 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4096 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4100 s%@CFLAGS@%$CFLAGS%g
4101 s%@CPPFLAGS@%$CPPFLAGS%g
4102 s%@CXXFLAGS@%$CXXFLAGS%g
4103 s%@FFLAGS@%$FFLAGS%g
4105 s%@LDFLAGS@%$LDFLAGS%g
4107 s%@exec_prefix@%$exec_prefix%g
4108 s%@prefix@%$prefix%g
4109 s%@program_transform_name@%$program_transform_name%g
4110 s%@bindir@%$bindir%g
4111 s%@sbindir@%$sbindir%g
4112 s%@libexecdir@%$libexecdir%g
4113 s%@datadir@%$datadir%g
4114 s%@sysconfdir@%$sysconfdir%g
4115 s%@sharedstatedir@%$sharedstatedir%g
4116 s%@localstatedir@%$localstatedir%g
4117 s%@libdir@%$libdir%g
4118 s%@includedir@%$includedir%g
4119 s%@oldincludedir@%$oldincludedir%g
4120 s%@infodir@%$infodir%g
4121 s%@mandir@%$mandir%g
4123 s%@host_alias@%$host_alias%g
4124 s%@host_cpu@%$host_cpu%g
4125 s%@host_vendor@%$host_vendor%g
4126 s%@host_os@%$host_os%g
4127 s%@target@%$target%g
4128 s%@target_alias@%$target_alias%g
4129 s%@target_cpu@%$target_cpu%g
4130 s%@target_vendor@%$target_vendor%g
4131 s%@target_os@%$target_os%g
4133 s%@build_alias@%$build_alias%g
4134 s%@build_cpu@%$build_cpu%g
4135 s%@build_vendor@%$build_vendor%g
4136 s%@build_os@%$build_os%g
4137 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4138 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4139 s%@INSTALL_DATA@%$INSTALL_DATA%g
4140 s%@PACKAGE@%$PACKAGE%g
4141 s%@VERSION@%$VERSION%g
4142 s%@ACLOCAL@%$ACLOCAL%g
4143 s%@AUTOCONF@%$AUTOCONF%g
4144 s%@AUTOMAKE@%$AUTOMAKE%g
4145 s%@AUTOHEADER@%$AUTOHEADER%g
4146 s%@MAKEINFO@%$MAKEINFO%g
4147 s%@SET_MAKE@%$SET_MAKE%g
4148 s%@RANLIB@%$RANLIB%g
4152 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
4154 s%@DLLTOOL@%$DLLTOOL%g
4156 s%@LIBTOOL@%$LIBTOOL%g
4158 s%@ALLOCA@%$ALLOCA%g
4159 s%@USE_NLS@%$USE_NLS%g
4160 s%@MSGFMT@%$MSGFMT%g
4161 s%@GMSGFMT@%$GMSGFMT%g
4162 s%@XGETTEXT@%$XGETTEXT%g
4163 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4164 s%@CATALOGS@%$CATALOGS%g
4165 s%@CATOBJEXT@%$CATOBJEXT%g
4166 s%@DATADIRNAME@%$DATADIRNAME%g
4167 s%@GMOFILES@%$GMOFILES%g
4168 s%@INSTOBJEXT@%$INSTOBJEXT%g
4169 s%@INTLDEPS@%$INTLDEPS%g
4170 s%@INTLLIBS@%$INTLLIBS%g
4171 s%@INTLOBJS@%$INTLOBJS%g
4172 s%@POFILES@%$POFILES%g
4174 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4176 s%@GT_YES@%$GT_YES%g
4177 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4179 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4180 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4182 s%@EXEEXT@%$EXEEXT%g
4187 cat >> $CONFIG_STATUS <<\EOF
4189 # Split the substitutions into bite-sized pieces for seds with
4190 # small command number limits, like on Digital OSF/1 and HP-UX.
4191 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4192 ac_file=1 # Number of current file.
4193 ac_beg=1 # First line for current file.
4194 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4197 while $ac_more_lines; do
4198 if test $ac_beg -gt 1; then
4199 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4201 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4203 if test ! -s conftest.s$ac_file; then
4205 rm -f conftest.s$ac_file
4207 if test -z "$ac_sed_cmds"; then
4208 ac_sed_cmds="sed -f conftest.s$ac_file"
4210 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4212 ac_file=`expr $ac_file + 1`
4214 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4217 if test -z "$ac_sed_cmds"; then
4222 cat >> $CONFIG_STATUS <<EOF
4224 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4226 cat >> $CONFIG_STATUS <<\EOF
4227 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4228 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4230 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4231 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4232 *) ac_file_in="${ac_file}.in" ;;
4235 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4237 # Remove last slash and all that follows it. Not all systems have dirname.
4238 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4239 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4240 # The file is in a subdirectory.
4241 test ! -d "$ac_dir" && mkdir "$ac_dir"
4242 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4243 # A "../" for each directory in $ac_dir_suffix.
4244 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4246 ac_dir_suffix= ac_dots=
4249 case "$ac_given_srcdir" in
4251 if test -z "$ac_dots"; then top_srcdir=.
4252 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4253 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4255 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4256 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4259 case "$ac_given_INSTALL" in
4260 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4261 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4264 echo creating "$ac_file"
4266 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4268 *Makefile*) ac_comsub="1i\\
4269 # $configure_input" ;;
4273 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4275 s%@configure_input@%$configure_input%g
4276 s%@srcdir@%$srcdir%g
4277 s%@top_srcdir@%$top_srcdir%g
4278 s%@INSTALL@%$INSTALL%g
4279 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4283 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4284 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4286 # ac_d sets the value in "#define NAME VALUE" lines.
4287 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4288 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4291 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4292 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4293 ac_uB='\([ ]\)%\1#\2define\3'
4296 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4297 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4298 ac_eB='$%\1#\2define\3'
4302 if test "${CONFIG_HEADERS+set}" != set; then
4304 cat >> $CONFIG_STATUS <<EOF
4305 CONFIG_HEADERS="gconfig.h:gconfig.in"
4307 cat >> $CONFIG_STATUS <<\EOF
4309 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4310 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4312 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4313 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4314 *) ac_file_in="${ac_file}.in" ;;
4317 echo creating $ac_file
4319 rm -f conftest.frag conftest.in conftest.out
4320 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4321 cat $ac_file_inputs > conftest.in
4325 # Transform confdefs.h into a sed script conftest.vals that substitutes
4326 # the proper values into config.h.in to produce config.h. And first:
4327 # Protect against being on the right side of a sed subst in config.status.
4328 # Protect against being in an unquoted here document in config.status.
4330 cat > conftest.hdr <<\EOF
4333 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4337 sed -n -f conftest.hdr confdefs.h > conftest.vals
4340 # This sed command replaces #undef with comments. This is necessary, for
4341 # example, in the case of _POSIX_SOURCE, which is predefined and required
4342 # on some systems where configure will not decide to define it.
4343 cat >> conftest.vals <<\EOF
4344 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4347 # Break up conftest.vals because some shells have a limit on
4348 # the size of here documents, and old seds have small limits too.
4353 ac_lines=`grep -c . conftest.vals`
4354 # grep -c gives empty output for an empty file on some AIX systems.
4355 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4356 # Write a limited-size here document to conftest.frag.
4357 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4358 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4360 sed -f conftest.frag conftest.in > conftest.out
4362 mv conftest.out conftest.in
4364 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4366 mv conftest.tail conftest.vals
4370 cat >> $CONFIG_STATUS <<\EOF
4371 rm -f conftest.frag conftest.h
4372 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4373 cat conftest.in >> conftest.h
4375 if cmp -s $ac_file conftest.h 2>/dev/null; then
4376 echo "$ac_file is unchanged"
4379 # Remove last slash and all that follows it. Not all systems have dirname.
4380 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4381 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4382 # The file is in a subdirectory.
4383 test ! -d "$ac_dir" && mkdir "$ac_dir"
4386 mv conftest.h $ac_file
4391 cat >> $CONFIG_STATUS <<EOF
4395 cat >> $CONFIG_STATUS <<\EOF
4396 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4397 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4400 chmod +x $CONFIG_STATUS
4401 rm -fr confdefs* $ac_clean_files
4402 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1