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