more removals
[platform/upstream/curl.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-ssl[=DIR]        where to look for SSL [compiler/linker default paths]
16                           DIR points to the SSL installation [/usr/local/ssl]"
17
18 # Initialize some variables set by options.
19 # The variables have the same names as the options, with
20 # dashes changed to underlines.
21 build=NONE
22 cache_file=./config.cache
23 exec_prefix=NONE
24 host=NONE
25 no_create=
26 nonopt=NONE
27 no_recursion=
28 prefix=NONE
29 program_prefix=NONE
30 program_suffix=NONE
31 program_transform_name=s,x,x,
32 silent=
33 site=
34 srcdir=
35 target=NONE
36 verbose=
37 x_includes=NONE
38 x_libraries=NONE
39 bindir='${exec_prefix}/bin'
40 sbindir='${exec_prefix}/sbin'
41 libexecdir='${exec_prefix}/libexec'
42 datadir='${prefix}/share'
43 sysconfdir='${prefix}/etc'
44 sharedstatedir='${prefix}/com'
45 localstatedir='${prefix}/var'
46 libdir='${exec_prefix}/lib'
47 includedir='${prefix}/include'
48 oldincludedir='/usr/include'
49 infodir='${prefix}/info'
50 mandir='${prefix}/man'
51
52 # Initialize some other variables.
53 subdirs=
54 MFLAGS= MAKEFLAGS=
55 SHELL=${CONFIG_SHELL-/bin/sh}
56 # Maximum number of lines to put in a shell here document.
57 ac_max_here_lines=12
58
59 ac_prev=
60 for ac_option
61 do
62
63   # If the previous option needs an argument, assign it.
64   if test -n "$ac_prev"; then
65     eval "$ac_prev=\$ac_option"
66     ac_prev=
67     continue
68   fi
69
70   case "$ac_option" in
71   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
72   *) ac_optarg= ;;
73   esac
74
75   # Accept the important Cygnus configure options, so we can diagnose typos.
76
77   case "$ac_option" in
78
79   -bindir | --bindir | --bindi | --bind | --bin | --bi)
80     ac_prev=bindir ;;
81   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
82     bindir="$ac_optarg" ;;
83
84   -build | --build | --buil | --bui | --bu)
85     ac_prev=build ;;
86   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
87     build="$ac_optarg" ;;
88
89   -cache-file | --cache-file | --cache-fil | --cache-fi \
90   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
91     ac_prev=cache_file ;;
92   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
93   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
94     cache_file="$ac_optarg" ;;
95
96   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
97     ac_prev=datadir ;;
98   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
99   | --da=*)
100     datadir="$ac_optarg" ;;
101
102   -disable-* | --disable-*)
103     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
104     # Reject names that are not valid shell variable names.
105     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
106       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
107     fi
108     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
109     eval "enable_${ac_feature}=no" ;;
110
111   -enable-* | --enable-*)
112     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
113     # Reject names that are not valid shell variable names.
114     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
115       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116     fi
117     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118     case "$ac_option" in
119       *=*) ;;
120       *) ac_optarg=yes ;;
121     esac
122     eval "enable_${ac_feature}='$ac_optarg'" ;;
123
124   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
125   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
126   | --exec | --exe | --ex)
127     ac_prev=exec_prefix ;;
128   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
129   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
130   | --exec=* | --exe=* | --ex=*)
131     exec_prefix="$ac_optarg" ;;
132
133   -gas | --gas | --ga | --g)
134     # Obsolete; use --with-gas.
135     with_gas=yes ;;
136
137   -help | --help | --hel | --he)
138     # Omit some internal or obsolete options to make the list less imposing.
139     # This message is too long to be a string in the A/UX 3.1 sh.
140     cat << EOF
141 Usage: configure [options] [host]
142 Options: [defaults in brackets after descriptions]
143 Configuration:
144   --cache-file=FILE       cache test results in FILE
145   --help                  print this message
146   --no-create             do not create output files
147   --quiet, --silent       do not print \`checking...' messages
148   --version               print the version of autoconf that created configure
149 Directory and file names:
150   --prefix=PREFIX         install architecture-independent files in PREFIX
151                           [$ac_default_prefix]
152   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
153                           [same as prefix]
154   --bindir=DIR            user executables in DIR [EPREFIX/bin]
155   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
156   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
157   --datadir=DIR           read-only architecture-independent data in DIR
158                           [PREFIX/share]
159   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
160   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
161                           [PREFIX/com]
162   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
163   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
164   --includedir=DIR        C header files in DIR [PREFIX/include]
165   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
166   --infodir=DIR           info documentation in DIR [PREFIX/info]
167   --mandir=DIR            man documentation in DIR [PREFIX/man]
168   --srcdir=DIR            find the sources in DIR [configure dir or ..]
169   --program-prefix=PREFIX prepend PREFIX to installed program names
170   --program-suffix=SUFFIX append SUFFIX to installed program names
171   --program-transform-name=PROGRAM
172                           run sed PROGRAM on installed program names
173 EOF
174     cat << EOF
175 Host type:
176   --build=BUILD           configure for building on BUILD [BUILD=HOST]
177   --host=HOST             configure for HOST [guessed]
178   --target=TARGET         configure for TARGET [TARGET=HOST]
179 Features and packages:
180   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
181   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
182   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
183   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
184   --x-includes=DIR        X include files are in DIR
185   --x-libraries=DIR       X library files are in DIR
186 EOF
187     if test -n "$ac_help"; then
188       echo "--enable and --with options recognized:$ac_help"
189     fi
190     exit 0 ;;
191
192   -host | --host | --hos | --ho)
193     ac_prev=host ;;
194   -host=* | --host=* | --hos=* | --ho=*)
195     host="$ac_optarg" ;;
196
197   -includedir | --includedir | --includedi | --included | --include \
198   | --includ | --inclu | --incl | --inc)
199     ac_prev=includedir ;;
200   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
201   | --includ=* | --inclu=* | --incl=* | --inc=*)
202     includedir="$ac_optarg" ;;
203
204   -infodir | --infodir | --infodi | --infod | --info | --inf)
205     ac_prev=infodir ;;
206   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
207     infodir="$ac_optarg" ;;
208
209   -libdir | --libdir | --libdi | --libd)
210     ac_prev=libdir ;;
211   -libdir=* | --libdir=* | --libdi=* | --libd=*)
212     libdir="$ac_optarg" ;;
213
214   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
215   | --libexe | --libex | --libe)
216     ac_prev=libexecdir ;;
217   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
218   | --libexe=* | --libex=* | --libe=*)
219     libexecdir="$ac_optarg" ;;
220
221   -localstatedir | --localstatedir | --localstatedi | --localstated \
222   | --localstate | --localstat | --localsta | --localst \
223   | --locals | --local | --loca | --loc | --lo)
224     ac_prev=localstatedir ;;
225   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
226   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
227   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
228     localstatedir="$ac_optarg" ;;
229
230   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
231     ac_prev=mandir ;;
232   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
233     mandir="$ac_optarg" ;;
234
235   -nfp | --nfp | --nf)
236     # Obsolete; use --without-fp.
237     with_fp=no ;;
238
239   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
240   | --no-cr | --no-c)
241     no_create=yes ;;
242
243   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
244   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
245     no_recursion=yes ;;
246
247   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
248   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
249   | --oldin | --oldi | --old | --ol | --o)
250     ac_prev=oldincludedir ;;
251   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
252   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
253   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
254     oldincludedir="$ac_optarg" ;;
255
256   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
257     ac_prev=prefix ;;
258   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
259     prefix="$ac_optarg" ;;
260
261   -program-prefix | --program-prefix | --program-prefi | --program-pref \
262   | --program-pre | --program-pr | --program-p)
263     ac_prev=program_prefix ;;
264   -program-prefix=* | --program-prefix=* | --program-prefi=* \
265   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
266     program_prefix="$ac_optarg" ;;
267
268   -program-suffix | --program-suffix | --program-suffi | --program-suff \
269   | --program-suf | --program-su | --program-s)
270     ac_prev=program_suffix ;;
271   -program-suffix=* | --program-suffix=* | --program-suffi=* \
272   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
273     program_suffix="$ac_optarg" ;;
274
275   -program-transform-name | --program-transform-name \
276   | --program-transform-nam | --program-transform-na \
277   | --program-transform-n | --program-transform- \
278   | --program-transform | --program-transfor \
279   | --program-transfo | --program-transf \
280   | --program-trans | --program-tran \
281   | --progr-tra | --program-tr | --program-t)
282     ac_prev=program_transform_name ;;
283   -program-transform-name=* | --program-transform-name=* \
284   | --program-transform-nam=* | --program-transform-na=* \
285   | --program-transform-n=* | --program-transform-=* \
286   | --program-transform=* | --program-transfor=* \
287   | --program-transfo=* | --program-transf=* \
288   | --program-trans=* | --program-tran=* \
289   | --progr-tra=* | --program-tr=* | --program-t=*)
290     program_transform_name="$ac_optarg" ;;
291
292   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
293   | -silent | --silent | --silen | --sile | --sil)
294     silent=yes ;;
295
296   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
297     ac_prev=sbindir ;;
298   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
299   | --sbi=* | --sb=*)
300     sbindir="$ac_optarg" ;;
301
302   -sharedstatedir | --sharedstatedir | --sharedstatedi \
303   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
304   | --sharedst | --shareds | --shared | --share | --shar \
305   | --sha | --sh)
306     ac_prev=sharedstatedir ;;
307   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
308   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
309   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
310   | --sha=* | --sh=*)
311     sharedstatedir="$ac_optarg" ;;
312
313   -site | --site | --sit)
314     ac_prev=site ;;
315   -site=* | --site=* | --sit=*)
316     site="$ac_optarg" ;;
317
318   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
319     ac_prev=srcdir ;;
320   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
321     srcdir="$ac_optarg" ;;
322
323   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
324   | --syscon | --sysco | --sysc | --sys | --sy)
325     ac_prev=sysconfdir ;;
326   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
327   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
328     sysconfdir="$ac_optarg" ;;
329
330   -target | --target | --targe | --targ | --tar | --ta | --t)
331     ac_prev=target ;;
332   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
333     target="$ac_optarg" ;;
334
335   -v | -verbose | --verbose | --verbos | --verbo | --verb)
336     verbose=yes ;;
337
338   -version | --version | --versio | --versi | --vers)
339     echo "configure generated by autoconf version 2.13"
340     exit 0 ;;
341
342   -with-* | --with-*)
343     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
344     # Reject names that are not valid shell variable names.
345     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
346       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
347     fi
348     ac_package=`echo $ac_package| sed 's/-/_/g'`
349     case "$ac_option" in
350       *=*) ;;
351       *) ac_optarg=yes ;;
352     esac
353     eval "with_${ac_package}='$ac_optarg'" ;;
354
355   -without-* | --without-*)
356     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
357     # Reject names that are not valid shell variable names.
358     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
359       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360     fi
361     ac_package=`echo $ac_package| sed 's/-/_/g'`
362     eval "with_${ac_package}=no" ;;
363
364   --x)
365     # Obsolete; use --with-x.
366     with_x=yes ;;
367
368   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
369   | --x-incl | --x-inc | --x-in | --x-i)
370     ac_prev=x_includes ;;
371   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
372   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
373     x_includes="$ac_optarg" ;;
374
375   -x-libraries | --x-libraries | --x-librarie | --x-librari \
376   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
377     ac_prev=x_libraries ;;
378   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
379   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
380     x_libraries="$ac_optarg" ;;
381
382   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
383     ;;
384
385   *)
386     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
387       echo "configure: warning: $ac_option: invalid host type" 1>&2
388     fi
389     if test "x$nonopt" != xNONE; then
390       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
391     fi
392     nonopt="$ac_option"
393     ;;
394
395   esac
396 done
397
398 if test -n "$ac_prev"; then
399   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
400 fi
401
402 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
403
404 # File descriptor usage:
405 # 0 standard input
406 # 1 file creation
407 # 2 errors and warnings
408 # 3 some systems may open it to /dev/tty
409 # 4 used on the Kubota Titan
410 # 6 checking for... messages and results
411 # 5 compiler messages saved in config.log
412 if test "$silent" = yes; then
413   exec 6>/dev/null
414 else
415   exec 6>&1
416 fi
417 exec 5>./config.log
418
419 echo "\
420 This file contains any messages produced by compilers while
421 running configure, to aid debugging if configure makes a mistake.
422 " 1>&5
423
424 # Strip out --no-create and --no-recursion so they do not pile up.
425 # Also quote any args containing shell metacharacters.
426 ac_configure_args=
427 for ac_arg
428 do
429   case "$ac_arg" in
430   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
431   | --no-cr | --no-c) ;;
432   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
433   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
434   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
435   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
436   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
437   esac
438 done
439
440 # NLS nuisances.
441 # Only set these to C if already set.  These must not be set unconditionally
442 # because not all systems understand e.g. LANG=C (notably SCO).
443 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
444 # Non-C LC_CTYPE values break the ctype check.
445 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
446 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
447 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
448 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
449
450 # confdefs.h avoids OS command line length limits that DEFS can exceed.
451 rm -rf conftest* confdefs.h
452 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
453 echo > confdefs.h
454
455 # A filename unique to this package, relative to the directory that
456 # configure is in, which we can look for to find out if srcdir is correct.
457 ac_unique_file=lib/urldata.h
458
459 # Find the source files, if location was not specified.
460 if test -z "$srcdir"; then
461   ac_srcdir_defaulted=yes
462   # Try the directory containing this script, then its parent.
463   ac_prog=$0
464   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
465   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
466   srcdir=$ac_confdir
467   if test ! -r $srcdir/$ac_unique_file; then
468     srcdir=..
469   fi
470 else
471   ac_srcdir_defaulted=no
472 fi
473 if test ! -r $srcdir/$ac_unique_file; then
474   if test "$ac_srcdir_defaulted" = yes; then
475     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
476   else
477     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
478   fi
479 fi
480 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
481
482 # Prefer explicitly selected file to automatically selected ones.
483 if test -z "$CONFIG_SITE"; then
484   if test "x$prefix" != xNONE; then
485     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
486   else
487     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
488   fi
489 fi
490 for ac_site_file in $CONFIG_SITE; do
491   if test -r "$ac_site_file"; then
492     echo "loading site script $ac_site_file"
493     . "$ac_site_file"
494   fi
495 done
496
497 if test -r "$cache_file"; then
498   echo "loading cache $cache_file"
499   . $cache_file
500 else
501   echo "creating cache $cache_file"
502   > $cache_file
503 fi
504
505 ac_ext=c
506 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
507 ac_cpp='$CPP $CPPFLAGS'
508 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
509 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
510 cross_compiling=$ac_cv_prog_cc_cross
511
512 ac_exeext=
513 ac_objext=o
514 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
515   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
516   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
517     ac_n= ac_c='
518 ' ac_t='        '
519   else
520     ac_n=-n ac_c= ac_t=
521   fi
522 else
523   ac_n= ac_c='\c' ac_t=
524 fi
525
526
527
528
529
530 ac_aux_dir=
531 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
532   if test -f $ac_dir/install-sh; then
533     ac_aux_dir=$ac_dir
534     ac_install_sh="$ac_aux_dir/install-sh -c"
535     break
536   elif test -f $ac_dir/install.sh; then
537     ac_aux_dir=$ac_dir
538     ac_install_sh="$ac_aux_dir/install.sh -c"
539     break
540   fi
541 done
542 if test -z "$ac_aux_dir"; then
543   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
544 fi
545 ac_config_guess=$ac_aux_dir/config.guess
546 ac_config_sub=$ac_aux_dir/config.sub
547 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
548
549 # Find a good install program.  We prefer a C program (faster),
550 # so one script is as good as another.  But avoid the broken or
551 # incompatible versions:
552 # SysV /etc/install, /usr/sbin/install
553 # SunOS /usr/etc/install
554 # IRIX /sbin/install
555 # AIX /bin/install
556 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
557 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
558 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
559 # ./install, which can be erroneously created by make from ./install.sh.
560 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
561 echo "configure:562: checking for a BSD compatible install" >&5
562 if test -z "$INSTALL"; then
563 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
564   echo $ac_n "(cached) $ac_c" 1>&6
565 else
566     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
567   for ac_dir in $PATH; do
568     # Account for people who put trailing slashes in PATH elements.
569     case "$ac_dir/" in
570     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
571     *)
572       # OSF1 and SCO ODT 3.0 have their own names for install.
573       # Don't use installbsd from OSF since it installs stuff as root
574       # by default.
575       for ac_prog in ginstall scoinst install; do
576         if test -f $ac_dir/$ac_prog; then
577           if test $ac_prog = install &&
578             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
579             # AIX install.  It has an incompatible calling convention.
580             :
581           else
582             ac_cv_path_install="$ac_dir/$ac_prog -c"
583             break 2
584           fi
585         fi
586       done
587       ;;
588     esac
589   done
590   IFS="$ac_save_IFS"
591
592 fi
593   if test "${ac_cv_path_install+set}" = set; then
594     INSTALL="$ac_cv_path_install"
595   else
596     # As a last resort, use the slow shell script.  We don't cache a
597     # path for INSTALL within a source directory, because that will
598     # break other packages using the cache if that directory is
599     # removed, or if the path is relative.
600     INSTALL="$ac_install_sh"
601   fi
602 fi
603 echo "$ac_t""$INSTALL" 1>&6
604
605 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
606 # It thinks the first close brace ends the variable substitution.
607 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
608
609 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
610
611 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
612
613 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
614 echo "configure:615: checking whether build environment is sane" >&5
615 # Just in case
616 sleep 1
617 echo timestamp > conftestfile
618 # Do `set' in a subshell so we don't clobber the current shell's
619 # arguments.  Must try -L first in case configure is actually a
620 # symlink; some systems play weird games with the mod time of symlinks
621 # (eg FreeBSD returns the mod time of the symlink's containing
622 # directory).
623 if (
624    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
625    if test "$*" = "X"; then
626       # -L didn't work.
627       set X `ls -t $srcdir/configure conftestfile`
628    fi
629    if test "$*" != "X $srcdir/configure conftestfile" \
630       && test "$*" != "X conftestfile $srcdir/configure"; then
631
632       # If neither matched, then we have a broken ls.  This can happen
633       # if, for instance, CONFIG_SHELL is bash and it inherits a
634       # broken ls alias from the environment.  This has actually
635       # happened.  Such a system could not be considered "sane".
636       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
637 alias in your environment" 1>&2; exit 1; }
638    fi
639
640    test "$2" = conftestfile
641    )
642 then
643    # Ok.
644    :
645 else
646    { echo "configure: error: newly created file is older than distributed files!
647 Check your system clock" 1>&2; exit 1; }
648 fi
649 rm -f conftest*
650 echo "$ac_t""yes" 1>&6
651 if test "$program_transform_name" = s,x,x,; then
652   program_transform_name=
653 else
654   # Double any \ or $.  echo might interpret backslashes.
655   cat <<\EOF_SED > conftestsed
656 s,\\,\\\\,g; s,\$,$$,g
657 EOF_SED
658   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
659   rm -f conftestsed
660 fi
661 test "$program_prefix" != NONE &&
662   program_transform_name="s,^,${program_prefix},; $program_transform_name"
663 # Use a double $ so make ignores it.
664 test "$program_suffix" != NONE &&
665   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
666
667 # sed with no file args requires a program.
668 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
669
670 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
671 echo "configure:672: checking whether ${MAKE-make} sets \${MAKE}" >&5
672 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
673 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
674   echo $ac_n "(cached) $ac_c" 1>&6
675 else
676   cat > conftestmake <<\EOF
677 all:
678         @echo 'ac_maketemp="${MAKE}"'
679 EOF
680 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
681 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
682 if test -n "$ac_maketemp"; then
683   eval ac_cv_prog_make_${ac_make}_set=yes
684 else
685   eval ac_cv_prog_make_${ac_make}_set=no
686 fi
687 rm -f conftestmake
688 fi
689 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
690   echo "$ac_t""yes" 1>&6
691   SET_MAKE=
692 else
693   echo "$ac_t""no" 1>&6
694   SET_MAKE="MAKE=${MAKE-make}"
695 fi
696
697
698 PACKAGE=curl
699
700 VERSION="6.3.1"
701
702 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
703   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
704 fi
705 cat >> confdefs.h <<EOF
706 #define PACKAGE "$PACKAGE"
707 EOF
708
709 cat >> confdefs.h <<EOF
710 #define VERSION "$VERSION"
711 EOF
712
713
714
715 missing_dir=`cd $ac_aux_dir && pwd`
716 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
717 echo "configure:718: checking for working aclocal" >&5
718 # Run test in a subshell; some versions of sh will print an error if
719 # an executable is not found, even if stderr is redirected.
720 # Redirect stdin to placate older versions of autoconf.  Sigh.
721 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
722    ACLOCAL=aclocal
723    echo "$ac_t""found" 1>&6
724 else
725    ACLOCAL="$missing_dir/missing aclocal"
726    echo "$ac_t""missing" 1>&6
727 fi
728
729 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
730 echo "configure:731: checking for working autoconf" >&5
731 # Run test in a subshell; some versions of sh will print an error if
732 # an executable is not found, even if stderr is redirected.
733 # Redirect stdin to placate older versions of autoconf.  Sigh.
734 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
735    AUTOCONF=autoconf
736    echo "$ac_t""found" 1>&6
737 else
738    AUTOCONF="$missing_dir/missing autoconf"
739    echo "$ac_t""missing" 1>&6
740 fi
741
742 echo $ac_n "checking for working automake""... $ac_c" 1>&6
743 echo "configure:744: checking for working automake" >&5
744 # Run test in a subshell; some versions of sh will print an error if
745 # an executable is not found, even if stderr is redirected.
746 # Redirect stdin to placate older versions of autoconf.  Sigh.
747 if (automake --version) < /dev/null > /dev/null 2>&1; then
748    AUTOMAKE=automake
749    echo "$ac_t""found" 1>&6
750 else
751    AUTOMAKE="$missing_dir/missing automake"
752    echo "$ac_t""missing" 1>&6
753 fi
754
755 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
756 echo "configure:757: checking for working autoheader" >&5
757 # Run test in a subshell; some versions of sh will print an error if
758 # an executable is not found, even if stderr is redirected.
759 # Redirect stdin to placate older versions of autoconf.  Sigh.
760 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
761    AUTOHEADER=autoheader
762    echo "$ac_t""found" 1>&6
763 else
764    AUTOHEADER="$missing_dir/missing autoheader"
765    echo "$ac_t""missing" 1>&6
766 fi
767
768 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
769 echo "configure:770: checking for working makeinfo" >&5
770 # Run test in a subshell; some versions of sh will print an error if
771 # an executable is not found, even if stderr is redirected.
772 # Redirect stdin to placate older versions of autoconf.  Sigh.
773 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
774    MAKEINFO=makeinfo
775    echo "$ac_t""found" 1>&6
776 else
777    MAKEINFO="$missing_dir/missing makeinfo"
778    echo "$ac_t""missing" 1>&6
779 fi
780
781
782
783 # Extract the first word of "gcc", so it can be a program name with args.
784 set dummy gcc; ac_word=$2
785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786 echo "configure:787: checking for $ac_word" >&5
787 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
788   echo $ac_n "(cached) $ac_c" 1>&6
789 else
790   if test -n "$CC"; then
791   ac_cv_prog_CC="$CC" # Let the user override the test.
792 else
793   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
794   ac_dummy="$PATH"
795   for ac_dir in $ac_dummy; do
796     test -z "$ac_dir" && ac_dir=.
797     if test -f $ac_dir/$ac_word; then
798       ac_cv_prog_CC="gcc"
799       break
800     fi
801   done
802   IFS="$ac_save_ifs"
803 fi
804 fi
805 CC="$ac_cv_prog_CC"
806 if test -n "$CC"; then
807   echo "$ac_t""$CC" 1>&6
808 else
809   echo "$ac_t""no" 1>&6
810 fi
811
812 if test -z "$CC"; then
813   # Extract the first word of "cc", so it can be a program name with args.
814 set dummy cc; ac_word=$2
815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
816 echo "configure:817: checking for $ac_word" >&5
817 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
818   echo $ac_n "(cached) $ac_c" 1>&6
819 else
820   if test -n "$CC"; then
821   ac_cv_prog_CC="$CC" # Let the user override the test.
822 else
823   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
824   ac_prog_rejected=no
825   ac_dummy="$PATH"
826   for ac_dir in $ac_dummy; do
827     test -z "$ac_dir" && ac_dir=.
828     if test -f $ac_dir/$ac_word; then
829       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
830         ac_prog_rejected=yes
831         continue
832       fi
833       ac_cv_prog_CC="cc"
834       break
835     fi
836   done
837   IFS="$ac_save_ifs"
838 if test $ac_prog_rejected = yes; then
839   # We found a bogon in the path, so make sure we never use it.
840   set dummy $ac_cv_prog_CC
841   shift
842   if test $# -gt 0; then
843     # We chose a different compiler from the bogus one.
844     # However, it has the same basename, so the bogon will be chosen
845     # first if we set CC to just the basename; use the full file name.
846     shift
847     set dummy "$ac_dir/$ac_word" "$@"
848     shift
849     ac_cv_prog_CC="$@"
850   fi
851 fi
852 fi
853 fi
854 CC="$ac_cv_prog_CC"
855 if test -n "$CC"; then
856   echo "$ac_t""$CC" 1>&6
857 else
858   echo "$ac_t""no" 1>&6
859 fi
860
861   if test -z "$CC"; then
862     case "`uname -s`" in
863     *win32* | *WIN32*)
864       # Extract the first word of "cl", so it can be a program name with args.
865 set dummy cl; ac_word=$2
866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
867 echo "configure:868: checking for $ac_word" >&5
868 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
869   echo $ac_n "(cached) $ac_c" 1>&6
870 else
871   if test -n "$CC"; then
872   ac_cv_prog_CC="$CC" # Let the user override the test.
873 else
874   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
875   ac_dummy="$PATH"
876   for ac_dir in $ac_dummy; do
877     test -z "$ac_dir" && ac_dir=.
878     if test -f $ac_dir/$ac_word; then
879       ac_cv_prog_CC="cl"
880       break
881     fi
882   done
883   IFS="$ac_save_ifs"
884 fi
885 fi
886 CC="$ac_cv_prog_CC"
887 if test -n "$CC"; then
888   echo "$ac_t""$CC" 1>&6
889 else
890   echo "$ac_t""no" 1>&6
891 fi
892  ;;
893     esac
894   fi
895   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
896 fi
897
898 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
899 echo "configure:900: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
900
901 ac_ext=c
902 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
903 ac_cpp='$CPP $CPPFLAGS'
904 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
905 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
906 cross_compiling=$ac_cv_prog_cc_cross
907
908 cat > conftest.$ac_ext << EOF
909
910 #line 911 "configure"
911 #include "confdefs.h"
912
913 main(){return(0);}
914 EOF
915 if { (eval echo configure:916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
916   ac_cv_prog_cc_works=yes
917   # If we can't run a trivial program, we are probably using a cross compiler.
918   if (./conftest; exit) 2>/dev/null; then
919     ac_cv_prog_cc_cross=no
920   else
921     ac_cv_prog_cc_cross=yes
922   fi
923 else
924   echo "configure: failed program was:" >&5
925   cat conftest.$ac_ext >&5
926   ac_cv_prog_cc_works=no
927 fi
928 rm -fr conftest*
929 ac_ext=c
930 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
931 ac_cpp='$CPP $CPPFLAGS'
932 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
933 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
934 cross_compiling=$ac_cv_prog_cc_cross
935
936 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
937 if test $ac_cv_prog_cc_works = no; then
938   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
939 fi
940 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
941 echo "configure:942: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
942 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
943 cross_compiling=$ac_cv_prog_cc_cross
944
945 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
946 echo "configure:947: checking whether we are using GNU C" >&5
947 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
948   echo $ac_n "(cached) $ac_c" 1>&6
949 else
950   cat > conftest.c <<EOF
951 #ifdef __GNUC__
952   yes;
953 #endif
954 EOF
955 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
956   ac_cv_prog_gcc=yes
957 else
958   ac_cv_prog_gcc=no
959 fi
960 fi
961
962 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
963
964 if test $ac_cv_prog_gcc = yes; then
965   GCC=yes
966 else
967   GCC=
968 fi
969
970 ac_test_CFLAGS="${CFLAGS+set}"
971 ac_save_CFLAGS="$CFLAGS"
972 CFLAGS=
973 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
974 echo "configure:975: checking whether ${CC-cc} accepts -g" >&5
975 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
976   echo $ac_n "(cached) $ac_c" 1>&6
977 else
978   echo 'void f(){}' > conftest.c
979 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
980   ac_cv_prog_cc_g=yes
981 else
982   ac_cv_prog_cc_g=no
983 fi
984 rm -f conftest*
985
986 fi
987
988 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
989 if test "$ac_test_CFLAGS" = set; then
990   CFLAGS="$ac_save_CFLAGS"
991 elif test $ac_cv_prog_cc_g = yes; then
992   if test "$GCC" = yes; then
993     CFLAGS="-g -O2"
994   else
995     CFLAGS="-g"
996   fi
997 else
998   if test "$GCC" = yes; then
999     CFLAGS="-O2"
1000   else
1001     CFLAGS=
1002   fi
1003 fi
1004
1005 # Find a good install program.  We prefer a C program (faster),
1006 # so one script is as good as another.  But avoid the broken or
1007 # incompatible versions:
1008 # SysV /etc/install, /usr/sbin/install
1009 # SunOS /usr/etc/install
1010 # IRIX /sbin/install
1011 # AIX /bin/install
1012 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1015 # ./install, which can be erroneously created by make from ./install.sh.
1016 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1017 echo "configure:1018: checking for a BSD compatible install" >&5
1018 if test -z "$INSTALL"; then
1019 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1020   echo $ac_n "(cached) $ac_c" 1>&6
1021 else
1022     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1023   for ac_dir in $PATH; do
1024     # Account for people who put trailing slashes in PATH elements.
1025     case "$ac_dir/" in
1026     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1027     *)
1028       # OSF1 and SCO ODT 3.0 have their own names for install.
1029       # Don't use installbsd from OSF since it installs stuff as root
1030       # by default.
1031       for ac_prog in ginstall scoinst install; do
1032         if test -f $ac_dir/$ac_prog; then
1033           if test $ac_prog = install &&
1034             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1035             # AIX install.  It has an incompatible calling convention.
1036             :
1037           else
1038             ac_cv_path_install="$ac_dir/$ac_prog -c"
1039             break 2
1040           fi
1041         fi
1042       done
1043       ;;
1044     esac
1045   done
1046   IFS="$ac_save_IFS"
1047
1048 fi
1049   if test "${ac_cv_path_install+set}" = set; then
1050     INSTALL="$ac_cv_path_install"
1051   else
1052     # As a last resort, use the slow shell script.  We don't cache a
1053     # path for INSTALL within a source directory, because that will
1054     # break other packages using the cache if that directory is
1055     # removed, or if the path is relative.
1056     INSTALL="$ac_install_sh"
1057   fi
1058 fi
1059 echo "$ac_t""$INSTALL" 1>&6
1060
1061 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1062 # It thinks the first close brace ends the variable substitution.
1063 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1064
1065 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1066
1067 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1068
1069 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1070 echo "configure:1071: checking whether ${MAKE-make} sets \${MAKE}" >&5
1071 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1072 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1073   echo $ac_n "(cached) $ac_c" 1>&6
1074 else
1075   cat > conftestmake <<\EOF
1076 all:
1077         @echo 'ac_maketemp="${MAKE}"'
1078 EOF
1079 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1080 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1081 if test -n "$ac_maketemp"; then
1082   eval ac_cv_prog_make_${ac_make}_set=yes
1083 else
1084   eval ac_cv_prog_make_${ac_make}_set=no
1085 fi
1086 rm -f conftestmake
1087 fi
1088 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1089   echo "$ac_t""yes" 1>&6
1090   SET_MAKE=
1091 else
1092   echo "$ac_t""no" 1>&6
1093   SET_MAKE="MAKE=${MAKE-make}"
1094 fi
1095
1096
1097 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1098 echo "configure:1099: checking how to run the C preprocessor" >&5
1099 # On Suns, sometimes $CPP names a directory.
1100 if test -n "$CPP" && test -d "$CPP"; then
1101   CPP=
1102 fi
1103 if test -z "$CPP"; then
1104 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1105   echo $ac_n "(cached) $ac_c" 1>&6
1106 else
1107     # This must be in double quotes, not single quotes, because CPP may get
1108   # substituted into the Makefile and "${CC-cc}" will confuse make.
1109   CPP="${CC-cc} -E"
1110   # On the NeXT, cc -E runs the code through the compiler's parser,
1111   # not just through cpp.
1112   cat > conftest.$ac_ext <<EOF
1113 #line 1114 "configure"
1114 #include "confdefs.h"
1115 #include <assert.h>
1116 Syntax Error
1117 EOF
1118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1119 { (eval echo configure:1120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1121 if test -z "$ac_err"; then
1122   :
1123 else
1124   echo "$ac_err" >&5
1125   echo "configure: failed program was:" >&5
1126   cat conftest.$ac_ext >&5
1127   rm -rf conftest*
1128   CPP="${CC-cc} -E -traditional-cpp"
1129   cat > conftest.$ac_ext <<EOF
1130 #line 1131 "configure"
1131 #include "confdefs.h"
1132 #include <assert.h>
1133 Syntax Error
1134 EOF
1135 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1136 { (eval echo configure:1137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1137 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1138 if test -z "$ac_err"; then
1139   :
1140 else
1141   echo "$ac_err" >&5
1142   echo "configure: failed program was:" >&5
1143   cat conftest.$ac_ext >&5
1144   rm -rf conftest*
1145   CPP="${CC-cc} -nologo -E"
1146   cat > conftest.$ac_ext <<EOF
1147 #line 1148 "configure"
1148 #include "confdefs.h"
1149 #include <assert.h>
1150 Syntax Error
1151 EOF
1152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1153 { (eval echo configure:1154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1155 if test -z "$ac_err"; then
1156   :
1157 else
1158   echo "$ac_err" >&5
1159   echo "configure: failed program was:" >&5
1160   cat conftest.$ac_ext >&5
1161   rm -rf conftest*
1162   CPP=/lib/cpp
1163 fi
1164 rm -f conftest*
1165 fi
1166 rm -f conftest*
1167 fi
1168 rm -f conftest*
1169   ac_cv_prog_CPP="$CPP"
1170 fi
1171   CPP="$ac_cv_prog_CPP"
1172 else
1173   ac_cv_prog_CPP="$CPP"
1174 fi
1175 echo "$ac_t""$CPP" 1>&6
1176
1177 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1178 echo "configure:1179: checking for AIX" >&5
1179 cat > conftest.$ac_ext <<EOF
1180 #line 1181 "configure"
1181 #include "confdefs.h"
1182 #ifdef _AIX
1183   yes
1184 #endif
1185
1186 EOF
1187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1188   egrep "yes" >/dev/null 2>&1; then
1189   rm -rf conftest*
1190   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1191 #define _ALL_SOURCE 1
1192 EOF
1193
1194 else
1195   rm -rf conftest*
1196   echo "$ac_t""no" 1>&6
1197 fi
1198 rm -f conftest*
1199
1200
1201
1202
1203 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1204 echo "configure:1205: checking for gethostbyname" >&5
1205 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1206   echo $ac_n "(cached) $ac_c" 1>&6
1207 else
1208   cat > conftest.$ac_ext <<EOF
1209 #line 1210 "configure"
1210 #include "confdefs.h"
1211 /* System header to define __stub macros and hopefully few prototypes,
1212     which can conflict with char gethostbyname(); below.  */
1213 #include <assert.h>
1214 /* Override any gcc2 internal prototype to avoid an error.  */
1215 /* We use char because int might match the return type of a gcc2
1216     builtin and then its argument prototype would still apply.  */
1217 char gethostbyname();
1218
1219 int main() {
1220
1221 /* The GNU C library defines this for functions which it implements
1222     to always fail with ENOSYS.  Some functions are actually named
1223     something starting with __ and the normal name is an alias.  */
1224 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1225 choke me
1226 #else
1227 gethostbyname();
1228 #endif
1229
1230 ; return 0; }
1231 EOF
1232 if { (eval echo configure:1233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1233   rm -rf conftest*
1234   eval "ac_cv_func_gethostbyname=yes"
1235 else
1236   echo "configure: failed program was:" >&5
1237   cat conftest.$ac_ext >&5
1238   rm -rf conftest*
1239   eval "ac_cv_func_gethostbyname=no"
1240 fi
1241 rm -f conftest*
1242 fi
1243
1244 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1245   echo "$ac_t""yes" 1>&6
1246   :
1247 else
1248   echo "$ac_t""no" 1>&6
1249 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1250 echo "configure:1251: checking for gethostbyname in -lnsl" >&5
1251 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1252 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1253   echo $ac_n "(cached) $ac_c" 1>&6
1254 else
1255   ac_save_LIBS="$LIBS"
1256 LIBS="-lnsl  $LIBS"
1257 cat > conftest.$ac_ext <<EOF
1258 #line 1259 "configure"
1259 #include "confdefs.h"
1260 /* Override any gcc2 internal prototype to avoid an error.  */
1261 /* We use char because int might match the return type of a gcc2
1262     builtin and then its argument prototype would still apply.  */
1263 char gethostbyname();
1264
1265 int main() {
1266 gethostbyname()
1267 ; return 0; }
1268 EOF
1269 if { (eval echo configure:1270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1270   rm -rf conftest*
1271   eval "ac_cv_lib_$ac_lib_var=yes"
1272 else
1273   echo "configure: failed program was:" >&5
1274   cat conftest.$ac_ext >&5
1275   rm -rf conftest*
1276   eval "ac_cv_lib_$ac_lib_var=no"
1277 fi
1278 rm -f conftest*
1279 LIBS="$ac_save_LIBS"
1280
1281 fi
1282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1283   echo "$ac_t""yes" 1>&6
1284     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
1285     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1286   cat >> confdefs.h <<EOF
1287 #define $ac_tr_lib 1
1288 EOF
1289
1290   LIBS="-lnsl $LIBS"
1291
1292 else
1293   echo "$ac_t""no" 1>&6
1294 fi
1295
1296 fi
1297
1298
1299 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
1300 echo "configure:1301: checking for strcasecmp" >&5
1301 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
1302   echo $ac_n "(cached) $ac_c" 1>&6
1303 else
1304   cat > conftest.$ac_ext <<EOF
1305 #line 1306 "configure"
1306 #include "confdefs.h"
1307 /* System header to define __stub macros and hopefully few prototypes,
1308     which can conflict with char strcasecmp(); below.  */
1309 #include <assert.h>
1310 /* Override any gcc2 internal prototype to avoid an error.  */
1311 /* We use char because int might match the return type of a gcc2
1312     builtin and then its argument prototype would still apply.  */
1313 char strcasecmp();
1314
1315 int main() {
1316
1317 /* The GNU C library defines this for functions which it implements
1318     to always fail with ENOSYS.  Some functions are actually named
1319     something starting with __ and the normal name is an alias.  */
1320 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
1321 choke me
1322 #else
1323 strcasecmp();
1324 #endif
1325
1326 ; return 0; }
1327 EOF
1328 if { (eval echo configure:1329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1329   rm -rf conftest*
1330   eval "ac_cv_func_strcasecmp=yes"
1331 else
1332   echo "configure: failed program was:" >&5
1333   cat conftest.$ac_ext >&5
1334   rm -rf conftest*
1335   eval "ac_cv_func_strcasecmp=no"
1336 fi
1337 rm -f conftest*
1338 fi
1339
1340 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
1341   echo "$ac_t""yes" 1>&6
1342   :
1343 else
1344   echo "$ac_t""no" 1>&6
1345 echo $ac_n "checking for strcasecmp in -lresolve""... $ac_c" 1>&6
1346 echo "configure:1347: checking for strcasecmp in -lresolve" >&5
1347 ac_lib_var=`echo resolve'_'strcasecmp | sed 'y%./+-%__p_%'`
1348 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1349   echo $ac_n "(cached) $ac_c" 1>&6
1350 else
1351   ac_save_LIBS="$LIBS"
1352 LIBS="-lresolve  $LIBS"
1353 cat > conftest.$ac_ext <<EOF
1354 #line 1355 "configure"
1355 #include "confdefs.h"
1356 /* Override any gcc2 internal prototype to avoid an error.  */
1357 /* We use char because int might match the return type of a gcc2
1358     builtin and then its argument prototype would still apply.  */
1359 char strcasecmp();
1360
1361 int main() {
1362 strcasecmp()
1363 ; return 0; }
1364 EOF
1365 if { (eval echo configure:1366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1366   rm -rf conftest*
1367   eval "ac_cv_lib_$ac_lib_var=yes"
1368 else
1369   echo "configure: failed program was:" >&5
1370   cat conftest.$ac_ext >&5
1371   rm -rf conftest*
1372   eval "ac_cv_lib_$ac_lib_var=no"
1373 fi
1374 rm -f conftest*
1375 LIBS="$ac_save_LIBS"
1376
1377 fi
1378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1379   echo "$ac_t""yes" 1>&6
1380     ac_tr_lib=HAVE_LIB`echo resolve | sed -e 's/^a-zA-Z0-9_/_/g' \
1381     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1382   cat >> confdefs.h <<EOF
1383 #define $ac_tr_lib 1
1384 EOF
1385
1386   LIBS="-lresolve $LIBS"
1387
1388 else
1389   echo "$ac_t""no" 1>&6
1390 fi
1391
1392 fi
1393
1394
1395 echo $ac_n "checking for connect""... $ac_c" 1>&6
1396 echo "configure:1397: checking for connect" >&5
1397 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1398   echo $ac_n "(cached) $ac_c" 1>&6
1399 else
1400   cat > conftest.$ac_ext <<EOF
1401 #line 1402 "configure"
1402 #include "confdefs.h"
1403 /* System header to define __stub macros and hopefully few prototypes,
1404     which can conflict with char connect(); below.  */
1405 #include <assert.h>
1406 /* Override any gcc2 internal prototype to avoid an error.  */
1407 /* We use char because int might match the return type of a gcc2
1408     builtin and then its argument prototype would still apply.  */
1409 char connect();
1410
1411 int main() {
1412
1413 /* The GNU C library defines this for functions which it implements
1414     to always fail with ENOSYS.  Some functions are actually named
1415     something starting with __ and the normal name is an alias.  */
1416 #if defined (__stub_connect) || defined (__stub___connect)
1417 choke me
1418 #else
1419 connect();
1420 #endif
1421
1422 ; return 0; }
1423 EOF
1424 if { (eval echo configure:1425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1425   rm -rf conftest*
1426   eval "ac_cv_func_connect=yes"
1427 else
1428   echo "configure: failed program was:" >&5
1429   cat conftest.$ac_ext >&5
1430   rm -rf conftest*
1431   eval "ac_cv_func_connect=no"
1432 fi
1433 rm -f conftest*
1434 fi
1435
1436 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1437   echo "$ac_t""yes" 1>&6
1438   :
1439 else
1440   echo "$ac_t""no" 1>&6
1441 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1442 echo "configure:1443: checking for connect in -lsocket" >&5
1443 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1444 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1445   echo $ac_n "(cached) $ac_c" 1>&6
1446 else
1447   ac_save_LIBS="$LIBS"
1448 LIBS="-lsocket  $LIBS"
1449 cat > conftest.$ac_ext <<EOF
1450 #line 1451 "configure"
1451 #include "confdefs.h"
1452 /* Override any gcc2 internal prototype to avoid an error.  */
1453 /* We use char because int might match the return type of a gcc2
1454     builtin and then its argument prototype would still apply.  */
1455 char connect();
1456
1457 int main() {
1458 connect()
1459 ; return 0; }
1460 EOF
1461 if { (eval echo configure:1462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1462   rm -rf conftest*
1463   eval "ac_cv_lib_$ac_lib_var=yes"
1464 else
1465   echo "configure: failed program was:" >&5
1466   cat conftest.$ac_ext >&5
1467   rm -rf conftest*
1468   eval "ac_cv_lib_$ac_lib_var=no"
1469 fi
1470 rm -f conftest*
1471 LIBS="$ac_save_LIBS"
1472
1473 fi
1474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1475   echo "$ac_t""yes" 1>&6
1476     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1477     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1478   cat >> confdefs.h <<EOF
1479 #define $ac_tr_lib 1
1480 EOF
1481
1482   LIBS="-lsocket $LIBS"
1483
1484 else
1485   echo "$ac_t""no" 1>&6
1486 fi
1487
1488 fi
1489
1490
1491 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
1492 echo "configure:1493: checking for gethostname" >&5
1493 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
1494   echo $ac_n "(cached) $ac_c" 1>&6
1495 else
1496   cat > conftest.$ac_ext <<EOF
1497 #line 1498 "configure"
1498 #include "confdefs.h"
1499 /* System header to define __stub macros and hopefully few prototypes,
1500     which can conflict with char gethostname(); below.  */
1501 #include <assert.h>
1502 /* Override any gcc2 internal prototype to avoid an error.  */
1503 /* We use char because int might match the return type of a gcc2
1504     builtin and then its argument prototype would still apply.  */
1505 char gethostname();
1506
1507 int main() {
1508
1509 /* The GNU C library defines this for functions which it implements
1510     to always fail with ENOSYS.  Some functions are actually named
1511     something starting with __ and the normal name is an alias.  */
1512 #if defined (__stub_gethostname) || defined (__stub___gethostname)
1513 choke me
1514 #else
1515 gethostname();
1516 #endif
1517
1518 ; return 0; }
1519 EOF
1520 if { (eval echo configure:1521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1521   rm -rf conftest*
1522   eval "ac_cv_func_gethostname=yes"
1523 else
1524   echo "configure: failed program was:" >&5
1525   cat conftest.$ac_ext >&5
1526   rm -rf conftest*
1527   eval "ac_cv_func_gethostname=no"
1528 fi
1529 rm -f conftest*
1530 fi
1531
1532 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
1533   echo "$ac_t""yes" 1>&6
1534   :
1535 else
1536   echo "$ac_t""no" 1>&6
1537 echo $ac_n "checking for gethostname in -lucb""... $ac_c" 1>&6
1538 echo "configure:1539: checking for gethostname in -lucb" >&5
1539 ac_lib_var=`echo ucb'_'gethostname | sed 'y%./+-%__p_%'`
1540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1541   echo $ac_n "(cached) $ac_c" 1>&6
1542 else
1543   ac_save_LIBS="$LIBS"
1544 LIBS="-lucb  $LIBS"
1545 cat > conftest.$ac_ext <<EOF
1546 #line 1547 "configure"
1547 #include "confdefs.h"
1548 /* Override any gcc2 internal prototype to avoid an error.  */
1549 /* We use char because int might match the return type of a gcc2
1550     builtin and then its argument prototype would still apply.  */
1551 char gethostname();
1552
1553 int main() {
1554 gethostname()
1555 ; return 0; }
1556 EOF
1557 if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1558   rm -rf conftest*
1559   eval "ac_cv_lib_$ac_lib_var=yes"
1560 else
1561   echo "configure: failed program was:" >&5
1562   cat conftest.$ac_ext >&5
1563   rm -rf conftest*
1564   eval "ac_cv_lib_$ac_lib_var=no"
1565 fi
1566 rm -f conftest*
1567 LIBS="$ac_save_LIBS"
1568
1569 fi
1570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1571   echo "$ac_t""yes" 1>&6
1572     ac_tr_lib=HAVE_LIB`echo ucb | sed -e 's/^a-zA-Z0-9_/_/g' \
1573     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1574   cat >> confdefs.h <<EOF
1575 #define $ac_tr_lib 1
1576 EOF
1577
1578   LIBS="-lucb $LIBS"
1579
1580 else
1581   echo "$ac_t""no" 1>&6
1582 fi
1583
1584 fi
1585
1586
1587 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
1588 echo "configure:1589: checking for dlopen" >&5
1589 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
1590   echo $ac_n "(cached) $ac_c" 1>&6
1591 else
1592   cat > conftest.$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1595 /* System header to define __stub macros and hopefully few prototypes,
1596     which can conflict with char dlopen(); below.  */
1597 #include <assert.h>
1598 /* Override any gcc2 internal prototype to avoid an error.  */
1599 /* We use char because int might match the return type of a gcc2
1600     builtin and then its argument prototype would still apply.  */
1601 char dlopen();
1602
1603 int main() {
1604
1605 /* The GNU C library defines this for functions which it implements
1606     to always fail with ENOSYS.  Some functions are actually named
1607     something starting with __ and the normal name is an alias.  */
1608 #if defined (__stub_dlopen) || defined (__stub___dlopen)
1609 choke me
1610 #else
1611 dlopen();
1612 #endif
1613
1614 ; return 0; }
1615 EOF
1616 if { (eval echo configure:1617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1617   rm -rf conftest*
1618   eval "ac_cv_func_dlopen=yes"
1619 else
1620   echo "configure: failed program was:" >&5
1621   cat conftest.$ac_ext >&5
1622   rm -rf conftest*
1623   eval "ac_cv_func_dlopen=no"
1624 fi
1625 rm -f conftest*
1626 fi
1627
1628 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
1629   echo "$ac_t""yes" 1>&6
1630   :
1631 else
1632   echo "$ac_t""no" 1>&6
1633 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1634 echo "configure:1635: checking for dlopen in -ldl" >&5
1635 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1636 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1637   echo $ac_n "(cached) $ac_c" 1>&6
1638 else
1639   ac_save_LIBS="$LIBS"
1640 LIBS="-ldl  $LIBS"
1641 cat > conftest.$ac_ext <<EOF
1642 #line 1643 "configure"
1643 #include "confdefs.h"
1644 /* Override any gcc2 internal prototype to avoid an error.  */
1645 /* We use char because int might match the return type of a gcc2
1646     builtin and then its argument prototype would still apply.  */
1647 char dlopen();
1648
1649 int main() {
1650 dlopen()
1651 ; return 0; }
1652 EOF
1653 if { (eval echo configure:1654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1654   rm -rf conftest*
1655   eval "ac_cv_lib_$ac_lib_var=yes"
1656 else
1657   echo "configure: failed program was:" >&5
1658   cat conftest.$ac_ext >&5
1659   rm -rf conftest*
1660   eval "ac_cv_lib_$ac_lib_var=no"
1661 fi
1662 rm -f conftest*
1663 LIBS="$ac_save_LIBS"
1664
1665 fi
1666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1667   echo "$ac_t""yes" 1>&6
1668     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/^a-zA-Z0-9_/_/g' \
1669     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1670   cat >> confdefs.h <<EOF
1671 #define $ac_tr_lib 1
1672 EOF
1673
1674   LIBS="-ldl $LIBS"
1675
1676 else
1677   echo "$ac_t""no" 1>&6
1678 fi
1679
1680 fi
1681
1682
1683
1684 OPT_SSL=off
1685 # Check whether --with-ssl or --without-ssl was given.
1686 if test "${with_ssl+set}" = set; then
1687   withval="$with_ssl"
1688   OPT_SSL=$withval
1689
1690 fi
1691
1692
1693 if test X"$OPT_SSL" = Xno
1694 then
1695   echo "configure: warning: SSL/https support disabled" 1>&2  
1696 else
1697
1698   
1699   echo $ac_n "checking where to look for SSL""... $ac_c" 1>&6
1700 echo "configure:1701: checking where to look for SSL" >&5
1701   if test X"$OPT_SSL" = Xoff
1702   then
1703         echo "$ac_t""defaults (or given in environment)" 1>&6
1704   else
1705         test X"$OPT_SSL" = Xyes && OPT_SSL=/usr/local/ssl
1706         LIBS="$LIBS -L$OPT_SSL/lib"
1707         CPPFLAGS="$CPPFLAGS -I$OPT_SSL/include/openssl -I$OPT_SSL/include"
1708         echo "$ac_t""$OPT_SSL" 1>&6
1709   fi
1710
1711     echo $ac_n "checking for CRYPTO_lock in -lcrypto""... $ac_c" 1>&6
1712 echo "configure:1713: checking for CRYPTO_lock in -lcrypto" >&5
1713 ac_lib_var=`echo crypto'_'CRYPTO_lock | sed 'y%./+-%__p_%'`
1714 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1715   echo $ac_n "(cached) $ac_c" 1>&6
1716 else
1717   ac_save_LIBS="$LIBS"
1718 LIBS="-lcrypto  $LIBS"
1719 cat > conftest.$ac_ext <<EOF
1720 #line 1721 "configure"
1721 #include "confdefs.h"
1722 /* Override any gcc2 internal prototype to avoid an error.  */
1723 /* We use char because int might match the return type of a gcc2
1724     builtin and then its argument prototype would still apply.  */
1725 char CRYPTO_lock();
1726
1727 int main() {
1728 CRYPTO_lock()
1729 ; return 0; }
1730 EOF
1731 if { (eval echo configure:1732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1732   rm -rf conftest*
1733   eval "ac_cv_lib_$ac_lib_var=yes"
1734 else
1735   echo "configure: failed program was:" >&5
1736   cat conftest.$ac_ext >&5
1737   rm -rf conftest*
1738   eval "ac_cv_lib_$ac_lib_var=no"
1739 fi
1740 rm -f conftest*
1741 LIBS="$ac_save_LIBS"
1742
1743 fi
1744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1745   echo "$ac_t""yes" 1>&6
1746     ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1747     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1748   cat >> confdefs.h <<EOF
1749 #define $ac_tr_lib 1
1750 EOF
1751
1752   LIBS="-lcrypto $LIBS"
1753
1754 else
1755   echo "$ac_t""no" 1>&6
1756 fi
1757
1758
1759   if test $ac_cv_lib_crypto_CRYPTO_lock = yes; then
1760             echo $ac_n "checking for SSL_connect in -lssl""... $ac_c" 1>&6
1761 echo "configure:1762: checking for SSL_connect in -lssl" >&5
1762 ac_lib_var=`echo ssl'_'SSL_connect | sed 'y%./+-%__p_%'`
1763 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1764   echo $ac_n "(cached) $ac_c" 1>&6
1765 else
1766   ac_save_LIBS="$LIBS"
1767 LIBS="-lssl  $LIBS"
1768 cat > conftest.$ac_ext <<EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1771 /* Override any gcc2 internal prototype to avoid an error.  */
1772 /* We use char because int might match the return type of a gcc2
1773     builtin and then its argument prototype would still apply.  */
1774 char SSL_connect();
1775
1776 int main() {
1777 SSL_connect()
1778 ; return 0; }
1779 EOF
1780 if { (eval echo configure:1781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1781   rm -rf conftest*
1782   eval "ac_cv_lib_$ac_lib_var=yes"
1783 else
1784   echo "configure: failed program was:" >&5
1785   cat conftest.$ac_ext >&5
1786   rm -rf conftest*
1787   eval "ac_cv_lib_$ac_lib_var=no"
1788 fi
1789 rm -f conftest*
1790 LIBS="$ac_save_LIBS"
1791
1792 fi
1793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1794   echo "$ac_t""yes" 1>&6
1795     ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1796     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1797   cat >> confdefs.h <<EOF
1798 #define $ac_tr_lib 1
1799 EOF
1800
1801   LIBS="-lssl $LIBS"
1802
1803 else
1804   echo "$ac_t""no" 1>&6
1805 fi
1806
1807
1808         for ac_hdr in openssl/x509.h openssl/rsa.h openssl/crypto.h openssl/pem.h openssl/ssl.h openssl/err.h
1809 do
1810 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1811 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1812 echo "configure:1813: checking for $ac_hdr" >&5
1813 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1814   echo $ac_n "(cached) $ac_c" 1>&6
1815 else
1816   cat > conftest.$ac_ext <<EOF
1817 #line 1818 "configure"
1818 #include "confdefs.h"
1819 #include <$ac_hdr>
1820 EOF
1821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1822 { (eval echo configure:1823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1824 if test -z "$ac_err"; then
1825   rm -rf conftest*
1826   eval "ac_cv_header_$ac_safe=yes"
1827 else
1828   echo "$ac_err" >&5
1829   echo "configure: failed program was:" >&5
1830   cat conftest.$ac_ext >&5
1831   rm -rf conftest*
1832   eval "ac_cv_header_$ac_safe=no"
1833 fi
1834 rm -f conftest*
1835 fi
1836 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1837   echo "$ac_t""yes" 1>&6
1838     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1839   cat >> confdefs.h <<EOF
1840 #define $ac_tr_hdr 1
1841 EOF
1842  
1843 else
1844   echo "$ac_t""no" 1>&6
1845 fi
1846 done
1847
1848
1849     if test $ac_cv_header_openssl_x509_h = no; then
1850       for ac_hdr in x509.h rsa.h crypto.h pem.h ssl.h err.h
1851 do
1852 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1853 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1854 echo "configure:1855: checking for $ac_hdr" >&5
1855 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1856   echo $ac_n "(cached) $ac_c" 1>&6
1857 else
1858   cat > conftest.$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1861 #include <$ac_hdr>
1862 EOF
1863 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1864 { (eval echo configure:1865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1865 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1866 if test -z "$ac_err"; then
1867   rm -rf conftest*
1868   eval "ac_cv_header_$ac_safe=yes"
1869 else
1870   echo "$ac_err" >&5
1871   echo "configure: failed program was:" >&5
1872   cat conftest.$ac_ext >&5
1873   rm -rf conftest*
1874   eval "ac_cv_header_$ac_safe=no"
1875 fi
1876 rm -f conftest*
1877 fi
1878 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1879   echo "$ac_t""yes" 1>&6
1880     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1881   cat >> confdefs.h <<EOF
1882 #define $ac_tr_hdr 1
1883 EOF
1884  
1885 else
1886   echo "$ac_t""no" 1>&6
1887 fi
1888 done
1889
1890     fi
1891
1892   fi
1893 fi
1894
1895
1896
1897
1898
1899
1900
1901 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1902 echo "configure:1903: checking for ANSI C header files" >&5
1903 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1904   echo $ac_n "(cached) $ac_c" 1>&6
1905 else
1906   cat > conftest.$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1909 #include <stdlib.h>
1910 #include <stdarg.h>
1911 #include <string.h>
1912 #include <float.h>
1913 EOF
1914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1915 { (eval echo configure:1916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1917 if test -z "$ac_err"; then
1918   rm -rf conftest*
1919   ac_cv_header_stdc=yes
1920 else
1921   echo "$ac_err" >&5
1922   echo "configure: failed program was:" >&5
1923   cat conftest.$ac_ext >&5
1924   rm -rf conftest*
1925   ac_cv_header_stdc=no
1926 fi
1927 rm -f conftest*
1928
1929 if test $ac_cv_header_stdc = yes; then
1930   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1931 cat > conftest.$ac_ext <<EOF
1932 #line 1933 "configure"
1933 #include "confdefs.h"
1934 #include <string.h>
1935 EOF
1936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1937   egrep "memchr" >/dev/null 2>&1; then
1938   :
1939 else
1940   rm -rf conftest*
1941   ac_cv_header_stdc=no
1942 fi
1943 rm -f conftest*
1944
1945 fi
1946
1947 if test $ac_cv_header_stdc = yes; then
1948   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1949 cat > conftest.$ac_ext <<EOF
1950 #line 1951 "configure"
1951 #include "confdefs.h"
1952 #include <stdlib.h>
1953 EOF
1954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1955   egrep "free" >/dev/null 2>&1; then
1956   :
1957 else
1958   rm -rf conftest*
1959   ac_cv_header_stdc=no
1960 fi
1961 rm -f conftest*
1962
1963 fi
1964
1965 if test $ac_cv_header_stdc = yes; then
1966   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1967 if test "$cross_compiling" = yes; then
1968   :
1969 else
1970   cat > conftest.$ac_ext <<EOF
1971 #line 1972 "configure"
1972 #include "confdefs.h"
1973 #include <ctype.h>
1974 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1975 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1977 int main () { int i; for (i = 0; i < 256; i++)
1978 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1979 exit (0); }
1980
1981 EOF
1982 if { (eval echo configure:1983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1983 then
1984   :
1985 else
1986   echo "configure: failed program was:" >&5
1987   cat conftest.$ac_ext >&5
1988   rm -fr conftest*
1989   ac_cv_header_stdc=no
1990 fi
1991 rm -fr conftest*
1992 fi
1993
1994 fi
1995 fi
1996
1997 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1998 if test $ac_cv_header_stdc = yes; then
1999   cat >> confdefs.h <<\EOF
2000 #define STDC_HEADERS 1
2001 EOF
2002
2003 fi
2004
2005 for ac_hdr in \
2006         unistd.h \
2007         arpa/inet.h \
2008         net/if.h \
2009         netinet/in.h \
2010         netdb.h \
2011         sys/select.h \
2012         sys/socket.h \
2013         sys/sockio.h \
2014         sys/stat.h \
2015         sys/types.h \
2016         getopt.h \
2017         sys/param.h \
2018         termios.h \
2019         termio.h \
2020         sgtty.h \
2021         fcntl.h \
2022         dlfcn.h \
2023         alloca.h \
2024         winsock.h \
2025         time.h \
2026         io.h \
2027
2028 do
2029 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2030 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2031 echo "configure:2032: checking for $ac_hdr" >&5
2032 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2033   echo $ac_n "(cached) $ac_c" 1>&6
2034 else
2035   cat > conftest.$ac_ext <<EOF
2036 #line 2037 "configure"
2037 #include "confdefs.h"
2038 #include <$ac_hdr>
2039 EOF
2040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2041 { (eval echo configure:2042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2043 if test -z "$ac_err"; then
2044   rm -rf conftest*
2045   eval "ac_cv_header_$ac_safe=yes"
2046 else
2047   echo "$ac_err" >&5
2048   echo "configure: failed program was:" >&5
2049   cat conftest.$ac_ext >&5
2050   rm -rf conftest*
2051   eval "ac_cv_header_$ac_safe=no"
2052 fi
2053 rm -f conftest*
2054 fi
2055 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2056   echo "$ac_t""yes" 1>&6
2057     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2058   cat >> confdefs.h <<EOF
2059 #define $ac_tr_hdr 1
2060 EOF
2061  
2062 else
2063   echo "$ac_t""no" 1>&6
2064 fi
2065 done
2066
2067
2068
2069 echo $ac_n "checking for working const""... $ac_c" 1>&6
2070 echo "configure:2071: checking for working const" >&5
2071 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2072   echo $ac_n "(cached) $ac_c" 1>&6
2073 else
2074   cat > conftest.$ac_ext <<EOF
2075 #line 2076 "configure"
2076 #include "confdefs.h"
2077
2078 int main() {
2079
2080 /* Ultrix mips cc rejects this.  */
2081 typedef int charset[2]; const charset x;
2082 /* SunOS 4.1.1 cc rejects this.  */
2083 char const *const *ccp;
2084 char **p;
2085 /* NEC SVR4.0.2 mips cc rejects this.  */
2086 struct point {int x, y;};
2087 static struct point const zero = {0,0};
2088 /* AIX XL C 1.02.0.0 rejects this.
2089    It does not let you subtract one const X* pointer from another in an arm
2090    of an if-expression whose if-part is not a constant expression */
2091 const char *g = "string";
2092 ccp = &g + (g ? g-g : 0);
2093 /* HPUX 7.0 cc rejects these. */
2094 ++ccp;
2095 p = (char**) ccp;
2096 ccp = (char const *const *) p;
2097 { /* SCO 3.2v4 cc rejects this.  */
2098   char *t;
2099   char const *s = 0 ? (char *) 0 : (char const *) 0;
2100
2101   *t++ = 0;
2102 }
2103 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2104   int x[] = {25, 17};
2105   const int *foo = &x[0];
2106   ++foo;
2107 }
2108 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2109   typedef const int *iptr;
2110   iptr p = 0;
2111   ++p;
2112 }
2113 { /* AIX XL C 1.02.0.0 rejects this saying
2114      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2115   struct s { int j; const int *ap[3]; };
2116   struct s *b; b->j = 5;
2117 }
2118 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2119   const int foo = 10;
2120 }
2121
2122 ; return 0; }
2123 EOF
2124 if { (eval echo configure:2125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2125   rm -rf conftest*
2126   ac_cv_c_const=yes
2127 else
2128   echo "configure: failed program was:" >&5
2129   cat conftest.$ac_ext >&5
2130   rm -rf conftest*
2131   ac_cv_c_const=no
2132 fi
2133 rm -f conftest*
2134 fi
2135
2136 echo "$ac_t""$ac_cv_c_const" 1>&6
2137 if test $ac_cv_c_const = no; then
2138   cat >> confdefs.h <<\EOF
2139 #define const 
2140 EOF
2141
2142 fi
2143
2144 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2145 echo "configure:2146: checking for size_t" >&5
2146 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2147   echo $ac_n "(cached) $ac_c" 1>&6
2148 else
2149   cat > conftest.$ac_ext <<EOF
2150 #line 2151 "configure"
2151 #include "confdefs.h"
2152 #include <sys/types.h>
2153 #if STDC_HEADERS
2154 #include <stdlib.h>
2155 #include <stddef.h>
2156 #endif
2157 EOF
2158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2159   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2160   rm -rf conftest*
2161   ac_cv_type_size_t=yes
2162 else
2163   rm -rf conftest*
2164   ac_cv_type_size_t=no
2165 fi
2166 rm -f conftest*
2167
2168 fi
2169 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2170 if test $ac_cv_type_size_t = no; then
2171   cat >> confdefs.h <<\EOF
2172 #define size_t unsigned
2173 EOF
2174
2175 fi
2176
2177 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2178 echo "configure:2179: checking whether time.h and sys/time.h may both be included" >&5
2179 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2180   echo $ac_n "(cached) $ac_c" 1>&6
2181 else
2182   cat > conftest.$ac_ext <<EOF
2183 #line 2184 "configure"
2184 #include "confdefs.h"
2185 #include <sys/types.h>
2186 #include <sys/time.h>
2187 #include <time.h>
2188 int main() {
2189 struct tm *tp;
2190 ; return 0; }
2191 EOF
2192 if { (eval echo configure:2193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2193   rm -rf conftest*
2194   ac_cv_header_time=yes
2195 else
2196   echo "configure: failed program was:" >&5
2197   cat conftest.$ac_ext >&5
2198   rm -rf conftest*
2199   ac_cv_header_time=no
2200 fi
2201 rm -f conftest*
2202 fi
2203
2204 echo "$ac_t""$ac_cv_header_time" 1>&6
2205 if test $ac_cv_header_time = yes; then
2206   cat >> confdefs.h <<\EOF
2207 #define TIME_WITH_SYS_TIME 1
2208 EOF
2209
2210 fi
2211
2212
2213 # mprintf() checks:
2214
2215 # check for 'long double'
2216 echo $ac_n "checking size of long double""... $ac_c" 1>&6
2217 echo "configure:2218: checking size of long double" >&5
2218 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
2219   echo $ac_n "(cached) $ac_c" 1>&6
2220 else
2221   if test "$cross_compiling" = yes; then
2222   ac_cv_sizeof_long_double=8
2223 else
2224   cat > conftest.$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2227 #include <stdio.h>
2228 main()
2229 {
2230   FILE *f=fopen("conftestval", "w");
2231   if (!f) exit(1);
2232   fprintf(f, "%d\n", sizeof(long double));
2233   exit(0);
2234 }
2235 EOF
2236 if { (eval echo configure:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2237 then
2238   ac_cv_sizeof_long_double=`cat conftestval`
2239 else
2240   echo "configure: failed program was:" >&5
2241   cat conftest.$ac_ext >&5
2242   rm -fr conftest*
2243   ac_cv_sizeof_long_double=0
2244 fi
2245 rm -fr conftest*
2246 fi
2247
2248 fi
2249 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
2250 cat >> confdefs.h <<EOF
2251 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
2252 EOF
2253
2254
2255 # check for 'long long'
2256 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2257 echo "configure:2258: checking size of long long" >&5
2258 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2259   echo $ac_n "(cached) $ac_c" 1>&6
2260 else
2261   if test "$cross_compiling" = yes; then
2262   ac_cv_sizeof_long_long=4
2263 else
2264   cat > conftest.$ac_ext <<EOF
2265 #line 2266 "configure"
2266 #include "confdefs.h"
2267 #include <stdio.h>
2268 main()
2269 {
2270   FILE *f=fopen("conftestval", "w");
2271   if (!f) exit(1);
2272   fprintf(f, "%d\n", sizeof(long long));
2273   exit(0);
2274 }
2275 EOF
2276 if { (eval echo configure:2277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2277 then
2278   ac_cv_sizeof_long_long=`cat conftestval`
2279 else
2280   echo "configure: failed program was:" >&5
2281   cat conftest.$ac_ext >&5
2282   rm -fr conftest*
2283   ac_cv_sizeof_long_long=0
2284 fi
2285 rm -fr conftest*
2286 fi
2287
2288 fi
2289 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2290 cat >> confdefs.h <<EOF
2291 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2292 EOF
2293
2294
2295
2296
2297 # Make sure we can run config.sub.
2298 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
2299 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
2300 fi
2301
2302 echo $ac_n "checking host system type""... $ac_c" 1>&6
2303 echo "configure:2304: checking host system type" >&5
2304
2305 host_alias=$host
2306 case "$host_alias" in
2307 NONE)
2308   case $nonopt in
2309   NONE)
2310     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
2311     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
2312     fi ;;
2313   *) host_alias=$nonopt ;;
2314   esac ;;
2315 esac
2316
2317 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
2318 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2319 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2320 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2321 echo "$ac_t""$host" 1>&6
2322
2323 cat >> confdefs.h <<EOF
2324 #define OS "${host}"
2325 EOF
2326
2327
2328 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2329 echo "configure:2330: checking return type of signal handlers" >&5
2330 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2331   echo $ac_n "(cached) $ac_c" 1>&6
2332 else
2333   cat > conftest.$ac_ext <<EOF
2334 #line 2335 "configure"
2335 #include "confdefs.h"
2336 #include <sys/types.h>
2337 #include <signal.h>
2338 #ifdef signal
2339 #undef signal
2340 #endif
2341 #ifdef __cplusplus
2342 extern "C" void (*signal (int, void (*)(int)))(int);
2343 #else
2344 void (*signal ()) ();
2345 #endif
2346
2347 int main() {
2348 int i;
2349 ; return 0; }
2350 EOF
2351 if { (eval echo configure:2352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2352   rm -rf conftest*
2353   ac_cv_type_signal=void
2354 else
2355   echo "configure: failed program was:" >&5
2356   cat conftest.$ac_ext >&5
2357   rm -rf conftest*
2358   ac_cv_type_signal=int
2359 fi
2360 rm -f conftest*
2361 fi
2362
2363 echo "$ac_t""$ac_cv_type_signal" 1>&6
2364 cat >> confdefs.h <<EOF
2365 #define RETSIGTYPE $ac_cv_type_signal
2366 EOF
2367
2368
2369 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2370 echo "configure:2371: checking for vprintf" >&5
2371 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2372   echo $ac_n "(cached) $ac_c" 1>&6
2373 else
2374   cat > conftest.$ac_ext <<EOF
2375 #line 2376 "configure"
2376 #include "confdefs.h"
2377 /* System header to define __stub macros and hopefully few prototypes,
2378     which can conflict with char vprintf(); below.  */
2379 #include <assert.h>
2380 /* Override any gcc2 internal prototype to avoid an error.  */
2381 /* We use char because int might match the return type of a gcc2
2382     builtin and then its argument prototype would still apply.  */
2383 char vprintf();
2384
2385 int main() {
2386
2387 /* The GNU C library defines this for functions which it implements
2388     to always fail with ENOSYS.  Some functions are actually named
2389     something starting with __ and the normal name is an alias.  */
2390 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2391 choke me
2392 #else
2393 vprintf();
2394 #endif
2395
2396 ; return 0; }
2397 EOF
2398 if { (eval echo configure:2399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2399   rm -rf conftest*
2400   eval "ac_cv_func_vprintf=yes"
2401 else
2402   echo "configure: failed program was:" >&5
2403   cat conftest.$ac_ext >&5
2404   rm -rf conftest*
2405   eval "ac_cv_func_vprintf=no"
2406 fi
2407 rm -f conftest*
2408 fi
2409
2410 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2411   echo "$ac_t""yes" 1>&6
2412   cat >> confdefs.h <<\EOF
2413 #define HAVE_VPRINTF 1
2414 EOF
2415
2416 else
2417   echo "$ac_t""no" 1>&6
2418 fi
2419
2420 if test "$ac_cv_func_vprintf" != yes; then
2421 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2422 echo "configure:2423: checking for _doprnt" >&5
2423 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2424   echo $ac_n "(cached) $ac_c" 1>&6
2425 else
2426   cat > conftest.$ac_ext <<EOF
2427 #line 2428 "configure"
2428 #include "confdefs.h"
2429 /* System header to define __stub macros and hopefully few prototypes,
2430     which can conflict with char _doprnt(); below.  */
2431 #include <assert.h>
2432 /* Override any gcc2 internal prototype to avoid an error.  */
2433 /* We use char because int might match the return type of a gcc2
2434     builtin and then its argument prototype would still apply.  */
2435 char _doprnt();
2436
2437 int main() {
2438
2439 /* The GNU C library defines this for functions which it implements
2440     to always fail with ENOSYS.  Some functions are actually named
2441     something starting with __ and the normal name is an alias.  */
2442 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2443 choke me
2444 #else
2445 _doprnt();
2446 #endif
2447
2448 ; return 0; }
2449 EOF
2450 if { (eval echo configure:2451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2451   rm -rf conftest*
2452   eval "ac_cv_func__doprnt=yes"
2453 else
2454   echo "configure: failed program was:" >&5
2455   cat conftest.$ac_ext >&5
2456   rm -rf conftest*
2457   eval "ac_cv_func__doprnt=no"
2458 fi
2459 rm -f conftest*
2460 fi
2461
2462 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2463   echo "$ac_t""yes" 1>&6
2464   cat >> confdefs.h <<\EOF
2465 #define HAVE_DOPRNT 1
2466 EOF
2467
2468 else
2469   echo "$ac_t""no" 1>&6
2470 fi
2471
2472 fi
2473
2474 for ac_func in socket \
2475                 select \
2476                 strdup \
2477                 strstr \
2478                 strftime \
2479                 uname \
2480                 strcasecmp \
2481                 gethostname \
2482                 gethostbyaddr \
2483                 getservbyname \
2484                 gettimeofday \
2485                 inet_addr \
2486                 inet_ntoa \
2487                 tcsetattr \
2488                 tcgetattr \
2489                 perror \
2490                 getpass \
2491                 closesocket
2492
2493 do
2494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2495 echo "configure:2496: checking for $ac_func" >&5
2496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2497   echo $ac_n "(cached) $ac_c" 1>&6
2498 else
2499   cat > conftest.$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2502 /* System header to define __stub macros and hopefully few prototypes,
2503     which can conflict with char $ac_func(); below.  */
2504 #include <assert.h>
2505 /* Override any gcc2 internal prototype to avoid an error.  */
2506 /* We use char because int might match the return type of a gcc2
2507     builtin and then its argument prototype would still apply.  */
2508 char $ac_func();
2509
2510 int main() {
2511
2512 /* The GNU C library defines this for functions which it implements
2513     to always fail with ENOSYS.  Some functions are actually named
2514     something starting with __ and the normal name is an alias.  */
2515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2516 choke me
2517 #else
2518 $ac_func();
2519 #endif
2520
2521 ; return 0; }
2522 EOF
2523 if { (eval echo configure:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2524   rm -rf conftest*
2525   eval "ac_cv_func_$ac_func=yes"
2526 else
2527   echo "configure: failed program was:" >&5
2528   cat conftest.$ac_ext >&5
2529   rm -rf conftest*
2530   eval "ac_cv_func_$ac_func=no"
2531 fi
2532 rm -f conftest*
2533 fi
2534
2535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2536   echo "$ac_t""yes" 1>&6
2537     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2538   cat >> confdefs.h <<EOF
2539 #define $ac_tr_func 1
2540 EOF
2541  
2542 else
2543   echo "$ac_t""no" 1>&6
2544 fi
2545 done
2546
2547
2548
2549
2550 # Extract the first word of "perl", so it can be a program name with args.
2551 set dummy perl; ac_word=$2
2552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2553 echo "configure:2554: checking for $ac_word" >&5
2554 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2555   echo $ac_n "(cached) $ac_c" 1>&6
2556 else
2557   case "$PERL" in
2558   /*)
2559   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2560   ;;
2561   ?:/*)                  
2562   ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
2563   ;;
2564   *)
2565   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2566   ac_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
2567   for ac_dir in $ac_dummy; do 
2568     test -z "$ac_dir" && ac_dir=.
2569     if test -f $ac_dir/$ac_word; then
2570       ac_cv_path_PERL="$ac_dir/$ac_word"
2571       break
2572     fi
2573   done
2574   IFS="$ac_save_ifs"
2575   ;;
2576 esac
2577 fi
2578 PERL="$ac_cv_path_PERL"
2579 if test -n "$PERL"; then
2580   echo "$ac_t""$PERL" 1>&6
2581 else
2582   echo "$ac_t""no" 1>&6
2583 fi
2584
2585
2586
2587 for ac_prog in gnroff nroff
2588 do
2589 # Extract the first word of "$ac_prog", so it can be a program name with args.
2590 set dummy $ac_prog; ac_word=$2
2591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2592 echo "configure:2593: checking for $ac_word" >&5
2593 if eval "test \"`echo '$''{'ac_cv_path_NROFF'+set}'`\" = set"; then
2594   echo $ac_n "(cached) $ac_c" 1>&6
2595 else
2596   case "$NROFF" in
2597   /*)
2598   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
2599   ;;
2600   ?:/*)                  
2601   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a dos path.
2602   ;;
2603   *)
2604   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2605   ac_dummy="$PATH:/usr/bin/:/usr/local/bin "
2606   for ac_dir in $ac_dummy; do 
2607     test -z "$ac_dir" && ac_dir=.
2608     if test -f $ac_dir/$ac_word; then
2609       ac_cv_path_NROFF="$ac_dir/$ac_word"
2610       break
2611     fi
2612   done
2613   IFS="$ac_save_ifs"
2614   ;;
2615 esac
2616 fi
2617 NROFF="$ac_cv_path_NROFF"
2618 if test -n "$NROFF"; then
2619   echo "$ac_t""$NROFF" 1>&6
2620 else
2621   echo "$ac_t""no" 1>&6
2622 fi
2623
2624 test -n "$NROFF" && break
2625 done
2626
2627
2628
2629 # Extract the first word of "ranlib", so it can be a program name with args.
2630 set dummy ranlib; ac_word=$2
2631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2632 echo "configure:2633: checking for $ac_word" >&5
2633 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2634   echo $ac_n "(cached) $ac_c" 1>&6
2635 else
2636   if test -n "$RANLIB"; then
2637   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2638 else
2639   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2640   ac_dummy="$PATH"
2641   for ac_dir in $ac_dummy; do
2642     test -z "$ac_dir" && ac_dir=.
2643     if test -f $ac_dir/$ac_word; then
2644       ac_cv_prog_RANLIB="ranlib"
2645       break
2646     fi
2647   done
2648   IFS="$ac_save_ifs"
2649   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2650 fi
2651 fi
2652 RANLIB="$ac_cv_prog_RANLIB"
2653 if test -n "$RANLIB"; then
2654   echo "$ac_t""$RANLIB" 1>&6
2655 else
2656   echo "$ac_t""no" 1>&6
2657 fi
2658
2659 for ac_prog in 'bison -y' byacc
2660 do
2661 # Extract the first word of "$ac_prog", so it can be a program name with args.
2662 set dummy $ac_prog; ac_word=$2
2663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2664 echo "configure:2665: checking for $ac_word" >&5
2665 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2666   echo $ac_n "(cached) $ac_c" 1>&6
2667 else
2668   if test -n "$YACC"; then
2669   ac_cv_prog_YACC="$YACC" # Let the user override the test.
2670 else
2671   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2672   ac_dummy="$PATH"
2673   for ac_dir in $ac_dummy; do
2674     test -z "$ac_dir" && ac_dir=.
2675     if test -f $ac_dir/$ac_word; then
2676       ac_cv_prog_YACC="$ac_prog"
2677       break
2678     fi
2679   done
2680   IFS="$ac_save_ifs"
2681 fi
2682 fi
2683 YACC="$ac_cv_prog_YACC"
2684 if test -n "$YACC"; then
2685   echo "$ac_t""$YACC" 1>&6
2686 else
2687   echo "$ac_t""no" 1>&6
2688 fi
2689
2690 test -n "$YACC" && break
2691 done
2692 test -n "$YACC" || YACC="yacc"
2693
2694
2695
2696 trap '' 1 2 15
2697 cat > confcache <<\EOF
2698 # This file is a shell script that caches the results of configure
2699 # tests run on this system so they can be shared between configure
2700 # scripts and configure runs.  It is not useful on other systems.
2701 # If it contains results you don't want to keep, you may remove or edit it.
2702 #
2703 # By default, configure uses ./config.cache as the cache file,
2704 # creating it if it does not exist already.  You can give configure
2705 # the --cache-file=FILE option to use a different cache file; that is
2706 # what configure does when it calls configure scripts in
2707 # subdirectories, so they share the cache.
2708 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2709 # config.status only pays attention to the cache file if you give it the
2710 # --recheck option to rerun configure.
2711 #
2712 EOF
2713 # The following way of writing the cache mishandles newlines in values,
2714 # but we know of no workaround that is simple, portable, and efficient.
2715 # So, don't put newlines in cache variables' values.
2716 # Ultrix sh set writes to stderr and can't be redirected directly,
2717 # and sets the high bit in the cache file unless we assign to the vars.
2718 (set) 2>&1 |
2719   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2720   *ac_space=\ *)
2721     # `set' does not quote correctly, so add quotes (double-quote substitution
2722     # turns \\\\ into \\, and sed turns \\ into \).
2723     sed -n \
2724       -e "s/'/'\\\\''/g" \
2725       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2726     ;;
2727   *)
2728     # `set' quotes correctly as required by POSIX, so do not add quotes.
2729     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2730     ;;
2731   esac >> confcache
2732 if cmp -s $cache_file confcache; then
2733   :
2734 else
2735   if test -w $cache_file; then
2736     echo "updating cache $cache_file"
2737     cat confcache > $cache_file
2738   else
2739     echo "not updating unwritable cache $cache_file"
2740   fi
2741 fi
2742 rm -f confcache
2743
2744 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2745
2746 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2747 # Let make expand exec_prefix.
2748 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2749
2750 # Any assignment to VPATH causes Sun make to only execute
2751 # the first set of double-colon rules, so remove it if not needed.
2752 # If there is a colon in the path, we need to keep it.
2753 if test "x$srcdir" = x.; then
2754   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2755 fi
2756
2757 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2758
2759 DEFS=-DHAVE_CONFIG_H
2760
2761 # Without the "./", some shells look in PATH for config.status.
2762 : ${CONFIG_STATUS=./config.status}
2763
2764 echo creating $CONFIG_STATUS
2765 rm -f $CONFIG_STATUS
2766 cat > $CONFIG_STATUS <<EOF
2767 #! /bin/sh
2768 # Generated automatically by configure.
2769 # Run this file to recreate the current configuration.
2770 # This directory was configured as follows,
2771 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2772 #
2773 # $0 $ac_configure_args
2774 #
2775 # Compiler output produced by configure, useful for debugging
2776 # configure, is in ./config.log if it exists.
2777
2778 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2779 for ac_option
2780 do
2781   case "\$ac_option" in
2782   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2783     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2784     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2785   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2786     echo "$CONFIG_STATUS generated by autoconf version 2.13"
2787     exit 0 ;;
2788   -help | --help | --hel | --he | --h)
2789     echo "\$ac_cs_usage"; exit 0 ;;
2790   *) echo "\$ac_cs_usage"; exit 1 ;;
2791   esac
2792 done
2793
2794 ac_given_srcdir=$srcdir
2795 ac_given_INSTALL="$INSTALL"
2796
2797 trap 'rm -fr `echo "Makefile \
2798            src/Makefile \
2799            lib/Makefile \
2800            perl/checklinks.pl \
2801            perl/getlinks.pl \
2802            perl/formfind.pl \
2803            perl/recursiveftpget.pl   config.h src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2804 EOF
2805 cat >> $CONFIG_STATUS <<EOF
2806
2807 # Protect against being on the right side of a sed subst in config.status.
2808 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2809  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2810 $ac_vpsub
2811 $extrasub
2812 s%@SHELL@%$SHELL%g
2813 s%@CFLAGS@%$CFLAGS%g
2814 s%@CPPFLAGS@%$CPPFLAGS%g
2815 s%@CXXFLAGS@%$CXXFLAGS%g
2816 s%@FFLAGS@%$FFLAGS%g
2817 s%@DEFS@%$DEFS%g
2818 s%@LDFLAGS@%$LDFLAGS%g
2819 s%@LIBS@%$LIBS%g
2820 s%@exec_prefix@%$exec_prefix%g
2821 s%@prefix@%$prefix%g
2822 s%@program_transform_name@%$program_transform_name%g
2823 s%@bindir@%$bindir%g
2824 s%@sbindir@%$sbindir%g
2825 s%@libexecdir@%$libexecdir%g
2826 s%@datadir@%$datadir%g
2827 s%@sysconfdir@%$sysconfdir%g
2828 s%@sharedstatedir@%$sharedstatedir%g
2829 s%@localstatedir@%$localstatedir%g
2830 s%@libdir@%$libdir%g
2831 s%@includedir@%$includedir%g
2832 s%@oldincludedir@%$oldincludedir%g
2833 s%@infodir@%$infodir%g
2834 s%@mandir@%$mandir%g
2835 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2836 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2837 s%@INSTALL_DATA@%$INSTALL_DATA%g
2838 s%@PACKAGE@%$PACKAGE%g
2839 s%@VERSION@%$VERSION%g
2840 s%@ACLOCAL@%$ACLOCAL%g
2841 s%@AUTOCONF@%$AUTOCONF%g
2842 s%@AUTOMAKE@%$AUTOMAKE%g
2843 s%@AUTOHEADER@%$AUTOHEADER%g
2844 s%@MAKEINFO@%$MAKEINFO%g
2845 s%@SET_MAKE@%$SET_MAKE%g
2846 s%@CC@%$CC%g
2847 s%@CPP@%$CPP%g
2848 s%@host@%$host%g
2849 s%@host_alias@%$host_alias%g
2850 s%@host_cpu@%$host_cpu%g
2851 s%@host_vendor@%$host_vendor%g
2852 s%@host_os@%$host_os%g
2853 s%@PERL@%$PERL%g
2854 s%@NROFF@%$NROFF%g
2855 s%@RANLIB@%$RANLIB%g
2856 s%@YACC@%$YACC%g
2857
2858 CEOF
2859 EOF
2860
2861 cat >> $CONFIG_STATUS <<\EOF
2862
2863 # Split the substitutions into bite-sized pieces for seds with
2864 # small command number limits, like on Digital OSF/1 and HP-UX.
2865 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2866 ac_file=1 # Number of current file.
2867 ac_beg=1 # First line for current file.
2868 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2869 ac_more_lines=:
2870 ac_sed_cmds=""
2871 while $ac_more_lines; do
2872   if test $ac_beg -gt 1; then
2873     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2874   else
2875     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2876   fi
2877   if test ! -s conftest.s$ac_file; then
2878     ac_more_lines=false
2879     rm -f conftest.s$ac_file
2880   else
2881     if test -z "$ac_sed_cmds"; then
2882       ac_sed_cmds="sed -f conftest.s$ac_file"
2883     else
2884       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2885     fi
2886     ac_file=`expr $ac_file + 1`
2887     ac_beg=$ac_end
2888     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2889   fi
2890 done
2891 if test -z "$ac_sed_cmds"; then
2892   ac_sed_cmds=cat
2893 fi
2894 EOF
2895
2896 cat >> $CONFIG_STATUS <<EOF
2897
2898 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
2899            src/Makefile \
2900            lib/Makefile \
2901            perl/checklinks.pl \
2902            perl/getlinks.pl \
2903            perl/formfind.pl \
2904            perl/recursiveftpget.pl  "}
2905 EOF
2906 cat >> $CONFIG_STATUS <<\EOF
2907 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2908   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2909   case "$ac_file" in
2910   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2911        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2912   *) ac_file_in="${ac_file}.in" ;;
2913   esac
2914
2915   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2916
2917   # Remove last slash and all that follows it.  Not all systems have dirname.
2918   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2919   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2920     # The file is in a subdirectory.
2921     test ! -d "$ac_dir" && mkdir "$ac_dir"
2922     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2923     # A "../" for each directory in $ac_dir_suffix.
2924     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2925   else
2926     ac_dir_suffix= ac_dots=
2927   fi
2928
2929   case "$ac_given_srcdir" in
2930   .)  srcdir=.
2931       if test -z "$ac_dots"; then top_srcdir=.
2932       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2933   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2934   *) # Relative path.
2935     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2936     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2937   esac
2938
2939   case "$ac_given_INSTALL" in
2940   [/$]*) INSTALL="$ac_given_INSTALL" ;;
2941   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2942   esac
2943
2944   echo creating "$ac_file"
2945   rm -f "$ac_file"
2946   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2947   case "$ac_file" in
2948   *Makefile*) ac_comsub="1i\\
2949 # $configure_input" ;;
2950   *) ac_comsub= ;;
2951   esac
2952
2953   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2954   sed -e "$ac_comsub
2955 s%@configure_input@%$configure_input%g
2956 s%@srcdir@%$srcdir%g
2957 s%@top_srcdir@%$top_srcdir%g
2958 s%@INSTALL@%$INSTALL%g
2959 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2960 fi; done
2961 rm -f conftest.s*
2962
2963 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2964 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2965 #
2966 # ac_d sets the value in "#define NAME VALUE" lines.
2967 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2968 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2969 ac_dC='\3'
2970 ac_dD='%g'
2971 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2972 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2973 ac_uB='\([      ]\)%\1#\2define\3'
2974 ac_uC=' '
2975 ac_uD='\4%g'
2976 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2977 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2978 ac_eB='$%\1#\2define\3'
2979 ac_eC=' '
2980 ac_eD='%g'
2981
2982 if test "${CONFIG_HEADERS+set}" != set; then
2983 EOF
2984 cat >> $CONFIG_STATUS <<EOF
2985   CONFIG_HEADERS="config.h src/config.h"
2986 EOF
2987 cat >> $CONFIG_STATUS <<\EOF
2988 fi
2989 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2990   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2991   case "$ac_file" in
2992   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2993        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2994   *) ac_file_in="${ac_file}.in" ;;
2995   esac
2996
2997   echo creating $ac_file
2998
2999   rm -f conftest.frag conftest.in conftest.out
3000   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3001   cat $ac_file_inputs > conftest.in
3002
3003 EOF
3004
3005 # Transform confdefs.h into a sed script conftest.vals that substitutes
3006 # the proper values into config.h.in to produce config.h.  And first:
3007 # Protect against being on the right side of a sed subst in config.status.
3008 # Protect against being in an unquoted here document in config.status.
3009 rm -f conftest.vals
3010 cat > conftest.hdr <<\EOF
3011 s/[\\&%]/\\&/g
3012 s%[\\$`]%\\&%g
3013 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3014 s%ac_d%ac_u%gp
3015 s%ac_u%ac_e%gp
3016 EOF
3017 sed -n -f conftest.hdr confdefs.h > conftest.vals
3018 rm -f conftest.hdr
3019
3020 # This sed command replaces #undef with comments.  This is necessary, for
3021 # example, in the case of _POSIX_SOURCE, which is predefined and required
3022 # on some systems where configure will not decide to define it.
3023 cat >> conftest.vals <<\EOF
3024 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3025 EOF
3026
3027 # Break up conftest.vals because some shells have a limit on
3028 # the size of here documents, and old seds have small limits too.
3029
3030 rm -f conftest.tail
3031 while :
3032 do
3033   ac_lines=`grep -c . conftest.vals`
3034   # grep -c gives empty output for an empty file on some AIX systems.
3035   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3036   # Write a limited-size here document to conftest.frag.
3037   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3038   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3039   echo 'CEOF
3040   sed -f conftest.frag conftest.in > conftest.out
3041   rm -f conftest.in
3042   mv conftest.out conftest.in
3043 ' >> $CONFIG_STATUS
3044   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3045   rm -f conftest.vals
3046   mv conftest.tail conftest.vals
3047 done
3048 rm -f conftest.vals
3049
3050 cat >> $CONFIG_STATUS <<\EOF
3051   rm -f conftest.frag conftest.h
3052   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3053   cat conftest.in >> conftest.h
3054   rm -f conftest.in
3055   if cmp -s $ac_file conftest.h 2>/dev/null; then
3056     echo "$ac_file is unchanged"
3057     rm -f conftest.h
3058   else
3059     # Remove last slash and all that follows it.  Not all systems have dirname.
3060       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3061       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3062       # The file is in a subdirectory.
3063       test ! -d "$ac_dir" && mkdir "$ac_dir"
3064     fi
3065     rm -f $ac_file
3066     mv conftest.h $ac_file
3067   fi
3068 fi; done
3069
3070 EOF
3071 cat >> $CONFIG_STATUS <<EOF
3072
3073
3074 EOF
3075 cat >> $CONFIG_STATUS <<\EOF
3076 am_indx=1
3077 for am_file in config.h src/config.h; do
3078   case " $CONFIG_HEADERS " in
3079   *" $am_file "*)
3080     echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
3081     ;;
3082   esac
3083   am_indx=`expr "$am_indx" + 1`
3084 done
3085
3086 exit 0
3087 EOF
3088 chmod +x $CONFIG_STATUS
3089 rm -fr confdefs* $ac_clean_files
3090 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3091