Added fix for config.h.win by Magnus Holmgren <lear@algonet.se>
[privoxy.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-mingw32        Use mingw32 for a Windows GUI"
16 ac_help="$ac_help
17   --disable-regex         Don't allow regular expressions in the blockfile"
18 ac_help="$ac_help
19   --disable-pcre-regex    Use old, slow GNU Regex instead of PCRE."
20 ac_help="$ac_help
21   --disable-toggle        Don't support temporary disable"
22 ac_help="$ac_help
23   --disable-pcrs          Don't support arbitrary content modification"
24 ac_help="$ac_help
25   --disable-force         Don't allow blockfle to be bypassed"
26 ac_help="$ac_help
27   --disable-fast-redirects Don't support fast redirects"
28 ac_help="$ac_help
29   --disable-killpopup     Never block popups"
30 ac_help="$ac_help
31   --disable-stats         Don't keep statistics"
32 ac_help="$ac_help
33   --disable-split-proxy-args  One big show-proxy-args page, not one per file."
34 ac_help="$ac_help
35   --disable-webdav        Don't support WebDAV.  This option stops MS Outlook
36                           Express from accessing HotMail e-mail."
37 ac_help="$ac_help
38   --disable-ie-images     Don't auto-detect whether a request from MS Internet
39                           Explorer is for an image or HTML."
40 ac_help="$ac_help
41   --disable-image-blocking  Don't try to figure out whether a request is 
42                             for an image or HTML - assume HTML."
43 ac_help="$ac_help
44   --disable-acl-files     Prevents the use of ACL files to control access to
45                           the proxy by IP address."
46 ac_help="$ac_help
47   --disable-trust-files   Prevents the use of trust files."
48 ac_help="$ac_help
49   --disable-jar-files     Prevents the use of jar files to capture cookies."
50 ac_help="$ac_help
51   --disable-static-pcre   Link dynamically with the pcre and pcreposix
52                           libraries.  You must build the libraries seperately."
53
54 # Initialize some variables set by options.
55 # The variables have the same names as the options, with
56 # dashes changed to underlines.
57 build=NONE
58 cache_file=./config.cache
59 exec_prefix=NONE
60 host=NONE
61 no_create=
62 nonopt=NONE
63 no_recursion=
64 prefix=NONE
65 program_prefix=NONE
66 program_suffix=NONE
67 program_transform_name=s,x,x,
68 silent=
69 site=
70 srcdir=
71 target=NONE
72 verbose=
73 x_includes=NONE
74 x_libraries=NONE
75 bindir='${exec_prefix}/bin'
76 sbindir='${exec_prefix}/sbin'
77 libexecdir='${exec_prefix}/libexec'
78 datadir='${prefix}/share'
79 sysconfdir='${prefix}/etc'
80 sharedstatedir='${prefix}/com'
81 localstatedir='${prefix}/var'
82 libdir='${exec_prefix}/lib'
83 includedir='${prefix}/include'
84 oldincludedir='/usr/include'
85 infodir='${prefix}/info'
86 mandir='${prefix}/man'
87
88 # Initialize some other variables.
89 subdirs=
90 MFLAGS= MAKEFLAGS=
91 SHELL=${CONFIG_SHELL-/bin/sh}
92 # Maximum number of lines to put in a shell here document.
93 ac_max_here_lines=12
94
95 ac_prev=
96 for ac_option
97 do
98
99   # If the previous option needs an argument, assign it.
100   if test -n "$ac_prev"; then
101     eval "$ac_prev=\$ac_option"
102     ac_prev=
103     continue
104   fi
105
106   case "$ac_option" in
107   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
108   *) ac_optarg= ;;
109   esac
110
111   # Accept the important Cygnus configure options, so we can diagnose typos.
112
113   case "$ac_option" in
114
115   -bindir | --bindir | --bindi | --bind | --bin | --bi)
116     ac_prev=bindir ;;
117   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
118     bindir="$ac_optarg" ;;
119
120   -build | --build | --buil | --bui | --bu)
121     ac_prev=build ;;
122   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
123     build="$ac_optarg" ;;
124
125   -cache-file | --cache-file | --cache-fil | --cache-fi \
126   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
127     ac_prev=cache_file ;;
128   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
129   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
130     cache_file="$ac_optarg" ;;
131
132   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
133     ac_prev=datadir ;;
134   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
135   | --da=*)
136     datadir="$ac_optarg" ;;
137
138   -disable-* | --disable-*)
139     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
140     # Reject names that are not valid shell variable names.
141     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
142       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143     fi
144     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
145     eval "enable_${ac_feature}=no" ;;
146
147   -enable-* | --enable-*)
148     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
149     # Reject names that are not valid shell variable names.
150     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
151       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152     fi
153     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
154     case "$ac_option" in
155       *=*) ;;
156       *) ac_optarg=yes ;;
157     esac
158     eval "enable_${ac_feature}='$ac_optarg'" ;;
159
160   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
161   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
162   | --exec | --exe | --ex)
163     ac_prev=exec_prefix ;;
164   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
165   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
166   | --exec=* | --exe=* | --ex=*)
167     exec_prefix="$ac_optarg" ;;
168
169   -gas | --gas | --ga | --g)
170     # Obsolete; use --with-gas.
171     with_gas=yes ;;
172
173   -help | --help | --hel | --he)
174     # Omit some internal or obsolete options to make the list less imposing.
175     # This message is too long to be a string in the A/UX 3.1 sh.
176     cat << EOF
177 Usage: configure [options] [host]
178 Options: [defaults in brackets after descriptions]
179 Configuration:
180   --cache-file=FILE       cache test results in FILE
181   --help                  print this message
182   --no-create             do not create output files
183   --quiet, --silent       do not print \`checking...' messages
184   --version               print the version of autoconf that created configure
185 Directory and file names:
186   --prefix=PREFIX         install architecture-independent files in PREFIX
187                           [$ac_default_prefix]
188   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
189                           [same as prefix]
190   --bindir=DIR            user executables in DIR [EPREFIX/bin]
191   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
192   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
193   --datadir=DIR           read-only architecture-independent data in DIR
194                           [PREFIX/share]
195   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
196   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
197                           [PREFIX/com]
198   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
199   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
200   --includedir=DIR        C header files in DIR [PREFIX/include]
201   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
202   --infodir=DIR           info documentation in DIR [PREFIX/info]
203   --mandir=DIR            man documentation in DIR [PREFIX/man]
204   --srcdir=DIR            find the sources in DIR [configure dir or ..]
205   --program-prefix=PREFIX prepend PREFIX to installed program names
206   --program-suffix=SUFFIX append SUFFIX to installed program names
207   --program-transform-name=PROGRAM
208                           run sed PROGRAM on installed program names
209 EOF
210     cat << EOF
211 Host type:
212   --build=BUILD           configure for building on BUILD [BUILD=HOST]
213   --host=HOST             configure for HOST [guessed]
214   --target=TARGET         configure for TARGET [TARGET=HOST]
215 Features and packages:
216   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
217   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
218   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
219   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
220   --x-includes=DIR        X include files are in DIR
221   --x-libraries=DIR       X library files are in DIR
222 EOF
223     if test -n "$ac_help"; then
224       echo "--enable and --with options recognized:$ac_help"
225     fi
226     exit 0 ;;
227
228   -host | --host | --hos | --ho)
229     ac_prev=host ;;
230   -host=* | --host=* | --hos=* | --ho=*)
231     host="$ac_optarg" ;;
232
233   -includedir | --includedir | --includedi | --included | --include \
234   | --includ | --inclu | --incl | --inc)
235     ac_prev=includedir ;;
236   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
237   | --includ=* | --inclu=* | --incl=* | --inc=*)
238     includedir="$ac_optarg" ;;
239
240   -infodir | --infodir | --infodi | --infod | --info | --inf)
241     ac_prev=infodir ;;
242   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
243     infodir="$ac_optarg" ;;
244
245   -libdir | --libdir | --libdi | --libd)
246     ac_prev=libdir ;;
247   -libdir=* | --libdir=* | --libdi=* | --libd=*)
248     libdir="$ac_optarg" ;;
249
250   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
251   | --libexe | --libex | --libe)
252     ac_prev=libexecdir ;;
253   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
254   | --libexe=* | --libex=* | --libe=*)
255     libexecdir="$ac_optarg" ;;
256
257   -localstatedir | --localstatedir | --localstatedi | --localstated \
258   | --localstate | --localstat | --localsta | --localst \
259   | --locals | --local | --loca | --loc | --lo)
260     ac_prev=localstatedir ;;
261   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
262   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
263   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
264     localstatedir="$ac_optarg" ;;
265
266   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
267     ac_prev=mandir ;;
268   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
269     mandir="$ac_optarg" ;;
270
271   -nfp | --nfp | --nf)
272     # Obsolete; use --without-fp.
273     with_fp=no ;;
274
275   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
276   | --no-cr | --no-c)
277     no_create=yes ;;
278
279   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
280   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
281     no_recursion=yes ;;
282
283   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
284   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
285   | --oldin | --oldi | --old | --ol | --o)
286     ac_prev=oldincludedir ;;
287   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
288   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
289   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
290     oldincludedir="$ac_optarg" ;;
291
292   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
293     ac_prev=prefix ;;
294   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
295     prefix="$ac_optarg" ;;
296
297   -program-prefix | --program-prefix | --program-prefi | --program-pref \
298   | --program-pre | --program-pr | --program-p)
299     ac_prev=program_prefix ;;
300   -program-prefix=* | --program-prefix=* | --program-prefi=* \
301   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
302     program_prefix="$ac_optarg" ;;
303
304   -program-suffix | --program-suffix | --program-suffi | --program-suff \
305   | --program-suf | --program-su | --program-s)
306     ac_prev=program_suffix ;;
307   -program-suffix=* | --program-suffix=* | --program-suffi=* \
308   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
309     program_suffix="$ac_optarg" ;;
310
311   -program-transform-name | --program-transform-name \
312   | --program-transform-nam | --program-transform-na \
313   | --program-transform-n | --program-transform- \
314   | --program-transform | --program-transfor \
315   | --program-transfo | --program-transf \
316   | --program-trans | --program-tran \
317   | --progr-tra | --program-tr | --program-t)
318     ac_prev=program_transform_name ;;
319   -program-transform-name=* | --program-transform-name=* \
320   | --program-transform-nam=* | --program-transform-na=* \
321   | --program-transform-n=* | --program-transform-=* \
322   | --program-transform=* | --program-transfor=* \
323   | --program-transfo=* | --program-transf=* \
324   | --program-trans=* | --program-tran=* \
325   | --progr-tra=* | --program-tr=* | --program-t=*)
326     program_transform_name="$ac_optarg" ;;
327
328   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
329   | -silent | --silent | --silen | --sile | --sil)
330     silent=yes ;;
331
332   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
333     ac_prev=sbindir ;;
334   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
335   | --sbi=* | --sb=*)
336     sbindir="$ac_optarg" ;;
337
338   -sharedstatedir | --sharedstatedir | --sharedstatedi \
339   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
340   | --sharedst | --shareds | --shared | --share | --shar \
341   | --sha | --sh)
342     ac_prev=sharedstatedir ;;
343   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
344   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
345   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
346   | --sha=* | --sh=*)
347     sharedstatedir="$ac_optarg" ;;
348
349   -site | --site | --sit)
350     ac_prev=site ;;
351   -site=* | --site=* | --sit=*)
352     site="$ac_optarg" ;;
353
354   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
355     ac_prev=srcdir ;;
356   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
357     srcdir="$ac_optarg" ;;
358
359   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
360   | --syscon | --sysco | --sysc | --sys | --sy)
361     ac_prev=sysconfdir ;;
362   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
363   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
364     sysconfdir="$ac_optarg" ;;
365
366   -target | --target | --targe | --targ | --tar | --ta | --t)
367     ac_prev=target ;;
368   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
369     target="$ac_optarg" ;;
370
371   -v | -verbose | --verbose | --verbos | --verbo | --verb)
372     verbose=yes ;;
373
374   -version | --version | --versio | --versi | --vers)
375     echo "configure generated by autoconf version 2.13"
376     exit 0 ;;
377
378   -with-* | --with-*)
379     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
380     # Reject names that are not valid shell variable names.
381     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
382       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383     fi
384     ac_package=`echo $ac_package| sed 's/-/_/g'`
385     case "$ac_option" in
386       *=*) ;;
387       *) ac_optarg=yes ;;
388     esac
389     eval "with_${ac_package}='$ac_optarg'" ;;
390
391   -without-* | --without-*)
392     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
393     # Reject names that are not valid shell variable names.
394     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
395       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396     fi
397     ac_package=`echo $ac_package| sed 's/-/_/g'`
398     eval "with_${ac_package}=no" ;;
399
400   --x)
401     # Obsolete; use --with-x.
402     with_x=yes ;;
403
404   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
405   | --x-incl | --x-inc | --x-in | --x-i)
406     ac_prev=x_includes ;;
407   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
408   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
409     x_includes="$ac_optarg" ;;
410
411   -x-libraries | --x-libraries | --x-librarie | --x-librari \
412   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
413     ac_prev=x_libraries ;;
414   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
415   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
416     x_libraries="$ac_optarg" ;;
417
418   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
419     ;;
420
421   *)
422     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
423       echo "configure: warning: $ac_option: invalid host type" 1>&2
424     fi
425     if test "x$nonopt" != xNONE; then
426       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
427     fi
428     nonopt="$ac_option"
429     ;;
430
431   esac
432 done
433
434 if test -n "$ac_prev"; then
435   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
436 fi
437
438 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
439
440 # File descriptor usage:
441 # 0 standard input
442 # 1 file creation
443 # 2 errors and warnings
444 # 3 some systems may open it to /dev/tty
445 # 4 used on the Kubota Titan
446 # 6 checking for... messages and results
447 # 5 compiler messages saved in config.log
448 if test "$silent" = yes; then
449   exec 6>/dev/null
450 else
451   exec 6>&1
452 fi
453 exec 5>./config.log
454
455 echo "\
456 This file contains any messages produced by compilers while
457 running configure, to aid debugging if configure makes a mistake.
458 " 1>&5
459
460 # Strip out --no-create and --no-recursion so they do not pile up.
461 # Also quote any args containing shell metacharacters.
462 ac_configure_args=
463 for ac_arg
464 do
465   case "$ac_arg" in
466   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
467   | --no-cr | --no-c) ;;
468   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
469   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
470   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
471   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
472   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
473   esac
474 done
475
476 # NLS nuisances.
477 # Only set these to C if already set.  These must not be set unconditionally
478 # because not all systems understand e.g. LANG=C (notably SCO).
479 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
480 # Non-C LC_CTYPE values break the ctype check.
481 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
482 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
483 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
484 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
485
486 # confdefs.h avoids OS command line length limits that DEFS can exceed.
487 rm -rf conftest* confdefs.h
488 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
489 echo > confdefs.h
490
491 # A filename unique to this package, relative to the directory that
492 # configure is in, which we can look for to find out if srcdir is correct.
493 ac_unique_file=jcc.c
494
495 # Find the source files, if location was not specified.
496 if test -z "$srcdir"; then
497   ac_srcdir_defaulted=yes
498   # Try the directory containing this script, then its parent.
499   ac_prog=$0
500   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
501   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
502   srcdir=$ac_confdir
503   if test ! -r $srcdir/$ac_unique_file; then
504     srcdir=..
505   fi
506 else
507   ac_srcdir_defaulted=no
508 fi
509 if test ! -r $srcdir/$ac_unique_file; then
510   if test "$ac_srcdir_defaulted" = yes; then
511     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
512   else
513     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
514   fi
515 fi
516 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
517
518 # Prefer explicitly selected file to automatically selected ones.
519 if test -z "$CONFIG_SITE"; then
520   if test "x$prefix" != xNONE; then
521     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
522   else
523     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
524   fi
525 fi
526 for ac_site_file in $CONFIG_SITE; do
527   if test -r "$ac_site_file"; then
528     echo "loading site script $ac_site_file"
529     . "$ac_site_file"
530   fi
531 done
532
533 if test -r "$cache_file"; then
534   echo "loading cache $cache_file"
535   . $cache_file
536 else
537   echo "creating cache $cache_file"
538   > $cache_file
539 fi
540
541 ac_ext=c
542 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
543 ac_cpp='$CPP $CPPFLAGS'
544 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
545 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
546 cross_compiling=$ac_cv_prog_cc_cross
547
548 ac_exeext=
549 ac_objext=o
550 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
551   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
552   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
553     ac_n= ac_c='
554 ' ac_t='        '
555   else
556     ac_n=-n ac_c= ac_t=
557   fi
558 else
559   ac_n= ac_c='\c' ac_t=
560 fi
561
562
563
564
565 VERSION_MAJOR=2
566 VERSION_MINOR=9
567 VERSION_POINT=5
568
569
570
571
572
573 cat >> confdefs.h <<\EOF
574 #define CODE_STATUS "alpha"
575 EOF
576
577
578 cat >> confdefs.h <<EOF
579 #define VERSION_MAJOR ${VERSION_MAJOR}
580 EOF
581
582 cat >> confdefs.h <<EOF
583 #define VERSION_MINOR ${VERSION_MINOR}
584 EOF
585
586 cat >> confdefs.h <<EOF
587 #define VERSION_POINT ${VERSION_POINT}
588 EOF
589
590 cat >> confdefs.h <<EOF
591 #define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}"
592 EOF
593
594
595 # Extract the first word of "gcc", so it can be a program name with args.
596 set dummy gcc; ac_word=$2
597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
598 echo "configure:599: checking for $ac_word" >&5
599 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
600   echo $ac_n "(cached) $ac_c" 1>&6
601 else
602   if test -n "$CC"; then
603   ac_cv_prog_CC="$CC" # Let the user override the test.
604 else
605   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
606   ac_dummy="$PATH"
607   for ac_dir in $ac_dummy; do
608     test -z "$ac_dir" && ac_dir=.
609     if test -f $ac_dir/$ac_word; then
610       ac_cv_prog_CC="gcc"
611       break
612     fi
613   done
614   IFS="$ac_save_ifs"
615 fi
616 fi
617 CC="$ac_cv_prog_CC"
618 if test -n "$CC"; then
619   echo "$ac_t""$CC" 1>&6
620 else
621   echo "$ac_t""no" 1>&6
622 fi
623
624 if test -z "$CC"; then
625   # Extract the first word of "cc", so it can be a program name with args.
626 set dummy cc; ac_word=$2
627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
628 echo "configure:629: checking for $ac_word" >&5
629 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
630   echo $ac_n "(cached) $ac_c" 1>&6
631 else
632   if test -n "$CC"; then
633   ac_cv_prog_CC="$CC" # Let the user override the test.
634 else
635   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
636   ac_prog_rejected=no
637   ac_dummy="$PATH"
638   for ac_dir in $ac_dummy; do
639     test -z "$ac_dir" && ac_dir=.
640     if test -f $ac_dir/$ac_word; then
641       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
642         ac_prog_rejected=yes
643         continue
644       fi
645       ac_cv_prog_CC="cc"
646       break
647     fi
648   done
649   IFS="$ac_save_ifs"
650 if test $ac_prog_rejected = yes; then
651   # We found a bogon in the path, so make sure we never use it.
652   set dummy $ac_cv_prog_CC
653   shift
654   if test $# -gt 0; then
655     # We chose a different compiler from the bogus one.
656     # However, it has the same basename, so the bogon will be chosen
657     # first if we set CC to just the basename; use the full file name.
658     shift
659     set dummy "$ac_dir/$ac_word" "$@"
660     shift
661     ac_cv_prog_CC="$@"
662   fi
663 fi
664 fi
665 fi
666 CC="$ac_cv_prog_CC"
667 if test -n "$CC"; then
668   echo "$ac_t""$CC" 1>&6
669 else
670   echo "$ac_t""no" 1>&6
671 fi
672
673   if test -z "$CC"; then
674     case "`uname -s`" in
675     *win32* | *WIN32*)
676       # Extract the first word of "cl", so it can be a program name with args.
677 set dummy cl; ac_word=$2
678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
679 echo "configure:680: checking for $ac_word" >&5
680 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
681   echo $ac_n "(cached) $ac_c" 1>&6
682 else
683   if test -n "$CC"; then
684   ac_cv_prog_CC="$CC" # Let the user override the test.
685 else
686   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
687   ac_dummy="$PATH"
688   for ac_dir in $ac_dummy; do
689     test -z "$ac_dir" && ac_dir=.
690     if test -f $ac_dir/$ac_word; then
691       ac_cv_prog_CC="cl"
692       break
693     fi
694   done
695   IFS="$ac_save_ifs"
696 fi
697 fi
698 CC="$ac_cv_prog_CC"
699 if test -n "$CC"; then
700   echo "$ac_t""$CC" 1>&6
701 else
702   echo "$ac_t""no" 1>&6
703 fi
704  ;;
705     esac
706   fi
707   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
708 fi
709
710 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
711 echo "configure:712: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
712
713 ac_ext=c
714 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
715 ac_cpp='$CPP $CPPFLAGS'
716 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
717 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
718 cross_compiling=$ac_cv_prog_cc_cross
719
720 cat > conftest.$ac_ext << EOF
721
722 #line 723 "configure"
723 #include "confdefs.h"
724
725 main(){return(0);}
726 EOF
727 if { (eval echo configure:728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
728   ac_cv_prog_cc_works=yes
729   # If we can't run a trivial program, we are probably using a cross compiler.
730   if (./conftest; exit) 2>/dev/null; then
731     ac_cv_prog_cc_cross=no
732   else
733     ac_cv_prog_cc_cross=yes
734   fi
735 else
736   echo "configure: failed program was:" >&5
737   cat conftest.$ac_ext >&5
738   ac_cv_prog_cc_works=no
739 fi
740 rm -fr conftest*
741 ac_ext=c
742 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
743 ac_cpp='$CPP $CPPFLAGS'
744 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
745 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
746 cross_compiling=$ac_cv_prog_cc_cross
747
748 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
749 if test $ac_cv_prog_cc_works = no; then
750   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
751 fi
752 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
753 echo "configure:754: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
754 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
755 cross_compiling=$ac_cv_prog_cc_cross
756
757 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
758 echo "configure:759: checking whether we are using GNU C" >&5
759 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
760   echo $ac_n "(cached) $ac_c" 1>&6
761 else
762   cat > conftest.c <<EOF
763 #ifdef __GNUC__
764   yes;
765 #endif
766 EOF
767 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
768   ac_cv_prog_gcc=yes
769 else
770   ac_cv_prog_gcc=no
771 fi
772 fi
773
774 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
775
776 if test $ac_cv_prog_gcc = yes; then
777   GCC=yes
778 else
779   GCC=
780 fi
781
782 ac_test_CFLAGS="${CFLAGS+set}"
783 ac_save_CFLAGS="$CFLAGS"
784 CFLAGS=
785 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
786 echo "configure:787: checking whether ${CC-cc} accepts -g" >&5
787 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
788   echo $ac_n "(cached) $ac_c" 1>&6
789 else
790   echo 'void f(){}' > conftest.c
791 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
792   ac_cv_prog_cc_g=yes
793 else
794   ac_cv_prog_cc_g=no
795 fi
796 rm -f conftest*
797
798 fi
799
800 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
801 if test "$ac_test_CFLAGS" = set; then
802   CFLAGS="$ac_save_CFLAGS"
803 elif test $ac_cv_prog_cc_g = yes; then
804   if test "$GCC" = yes; then
805     CFLAGS="-g -O2"
806   else
807     CFLAGS="-g"
808   fi
809 else
810   if test "$GCC" = yes; then
811     CFLAGS="-O2"
812   else
813     CFLAGS=
814   fi
815 fi
816
817 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
818 echo "configure:819: checking how to run the C preprocessor" >&5
819 # On Suns, sometimes $CPP names a directory.
820 if test -n "$CPP" && test -d "$CPP"; then
821   CPP=
822 fi
823 if test -z "$CPP"; then
824 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
825   echo $ac_n "(cached) $ac_c" 1>&6
826 else
827     # This must be in double quotes, not single quotes, because CPP may get
828   # substituted into the Makefile and "${CC-cc}" will confuse make.
829   CPP="${CC-cc} -E"
830   # On the NeXT, cc -E runs the code through the compiler's parser,
831   # not just through cpp.
832   cat > conftest.$ac_ext <<EOF
833 #line 834 "configure"
834 #include "confdefs.h"
835 #include <assert.h>
836 Syntax Error
837 EOF
838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
839 { (eval echo configure:840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
841 if test -z "$ac_err"; then
842   :
843 else
844   echo "$ac_err" >&5
845   echo "configure: failed program was:" >&5
846   cat conftest.$ac_ext >&5
847   rm -rf conftest*
848   CPP="${CC-cc} -E -traditional-cpp"
849   cat > conftest.$ac_ext <<EOF
850 #line 851 "configure"
851 #include "confdefs.h"
852 #include <assert.h>
853 Syntax Error
854 EOF
855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
856 { (eval echo configure:857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
858 if test -z "$ac_err"; then
859   :
860 else
861   echo "$ac_err" >&5
862   echo "configure: failed program was:" >&5
863   cat conftest.$ac_ext >&5
864   rm -rf conftest*
865   CPP="${CC-cc} -nologo -E"
866   cat > conftest.$ac_ext <<EOF
867 #line 868 "configure"
868 #include "confdefs.h"
869 #include <assert.h>
870 Syntax Error
871 EOF
872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
873 { (eval echo configure:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
875 if test -z "$ac_err"; then
876   :
877 else
878   echo "$ac_err" >&5
879   echo "configure: failed program was:" >&5
880   cat conftest.$ac_ext >&5
881   rm -rf conftest*
882   CPP=/lib/cpp
883 fi
884 rm -f conftest*
885 fi
886 rm -f conftest*
887 fi
888 rm -f conftest*
889   ac_cv_prog_CPP="$CPP"
890 fi
891   CPP="$ac_cv_prog_CPP"
892 else
893   ac_cv_prog_CPP="$CPP"
894 fi
895 echo "$ac_t""$CPP" 1>&6
896
897
898 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
899 echo "configure:900: checking for mingw32 environment" >&5
900 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
901   echo $ac_n "(cached) $ac_c" 1>&6
902 else
903   cat > conftest.$ac_ext <<EOF
904 #line 905 "configure"
905 #include "confdefs.h"
906
907 int main() {
908 return __MINGW32__;
909 ; return 0; }
910 EOF
911 if { (eval echo configure:912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
912   rm -rf conftest*
913   ac_cv_mingw32=yes
914 else
915   echo "configure: failed program was:" >&5
916   cat conftest.$ac_ext >&5
917   rm -rf conftest*
918   ac_cv_mingw32=no
919 fi
920 rm -f conftest*
921 rm -f conftest*
922 fi
923
924 echo "$ac_t""$ac_cv_mingw32" 1>&6
925 MINGW32=
926 test "$ac_cv_mingw32" = yes && MINGW32=yes
927 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
928 echo "configure:929: checking for Cygwin environment" >&5
929 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
930   echo $ac_n "(cached) $ac_c" 1>&6
931 else
932   cat > conftest.$ac_ext <<EOF
933 #line 934 "configure"
934 #include "confdefs.h"
935
936 int main() {
937
938 #ifndef __CYGWIN__
939 #define __CYGWIN__ __CYGWIN32__
940 #endif
941 return __CYGWIN__;
942 ; return 0; }
943 EOF
944 if { (eval echo configure:945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
945   rm -rf conftest*
946   ac_cv_cygwin=yes
947 else
948   echo "configure: failed program was:" >&5
949   cat conftest.$ac_ext >&5
950   rm -rf conftest*
951   ac_cv_cygwin=no
952 fi
953 rm -f conftest*
954 rm -f conftest*
955 fi
956
957 echo "$ac_t""$ac_cv_cygwin" 1>&6
958 CYGWIN=
959 test "$ac_cv_cygwin" = yes && CYGWIN=yes
960
961
962 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
963 echo "configure:964: checking for executable suffix" >&5
964 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
965   echo $ac_n "(cached) $ac_c" 1>&6
966 else
967   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
968   ac_cv_exeext=.exe
969 else
970   rm -f conftest*
971   echo 'int main () { return 0; }' > conftest.$ac_ext
972   ac_cv_exeext=
973   if { (eval echo configure:974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
974     for file in conftest.*; do
975       case $file in
976       *.c | *.o | *.obj) ;;
977       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
978       esac
979     done
980   else
981     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
982   fi
983   rm -f conftest*
984   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
985 fi
986 fi
987
988 EXEEXT=""
989 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
990 echo "$ac_t""${ac_cv_exeext}" 1>&6
991 ac_exeext=$EXEEXT
992
993 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
994 echo "configure:995: checking for object suffix" >&5
995 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
996   echo $ac_n "(cached) $ac_c" 1>&6
997 else
998   rm -f conftest*
999 echo 'int i = 1;' > conftest.$ac_ext
1000 if { (eval echo configure:1001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1001   for ac_file in conftest.*; do
1002     case $ac_file in
1003     *.c) ;;
1004     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1005     esac
1006   done
1007 else
1008   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1009 fi
1010 rm -f conftest*
1011 fi
1012
1013 echo "$ac_t""$ac_cv_objext" 1>&6
1014 OBJEXT=$ac_cv_objext
1015 ac_objext=$ac_cv_objext
1016
1017
1018
1019 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1020 echo "configure:1021: checking for ANSI C header files" >&5
1021 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1022   echo $ac_n "(cached) $ac_c" 1>&6
1023 else
1024   cat > conftest.$ac_ext <<EOF
1025 #line 1026 "configure"
1026 #include "confdefs.h"
1027 #include <stdlib.h>
1028 #include <stdarg.h>
1029 #include <string.h>
1030 #include <float.h>
1031 EOF
1032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1033 { (eval echo configure:1034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1035 if test -z "$ac_err"; then
1036   rm -rf conftest*
1037   ac_cv_header_stdc=yes
1038 else
1039   echo "$ac_err" >&5
1040   echo "configure: failed program was:" >&5
1041   cat conftest.$ac_ext >&5
1042   rm -rf conftest*
1043   ac_cv_header_stdc=no
1044 fi
1045 rm -f conftest*
1046
1047 if test $ac_cv_header_stdc = yes; then
1048   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1049 cat > conftest.$ac_ext <<EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1052 #include <string.h>
1053 EOF
1054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1055   egrep "memchr" >/dev/null 2>&1; then
1056   :
1057 else
1058   rm -rf conftest*
1059   ac_cv_header_stdc=no
1060 fi
1061 rm -f conftest*
1062
1063 fi
1064
1065 if test $ac_cv_header_stdc = yes; then
1066   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1067 cat > conftest.$ac_ext <<EOF
1068 #line 1069 "configure"
1069 #include "confdefs.h"
1070 #include <stdlib.h>
1071 EOF
1072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1073   egrep "free" >/dev/null 2>&1; then
1074   :
1075 else
1076   rm -rf conftest*
1077   ac_cv_header_stdc=no
1078 fi
1079 rm -f conftest*
1080
1081 fi
1082
1083 if test $ac_cv_header_stdc = yes; then
1084   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1085 if test "$cross_compiling" = yes; then
1086   :
1087 else
1088   cat > conftest.$ac_ext <<EOF
1089 #line 1090 "configure"
1090 #include "confdefs.h"
1091 #include <ctype.h>
1092 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1093 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1094 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1095 int main () { int i; for (i = 0; i < 256; i++)
1096 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1097 exit (0); }
1098
1099 EOF
1100 if { (eval echo configure:1101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1101 then
1102   :
1103 else
1104   echo "configure: failed program was:" >&5
1105   cat conftest.$ac_ext >&5
1106   rm -fr conftest*
1107   ac_cv_header_stdc=no
1108 fi
1109 rm -fr conftest*
1110 fi
1111
1112 fi
1113 fi
1114
1115 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1116 if test $ac_cv_header_stdc = yes; then
1117   cat >> confdefs.h <<\EOF
1118 #define STDC_HEADERS 1
1119 EOF
1120
1121 fi
1122
1123
1124 echo $ac_n "checking for working const""... $ac_c" 1>&6
1125 echo "configure:1126: checking for working const" >&5
1126 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1127   echo $ac_n "(cached) $ac_c" 1>&6
1128 else
1129   cat > conftest.$ac_ext <<EOF
1130 #line 1131 "configure"
1131 #include "confdefs.h"
1132
1133 int main() {
1134
1135 /* Ultrix mips cc rejects this.  */
1136 typedef int charset[2]; const charset x;
1137 /* SunOS 4.1.1 cc rejects this.  */
1138 char const *const *ccp;
1139 char **p;
1140 /* NEC SVR4.0.2 mips cc rejects this.  */
1141 struct point {int x, y;};
1142 static struct point const zero = {0,0};
1143 /* AIX XL C 1.02.0.0 rejects this.
1144    It does not let you subtract one const X* pointer from another in an arm
1145    of an if-expression whose if-part is not a constant expression */
1146 const char *g = "string";
1147 ccp = &g + (g ? g-g : 0);
1148 /* HPUX 7.0 cc rejects these. */
1149 ++ccp;
1150 p = (char**) ccp;
1151 ccp = (char const *const *) p;
1152 { /* SCO 3.2v4 cc rejects this.  */
1153   char *t;
1154   char const *s = 0 ? (char *) 0 : (char const *) 0;
1155
1156   *t++ = 0;
1157 }
1158 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1159   int x[] = {25, 17};
1160   const int *foo = &x[0];
1161   ++foo;
1162 }
1163 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1164   typedef const int *iptr;
1165   iptr p = 0;
1166   ++p;
1167 }
1168 { /* AIX XL C 1.02.0.0 rejects this saying
1169      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1170   struct s { int j; const int *ap[3]; };
1171   struct s *b; b->j = 5;
1172 }
1173 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1174   const int foo = 10;
1175 }
1176
1177 ; return 0; }
1178 EOF
1179 if { (eval echo configure:1180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1180   rm -rf conftest*
1181   ac_cv_c_const=yes
1182 else
1183   echo "configure: failed program was:" >&5
1184   cat conftest.$ac_ext >&5
1185   rm -rf conftest*
1186   ac_cv_c_const=no
1187 fi
1188 rm -f conftest*
1189 fi
1190
1191 echo "$ac_t""$ac_cv_c_const" 1>&6
1192 if test $ac_cv_c_const = no; then
1193   cat >> confdefs.h <<\EOF
1194 #define const 
1195 EOF
1196
1197 fi
1198
1199 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1200 echo "configure:1201: checking for size_t" >&5
1201 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1202   echo $ac_n "(cached) $ac_c" 1>&6
1203 else
1204   cat > conftest.$ac_ext <<EOF
1205 #line 1206 "configure"
1206 #include "confdefs.h"
1207 #include <sys/types.h>
1208 #if STDC_HEADERS
1209 #include <stdlib.h>
1210 #include <stddef.h>
1211 #endif
1212 EOF
1213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1214   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1215   rm -rf conftest*
1216   ac_cv_type_size_t=yes
1217 else
1218   rm -rf conftest*
1219   ac_cv_type_size_t=no
1220 fi
1221 rm -f conftest*
1222
1223 fi
1224 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1225 if test $ac_cv_type_size_t = no; then
1226   cat >> confdefs.h <<\EOF
1227 #define size_t unsigned
1228 EOF
1229
1230 fi
1231
1232
1233 for ac_func in strerror bcopy memmove
1234 do
1235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1236 echo "configure:1237: checking for $ac_func" >&5
1237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes,
1244     which can conflict with char $ac_func(); below.  */
1245 #include <assert.h>
1246 /* Override any gcc2 internal prototype to avoid an error.  */
1247 /* We use char because int might match the return type of a gcc2
1248     builtin and then its argument prototype would still apply.  */
1249 char $ac_func();
1250
1251 int main() {
1252
1253 /* The GNU C library defines this for functions which it implements
1254     to always fail with ENOSYS.  Some functions are actually named
1255     something starting with __ and the normal name is an alias.  */
1256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1257 choke me
1258 #else
1259 $ac_func();
1260 #endif
1261
1262 ; return 0; }
1263 EOF
1264 if { (eval echo configure:1265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1265   rm -rf conftest*
1266   eval "ac_cv_func_$ac_func=yes"
1267 else
1268   echo "configure: failed program was:" >&5
1269   cat conftest.$ac_ext >&5
1270   rm -rf conftest*
1271   eval "ac_cv_func_$ac_func=no"
1272 fi
1273 rm -f conftest*
1274 fi
1275
1276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1277   echo "$ac_t""yes" 1>&6
1278     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1279   cat >> confdefs.h <<EOF
1280 #define $ac_tr_func 1
1281 EOF
1282  
1283 else
1284   echo "$ac_t""no" 1>&6
1285 fi
1286 done
1287
1288
1289
1290 # Check whether --enable-mingw32 or --disable-mingw32 was given.
1291 if test "${enable_mingw32+set}" = set; then
1292   enableval="$enable_mingw32"
1293   if test $enableval = yes; then
1294     WIN_ONLY=
1295     CYGWIN_FLAGS="-mwindows -mno-cygwin"
1296     echo "Using mingw32 (Win32 GUI)"
1297   else
1298     WIN_ONLY=#
1299     if test "$CYGWIN" = "yes"; then
1300       CYGWIN_FLAGS="-mno-win32"
1301       echo "Using Cygnus (Win32 command line)"
1302     else
1303       CYGWIN_FLAGS=
1304     fi
1305   fi
1306 else
1307   if test "$MINGW32" = "yes"; then
1308     WIN_ONLY=
1309     CYGWIN_FLAGS="-mwindows -mno-cygwin"
1310     echo "Using mingw32 (Win32 GUI)"
1311   else
1312     WIN_ONLY=#
1313     if test "$CYGWIN" = "yes"; then
1314       CYGWIN_FLAGS="-mno-win32"
1315       echo "Using Cygnus (Win32 command line)"
1316     else
1317       CYGWIN_FLAGS=
1318     fi
1319   fi
1320 fi
1321
1322
1323
1324
1325
1326 SOLARIS_ONLY=#
1327
1328
1329
1330
1331 GNU_REGEX_ONLY=
1332 PCRE_REGEX_ONLY=
1333 NO_REGEX_ONLY=#
1334
1335 # Check whether --enable-regex or --disable-regex was given.
1336 if test "${enable_regex+set}" = set; then
1337   enableval="$enable_regex"
1338   if test $enableval = yes; then
1339   cat >> confdefs.h <<\EOF
1340 #define REGEX 1
1341 EOF
1342
1343 else
1344   NO_REGEX_ONLY=
1345   GNU_REGEX_ONLY=#
1346   PCRE_REGEX_ONLY=#
1347 fi
1348 else
1349   cat >> confdefs.h <<\EOF
1350 #define REGEX 1
1351 EOF
1352
1353 fi
1354
1355
1356 # Check whether --enable-pcre-regex or --disable-pcre-regex was given.
1357 if test "${enable_pcre_regex+set}" = set; then
1358   enableval="$enable_pcre_regex"
1359   if test $enableval = yes; then
1360   cat >> confdefs.h <<\EOF
1361 #define PCRE 1
1362 EOF
1363
1364   GNU_REGEX_ONLY=#
1365 else
1366   PCRE_REGEX_ONLY=#
1367 fi
1368 else
1369   cat >> confdefs.h <<\EOF
1370 #define PCRE 1
1371 EOF
1372
1373   GNU_REGEX_ONLY=#
1374
1375 fi
1376
1377
1378
1379
1380
1381
1382
1383
1384 # Check whether --enable-toggle or --disable-toggle was given.
1385 if test "${enable_toggle+set}" = set; then
1386   enableval="$enable_toggle"
1387   if test $enableval = yes; then
1388   cat >> confdefs.h <<\EOF
1389 #define TOGGLE 1
1390 EOF
1391
1392 fi
1393 else
1394   cat >> confdefs.h <<\EOF
1395 #define TOGGLE 1
1396 EOF
1397
1398 fi
1399
1400
1401 PCRS_ONLY=
1402 # Check whether --enable-pcrs or --disable-pcrs was given.
1403 if test "${enable_pcrs+set}" = set; then
1404   enableval="$enable_pcrs"
1405   if test $enableval = yes; then
1406   cat >> confdefs.h <<\EOF
1407 #define PCRS 1
1408 EOF
1409
1410   cat >> confdefs.h <<\EOF
1411 #define DENY_GZIP 1
1412 EOF
1413
1414 else
1415   PCRS_ONLY=#
1416 fi
1417 else
1418   cat >> confdefs.h <<\EOF
1419 #define PCRS 1
1420 EOF
1421  cat >> confdefs.h <<\EOF
1422 #define DENY_GZIP 1
1423 EOF
1424
1425 fi
1426
1427
1428
1429 # Check whether --enable-force or --disable-force was given.
1430 if test "${enable_force+set}" = set; then
1431   enableval="$enable_force"
1432   if test $enableval = yes; then
1433   cat >> confdefs.h <<\EOF
1434 #define FORCE_LOAD 1
1435 EOF
1436
1437 fi
1438 else
1439   cat >> confdefs.h <<\EOF
1440 #define FORCE_LOAD 1
1441 EOF
1442
1443 fi
1444
1445
1446 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
1447 if test "${enable_fast_redirects+set}" = set; then
1448   enableval="$enable_fast_redirects"
1449   if test $enableval = yes; then
1450   cat >> confdefs.h <<\EOF
1451 #define FAST_REDIRECTS 1
1452 EOF
1453
1454 fi
1455 else
1456   cat >> confdefs.h <<\EOF
1457 #define FAST_REDIRECTS 1
1458 EOF
1459
1460 fi
1461
1462
1463 # Check whether --enable-killpopup or --disable-killpopup was given.
1464 if test "${enable_killpopup+set}" = set; then
1465   enableval="$enable_killpopup"
1466   if test $enableval = yes; then
1467   cat >> confdefs.h <<\EOF
1468 #define KILLPOPUPS 1
1469 EOF
1470
1471 fi
1472 else
1473   cat >> confdefs.h <<\EOF
1474 #define KILLPOPUPS 1
1475 EOF
1476
1477 fi
1478
1479
1480 # Check whether --enable-stats or --disable-stats was given.
1481 if test "${enable_stats+set}" = set; then
1482   enableval="$enable_stats"
1483   if test $enableval = yes; then
1484   cat >> confdefs.h <<\EOF
1485 #define STATISTICS 1
1486 EOF
1487
1488 fi
1489 else
1490   cat >> confdefs.h <<\EOF
1491 #define STATISTICS 1
1492 EOF
1493
1494 fi
1495
1496
1497 # Check whether --enable-split-proxy-args or --disable-split-proxy-args was given.
1498 if test "${enable_split_proxy_args+set}" = set; then
1499   enableval="$enable_split_proxy_args"
1500   if test $enableval = yes; then
1501   cat >> confdefs.h <<\EOF
1502 #define SPLIT_PROXY_ARGS 1
1503 EOF
1504
1505 fi
1506 else
1507   cat >> confdefs.h <<\EOF
1508 #define SPLIT_PROXY_ARGS 1
1509 EOF
1510
1511 fi
1512
1513
1514 # Check whether --enable-webdav or --disable-webdav was given.
1515 if test "${enable_webdav+set}" = set; then
1516   enableval="$enable_webdav"
1517   if test $enableval = yes; then
1518   cat >> confdefs.h <<\EOF
1519 #define WEBDAV 1
1520 EOF
1521
1522 fi
1523 else
1524   cat >> confdefs.h <<\EOF
1525 #define WEBDAV 1
1526 EOF
1527
1528 fi
1529
1530
1531 # Check whether --enable-ie-images or --disable-ie-images was given.
1532 if test "${enable_ie_images+set}" = set; then
1533   enableval="$enable_ie_images"
1534   if test $enableval = yes; then
1535   cat >> confdefs.h <<\EOF
1536 #define DETECT_MSIE_IMAGES 1
1537 EOF
1538
1539 fi
1540 else
1541   cat >> confdefs.h <<\EOF
1542 #define DETECT_MSIE_IMAGES 1
1543 EOF
1544
1545 fi
1546
1547
1548 # Check whether --enable-image-blocking or --disable-image-blocking was given.
1549 if test "${enable_image_blocking+set}" = set; then
1550   enableval="$enable_image_blocking"
1551   if test $enableval = yes; then
1552   cat >> confdefs.h <<\EOF
1553 #define IMAGE_BLOCKING 1
1554 EOF
1555
1556 fi
1557 else
1558   cat >> confdefs.h <<\EOF
1559 #define IMAGE_BLOCKING 1
1560 EOF
1561
1562 fi
1563
1564
1565 # Check whether --enable-acl-files or --disable-acl-files was given.
1566 if test "${enable_acl_files+set}" = set; then
1567   enableval="$enable_acl_files"
1568   if test $enableval = yes; then
1569   cat >> confdefs.h <<\EOF
1570 #define ACL_FILES 1
1571 EOF
1572
1573 fi
1574 else
1575   cat >> confdefs.h <<\EOF
1576 #define ACL_FILES 1
1577 EOF
1578
1579 fi
1580
1581
1582 # Check whether --enable-trust-files or --disable-trust-files was given.
1583 if test "${enable_trust_files+set}" = set; then
1584   enableval="$enable_trust_files"
1585   if test $enableval = yes; then
1586   cat >> confdefs.h <<\EOF
1587 #define TRUST_FILES 1
1588 EOF
1589
1590 fi
1591 else
1592   cat >> confdefs.h <<\EOF
1593 #define TRUST_FILES 1
1594 EOF
1595
1596 fi
1597
1598
1599 # Check whether --enable-jar-files or --disable-jar-files was given.
1600 if test "${enable_jar_files+set}" = set; then
1601   enableval="$enable_jar_files"
1602   if test $enableval = yes; then
1603   cat >> confdefs.h <<\EOF
1604 #define JAR_FILES 1
1605 EOF
1606
1607 fi
1608 else
1609   cat >> confdefs.h <<\EOF
1610 #define JAR_FILES 1
1611 EOF
1612
1613 fi
1614
1615
1616 LIBRARY_PCRE_ONLY=#
1617 STATIC_PCRE_ONLY=
1618 # Check whether --enable-static-pcre or --disable-static-pcre was given.
1619 if test "${enable_static_pcre+set}" = set; then
1620   enableval="$enable_static_pcre"
1621   if test $enableval = no; then
1622   LIBRARY_PCRE_ONLY=
1623   STATIC_PCRE_ONLY=#
1624 fi
1625 fi
1626
1627
1628
1629
1630 trap '' 1 2 15
1631 cat > confcache <<\EOF
1632 # This file is a shell script that caches the results of configure
1633 # tests run on this system so they can be shared between configure
1634 # scripts and configure runs.  It is not useful on other systems.
1635 # If it contains results you don't want to keep, you may remove or edit it.
1636 #
1637 # By default, configure uses ./config.cache as the cache file,
1638 # creating it if it does not exist already.  You can give configure
1639 # the --cache-file=FILE option to use a different cache file; that is
1640 # what configure does when it calls configure scripts in
1641 # subdirectories, so they share the cache.
1642 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1643 # config.status only pays attention to the cache file if you give it the
1644 # --recheck option to rerun configure.
1645 #
1646 EOF
1647 # The following way of writing the cache mishandles newlines in values,
1648 # but we know of no workaround that is simple, portable, and efficient.
1649 # So, don't put newlines in cache variables' values.
1650 # Ultrix sh set writes to stderr and can't be redirected directly,
1651 # and sets the high bit in the cache file unless we assign to the vars.
1652 (set) 2>&1 |
1653   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1654   *ac_space=\ *)
1655     # `set' does not quote correctly, so add quotes (double-quote substitution
1656     # turns \\\\ into \\, and sed turns \\ into \).
1657     sed -n \
1658       -e "s/'/'\\\\''/g" \
1659       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1660     ;;
1661   *)
1662     # `set' quotes correctly as required by POSIX, so do not add quotes.
1663     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1664     ;;
1665   esac >> confcache
1666 if cmp -s $cache_file confcache; then
1667   :
1668 else
1669   if test -w $cache_file; then
1670     echo "updating cache $cache_file"
1671     cat confcache > $cache_file
1672   else
1673     echo "not updating unwritable cache $cache_file"
1674   fi
1675 fi
1676 rm -f confcache
1677
1678 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1679
1680 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1681 # Let make expand exec_prefix.
1682 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1683
1684 # Any assignment to VPATH causes Sun make to only execute
1685 # the first set of double-colon rules, so remove it if not needed.
1686 # If there is a colon in the path, we need to keep it.
1687 if test "x$srcdir" = x.; then
1688   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1689 fi
1690
1691 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1692
1693 DEFS=-DHAVE_CONFIG_H
1694
1695 # Without the "./", some shells look in PATH for config.status.
1696 : ${CONFIG_STATUS=./config.status}
1697
1698 echo creating $CONFIG_STATUS
1699 rm -f $CONFIG_STATUS
1700 cat > $CONFIG_STATUS <<EOF
1701 #! /bin/sh
1702 # Generated automatically by configure.
1703 # Run this file to recreate the current configuration.
1704 # This directory was configured as follows,
1705 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1706 #
1707 # $0 $ac_configure_args
1708 #
1709 # Compiler output produced by configure, useful for debugging
1710 # configure, is in ./config.log if it exists.
1711
1712 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1713 for ac_option
1714 do
1715   case "\$ac_option" in
1716   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1717     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1718     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1719   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1720     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1721     exit 0 ;;
1722   -help | --help | --hel | --he | --h)
1723     echo "\$ac_cs_usage"; exit 0 ;;
1724   *) echo "\$ac_cs_usage"; exit 1 ;;
1725   esac
1726 done
1727
1728 ac_given_srcdir=$srcdir
1729
1730 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1731 EOF
1732 cat >> $CONFIG_STATUS <<EOF
1733
1734 # Protect against being on the right side of a sed subst in config.status.
1735 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1736  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1737 $ac_vpsub
1738 $extrasub
1739 s%@SHELL@%$SHELL%g
1740 s%@CFLAGS@%$CFLAGS%g
1741 s%@CPPFLAGS@%$CPPFLAGS%g
1742 s%@CXXFLAGS@%$CXXFLAGS%g
1743 s%@FFLAGS@%$FFLAGS%g
1744 s%@DEFS@%$DEFS%g
1745 s%@LDFLAGS@%$LDFLAGS%g
1746 s%@LIBS@%$LIBS%g
1747 s%@exec_prefix@%$exec_prefix%g
1748 s%@prefix@%$prefix%g
1749 s%@program_transform_name@%$program_transform_name%g
1750 s%@bindir@%$bindir%g
1751 s%@sbindir@%$sbindir%g
1752 s%@libexecdir@%$libexecdir%g
1753 s%@datadir@%$datadir%g
1754 s%@sysconfdir@%$sysconfdir%g
1755 s%@sharedstatedir@%$sharedstatedir%g
1756 s%@localstatedir@%$localstatedir%g
1757 s%@libdir@%$libdir%g
1758 s%@includedir@%$includedir%g
1759 s%@oldincludedir@%$oldincludedir%g
1760 s%@infodir@%$infodir%g
1761 s%@mandir@%$mandir%g
1762 s%@VERSION_MAJOR@%$VERSION_MAJOR%g
1763 s%@VERSION_MINOR@%$VERSION_MINOR%g
1764 s%@VERSION_POINT@%$VERSION_POINT%g
1765 s%@CC@%$CC%g
1766 s%@CPP@%$CPP%g
1767 s%@EXEEXT@%$EXEEXT%g
1768 s%@OBJEXT@%$OBJEXT%g
1769 s%@WIN_ONLY@%$WIN_ONLY%g
1770 s%@CYGWIN_FLAGS@%$CYGWIN_FLAGS%g
1771 s%@SOLARIS_ONLY@%$SOLARIS_ONLY%g
1772 s%@GNU_REGEX_ONLY@%$GNU_REGEX_ONLY%g
1773 s%@PCRE_REGEX_ONLY@%$PCRE_REGEX_ONLY%g
1774 s%@NO_REGEX_ONLY@%$NO_REGEX_ONLY%g
1775 s%@PCRS_ONLY@%$PCRS_ONLY%g
1776 s%@LIBRARY_PCRE_ONLY@%$LIBRARY_PCRE_ONLY%g
1777 s%@STATIC_PCRE_ONLY@%$STATIC_PCRE_ONLY%g
1778
1779 CEOF
1780 EOF
1781
1782 cat >> $CONFIG_STATUS <<\EOF
1783
1784 # Split the substitutions into bite-sized pieces for seds with
1785 # small command number limits, like on Digital OSF/1 and HP-UX.
1786 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1787 ac_file=1 # Number of current file.
1788 ac_beg=1 # First line for current file.
1789 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1790 ac_more_lines=:
1791 ac_sed_cmds=""
1792 while $ac_more_lines; do
1793   if test $ac_beg -gt 1; then
1794     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1795   else
1796     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1797   fi
1798   if test ! -s conftest.s$ac_file; then
1799     ac_more_lines=false
1800     rm -f conftest.s$ac_file
1801   else
1802     if test -z "$ac_sed_cmds"; then
1803       ac_sed_cmds="sed -f conftest.s$ac_file"
1804     else
1805       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1806     fi
1807     ac_file=`expr $ac_file + 1`
1808     ac_beg=$ac_end
1809     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1810   fi
1811 done
1812 if test -z "$ac_sed_cmds"; then
1813   ac_sed_cmds=cat
1814 fi
1815 EOF
1816
1817 cat >> $CONFIG_STATUS <<EOF
1818
1819 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1820 EOF
1821 cat >> $CONFIG_STATUS <<\EOF
1822 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1823   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1824   case "$ac_file" in
1825   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1826        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1827   *) ac_file_in="${ac_file}.in" ;;
1828   esac
1829
1830   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1831
1832   # Remove last slash and all that follows it.  Not all systems have dirname.
1833   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1834   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1835     # The file is in a subdirectory.
1836     test ! -d "$ac_dir" && mkdir "$ac_dir"
1837     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1838     # A "../" for each directory in $ac_dir_suffix.
1839     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1840   else
1841     ac_dir_suffix= ac_dots=
1842   fi
1843
1844   case "$ac_given_srcdir" in
1845   .)  srcdir=.
1846       if test -z "$ac_dots"; then top_srcdir=.
1847       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1848   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1849   *) # Relative path.
1850     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1851     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1852   esac
1853
1854
1855   echo creating "$ac_file"
1856   rm -f "$ac_file"
1857   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1858   case "$ac_file" in
1859   *Makefile*) ac_comsub="1i\\
1860 # $configure_input" ;;
1861   *) ac_comsub= ;;
1862   esac
1863
1864   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1865   sed -e "$ac_comsub
1866 s%@configure_input@%$configure_input%g
1867 s%@srcdir@%$srcdir%g
1868 s%@top_srcdir@%$top_srcdir%g
1869 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1870 fi; done
1871 rm -f conftest.s*
1872
1873 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1874 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1875 #
1876 # ac_d sets the value in "#define NAME VALUE" lines.
1877 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
1878 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
1879 ac_dC='\3'
1880 ac_dD='%g'
1881 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1882 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1883 ac_uB='\([      ]\)%\1#\2define\3'
1884 ac_uC=' '
1885 ac_uD='\4%g'
1886 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1887 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1888 ac_eB='$%\1#\2define\3'
1889 ac_eC=' '
1890 ac_eD='%g'
1891
1892 if test "${CONFIG_HEADERS+set}" != set; then
1893 EOF
1894 cat >> $CONFIG_STATUS <<EOF
1895   CONFIG_HEADERS="config.h"
1896 EOF
1897 cat >> $CONFIG_STATUS <<\EOF
1898 fi
1899 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1900   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1901   case "$ac_file" in
1902   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1903        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1904   *) ac_file_in="${ac_file}.in" ;;
1905   esac
1906
1907   echo creating $ac_file
1908
1909   rm -f conftest.frag conftest.in conftest.out
1910   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1911   cat $ac_file_inputs > conftest.in
1912
1913 EOF
1914
1915 # Transform confdefs.h into a sed script conftest.vals that substitutes
1916 # the proper values into config.h.in to produce config.h.  And first:
1917 # Protect against being on the right side of a sed subst in config.status.
1918 # Protect against being in an unquoted here document in config.status.
1919 rm -f conftest.vals
1920 cat > conftest.hdr <<\EOF
1921 s/[\\&%]/\\&/g
1922 s%[\\$`]%\\&%g
1923 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1924 s%ac_d%ac_u%gp
1925 s%ac_u%ac_e%gp
1926 EOF
1927 sed -n -f conftest.hdr confdefs.h > conftest.vals
1928 rm -f conftest.hdr
1929
1930 # This sed command replaces #undef with comments.  This is necessary, for
1931 # example, in the case of _POSIX_SOURCE, which is predefined and required
1932 # on some systems where configure will not decide to define it.
1933 cat >> conftest.vals <<\EOF
1934 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1935 EOF
1936
1937 # Break up conftest.vals because some shells have a limit on
1938 # the size of here documents, and old seds have small limits too.
1939
1940 rm -f conftest.tail
1941 while :
1942 do
1943   ac_lines=`grep -c . conftest.vals`
1944   # grep -c gives empty output for an empty file on some AIX systems.
1945   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1946   # Write a limited-size here document to conftest.frag.
1947   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1948   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1949   echo 'CEOF
1950   sed -f conftest.frag conftest.in > conftest.out
1951   rm -f conftest.in
1952   mv conftest.out conftest.in
1953 ' >> $CONFIG_STATUS
1954   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1955   rm -f conftest.vals
1956   mv conftest.tail conftest.vals
1957 done
1958 rm -f conftest.vals
1959
1960 cat >> $CONFIG_STATUS <<\EOF
1961   rm -f conftest.frag conftest.h
1962   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
1963   cat conftest.in >> conftest.h
1964   rm -f conftest.in
1965   if cmp -s $ac_file conftest.h 2>/dev/null; then
1966     echo "$ac_file is unchanged"
1967     rm -f conftest.h
1968   else
1969     # Remove last slash and all that follows it.  Not all systems have dirname.
1970       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1971       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1972       # The file is in a subdirectory.
1973       test ! -d "$ac_dir" && mkdir "$ac_dir"
1974     fi
1975     rm -f $ac_file
1976     mv conftest.h $ac_file
1977   fi
1978 fi; done
1979
1980 EOF
1981 cat >> $CONFIG_STATUS <<EOF
1982
1983 EOF
1984 cat >> $CONFIG_STATUS <<\EOF
1985
1986 exit 0
1987 EOF
1988 chmod +x $CONFIG_STATUS
1989 rm -fr confdefs* $ac_clean_files
1990 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1991
1992