3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-socks use the socks library"
17 --disable-opie disable support for opie or s/key FTP login"
19 --disable-digest disable support for HTTP digest authorization"
21 --disable-debug disable support for debugging output"
23 --disable-nls do not use Native Language Support"
25 # Initialize some variables set by options.
26 # The variables have the same names as the options, with
27 # dashes changed to underlines.
29 cache_file=./config.cache
38 program_transform_name=s,x,x,
46 bindir='${exec_prefix}/bin'
47 sbindir='${exec_prefix}/sbin'
48 libexecdir='${exec_prefix}/libexec'
49 datadir='${prefix}/share'
50 sysconfdir='${prefix}/etc'
51 sharedstatedir='${prefix}/com'
52 localstatedir='${prefix}/var'
53 libdir='${exec_prefix}/lib'
54 includedir='${prefix}/include'
55 oldincludedir='/usr/include'
56 infodir='${prefix}/info'
57 mandir='${prefix}/man'
59 # Initialize some other variables.
62 SHELL=${CONFIG_SHELL-/bin/sh}
63 # Maximum number of lines to put in a shell here document.
70 # If the previous option needs an argument, assign it.
71 if test -n "$ac_prev"; then
72 eval "$ac_prev=\$ac_option"
78 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 # Accept the important Cygnus configure options, so we can diagnose typos.
86 -bindir | --bindir | --bindi | --bind | --bin | --bi)
88 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
89 bindir="$ac_optarg" ;;
91 -build | --build | --buil | --bui | --bu)
93 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96 -cache-file | --cache-file | --cache-fil | --cache-fi \
97 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
99 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
101 cache_file="$ac_optarg" ;;
103 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
105 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
107 datadir="$ac_optarg" ;;
109 -disable-* | --disable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116 eval "enable_${ac_feature}=no" ;;
118 -enable-* | --enable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}='$ac_optarg'" ;;
131 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
132 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
133 | --exec | --exe | --ex)
134 ac_prev=exec_prefix ;;
135 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
136 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
137 | --exec=* | --exe=* | --ex=*)
138 exec_prefix="$ac_optarg" ;;
140 -gas | --gas | --ga | --g)
141 # Obsolete; use --with-gas.
144 -help | --help | --hel | --he)
145 # Omit some internal or obsolete options to make the list less imposing.
146 # This message is too long to be a string in the A/UX 3.1 sh.
148 Usage: configure [options] [host]
149 Options: [defaults in brackets after descriptions]
151 --cache-file=FILE cache test results in FILE
152 --help print this message
153 --no-create do not create output files
154 --quiet, --silent do not print \`checking...' messages
155 --version print the version of autoconf that created configure
156 Directory and file names:
157 --prefix=PREFIX install architecture-independent files in PREFIX
159 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
161 --bindir=DIR user executables in DIR [EPREFIX/bin]
162 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
163 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
164 --datadir=DIR read-only architecture-independent data in DIR
166 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
167 --sharedstatedir=DIR modifiable architecture-independent data in DIR
169 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
170 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
171 --includedir=DIR C header files in DIR [PREFIX/include]
172 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
173 --infodir=DIR info documentation in DIR [PREFIX/info]
174 --mandir=DIR man documentation in DIR [PREFIX/man]
175 --srcdir=DIR find the sources in DIR [configure dir or ..]
176 --program-prefix=PREFIX prepend PREFIX to installed program names
177 --program-suffix=SUFFIX append SUFFIX to installed program names
178 --program-transform-name=PROGRAM
179 run sed PROGRAM on installed program names
183 --build=BUILD configure for building on BUILD [BUILD=HOST]
184 --host=HOST configure for HOST [guessed]
185 --target=TARGET configure for TARGET [TARGET=HOST]
186 Features and packages:
187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
189 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
190 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
191 --x-includes=DIR X include files are in DIR
192 --x-libraries=DIR X library files are in DIR
194 if test -n "$ac_help"; then
195 echo "--enable and --with options recognized:$ac_help"
199 -host | --host | --hos | --ho)
201 -host=* | --host=* | --hos=* | --ho=*)
204 -includedir | --includedir | --includedi | --included | --include \
205 | --includ | --inclu | --incl | --inc)
206 ac_prev=includedir ;;
207 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
208 | --includ=* | --inclu=* | --incl=* | --inc=*)
209 includedir="$ac_optarg" ;;
211 -infodir | --infodir | --infodi | --infod | --info | --inf)
213 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
214 infodir="$ac_optarg" ;;
216 -libdir | --libdir | --libdi | --libd)
218 -libdir=* | --libdir=* | --libdi=* | --libd=*)
219 libdir="$ac_optarg" ;;
221 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
222 | --libexe | --libex | --libe)
223 ac_prev=libexecdir ;;
224 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
225 | --libexe=* | --libex=* | --libe=*)
226 libexecdir="$ac_optarg" ;;
228 -localstatedir | --localstatedir | --localstatedi | --localstated \
229 | --localstate | --localstat | --localsta | --localst \
230 | --locals | --local | --loca | --loc | --lo)
231 ac_prev=localstatedir ;;
232 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
233 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
234 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
235 localstatedir="$ac_optarg" ;;
237 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
239 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
240 mandir="$ac_optarg" ;;
243 # Obsolete; use --without-fp.
246 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
251 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
254 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
255 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
256 | --oldin | --oldi | --old | --ol | --o)
257 ac_prev=oldincludedir ;;
258 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
259 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
260 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
261 oldincludedir="$ac_optarg" ;;
263 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
265 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
266 prefix="$ac_optarg" ;;
268 -program-prefix | --program-prefix | --program-prefi | --program-pref \
269 | --program-pre | --program-pr | --program-p)
270 ac_prev=program_prefix ;;
271 -program-prefix=* | --program-prefix=* | --program-prefi=* \
272 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
273 program_prefix="$ac_optarg" ;;
275 -program-suffix | --program-suffix | --program-suffi | --program-suff \
276 | --program-suf | --program-su | --program-s)
277 ac_prev=program_suffix ;;
278 -program-suffix=* | --program-suffix=* | --program-suffi=* \
279 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
280 program_suffix="$ac_optarg" ;;
282 -program-transform-name | --program-transform-name \
283 | --program-transform-nam | --program-transform-na \
284 | --program-transform-n | --program-transform- \
285 | --program-transform | --program-transfor \
286 | --program-transfo | --program-transf \
287 | --program-trans | --program-tran \
288 | --progr-tra | --program-tr | --program-t)
289 ac_prev=program_transform_name ;;
290 -program-transform-name=* | --program-transform-name=* \
291 | --program-transform-nam=* | --program-transform-na=* \
292 | --program-transform-n=* | --program-transform-=* \
293 | --program-transform=* | --program-transfor=* \
294 | --program-transfo=* | --program-transf=* \
295 | --program-trans=* | --program-tran=* \
296 | --progr-tra=* | --program-tr=* | --program-t=*)
297 program_transform_name="$ac_optarg" ;;
299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
300 | -silent | --silent | --silen | --sile | --sil)
303 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
305 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
307 sbindir="$ac_optarg" ;;
309 -sharedstatedir | --sharedstatedir | --sharedstatedi \
310 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311 | --sharedst | --shareds | --shared | --share | --shar \
313 ac_prev=sharedstatedir ;;
314 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
315 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
316 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
318 sharedstatedir="$ac_optarg" ;;
320 -site | --site | --sit)
322 -site=* | --site=* | --sit=*)
325 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
327 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
328 srcdir="$ac_optarg" ;;
330 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
331 | --syscon | --sysco | --sysc | --sys | --sy)
332 ac_prev=sysconfdir ;;
333 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
334 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
335 sysconfdir="$ac_optarg" ;;
337 -target | --target | --targe | --targ | --tar | --ta | --t)
339 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
340 target="$ac_optarg" ;;
342 -v | -verbose | --verbose | --verbos | --verbo | --verb)
345 -version | --version | --versio | --versi | --vers)
346 echo "configure generated by autoconf version 2.13"
350 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
351 # Reject names that are not valid shell variable names.
352 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
353 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
355 ac_package=`echo $ac_package| sed 's/-/_/g'`
360 eval "with_${ac_package}='$ac_optarg'" ;;
362 -without-* | --without-*)
363 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 ac_package=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}=no" ;;
372 # Obsolete; use --with-x.
375 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
376 | --x-incl | --x-inc | --x-in | --x-i)
377 ac_prev=x_includes ;;
378 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
379 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
380 x_includes="$ac_optarg" ;;
382 -x-libraries | --x-libraries | --x-librarie | --x-librari \
383 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
384 ac_prev=x_libraries ;;
385 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
386 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
387 x_libraries="$ac_optarg" ;;
389 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
394 echo "configure: warning: $ac_option: invalid host type" 1>&2
396 if test "x$nonopt" != xNONE; then
397 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
405 if test -n "$ac_prev"; then
406 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
411 # File descriptor usage:
414 # 2 errors and warnings
415 # 3 some systems may open it to /dev/tty
416 # 4 used on the Kubota Titan
417 # 6 checking for... messages and results
418 # 5 compiler messages saved in config.log
419 if test "$silent" = yes; then
427 This file contains any messages produced by compilers while
428 running configure, to aid debugging if configure makes a mistake.
431 # Strip out --no-create and --no-recursion so they do not pile up.
432 # Also quote any args containing shell metacharacters.
437 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
438 | --no-cr | --no-c) ;;
439 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
440 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
442 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
443 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
448 # Only set these to C if already set. These must not be set unconditionally
449 # because not all systems understand e.g. LANG=C (notably SCO).
450 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
451 # Non-C LC_CTYPE values break the ctype check.
452 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
453 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
454 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
455 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
458 rm -rf conftest* confdefs.h
459 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
462 # A filename unique to this package, relative to the directory that
463 # configure is in, which we can look for to find out if srcdir is correct.
464 ac_unique_file=src/version.c
466 # Find the source files, if location was not specified.
467 if test -z "$srcdir"; then
468 ac_srcdir_defaulted=yes
469 # Try the directory containing this script, then its parent.
471 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
474 if test ! -r $srcdir/$ac_unique_file; then
478 ac_srcdir_defaulted=no
480 if test ! -r $srcdir/$ac_unique_file; then
481 if test "$ac_srcdir_defaulted" = yes; then
482 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
484 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
489 # Prefer explicitly selected file to automatically selected ones.
490 if test -z "$CONFIG_SITE"; then
491 if test "x$prefix" != xNONE; then
492 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
494 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497 for ac_site_file in $CONFIG_SITE; do
498 if test -r "$ac_site_file"; then
499 echo "loading site script $ac_site_file"
504 if test -r "$cache_file"; then
505 echo "loading cache $cache_file"
508 echo "creating cache $cache_file"
513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
514 ac_cpp='$CPP $CPPFLAGS'
515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
517 cross_compiling=$ac_cv_prog_cc_cross
521 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
522 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
523 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
530 ac_n= ac_c='\c' ac_t=
537 VERSION=`sed -e 's/^.*"\(.*\)";$/\1/' ${srcdir}/src/version.c`
538 echo "configuring for GNU Wget $VERSION"
544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
545 if test -f $ac_dir/install-sh; then
547 ac_install_sh="$ac_aux_dir/install-sh -c"
549 elif test -f $ac_dir/install.sh; then
551 ac_install_sh="$ac_aux_dir/install.sh -c"
555 if test -z "$ac_aux_dir"; then
556 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
558 ac_config_guess=$ac_aux_dir/config.guess
559 ac_config_sub=$ac_aux_dir/config.sub
560 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
563 # Make sure we can run config.sub.
564 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
565 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
568 echo $ac_n "checking host system type""... $ac_c" 1>&6
569 echo "configure:570: checking host system type" >&5
572 case "$host_alias" in
576 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
577 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
579 *) host_alias=$nonopt ;;
583 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
584 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
585 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
586 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
587 echo "$ac_t""$host" 1>&6
589 cat >> confdefs.h <<EOF
590 #define OS_TYPE "$host_os"
594 # Check whether --with-socks or --without-socks was given.
595 if test "${with_socks+set}" = set; then
596 withval="$with_socks"
597 cat >> confdefs.h <<\EOF
604 # Check whether --enable-opie or --disable-opie was given.
605 if test "${enable_opie+set}" = set; then
606 enableval="$enable_opie"
612 test x"${USE_OPIE}" = xyes && cat >> confdefs.h <<\EOF
617 # Check whether --enable-digest or --disable-digest was given.
618 if test "${enable_digest+set}" = set; then
619 enableval="$enable_digest"
620 USE_DIGEST=$enableval
625 test x"${USE_DIGEST}" = xyes && cat >> confdefs.h <<\EOF
630 # Check whether --enable-debug or --disable-debug was given.
631 if test "${enable_debug+set}" = set; then
632 enableval="$enable_debug"
638 test x"${DEBUG}" = xyes && cat >> confdefs.h <<\EOF
643 case "${USE_OPIE}${USE_DIGEST}" in
647 if test x"$USE_OPIE" = xyes; then
648 OPIE_OBJ='ftp-opie$o'
653 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
654 echo "configure:655: checking whether ${MAKE-make} sets \${MAKE}" >&5
655 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
656 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
657 echo $ac_n "(cached) $ac_c" 1>&6
659 cat > conftestmake <<\EOF
661 @echo 'ac_maketemp="${MAKE}"'
663 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
664 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
665 if test -n "$ac_maketemp"; then
666 eval ac_cv_prog_make_${ac_make}_set=yes
668 eval ac_cv_prog_make_${ac_make}_set=no
672 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
673 echo "$ac_t""yes" 1>&6
676 echo "$ac_t""no" 1>&6
677 SET_MAKE="MAKE=${MAKE-make}"
681 # Find a good install program. We prefer a C program (faster),
682 # so one script is as good as another. But avoid the broken or
683 # incompatible versions:
684 # SysV /etc/install, /usr/sbin/install
685 # SunOS /usr/etc/install
688 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
689 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
690 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
691 # ./install, which can be erroneously created by make from ./install.sh.
692 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
693 echo "configure:694: checking for a BSD compatible install" >&5
694 if test -z "$INSTALL"; then
695 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
698 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
699 for ac_dir in $PATH; do
700 # Account for people who put trailing slashes in PATH elements.
702 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
704 # OSF1 and SCO ODT 3.0 have their own names for install.
705 # Don't use installbsd from OSF since it installs stuff as root
707 for ac_prog in ginstall scoinst install; do
708 if test -f $ac_dir/$ac_prog; then
709 if test $ac_prog = install &&
710 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
711 # AIX install. It has an incompatible calling convention.
714 ac_cv_path_install="$ac_dir/$ac_prog -c"
725 if test "${ac_cv_path_install+set}" = set; then
726 INSTALL="$ac_cv_path_install"
728 # As a last resort, use the slow shell script. We don't cache a
729 # path for INSTALL within a source directory, because that will
730 # break other packages using the cache if that directory is
731 # removed, or if the path is relative.
732 INSTALL="$ac_install_sh"
735 echo "$ac_t""$INSTALL" 1>&6
737 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
738 # It thinks the first close brace ends the variable substitution.
739 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
741 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
743 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
747 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
748 test -z "$CC" && cc_specified=yes
750 # Extract the first word of "gcc", so it can be a program name with args.
751 set dummy gcc; ac_word=$2
752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
753 echo "configure:754: checking for $ac_word" >&5
754 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
755 echo $ac_n "(cached) $ac_c" 1>&6
757 if test -n "$CC"; then
758 ac_cv_prog_CC="$CC" # Let the user override the test.
760 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
762 for ac_dir in $ac_dummy; do
763 test -z "$ac_dir" && ac_dir=.
764 if test -f $ac_dir/$ac_word; then
773 if test -n "$CC"; then
774 echo "$ac_t""$CC" 1>&6
776 echo "$ac_t""no" 1>&6
779 if test -z "$CC"; then
780 # Extract the first word of "cc", so it can be a program name with args.
781 set dummy cc; ac_word=$2
782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
783 echo "configure:784: checking for $ac_word" >&5
784 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
787 if test -n "$CC"; then
788 ac_cv_prog_CC="$CC" # Let the user override the test.
790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
793 for ac_dir in $ac_dummy; do
794 test -z "$ac_dir" && ac_dir=.
795 if test -f $ac_dir/$ac_word; then
796 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
805 if test $ac_prog_rejected = yes; then
806 # We found a bogon in the path, so make sure we never use it.
807 set dummy $ac_cv_prog_CC
809 if test $# -gt 0; then
810 # We chose a different compiler from the bogus one.
811 # However, it has the same basename, so the bogon will be chosen
812 # first if we set CC to just the basename; use the full file name.
814 set dummy "$ac_dir/$ac_word" "$@"
822 if test -n "$CC"; then
823 echo "$ac_t""$CC" 1>&6
825 echo "$ac_t""no" 1>&6
828 if test -z "$CC"; then
831 # Extract the first word of "cl", so it can be a program name with args.
832 set dummy cl; ac_word=$2
833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
834 echo "configure:835: checking for $ac_word" >&5
835 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 if test -n "$CC"; then
839 ac_cv_prog_CC="$CC" # Let the user override the test.
841 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
843 for ac_dir in $ac_dummy; do
844 test -z "$ac_dir" && ac_dir=.
845 if test -f $ac_dir/$ac_word; then
854 if test -n "$CC"; then
855 echo "$ac_t""$CC" 1>&6
857 echo "$ac_t""no" 1>&6
862 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
865 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
866 echo "configure:867: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
869 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
870 ac_cpp='$CPP $CPPFLAGS'
871 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
872 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
873 cross_compiling=$ac_cv_prog_cc_cross
875 cat > conftest.$ac_ext << EOF
877 #line 878 "configure"
878 #include "confdefs.h"
882 if { (eval echo configure:883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
883 ac_cv_prog_cc_works=yes
884 # If we can't run a trivial program, we are probably using a cross compiler.
885 if (./conftest; exit) 2>/dev/null; then
886 ac_cv_prog_cc_cross=no
888 ac_cv_prog_cc_cross=yes
891 echo "configure: failed program was:" >&5
892 cat conftest.$ac_ext >&5
893 ac_cv_prog_cc_works=no
897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
898 ac_cpp='$CPP $CPPFLAGS'
899 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
900 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
901 cross_compiling=$ac_cv_prog_cc_cross
903 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
904 if test $ac_cv_prog_cc_works = no; then
905 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
907 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
908 echo "configure:909: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
909 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
910 cross_compiling=$ac_cv_prog_cc_cross
912 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
913 echo "configure:914: checking whether we are using GNU C" >&5
914 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
915 echo $ac_n "(cached) $ac_c" 1>&6
917 cat > conftest.c <<EOF
922 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
929 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
931 if test $ac_cv_prog_gcc = yes; then
937 ac_test_CFLAGS="${CFLAGS+set}"
938 ac_save_CFLAGS="$CFLAGS"
940 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
941 echo "configure:942: checking whether ${CC-cc} accepts -g" >&5
942 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
943 echo $ac_n "(cached) $ac_c" 1>&6
945 echo 'void f(){}' > conftest.c
946 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
955 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
956 if test "$ac_test_CFLAGS" = set; then
957 CFLAGS="$ac_save_CFLAGS"
958 elif test $ac_cv_prog_cc_g = yes; then
959 if test "$GCC" = yes; then
965 if test "$GCC" = yes; then
973 if test -n "$auto_cflags"; then
974 if test -n "$GCC"; then
975 CFLAGS="$CFLAGS -O2 -Wall -Wno-implicit"
978 *hpux*) CFLAGS="$CFLAGS +O3" ;;
979 *ultrix* | *osf*) CFLAGS="$CFLAGS -O -Olimit 2000" ;;
980 *) CFLAGS="$CFLAGS -O" ;;
985 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
986 echo "configure:987: checking how to run the C preprocessor" >&5
987 # On Suns, sometimes $CPP names a directory.
988 if test -n "$CPP" && test -d "$CPP"; then
991 if test -z "$CPP"; then
992 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
995 # This must be in double quotes, not single quotes, because CPP may get
996 # substituted into the Makefile and "${CC-cc}" will confuse make.
998 # On the NeXT, cc -E runs the code through the compiler's parser,
999 # not just through cpp.
1000 cat > conftest.$ac_ext <<EOF
1001 #line 1002 "configure"
1002 #include "confdefs.h"
1006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1007 { (eval echo configure:1008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1009 if test -z "$ac_err"; then
1013 echo "configure: failed program was:" >&5
1014 cat conftest.$ac_ext >&5
1016 CPP="${CC-cc} -E -traditional-cpp"
1017 cat > conftest.$ac_ext <<EOF
1018 #line 1019 "configure"
1019 #include "confdefs.h"
1023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1024 { (eval echo configure:1025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1026 if test -z "$ac_err"; then
1030 echo "configure: failed program was:" >&5
1031 cat conftest.$ac_ext >&5
1033 CPP="${CC-cc} -nologo -E"
1034 cat > conftest.$ac_ext <<EOF
1035 #line 1036 "configure"
1036 #include "confdefs.h"
1040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1041 { (eval echo configure:1042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1043 if test -z "$ac_err"; then
1047 echo "configure: failed program was:" >&5
1048 cat conftest.$ac_ext >&5
1057 ac_cv_prog_CPP="$CPP"
1059 CPP="$ac_cv_prog_CPP"
1061 ac_cv_prog_CPP="$CPP"
1063 echo "$ac_t""$CPP" 1>&6
1065 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1066 echo "configure:1067: checking for AIX" >&5
1067 cat > conftest.$ac_ext <<EOF
1068 #line 1069 "configure"
1069 #include "confdefs.h"
1075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1076 egrep "yes" >/dev/null 2>&1; then
1078 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1079 #define _ALL_SOURCE 1
1084 echo "$ac_t""no" 1>&6
1091 *win32) exeext='.exe';;
1097 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1098 echo "configure:1099: checking for ${CC-cc} option to accept ANSI C" >&5
1099 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1102 am_cv_prog_cc_stdc=no
1104 # Don't try gcc -ansi; that turns off useful extensions and
1105 # breaks some systems' header files.
1106 # AIX -qlanglvl=ansi
1107 # Ultrix and OSF/1 -std1
1108 # HP-UX -Aa -D_HPUX_SOURCE
1109 # SVR4 -Xc -D__EXTENSIONS__
1110 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1112 CC="$ac_save_CC $ac_arg"
1113 cat > conftest.$ac_ext <<EOF
1114 #line 1115 "configure"
1115 #include "confdefs.h"
1116 #if !defined(__STDC__) || __STDC__ != 1
1119 /* DYNIX/ptx V4.1.3 can't compile sys/stat.h with -Xc -D__EXTENSIONS__. */
1121 # include <sys/types.h>
1122 # include <sys/stat.h>
1127 int test (int i, double x);
1128 struct s1 {int (*f) (int a);};
1129 struct s2 {int (*f) (double a);};
1132 if { (eval echo configure:1133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1134 am_cv_prog_cc_stdc="$ac_arg"; break
1136 echo "configure: failed program was:" >&5
1137 cat conftest.$ac_ext >&5
1145 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1146 case "x$am_cv_prog_cc_stdc" in
1148 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1153 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1154 echo "configure:1155: checking for function prototypes" >&5
1155 if test "$am_cv_prog_cc_stdc" != no; then
1156 echo "$ac_t""yes" 1>&6
1157 cat >> confdefs.h <<\EOF
1158 #define PROTOTYPES 1
1163 echo "$ac_t""no" 1>&6
1164 U=_ ANSI2KNR=./ansi2knr
1165 # Ensure some checks needed by ansi2knr itself.
1166 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1167 echo "configure:1168: checking for ANSI C header files" >&5
1168 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1169 echo $ac_n "(cached) $ac_c" 1>&6
1171 cat > conftest.$ac_ext <<EOF
1172 #line 1173 "configure"
1173 #include "confdefs.h"
1179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1180 { (eval echo configure:1181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1182 if test -z "$ac_err"; then
1184 ac_cv_header_stdc=yes
1187 echo "configure: failed program was:" >&5
1188 cat conftest.$ac_ext >&5
1190 ac_cv_header_stdc=no
1194 if test $ac_cv_header_stdc = yes; then
1195 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1196 cat > conftest.$ac_ext <<EOF
1197 #line 1198 "configure"
1198 #include "confdefs.h"
1201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1202 egrep "memchr" >/dev/null 2>&1; then
1206 ac_cv_header_stdc=no
1212 if test $ac_cv_header_stdc = yes; then
1213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1214 cat > conftest.$ac_ext <<EOF
1215 #line 1216 "configure"
1216 #include "confdefs.h"
1219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1220 egrep "free" >/dev/null 2>&1; then
1224 ac_cv_header_stdc=no
1230 if test $ac_cv_header_stdc = yes; then
1231 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1232 if test "$cross_compiling" = yes; then
1235 cat > conftest.$ac_ext <<EOF
1236 #line 1237 "configure"
1237 #include "confdefs.h"
1239 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1240 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1241 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1242 int main () { int i; for (i = 0; i < 256; i++)
1243 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1247 if { (eval echo configure:1248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1251 echo "configure: failed program was:" >&5
1252 cat conftest.$ac_ext >&5
1254 ac_cv_header_stdc=no
1262 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1263 if test $ac_cv_header_stdc = yes; then
1264 cat >> confdefs.h <<\EOF
1265 #define STDC_HEADERS 1
1270 for ac_hdr in string.h
1272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1274 echo "configure:1275: checking for $ac_hdr" >&5
1275 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1278 cat > conftest.$ac_ext <<EOF
1279 #line 1280 "configure"
1280 #include "confdefs.h"
1283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1284 { (eval echo configure:1285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1286 if test -z "$ac_err"; then
1288 eval "ac_cv_header_$ac_safe=yes"
1291 echo "configure: failed program was:" >&5
1292 cat conftest.$ac_ext >&5
1294 eval "ac_cv_header_$ac_safe=no"
1298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1299 echo "$ac_t""yes" 1>&6
1300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1301 cat >> confdefs.h <<EOF
1302 #define $ac_tr_hdr 1
1306 echo "$ac_t""no" 1>&6
1313 echo $ac_n "checking for working const""... $ac_c" 1>&6
1314 echo "configure:1315: checking for working const" >&5
1315 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1318 cat > conftest.$ac_ext <<EOF
1319 #line 1320 "configure"
1320 #include "confdefs.h"
1324 /* Ultrix mips cc rejects this. */
1325 typedef int charset[2]; const charset x;
1326 /* SunOS 4.1.1 cc rejects this. */
1327 char const *const *ccp;
1329 /* NEC SVR4.0.2 mips cc rejects this. */
1330 struct point {int x, y;};
1331 static struct point const zero = {0,0};
1332 /* AIX XL C 1.02.0.0 rejects this.
1333 It does not let you subtract one const X* pointer from another in an arm
1334 of an if-expression whose if-part is not a constant expression */
1335 const char *g = "string";
1336 ccp = &g + (g ? g-g : 0);
1337 /* HPUX 7.0 cc rejects these. */
1340 ccp = (char const *const *) p;
1341 { /* SCO 3.2v4 cc rejects this. */
1343 char const *s = 0 ? (char *) 0 : (char const *) 0;
1347 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1349 const int *foo = &x[0];
1352 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1353 typedef const int *iptr;
1357 { /* AIX XL C 1.02.0.0 rejects this saying
1358 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1359 struct s { int j; const int *ap[3]; };
1360 struct s *b; b->j = 5;
1362 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1368 if { (eval echo configure:1369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1372 echo "configure: failed program was:" >&5
1373 cat conftest.$ac_ext >&5
1380 echo "$ac_t""$ac_cv_c_const" 1>&6
1381 if test $ac_cv_c_const = no; then
1382 cat >> confdefs.h <<\EOF
1388 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1389 echo "configure:1390: checking for size_t" >&5
1390 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1393 cat > conftest.$ac_ext <<EOF
1394 #line 1395 "configure"
1395 #include "confdefs.h"
1396 #include <sys/types.h>
1402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1403 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1405 ac_cv_type_size_t=yes
1408 ac_cv_type_size_t=no
1413 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1414 if test $ac_cv_type_size_t = no; then
1415 cat >> confdefs.h <<\EOF
1416 #define size_t unsigned
1421 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1422 echo "configure:1423: checking for pid_t" >&5
1423 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1426 cat > conftest.$ac_ext <<EOF
1427 #line 1428 "configure"
1428 #include "confdefs.h"
1429 #include <sys/types.h>
1435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1436 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1438 ac_cv_type_pid_t=yes
1446 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1447 if test $ac_cv_type_pid_t = no; then
1448 cat >> confdefs.h <<\EOF
1454 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1455 echo "configure:1456: checking whether byte ordering is bigendian" >&5
1456 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 ac_cv_c_bigendian=unknown
1460 # See if sys/param.h defines the BYTE_ORDER macro.
1461 cat > conftest.$ac_ext <<EOF
1462 #line 1463 "configure"
1463 #include "confdefs.h"
1464 #include <sys/types.h>
1465 #include <sys/param.h>
1468 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1473 if { (eval echo configure:1474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1475 # It does; now see whether it defined to BIG_ENDIAN or not.
1476 cat > conftest.$ac_ext <<EOF
1477 #line 1478 "configure"
1478 #include "confdefs.h"
1479 #include <sys/types.h>
1480 #include <sys/param.h>
1483 #if BYTE_ORDER != BIG_ENDIAN
1488 if { (eval echo configure:1489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1490 ac_cv_c_bigendian=yes
1492 echo "configure: failed program was:" >&5
1493 cat conftest.$ac_ext >&5
1495 ac_cv_c_bigendian=no
1499 echo "configure: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1503 if test $ac_cv_c_bigendian = unknown; then
1504 if test "$cross_compiling" = yes; then
1505 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1507 cat > conftest.$ac_ext <<EOF
1508 #line 1509 "configure"
1509 #include "confdefs.h"
1511 /* Are we little or big endian? From Harbison&Steele. */
1515 char c[sizeof (long)];
1518 exit (u.c[sizeof (long) - 1] == 1);
1521 if { (eval echo configure:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1523 ac_cv_c_bigendian=no
1525 echo "configure: failed program was:" >&5
1526 cat conftest.$ac_ext >&5
1528 ac_cv_c_bigendian=yes
1536 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1537 if test $ac_cv_c_bigendian = yes; then
1538 cat >> confdefs.h <<\EOF
1539 #define WORDS_BIGENDIAN 1
1545 # Check size of long.
1546 echo $ac_n "checking size of long""... $ac_c" 1>&6
1547 echo "configure:1548: checking size of long" >&5
1548 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1549 echo $ac_n "(cached) $ac_c" 1>&6
1551 if test "$cross_compiling" = yes; then
1552 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1554 cat > conftest.$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1560 FILE *f=fopen("conftestval", "w");
1562 fprintf(f, "%d\n", sizeof(long));
1566 if { (eval echo configure:1567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1568 ac_cv_sizeof_long=`cat conftestval`
1570 echo "configure: failed program was:" >&5
1571 cat conftest.$ac_ext >&5
1579 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1580 cat >> confdefs.h <<EOF
1581 #define SIZEOF_LONG $ac_cv_sizeof_long
1585 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1586 echo "configure:1587: checking size of long long" >&5
1587 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1588 echo $ac_n "(cached) $ac_c" 1>&6
1590 if test "$cross_compiling" = yes; then
1591 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1593 cat > conftest.$ac_ext <<EOF
1594 #line 1595 "configure"
1595 #include "confdefs.h"
1599 FILE *f=fopen("conftestval", "w");
1601 fprintf(f, "%d\n", sizeof(long long));
1605 if { (eval echo configure:1606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1607 ac_cv_sizeof_long_long=`cat conftestval`
1609 echo "configure: failed program was:" >&5
1610 cat conftest.$ac_ext >&5
1612 ac_cv_sizeof_long_long=0
1618 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1619 cat >> confdefs.h <<EOF
1620 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1625 for ac_hdr in string.h stdarg.h unistd.h sys/time.h utime.h sys/utime.h
1627 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1628 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1629 echo "configure:1630: checking for $ac_hdr" >&5
1630 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1631 echo $ac_n "(cached) $ac_c" 1>&6
1633 cat > conftest.$ac_ext <<EOF
1634 #line 1635 "configure"
1635 #include "confdefs.h"
1638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1639 { (eval echo configure:1640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1641 if test -z "$ac_err"; then
1643 eval "ac_cv_header_$ac_safe=yes"
1646 echo "configure: failed program was:" >&5
1647 cat conftest.$ac_ext >&5
1649 eval "ac_cv_header_$ac_safe=no"
1653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1654 echo "$ac_t""yes" 1>&6
1655 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1656 cat >> confdefs.h <<EOF
1657 #define $ac_tr_hdr 1
1661 echo "$ac_t""no" 1>&6
1665 for ac_hdr in sys/select.h sys/utsname.h pwd.h signal.h
1667 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1668 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1669 echo "configure:1670: checking for $ac_hdr" >&5
1670 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1673 cat > conftest.$ac_ext <<EOF
1674 #line 1675 "configure"
1675 #include "confdefs.h"
1678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1679 { (eval echo configure:1680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1681 if test -z "$ac_err"; then
1683 eval "ac_cv_header_$ac_safe=yes"
1686 echo "configure: failed program was:" >&5
1687 cat conftest.$ac_ext >&5
1689 eval "ac_cv_header_$ac_safe=no"
1693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1694 echo "$ac_t""yes" 1>&6
1695 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1696 cat >> confdefs.h <<EOF
1697 #define $ac_tr_hdr 1
1701 echo "$ac_t""no" 1>&6
1705 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1706 echo "configure:1707: checking whether time.h and sys/time.h may both be included" >&5
1707 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1710 cat > conftest.$ac_ext <<EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1713 #include <sys/types.h>
1714 #include <sys/time.h>
1720 if { (eval echo configure:1721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1722 ac_cv_header_time=yes
1724 echo "configure: failed program was:" >&5
1725 cat conftest.$ac_ext >&5
1727 ac_cv_header_time=no
1732 echo "$ac_t""$ac_cv_header_time" 1>&6
1733 if test $ac_cv_header_time = yes; then
1734 cat >> confdefs.h <<\EOF
1735 #define TIME_WITH_SYS_TIME 1
1741 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1742 echo "configure:1743: checking return type of signal handlers" >&5
1743 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1746 cat > conftest.$ac_ext <<EOF
1747 #line 1748 "configure"
1748 #include "confdefs.h"
1749 #include <sys/types.h>
1755 extern "C" void (*signal (int, void (*)(int)))(int);
1757 void (*signal ()) ();
1764 if { (eval echo configure:1765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1766 ac_cv_type_signal=void
1768 echo "configure: failed program was:" >&5
1769 cat conftest.$ac_ext >&5
1771 ac_cv_type_signal=int
1776 echo "$ac_t""$ac_cv_type_signal" 1>&6
1777 cat >> confdefs.h <<EOF
1778 #define RETSIGTYPE $ac_cv_type_signal
1783 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
1784 echo "configure:1785: checking for struct utimbuf" >&5
1785 if test x"$ac_cv_header_utime_h" = xyes; then
1786 cat > conftest.$ac_ext <<EOF
1787 #line 1788 "configure"
1788 #include "confdefs.h"
1791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1792 egrep "struct[ ]+utimbuf" >/dev/null 2>&1; then
1794 cat >> confdefs.h <<\EOF
1795 #define HAVE_STRUCT_UTIMBUF 1
1798 echo "$ac_t""yes" 1>&6
1801 echo "$ac_t""no" 1>&6
1806 echo "$ac_t""no" 1>&6
1809 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1810 # for constant arguments. Useless!
1811 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1812 echo "configure:1813: checking for working alloca.h" >&5
1813 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1816 cat > conftest.$ac_ext <<EOF
1817 #line 1818 "configure"
1818 #include "confdefs.h"
1821 char *p = alloca(2 * sizeof(int));
1824 if { (eval echo configure:1825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1826 ac_cv_header_alloca_h=yes
1828 echo "configure: failed program was:" >&5
1829 cat conftest.$ac_ext >&5
1831 ac_cv_header_alloca_h=no
1836 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1837 if test $ac_cv_header_alloca_h = yes; then
1838 cat >> confdefs.h <<\EOF
1839 #define HAVE_ALLOCA_H 1
1844 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1845 echo "configure:1846: checking for alloca" >&5
1846 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1849 cat > conftest.$ac_ext <<EOF
1850 #line 1851 "configure"
1851 #include "confdefs.h"
1854 # define alloca __builtin_alloca
1857 # include <malloc.h>
1858 # define alloca _alloca
1861 # include <alloca.h>
1866 # ifndef alloca /* predefined by HP cc +Olibcalls */
1875 char *p = (char *) alloca(1);
1878 if { (eval echo configure:1879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1880 ac_cv_func_alloca_works=yes
1882 echo "configure: failed program was:" >&5
1883 cat conftest.$ac_ext >&5
1885 ac_cv_func_alloca_works=no
1890 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1891 if test $ac_cv_func_alloca_works = yes; then
1892 cat >> confdefs.h <<\EOF
1893 #define HAVE_ALLOCA 1
1898 if test $ac_cv_func_alloca_works = no; then
1899 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1900 # that cause trouble. Some versions do not even contain alloca or
1901 # contain a buggy version. If you still want to use their alloca,
1902 # use ar to extract alloca.o from them instead of compiling alloca.c.
1903 ALLOCA=alloca.${ac_objext}
1904 cat >> confdefs.h <<\EOF
1909 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1910 echo "configure:1911: checking whether alloca needs Cray hooks" >&5
1911 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1914 cat > conftest.$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1917 #if defined(CRAY) && ! defined(CRAY2)
1924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1925 egrep "webecray" >/dev/null 2>&1; then
1936 echo "$ac_t""$ac_cv_os_cray" 1>&6
1937 if test $ac_cv_os_cray = yes; then
1938 for ac_func in _getb67 GETB67 getb67; do
1939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1940 echo "configure:1941: checking for $ac_func" >&5
1941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1942 echo $ac_n "(cached) $ac_c" 1>&6
1944 cat > conftest.$ac_ext <<EOF
1945 #line 1946 "configure"
1946 #include "confdefs.h"
1947 /* System header to define __stub macros and hopefully few prototypes,
1948 which can conflict with char $ac_func(); below. */
1950 /* Override any gcc2 internal prototype to avoid an error. */
1951 /* We use char because int might match the return type of a gcc2
1952 builtin and then its argument prototype would still apply. */
1957 /* The GNU C library defines this for functions which it implements
1958 to always fail with ENOSYS. Some functions are actually named
1959 something starting with __ and the normal name is an alias. */
1960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1968 if { (eval echo configure:1969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1970 eval "ac_cv_func_$ac_func=yes"
1972 echo "configure: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1975 eval "ac_cv_func_$ac_func=no"
1980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1981 echo "$ac_t""yes" 1>&6
1982 cat >> confdefs.h <<EOF
1983 #define CRAY_STACKSEG_END $ac_func
1988 echo "$ac_t""no" 1>&6
1994 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1995 echo "configure:1996: checking stack direction for C alloca" >&5
1996 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1999 if test "$cross_compiling" = yes; then
2000 ac_cv_c_stack_direction=0
2002 cat > conftest.$ac_ext <<EOF
2003 #line 2004 "configure"
2004 #include "confdefs.h"
2005 find_stack_direction ()
2007 static char *addr = 0;
2012 return find_stack_direction ();
2015 return (&dummy > addr) ? 1 : -1;
2019 exit (find_stack_direction() < 0);
2022 if { (eval echo configure:2023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2024 ac_cv_c_stack_direction=1
2026 echo "configure: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2029 ac_cv_c_stack_direction=-1
2036 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2037 cat >> confdefs.h <<EOF
2038 #define STACK_DIRECTION $ac_cv_c_stack_direction
2043 for ac_func in strdup strstr strcasecmp strncasecmp
2045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2046 echo "configure:2047: checking for $ac_func" >&5
2047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2048 echo $ac_n "(cached) $ac_c" 1>&6
2050 cat > conftest.$ac_ext <<EOF
2051 #line 2052 "configure"
2052 #include "confdefs.h"
2053 /* System header to define __stub macros and hopefully few prototypes,
2054 which can conflict with char $ac_func(); below. */
2056 /* Override any gcc2 internal prototype to avoid an error. */
2057 /* We use char because int might match the return type of a gcc2
2058 builtin and then its argument prototype would still apply. */
2063 /* The GNU C library defines this for functions which it implements
2064 to always fail with ENOSYS. Some functions are actually named
2065 something starting with __ and the normal name is an alias. */
2066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2074 if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2076 eval "ac_cv_func_$ac_func=yes"
2078 echo "configure: failed program was:" >&5
2079 cat conftest.$ac_ext >&5
2081 eval "ac_cv_func_$ac_func=no"
2086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2087 echo "$ac_t""yes" 1>&6
2088 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2089 cat >> confdefs.h <<EOF
2090 #define $ac_tr_func 1
2094 echo "$ac_t""no" 1>&6
2098 for ac_func in gettimeofday mktime strptime
2100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2101 echo "configure:2102: checking for $ac_func" >&5
2102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2105 cat > conftest.$ac_ext <<EOF
2106 #line 2107 "configure"
2107 #include "confdefs.h"
2108 /* System header to define __stub macros and hopefully few prototypes,
2109 which can conflict with char $ac_func(); below. */
2111 /* Override any gcc2 internal prototype to avoid an error. */
2112 /* We use char because int might match the return type of a gcc2
2113 builtin and then its argument prototype would still apply. */
2118 /* The GNU C library defines this for functions which it implements
2119 to always fail with ENOSYS. Some functions are actually named
2120 something starting with __ and the normal name is an alias. */
2121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2129 if { (eval echo configure:2130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2131 eval "ac_cv_func_$ac_func=yes"
2133 echo "configure: failed program was:" >&5
2134 cat conftest.$ac_ext >&5
2136 eval "ac_cv_func_$ac_func=no"
2141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2142 echo "$ac_t""yes" 1>&6
2143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2144 cat >> confdefs.h <<EOF
2145 #define $ac_tr_func 1
2149 echo "$ac_t""no" 1>&6
2153 for ac_func in strerror vsnprintf select signal symlink access isatty
2155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2156 echo "configure:2157: checking for $ac_func" >&5
2157 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2158 echo $ac_n "(cached) $ac_c" 1>&6
2160 cat > conftest.$ac_ext <<EOF
2161 #line 2162 "configure"
2162 #include "confdefs.h"
2163 /* System header to define __stub macros and hopefully few prototypes,
2164 which can conflict with char $ac_func(); below. */
2166 /* Override any gcc2 internal prototype to avoid an error. */
2167 /* We use char because int might match the return type of a gcc2
2168 builtin and then its argument prototype would still apply. */
2173 /* The GNU C library defines this for functions which it implements
2174 to always fail with ENOSYS. Some functions are actually named
2175 something starting with __ and the normal name is an alias. */
2176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2184 if { (eval echo configure:2185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2186 eval "ac_cv_func_$ac_func=yes"
2188 echo "configure: failed program was:" >&5
2189 cat conftest.$ac_ext >&5
2191 eval "ac_cv_func_$ac_func=no"
2196 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2197 echo "$ac_t""yes" 1>&6
2198 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2199 cat >> confdefs.h <<EOF
2200 #define $ac_tr_func 1
2204 echo "$ac_t""no" 1>&6
2208 for ac_func in uname gethostname
2210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2211 echo "configure:2212: checking for $ac_func" >&5
2212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2213 echo $ac_n "(cached) $ac_c" 1>&6
2215 cat > conftest.$ac_ext <<EOF
2216 #line 2217 "configure"
2217 #include "confdefs.h"
2218 /* System header to define __stub macros and hopefully few prototypes,
2219 which can conflict with char $ac_func(); below. */
2221 /* Override any gcc2 internal prototype to avoid an error. */
2222 /* We use char because int might match the return type of a gcc2
2223 builtin and then its argument prototype would still apply. */
2228 /* The GNU C library defines this for functions which it implements
2229 to always fail with ENOSYS. Some functions are actually named
2230 something starting with __ and the normal name is an alias. */
2231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2239 if { (eval echo configure:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2241 eval "ac_cv_func_$ac_func=yes"
2243 echo "configure: failed program was:" >&5
2244 cat conftest.$ac_ext >&5
2246 eval "ac_cv_func_$ac_func=no"
2251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2252 echo "$ac_t""yes" 1>&6
2253 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2254 cat >> confdefs.h <<EOF
2255 #define $ac_tr_func 1
2259 echo "$ac_t""no" 1>&6
2264 for ac_func in gethostbyname
2266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2267 echo "configure:2268: checking for $ac_func" >&5
2268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2271 cat > conftest.$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2274 /* System header to define __stub macros and hopefully few prototypes,
2275 which can conflict with char $ac_func(); below. */
2277 /* Override any gcc2 internal prototype to avoid an error. */
2278 /* We use char because int might match the return type of a gcc2
2279 builtin and then its argument prototype would still apply. */
2284 /* The GNU C library defines this for functions which it implements
2285 to always fail with ENOSYS. Some functions are actually named
2286 something starting with __ and the normal name is an alias. */
2287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2295 if { (eval echo configure:2296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2297 eval "ac_cv_func_$ac_func=yes"
2299 echo "configure: failed program was:" >&5
2300 cat conftest.$ac_ext >&5
2302 eval "ac_cv_func_$ac_func=no"
2307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2308 echo "$ac_t""yes" 1>&6
2309 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2310 cat >> confdefs.h <<EOF
2311 #define $ac_tr_func 1
2315 echo "$ac_t""no" 1>&6
2316 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2317 echo "configure:2318: checking for gethostbyname in -lnsl" >&5
2318 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2319 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2320 echo $ac_n "(cached) $ac_c" 1>&6
2322 ac_save_LIBS="$LIBS"
2324 cat > conftest.$ac_ext <<EOF
2325 #line 2326 "configure"
2326 #include "confdefs.h"
2327 /* Override any gcc2 internal prototype to avoid an error. */
2328 /* We use char because int might match the return type of a gcc2
2329 builtin and then its argument prototype would still apply. */
2330 char gethostbyname();
2336 if { (eval echo configure:2337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2338 eval "ac_cv_lib_$ac_lib_var=yes"
2340 echo "configure: failed program was:" >&5
2341 cat conftest.$ac_ext >&5
2343 eval "ac_cv_lib_$ac_lib_var=no"
2346 LIBS="$ac_save_LIBS"
2349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2350 echo "$ac_t""yes" 1>&6
2351 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2352 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2353 cat >> confdefs.h <<EOF
2354 #define $ac_tr_lib 1
2360 echo "$ac_t""no" 1>&6
2369 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2370 echo "configure:2371: checking for socket in -lsocket" >&5
2371 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2373 echo $ac_n "(cached) $ac_c" 1>&6
2375 ac_save_LIBS="$LIBS"
2376 LIBS="-lsocket $LIBS"
2377 cat > conftest.$ac_ext <<EOF
2378 #line 2379 "configure"
2379 #include "confdefs.h"
2380 /* Override any gcc2 internal prototype to avoid an error. */
2381 /* We use char because int might match the return type of a gcc2
2382 builtin and then its argument prototype would still apply. */
2389 if { (eval echo configure:2390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2391 eval "ac_cv_lib_$ac_lib_var=yes"
2393 echo "configure: failed program was:" >&5
2394 cat conftest.$ac_ext >&5
2396 eval "ac_cv_lib_$ac_lib_var=no"
2399 LIBS="$ac_save_LIBS"
2402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2403 echo "$ac_t""yes" 1>&6
2404 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2405 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2406 cat >> confdefs.h <<EOF
2407 #define $ac_tr_lib 1
2410 LIBS="-lsocket $LIBS"
2413 echo "$ac_t""no" 1>&6
2417 if test "x${with_socks}" = xyes
2419 echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
2420 echo "configure:2421: checking for main in -lresolv" >&5
2421 ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'`
2422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2423 echo $ac_n "(cached) $ac_c" 1>&6
2425 ac_save_LIBS="$LIBS"
2426 LIBS="-lresolv $LIBS"
2427 cat > conftest.$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2435 if { (eval echo configure:2436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2437 eval "ac_cv_lib_$ac_lib_var=yes"
2439 echo "configure: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2442 eval "ac_cv_lib_$ac_lib_var=no"
2445 LIBS="$ac_save_LIBS"
2448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2450 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2451 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2452 cat >> confdefs.h <<EOF
2453 #define $ac_tr_lib 1
2456 LIBS="-lresolv $LIBS"
2459 echo "$ac_t""no" 1>&6
2462 echo $ac_n "checking for Rconnect in -lsocks""... $ac_c" 1>&6
2463 echo "configure:2464: checking for Rconnect in -lsocks" >&5
2464 ac_lib_var=`echo socks'_'Rconnect | sed 'y%./+-%__p_%'`
2465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2468 ac_save_LIBS="$LIBS"
2469 LIBS="-lsocks $LIBS"
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2473 /* Override any gcc2 internal prototype to avoid an error. */
2474 /* We use char because int might match the return type of a gcc2
2475 builtin and then its argument prototype would still apply. */
2482 if { (eval echo configure:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2484 eval "ac_cv_lib_$ac_lib_var=yes"
2486 echo "configure: failed program was:" >&5
2487 cat conftest.$ac_ext >&5
2489 eval "ac_cv_lib_$ac_lib_var=no"
2492 LIBS="$ac_save_LIBS"
2495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2496 echo "$ac_t""yes" 1>&6
2497 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2498 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2499 cat >> confdefs.h <<EOF
2500 #define $ac_tr_lib 1
2503 LIBS="-lsocks $LIBS"
2506 echo "$ac_t""no" 1>&6
2511 ALL_LINGUAS="cs de hr it no pl pt_BR ru"
2513 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2514 echo "configure:2515: checking whether NLS is requested" >&5
2515 # Check whether --enable-nls or --disable-nls was given.
2516 if test "${enable_nls+set}" = set; then
2517 enableval="$enable_nls"
2523 echo "$ac_t""$HAVE_NLS" 1>&6
2526 if test x"$HAVE_NLS" = xyes; then
2527 echo "$ac_t"""language catalogs: $ALL_LINGUAS"" 1>&6
2528 # Extract the first word of "msgfmt", so it can be a program name with args.
2529 set dummy msgfmt; ac_word=$2
2530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2531 echo "configure:2532: checking for $ac_word" >&5
2532 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2533 echo $ac_n "(cached) $ac_c" 1>&6
2537 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2541 for ac_dir in $PATH; do
2542 test -z "$ac_dir" && ac_dir=.
2543 if test -f $ac_dir/$ac_word; then
2544 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2545 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2551 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2555 MSGFMT="$ac_cv_path_MSGFMT"
2556 if test -n "$MSGFMT"; then
2557 echo "$ac_t""$MSGFMT" 1>&6
2559 echo "$ac_t""no" 1>&6
2562 # Extract the first word of "xgettext", so it can be a program name with args.
2563 set dummy xgettext; ac_word=$2
2564 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2565 echo "configure:2566: checking for $ac_word" >&5
2566 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2567 echo $ac_n "(cached) $ac_c" 1>&6
2571 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2575 for ac_dir in $PATH; do
2576 test -z "$ac_dir" && ac_dir=.
2577 if test -f $ac_dir/$ac_word; then
2578 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2579 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2585 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2589 XGETTEXT="$ac_cv_path_XGETTEXT"
2590 if test -n "$XGETTEXT"; then
2591 echo "$ac_t""$XGETTEXT" 1>&6
2593 echo "$ac_t""no" 1>&6
2597 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2598 set dummy gmsgfmt; ac_word=$2
2599 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2600 echo "configure:2601: checking for $ac_word" >&5
2601 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2606 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2609 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2614 for ac_dir in $ac_dummy; do
2615 test -z "$ac_dir" && ac_dir=.
2616 if test -f $ac_dir/$ac_word; then
2617 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2622 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2626 GMSGFMT="$ac_cv_path_GMSGFMT"
2627 if test -n "$GMSGFMT"; then
2628 echo "$ac_t""$GMSGFMT" 1>&6
2630 echo "$ac_t""no" 1>&6
2637 if test "$XGETTEXT" != ":"; then
2638 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2641 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2646 for ac_hdr in locale.h libintl.h
2648 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2649 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2650 echo "configure:2651: checking for $ac_hdr" >&5
2651 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2652 echo $ac_n "(cached) $ac_c" 1>&6
2654 cat > conftest.$ac_ext <<EOF
2655 #line 2656 "configure"
2656 #include "confdefs.h"
2659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2660 { (eval echo configure:2661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2661 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2662 if test -z "$ac_err"; then
2664 eval "ac_cv_header_$ac_safe=yes"
2667 echo "configure: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2670 eval "ac_cv_header_$ac_safe=no"
2674 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2675 echo "$ac_t""yes" 1>&6
2676 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2677 cat >> confdefs.h <<EOF
2678 #define $ac_tr_hdr 1
2682 echo "$ac_t""no" 1>&6
2687 for ac_func in gettext
2689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2690 echo "configure:2691: checking for $ac_func" >&5
2691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2692 echo $ac_n "(cached) $ac_c" 1>&6
2694 cat > conftest.$ac_ext <<EOF
2695 #line 2696 "configure"
2696 #include "confdefs.h"
2697 /* System header to define __stub macros and hopefully few prototypes,
2698 which can conflict with char $ac_func(); below. */
2700 /* Override any gcc2 internal prototype to avoid an error. */
2701 /* We use char because int might match the return type of a gcc2
2702 builtin and then its argument prototype would still apply. */
2707 /* The GNU C library defines this for functions which it implements
2708 to always fail with ENOSYS. Some functions are actually named
2709 something starting with __ and the normal name is an alias. */
2710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2718 if { (eval echo configure:2719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2720 eval "ac_cv_func_$ac_func=yes"
2722 echo "configure: failed program was:" >&5
2723 cat conftest.$ac_ext >&5
2725 eval "ac_cv_func_$ac_func=no"
2730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2731 echo "$ac_t""yes" 1>&6
2732 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2733 cat >> confdefs.h <<EOF
2734 #define $ac_tr_func 1
2738 echo "$ac_t""no" 1>&6
2739 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2740 echo "configure:2741: checking for gettext in -lintl" >&5
2741 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2742 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2745 ac_save_LIBS="$LIBS"
2747 cat > conftest.$ac_ext <<EOF
2748 #line 2749 "configure"
2749 #include "confdefs.h"
2750 /* Override any gcc2 internal prototype to avoid an error. */
2751 /* We use char because int might match the return type of a gcc2
2752 builtin and then its argument prototype would still apply. */
2759 if { (eval echo configure:2760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2761 eval "ac_cv_lib_$ac_lib_var=yes"
2763 echo "configure: failed program was:" >&5
2764 cat conftest.$ac_ext >&5
2766 eval "ac_cv_lib_$ac_lib_var=no"
2769 LIBS="$ac_save_LIBS"
2772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2773 echo "$ac_t""yes" 1>&6
2776 cat >> confdefs.h <<\EOF
2777 #define HAVE_GETTEXT 1
2782 echo "$ac_t""no" 1>&6
2784 echo "$ac_t""gettext not found; disabling NLS" 1>&6
2794 for lang in $ALL_LINGUAS; do
2795 GMOFILES="$GMOFILES $lang.gmo"
2796 POFILES="$POFILES $lang.po"
2798 for lang in $ALL_LINGUAS; do
2799 CATALOGS="$CATALOGS ${lang}${CATOBJEXT}"
2813 if test "x$HAVE_NLS" = xyes; then
2814 cat >> confdefs.h <<\EOF
2822 for ac_prog in makeinfo emacs xemacs
2824 # Extract the first word of "$ac_prog", so it can be a program name with args.
2825 set dummy $ac_prog; ac_word=$2
2826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2827 echo "configure:2828: checking for $ac_word" >&5
2828 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 if test -n "$MAKEINFO"; then
2832 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2836 for ac_dir in $ac_dummy; do
2837 test -z "$ac_dir" && ac_dir=.
2838 if test -f $ac_dir/$ac_word; then
2839 ac_cv_prog_MAKEINFO="$ac_prog"
2846 MAKEINFO="$ac_cv_prog_MAKEINFO"
2847 if test -n "$MAKEINFO"; then
2848 echo "$ac_t""$MAKEINFO" 1>&6
2850 echo "$ac_t""no" 1>&6
2853 test -n "$MAKEINFO" && break
2857 case "${MAKEINFO}" in
2858 *makeinfo) MAKEINFO="${MAKEINFO} \$(srcdir)/wget.texi" ;;
2859 *emacs | *xemacs) MAKEINFO="${MAKEINFO} -batch -q -no-site-file -eval '(find-file \"\$(srcdir)/wget.texi\")' -l texinfmt -f texinfo-format-buffer -f save-buffer" ;;
2860 *) MAKEINFO="makeinfo \$(srcdir)/wget.texi" ;;
2864 cat > confcache <<\EOF
2865 # This file is a shell script that caches the results of configure
2866 # tests run on this system so they can be shared between configure
2867 # scripts and configure runs. It is not useful on other systems.
2868 # If it contains results you don't want to keep, you may remove or edit it.
2870 # By default, configure uses ./config.cache as the cache file,
2871 # creating it if it does not exist already. You can give configure
2872 # the --cache-file=FILE option to use a different cache file; that is
2873 # what configure does when it calls configure scripts in
2874 # subdirectories, so they share the cache.
2875 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2876 # config.status only pays attention to the cache file if you give it the
2877 # --recheck option to rerun configure.
2880 # The following way of writing the cache mishandles newlines in values,
2881 # but we know of no workaround that is simple, portable, and efficient.
2882 # So, don't put newlines in cache variables' values.
2883 # Ultrix sh set writes to stderr and can't be redirected directly,
2884 # and sets the high bit in the cache file unless we assign to the vars.
2886 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2888 # `set' does not quote correctly, so add quotes (double-quote substitution
2889 # turns \\\\ into \\, and sed turns \\ into \).
2891 -e "s/'/'\\\\''/g" \
2892 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2895 # `set' quotes correctly as required by POSIX, so do not add quotes.
2896 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2899 if cmp -s $cache_file confcache; then
2902 if test -w $cache_file; then
2903 echo "updating cache $cache_file"
2904 cat confcache > $cache_file
2906 echo "not updating unwritable cache $cache_file"
2911 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2913 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2914 # Let make expand exec_prefix.
2915 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2917 # Any assignment to VPATH causes Sun make to only execute
2918 # the first set of double-colon rules, so remove it if not needed.
2919 # If there is a colon in the path, we need to keep it.
2920 if test "x$srcdir" = x.; then
2921 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2924 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2926 DEFS=-DHAVE_CONFIG_H
2928 # Without the "./", some shells look in PATH for config.status.
2929 : ${CONFIG_STATUS=./config.status}
2931 echo creating $CONFIG_STATUS
2932 rm -f $CONFIG_STATUS
2933 cat > $CONFIG_STATUS <<EOF
2935 # Generated automatically by configure.
2936 # Run this file to recreate the current configuration.
2937 # This directory was configured as follows,
2938 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2940 # $0 $ac_configure_args
2942 # Compiler output produced by configure, useful for debugging
2943 # configure, is in ./config.log if it exists.
2945 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2948 case "\$ac_option" in
2949 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2950 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2951 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2952 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2953 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2955 -help | --help | --hel | --he | --h)
2956 echo "\$ac_cs_usage"; exit 0 ;;
2957 *) echo "\$ac_cs_usage"; exit 1 ;;
2961 ac_given_srcdir=$srcdir
2962 ac_given_INSTALL="$INSTALL"
2964 trap 'rm -fr `echo "Makefile src/Makefile doc/Makefile util/Makefile po/Makefile.in src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2966 cat >> $CONFIG_STATUS <<EOF
2968 # Protect against being on the right side of a sed subst in config.status.
2969 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2970 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2974 s%@CFLAGS@%$CFLAGS%g
2975 s%@CPPFLAGS@%$CPPFLAGS%g
2976 s%@CXXFLAGS@%$CXXFLAGS%g
2977 s%@FFLAGS@%$FFLAGS%g
2979 s%@LDFLAGS@%$LDFLAGS%g
2981 s%@exec_prefix@%$exec_prefix%g
2982 s%@prefix@%$prefix%g
2983 s%@program_transform_name@%$program_transform_name%g
2984 s%@bindir@%$bindir%g
2985 s%@sbindir@%$sbindir%g
2986 s%@libexecdir@%$libexecdir%g
2987 s%@datadir@%$datadir%g
2988 s%@sysconfdir@%$sysconfdir%g
2989 s%@sharedstatedir@%$sharedstatedir%g
2990 s%@localstatedir@%$localstatedir%g
2991 s%@libdir@%$libdir%g
2992 s%@includedir@%$includedir%g
2993 s%@oldincludedir@%$oldincludedir%g
2994 s%@infodir@%$infodir%g
2995 s%@mandir@%$mandir%g
2996 s%@VERSION@%$VERSION%g
2997 s%@PACKAGE@%$PACKAGE%g
2999 s%@host_alias@%$host_alias%g
3000 s%@host_cpu@%$host_cpu%g
3001 s%@host_vendor@%$host_vendor%g
3002 s%@host_os@%$host_os%g
3003 s%@MD5_OBJ@%$MD5_OBJ%g
3004 s%@OPIE_OBJ@%$OPIE_OBJ%g
3005 s%@SET_MAKE@%$SET_MAKE%g
3006 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3007 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3008 s%@INSTALL_DATA@%$INSTALL_DATA%g
3011 s%@exeext@%$exeext%g
3013 s%@ANSI2KNR@%$ANSI2KNR%g
3014 s%@ALLOCA@%$ALLOCA%g
3015 s%@MSGFMT@%$MSGFMT%g
3016 s%@XGETTEXT@%$XGETTEXT%g
3017 s%@GMSGFMT@%$GMSGFMT%g
3018 s%@CATALOGS@%$CATALOGS%g
3019 s%@CATOBJEXT@%$CATOBJEXT%g
3020 s%@DATADIRNAME@%$DATADIRNAME%g
3021 s%@GMOFILES@%$GMOFILES%g
3022 s%@INSTOBJEXT@%$INSTOBJEXT%g
3023 s%@INTLLIBS@%$INTLLIBS%g
3024 s%@POFILES@%$POFILES%g
3025 s%@HAVE_NLS@%$HAVE_NLS%g
3026 s%@USE_NLS@%$USE_NLS%g
3027 s%@MAKEINFO@%$MAKEINFO%g
3032 cat >> $CONFIG_STATUS <<\EOF
3034 # Split the substitutions into bite-sized pieces for seds with
3035 # small command number limits, like on Digital OSF/1 and HP-UX.
3036 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3037 ac_file=1 # Number of current file.
3038 ac_beg=1 # First line for current file.
3039 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3042 while $ac_more_lines; do
3043 if test $ac_beg -gt 1; then
3044 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3046 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3048 if test ! -s conftest.s$ac_file; then
3050 rm -f conftest.s$ac_file
3052 if test -z "$ac_sed_cmds"; then
3053 ac_sed_cmds="sed -f conftest.s$ac_file"
3055 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3057 ac_file=`expr $ac_file + 1`
3059 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3062 if test -z "$ac_sed_cmds"; then
3067 cat >> $CONFIG_STATUS <<EOF
3069 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile doc/Makefile util/Makefile po/Makefile.in"}
3071 cat >> $CONFIG_STATUS <<\EOF
3072 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3073 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3075 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3076 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3077 *) ac_file_in="${ac_file}.in" ;;
3080 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3082 # Remove last slash and all that follows it. Not all systems have dirname.
3083 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3084 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3085 # The file is in a subdirectory.
3086 test ! -d "$ac_dir" && mkdir "$ac_dir"
3087 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3088 # A "../" for each directory in $ac_dir_suffix.
3089 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3091 ac_dir_suffix= ac_dots=
3094 case "$ac_given_srcdir" in
3096 if test -z "$ac_dots"; then top_srcdir=.
3097 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3098 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3100 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3101 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3104 case "$ac_given_INSTALL" in
3105 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3106 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3109 echo creating "$ac_file"
3111 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3113 *Makefile*) ac_comsub="1i\\
3114 # $configure_input" ;;
3118 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3120 s%@configure_input@%$configure_input%g
3121 s%@srcdir@%$srcdir%g
3122 s%@top_srcdir@%$top_srcdir%g
3123 s%@INSTALL@%$INSTALL%g
3124 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3128 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3129 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3131 # ac_d sets the value in "#define NAME VALUE" lines.
3132 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3133 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3136 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3137 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3138 ac_uB='\([ ]\)%\1#\2define\3'
3141 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3142 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3143 ac_eB='$%\1#\2define\3'
3147 if test "${CONFIG_HEADERS+set}" != set; then
3149 cat >> $CONFIG_STATUS <<EOF
3150 CONFIG_HEADERS="src/config.h"
3152 cat >> $CONFIG_STATUS <<\EOF
3154 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3155 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3157 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3158 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3159 *) ac_file_in="${ac_file}.in" ;;
3162 echo creating $ac_file
3164 rm -f conftest.frag conftest.in conftest.out
3165 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3166 cat $ac_file_inputs > conftest.in
3170 # Transform confdefs.h into a sed script conftest.vals that substitutes
3171 # the proper values into config.h.in to produce config.h. And first:
3172 # Protect against being on the right side of a sed subst in config.status.
3173 # Protect against being in an unquoted here document in config.status.
3175 cat > conftest.hdr <<\EOF
3178 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3182 sed -n -f conftest.hdr confdefs.h > conftest.vals
3185 # This sed command replaces #undef with comments. This is necessary, for
3186 # example, in the case of _POSIX_SOURCE, which is predefined and required
3187 # on some systems where configure will not decide to define it.
3188 cat >> conftest.vals <<\EOF
3189 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3192 # Break up conftest.vals because some shells have a limit on
3193 # the size of here documents, and old seds have small limits too.
3198 ac_lines=`grep -c . conftest.vals`
3199 # grep -c gives empty output for an empty file on some AIX systems.
3200 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3201 # Write a limited-size here document to conftest.frag.
3202 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3203 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3205 sed -f conftest.frag conftest.in > conftest.out
3207 mv conftest.out conftest.in
3209 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3211 mv conftest.tail conftest.vals
3215 cat >> $CONFIG_STATUS <<\EOF
3216 rm -f conftest.frag conftest.h
3217 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3218 cat conftest.in >> conftest.h
3220 if cmp -s $ac_file conftest.h 2>/dev/null; then
3221 echo "$ac_file is unchanged"
3224 # Remove last slash and all that follows it. Not all systems have dirname.
3225 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3226 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3227 # The file is in a subdirectory.
3228 test ! -d "$ac_dir" && mkdir "$ac_dir"
3231 mv conftest.h $ac_file
3236 cat >> $CONFIG_STATUS <<EOF
3239 cat >> $CONFIG_STATUS <<\EOF
3240 srcdir=$ac_given_srcdir # Advanced autoconf hackery
3241 if test "x$srcdir" != "x."; then
3242 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3243 posrcprefix="$srcdir/"
3245 posrcprefix="../$srcdir/"
3251 echo "generating po/POTFILES from $srcdir/po/POTFILES.in"
3252 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," \
3253 -e "\$s/\(.*\) \\\\/\1/" \
3254 < $srcdir/po/POTFILES.in > po/POTFILES
3255 echo "creating po/Makefile"
3256 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
3258 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3261 chmod +x $CONFIG_STATUS
3262 rm -fr confdefs* $ac_clean_files
3263 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1