3 # From configure.in Revision: 1.31
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-editcomplete Turn on command line editing and completion.
28 --disable-editcomplete Turn off command line editing and completion
32 --enable-ipv6 Enable IPv6 support (if your OS supports it).
33 --disable-ipv6 Disable IPv6 support (even if your OS supports it)
36 --with-socks Compile with SOCKS firewall traversal support."
38 --with-socks5[=PATH] Compile with SOCKS5 firewall traversal support."
40 --with-socks4[=PATH] Compile with SOCKS4 firewall traversal support."
42 # Initialize some variables set by options.
43 # The variables have the same names as the options, with
44 # dashes changed to underlines.
46 cache_file=./config.cache
55 program_transform_name=s,x,x,
63 bindir='${exec_prefix}/bin'
64 sbindir='${exec_prefix}/sbin'
65 libexecdir='${exec_prefix}/libexec'
66 datadir='${prefix}/share'
67 sysconfdir='${prefix}/etc'
68 sharedstatedir='${prefix}/com'
69 localstatedir='${prefix}/var'
70 libdir='${exec_prefix}/lib'
71 includedir='${prefix}/include'
72 oldincludedir='/usr/include'
73 infodir='${prefix}/info'
74 mandir='${prefix}/man'
76 # Initialize some other variables.
79 SHELL=${CONFIG_SHELL-/bin/sh}
80 # Maximum number of lines to put in a shell here document.
87 # If the previous option needs an argument, assign it.
88 if test -n "$ac_prev"; then
89 eval "$ac_prev=\$ac_option"
95 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
99 # Accept the important Cygnus configure options, so we can diagnose typos.
103 -bindir | --bindir | --bindi | --bind | --bin | --bi)
105 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
106 bindir="$ac_optarg" ;;
108 -build | --build | --buil | --bui | --bu)
110 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
111 build="$ac_optarg" ;;
113 -cache-file | --cache-file | --cache-fil | --cache-fi \
114 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
115 ac_prev=cache_file ;;
116 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
117 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
118 cache_file="$ac_optarg" ;;
120 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
122 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
124 datadir="$ac_optarg" ;;
126 -disable-* | --disable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}=no" ;;
135 -enable-* | --enable-*)
136 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
137 # Reject names that are not valid shell variable names.
138 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}='$ac_optarg'" ;;
148 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
149 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
150 | --exec | --exe | --ex)
151 ac_prev=exec_prefix ;;
152 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
153 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
154 | --exec=* | --exe=* | --ex=*)
155 exec_prefix="$ac_optarg" ;;
157 -gas | --gas | --ga | --g)
158 # Obsolete; use --with-gas.
161 -help | --help | --hel | --he)
162 # Omit some internal or obsolete options to make the list less imposing.
163 # This message is too long to be a string in the A/UX 3.1 sh.
165 Usage: configure [options] [host]
166 Options: [defaults in brackets after descriptions]
168 --cache-file=FILE cache test results in FILE
169 --help print this message
170 --no-create do not create output files
171 --quiet, --silent do not print \`checking...' messages
172 --version print the version of autoconf that created configure
173 Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203 Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
216 -host | --host | --hos | --ho)
218 -host=* | --host=* | --hos=* | --ho=*)
221 -includedir | --includedir | --includedi | --included | --include \
222 | --includ | --inclu | --incl | --inc)
223 ac_prev=includedir ;;
224 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
225 | --includ=* | --inclu=* | --incl=* | --inc=*)
226 includedir="$ac_optarg" ;;
228 -infodir | --infodir | --infodi | --infod | --info | --inf)
230 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
231 infodir="$ac_optarg" ;;
233 -libdir | --libdir | --libdi | --libd)
235 -libdir=* | --libdir=* | --libdi=* | --libd=*)
236 libdir="$ac_optarg" ;;
238 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
239 | --libexe | --libex | --libe)
240 ac_prev=libexecdir ;;
241 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
242 | --libexe=* | --libex=* | --libe=*)
243 libexecdir="$ac_optarg" ;;
245 -localstatedir | --localstatedir | --localstatedi | --localstated \
246 | --localstate | --localstat | --localsta | --localst \
247 | --locals | --local | --loca | --loc | --lo)
248 ac_prev=localstatedir ;;
249 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
250 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
251 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
252 localstatedir="$ac_optarg" ;;
254 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
256 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
257 mandir="$ac_optarg" ;;
260 # Obsolete; use --without-fp.
263 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
268 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
271 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
272 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
273 | --oldin | --oldi | --old | --ol | --o)
274 ac_prev=oldincludedir ;;
275 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
276 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
277 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
278 oldincludedir="$ac_optarg" ;;
280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
283 prefix="$ac_optarg" ;;
285 -program-prefix | --program-prefix | --program-prefi | --program-pref \
286 | --program-pre | --program-pr | --program-p)
287 ac_prev=program_prefix ;;
288 -program-prefix=* | --program-prefix=* | --program-prefi=* \
289 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
290 program_prefix="$ac_optarg" ;;
292 -program-suffix | --program-suffix | --program-suffi | --program-suff \
293 | --program-suf | --program-su | --program-s)
294 ac_prev=program_suffix ;;
295 -program-suffix=* | --program-suffix=* | --program-suffi=* \
296 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
297 program_suffix="$ac_optarg" ;;
299 -program-transform-name | --program-transform-name \
300 | --program-transform-nam | --program-transform-na \
301 | --program-transform-n | --program-transform- \
302 | --program-transform | --program-transfor \
303 | --program-transfo | --program-transf \
304 | --program-trans | --program-tran \
305 | --progr-tra | --program-tr | --program-t)
306 ac_prev=program_transform_name ;;
307 -program-transform-name=* | --program-transform-name=* \
308 | --program-transform-nam=* | --program-transform-na=* \
309 | --program-transform-n=* | --program-transform-=* \
310 | --program-transform=* | --program-transfor=* \
311 | --program-transfo=* | --program-transf=* \
312 | --program-trans=* | --program-tran=* \
313 | --progr-tra=* | --program-tr=* | --program-t=*)
314 program_transform_name="$ac_optarg" ;;
316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
317 | -silent | --silent | --silen | --sile | --sil)
320 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
322 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
324 sbindir="$ac_optarg" ;;
326 -sharedstatedir | --sharedstatedir | --sharedstatedi \
327 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
328 | --sharedst | --shareds | --shared | --share | --shar \
330 ac_prev=sharedstatedir ;;
331 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
332 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
333 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
335 sharedstatedir="$ac_optarg" ;;
337 -site | --site | --sit)
339 -site=* | --site=* | --sit=*)
342 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
344 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
345 srcdir="$ac_optarg" ;;
347 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
348 | --syscon | --sysco | --sysc | --sys | --sy)
349 ac_prev=sysconfdir ;;
350 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
351 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
352 sysconfdir="$ac_optarg" ;;
354 -target | --target | --targe | --targ | --tar | --ta | --t)
356 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
357 target="$ac_optarg" ;;
359 -v | -verbose | --verbose | --verbos | --verbo | --verb)
362 -version | --version | --versio | --versi | --vers)
363 echo "configure generated by autoconf version 2.13"
367 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}='$ac_optarg'" ;;
379 -without-* | --without-*)
380 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}=no" ;;
389 # Obsolete; use --with-x.
392 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
393 | --x-incl | --x-inc | --x-in | --x-i)
394 ac_prev=x_includes ;;
395 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
396 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
397 x_includes="$ac_optarg" ;;
399 -x-libraries | --x-libraries | --x-librarie | --x-librari \
400 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
401 ac_prev=x_libraries ;;
402 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
403 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
404 x_libraries="$ac_optarg" ;;
406 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
410 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
411 echo "configure: warning: $ac_option: invalid host type" 1>&2
413 if test "x$nonopt" != xNONE; then
414 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
422 if test -n "$ac_prev"; then
423 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
426 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428 # File descriptor usage:
431 # 2 errors and warnings
432 # 3 some systems may open it to /dev/tty
433 # 4 used on the Kubota Titan
434 # 6 checking for... messages and results
435 # 5 compiler messages saved in config.log
436 if test "$silent" = yes; then
444 This file contains any messages produced by compilers while
445 running configure, to aid debugging if configure makes a mistake.
448 # Strip out --no-create and --no-recursion so they do not pile up.
449 # Also quote any args containing shell metacharacters.
454 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
455 | --no-cr | --no-c) ;;
456 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
457 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
458 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
459 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
460 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
465 # Only set these to C if already set. These must not be set unconditionally
466 # because not all systems understand e.g. LANG=C (notably SCO).
467 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
468 # Non-C LC_CTYPE values break the ctype check.
469 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
470 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
471 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
472 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
475 rm -rf conftest* confdefs.h
476 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
479 # A filename unique to this package, relative to the directory that
480 # configure is in, which we can look for to find out if srcdir is correct.
481 ac_unique_file=lukemftp.h
483 # Find the source files, if location was not specified.
484 if test -z "$srcdir"; then
485 ac_srcdir_defaulted=yes
486 # Try the directory containing this script, then its parent.
488 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
489 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
491 if test ! -r $srcdir/$ac_unique_file; then
495 ac_srcdir_defaulted=no
497 if test ! -r $srcdir/$ac_unique_file; then
498 if test "$ac_srcdir_defaulted" = yes; then
499 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
501 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
504 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506 # Prefer explicitly selected file to automatically selected ones.
507 if test -z "$CONFIG_SITE"; then
508 if test "x$prefix" != xNONE; then
509 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
511 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514 for ac_site_file in $CONFIG_SITE; do
515 if test -r "$ac_site_file"; then
516 echo "loading site script $ac_site_file"
521 if test -r "$cache_file"; then
522 echo "loading cache $cache_file"
525 echo "creating cache $cache_file"
530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
531 ac_cpp='$CPP $CPPFLAGS'
532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
534 cross_compiling=$ac_cv_prog_cc_cross
538 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
539 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
540 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
547 ac_n= ac_c='\c' ac_t=
552 if test "$program_transform_name" = s,x,x,; then
553 program_transform_name=
555 # Double any \ or $. echo might interpret backslashes.
556 cat <<\EOF_SED > conftestsed
557 s,\\,\\\\,g; s,\$,$$,g
559 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
562 test "$program_prefix" != NONE &&
563 program_transform_name="s,^,${program_prefix},; $program_transform_name"
564 # Use a double $ so make ignores it.
565 test "$program_suffix" != NONE &&
566 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
568 # sed with no file args requires a program.
569 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
571 # Check whether --enable-editcomplete or --disable-editcomplete was given.
572 if test "${enable_editcomplete+set}" = set; then
573 enableval="$enable_editcomplete"
574 opt_editcomplete=$enableval
579 # Check whether --enable-ipv6 or --disable-ipv6 was given.
580 if test "${enable_ipv6+set}" = set; then
581 enableval="$enable_ipv6"
588 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
589 echo "configure:590: checking whether ${MAKE-make} sets \${MAKE}" >&5
590 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
591 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
592 echo $ac_n "(cached) $ac_c" 1>&6
594 cat > conftestmake <<\EOF
596 @echo 'ac_maketemp="${MAKE}"'
598 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
599 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
600 if test -n "$ac_maketemp"; then
601 eval ac_cv_prog_make_${ac_make}_set=yes
603 eval ac_cv_prog_make_${ac_make}_set=no
607 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
608 echo "$ac_t""yes" 1>&6
611 echo "$ac_t""no" 1>&6
612 SET_MAKE="MAKE=${MAKE-make}"
615 # Extract the first word of "gcc", so it can be a program name with args.
616 set dummy gcc; ac_word=$2
617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
618 echo "configure:619: checking for $ac_word" >&5
619 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
620 echo $ac_n "(cached) $ac_c" 1>&6
622 if test -n "$CC"; then
623 ac_cv_prog_CC="$CC" # Let the user override the test.
625 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
627 for ac_dir in $ac_dummy; do
628 test -z "$ac_dir" && ac_dir=.
629 if test -f $ac_dir/$ac_word; then
638 if test -n "$CC"; then
639 echo "$ac_t""$CC" 1>&6
641 echo "$ac_t""no" 1>&6
644 if test -z "$CC"; then
645 # Extract the first word of "cc", so it can be a program name with args.
646 set dummy cc; ac_word=$2
647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
648 echo "configure:649: checking for $ac_word" >&5
649 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
650 echo $ac_n "(cached) $ac_c" 1>&6
652 if test -n "$CC"; then
653 ac_cv_prog_CC="$CC" # Let the user override the test.
655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
658 for ac_dir in $ac_dummy; do
659 test -z "$ac_dir" && ac_dir=.
660 if test -f $ac_dir/$ac_word; then
661 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
670 if test $ac_prog_rejected = yes; then
671 # We found a bogon in the path, so make sure we never use it.
672 set dummy $ac_cv_prog_CC
674 if test $# -gt 0; then
675 # We chose a different compiler from the bogus one.
676 # However, it has the same basename, so the bogon will be chosen
677 # first if we set CC to just the basename; use the full file name.
679 set dummy "$ac_dir/$ac_word" "$@"
687 if test -n "$CC"; then
688 echo "$ac_t""$CC" 1>&6
690 echo "$ac_t""no" 1>&6
693 if test -z "$CC"; then
696 # Extract the first word of "cl", so it can be a program name with args.
697 set dummy cl; ac_word=$2
698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
699 echo "configure:700: checking for $ac_word" >&5
700 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
701 echo $ac_n "(cached) $ac_c" 1>&6
703 if test -n "$CC"; then
704 ac_cv_prog_CC="$CC" # Let the user override the test.
706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
708 for ac_dir in $ac_dummy; do
709 test -z "$ac_dir" && ac_dir=.
710 if test -f $ac_dir/$ac_word; then
719 if test -n "$CC"; then
720 echo "$ac_t""$CC" 1>&6
722 echo "$ac_t""no" 1>&6
727 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
730 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
731 echo "configure:732: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
735 ac_cpp='$CPP $CPPFLAGS'
736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
738 cross_compiling=$ac_cv_prog_cc_cross
740 cat > conftest.$ac_ext << EOF
742 #line 743 "configure"
743 #include "confdefs.h"
747 if { (eval echo configure:748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
748 ac_cv_prog_cc_works=yes
749 # If we can't run a trivial program, we are probably using a cross compiler.
750 if (./conftest; exit) 2>/dev/null; then
751 ac_cv_prog_cc_cross=no
753 ac_cv_prog_cc_cross=yes
756 echo "configure: failed program was:" >&5
757 cat conftest.$ac_ext >&5
758 ac_cv_prog_cc_works=no
762 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
763 ac_cpp='$CPP $CPPFLAGS'
764 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
765 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
766 cross_compiling=$ac_cv_prog_cc_cross
768 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
769 if test $ac_cv_prog_cc_works = no; then
770 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
772 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
773 echo "configure:774: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
774 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
775 cross_compiling=$ac_cv_prog_cc_cross
777 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
778 echo "configure:779: checking whether we are using GNU C" >&5
779 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
782 cat > conftest.c <<EOF
787 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
794 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
796 if test $ac_cv_prog_gcc = yes; then
802 ac_test_CFLAGS="${CFLAGS+set}"
803 ac_save_CFLAGS="$CFLAGS"
805 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
806 echo "configure:807: checking whether ${CC-cc} accepts -g" >&5
807 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
810 echo 'void f(){}' > conftest.c
811 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
820 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
821 if test "$ac_test_CFLAGS" = set; then
822 CFLAGS="$ac_save_CFLAGS"
823 elif test $ac_cv_prog_cc_g = yes; then
824 if test "$GCC" = yes; then
830 if test "$GCC" = yes; then
837 for ac_prog in mawk gawk nawk awk
839 # Extract the first word of "$ac_prog", so it can be a program name with args.
840 set dummy $ac_prog; ac_word=$2
841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
842 echo "configure:843: checking for $ac_word" >&5
843 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6
846 if test -n "$AWK"; then
847 ac_cv_prog_AWK="$AWK" # Let the user override the test.
849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
851 for ac_dir in $ac_dummy; do
852 test -z "$ac_dir" && ac_dir=.
853 if test -f $ac_dir/$ac_word; then
854 ac_cv_prog_AWK="$ac_prog"
861 AWK="$ac_cv_prog_AWK"
862 if test -n "$AWK"; then
863 echo "$ac_t""$AWK" 1>&6
865 echo "$ac_t""no" 1>&6
868 test -n "$AWK" && break
872 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
873 if test -f $ac_dir/install-sh; then
875 ac_install_sh="$ac_aux_dir/install-sh -c"
877 elif test -f $ac_dir/install.sh; then
879 ac_install_sh="$ac_aux_dir/install.sh -c"
883 if test -z "$ac_aux_dir"; then
884 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
886 ac_config_guess=$ac_aux_dir/config.guess
887 ac_config_sub=$ac_aux_dir/config.sub
888 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
890 # Find a good install program. We prefer a C program (faster),
891 # so one script is as good as another. But avoid the broken or
892 # incompatible versions:
893 # SysV /etc/install, /usr/sbin/install
894 # SunOS /usr/etc/install
897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
900 # ./install, which can be erroneously created by make from ./install.sh.
901 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
902 echo "configure:903: checking for a BSD compatible install" >&5
903 if test -z "$INSTALL"; then
904 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
905 echo $ac_n "(cached) $ac_c" 1>&6
907 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
908 for ac_dir in $PATH; do
909 # Account for people who put trailing slashes in PATH elements.
911 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
913 # OSF1 and SCO ODT 3.0 have their own names for install.
914 # Don't use installbsd from OSF since it installs stuff as root
916 for ac_prog in ginstall scoinst install; do
917 if test -f $ac_dir/$ac_prog; then
918 if test $ac_prog = install &&
919 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
920 # AIX install. It has an incompatible calling convention.
923 ac_cv_path_install="$ac_dir/$ac_prog -c"
934 if test "${ac_cv_path_install+set}" = set; then
935 INSTALL="$ac_cv_path_install"
937 # As a last resort, use the slow shell script. We don't cache a
938 # path for INSTALL within a source directory, because that will
939 # break other packages using the cache if that directory is
940 # removed, or if the path is relative.
941 INSTALL="$ac_install_sh"
944 echo "$ac_t""$INSTALL" 1>&6
946 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
947 # It thinks the first close brace ends the variable substitution.
948 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
950 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
952 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
954 # Extract the first word of "ranlib", so it can be a program name with args.
955 set dummy ranlib; ac_word=$2
956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
957 echo "configure:958: checking for $ac_word" >&5
958 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
961 if test -n "$RANLIB"; then
962 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
966 for ac_dir in $ac_dummy; do
967 test -z "$ac_dir" && ac_dir=.
968 if test -f $ac_dir/$ac_word; then
969 ac_cv_prog_RANLIB="ranlib"
974 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
977 RANLIB="$ac_cv_prog_RANLIB"
978 if test -n "$RANLIB"; then
979 echo "$ac_t""$RANLIB" 1>&6
981 echo "$ac_t""no" 1>&6
986 # Extract the first word of "$ac_prog", so it can be a program name with args.
987 set dummy $ac_prog; ac_word=$2
988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
989 echo "configure:990: checking for $ac_word" >&5
990 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
993 if test -n "$AR"; then
994 ac_cv_prog_AR="$AR" # Let the user override the test.
996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
998 for ac_dir in $ac_dummy; do
999 test -z "$ac_dir" && ac_dir=.
1000 if test -f $ac_dir/$ac_word; then
1001 ac_cv_prog_AR="$ac_prog"
1009 if test -n "$AR"; then
1010 echo "$ac_t""$AR" 1>&6
1012 echo "$ac_t""no" 1>&6
1015 test -n "$AR" && break
1018 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1019 echo "configure:1020: checking how to run the C preprocessor" >&5
1020 # On Suns, sometimes $CPP names a directory.
1021 if test -n "$CPP" && test -d "$CPP"; then
1024 if test -z "$CPP"; then
1025 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1028 # This must be in double quotes, not single quotes, because CPP may get
1029 # substituted into the Makefile and "${CC-cc}" will confuse make.
1031 # On the NeXT, cc -E runs the code through the compiler's parser,
1032 # not just through cpp.
1033 cat > conftest.$ac_ext <<EOF
1034 #line 1035 "configure"
1035 #include "confdefs.h"
1039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1040 { (eval echo configure:1041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1042 if test -z "$ac_err"; then
1046 echo "configure: failed program was:" >&5
1047 cat conftest.$ac_ext >&5
1049 CPP="${CC-cc} -E -traditional-cpp"
1050 cat > conftest.$ac_ext <<EOF
1051 #line 1052 "configure"
1052 #include "confdefs.h"
1056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1057 { (eval echo configure:1058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1059 if test -z "$ac_err"; then
1063 echo "configure: failed program was:" >&5
1064 cat conftest.$ac_ext >&5
1066 CPP="${CC-cc} -nologo -E"
1067 cat > conftest.$ac_ext <<EOF
1068 #line 1069 "configure"
1069 #include "confdefs.h"
1073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1074 { (eval echo configure:1075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1076 if test -z "$ac_err"; then
1080 echo "configure: failed program was:" >&5
1081 cat conftest.$ac_ext >&5
1090 ac_cv_prog_CPP="$CPP"
1092 CPP="$ac_cv_prog_CPP"
1094 ac_cv_prog_CPP="$CPP"
1096 echo "$ac_t""$CPP" 1>&6
1098 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1099 echo "configure:1100: checking for AIX" >&5
1100 cat > conftest.$ac_ext <<EOF
1101 #line 1102 "configure"
1102 #include "confdefs.h"
1108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1109 egrep "yes" >/dev/null 2>&1; then
1111 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1112 #define _ALL_SOURCE 1
1117 echo "$ac_t""no" 1>&6
1124 echo $ac_n "checking for fparseln in -lutil""... $ac_c" 1>&6
1125 echo "configure:1126: checking for fparseln in -lutil" >&5
1126 ac_lib_var=`echo util'_'fparseln | sed 'y%./+-%__p_%'`
1127 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1128 echo $ac_n "(cached) $ac_c" 1>&6
1130 ac_save_LIBS="$LIBS"
1132 cat > conftest.$ac_ext <<EOF
1133 #line 1134 "configure"
1134 #include "confdefs.h"
1135 /* Override any gcc2 internal prototype to avoid an error. */
1136 /* We use char because int might match the return type of a gcc2
1137 builtin and then its argument prototype would still apply. */
1144 if { (eval echo configure:1145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1146 eval "ac_cv_lib_$ac_lib_var=yes"
1148 echo "configure: failed program was:" >&5
1149 cat conftest.$ac_ext >&5
1151 eval "ac_cv_lib_$ac_lib_var=no"
1154 LIBS="$ac_save_LIBS"
1157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1158 echo "$ac_t""yes" 1>&6
1159 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1160 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1161 cat >> confdefs.h <<EOF
1162 #define $ac_tr_lib 1
1168 echo "$ac_t""no" 1>&6
1171 if test $opt_editcomplete = yes; then
1172 echo $ac_n "checking for tgetent in -ltinfo""... $ac_c" 1>&6
1173 echo "configure:1174: checking for tgetent in -ltinfo" >&5
1174 ac_lib_var=`echo tinfo'_'tgetent | sed 'y%./+-%__p_%'`
1175 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1176 echo $ac_n "(cached) $ac_c" 1>&6
1178 ac_save_LIBS="$LIBS"
1179 LIBS="-ltinfo $LIBS"
1180 cat > conftest.$ac_ext <<EOF
1181 #line 1182 "configure"
1182 #include "confdefs.h"
1183 /* Override any gcc2 internal prototype to avoid an error. */
1184 /* We use char because int might match the return type of a gcc2
1185 builtin and then its argument prototype would still apply. */
1192 if { (eval echo configure:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1194 eval "ac_cv_lib_$ac_lib_var=yes"
1196 echo "configure: failed program was:" >&5
1197 cat conftest.$ac_ext >&5
1199 eval "ac_cv_lib_$ac_lib_var=no"
1202 LIBS="$ac_save_LIBS"
1205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1206 echo "$ac_t""yes" 1>&6
1207 ac_tr_lib=HAVE_LIB`echo tinfo | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1208 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1209 cat >> confdefs.h <<EOF
1210 #define $ac_tr_lib 1
1213 LIBS="-ltinfo $LIBS"
1216 echo "$ac_t""no" 1>&6
1217 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
1218 echo "configure:1219: checking for tgetent in -ltermcap" >&5
1219 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
1220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 ac_save_LIBS="$LIBS"
1224 LIBS="-ltermcap $LIBS"
1225 cat > conftest.$ac_ext <<EOF
1226 #line 1227 "configure"
1227 #include "confdefs.h"
1228 /* Override any gcc2 internal prototype to avoid an error. */
1229 /* We use char because int might match the return type of a gcc2
1230 builtin and then its argument prototype would still apply. */
1237 if { (eval echo configure:1238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1239 eval "ac_cv_lib_$ac_lib_var=yes"
1241 echo "configure: failed program was:" >&5
1242 cat conftest.$ac_ext >&5
1244 eval "ac_cv_lib_$ac_lib_var=no"
1247 LIBS="$ac_save_LIBS"
1250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1251 echo "$ac_t""yes" 1>&6
1252 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/^a-zA-Z0-9_/_/g' \
1253 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1254 cat >> confdefs.h <<EOF
1255 #define $ac_tr_lib 1
1258 LIBS="-ltermcap $LIBS"
1261 echo "$ac_t""no" 1>&6
1262 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
1263 echo "configure:1264: checking for tgetent in -lcurses" >&5
1264 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
1265 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1266 echo $ac_n "(cached) $ac_c" 1>&6
1268 ac_save_LIBS="$LIBS"
1269 LIBS="-lcurses $LIBS"
1270 cat > conftest.$ac_ext <<EOF
1271 #line 1272 "configure"
1272 #include "confdefs.h"
1273 /* Override any gcc2 internal prototype to avoid an error. */
1274 /* We use char because int might match the return type of a gcc2
1275 builtin and then its argument prototype would still apply. */
1282 if { (eval echo configure:1283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1284 eval "ac_cv_lib_$ac_lib_var=yes"
1286 echo "configure: failed program was:" >&5
1287 cat conftest.$ac_ext >&5
1289 eval "ac_cv_lib_$ac_lib_var=no"
1292 LIBS="$ac_save_LIBS"
1295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1296 echo "$ac_t""yes" 1>&6
1297 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \
1298 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1299 cat >> confdefs.h <<EOF
1300 #define $ac_tr_lib 1
1303 LIBS="-lcurses $LIBS"
1306 echo "$ac_t""no" 1>&6
1307 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
1308 echo "configure:1309: checking for tgetent in -lncurses" >&5
1309 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
1310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1313 ac_save_LIBS="$LIBS"
1314 LIBS="-lncurses $LIBS"
1315 cat > conftest.$ac_ext <<EOF
1316 #line 1317 "configure"
1317 #include "confdefs.h"
1318 /* Override any gcc2 internal prototype to avoid an error. */
1319 /* We use char because int might match the return type of a gcc2
1320 builtin and then its argument prototype would still apply. */
1327 if { (eval echo configure:1328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1329 eval "ac_cv_lib_$ac_lib_var=yes"
1331 echo "configure: failed program was:" >&5
1332 cat conftest.$ac_ext >&5
1334 eval "ac_cv_lib_$ac_lib_var=no"
1337 LIBS="$ac_save_LIBS"
1340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1341 echo "$ac_t""yes" 1>&6
1342 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/^a-zA-Z0-9_/_/g' \
1343 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1344 cat >> confdefs.h <<EOF
1345 #define $ac_tr_lib 1
1348 LIBS="-lncurses $LIBS"
1351 echo "$ac_t""no" 1>&6
1361 echo $ac_n "checking for library containing el_init""... $ac_c" 1>&6
1362 echo "configure:1363: checking for library containing el_init" >&5
1363 if eval "test \"`echo '$''{'ac_cv_search_el_init'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1366 ac_func_search_save_LIBS="$LIBS"
1367 ac_cv_search_el_init="no"
1368 cat > conftest.$ac_ext <<EOF
1369 #line 1370 "configure"
1370 #include "confdefs.h"
1371 /* Override any gcc2 internal prototype to avoid an error. */
1372 /* We use char because int might match the return type of a gcc2
1373 builtin and then its argument prototype would still apply. */
1380 if { (eval echo configure:1381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1382 ac_cv_search_el_init="none required"
1384 echo "configure: failed program was:" >&5
1385 cat conftest.$ac_ext >&5
1388 test "$ac_cv_search_el_init" = "no" && for i in edit; do
1389 LIBS="-l$i $ac_func_search_save_LIBS"
1390 cat > conftest.$ac_ext <<EOF
1391 #line 1392 "configure"
1392 #include "confdefs.h"
1393 /* Override any gcc2 internal prototype to avoid an error. */
1394 /* We use char because int might match the return type of a gcc2
1395 builtin and then its argument prototype would still apply. */
1402 if { (eval echo configure:1403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1404 ac_cv_search_el_init="-l$i"
1407 echo "configure: failed program was:" >&5
1408 cat conftest.$ac_ext >&5
1412 LIBS="$ac_func_search_save_LIBS"
1415 echo "$ac_t""$ac_cv_search_el_init" 1>&6
1416 if test "$ac_cv_search_el_init" != "no"; then
1417 test "$ac_cv_search_el_init" = "none required" || LIBS="$ac_cv_search_el_init $LIBS"
1424 # Most operating systems have gethostbyname() in the default searched
1425 # libraries (i.e. libc):
1426 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1427 echo "configure:1428: checking for gethostbyname" >&5
1428 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1431 cat > conftest.$ac_ext <<EOF
1432 #line 1433 "configure"
1433 #include "confdefs.h"
1434 /* System header to define __stub macros and hopefully few prototypes,
1435 which can conflict with char gethostbyname(); below. */
1437 /* Override any gcc2 internal prototype to avoid an error. */
1438 /* We use char because int might match the return type of a gcc2
1439 builtin and then its argument prototype would still apply. */
1440 char gethostbyname();
1444 /* The GNU C library defines this for functions which it implements
1445 to always fail with ENOSYS. Some functions are actually named
1446 something starting with __ and the normal name is an alias. */
1447 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1455 if { (eval echo configure:1456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1457 eval "ac_cv_func_gethostbyname=yes"
1459 echo "configure: failed program was:" >&5
1460 cat conftest.$ac_ext >&5
1462 eval "ac_cv_func_gethostbyname=no"
1467 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1468 echo "$ac_t""yes" 1>&6
1471 echo "$ac_t""no" 1>&6
1472 # Some OSes (eg. Solaris) place it in libnsl:
1473 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1474 echo "configure:1475: checking for gethostbyname in -lnsl" >&5
1475 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1476 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1477 echo $ac_n "(cached) $ac_c" 1>&6
1479 ac_save_LIBS="$LIBS"
1481 cat > conftest.$ac_ext <<EOF
1482 #line 1483 "configure"
1483 #include "confdefs.h"
1484 /* Override any gcc2 internal prototype to avoid an error. */
1485 /* We use char because int might match the return type of a gcc2
1486 builtin and then its argument prototype would still apply. */
1487 char gethostbyname();
1493 if { (eval echo configure:1494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1495 eval "ac_cv_lib_$ac_lib_var=yes"
1497 echo "configure: failed program was:" >&5
1498 cat conftest.$ac_ext >&5
1500 eval "ac_cv_lib_$ac_lib_var=no"
1503 LIBS="$ac_save_LIBS"
1506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1507 echo "$ac_t""yes" 1>&6
1508 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
1509 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1510 cat >> confdefs.h <<EOF
1511 #define $ac_tr_lib 1
1517 echo "$ac_t""no" 1>&6
1518 # Some strange OSes (SINIX) have it in libsocket:
1519 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
1520 echo "configure:1521: checking for gethostbyname in -lsocket" >&5
1521 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
1522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1525 ac_save_LIBS="$LIBS"
1526 LIBS="-lsocket $LIBS"
1527 cat > conftest.$ac_ext <<EOF
1528 #line 1529 "configure"
1529 #include "confdefs.h"
1530 /* Override any gcc2 internal prototype to avoid an error. */
1531 /* We use char because int might match the return type of a gcc2
1532 builtin and then its argument prototype would still apply. */
1533 char gethostbyname();
1539 if { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1541 eval "ac_cv_lib_$ac_lib_var=yes"
1543 echo "configure: failed program was:" >&5
1544 cat conftest.$ac_ext >&5
1546 eval "ac_cv_lib_$ac_lib_var=no"
1549 LIBS="$ac_save_LIBS"
1552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1553 echo "$ac_t""yes" 1>&6
1554 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1555 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1556 cat >> confdefs.h <<EOF
1557 #define $ac_tr_lib 1
1560 LIBS="-lsocket $LIBS"
1563 echo "$ac_t""no" 1>&6
1564 # Unfortunately libsocket sometimes depends on libnsl.
1565 # AC_CHECK_LIB's API is essentially broken so the following
1566 # ugliness is necessary:
1567 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
1568 echo "configure:1569: checking for gethostbyname in -lsocket" >&5
1569 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
1570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1573 ac_save_LIBS="$LIBS"
1574 LIBS="-lsocket -lnsl $LIBS"
1575 cat > conftest.$ac_ext <<EOF
1576 #line 1577 "configure"
1577 #include "confdefs.h"
1578 /* Override any gcc2 internal prototype to avoid an error. */
1579 /* We use char because int might match the return type of a gcc2
1580 builtin and then its argument prototype would still apply. */
1581 char gethostbyname();
1587 if { (eval echo configure:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1589 eval "ac_cv_lib_$ac_lib_var=yes"
1591 echo "configure: failed program was:" >&5
1592 cat conftest.$ac_ext >&5
1594 eval "ac_cv_lib_$ac_lib_var=no"
1597 LIBS="$ac_save_LIBS"
1600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1601 echo "$ac_t""yes" 1>&6
1602 LIBS="-lsocket -lnsl $LIBS"
1604 echo "$ac_t""no" 1>&6
1605 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
1606 echo "configure:1607: checking for gethostbyname in -lresolv" >&5
1607 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
1608 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1611 ac_save_LIBS="$LIBS"
1612 LIBS="-lresolv $LIBS"
1613 cat > conftest.$ac_ext <<EOF
1614 #line 1615 "configure"
1615 #include "confdefs.h"
1616 /* Override any gcc2 internal prototype to avoid an error. */
1617 /* We use char because int might match the return type of a gcc2
1618 builtin and then its argument prototype would still apply. */
1619 char gethostbyname();
1625 if { (eval echo configure:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1627 eval "ac_cv_lib_$ac_lib_var=yes"
1629 echo "configure: failed program was:" >&5
1630 cat conftest.$ac_ext >&5
1632 eval "ac_cv_lib_$ac_lib_var=no"
1635 LIBS="$ac_save_LIBS"
1638 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1639 echo "$ac_t""yes" 1>&6
1640 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1641 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1642 cat >> confdefs.h <<EOF
1643 #define $ac_tr_lib 1
1646 LIBS="-lresolv $LIBS"
1649 echo "$ac_t""no" 1>&6
1663 echo $ac_n "checking for socket""... $ac_c" 1>&6
1664 echo "configure:1665: checking for socket" >&5
1665 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1666 echo $ac_n "(cached) $ac_c" 1>&6
1668 cat > conftest.$ac_ext <<EOF
1669 #line 1670 "configure"
1670 #include "confdefs.h"
1671 /* System header to define __stub macros and hopefully few prototypes,
1672 which can conflict with char socket(); below. */
1674 /* Override any gcc2 internal prototype to avoid an error. */
1675 /* We use char because int might match the return type of a gcc2
1676 builtin and then its argument prototype would still apply. */
1681 /* The GNU C library defines this for functions which it implements
1682 to always fail with ENOSYS. Some functions are actually named
1683 something starting with __ and the normal name is an alias. */
1684 #if defined (__stub_socket) || defined (__stub___socket)
1692 if { (eval echo configure:1693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1694 eval "ac_cv_func_socket=yes"
1696 echo "configure: failed program was:" >&5
1697 cat conftest.$ac_ext >&5
1699 eval "ac_cv_func_socket=no"
1704 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1705 echo "$ac_t""yes" 1>&6
1708 echo "$ac_t""no" 1>&6
1709 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1710 echo "configure:1711: checking for socket in -lsocket" >&5
1711 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1712 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1713 echo $ac_n "(cached) $ac_c" 1>&6
1715 ac_save_LIBS="$LIBS"
1716 LIBS="-lsocket $LIBS"
1717 cat > conftest.$ac_ext <<EOF
1718 #line 1719 "configure"
1719 #include "confdefs.h"
1720 /* Override any gcc2 internal prototype to avoid an error. */
1721 /* We use char because int might match the return type of a gcc2
1722 builtin and then its argument prototype would still apply. */
1729 if { (eval echo configure:1730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1731 eval "ac_cv_lib_$ac_lib_var=yes"
1733 echo "configure: failed program was:" >&5
1734 cat conftest.$ac_ext >&5
1736 eval "ac_cv_lib_$ac_lib_var=no"
1739 LIBS="$ac_save_LIBS"
1742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1743 echo "$ac_t""yes" 1>&6
1744 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1745 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1746 cat >> confdefs.h <<EOF
1747 #define $ac_tr_lib 1
1750 LIBS="-lsocket $LIBS"
1753 echo "$ac_t""no" 1>&6
1754 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1755 echo "configure:1756: checking for socket in -lsocket" >&5
1756 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1757 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1758 echo $ac_n "(cached) $ac_c" 1>&6
1760 ac_save_LIBS="$LIBS"
1761 LIBS="-lsocket -lnsl $LIBS"
1762 cat > conftest.$ac_ext <<EOF
1763 #line 1764 "configure"
1764 #include "confdefs.h"
1765 /* Override any gcc2 internal prototype to avoid an error. */
1766 /* We use char because int might match the return type of a gcc2
1767 builtin and then its argument prototype would still apply. */
1774 if { (eval echo configure:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1776 eval "ac_cv_lib_$ac_lib_var=yes"
1778 echo "configure: failed program was:" >&5
1779 cat conftest.$ac_ext >&5
1781 eval "ac_cv_lib_$ac_lib_var=no"
1784 LIBS="$ac_save_LIBS"
1787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1788 echo "$ac_t""yes" 1>&6
1789 LIBS="-lsocket -lnsl $LIBS"
1791 echo "$ac_t""no" 1>&6
1800 echo $ac_n "checking whether to support SOCKS""... $ac_c" 1>&6
1801 echo "configure:1802: checking whether to support SOCKS" >&5
1802 # Check whether --with-socks or --without-socks was given.
1803 if test "${with_socks+set}" = set; then
1804 withval="$with_socks"
1808 echo "$ac_t""no" 1>&6
1811 echo "$ac_t""yes" 1>&6
1812 echo $ac_n "checking for SOCKSconnect in -lsocks5""... $ac_c" 1>&6
1813 echo "configure:1814: checking for SOCKSconnect in -lsocks5" >&5
1814 ac_lib_var=`echo socks5'_'SOCKSconnect | sed 'y%./+-%__p_%'`
1815 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1818 ac_save_LIBS="$LIBS"
1819 LIBS="-lsocks5 $LIBS"
1820 cat > conftest.$ac_ext <<EOF
1821 #line 1822 "configure"
1822 #include "confdefs.h"
1823 /* Override any gcc2 internal prototype to avoid an error. */
1824 /* We use char because int might match the return type of a gcc2
1825 builtin and then its argument prototype would still apply. */
1826 char SOCKSconnect();
1832 if { (eval echo configure:1833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1834 eval "ac_cv_lib_$ac_lib_var=yes"
1836 echo "configure: failed program was:" >&5
1837 cat conftest.$ac_ext >&5
1839 eval "ac_cv_lib_$ac_lib_var=no"
1842 LIBS="$ac_save_LIBS"
1845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1846 echo "$ac_t""yes" 1>&6
1849 LIBS="-lsocks5 $LIBS"
1851 echo "$ac_t""no" 1>&6
1853 echo $ac_n "checking for Rconnect in -lsocks""... $ac_c" 1>&6
1854 echo "configure:1855: checking for Rconnect in -lsocks" >&5
1855 ac_lib_var=`echo socks'_'Rconnect | sed 'y%./+-%__p_%'`
1856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 ac_save_LIBS="$LIBS"
1860 LIBS="-lsocks $LIBS"
1861 cat > conftest.$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1864 /* Override any gcc2 internal prototype to avoid an error. */
1865 /* We use char because int might match the return type of a gcc2
1866 builtin and then its argument prototype would still apply. */
1873 if { (eval echo configure:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1875 eval "ac_cv_lib_$ac_lib_var=yes"
1877 echo "configure: failed program was:" >&5
1878 cat conftest.$ac_ext >&5
1880 eval "ac_cv_lib_$ac_lib_var=no"
1883 LIBS="$ac_save_LIBS"
1886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1887 echo "$ac_t""yes" 1>&6
1890 LIBS="-lsocks $LIBS"
1892 echo "$ac_t""no" 1>&6
1894 { echo "configure: error: Could not find socks library. You must first install socks." 1>&2; exit 1; }
1903 echo "$ac_t""no" 1>&6
1908 if test "x$socks" = "x"; then
1909 echo $ac_n "checking whether to support SOCKS5""... $ac_c" 1>&6
1910 echo "configure:1911: checking whether to support SOCKS5" >&5
1911 # Check whether --with-socks5 or --without-socks5 was given.
1912 if test "${with_socks5+set}" = set; then
1913 withval="$with_socks5"
1917 echo "$ac_t""no" 1>&6
1920 echo "$ac_t""yes" 1>&6
1922 if test "x$withval" = "xyes"; then
1925 if test -d "$withval"; then
1926 if test -d "$withval/include"; then
1927 CFLAGS="$CFLAGS -I$withval/include"
1929 CFLAGS="$CFLAGS -I$withval"
1931 if test -d "$withval/lib"; then
1932 withval="-L$withval/lib -lsocks5"
1934 withval="-L$withval -lsocks5"
1938 LIBS="$withval $LIBS"
1939 # If Socks was compiled with Kerberos support, we will need
1940 # to link against kerberos libraries. Temporarily append
1941 # to LIBS. This is harmless if there is no kerberos support.
1943 LIBS="$LIBS $KERBEROS_LIBS"
1944 cat > conftest.$ac_ext <<EOF
1945 #line 1946 "configure"
1946 #include "confdefs.h"
1952 if { (eval echo configure:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1955 echo "configure: failed program was:" >&5
1956 cat conftest.$ac_ext >&5
1958 { echo "configure: error: Could not find the $withval library. You must first install socks5." 1>&2; exit 1; }
1966 echo "$ac_t""no" 1>&6
1972 if test "x$socks" = "x"; then
1973 echo $ac_n "checking whether to support SOCKS4""... $ac_c" 1>&6
1974 echo "configure:1975: checking whether to support SOCKS4" >&5
1975 # Check whether --with-socks4 or --without-socks4 was given.
1976 if test "${with_socks4+set}" = set; then
1977 withval="$with_socks4"
1981 echo "$ac_t""no" 1>&6
1984 echo "$ac_t""yes" 1>&6
1986 if test "x$withval" = "xyes"; then
1989 if test -d "$withval"; then
1990 withval="-L$withval -lsocks"
1993 LIBS="$withval $LIBS"
1994 cat > conftest.$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
2002 if { (eval echo configure:2003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2005 echo "configure: failed program was:" >&5
2006 cat conftest.$ac_ext >&5
2008 { echo "configure: error: Could not find the $withval library. You must first install socks." 1>&2; exit 1; }
2015 echo "$ac_t""no" 1>&6
2021 if test "x$socks" = "x4"; then
2022 cat >> confdefs.h <<\EOF
2026 cat >> confdefs.h <<\EOF
2030 cat >> confdefs.h <<\EOF
2031 #define connect Rconnect
2034 cat >> confdefs.h <<\EOF
2035 #define getsockname Rgetsockname
2038 cat >> confdefs.h <<\EOF
2042 cat >> confdefs.h <<\EOF
2043 #define accept Raccept
2046 cat >> confdefs.h <<\EOF
2047 #define listen Rlisten
2050 cat >> confdefs.h <<\EOF
2051 #define select Rselect
2056 if test "x$socks" = "x5"; then
2057 cat >> confdefs.h <<\EOF
2061 cat >> confdefs.h <<\EOF
2065 cat >> confdefs.h <<\EOF
2066 #define connect SOCKSconnect
2069 cat >> confdefs.h <<\EOF
2070 #define getsockname SOCKSgetsockname
2073 cat >> confdefs.h <<\EOF
2074 #define getpeername SOCKSgetpeername
2077 cat >> confdefs.h <<\EOF
2078 #define bind SOCKSbind
2081 cat >> confdefs.h <<\EOF
2082 #define accept SOCKSaccept
2085 cat >> confdefs.h <<\EOF
2086 #define listen SOCKSlisten
2089 cat >> confdefs.h <<\EOF
2090 #define select SOCKSselect
2093 cat >> confdefs.h <<\EOF
2094 #define recvfrom SOCKSrecvfrom
2097 cat >> confdefs.h <<\EOF
2098 #define sendto SOCKSsendto
2101 cat >> confdefs.h <<\EOF
2102 #define recv SOCKSrecv
2105 cat >> confdefs.h <<\EOF
2106 #define send SOCKSsend
2109 cat >> confdefs.h <<\EOF
2110 #define read SOCKSread
2113 cat >> confdefs.h <<\EOF
2114 #define write SOCKSwrite
2117 cat >> confdefs.h <<\EOF
2118 #define rresvport SOCKSrresvport
2121 cat >> confdefs.h <<\EOF
2122 #define shutdown SOCKSshutdown
2125 cat >> confdefs.h <<\EOF
2126 #define listen SOCKSlisten
2129 cat >> confdefs.h <<\EOF
2130 #define close SOCKSclose
2133 cat >> confdefs.h <<\EOF
2134 #define dup SOCKSdup
2137 cat >> confdefs.h <<\EOF
2138 #define dup2 SOCKSdup2
2141 cat >> confdefs.h <<\EOF
2142 #define fclose SOCKSfclose
2145 cat >> confdefs.h <<\EOF
2146 #define gethostbyname SOCKSgethostbyname
2155 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2157 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2158 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2159 echo "configure:2160: checking for $ac_hdr that defines DIR" >&5
2160 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2163 cat > conftest.$ac_ext <<EOF
2164 #line 2165 "configure"
2165 #include "confdefs.h"
2166 #include <sys/types.h>
2172 if { (eval echo configure:2173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2174 eval "ac_cv_header_dirent_$ac_safe=yes"
2176 echo "configure: failed program was:" >&5
2177 cat conftest.$ac_ext >&5
2179 eval "ac_cv_header_dirent_$ac_safe=no"
2183 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2184 echo "$ac_t""yes" 1>&6
2185 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2186 cat >> confdefs.h <<EOF
2187 #define $ac_tr_hdr 1
2189 ac_header_dirent=$ac_hdr; break
2191 echo "$ac_t""no" 1>&6
2194 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2195 if test $ac_header_dirent = dirent.h; then
2196 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2197 echo "configure:2198: checking for opendir in -ldir" >&5
2198 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2199 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2202 ac_save_LIBS="$LIBS"
2204 cat > conftest.$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2207 /* Override any gcc2 internal prototype to avoid an error. */
2208 /* We use char because int might match the return type of a gcc2
2209 builtin and then its argument prototype would still apply. */
2216 if { (eval echo configure:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2218 eval "ac_cv_lib_$ac_lib_var=yes"
2220 echo "configure: failed program was:" >&5
2221 cat conftest.$ac_ext >&5
2223 eval "ac_cv_lib_$ac_lib_var=no"
2226 LIBS="$ac_save_LIBS"
2229 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2230 echo "$ac_t""yes" 1>&6
2233 echo "$ac_t""no" 1>&6
2237 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2238 echo "configure:2239: checking for opendir in -lx" >&5
2239 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2243 ac_save_LIBS="$LIBS"
2245 cat > conftest.$ac_ext <<EOF
2246 #line 2247 "configure"
2247 #include "confdefs.h"
2248 /* Override any gcc2 internal prototype to avoid an error. */
2249 /* We use char because int might match the return type of a gcc2
2250 builtin and then its argument prototype would still apply. */
2257 if { (eval echo configure:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2259 eval "ac_cv_lib_$ac_lib_var=yes"
2261 echo "configure: failed program was:" >&5
2262 cat conftest.$ac_ext >&5
2264 eval "ac_cv_lib_$ac_lib_var=no"
2267 LIBS="$ac_save_LIBS"
2270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2271 echo "$ac_t""yes" 1>&6
2274 echo "$ac_t""no" 1>&6
2279 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2280 echo "configure:2281: checking for ANSI C header files" >&5
2281 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2284 cat > conftest.$ac_ext <<EOF
2285 #line 2286 "configure"
2286 #include "confdefs.h"
2292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2293 { (eval echo configure:2294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2295 if test -z "$ac_err"; then
2297 ac_cv_header_stdc=yes
2300 echo "configure: failed program was:" >&5
2301 cat conftest.$ac_ext >&5
2303 ac_cv_header_stdc=no
2307 if test $ac_cv_header_stdc = yes; then
2308 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2309 cat > conftest.$ac_ext <<EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2315 egrep "memchr" >/dev/null 2>&1; then
2319 ac_cv_header_stdc=no
2325 if test $ac_cv_header_stdc = yes; then
2326 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2327 cat > conftest.$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2333 egrep "free" >/dev/null 2>&1; then
2337 ac_cv_header_stdc=no
2343 if test $ac_cv_header_stdc = yes; then
2344 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2345 if test "$cross_compiling" = yes; then
2348 cat > conftest.$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2352 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2353 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2354 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2355 int main () { int i; for (i = 0; i < 256; i++)
2356 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2360 if { (eval echo configure:2361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2364 echo "configure: failed program was:" >&5
2365 cat conftest.$ac_ext >&5
2367 ac_cv_header_stdc=no
2375 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2376 if test $ac_cv_header_stdc = yes; then
2377 cat >> confdefs.h <<\EOF
2378 #define STDC_HEADERS 1
2383 for ac_hdr in err.h regex.h paths.h poll.h sys/poll.h termcap.h util.h vis.h
2385 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2386 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2387 echo "configure:2388: checking for $ac_hdr" >&5
2388 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2389 echo $ac_n "(cached) $ac_c" 1>&6
2391 cat > conftest.$ac_ext <<EOF
2392 #line 2393 "configure"
2393 #include "confdefs.h"
2396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2397 { (eval echo configure:2398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2398 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2399 if test -z "$ac_err"; then
2401 eval "ac_cv_header_$ac_safe=yes"
2404 echo "configure: failed program was:" >&5
2405 cat conftest.$ac_ext >&5
2407 eval "ac_cv_header_$ac_safe=no"
2411 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2412 echo "$ac_t""yes" 1>&6
2413 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2414 cat >> confdefs.h <<EOF
2415 #define $ac_tr_hdr 1
2419 echo "$ac_t""no" 1>&6
2425 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2426 echo "configure:2427: checking whether time.h and sys/time.h may both be included" >&5
2427 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2430 cat > conftest.$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2433 #include <sys/types.h>
2434 #include <sys/time.h>
2440 if { (eval echo configure:2441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2442 ac_cv_header_time=yes
2444 echo "configure: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2447 ac_cv_header_time=no
2452 echo "$ac_t""$ac_cv_header_time" 1>&6
2453 if test $ac_cv_header_time = yes; then
2454 cat >> confdefs.h <<\EOF
2455 #define TIME_WITH_SYS_TIME 1
2460 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2461 echo "configure:2462: checking for off_t" >&5
2462 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2468 #include <sys/types.h>
2474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2475 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2477 ac_cv_type_off_t=yes
2485 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2486 if test $ac_cv_type_off_t = no; then
2487 cat >> confdefs.h <<\EOF
2493 echo $ac_n "checking size of off_t""... $ac_c" 1>&6
2494 echo "configure:2495: checking size of off_t" >&5
2495 if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2498 if test "$cross_compiling" = yes; then
2499 ac_cv_sizeof_off_t=0
2501 cat > conftest.$ac_ext <<EOF
2502 #line 2503 "configure"
2503 #include "confdefs.h"
2507 FILE *f=fopen("conftestval", "w");
2509 fprintf(f, "%d\n", sizeof(off_t));
2513 if { (eval echo configure:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2515 ac_cv_sizeof_off_t=`cat conftestval`
2517 echo "configure: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2520 ac_cv_sizeof_off_t=0
2526 echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6
2527 cat >> confdefs.h <<EOF
2528 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
2533 echo $ac_n "checking for long long""... $ac_c" 1>&6
2534 echo "configure:2535: checking for long long" >&5
2535 if eval "test \"`echo '$''{'ftp_cv_HAVE_LONG_LONG'+set}'`\" = set"; then
2536 echo $ac_n "(cached) $ac_c" 1>&6
2539 cat > conftest.$ac_ext <<EOF
2540 #line 2541 "configure"
2541 #include "confdefs.h"
2543 #include <sys/types.h>
2546 long long X = 2, Y = 1, Z;
2550 if { (eval echo configure:2551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2552 ftp_cv_HAVE_LONG_LONG=yes
2554 echo "configure: failed program was:" >&5
2555 cat conftest.$ac_ext >&5
2557 ftp_cv_HAVE_LONG_LONG=no
2563 echo "$ac_t""$ftp_cv_HAVE_LONG_LONG" 1>&6
2564 if test "x$ftp_cv_HAVE_LONG_LONG" = "xyes"; then
2566 cat >> confdefs.h <<\EOF
2567 #define HAVE_LONG_LONG 1
2578 echo $ac_n "checking for in_port_t""... $ac_c" 1>&6
2579 echo "configure:2580: checking for in_port_t" >&5
2580 if eval "test \"`echo '$''{'ftp_cv_HAVE_IN_PORT_T'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2584 cat > conftest.$ac_ext <<EOF
2585 #line 2586 "configure"
2586 #include "confdefs.h"
2588 #include <sys/types.h>
2589 #include <netinet/in.h>
2594 if { (eval echo configure:2595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2596 ftp_cv_HAVE_IN_PORT_T=yes
2598 echo "configure: failed program was:" >&5
2599 cat conftest.$ac_ext >&5
2601 ftp_cv_HAVE_IN_PORT_T=no
2607 echo "$ac_t""$ftp_cv_HAVE_IN_PORT_T" 1>&6
2608 if test "x$ftp_cv_HAVE_IN_PORT_T" = "xyes"; then
2609 cat >> confdefs.h <<\EOF
2610 #define HAVE_IN_PORT_T 1
2620 echo $ac_n "checking for sockaddr_in.sin_len""... $ac_c" 1>&6
2621 echo "configure:2622: checking for sockaddr_in.sin_len" >&5
2622 if eval "test \"`echo '$''{'ftp_cv_HAVE_SOCKADDR_SA_LEN'+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>
2632 #include <netinet/in.h>
2635 struct sockaddr_in sin;
2636 int X = sin.sin_len ;
2639 if { (eval echo configure:2640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2641 ftp_cv_HAVE_SOCKADDR_SA_LEN=yes
2643 echo "configure: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2646 ftp_cv_HAVE_SOCKADDR_SA_LEN=no
2652 echo "$ac_t""$ftp_cv_HAVE_SOCKADDR_SA_LEN" 1>&6
2653 if test "x$ftp_cv_HAVE_SOCKADDR_SA_LEN" = "xyes"; then
2654 cat >> confdefs.h <<\EOF
2655 #define HAVE_SOCKADDR_SA_LEN 1
2665 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
2666 echo "configure:2667: checking for socklen_t" >&5
2667 if eval "test \"`echo '$''{'ftp_cv_HAVE_SOCKLEN_T'+set}'`\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2671 cat > conftest.$ac_ext <<EOF
2672 #line 2673 "configure"
2673 #include "confdefs.h"
2675 #include <sys/types.h>
2676 #include <sys/socket.h>
2681 if { (eval echo configure:2682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2683 ftp_cv_HAVE_SOCKLEN_T=yes
2685 echo "configure: failed program was:" >&5
2686 cat conftest.$ac_ext >&5
2688 ftp_cv_HAVE_SOCKLEN_T=no
2694 echo "$ac_t""$ftp_cv_HAVE_SOCKLEN_T" 1>&6
2695 if test "x$ftp_cv_HAVE_SOCKLEN_T" = "xyes"; then
2696 cat >> confdefs.h <<\EOF
2697 #define HAVE_SOCKLEN_T 1
2706 if test $opt_ipv6 = yes; then
2709 echo $ac_n "checking for AF_INET6""... $ac_c" 1>&6
2710 echo "configure:2711: checking for AF_INET6" >&5
2711 if eval "test \"`echo '$''{'ftp_cv_HAVE_AF_INET6'+set}'`\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2715 cat > conftest.$ac_ext <<EOF
2716 #line 2717 "configure"
2717 #include "confdefs.h"
2719 #include <sys/types.h>
2720 #include <sys/socket.h>
2725 if { (eval echo configure:2726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2727 ftp_cv_HAVE_AF_INET6=yes
2729 echo "configure: failed program was:" >&5
2730 cat conftest.$ac_ext >&5
2732 ftp_cv_HAVE_AF_INET6=no
2738 echo "$ac_t""$ftp_cv_HAVE_AF_INET6" 1>&6
2739 if test "x$ftp_cv_HAVE_AF_INET6" = "xyes"; then
2740 cat >> confdefs.h <<\EOF
2741 #define HAVE_AF_INET6 1
2751 echo $ac_n "checking for struct sockaddr_in6""... $ac_c" 1>&6
2752 echo "configure:2753: checking for struct sockaddr_in6" >&5
2753 if eval "test \"`echo '$''{'ftp_cv_HAVE_SOCKADDR_IN6'+set}'`\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6
2757 cat > conftest.$ac_ext <<EOF
2758 #line 2759 "configure"
2759 #include "confdefs.h"
2761 #include <sys/types.h>
2762 #include <netinet/in.h>
2764 struct sockaddr_in6 X ;
2767 if { (eval echo configure:2768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2769 ftp_cv_HAVE_SOCKADDR_IN6=yes
2771 echo "configure: failed program was:" >&5
2772 cat conftest.$ac_ext >&5
2774 ftp_cv_HAVE_SOCKADDR_IN6=no
2780 echo "$ac_t""$ftp_cv_HAVE_SOCKADDR_IN6" 1>&6
2781 if test "x$ftp_cv_HAVE_SOCKADDR_IN6" = "xyes"; then
2782 cat >> confdefs.h <<\EOF
2783 #define HAVE_SOCKADDR_IN6 1
2795 echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
2796 echo "configure:2797: checking for struct addrinfo" >&5
2797 if eval "test \"`echo '$''{'ftp_cv_HAVE_ADDRINFO'+set}'`\" = set"; then
2798 echo $ac_n "(cached) $ac_c" 1>&6
2801 cat > conftest.$ac_ext <<EOF
2802 #line 2803 "configure"
2803 #include "confdefs.h"
2805 #include <sys/types.h>
2806 #include <sys/socket.h>
2812 if { (eval echo configure:2813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2814 ftp_cv_HAVE_ADDRINFO=yes
2816 echo "configure: failed program was:" >&5
2817 cat conftest.$ac_ext >&5
2819 ftp_cv_HAVE_ADDRINFO=no
2825 echo "$ac_t""$ftp_cv_HAVE_ADDRINFO" 1>&6
2826 if test "x$ftp_cv_HAVE_ADDRINFO" = "xyes"; then
2827 cat >> confdefs.h <<\EOF
2828 #define HAVE_ADDRINFO 1
2838 echo $ac_n "checking for d_namlen in struct dirent""... $ac_c" 1>&6
2839 echo "configure:2840: checking for d_namlen in struct dirent" >&5
2840 if eval "test \"`echo '$''{'ftp_cv_HAVE_D_NAMLEN'+set}'`\" = set"; then
2841 echo $ac_n "(cached) $ac_c" 1>&6
2844 cat > conftest.$ac_ext <<EOF
2845 #line 2846 "configure"
2846 #include "confdefs.h"
2849 # include <dirent.h>
2851 # define dirent direct
2852 # if HAVE_SYS_NDIR_H
2853 # include <sys/ndir.h>
2856 # include <sys/dir.h>
2865 int X = dp.d_namlen; ;
2868 if { (eval echo configure:2869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2870 ftp_cv_HAVE_D_NAMLEN=yes
2872 echo "configure: failed program was:" >&5
2873 cat conftest.$ac_ext >&5
2875 ftp_cv_HAVE_D_NAMLEN=no
2881 echo "$ac_t""$ftp_cv_HAVE_D_NAMLEN" 1>&6
2882 if test "x$ftp_cv_HAVE_D_NAMLEN" = "xyes"; then
2883 cat >> confdefs.h <<\EOF
2884 #define HAVE_D_NAMLEN 1
2894 echo $ac_n "checking for GLOB_BRACE""... $ac_c" 1>&6
2895 echo "configure:2896: checking for GLOB_BRACE" >&5
2896 if eval "test \"`echo '$''{'ftp_cv_have_glob_brace'+set}'`\" = set"; then
2897 echo $ac_n "(cached) $ac_c" 1>&6
2900 cat > conftest.$ac_ext <<EOF
2901 #line 2902 "configure"
2902 #include "confdefs.h"
2906 int X = GLOB_BRACE ;
2909 if { (eval echo configure:2910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2911 ftp_cv_have_glob_brace=yes
2913 echo "configure: failed program was:" >&5
2914 cat conftest.$ac_ext >&5
2916 ftp_cv_have_glob_brace=no
2922 echo "$ac_t""$ftp_cv_have_glob_brace" 1>&6
2923 if test "x$ftp_cv_have_glob_brace" = "xyes"; then
2932 echo $ac_n "checking for h_errno declaration""... $ac_c" 1>&6
2933 echo "configure:2934: checking for h_errno declaration" >&5
2934 if eval "test \"`echo '$''{'ftp_cv_HAVE_H_ERRNO_D'+set}'`\" = set"; then
2935 echo $ac_n "(cached) $ac_c" 1>&6
2938 cat > conftest.$ac_ext <<EOF
2939 #line 2940 "configure"
2940 #include "confdefs.h"
2947 if { (eval echo configure:2948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2949 ftp_cv_HAVE_H_ERRNO_D=yes
2951 echo "configure: failed program was:" >&5
2952 cat conftest.$ac_ext >&5
2954 ftp_cv_HAVE_H_ERRNO_D=no
2960 echo "$ac_t""$ftp_cv_HAVE_H_ERRNO_D" 1>&6
2961 if test "x$ftp_cv_HAVE_H_ERRNO_D" = "xyes"; then
2962 cat >> confdefs.h <<\EOF
2963 #define HAVE_H_ERRNO_D 1
2973 echo $ac_n "checking for fclose() declaration""... $ac_c" 1>&6
2974 echo "configure:2975: checking for fclose() declaration" >&5
2975 if eval "test \"`echo '$''{'ftp_cv_HAVE_FCLOSE_D'+set}'`\" = set"; then
2976 echo $ac_n "(cached) $ac_c" 1>&6
2979 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2985 int (*X)() = fclose ;
2988 if { (eval echo configure:2989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2990 ftp_cv_HAVE_FCLOSE_D=yes
2992 echo "configure: failed program was:" >&5
2993 cat conftest.$ac_ext >&5
2995 ftp_cv_HAVE_FCLOSE_D=no
3001 echo "$ac_t""$ftp_cv_HAVE_FCLOSE_D" 1>&6
3002 if test "x$ftp_cv_HAVE_FCLOSE_D" = "xyes"; then
3003 cat >> confdefs.h <<\EOF
3004 #define HAVE_FCLOSE_D 1
3014 echo $ac_n "checking for getpass() declaration""... $ac_c" 1>&6
3015 echo "configure:3016: checking for getpass() declaration" >&5
3016 if eval "test \"`echo '$''{'ftp_cv_HAVE_GETPASS_D'+set}'`\" = set"; then
3017 echo $ac_n "(cached) $ac_c" 1>&6
3020 cat > conftest.$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3027 char *(*X)() = getpass ;
3030 if { (eval echo configure:3031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3032 ftp_cv_HAVE_GETPASS_D=yes
3034 echo "configure: failed program was:" >&5
3035 cat conftest.$ac_ext >&5
3037 ftp_cv_HAVE_GETPASS_D=no
3043 echo "$ac_t""$ftp_cv_HAVE_GETPASS_D" 1>&6
3044 if test "x$ftp_cv_HAVE_GETPASS_D" = "xyes"; then
3046 cat >> confdefs.h <<\EOF
3047 #define HAVE_GETPASS_D 1
3057 echo $ac_n "checking for optarg declaration""... $ac_c" 1>&6
3058 echo "configure:3059: checking for optarg declaration" >&5
3059 if eval "test \"`echo '$''{'ftp_cv_HAVE_OPTARG_D'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3063 cat > conftest.$ac_ext <<EOF
3064 #line 3065 "configure"
3065 #include "confdefs.h"
3073 if { (eval echo configure:3074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3075 ftp_cv_HAVE_OPTARG_D=yes
3077 echo "configure: failed program was:" >&5
3078 cat conftest.$ac_ext >&5
3080 ftp_cv_HAVE_OPTARG_D=no
3086 echo "$ac_t""$ftp_cv_HAVE_OPTARG_D" 1>&6
3087 if test "x$ftp_cv_HAVE_OPTARG_D" = "xyes"; then
3088 cat >> confdefs.h <<\EOF
3089 #define HAVE_OPTARG_D 1
3099 echo $ac_n "checking for optind declaration""... $ac_c" 1>&6
3100 echo "configure:3101: checking for optind declaration" >&5
3101 if eval "test \"`echo '$''{'ftp_cv_HAVE_OPTIND_D'+set}'`\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3105 cat > conftest.$ac_ext <<EOF
3106 #line 3107 "configure"
3107 #include "confdefs.h"
3115 if { (eval echo configure:3116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3117 ftp_cv_HAVE_OPTIND_D=yes
3119 echo "configure: failed program was:" >&5
3120 cat conftest.$ac_ext >&5
3122 ftp_cv_HAVE_OPTIND_D=no
3128 echo "$ac_t""$ftp_cv_HAVE_OPTIND_D" 1>&6
3129 if test "x$ftp_cv_HAVE_OPTIND_D" = "xyes"; then
3130 cat >> confdefs.h <<\EOF
3131 #define HAVE_OPTIND_D 1
3141 echo $ac_n "checking for pclose() declaration""... $ac_c" 1>&6
3142 echo "configure:3143: checking for pclose() declaration" >&5
3143 if eval "test \"`echo '$''{'ftp_cv_HAVE_PCLOSE_D'+set}'`\" = set"; then
3144 echo $ac_n "(cached) $ac_c" 1>&6
3147 cat > conftest.$ac_ext <<EOF
3148 #line 3149 "configure"
3149 #include "confdefs.h"
3153 int (*X)() = pclose ;
3156 if { (eval echo configure:3157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3158 ftp_cv_HAVE_PCLOSE_D=yes
3160 echo "configure: failed program was:" >&5
3161 cat conftest.$ac_ext >&5
3163 ftp_cv_HAVE_PCLOSE_D=no
3169 echo "$ac_t""$ftp_cv_HAVE_PCLOSE_D" 1>&6
3170 if test "x$ftp_cv_HAVE_PCLOSE_D" = "xyes"; then
3171 cat >> confdefs.h <<\EOF
3172 #define HAVE_PCLOSE_D 1
3182 for ac_func in err fgetln fparseln getaddrinfo getnameinfo glob inet_ntop \
3183 inet_pton mkstemp sl_init snprintf strdup strerror strlcat \
3184 strlcpy strptime strsep strunvis strvis timegm usleep
3186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3187 echo "configure:3188: checking for $ac_func" >&5
3188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3189 echo $ac_n "(cached) $ac_c" 1>&6
3191 cat > conftest.$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3194 /* System header to define __stub macros and hopefully few prototypes,
3195 which can conflict with char $ac_func(); below. */
3197 /* Override any gcc2 internal prototype to avoid an error. */
3198 /* We use char because int might match the return type of a gcc2
3199 builtin and then its argument prototype would still apply. */
3204 /* The GNU C library defines this for functions which it implements
3205 to always fail with ENOSYS. Some functions are actually named
3206 something starting with __ and the normal name is an alias. */
3207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3215 if { (eval echo configure:3216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3217 eval "ac_cv_func_$ac_func=yes"
3219 echo "configure: failed program was:" >&5
3220 cat conftest.$ac_ext >&5
3222 eval "ac_cv_func_$ac_func=no"
3227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3228 echo "$ac_t""yes" 1>&6
3229 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3230 cat >> confdefs.h <<EOF
3231 #define $ac_tr_func 1
3235 echo "$ac_t""no" 1>&6
3236 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3241 for ac_func in gethostbyname2 getpassphrase getpgrp issetugid memmove poll \
3244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3245 echo "configure:3246: checking for $ac_func" >&5
3246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6
3249 cat > conftest.$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3252 /* System header to define __stub macros and hopefully few prototypes,
3253 which can conflict with char $ac_func(); below. */
3255 /* Override any gcc2 internal prototype to avoid an error. */
3256 /* We use char because int might match the return type of a gcc2
3257 builtin and then its argument prototype would still apply. */
3262 /* The GNU C library defines this for functions which it implements
3263 to always fail with ENOSYS. Some functions are actually named
3264 something starting with __ and the normal name is an alias. */
3265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3273 if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3275 eval "ac_cv_func_$ac_func=yes"
3277 echo "configure: failed program was:" >&5
3278 cat conftest.$ac_ext >&5
3280 eval "ac_cv_func_$ac_func=no"
3285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3286 echo "$ac_t""yes" 1>&6
3287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3288 cat >> confdefs.h <<EOF
3289 #define $ac_tr_func 1
3293 echo "$ac_t""no" 1>&6
3297 if test $ac_cv_func_getpgrp = yes; then
3298 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
3299 echo "configure:3300: checking whether getpgrp takes no argument" >&5
3300 if eval "test \"`echo '$''{'ac_cv_func_getpgrp_void'+set}'`\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3303 if test "$cross_compiling" = yes; then
3304 { echo "configure: error: cannot check getpgrp if cross compiling" 1>&2; exit 1; }
3306 cat > conftest.$ac_ext <<EOF
3307 #line 3308 "configure"
3308 #include "confdefs.h"
3311 * If this system has a BSD-style getpgrp(),
3312 * which takes a pid argument, exit unsuccessfully.
3314 * Snarfed from Chet Ramey's bash pgrp.c test program
3317 #include <sys/types.h>
3320 int pg1, pg2, pg3, pg4;
3321 int ng, np, s, child;
3332 * If all of these values are the same, it's pretty sure that
3333 * we're on a system that ignores getpgrp's first argument.
3335 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
3341 else if (child == 0) {
3344 * If this is Sys V, this will not work; pgrp will be
3345 * set to np because setpgrp just changes a pgrp to be
3346 * the same as the pid.
3349 ng = getpgrp(0); /* Same result for Sys V and BSD */
3362 if { (eval echo configure:3363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3364 ac_cv_func_getpgrp_void=yes
3366 echo "configure: failed program was:" >&5
3367 cat conftest.$ac_ext >&5
3369 ac_cv_func_getpgrp_void=no
3377 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
3378 if test $ac_cv_func_getpgrp_void = yes; then
3379 cat >> confdefs.h <<\EOF
3380 #define GETPGRP_VOID 1
3387 if test $ac_cv_func_strptime = yes; then
3389 echo $ac_n "checking for strptime() declaration""... $ac_c" 1>&6
3390 echo "configure:3391: checking for strptime() declaration" >&5
3391 if eval "test \"`echo '$''{'ftp_cv_HAVE_STRPTIME_D'+set}'`\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3395 cat > conftest.$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3401 char *X = strptime("", "", NULL) ;
3404 if { (eval echo configure:3405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3406 ftp_cv_HAVE_STRPTIME_D=yes
3408 echo "configure: failed program was:" >&5
3409 cat conftest.$ac_ext >&5
3411 ftp_cv_HAVE_STRPTIME_D=no
3417 echo "$ac_t""$ftp_cv_HAVE_STRPTIME_D" 1>&6
3418 if test "x$ftp_cv_HAVE_STRPTIME_D" = "xyes"; then
3419 cat >> confdefs.h <<\EOF
3420 #define HAVE_STRPTIME_D 1
3430 echo $ac_n "checking for GLOB_BRACE support in glob""... $ac_c" 1>&6
3431 echo "configure:3432: checking for GLOB_BRACE support in glob" >&5
3432 if test $ftp_cv_have_glob_brace = yes; then
3433 cat >> confdefs.h <<\EOF
3434 #define HAVE_GLOB_BRACE 1
3437 echo "$ac_t""yes" 1>&6
3439 echo "$ac_t""no, using my own" 1>&6
3440 LIBOBJS="$LIBOBJS glob.o"
3443 if test $have_long_long = yes -a $ac_cv_sizeof_off_t -ge 8; then
3444 cat >> confdefs.h <<\EOF
3445 #define HAVE_QUAD_SUPPORT 1
3448 for ac_func in strtoll
3450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3451 echo "configure:3452: checking for $ac_func" >&5
3452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3455 cat > conftest.$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3458 /* System header to define __stub macros and hopefully few prototypes,
3459 which can conflict with char $ac_func(); below. */
3461 /* Override any gcc2 internal prototype to avoid an error. */
3462 /* We use char because int might match the return type of a gcc2
3463 builtin and then its argument prototype would still apply. */
3468 /* The GNU C library defines this for functions which it implements
3469 to always fail with ENOSYS. Some functions are actually named
3470 something starting with __ and the normal name is an alias. */
3471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3479 if { (eval echo configure:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3481 eval "ac_cv_func_$ac_func=yes"
3483 echo "configure: failed program was:" >&5
3484 cat conftest.$ac_ext >&5
3486 eval "ac_cv_func_$ac_func=no"
3491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3492 echo "$ac_t""yes" 1>&6
3493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3494 cat >> confdefs.h <<EOF
3495 #define $ac_tr_func 1
3499 echo "$ac_t""no" 1>&6
3500 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3505 echo $ac_n "checking snprintf support for %lld""... $ac_c" 1>&6
3506 echo "configure:3507: checking snprintf support for %lld" >&5
3507 if test $ac_cv_func_snprintf = yes; then
3508 if test "$cross_compiling" = yes; then
3510 echo "$ac_t""cross-compiling" 1>&6
3511 have_snprintf_lld=no
3514 cat > conftest.$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3521 snprintf(buf, sizeof(buf), "%lld",
3523 return (strcmp(buf, "4294967300"));
3527 if { (eval echo configure:3528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3530 echo "$ac_t""yes" 1>&6
3531 have_snprintf_lld=yes
3534 echo "configure: failed program was:" >&5
3535 cat conftest.$ac_ext >&5
3538 echo "$ac_t""no" 1>&6
3539 have_snprintf_lld=no
3545 if test $have_snprintf_lld = no; then
3546 LIBOBJS="$LIBOBJS snprintf.o"
3549 echo "$ac_t""using local version" 1>&6
3554 if test $opt_editcomplete = yes; then
3555 if test $have_libedit = yes; then
3557 echo $ac_n "checking for EL_RPROMPT in libedit""... $ac_c" 1>&6
3558 echo "configure:3559: checking for EL_RPROMPT in libedit" >&5
3559 if eval "test \"`echo '$''{'ftp_cv_have_libedit'+set}'`\" = set"; then
3560 echo $ac_n "(cached) $ac_c" 1>&6
3563 cat > conftest.$ac_ext <<EOF
3564 #line 3565 "configure"
3565 #include "confdefs.h"
3567 #include <histedit.h>
3569 int X = EL_RPROMPT ;
3572 if { (eval echo configure:3573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3574 ftp_cv_have_libedit=yes
3576 echo "configure: failed program was:" >&5
3577 cat conftest.$ac_ext >&5
3579 ftp_cv_have_libedit=no
3585 echo "$ac_t""$ftp_cv_have_libedit" 1>&6
3586 if test "x$ftp_cv_have_libedit" = "xyes"; then
3595 echo $ac_n "checking for working libedit""... $ac_c" 1>&6
3596 echo "configure:3597: checking for working libedit" >&5
3597 if test $have_libedit = no; then
3598 echo "$ac_t""no, using my own" 1>&6
3599 INCLUDES="-I\${srcdir}/../libedit $INCLUDES"
3600 LDFLAGS="-L../libedit $LDFLAGS"
3603 LIBDEPENDS="$LIBDEPENDS ../libedit/libedit.a"
3605 echo "$ac_t""yes" 1>&6
3608 CFLAGS="-DNO_EDITCOMPLETE $CFLAGS"
3611 if test $ac_cv_func_sl_init = yes; then
3613 echo $ac_n "checking if sl_add() returns int""... $ac_c" 1>&6
3614 echo "configure:3615: checking if sl_add() returns int" >&5
3615 if eval "test \"`echo '$''{'ftp_cv_INT_SL_ADD'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3619 cat > conftest.$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3623 #include <stringlist.h>
3625 int f = sl_add((StringList *)0, "foo") ;
3628 if { (eval echo configure:3629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3630 ftp_cv_INT_SL_ADD=yes
3632 echo "configure: failed program was:" >&5
3633 cat conftest.$ac_ext >&5
3635 ftp_cv_INT_SL_ADD=no
3641 echo "$ac_t""$ftp_cv_INT_SL_ADD" 1>&6
3642 if test "x$ftp_cv_INT_SL_ADD" = "xyes"; then
3645 LIBOBJS="$LIBOBJS sl_init.o"
3652 have_rfc2553_netdb=no
3653 if test $ac_cv_func_getaddrinfo = yes; then
3655 echo $ac_n "checking for AI_NUMERICHOST""... $ac_c" 1>&6
3656 echo "configure:3657: checking for AI_NUMERICHOST" >&5
3657 if eval "test \"`echo '$''{'ftp_cv_have_ai_numerichost'+set}'`\" = set"; then
3658 echo $ac_n "(cached) $ac_c" 1>&6
3661 cat > conftest.$ac_ext <<EOF
3662 #line 3663 "configure"
3663 #include "confdefs.h"
3665 #include <sys/types.h>
3666 #include <sys/socket.h>
3669 int X = AI_NUMERICHOST ;
3672 if { (eval echo configure:3673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3674 ftp_cv_have_ai_numerichost=yes
3676 echo "configure: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3679 ftp_cv_have_ai_numerichost=no
3685 echo "$ac_t""$ftp_cv_have_ai_numerichost" 1>&6
3686 if test "x$ftp_cv_have_ai_numerichost" = "xyes"; then
3687 have_rfc2553_netdb=yes
3694 if test $have_rfc2553_netdb = yes; then
3695 cat >> confdefs.h <<\EOF
3696 #define HAVE_RFC2553_NETDB 1
3700 if test $ac_cv_func_getaddrinfo = yes; then
3701 LIBOBJS="$LIBOBJS getaddrinfo.o"
3706 if test $ac_cv_header_vis_h = yes; then
3708 echo $ac_n "checking for VIS_WHITE in vis.h""... $ac_c" 1>&6
3709 echo "configure:3710: checking for VIS_WHITE in vis.h" >&5
3710 if eval "test \"`echo '$''{'ftp_cv_have_vis_white'+set}'`\" = set"; then
3711 echo $ac_n "(cached) $ac_c" 1>&6
3714 cat > conftest.$ac_ext <<EOF
3715 #line 3716 "configure"
3716 #include "confdefs.h"
3718 #include <sys/types.h>
3724 if { (eval echo configure:3725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3726 ftp_cv_have_vis_white=yes
3728 echo "configure: failed program was:" >&5
3729 cat conftest.$ac_ext >&5
3731 ftp_cv_have_vis_white=no
3737 echo "$ac_t""$ftp_cv_have_vis_white" 1>&6
3738 if test "x$ftp_cv_have_vis_white" = "xyes"; then
3741 ac_cv_header_vis_h=no
3748 if test -n "$LIBOBJS"; then
3749 INCLUDES="$INCLUDES -I\${srcdir}/../libukem"
3750 LDFLAGS="$LDFLAGS -L../libukem"
3753 LIBDEPENDS="$LIBDEPENDS ../libukem/libukem.a"
3763 cat > confcache <<\EOF
3764 # This file is a shell script that caches the results of configure
3765 # tests run on this system so they can be shared between configure
3766 # scripts and configure runs. It is not useful on other systems.
3767 # If it contains results you don't want to keep, you may remove or edit it.
3769 # By default, configure uses ./config.cache as the cache file,
3770 # creating it if it does not exist already. You can give configure
3771 # the --cache-file=FILE option to use a different cache file; that is
3772 # what configure does when it calls configure scripts in
3773 # subdirectories, so they share the cache.
3774 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3775 # config.status only pays attention to the cache file if you give it the
3776 # --recheck option to rerun configure.
3779 # The following way of writing the cache mishandles newlines in values,
3780 # but we know of no workaround that is simple, portable, and efficient.
3781 # So, don't put newlines in cache variables' values.
3782 # Ultrix sh set writes to stderr and can't be redirected directly,
3783 # and sets the high bit in the cache file unless we assign to the vars.
3785 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3787 # `set' does not quote correctly, so add quotes (double-quote substitution
3788 # turns \\\\ into \\, and sed turns \\ into \).
3790 -e "s/'/'\\\\''/g" \
3791 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3794 # `set' quotes correctly as required by POSIX, so do not add quotes.
3795 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3798 if cmp -s $cache_file confcache; then
3801 if test -w $cache_file; then
3802 echo "updating cache $cache_file"
3803 cat confcache > $cache_file
3805 echo "not updating unwritable cache $cache_file"
3810 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3812 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3813 # Let make expand exec_prefix.
3814 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3816 # Any assignment to VPATH causes Sun make to only execute
3817 # the first set of double-colon rules, so remove it if not needed.
3818 # If there is a colon in the path, we need to keep it.
3819 if test "x$srcdir" = x.; then
3820 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3823 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3825 DEFS=-DHAVE_CONFIG_H
3827 # Without the "./", some shells look in PATH for config.status.
3828 : ${CONFIG_STATUS=./config.status}
3830 echo creating $CONFIG_STATUS
3831 rm -f $CONFIG_STATUS
3832 cat > $CONFIG_STATUS <<EOF
3834 # Generated automatically by configure.
3835 # Run this file to recreate the current configuration.
3836 # This directory was configured as follows,
3837 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3839 # $0 $ac_configure_args
3841 # Compiler output produced by configure, useful for debugging
3842 # configure, is in ./config.log if it exists.
3844 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3847 case "\$ac_option" in
3848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3849 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3850 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3851 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3852 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3854 -help | --help | --hel | --he | --h)
3855 echo "\$ac_cs_usage"; exit 0 ;;
3856 *) echo "\$ac_cs_usage"; exit 1 ;;
3860 ac_given_srcdir=$srcdir
3861 ac_given_INSTALL="$INSTALL"
3863 trap 'rm -fr `echo "Makefile libedit/Makefile libedit/makelist libukem/Makefile \
3864 src/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3866 cat >> $CONFIG_STATUS <<EOF
3868 # Protect against being on the right side of a sed subst in config.status.
3869 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3870 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3874 s%@CFLAGS@%$CFLAGS%g
3875 s%@CPPFLAGS@%$CPPFLAGS%g
3876 s%@CXXFLAGS@%$CXXFLAGS%g
3877 s%@FFLAGS@%$FFLAGS%g
3879 s%@LDFLAGS@%$LDFLAGS%g
3881 s%@exec_prefix@%$exec_prefix%g
3882 s%@prefix@%$prefix%g
3883 s%@program_transform_name@%$program_transform_name%g
3884 s%@bindir@%$bindir%g
3885 s%@sbindir@%$sbindir%g
3886 s%@libexecdir@%$libexecdir%g
3887 s%@datadir@%$datadir%g
3888 s%@sysconfdir@%$sysconfdir%g
3889 s%@sharedstatedir@%$sharedstatedir%g
3890 s%@localstatedir@%$localstatedir%g
3891 s%@libdir@%$libdir%g
3892 s%@includedir@%$includedir%g
3893 s%@oldincludedir@%$oldincludedir%g
3894 s%@infodir@%$infodir%g
3895 s%@mandir@%$mandir%g
3896 s%@SET_MAKE@%$SET_MAKE%g
3899 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3900 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3901 s%@INSTALL_DATA@%$INSTALL_DATA%g
3902 s%@RANLIB@%$RANLIB%g
3905 s%@LIBOBJS@%$LIBOBJS%g
3906 s%@INCLUDES@%$INCLUDES%g
3907 s%@LIBEDIT@%$LIBEDIT%g
3908 s%@LIBUKEM@%$LIBUKEM%g
3909 s%@LIBDEPENDS@%$LIBDEPENDS%g
3914 cat >> $CONFIG_STATUS <<\EOF
3916 # Split the substitutions into bite-sized pieces for seds with
3917 # small command number limits, like on Digital OSF/1 and HP-UX.
3918 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3919 ac_file=1 # Number of current file.
3920 ac_beg=1 # First line for current file.
3921 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3924 while $ac_more_lines; do
3925 if test $ac_beg -gt 1; then
3926 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3928 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3930 if test ! -s conftest.s$ac_file; then
3932 rm -f conftest.s$ac_file
3934 if test -z "$ac_sed_cmds"; then
3935 ac_sed_cmds="sed -f conftest.s$ac_file"
3937 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3939 ac_file=`expr $ac_file + 1`
3941 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3944 if test -z "$ac_sed_cmds"; then
3949 cat >> $CONFIG_STATUS <<EOF
3951 CONFIG_FILES=\${CONFIG_FILES-"Makefile libedit/Makefile libedit/makelist libukem/Makefile \
3954 cat >> $CONFIG_STATUS <<\EOF
3955 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3956 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3958 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3959 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3960 *) ac_file_in="${ac_file}.in" ;;
3963 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3965 # Remove last slash and all that follows it. Not all systems have dirname.
3966 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3967 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3968 # The file is in a subdirectory.
3969 test ! -d "$ac_dir" && mkdir "$ac_dir"
3970 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3971 # A "../" for each directory in $ac_dir_suffix.
3972 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3974 ac_dir_suffix= ac_dots=
3977 case "$ac_given_srcdir" in
3979 if test -z "$ac_dots"; then top_srcdir=.
3980 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3981 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3983 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3984 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3987 case "$ac_given_INSTALL" in
3988 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3989 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3992 echo creating "$ac_file"
3994 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3996 *Makefile*) ac_comsub="1i\\
3997 # $configure_input" ;;
4001 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4003 s%@configure_input@%$configure_input%g
4004 s%@srcdir@%$srcdir%g
4005 s%@top_srcdir@%$top_srcdir%g
4006 s%@INSTALL@%$INSTALL%g
4007 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4011 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4012 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4014 # ac_d sets the value in "#define NAME VALUE" lines.
4015 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4016 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4019 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4020 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4021 ac_uB='\([ ]\)%\1#\2define\3'
4024 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4025 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4026 ac_eB='$%\1#\2define\3'
4030 if test "${CONFIG_HEADERS+set}" != set; then
4032 cat >> $CONFIG_STATUS <<EOF
4033 CONFIG_HEADERS="config.h"
4035 cat >> $CONFIG_STATUS <<\EOF
4037 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4038 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4040 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4041 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4042 *) ac_file_in="${ac_file}.in" ;;
4045 echo creating $ac_file
4047 rm -f conftest.frag conftest.in conftest.out
4048 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4049 cat $ac_file_inputs > conftest.in
4053 # Transform confdefs.h into a sed script conftest.vals that substitutes
4054 # the proper values into config.h.in to produce config.h. And first:
4055 # Protect against being on the right side of a sed subst in config.status.
4056 # Protect against being in an unquoted here document in config.status.
4058 cat > conftest.hdr <<\EOF
4061 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4065 sed -n -f conftest.hdr confdefs.h > conftest.vals
4068 # This sed command replaces #undef with comments. This is necessary, for
4069 # example, in the case of _POSIX_SOURCE, which is predefined and required
4070 # on some systems where configure will not decide to define it.
4071 cat >> conftest.vals <<\EOF
4072 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4075 # Break up conftest.vals because some shells have a limit on
4076 # the size of here documents, and old seds have small limits too.
4081 ac_lines=`grep -c . conftest.vals`
4082 # grep -c gives empty output for an empty file on some AIX systems.
4083 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4084 # Write a limited-size here document to conftest.frag.
4085 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4086 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4088 sed -f conftest.frag conftest.in > conftest.out
4090 mv conftest.out conftest.in
4092 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4094 mv conftest.tail conftest.vals
4098 cat >> $CONFIG_STATUS <<\EOF
4099 rm -f conftest.frag conftest.h
4100 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4101 cat conftest.in >> conftest.h
4103 if cmp -s $ac_file conftest.h 2>/dev/null; then
4104 echo "$ac_file is unchanged"
4107 # Remove last slash and all that follows it. Not all systems have dirname.
4108 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4109 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4110 # The file is in a subdirectory.
4111 test ! -d "$ac_dir" && mkdir "$ac_dir"
4114 mv conftest.h $ac_file
4119 cat >> $CONFIG_STATUS <<EOF
4122 cat >> $CONFIG_STATUS <<\EOF
4126 chmod +x $CONFIG_STATUS
4127 rm -fr confdefs* $ac_clean_files
4128 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1