3 # From configure.in Revision: 1.17
14 # Guess values for system-dependent variables and create Makefiles.
15 # Generated automatically using autoconf version 2.13
16 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
18 # This configure script is free software; the Free Software Foundation
19 # gives unlimited permission to copy, distribute and modify it.
23 ac_default_prefix
=/usr
/local
24 # Any additions from configure.in:
27 --enable-ipv6 Enable IPv6 support (if your OS supports it).
28 --disable-ipv6 Disable IPv6 support (even if your OS supports it).
32 --enable-builtinls Enable built-in /bin/ls. [default: enabled]
33 --disable-builtinls Disable built-in /bin/ls."
35 --with-socks Compile with SOCKS firewall traversal support."
37 --with-socks5[=PATH] Compile with SOCKS5 firewall traversal support."
39 --with-socks4[=PATH] Compile with SOCKS4 firewall traversal support."
41 --with-skey Compile with S/Key authentication support."
43 # Initialize some variables set by options.
44 # The variables have the same names as the options, with
45 # dashes changed to underlines.
47 cache_file
=.
/config.cache
56 program_transform_name
=s
,x
,x
,
64 bindir
='${exec_prefix}/bin'
65 sbindir
='${exec_prefix}/sbin'
66 libexecdir
='${exec_prefix}/libexec'
67 datadir
='${prefix}/share'
68 sysconfdir
='${prefix}/etc'
69 sharedstatedir
='${prefix}/com'
70 localstatedir
='${prefix}/var'
71 libdir
='${exec_prefix}/lib'
72 includedir
='${prefix}/include'
73 oldincludedir
='/usr/include'
74 infodir
='${prefix}/info'
75 mandir
='${prefix}/man'
77 # Initialize some other variables.
80 SHELL
=${CONFIG_SHELL-/bin/sh}
81 # Maximum number of lines to put in a shell here document.
88 # If the previous option needs an argument, assign it.
89 if test -n "$ac_prev"; then
90 eval "$ac_prev=\$ac_option"
96 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 # Accept the important Cygnus configure options, so we can diagnose typos.
104 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
106 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
107 bindir
="$ac_optarg" ;;
109 -build |
--build |
--buil |
--bui |
--bu)
111 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
112 build
="$ac_optarg" ;;
114 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
115 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
116 ac_prev
=cache_file
;;
117 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
118 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
119 cache_file
="$ac_optarg" ;;
121 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
123 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
125 datadir
="$ac_optarg" ;;
127 -disable-* |
--disable-*)
128 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}=no" ;;
136 -enable-* |
--enable-*)
137 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}='$ac_optarg'" ;;
149 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
150 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
151 |
--exec |
--exe |
--ex)
152 ac_prev
=exec_prefix
;;
153 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
154 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
155 |
--exec=* |
--exe=* |
--ex=*)
156 exec_prefix
="$ac_optarg" ;;
158 -gas |
--gas |
--ga |
--g)
159 # Obsolete; use --with-gas.
162 -help |
--help |
--hel |
--he)
163 # Omit some internal or obsolete options to make the list less imposing.
164 # This message is too long to be a string in the A/UX 3.1 sh.
166 Usage: configure [options] [host]
167 Options: [defaults in brackets after descriptions]
169 --cache-file=FILE cache test results in FILE
170 --help print this message
171 --no-create do not create output files
172 --quiet, --silent do not print \`checking...' messages
173 --version print the version of autoconf that created configure
174 Directory and file names:
175 --prefix=PREFIX install architecture-independent files in PREFIX
177 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
179 --bindir=DIR user executables in DIR [EPREFIX/bin]
180 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
181 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
182 --datadir=DIR read-only architecture-independent data in DIR
184 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
185 --sharedstatedir=DIR modifiable architecture-independent data in DIR
187 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
188 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
189 --includedir=DIR C header files in DIR [PREFIX/include]
190 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
191 --infodir=DIR info documentation in DIR [PREFIX/info]
192 --mandir=DIR man documentation in DIR [PREFIX/man]
193 --srcdir=DIR find the sources in DIR [configure dir or ..]
194 --program-prefix=PREFIX prepend PREFIX to installed program names
195 --program-suffix=SUFFIX append SUFFIX to installed program names
196 --program-transform-name=PROGRAM
197 run sed PROGRAM on installed program names
201 --build=BUILD configure for building on BUILD [BUILD=HOST]
202 --host=HOST configure for HOST [guessed]
203 --target=TARGET configure for TARGET [TARGET=HOST]
204 Features and packages:
205 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
206 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
207 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
208 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
209 --x-includes=DIR X include files are in DIR
210 --x-libraries=DIR X library files are in DIR
212 if test -n "$ac_help"; then
213 echo "--enable and --with options recognized:$ac_help"
217 -host |
--host |
--hos |
--ho)
219 -host=* |
--host=* |
--hos=* |
--ho=*)
222 -includedir |
--includedir |
--includedi |
--included |
--include \
223 |
--includ |
--inclu |
--incl |
--inc)
224 ac_prev
=includedir
;;
225 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
226 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
227 includedir
="$ac_optarg" ;;
229 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
231 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
232 infodir
="$ac_optarg" ;;
234 -libdir |
--libdir |
--libdi |
--libd)
236 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
237 libdir
="$ac_optarg" ;;
239 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
240 |
--libexe |
--libex |
--libe)
241 ac_prev
=libexecdir
;;
242 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
243 |
--libexe=* |
--libex=* |
--libe=*)
244 libexecdir
="$ac_optarg" ;;
246 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
247 |
--localstate |
--localstat |
--localsta |
--localst \
248 |
--locals |
--local |
--loca |
--loc |
--lo)
249 ac_prev
=localstatedir
;;
250 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
251 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
252 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
253 localstatedir
="$ac_optarg" ;;
255 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
257 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
258 mandir
="$ac_optarg" ;;
261 # Obsolete; use --without-fp.
264 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
268 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
269 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
272 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
273 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
274 |
--oldin |
--oldi |
--old |
--ol |
--o)
275 ac_prev
=oldincludedir
;;
276 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
277 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
278 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
279 oldincludedir
="$ac_optarg" ;;
281 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
283 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
284 prefix
="$ac_optarg" ;;
286 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
287 |
--program-pre |
--program-pr |
--program-p)
288 ac_prev
=program_prefix
;;
289 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
290 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
291 program_prefix
="$ac_optarg" ;;
293 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
294 |
--program-suf |
--program-su |
--program-s)
295 ac_prev
=program_suffix
;;
296 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
297 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
298 program_suffix
="$ac_optarg" ;;
300 -program-transform-name |
--program-transform-name \
301 |
--program-transform-nam |
--program-transform-na \
302 |
--program-transform-n |
--program-transform- \
303 |
--program-transform |
--program-transfor \
304 |
--program-transfo |
--program-transf \
305 |
--program-trans |
--program-tran \
306 |
--progr-tra |
--program-tr |
--program-t)
307 ac_prev
=program_transform_name
;;
308 -program-transform-name=* |
--program-transform-name=* \
309 |
--program-transform-nam=* |
--program-transform-na=* \
310 |
--program-transform-n=* |
--program-transform-=* \
311 |
--program-transform=* |
--program-transfor=* \
312 |
--program-transfo=* |
--program-transf=* \
313 |
--program-trans=* |
--program-tran=* \
314 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
315 program_transform_name
="$ac_optarg" ;;
317 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
318 |
-silent |
--silent |
--silen |
--sile |
--sil)
321 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
323 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
325 sbindir
="$ac_optarg" ;;
327 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
328 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
329 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
331 ac_prev
=sharedstatedir
;;
332 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
333 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
334 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
336 sharedstatedir
="$ac_optarg" ;;
338 -site |
--site |
--sit)
340 -site=* |
--site=* |
--sit=*)
343 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
345 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
346 srcdir
="$ac_optarg" ;;
348 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
349 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
350 ac_prev
=sysconfdir
;;
351 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
352 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
353 sysconfdir
="$ac_optarg" ;;
355 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
357 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
358 target
="$ac_optarg" ;;
360 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
363 -version |
--version |
--versio |
--versi |
--vers)
364 echo "configure generated by autoconf version 2.13"
368 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package
=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}='$ac_optarg'" ;;
380 -without-* |
--without-*)
381 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package
=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}=no" ;;
390 # Obsolete; use --with-x.
393 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
394 |
--x-incl |
--x-inc |
--x-in |
--x-i)
395 ac_prev
=x_includes
;;
396 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
397 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
398 x_includes
="$ac_optarg" ;;
400 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
401 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
402 ac_prev
=x_libraries
;;
403 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
404 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
405 x_libraries
="$ac_optarg" ;;
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
414 if test "x$nonopt" != xNONE
; then
415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
423 if test -n "$ac_prev"; then
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429 # File descriptor usage:
432 # 2 errors and warnings
433 # 3 some systems may open it to /dev/tty
434 # 4 used on the Kubota Titan
435 # 6 checking for... messages and results
436 # 5 compiler messages saved in config.log
437 if test "$silent" = yes; then
445 This file contains any messages produced by compilers while
446 running configure, to aid debugging if configure makes a mistake.
449 # Strip out --no-create and --no-recursion so they do not pile up.
450 # Also quote any args containing shell metacharacters.
455 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
456 |
--no-cr |
--no-c) ;;
457 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
458 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
459 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
461 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
466 # Only set these to C if already set. These must not be set unconditionally
467 # because not all systems understand e.g. LANG=C (notably SCO).
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469 # Non-C LC_CTYPE values break the ctype check.
470 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
471 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
473 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
476 rm -rf conftest
* confdefs.h
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
480 # A filename unique to this package, relative to the directory that
481 # configure is in, which we can look for to find out if srcdir is correct.
482 ac_unique_file
=lukemftpd.h
484 # Find the source files, if location was not specified.
485 if test -z "$srcdir"; then
486 ac_srcdir_defaulted
=yes
487 # Try the directory containing this script, then its parent.
489 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
492 if test ! -r $srcdir/$ac_unique_file; then
496 ac_srcdir_defaulted
=no
498 if test ! -r $srcdir/$ac_unique_file; then
499 if test "$ac_srcdir_defaulted" = yes; then
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
505 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507 # Prefer explicitly selected file to automatically selected ones.
508 if test -z "$CONFIG_SITE"; then
509 if test "x$prefix" != xNONE
; then
510 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
512 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
515 for ac_site_file
in $CONFIG_SITE; do
516 if test -r "$ac_site_file"; then
517 echo "loading site script $ac_site_file"
522 if test -r "$cache_file"; then
523 echo "loading cache $cache_file"
526 echo "creating cache $cache_file"
531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
532 ac_cpp
='$CPP $CPPFLAGS'
533 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
534 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
535 cross_compiling
=$ac_cv_prog_cc_cross
539 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
540 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
541 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
548 ac_n
= ac_c
='\c' ac_t
=
554 # Check whether --enable-ipv6 or --disable-ipv6 was given.
555 if test "${enable_ipv6+set}" = set; then
556 enableval
="$enable_ipv6"
562 # Check whether --enable-builtinls or --disable-builtinls was given.
563 if test "${enable_builtinls+set}" = set; then
564 enableval
="$enable_builtinls"
565 opt_builtinls
=$enableval
572 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
573 echo "configure:574: checking whether ${MAKE-make} sets \${MAKE}" >&5
574 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
575 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
576 echo $ac_n "(cached) $ac_c" 1>&6
578 cat > conftestmake
<<\EOF
580 @
echo 'ac_maketemp="${MAKE}"'
582 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
583 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
584 if test -n "$ac_maketemp"; then
585 eval ac_cv_prog_make_
${ac_make}_set
=yes
587 eval ac_cv_prog_make_
${ac_make}_set
=no
591 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
592 echo "$ac_t""yes" 1>&6
595 echo "$ac_t""no" 1>&6
596 SET_MAKE
="MAKE=${MAKE-make}"
599 # Extract the first word of "gcc", so it can be a program name with args.
600 set dummy gcc
; ac_word
=$2
601 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
602 echo "configure:603: checking for $ac_word" >&5
603 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
604 echo $ac_n "(cached) $ac_c" 1>&6
606 if test -n "$CC"; then
607 ac_cv_prog_CC
="$CC" # Let the user override the test.
609 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
611 for ac_dir
in $ac_dummy; do
612 test -z "$ac_dir" && ac_dir
=.
613 if test -f $ac_dir/$ac_word; then
622 if test -n "$CC"; then
623 echo "$ac_t""$CC" 1>&6
625 echo "$ac_t""no" 1>&6
628 if test -z "$CC"; then
629 # Extract the first word of "cc", so it can be a program name with args.
630 set dummy cc
; ac_word
=$2
631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
632 echo "configure:633: checking for $ac_word" >&5
633 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
634 echo $ac_n "(cached) $ac_c" 1>&6
636 if test -n "$CC"; then
637 ac_cv_prog_CC
="$CC" # Let the user override the test.
639 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
642 for ac_dir
in $ac_dummy; do
643 test -z "$ac_dir" && ac_dir
=.
644 if test -f $ac_dir/$ac_word; then
645 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
654 if test $ac_prog_rejected = yes; then
655 # We found a bogon in the path, so make sure we never use it.
656 set dummy
$ac_cv_prog_CC
658 if test $# -gt 0; then
659 # We chose a different compiler from the bogus one.
660 # However, it has the same basename, so the bogon will be chosen
661 # first if we set CC to just the basename; use the full file name.
663 set dummy
"$ac_dir/$ac_word" "$@"
671 if test -n "$CC"; then
672 echo "$ac_t""$CC" 1>&6
674 echo "$ac_t""no" 1>&6
677 if test -z "$CC"; then
680 # Extract the first word of "cl", so it can be a program name with args.
681 set dummy cl
; ac_word
=$2
682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683 echo "configure:684: checking for $ac_word" >&5
684 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
685 echo $ac_n "(cached) $ac_c" 1>&6
687 if test -n "$CC"; then
688 ac_cv_prog_CC
="$CC" # Let the user override the test.
690 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
692 for ac_dir
in $ac_dummy; do
693 test -z "$ac_dir" && ac_dir
=.
694 if test -f $ac_dir/$ac_word; then
703 if test -n "$CC"; then
704 echo "$ac_t""$CC" 1>&6
706 echo "$ac_t""no" 1>&6
711 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
714 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
715 echo "configure:716: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
719 ac_cpp
='$CPP $CPPFLAGS'
720 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
721 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
722 cross_compiling
=$ac_cv_prog_cc_cross
724 cat > conftest.
$ac_ext << EOF
726 #line 727 "configure"
727 #include "confdefs.h"
731 if { (eval echo configure
:732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
732 ac_cv_prog_cc_works
=yes
733 # If we can't run a trivial program, we are probably using a cross compiler.
734 if (.
/conftest
; exit) 2>/dev
/null
; then
735 ac_cv_prog_cc_cross
=no
737 ac_cv_prog_cc_cross
=yes
740 echo "configure: failed program was:" >&5
741 cat conftest.
$ac_ext >&5
742 ac_cv_prog_cc_works
=no
746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
747 ac_cpp
='$CPP $CPPFLAGS'
748 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
749 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
750 cross_compiling
=$ac_cv_prog_cc_cross
752 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
753 if test $ac_cv_prog_cc_works = no
; then
754 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
756 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
757 echo "configure:758: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
758 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
759 cross_compiling
=$ac_cv_prog_cc_cross
761 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
762 echo "configure:763: checking whether we are using GNU C" >&5
763 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
764 echo $ac_n "(cached) $ac_c" 1>&6
766 cat > conftest.c
<<EOF
771 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
778 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
780 if test $ac_cv_prog_gcc = yes; then
786 ac_test_CFLAGS
="${CFLAGS+set}"
787 ac_save_CFLAGS
="$CFLAGS"
789 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
790 echo "configure:791: checking whether ${CC-cc} accepts -g" >&5
791 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
792 echo $ac_n "(cached) $ac_c" 1>&6
794 echo 'void f(){}' > conftest.c
795 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
804 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
805 if test "$ac_test_CFLAGS" = set; then
806 CFLAGS
="$ac_save_CFLAGS"
807 elif test $ac_cv_prog_cc_g = yes; then
808 if test "$GCC" = yes; then
814 if test "$GCC" = yes; then
821 for ac_prog
in mawk gawk nawk
awk
823 # Extract the first word of "$ac_prog", so it can be a program name with args.
824 set dummy
$ac_prog; ac_word
=$2
825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
826 echo "configure:827: checking for $ac_word" >&5
827 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
830 if test -n "$AWK"; then
831 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
833 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
835 for ac_dir
in $ac_dummy; do
836 test -z "$ac_dir" && ac_dir
=.
837 if test -f $ac_dir/$ac_word; then
838 ac_cv_prog_AWK
="$ac_prog"
845 AWK
="$ac_cv_prog_AWK"
846 if test -n "$AWK"; then
847 echo "$ac_t""$AWK" 1>&6
849 echo "$ac_t""no" 1>&6
852 test -n "$AWK" && break
856 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
857 if test -f $ac_dir/install-sh
; then
859 ac_install_sh
="$ac_aux_dir/install-sh -c"
861 elif test -f $ac_dir/install.sh
; then
863 ac_install_sh
="$ac_aux_dir/install.sh -c"
867 if test -z "$ac_aux_dir"; then
868 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
870 ac_config_guess
=$ac_aux_dir/config.guess
871 ac_config_sub
=$ac_aux_dir/config.sub
872 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
874 # Find a good install program. We prefer a C program (faster),
875 # so one script is as good as another. But avoid the broken or
876 # incompatible versions:
877 # SysV /etc/install, /usr/sbin/install
878 # SunOS /usr/etc/install
881 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
882 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
883 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
884 # ./install, which can be erroneously created by make from ./install.sh.
885 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
886 echo "configure:887: checking for a BSD compatible install" >&5
887 if test -z "$INSTALL"; then
888 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
889 echo $ac_n "(cached) $ac_c" 1>&6
891 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
892 for ac_dir
in $PATH; do
893 # Account for people who put trailing slashes in PATH elements.
895 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
897 # OSF1 and SCO ODT 3.0 have their own names for install.
898 # Don't use installbsd from OSF since it installs stuff as root
900 for ac_prog
in ginstall scoinst
install; do
901 if test -f $ac_dir/$ac_prog; then
902 if test $ac_prog = install &&
903 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
904 # AIX install. It has an incompatible calling convention.
907 ac_cv_path_install
="$ac_dir/$ac_prog -c"
918 if test "${ac_cv_path_install+set}" = set; then
919 INSTALL
="$ac_cv_path_install"
921 # As a last resort, use the slow shell script. We don't cache a
922 # path for INSTALL within a source directory, because that will
923 # break other packages using the cache if that directory is
924 # removed, or if the path is relative.
925 INSTALL
="$ac_install_sh"
928 echo "$ac_t""$INSTALL" 1>&6
930 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
931 # It thinks the first close brace ends the variable substitution.
932 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
934 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
936 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
938 # Extract the first word of "ranlib", so it can be a program name with args.
939 set dummy ranlib
; ac_word
=$2
940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
941 echo "configure:942: checking for $ac_word" >&5
942 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
943 echo $ac_n "(cached) $ac_c" 1>&6
945 if test -n "$RANLIB"; then
946 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
948 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
950 for ac_dir
in $ac_dummy; do
951 test -z "$ac_dir" && ac_dir
=.
952 if test -f $ac_dir/$ac_word; then
953 ac_cv_prog_RANLIB
="ranlib"
958 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
961 RANLIB
="$ac_cv_prog_RANLIB"
962 if test -n "$RANLIB"; then
963 echo "$ac_t""$RANLIB" 1>&6
965 echo "$ac_t""no" 1>&6
968 for ac_prog
in 'bison -y' byacc
970 # Extract the first word of "$ac_prog", so it can be a program name with args.
971 set dummy
$ac_prog; ac_word
=$2
972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
973 echo "configure:974: checking for $ac_word" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 if test -n "$YACC"; then
978 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
980 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
982 for ac_dir
in $ac_dummy; do
983 test -z "$ac_dir" && ac_dir
=.
984 if test -f $ac_dir/$ac_word; then
985 ac_cv_prog_YACC
="$ac_prog"
992 YACC
="$ac_cv_prog_YACC"
993 if test -n "$YACC"; then
994 echo "$ac_t""$YACC" 1>&6
996 echo "$ac_t""no" 1>&6
999 test -n "$YACC" && break
1001 test -n "$YACC" || YACC
="yacc"
1005 # Extract the first word of "$ac_prog", so it can be a program name with args.
1006 set dummy
$ac_prog; ac_word
=$2
1007 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1008 echo "configure:1009: checking for $ac_word" >&5
1009 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1012 if test -n "$AR"; then
1013 ac_cv_prog_AR
="$AR" # Let the user override the test.
1015 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1017 for ac_dir
in $ac_dummy; do
1018 test -z "$ac_dir" && ac_dir
=.
1019 if test -f $ac_dir/$ac_word; then
1020 ac_cv_prog_AR
="$ac_prog"
1028 if test -n "$AR"; then
1029 echo "$ac_t""$AR" 1>&6
1031 echo "$ac_t""no" 1>&6
1034 test -n "$AR" && break
1039 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1040 echo "configure:1041: checking for crypt in -lcrypt" >&5
1041 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
1042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1045 ac_save_LIBS
="$LIBS"
1046 LIBS
="-lcrypt $LIBS"
1047 cat > conftest.
$ac_ext <<EOF
1048 #line 1049 "configure"
1049 #include "confdefs.h"
1050 /* Override any gcc2 internal prototype to avoid an error. */
1051 /* We use char because int might match the return type of a gcc2
1052 builtin and then its argument prototype would still apply. */
1059 if { (eval echo configure
:1060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1061 eval "ac_cv_lib_$ac_lib_var=yes"
1063 echo "configure: failed program was:" >&5
1064 cat conftest.
$ac_ext >&5
1066 eval "ac_cv_lib_$ac_lib_var=no"
1069 LIBS
="$ac_save_LIBS"
1072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1073 echo "$ac_t""yes" 1>&6
1074 ac_tr_lib
=HAVE_LIB
`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1075 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1076 cat >> confdefs.h
<<EOF
1077 #define $ac_tr_lib 1
1080 LIBS
="-lcrypt $LIBS"
1083 echo "$ac_t""no" 1>&6
1086 echo $ac_n "checking for fparseln in -lutil""... $ac_c" 1>&6
1087 echo "configure:1088: checking for fparseln in -lutil" >&5
1088 ac_lib_var
=`echo util'_'fparseln | sed 'y%./+-%__p_%'`
1089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1092 ac_save_LIBS
="$LIBS"
1094 cat > conftest.
$ac_ext <<EOF
1095 #line 1096 "configure"
1096 #include "confdefs.h"
1097 /* Override any gcc2 internal prototype to avoid an error. */
1098 /* We use char because int might match the return type of a gcc2
1099 builtin and then its argument prototype would still apply. */
1106 if { (eval echo configure
:1107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1108 eval "ac_cv_lib_$ac_lib_var=yes"
1110 echo "configure: failed program was:" >&5
1111 cat conftest.
$ac_ext >&5
1113 eval "ac_cv_lib_$ac_lib_var=no"
1116 LIBS
="$ac_save_LIBS"
1119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1120 echo "$ac_t""yes" 1>&6
1121 ac_tr_lib
=HAVE_LIB
`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1122 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1123 cat >> confdefs.h
<<EOF
1124 #define $ac_tr_lib 1
1130 echo "$ac_t""no" 1>&6
1133 if test $ac_cv_lib_util_fparseln != yes; then
1134 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
1135 echo "configure:1136: checking for setproctitle in -lutil" >&5
1136 ac_lib_var
=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
1137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1140 ac_save_LIBS
="$LIBS"
1142 cat > conftest.
$ac_ext <<EOF
1143 #line 1144 "configure"
1144 #include "confdefs.h"
1145 /* Override any gcc2 internal prototype to avoid an error. */
1146 /* We use char because int might match the return type of a gcc2
1147 builtin and then its argument prototype would still apply. */
1148 char setproctitle();
1154 if { (eval echo configure
:1155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1156 eval "ac_cv_lib_$ac_lib_var=yes"
1158 echo "configure: failed program was:" >&5
1159 cat conftest.
$ac_ext >&5
1161 eval "ac_cv_lib_$ac_lib_var=no"
1164 LIBS
="$ac_save_LIBS"
1167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1168 echo "$ac_t""yes" 1>&6
1169 ac_tr_lib
=HAVE_LIB
`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1170 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1171 cat >> confdefs.h
<<EOF
1172 #define $ac_tr_lib 1
1178 echo "$ac_t""no" 1>&6
1183 # Most operating systems have gethostbyname() in the default searched
1184 # libraries (i.e. libc):
1185 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1186 echo "configure:1187: checking for gethostbyname" >&5
1187 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1190 cat > conftest.
$ac_ext <<EOF
1191 #line 1192 "configure"
1192 #include "confdefs.h"
1193 /* System header to define __stub macros and hopefully few prototypes,
1194 which can conflict with char gethostbyname(); below. */
1196 /* Override any gcc2 internal prototype to avoid an error. */
1197 /* We use char because int might match the return type of a gcc2
1198 builtin and then its argument prototype would still apply. */
1199 char gethostbyname();
1203 /* The GNU C library defines this for functions which it implements
1204 to always fail with ENOSYS. Some functions are actually named
1205 something starting with __ and the normal name is an alias. */
1206 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1214 if { (eval echo configure
:1215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1216 eval "ac_cv_func_gethostbyname=yes"
1218 echo "configure: failed program was:" >&5
1219 cat conftest.
$ac_ext >&5
1221 eval "ac_cv_func_gethostbyname=no"
1226 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1227 echo "$ac_t""yes" 1>&6
1230 echo "$ac_t""no" 1>&6
1231 # Some OSes (eg. Solaris) place it in libnsl:
1232 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1233 echo "configure:1234: checking for gethostbyname in -lnsl" >&5
1234 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1238 ac_save_LIBS
="$LIBS"
1240 cat > conftest.
$ac_ext <<EOF
1241 #line 1242 "configure"
1242 #include "confdefs.h"
1243 /* Override any gcc2 internal prototype to avoid an error. */
1244 /* We use char because int might match the return type of a gcc2
1245 builtin and then its argument prototype would still apply. */
1246 char gethostbyname();
1252 if { (eval echo configure
:1253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1254 eval "ac_cv_lib_$ac_lib_var=yes"
1256 echo "configure: failed program was:" >&5
1257 cat conftest.
$ac_ext >&5
1259 eval "ac_cv_lib_$ac_lib_var=no"
1262 LIBS
="$ac_save_LIBS"
1265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1266 echo "$ac_t""yes" 1>&6
1267 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
1268 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1269 cat >> confdefs.h
<<EOF
1270 #define $ac_tr_lib 1
1276 echo "$ac_t""no" 1>&6
1277 # Some strange OSes (SINIX) have it in libsocket:
1278 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
1279 echo "configure:1280: checking for gethostbyname in -lsocket" >&5
1280 ac_lib_var
=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
1281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1284 ac_save_LIBS
="$LIBS"
1285 LIBS
="-lsocket $LIBS"
1286 cat > conftest.
$ac_ext <<EOF
1287 #line 1288 "configure"
1288 #include "confdefs.h"
1289 /* Override any gcc2 internal prototype to avoid an error. */
1290 /* We use char because int might match the return type of a gcc2
1291 builtin and then its argument prototype would still apply. */
1292 char gethostbyname();
1298 if { (eval echo configure
:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1300 eval "ac_cv_lib_$ac_lib_var=yes"
1302 echo "configure: failed program was:" >&5
1303 cat conftest.
$ac_ext >&5
1305 eval "ac_cv_lib_$ac_lib_var=no"
1308 LIBS
="$ac_save_LIBS"
1311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1312 echo "$ac_t""yes" 1>&6
1313 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1314 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1315 cat >> confdefs.h
<<EOF
1316 #define $ac_tr_lib 1
1319 LIBS
="-lsocket $LIBS"
1322 echo "$ac_t""no" 1>&6
1323 # Unfortunately libsocket sometimes depends on libnsl.
1324 # AC_CHECK_LIB's API is essentially broken so the following
1325 # ugliness is necessary:
1326 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
1327 echo "configure:1328: checking for gethostbyname in -lsocket" >&5
1328 ac_lib_var
=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
1329 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1332 ac_save_LIBS
="$LIBS"
1333 LIBS
="-lsocket -lnsl $LIBS"
1334 cat > conftest.
$ac_ext <<EOF
1335 #line 1336 "configure"
1336 #include "confdefs.h"
1337 /* Override any gcc2 internal prototype to avoid an error. */
1338 /* We use char because int might match the return type of a gcc2
1339 builtin and then its argument prototype would still apply. */
1340 char gethostbyname();
1346 if { (eval echo configure
:1347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1348 eval "ac_cv_lib_$ac_lib_var=yes"
1350 echo "configure: failed program was:" >&5
1351 cat conftest.
$ac_ext >&5
1353 eval "ac_cv_lib_$ac_lib_var=no"
1356 LIBS
="$ac_save_LIBS"
1359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1360 echo "$ac_t""yes" 1>&6
1361 LIBS
="-lsocket -lnsl $LIBS"
1363 echo "$ac_t""no" 1>&6
1364 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
1365 echo "configure:1366: checking for gethostbyname in -lresolv" >&5
1366 ac_lib_var
=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
1367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1370 ac_save_LIBS
="$LIBS"
1371 LIBS
="-lresolv $LIBS"
1372 cat > conftest.
$ac_ext <<EOF
1373 #line 1374 "configure"
1374 #include "confdefs.h"
1375 /* Override any gcc2 internal prototype to avoid an error. */
1376 /* We use char because int might match the return type of a gcc2
1377 builtin and then its argument prototype would still apply. */
1378 char gethostbyname();
1384 if { (eval echo configure
:1385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1386 eval "ac_cv_lib_$ac_lib_var=yes"
1388 echo "configure: failed program was:" >&5
1389 cat conftest.
$ac_ext >&5
1391 eval "ac_cv_lib_$ac_lib_var=no"
1394 LIBS
="$ac_save_LIBS"
1397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1398 echo "$ac_t""yes" 1>&6
1399 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1400 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1401 cat >> confdefs.h
<<EOF
1402 #define $ac_tr_lib 1
1405 LIBS
="-lresolv $LIBS"
1408 echo "$ac_t""no" 1>&6
1422 echo $ac_n "checking for socket""... $ac_c" 1>&6
1423 echo "configure:1424: checking for socket" >&5
1424 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1427 cat > conftest.
$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1430 /* System header to define __stub macros and hopefully few prototypes,
1431 which can conflict with char socket(); below. */
1433 /* Override any gcc2 internal prototype to avoid an error. */
1434 /* We use char because int might match the return type of a gcc2
1435 builtin and then its argument prototype would still apply. */
1440 /* The GNU C library defines this for functions which it implements
1441 to always fail with ENOSYS. Some functions are actually named
1442 something starting with __ and the normal name is an alias. */
1443 #if defined (__stub_socket) || defined (__stub___socket)
1451 if { (eval echo configure
:1452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1453 eval "ac_cv_func_socket=yes"
1455 echo "configure: failed program was:" >&5
1456 cat conftest.
$ac_ext >&5
1458 eval "ac_cv_func_socket=no"
1463 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1464 echo "$ac_t""yes" 1>&6
1467 echo "$ac_t""no" 1>&6
1468 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1469 echo "configure:1470: checking for socket in -lsocket" >&5
1470 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1471 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1472 echo $ac_n "(cached) $ac_c" 1>&6
1474 ac_save_LIBS
="$LIBS"
1475 LIBS
="-lsocket $LIBS"
1476 cat > conftest.
$ac_ext <<EOF
1477 #line 1478 "configure"
1478 #include "confdefs.h"
1479 /* Override any gcc2 internal prototype to avoid an error. */
1480 /* We use char because int might match the return type of a gcc2
1481 builtin and then its argument prototype would still apply. */
1488 if { (eval echo configure
:1489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1490 eval "ac_cv_lib_$ac_lib_var=yes"
1492 echo "configure: failed program was:" >&5
1493 cat conftest.
$ac_ext >&5
1495 eval "ac_cv_lib_$ac_lib_var=no"
1498 LIBS
="$ac_save_LIBS"
1501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1502 echo "$ac_t""yes" 1>&6
1503 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1504 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1505 cat >> confdefs.h
<<EOF
1506 #define $ac_tr_lib 1
1509 LIBS
="-lsocket $LIBS"
1512 echo "$ac_t""no" 1>&6
1513 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1514 echo "configure:1515: checking for socket in -lsocket" >&5
1515 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1516 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1519 ac_save_LIBS
="$LIBS"
1520 LIBS
="-lsocket -lnsl $LIBS"
1521 cat > conftest.
$ac_ext <<EOF
1522 #line 1523 "configure"
1523 #include "confdefs.h"
1524 /* Override any gcc2 internal prototype to avoid an error. */
1525 /* We use char because int might match the return type of a gcc2
1526 builtin and then its argument prototype would still apply. */
1533 if { (eval echo configure
:1534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1535 eval "ac_cv_lib_$ac_lib_var=yes"
1537 echo "configure: failed program was:" >&5
1538 cat conftest.
$ac_ext >&5
1540 eval "ac_cv_lib_$ac_lib_var=no"
1543 LIBS
="$ac_save_LIBS"
1546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1547 echo "$ac_t""yes" 1>&6
1548 LIBS
="-lsocket -lnsl $LIBS"
1550 echo "$ac_t""no" 1>&6
1559 echo $ac_n "checking whether to support SOCKS""... $ac_c" 1>&6
1560 echo "configure:1561: checking whether to support SOCKS" >&5
1561 # Check whether --with-socks or --without-socks was given.
1562 if test "${with_socks+set}" = set; then
1563 withval
="$with_socks"
1567 echo "$ac_t""no" 1>&6
1570 echo "$ac_t""yes" 1>&6
1571 echo $ac_n "checking for SOCKSconnect in -lsocks5""... $ac_c" 1>&6
1572 echo "configure:1573: checking for SOCKSconnect in -lsocks5" >&5
1573 ac_lib_var
=`echo socks5'_'SOCKSconnect | sed 'y%./+-%__p_%'`
1574 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1575 echo $ac_n "(cached) $ac_c" 1>&6
1577 ac_save_LIBS
="$LIBS"
1578 LIBS
="-lsocks5 $LIBS"
1579 cat > conftest.
$ac_ext <<EOF
1580 #line 1581 "configure"
1581 #include "confdefs.h"
1582 /* Override any gcc2 internal prototype to avoid an error. */
1583 /* We use char because int might match the return type of a gcc2
1584 builtin and then its argument prototype would still apply. */
1585 char SOCKSconnect();
1591 if { (eval echo configure
:1592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1593 eval "ac_cv_lib_$ac_lib_var=yes"
1595 echo "configure: failed program was:" >&5
1596 cat conftest.
$ac_ext >&5
1598 eval "ac_cv_lib_$ac_lib_var=no"
1601 LIBS
="$ac_save_LIBS"
1604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1605 echo "$ac_t""yes" 1>&6
1608 LIBS
="-lsocks5 $LIBS"
1610 echo "$ac_t""no" 1>&6
1612 echo $ac_n "checking for Rconnect in -lsocks""... $ac_c" 1>&6
1613 echo "configure:1614: checking for Rconnect in -lsocks" >&5
1614 ac_lib_var
=`echo socks'_'Rconnect | sed 'y%./+-%__p_%'`
1615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1618 ac_save_LIBS
="$LIBS"
1619 LIBS
="-lsocks $LIBS"
1620 cat > conftest.
$ac_ext <<EOF
1621 #line 1622 "configure"
1622 #include "confdefs.h"
1623 /* Override any gcc2 internal prototype to avoid an error. */
1624 /* We use char because int might match the return type of a gcc2
1625 builtin and then its argument prototype would still apply. */
1632 if { (eval echo configure
:1633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1634 eval "ac_cv_lib_$ac_lib_var=yes"
1636 echo "configure: failed program was:" >&5
1637 cat conftest.
$ac_ext >&5
1639 eval "ac_cv_lib_$ac_lib_var=no"
1642 LIBS
="$ac_save_LIBS"
1645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1646 echo "$ac_t""yes" 1>&6
1649 LIBS
="-lsocks $LIBS"
1651 echo "$ac_t""no" 1>&6
1653 { echo "configure: error: Could not find socks library. You must first install socks." 1>&2; exit 1; }
1662 echo "$ac_t""no" 1>&6
1667 if test "x$socks" = "x"; then
1668 echo $ac_n "checking whether to support SOCKS5""... $ac_c" 1>&6
1669 echo "configure:1670: checking whether to support SOCKS5" >&5
1670 # Check whether --with-socks5 or --without-socks5 was given.
1671 if test "${with_socks5+set}" = set; then
1672 withval
="$with_socks5"
1676 echo "$ac_t""no" 1>&6
1679 echo "$ac_t""yes" 1>&6
1681 if test "x$withval" = "xyes"; then
1684 if test -d "$withval"; then
1685 if test -d "$withval/include"; then
1686 CFLAGS
="$CFLAGS -I$withval/include"
1688 CFLAGS
="$CFLAGS -I$withval"
1690 if test -d "$withval/lib"; then
1691 withval
="-L$withval/lib -lsocks5"
1693 withval
="-L$withval -lsocks5"
1697 LIBS
="$withval $LIBS"
1698 # If Socks was compiled with Kerberos support, we will need
1699 # to link against kerberos libraries. Temporarily append
1700 # to LIBS. This is harmless if there is no kerberos support.
1702 LIBS
="$LIBS $KERBEROS_LIBS"
1703 cat > conftest.
$ac_ext <<EOF
1704 #line 1705 "configure"
1705 #include "confdefs.h"
1711 if { (eval echo configure
:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1714 echo "configure: failed program was:" >&5
1715 cat conftest.
$ac_ext >&5
1717 { echo "configure: error: Could not find the $withval library. You must first install socks5." 1>&2; exit 1; }
1725 echo "$ac_t""no" 1>&6
1731 if test "x$socks" = "x"; then
1732 echo $ac_n "checking whether to support SOCKS4""... $ac_c" 1>&6
1733 echo "configure:1734: checking whether to support SOCKS4" >&5
1734 # Check whether --with-socks4 or --without-socks4 was given.
1735 if test "${with_socks4+set}" = set; then
1736 withval
="$with_socks4"
1740 echo "$ac_t""no" 1>&6
1743 echo "$ac_t""yes" 1>&6
1745 if test "x$withval" = "xyes"; then
1748 if test -d "$withval"; then
1749 withval
="-L$withval -lsocks"
1752 LIBS
="$withval $LIBS"
1753 cat > conftest.
$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1761 if { (eval echo configure
:1762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1764 echo "configure: failed program was:" >&5
1765 cat conftest.
$ac_ext >&5
1767 { echo "configure: error: Could not find the $withval library. You must first install socks." 1>&2; exit 1; }
1774 echo "$ac_t""no" 1>&6
1780 if test "x$socks" = "x4"; then
1781 cat >> confdefs.h
<<\EOF
1785 cat >> confdefs.h
<<\EOF
1789 cat >> confdefs.h
<<\EOF
1790 #define connect Rconnect
1793 cat >> confdefs.h
<<\EOF
1794 #define getsockname Rgetsockname
1797 cat >> confdefs.h
<<\EOF
1801 cat >> confdefs.h
<<\EOF
1802 #define accept Raccept
1805 cat >> confdefs.h
<<\EOF
1806 #define listen Rlisten
1809 cat >> confdefs.h
<<\EOF
1810 #define select Rselect
1815 if test "x$socks" = "x5"; then
1816 cat >> confdefs.h
<<\EOF
1820 cat >> confdefs.h
<<\EOF
1824 cat >> confdefs.h
<<\EOF
1825 #define connect SOCKSconnect
1828 cat >> confdefs.h
<<\EOF
1829 #define getsockname SOCKSgetsockname
1832 cat >> confdefs.h
<<\EOF
1833 #define getpeername SOCKSgetpeername
1836 cat >> confdefs.h
<<\EOF
1837 #define bind SOCKSbind
1840 cat >> confdefs.h
<<\EOF
1841 #define accept SOCKSaccept
1844 cat >> confdefs.h
<<\EOF
1845 #define listen SOCKSlisten
1848 cat >> confdefs.h
<<\EOF
1849 #define select SOCKSselect
1852 cat >> confdefs.h
<<\EOF
1853 #define recvfrom SOCKSrecvfrom
1856 cat >> confdefs.h
<<\EOF
1857 #define sendto SOCKSsendto
1860 cat >> confdefs.h
<<\EOF
1861 #define recv SOCKSrecv
1864 cat >> confdefs.h
<<\EOF
1865 #define send SOCKSsend
1868 cat >> confdefs.h
<<\EOF
1869 #define read SOCKSread
1872 cat >> confdefs.h
<<\EOF
1873 #define write SOCKSwrite
1876 cat >> confdefs.h
<<\EOF
1877 #define rresvport SOCKSrresvport
1880 cat >> confdefs.h
<<\EOF
1881 #define shutdown SOCKSshutdown
1884 cat >> confdefs.h
<<\EOF
1885 #define listen SOCKSlisten
1888 cat >> confdefs.h
<<\EOF
1889 #define close SOCKSclose
1892 cat >> confdefs.h
<<\EOF
1893 #define dup SOCKSdup
1896 cat >> confdefs.h
<<\EOF
1897 #define dup2 SOCKSdup2
1900 cat >> confdefs.h
<<\EOF
1901 #define fclose SOCKSfclose
1904 cat >> confdefs.h
<<\EOF
1905 #define gethostbyname SOCKSgethostbyname
1910 if test -n "$socks"; then
1911 if test $opt_ipv6 = yes; then
1912 echo "IPv6 is incompatible with socks, disabling IPv6 support"
1916 # Check whether --with-skey or --without-skey was given.
1917 if test "${with_skey+set}" = set; then
1918 withval
="$with_skey"
1919 if test $withval = yes; then
1920 echo $ac_n "checking for skey_haskey in -lskey""... $ac_c" 1>&6
1921 echo "configure:1922: checking for skey_haskey in -lskey" >&5
1922 ac_lib_var
=`echo skey'_'skey_haskey | sed 'y%./+-%__p_%'`
1923 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1924 echo $ac_n "(cached) $ac_c" 1>&6
1926 ac_save_LIBS
="$LIBS"
1928 cat > conftest.
$ac_ext <<EOF
1929 #line 1930 "configure"
1930 #include "confdefs.h"
1931 /* Override any gcc2 internal prototype to avoid an error. */
1932 /* We use char because int might match the return type of a gcc2
1933 builtin and then its argument prototype would still apply. */
1940 if { (eval echo configure
:1941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1942 eval "ac_cv_lib_$ac_lib_var=yes"
1944 echo "configure: failed program was:" >&5
1945 cat conftest.
$ac_ext >&5
1947 eval "ac_cv_lib_$ac_lib_var=no"
1950 LIBS
="$ac_save_LIBS"
1953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1954 echo "$ac_t""yes" 1>&6
1955 ac_tr_lib
=HAVE_LIB
`echo skey | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1956 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1957 cat >> confdefs.h
<<EOF
1958 #define $ac_tr_lib 1
1964 echo "$ac_t""no" 1>&6
1970 echo $ac_n "checking whether to support S/Key""... $ac_c" 1>&6
1971 echo "configure:1972: checking whether to support S/Key" >&5
1972 if test x
"$ac_cv_lib_skey_skey_haskey" = "xyes"; then
1973 echo "$ac_t""yes" 1>&6
1974 cat >> confdefs.h
<<\EOF
1979 echo "$ac_t""no" 1>&6
1985 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1987 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1988 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1989 echo "configure:1990: checking for $ac_hdr that defines DIR" >&5
1990 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1991 echo $ac_n "(cached) $ac_c" 1>&6
1993 cat > conftest.
$ac_ext <<EOF
1994 #line 1995 "configure"
1995 #include "confdefs.h"
1996 #include <sys/types.h>
2002 if { (eval echo configure
:2003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2004 eval "ac_cv_header_dirent_$ac_safe=yes"
2006 echo "configure: failed program was:" >&5
2007 cat conftest.
$ac_ext >&5
2009 eval "ac_cv_header_dirent_$ac_safe=no"
2013 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2014 echo "$ac_t""yes" 1>&6
2015 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2016 cat >> confdefs.h
<<EOF
2017 #define $ac_tr_hdr 1
2019 ac_header_dirent
=$ac_hdr; break
2021 echo "$ac_t""no" 1>&6
2024 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2025 if test $ac_header_dirent = dirent.h
; then
2026 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2027 echo "configure:2028: checking for opendir in -ldir" >&5
2028 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2032 ac_save_LIBS
="$LIBS"
2034 cat > conftest.
$ac_ext <<EOF
2035 #line 2036 "configure"
2036 #include "confdefs.h"
2037 /* Override any gcc2 internal prototype to avoid an error. */
2038 /* We use char because int might match the return type of a gcc2
2039 builtin and then its argument prototype would still apply. */
2046 if { (eval echo configure
:2047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2048 eval "ac_cv_lib_$ac_lib_var=yes"
2050 echo "configure: failed program was:" >&5
2051 cat conftest.
$ac_ext >&5
2053 eval "ac_cv_lib_$ac_lib_var=no"
2056 LIBS
="$ac_save_LIBS"
2059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2060 echo "$ac_t""yes" 1>&6
2063 echo "$ac_t""no" 1>&6
2067 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2068 echo "configure:2069: checking for opendir in -lx" >&5
2069 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2070 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2073 ac_save_LIBS
="$LIBS"
2075 cat > conftest.
$ac_ext <<EOF
2076 #line 2077 "configure"
2077 #include "confdefs.h"
2078 /* Override any gcc2 internal prototype to avoid an error. */
2079 /* We use char because int might match the return type of a gcc2
2080 builtin and then its argument prototype would still apply. */
2087 if { (eval echo configure
:2088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2089 eval "ac_cv_lib_$ac_lib_var=yes"
2091 echo "configure: failed program was:" >&5
2092 cat conftest.
$ac_ext >&5
2094 eval "ac_cv_lib_$ac_lib_var=no"
2097 LIBS
="$ac_save_LIBS"
2100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2101 echo "$ac_t""yes" 1>&6
2104 echo "$ac_t""no" 1>&6
2109 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2110 echo "configure:2111: checking how to run the C preprocessor" >&5
2111 # On Suns, sometimes $CPP names a directory.
2112 if test -n "$CPP" && test -d "$CPP"; then
2115 if test -z "$CPP"; then
2116 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2119 # This must be in double quotes, not single quotes, because CPP may get
2120 # substituted into the Makefile and "${CC-cc}" will confuse make.
2122 # On the NeXT, cc -E runs the code through the compiler's parser,
2123 # not just through cpp.
2124 cat > conftest.
$ac_ext <<EOF
2125 #line 2126 "configure"
2126 #include "confdefs.h"
2130 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131 { (eval echo configure
:2132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2132 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2133 if test -z "$ac_err"; then
2137 echo "configure: failed program was:" >&5
2138 cat conftest.
$ac_ext >&5
2140 CPP
="${CC-cc} -E -traditional-cpp"
2141 cat > conftest.
$ac_ext <<EOF
2142 #line 2143 "configure"
2143 #include "confdefs.h"
2147 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2148 { (eval echo configure
:2149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2149 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2150 if test -z "$ac_err"; then
2154 echo "configure: failed program was:" >&5
2155 cat conftest.
$ac_ext >&5
2157 CPP
="${CC-cc} -nologo -E"
2158 cat > conftest.
$ac_ext <<EOF
2159 #line 2160 "configure"
2160 #include "confdefs.h"
2164 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2165 { (eval echo configure
:2166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2166 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2167 if test -z "$ac_err"; then
2171 echo "configure: failed program was:" >&5
2172 cat conftest.
$ac_ext >&5
2181 ac_cv_prog_CPP
="$CPP"
2183 CPP
="$ac_cv_prog_CPP"
2185 ac_cv_prog_CPP
="$CPP"
2187 echo "$ac_t""$CPP" 1>&6
2189 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2190 echo "configure:2191: checking for ANSI C header files" >&5
2191 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2192 echo $ac_n "(cached) $ac_c" 1>&6
2194 cat > conftest.
$ac_ext <<EOF
2195 #line 2196 "configure"
2196 #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
2207 ac_cv_header_stdc
=yes
2210 echo "configure: failed program was:" >&5
2211 cat conftest.
$ac_ext >&5
2213 ac_cv_header_stdc
=no
2217 if test $ac_cv_header_stdc = yes; then
2218 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2219 cat > conftest.
$ac_ext <<EOF
2220 #line 2221 "configure"
2221 #include "confdefs.h"
2224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2225 egrep "memchr" >/dev
/null
2>&1; then
2229 ac_cv_header_stdc
=no
2235 if test $ac_cv_header_stdc = yes; then
2236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2237 cat > conftest.
$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2243 egrep "free" >/dev
/null
2>&1; then
2247 ac_cv_header_stdc
=no
2253 if test $ac_cv_header_stdc = yes; then
2254 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2255 if test "$cross_compiling" = yes; then
2258 cat > conftest.
$ac_ext <<EOF
2259 #line 2260 "configure"
2260 #include "confdefs.h"
2262 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2263 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2264 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2265 int main () { int i; for (i = 0; i < 256; i++)
2266 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2270 if { (eval echo configure
:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2274 echo "configure: failed program was:" >&5
2275 cat conftest.
$ac_ext >&5
2277 ac_cv_header_stdc
=no
2285 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2286 if test $ac_cv_header_stdc = yes; then
2287 cat >> confdefs.h
<<\EOF
2288 #define STDC_HEADERS 1
2293 for ac_hdr
in arpa
/nameser.h err.h fts.h libutil.h paths.h \
2294 sys
/sysmacros.h util.h
2296 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2297 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2298 echo "configure:2299: checking for $ac_hdr" >&5
2299 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2302 cat > conftest.
$ac_ext <<EOF
2303 #line 2304 "configure"
2304 #include "confdefs.h"
2307 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2308 { (eval echo configure
:2309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2309 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2310 if test -z "$ac_err"; then
2312 eval "ac_cv_header_$ac_safe=yes"
2315 echo "configure: failed program was:" >&5
2316 cat conftest.
$ac_ext >&5
2318 eval "ac_cv_header_$ac_safe=no"
2322 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2323 echo "$ac_t""yes" 1>&6
2324 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2325 cat >> confdefs.h
<<EOF
2326 #define $ac_tr_hdr 1
2330 echo "$ac_t""no" 1>&6
2336 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2337 echo "configure:2338: checking whether time.h and sys/time.h may both be included" >&5
2338 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2341 cat > conftest.
$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2344 #include <sys/types.h>
2345 #include <sys/time.h>
2351 if { (eval echo configure
:2352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2353 ac_cv_header_time
=yes
2355 echo "configure: failed program was:" >&5
2356 cat conftest.
$ac_ext >&5
2358 ac_cv_header_time
=no
2363 echo "$ac_t""$ac_cv_header_time" 1>&6
2364 if test $ac_cv_header_time = yes; then
2365 cat >> confdefs.h
<<\EOF
2366 #define TIME_WITH_SYS_TIME 1
2371 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2372 echo "configure:2373: checking for off_t" >&5
2373 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2376 cat > conftest.
$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 #include <sys/types.h>
2385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2386 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2388 ac_cv_type_off_t
=yes
2396 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2397 if test $ac_cv_type_off_t = no
; then
2398 cat >> confdefs.h
<<\EOF
2404 echo $ac_n "checking size of off_t""... $ac_c" 1>&6
2405 echo "configure:2406: checking size of off_t" >&5
2406 if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2409 if test "$cross_compiling" = yes; then
2410 ac_cv_sizeof_off_t
=0
2412 cat > conftest.
$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2418 FILE *f=fopen("conftestval", "w");
2420 fprintf(f, "%d\n", sizeof(off_t));
2424 if { (eval echo configure
:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2426 ac_cv_sizeof_off_t
=`cat conftestval`
2428 echo "configure: failed program was:" >&5
2429 cat conftest.
$ac_ext >&5
2431 ac_cv_sizeof_off_t
=0
2437 echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6
2438 cat >> confdefs.h
<<EOF
2439 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
2444 echo $ac_n "checking for long long""... $ac_c" 1>&6
2445 echo "configure:2446: checking for long long" >&5
2446 if eval "test \"`echo '$''{'ftp_cv_HAVE_LONG_LONG'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2450 cat > conftest.
$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2454 #include <sys/types.h>
2457 long long X = 2, Y = 1, Z;
2461 if { (eval echo configure
:2462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2463 ftp_cv_HAVE_LONG_LONG
=yes
2465 echo "configure: failed program was:" >&5
2466 cat conftest.
$ac_ext >&5
2468 ftp_cv_HAVE_LONG_LONG
=no
2474 echo "$ac_t""$ftp_cv_HAVE_LONG_LONG" 1>&6
2475 if test "x$ftp_cv_HAVE_LONG_LONG" = "xyes"; then
2477 cat >> confdefs.h
<<\EOF
2478 #define HAVE_LONG_LONG 1
2489 echo $ac_n "checking for in_port_t""... $ac_c" 1>&6
2490 echo "configure:2491: checking for in_port_t" >&5
2491 if eval "test \"`echo '$''{'ftp_cv_HAVE_IN_PORT_T'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2495 cat > conftest.
$ac_ext <<EOF
2496 #line 2497 "configure"
2497 #include "confdefs.h"
2499 #include <sys/types.h>
2500 #include <netinet/in.h>
2505 if { (eval echo configure
:2506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2507 ftp_cv_HAVE_IN_PORT_T
=yes
2509 echo "configure: failed program was:" >&5
2510 cat conftest.
$ac_ext >&5
2512 ftp_cv_HAVE_IN_PORT_T
=no
2518 echo "$ac_t""$ftp_cv_HAVE_IN_PORT_T" 1>&6
2519 if test "x$ftp_cv_HAVE_IN_PORT_T" = "xyes"; then
2520 cat >> confdefs.h
<<\EOF
2521 #define HAVE_IN_PORT_T 1
2531 echo $ac_n "checking for sockaddr_in.sin_len""... $ac_c" 1>&6
2532 echo "configure:2533: checking for sockaddr_in.sin_len" >&5
2533 if eval "test \"`echo '$''{'ftp_cv_HAVE_SOCKADDR_SA_LEN'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2537 cat > conftest.
$ac_ext <<EOF
2538 #line 2539 "configure"
2539 #include "confdefs.h"
2541 #include <sys/types.h>
2542 #include <sys/socket.h>
2543 #include <netinet/in.h>
2546 struct sockaddr_in sin;
2547 int X = sin.sin_len ;
2550 if { (eval echo configure
:2551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2552 ftp_cv_HAVE_SOCKADDR_SA_LEN
=yes
2554 echo "configure: failed program was:" >&5
2555 cat conftest.
$ac_ext >&5
2557 ftp_cv_HAVE_SOCKADDR_SA_LEN
=no
2563 echo "$ac_t""$ftp_cv_HAVE_SOCKADDR_SA_LEN" 1>&6
2564 if test "x$ftp_cv_HAVE_SOCKADDR_SA_LEN" = "xyes"; then
2565 cat >> confdefs.h
<<\EOF
2566 #define HAVE_SOCKADDR_SA_LEN 1
2576 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
2577 echo "configure:2578: checking for socklen_t" >&5
2578 if eval "test \"`echo '$''{'ftp_cv_HAVE_SOCKLEN_T'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2582 cat > conftest.
$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2586 #include <sys/types.h>
2587 #include <sys/socket.h>
2592 if { (eval echo configure
:2593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2594 ftp_cv_HAVE_SOCKLEN_T
=yes
2596 echo "configure: failed program was:" >&5
2597 cat conftest.
$ac_ext >&5
2599 ftp_cv_HAVE_SOCKLEN_T
=no
2605 echo "$ac_t""$ftp_cv_HAVE_SOCKLEN_T" 1>&6
2606 if test "x$ftp_cv_HAVE_SOCKLEN_T" = "xyes"; then
2607 cat >> confdefs.h
<<\EOF
2608 #define HAVE_SOCKLEN_T 1
2617 if test $opt_ipv6 = yes; then
2620 echo $ac_n "checking for AF_INET6""... $ac_c" 1>&6
2621 echo "configure:2622: checking for AF_INET6" >&5
2622 if eval "test \"`echo '$''{'ftp_cv_HAVE_AF_INET6'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2626 cat > conftest.
$ac_ext <<EOF
2627 #line 2628 "configure"
2628 #include "confdefs.h"
2630 #include <sys/types.h>
2631 #include <sys/socket.h>
2636 if { (eval echo configure
:2637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2638 ftp_cv_HAVE_AF_INET6
=yes
2640 echo "configure: failed program was:" >&5
2641 cat conftest.
$ac_ext >&5
2643 ftp_cv_HAVE_AF_INET6
=no
2649 echo "$ac_t""$ftp_cv_HAVE_AF_INET6" 1>&6
2650 if test "x$ftp_cv_HAVE_AF_INET6" = "xyes"; then
2651 cat >> confdefs.h
<<\EOF
2652 #define HAVE_AF_INET6 1
2662 echo $ac_n "checking for struct sockaddr_in6""... $ac_c" 1>&6
2663 echo "configure:2664: checking for struct sockaddr_in6" >&5
2664 if eval "test \"`echo '$''{'ftp_cv_HAVE_SOCKADDR_IN6'+set}'`\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2668 cat > conftest.
$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2672 #include <sys/types.h>
2673 #include <netinet/in.h>
2675 struct sockaddr_in6 X ;
2678 if { (eval echo configure
:2679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2680 ftp_cv_HAVE_SOCKADDR_IN6
=yes
2682 echo "configure: failed program was:" >&5
2683 cat conftest.
$ac_ext >&5
2685 ftp_cv_HAVE_SOCKADDR_IN6
=no
2691 echo "$ac_t""$ftp_cv_HAVE_SOCKADDR_IN6" 1>&6
2692 if test "x$ftp_cv_HAVE_SOCKADDR_IN6" = "xyes"; then
2693 cat >> confdefs.h
<<\EOF
2694 #define HAVE_SOCKADDR_IN6 1
2706 echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
2707 echo "configure:2708: checking for struct addrinfo" >&5
2708 if eval "test \"`echo '$''{'ftp_cv_HAVE_ADDRINFO'+set}'`\" = set"; then
2709 echo $ac_n "(cached) $ac_c" 1>&6
2712 cat > conftest.
$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2716 #include <sys/types.h>
2717 #include <sys/socket.h>
2723 if { (eval echo configure
:2724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2725 ftp_cv_HAVE_ADDRINFO
=yes
2727 echo "configure: failed program was:" >&5
2728 cat conftest.
$ac_ext >&5
2730 ftp_cv_HAVE_ADDRINFO
=no
2736 echo "$ac_t""$ftp_cv_HAVE_ADDRINFO" 1>&6
2737 if test "x$ftp_cv_HAVE_ADDRINFO" = "xyes"; then
2738 cat >> confdefs.h
<<\EOF
2739 #define HAVE_ADDRINFO 1
2749 echo $ac_n "checking for d_namlen in struct dirent""... $ac_c" 1>&6
2750 echo "configure:2751: checking for d_namlen in struct dirent" >&5
2751 if eval "test \"`echo '$''{'ftp_cv_HAVE_D_NAMLEN'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2755 cat > conftest.
$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2760 # include <dirent.h>
2762 # define dirent direct
2763 # if HAVE_SYS_NDIR_H
2764 # include <sys/ndir.h>
2767 # include <sys/dir.h>
2776 int X = dp.d_namlen; ;
2779 if { (eval echo configure
:2780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2781 ftp_cv_HAVE_D_NAMLEN
=yes
2783 echo "configure: failed program was:" >&5
2784 cat conftest.
$ac_ext >&5
2786 ftp_cv_HAVE_D_NAMLEN
=no
2792 echo "$ac_t""$ftp_cv_HAVE_D_NAMLEN" 1>&6
2793 if test "x$ftp_cv_HAVE_D_NAMLEN" = "xyes"; then
2794 cat >> confdefs.h
<<\EOF
2795 #define HAVE_D_NAMLEN 1
2805 echo $ac_n "checking for struct passwd.pw_expire""... $ac_c" 1>&6
2806 echo "configure:2807: checking for struct passwd.pw_expire" >&5
2807 if eval "test \"`echo '$''{'ftp_cv_HAVE_PW_EXPIRE'+set}'`\" = set"; then
2808 echo $ac_n "(cached) $ac_c" 1>&6
2811 cat > conftest.
$ac_ext <<EOF
2812 #line 2813 "configure"
2813 #include "confdefs.h"
2815 #include <sys/types.h>
2819 time_t X = pw.pw_expire ;
2822 if { (eval echo configure
:2823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2824 ftp_cv_HAVE_PW_EXPIRE
=yes
2826 echo "configure: failed program was:" >&5
2827 cat conftest.
$ac_ext >&5
2829 ftp_cv_HAVE_PW_EXPIRE
=no
2835 echo "$ac_t""$ftp_cv_HAVE_PW_EXPIRE" 1>&6
2836 if test "x$ftp_cv_HAVE_PW_EXPIRE" = "xyes"; then
2837 cat >> confdefs.h
<<\EOF
2838 #define HAVE_PW_EXPIRE 1
2847 echo $ac_n "checking for working const""... $ac_c" 1>&6
2848 echo "configure:2849: checking for working const" >&5
2849 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6
2852 cat > conftest.
$ac_ext <<EOF
2853 #line 2854 "configure"
2854 #include "confdefs.h"
2858 /* Ultrix mips cc rejects this. */
2859 typedef int charset[2]; const charset x;
2860 /* SunOS 4.1.1 cc rejects this. */
2861 char const *const *ccp;
2863 /* NEC SVR4.0.2 mips cc rejects this. */
2864 struct point {int x, y;};
2865 static struct point const zero = {0,0};
2866 /* AIX XL C 1.02.0.0 rejects this.
2867 It does not let you subtract one const X* pointer from another in an arm
2868 of an if-expression whose if-part is not a constant expression */
2869 const char *g = "string";
2870 ccp = &g + (g ? g-g : 0);
2871 /* HPUX 7.0 cc rejects these. */
2874 ccp = (char const *const *) p;
2875 { /* SCO 3.2v4 cc rejects this. */
2877 char const *s = 0 ? (char *) 0 : (char const *) 0;
2881 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2883 const int *foo = &x[0];
2886 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2887 typedef const int *iptr;
2891 { /* AIX XL C 1.02.0.0 rejects this saying
2892 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2893 struct s { int j; const int *ap[3]; };
2894 struct s *b; b->j = 5;
2896 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2902 if { (eval echo configure
:2903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2906 echo "configure: failed program was:" >&5
2907 cat conftest.
$ac_ext >&5
2914 echo "$ac_t""$ac_cv_c_const" 1>&6
2915 if test $ac_cv_c_const = no
; then
2916 cat >> confdefs.h
<<\EOF
2924 for ac_func
in err fgetln getaddrinfo getgrouplist getnameinfo \
2925 getusershell inet_net_pton inet_ntop inet_pton mkstemp \
2926 sl_init snprintf strdup strerror strlcat strlcpy strsep \
2929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2930 echo "configure:2931: checking for $ac_func" >&5
2931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2934 cat > conftest.
$ac_ext <<EOF
2935 #line 2936 "configure"
2936 #include "confdefs.h"
2937 /* System header to define __stub macros and hopefully few prototypes,
2938 which can conflict with char $ac_func(); below. */
2940 /* Override any gcc2 internal prototype to avoid an error. */
2941 /* We use char because int might match the return type of a gcc2
2942 builtin and then its argument prototype would still apply. */
2947 /* The GNU C library defines this for functions which it implements
2948 to always fail with ENOSYS. Some functions are actually named
2949 something starting with __ and the normal name is an alias. */
2950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2958 if { (eval echo configure
:2959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2960 eval "ac_cv_func_$ac_func=yes"
2962 echo "configure: failed program was:" >&5
2963 cat conftest.
$ac_ext >&5
2965 eval "ac_cv_func_$ac_func=no"
2970 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2971 echo "$ac_t""yes" 1>&6
2972 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2973 cat >> confdefs.h
<<EOF
2974 #define $ac_tr_func 1
2978 echo "$ac_t""no" 1>&6
2979 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2984 for ac_func
in flock lockf getspnam setlogin setproctitle vfork
2986 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2987 echo "configure:2988: checking for $ac_func" >&5
2988 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2991 cat > conftest.
$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2994 /* System header to define __stub macros and hopefully few prototypes,
2995 which can conflict with char $ac_func(); below. */
2997 /* Override any gcc2 internal prototype to avoid an error. */
2998 /* We use char because int might match the return type of a gcc2
2999 builtin and then its argument prototype would still apply. */
3004 /* The GNU C library defines this for functions which it implements
3005 to always fail with ENOSYS. Some functions are actually named
3006 something starting with __ and the normal name is an alias. */
3007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3015 if { (eval echo configure
:3016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3017 eval "ac_cv_func_$ac_func=yes"
3019 echo "configure: failed program was:" >&5
3020 cat conftest.
$ac_ext >&5
3022 eval "ac_cv_func_$ac_func=no"
3027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3028 echo "$ac_t""yes" 1>&6
3029 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3030 cat >> confdefs.h
<<EOF
3031 #define $ac_tr_func 1
3035 echo "$ac_t""no" 1>&6
3039 if test $ac_cv_lib_util_fparseln != yes; then
3040 for ac_func
in fparseln
3042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3043 echo "configure:3044: checking for $ac_func" >&5
3044 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3045 echo $ac_n "(cached) $ac_c" 1>&6
3047 cat > conftest.
$ac_ext <<EOF
3048 #line 3049 "configure"
3049 #include "confdefs.h"
3050 /* System header to define __stub macros and hopefully few prototypes,
3051 which can conflict with char $ac_func(); below. */
3053 /* Override any gcc2 internal prototype to avoid an error. */
3054 /* We use char because int might match the return type of a gcc2
3055 builtin and then its argument prototype would still apply. */
3060 /* The GNU C library defines this for functions which it implements
3061 to always fail with ENOSYS. Some functions are actually named
3062 something starting with __ and the normal name is an alias. */
3063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3071 if { (eval echo configure
:3072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3073 eval "ac_cv_func_$ac_func=yes"
3075 echo "configure: failed program was:" >&5
3076 cat conftest.
$ac_ext >&5
3078 eval "ac_cv_func_$ac_func=no"
3083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3084 echo "$ac_t""yes" 1>&6
3085 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3086 cat >> confdefs.h
<<EOF
3087 #define $ac_tr_func 1
3091 echo "$ac_t""no" 1>&6
3092 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
3099 LIBOBJS
="$LIBOBJS glob.o"
3102 echo $ac_n "checking for crypt() declaration""... $ac_c" 1>&6
3103 echo "configure:3104: checking for crypt() declaration" >&5
3104 if eval "test \"`echo '$''{'ftp_cv_HAVE_CRYPT_D'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3108 cat > conftest.
$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3114 char *(*X)() = crypt ;
3117 if { (eval echo configure
:3118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3119 ftp_cv_HAVE_CRYPT_D
=yes
3121 echo "configure: failed program was:" >&5
3122 cat conftest.
$ac_ext >&5
3124 ftp_cv_HAVE_CRYPT_D
=no
3130 echo "$ac_t""$ftp_cv_HAVE_CRYPT_D" 1>&6
3131 if test "x$ftp_cv_HAVE_CRYPT_D" = "xyes"; then
3132 cat >> confdefs.h
<<\EOF
3133 #define HAVE_CRYPT_D 1
3143 echo $ac_n "checking for fclose() declaration""... $ac_c" 1>&6
3144 echo "configure:3145: checking for fclose() declaration" >&5
3145 if eval "test \"`echo '$''{'ftp_cv_HAVE_FCLOSE_D'+set}'`\" = set"; then
3146 echo $ac_n "(cached) $ac_c" 1>&6
3149 cat > conftest.
$ac_ext <<EOF
3150 #line 3151 "configure"
3151 #include "confdefs.h"
3155 int (*X)() = fclose ;
3158 if { (eval echo configure
:3159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3160 ftp_cv_HAVE_FCLOSE_D
=yes
3162 echo "configure: failed program was:" >&5
3163 cat conftest.
$ac_ext >&5
3165 ftp_cv_HAVE_FCLOSE_D
=no
3171 echo "$ac_t""$ftp_cv_HAVE_FCLOSE_D" 1>&6
3172 if test "x$ftp_cv_HAVE_FCLOSE_D" = "xyes"; then
3173 cat >> confdefs.h
<<\EOF
3174 #define HAVE_FCLOSE_D 1
3184 echo $ac_n "checking for FNM_CASEFOLD""... $ac_c" 1>&6
3185 echo "configure:3186: checking for FNM_CASEFOLD" >&5
3186 if eval "test \"`echo '$''{'ftp_cv_HAVE_FNM_CASEFOLD'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3190 cat > conftest.
$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3194 #include <fnmatch.h>
3196 int X = FNM_CASEFOLD ;
3199 if { (eval echo configure
:3200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3201 ftp_cv_HAVE_FNM_CASEFOLD
=yes
3203 echo "configure: failed program was:" >&5
3204 cat conftest.
$ac_ext >&5
3206 ftp_cv_HAVE_FNM_CASEFOLD
=no
3212 echo "$ac_t""$ftp_cv_HAVE_FNM_CASEFOLD" 1>&6
3213 if test "x$ftp_cv_HAVE_FNM_CASEFOLD" = "xyes"; then
3214 cat >> confdefs.h
<<\EOF
3215 #define HAVE_FNM_CASEFOLD 1
3219 LIBOBJS
="$LIBOBJS fnmatch.o"
3225 echo $ac_n "checking for optarg declaration""... $ac_c" 1>&6
3226 echo "configure:3227: checking for optarg declaration" >&5
3227 if eval "test \"`echo '$''{'ftp_cv_HAVE_OPTARG_D'+set}'`\" = set"; then
3228 echo $ac_n "(cached) $ac_c" 1>&6
3231 cat > conftest.
$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3241 if { (eval echo configure
:3242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3243 ftp_cv_HAVE_OPTARG_D
=yes
3245 echo "configure: failed program was:" >&5
3246 cat conftest.
$ac_ext >&5
3248 ftp_cv_HAVE_OPTARG_D
=no
3254 echo "$ac_t""$ftp_cv_HAVE_OPTARG_D" 1>&6
3255 if test "x$ftp_cv_HAVE_OPTARG_D" = "xyes"; then
3256 cat >> confdefs.h
<<\EOF
3257 #define HAVE_OPTARG_D 1
3267 echo $ac_n "checking for optind declaration""... $ac_c" 1>&6
3268 echo "configure:3269: checking for optind declaration" >&5
3269 if eval "test \"`echo '$''{'ftp_cv_HAVE_OPTIND_D'+set}'`\" = set"; then
3270 echo $ac_n "(cached) $ac_c" 1>&6
3273 cat > conftest.
$ac_ext <<EOF
3274 #line 3275 "configure"
3275 #include "confdefs.h"
3283 if { (eval echo configure
:3284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3285 ftp_cv_HAVE_OPTIND_D
=yes
3287 echo "configure: failed program was:" >&5
3288 cat conftest.
$ac_ext >&5
3290 ftp_cv_HAVE_OPTIND_D
=no
3296 echo "$ac_t""$ftp_cv_HAVE_OPTIND_D" 1>&6
3297 if test "x$ftp_cv_HAVE_OPTIND_D" = "xyes"; then
3298 cat >> confdefs.h
<<\EOF
3299 #define HAVE_OPTIND_D 1
3309 echo $ac_n "checking for optreset""... $ac_c" 1>&6
3310 echo "configure:3311: checking for optreset" >&5
3311 if eval "test \"`echo '$''{'ftp_cv_HAVE_OPTRESET'+set}'`\" = set"; then
3312 echo $ac_n "(cached) $ac_c" 1>&6
3315 cat > conftest.
$ac_ext <<EOF
3316 #line 3317 "configure"
3317 #include "confdefs.h"
3325 if { (eval echo configure
:3326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3327 ftp_cv_HAVE_OPTRESET
=yes
3329 echo "configure: failed program was:" >&5
3330 cat conftest.
$ac_ext >&5
3332 ftp_cv_HAVE_OPTRESET
=no
3338 echo "$ac_t""$ftp_cv_HAVE_OPTRESET" 1>&6
3339 if test "x$ftp_cv_HAVE_OPTRESET" = "xyes"; then
3340 cat >> confdefs.h
<<\EOF
3341 #define HAVE_OPTRESET 1
3351 echo $ac_n "checking for pclose() declaration""... $ac_c" 1>&6
3352 echo "configure:3353: checking for pclose() declaration" >&5
3353 if eval "test \"`echo '$''{'ftp_cv_HAVE_PCLOSE_D'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3357 cat > conftest.
$ac_ext <<EOF
3358 #line 3359 "configure"
3359 #include "confdefs.h"
3363 int (*X)() = pclose ;
3366 if { (eval echo configure
:3367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3368 ftp_cv_HAVE_PCLOSE_D
=yes
3370 echo "configure: failed program was:" >&5
3371 cat conftest.
$ac_ext >&5
3373 ftp_cv_HAVE_PCLOSE_D
=no
3379 echo "$ac_t""$ftp_cv_HAVE_PCLOSE_D" 1>&6
3380 if test "x$ftp_cv_HAVE_PCLOSE_D" = "xyes"; then
3381 cat >> confdefs.h
<<\EOF
3382 #define HAVE_PCLOSE_D 1
3391 if test $ac_cv_func_getusershell = yes; then
3393 echo $ac_n "checking for getusershell() declaration""... $ac_c" 1>&6
3394 echo "configure:3395: checking for getusershell() declaration" >&5
3395 if eval "test \"`echo '$''{'ftp_cv_HAVE_GETUSERSHELL_D'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3399 cat > conftest.
$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3405 char *(*X)() = getusershell ;
3408 if { (eval echo configure
:3409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3410 ftp_cv_HAVE_GETUSERSHELL_D
=yes
3412 echo "configure: failed program was:" >&5
3413 cat conftest.
$ac_ext >&5
3415 ftp_cv_HAVE_GETUSERSHELL_D
=no
3421 echo "$ac_t""$ftp_cv_HAVE_GETUSERSHELL_D" 1>&6
3422 if test "x$ftp_cv_HAVE_GETUSERSHELL_D" = "xyes"; then
3423 cat >> confdefs.h
<<\EOF
3424 #define HAVE_GETUSERSHELL_D 1
3435 if test $have_long_long = yes -a $ac_cv_sizeof_off_t -ge 8; then
3438 echo $ac_n "checking *printf() support for %lld""... $ac_c" 1>&6
3439 echo "configure:3440: checking *printf() support for %lld" >&5
3440 can_printf_longlong
=no
3441 if test "$cross_compiling" = yes; then
3444 cat > conftest.
$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3451 sprintf(buf, "%lld", 4294967300LL);
3452 return (strcmp(buf, "4294967300"));
3456 if { (eval echo configure
:3457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3459 echo "$ac_t""yes" 1>&6
3460 can_printf_longlong
=yes
3463 echo "configure: failed program was:" >&5
3464 cat conftest.
$ac_ext >&5
3467 echo "$ac_t""no" 1>&6
3474 if test $can_printf_longlong != yes; then
3475 echo $ac_n "checking *printf() support for %qd""... $ac_c" 1>&6
3476 echo "configure:3477: checking *printf() support for %qd" >&5
3477 if test "$cross_compiling" = yes; then
3480 cat > conftest.
$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3487 sprintf(buf, "%qd", 4294967300LL);
3488 return (strcmp(buf, "4294967300"));
3492 if { (eval echo configure
:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3495 echo "$ac_t""yes" 1>&6
3496 can_printf_longlong
=yes
3497 cat >> confdefs.h
<<\EOF
3498 #define HAVE_PRINTF_QD 1
3503 echo "configure: failed program was:" >&5
3504 cat conftest.
$ac_ext >&5
3507 echo "$ac_t""no" 1>&6
3515 if test $can_printf_longlong = yes; then
3516 cat >> confdefs.h
<<\EOF
3517 #define HAVE_QUAD_SUPPORT 1
3520 for ac_func
in strtoll
3522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3523 echo "configure:3524: checking for $ac_func" >&5
3524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3527 cat > conftest.
$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530 /* System header to define __stub macros and hopefully few prototypes,
3531 which can conflict with char $ac_func(); below. */
3533 /* Override any gcc2 internal prototype to avoid an error. */
3534 /* We use char because int might match the return type of a gcc2
3535 builtin and then its argument prototype would still apply. */
3540 /* The GNU C library defines this for functions which it implements
3541 to always fail with ENOSYS. Some functions are actually named
3542 something starting with __ and the normal name is an alias. */
3543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3551 if { (eval echo configure
:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3553 eval "ac_cv_func_$ac_func=yes"
3555 echo "configure: failed program was:" >&5
3556 cat conftest.
$ac_ext >&5
3558 eval "ac_cv_func_$ac_func=no"
3563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3564 echo "$ac_t""yes" 1>&6
3565 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3566 cat >> confdefs.h
<<EOF
3567 #define $ac_tr_func 1
3571 echo "$ac_t""no" 1>&6
3572 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
3582 have_rfc2553_netdb
=no
3583 if test $ac_cv_func_getaddrinfo = yes -a ! -n "$socks"; then
3585 echo $ac_n "checking for AI_NUMERICHOST""... $ac_c" 1>&6
3586 echo "configure:3587: checking for AI_NUMERICHOST" >&5
3587 if eval "test \"`echo '$''{'ftp_cv_have_ai_numerichost'+set}'`\" = set"; then
3588 echo $ac_n "(cached) $ac_c" 1>&6
3591 cat > conftest.
$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3595 #include <sys/types.h>
3596 #include <sys/socket.h>
3599 int X = AI_NUMERICHOST ;
3602 if { (eval echo configure
:3603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3604 ftp_cv_have_ai_numerichost
=yes
3606 echo "configure: failed program was:" >&5
3607 cat conftest.
$ac_ext >&5
3609 ftp_cv_have_ai_numerichost
=no
3615 echo "$ac_t""$ftp_cv_have_ai_numerichost" 1>&6
3616 if test "x$ftp_cv_have_ai_numerichost" = "xyes"; then
3617 have_rfc2553_netdb
=yes
3624 echo $ac_n "checking for working getaddrinfo()""... $ac_c" 1>&6
3625 echo "configure:3626: checking for working getaddrinfo()" >&5
3626 if test $have_rfc2553_netdb = yes; then
3627 cat >> confdefs.h
<<\EOF
3628 #define HAVE_RFC2553_NETDB 1
3631 echo "$ac_t""yes" 1>&6
3633 if test $ac_cv_func_getaddrinfo = yes; then
3634 LIBOBJS
="$LIBOBJS getaddrinfo.o"
3635 echo "$ac_t""no - using local version" 1>&6
3637 echo "$ac_t""using local version" 1>&6
3641 if test $ac_cv_func_sl_init = yes; then
3643 echo $ac_n "checking if sl_add() returns int""... $ac_c" 1>&6
3644 echo "configure:3645: checking if sl_add() returns int" >&5
3645 if eval "test \"`echo '$''{'ftp_cv_INT_SL_ADD'+set}'`\" = set"; then
3646 echo $ac_n "(cached) $ac_c" 1>&6
3649 cat > conftest.
$ac_ext <<EOF
3650 #line 3651 "configure"
3651 #include "confdefs.h"
3653 #include <stringlist.h>
3655 int f = sl_add((StringList *)0, "foo") ;
3658 if { (eval echo configure
:3659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3660 ftp_cv_INT_SL_ADD
=yes
3662 echo "configure: failed program was:" >&5
3663 cat conftest.
$ac_ext >&5
3665 ftp_cv_INT_SL_ADD
=no
3671 echo "$ac_t""$ftp_cv_INT_SL_ADD" 1>&6
3672 if test "x$ftp_cv_INT_SL_ADD" = "xyes"; then
3675 LIBOBJS
="$LIBOBJS sl_init.o"
3683 if test $opt_builtinls = yes; then
3684 for ac_func
in fts_open strmode user_from_uid
3686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3687 echo "configure:3688: checking for $ac_func" >&5
3688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3691 cat > conftest.
$ac_ext <<EOF
3692 #line 3693 "configure"
3693 #include "confdefs.h"
3694 /* System header to define __stub macros and hopefully few prototypes,
3695 which can conflict with char $ac_func(); below. */
3697 /* Override any gcc2 internal prototype to avoid an error. */
3698 /* We use char because int might match the return type of a gcc2
3699 builtin and then its argument prototype would still apply. */
3704 /* The GNU C library defines this for functions which it implements
3705 to always fail with ENOSYS. Some functions are actually named
3706 something starting with __ and the normal name is an alias. */
3707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3715 if { (eval echo configure
:3716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3717 eval "ac_cv_func_$ac_func=yes"
3719 echo "configure: failed program was:" >&5
3720 cat conftest.
$ac_ext >&5
3722 eval "ac_cv_func_$ac_func=no"
3727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3728 echo "$ac_t""yes" 1>&6
3729 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3730 cat >> confdefs.h
<<EOF
3731 #define $ac_tr_func 1
3735 echo "$ac_t""no" 1>&6
3736 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
3741 LSOBJS
="cmp.o ls.o print.o util.o"
3743 cat >> confdefs.h
<<\EOF
3744 #define NO_INTERNAL_LS 1
3751 if test -n "$LIBOBJS"; then
3752 INCLUDES
="$INCLUDES -I\${srcdir}/../libukem"
3753 LDFLAGS
="$LDFLAGS -L../libukem"
3756 LIBDEPENDS
="$LIBDEPENDS ../libukem/libukem.a"
3767 cat > confcache
<<\EOF
3768 # This file is a shell script that caches the results of configure
3769 # tests run on this system so they can be shared between configure
3770 # scripts and configure runs. It is not useful on other systems.
3771 # If it contains results you don't want to keep, you may remove or edit it.
3773 # By default, configure uses ./config.cache as the cache file,
3774 # creating it if it does not exist already. You can give configure
3775 # the --cache-file=FILE option to use a different cache file; that is
3776 # what configure does when it calls configure scripts in
3777 # subdirectories, so they share the cache.
3778 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3779 # config.status only pays attention to the cache file if you give it the
3780 # --recheck option to rerun configure.
3783 # The following way of writing the cache mishandles newlines in values,
3784 # but we know of no workaround that is simple, portable, and efficient.
3785 # So, don't put newlines in cache variables' values.
3786 # Ultrix sh set writes to stderr and can't be redirected directly,
3787 # and sets the high bit in the cache file unless we assign to the vars.
3789 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3791 # `set' does not quote correctly, so add quotes (double-quote substitution
3792 # turns \\\\ into \\, and sed turns \\ into \).
3794 -e "s/'/'\\\\''/g" \
3795 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3798 # `set' quotes correctly as required by POSIX, so do not add quotes.
3799 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3802 if cmp -s $cache_file confcache
; then
3805 if test -w $cache_file; then
3806 echo "updating cache $cache_file"
3807 cat confcache
> $cache_file
3809 echo "not updating unwritable cache $cache_file"
3814 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3816 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3817 # Let make expand exec_prefix.
3818 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3820 # Any assignment to VPATH causes Sun make to only execute
3821 # the first set of double-colon rules, so remove it if not needed.
3822 # If there is a colon in the path, we need to keep it.
3823 if test "x$srcdir" = x.
; then
3824 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3827 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3829 DEFS
=-DHAVE_CONFIG_H
3831 # Without the "./", some shells look in PATH for config.status.
3832 : ${CONFIG_STATUS=./config.status}
3834 echo creating
$CONFIG_STATUS
3835 rm -f $CONFIG_STATUS
3836 cat > $CONFIG_STATUS <<EOF
3838 # Generated automatically by configure.
3839 # Run this file to recreate the current configuration.
3840 # This directory was configured as follows,
3841 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3843 # $0 $ac_configure_args
3845 # Compiler output produced by configure, useful for debugging
3846 # configure, is in ./config.log if it exists.
3848 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3851 case "\$ac_option" in
3852 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3853 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3854 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3855 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3856 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3858 -help | --help | --hel | --he | --h)
3859 echo "\$ac_cs_usage"; exit 0 ;;
3860 *) echo "\$ac_cs_usage"; exit 1 ;;
3864 ac_given_srcdir=$srcdir
3865 ac_given_INSTALL="$INSTALL"
3867 trap 'rm -fr `echo "Makefile libukem/Makefile src/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3869 cat >> $CONFIG_STATUS <<EOF
3871 # Protect against being on the right side of a sed subst in config.status.
3872 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3873 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3877 s%@CFLAGS@%$CFLAGS%g
3878 s%@CPPFLAGS@%$CPPFLAGS%g
3879 s%@CXXFLAGS@%$CXXFLAGS%g
3880 s%@FFLAGS@%$FFLAGS%g
3882 s%@LDFLAGS@%$LDFLAGS%g
3884 s%@exec_prefix@%$exec_prefix%g
3885 s%@prefix@%$prefix%g
3886 s%@program_transform_name@%$program_transform_name%g
3887 s%@bindir@%$bindir%g
3888 s%@sbindir@%$sbindir%g
3889 s%@libexecdir@%$libexecdir%g
3890 s%@datadir@%$datadir%g
3891 s%@sysconfdir@%$sysconfdir%g
3892 s%@sharedstatedir@%$sharedstatedir%g
3893 s%@localstatedir@%$localstatedir%g
3894 s%@libdir@%$libdir%g
3895 s%@includedir@%$includedir%g
3896 s%@oldincludedir@%$oldincludedir%g
3897 s%@infodir@%$infodir%g
3898 s%@mandir@%$mandir%g
3899 s%@SET_MAKE@%$SET_MAKE%g
3902 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3903 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3904 s%@INSTALL_DATA@%$INSTALL_DATA%g
3905 s%@RANLIB@%$RANLIB%g
3909 s%@LIBOBJS@%$LIBOBJS%g
3910 s%@INCLUDES@%$INCLUDES%g
3911 s%@LIBUKEM@%$LIBUKEM%g
3912 s%@LIBDEPENDS@%$LIBDEPENDS%g
3913 s%@LSOBJS@%$LSOBJS%g
3918 cat >> $CONFIG_STATUS <<\EOF
3920 # Split the substitutions into bite-sized pieces for seds with
3921 # small command number limits, like on Digital OSF/1 and HP-UX.
3922 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3923 ac_file
=1 # Number of current file.
3924 ac_beg
=1 # First line for current file.
3925 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3928 while $ac_more_lines; do
3929 if test $ac_beg -gt 1; then
3930 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3932 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3934 if test ! -s conftest.s
$ac_file; then
3936 rm -f conftest.s
$ac_file
3938 if test -z "$ac_sed_cmds"; then
3939 ac_sed_cmds
="sed -f conftest.s$ac_file"
3941 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3943 ac_file
=`expr $ac_file + 1`
3945 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3948 if test -z "$ac_sed_cmds"; then
3953 cat >> $CONFIG_STATUS <<EOF
3955 CONFIG_FILES=\${CONFIG_FILES-"Makefile libukem/Makefile src/Makefile"}
3957 cat >> $CONFIG_STATUS <<\EOF
3958 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3959 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3961 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3962 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3963 *) ac_file_in
="${ac_file}.in" ;;
3966 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3968 # Remove last slash and all that follows it. Not all systems have dirname.
3969 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3970 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3971 # The file is in a subdirectory.
3972 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3973 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3974 # A "../" for each directory in $ac_dir_suffix.
3975 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3977 ac_dir_suffix
= ac_dots
=
3980 case "$ac_given_srcdir" in
3982 if test -z "$ac_dots"; then top_srcdir
=.
3983 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3984 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3986 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3987 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3990 case "$ac_given_INSTALL" in
3991 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3992 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3995 echo creating
"$ac_file"
3997 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3999 *Makefile
*) ac_comsub
="1i\\
4000 # $configure_input" ;;
4004 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4006 s%@configure_input@%$configure_input%g
4007 s%@srcdir@%$srcdir%g
4008 s%@top_srcdir@%$top_srcdir%g
4009 s%@INSTALL@%$INSTALL%g
4010 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4014 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4015 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4017 # ac_d sets the value in "#define NAME VALUE" lines.
4018 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4019 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4022 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4023 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4024 ac_uB
='\([ ]\)%\1#\2define\3'
4027 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4028 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4029 ac_eB
='$%\1#\2define\3'
4033 if test "${CONFIG_HEADERS+set}" != set; then
4035 cat >> $CONFIG_STATUS <<EOF
4036 CONFIG_HEADERS="config.h"
4038 cat >> $CONFIG_STATUS <<\EOF
4040 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4041 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4043 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4044 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4045 *) ac_file_in
="${ac_file}.in" ;;
4048 echo creating
$ac_file
4050 rm -f conftest.frag conftest.
in conftest.out
4051 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4052 cat $ac_file_inputs > conftest.
in
4056 # Transform confdefs.h into a sed script conftest.vals that substitutes
4057 # the proper values into config.h.in to produce config.h. And first:
4058 # Protect against being on the right side of a sed subst in config.status.
4059 # Protect against being in an unquoted here document in config.status.
4061 cat > conftest.hdr
<<\EOF
4064 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4068 sed -n -f conftest.hdr confdefs.h > conftest.vals
4071 # This sed command replaces #undef with comments. This is necessary, for
4072 # example, in the case of _POSIX_SOURCE, which is predefined and required
4073 # on some systems where configure will not decide to define it.
4074 cat >> conftest.vals <<\EOF
4075 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4078 # Break up conftest.vals because some shells have a limit on
4079 # the size of here documents, and old seds have small limits too.
4084 ac_lines=`grep -c . conftest.vals
`
4085 # grep -c gives empty output for an empty file on some AIX systems.
4086 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4087 # Write a limited-size here document to conftest.frag.
4088 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4089 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4091 sed -f conftest.frag conftest.in > conftest.out
4093 mv conftest.out conftest.in
4095 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4097 mv conftest.tail conftest.vals
4101 cat >> $CONFIG_STATUS <<\EOF
4102 rm -f conftest.frag conftest.h
4103 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4104 cat conftest.in >> conftest.h
4106 if cmp -s $ac_file conftest.h 2>/dev/null; then
4107 echo "$ac_file is unchanged"
4110 # Remove last slash and all that follows it. Not all systems have dirname.
4111 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4112 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4113 # The file is in a subdirectory.
4114 test ! -d "$ac_dir" && mkdir "$ac_dir"
4117 mv conftest.h $ac_file
4122 cat >> $CONFIG_STATUS <<EOF
4125 cat >> $CONFIG_STATUS <<\EOF
4129 chmod +x $CONFIG_STATUS
4130 rm -fr confdefs* $ac_clean_files
4131 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1