Added support for CLF (Common Log Format) and fixed LOG_LEVEL_LOG
[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-list    Don't try to figure out whether a request is for an
42                           image or HTML using the imagelist - 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=4
568
569
570
571
572
573 cat >> confdefs.h <<EOF
574 #define VERSION_MAJOR ${VERSION_MAJOR}
575 EOF
576
577 cat >> confdefs.h <<EOF
578 #define VERSION_MINOR ${VERSION_MINOR}
579 EOF
580
581 cat >> confdefs.h <<EOF
582 #define VERSION_POINT ${VERSION_POINT}
583 EOF
584
585 cat >> confdefs.h <<EOF
586 #define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}"
587 EOF
588
589
590 # Extract the first word of "gcc", so it can be a program name with args.
591 set dummy gcc; ac_word=$2
592 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
593 echo "configure:594: checking for $ac_word" >&5
594 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
595   echo $ac_n "(cached) $ac_c" 1>&6
596 else
597   if test -n "$CC"; then
598   ac_cv_prog_CC="$CC" # Let the user override the test.
599 else
600   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
601   ac_dummy="$PATH"
602   for ac_dir in $ac_dummy; do
603     test -z "$ac_dir" && ac_dir=.
604     if test -f $ac_dir/$ac_word; then
605       ac_cv_prog_CC="gcc"
606       break
607     fi
608   done
609   IFS="$ac_save_ifs"
610 fi
611 fi
612 CC="$ac_cv_prog_CC"
613 if test -n "$CC"; then
614   echo "$ac_t""$CC" 1>&6
615 else
616   echo "$ac_t""no" 1>&6
617 fi
618
619 if test -z "$CC"; then
620   # Extract the first word of "cc", so it can be a program name with args.
621 set dummy cc; ac_word=$2
622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
623 echo "configure:624: checking for $ac_word" >&5
624 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
625   echo $ac_n "(cached) $ac_c" 1>&6
626 else
627   if test -n "$CC"; then
628   ac_cv_prog_CC="$CC" # Let the user override the test.
629 else
630   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
631   ac_prog_rejected=no
632   ac_dummy="$PATH"
633   for ac_dir in $ac_dummy; do
634     test -z "$ac_dir" && ac_dir=.
635     if test -f $ac_dir/$ac_word; then
636       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
637         ac_prog_rejected=yes
638         continue
639       fi
640       ac_cv_prog_CC="cc"
641       break
642     fi
643   done
644   IFS="$ac_save_ifs"
645 if test $ac_prog_rejected = yes; then
646   # We found a bogon in the path, so make sure we never use it.
647   set dummy $ac_cv_prog_CC
648   shift
649   if test $# -gt 0; then
650     # We chose a different compiler from the bogus one.
651     # However, it has the same basename, so the bogon will be chosen
652     # first if we set CC to just the basename; use the full file name.
653     shift
654     set dummy "$ac_dir/$ac_word" "$@"
655     shift
656     ac_cv_prog_CC="$@"
657   fi
658 fi
659 fi
660 fi
661 CC="$ac_cv_prog_CC"
662 if test -n "$CC"; then
663   echo "$ac_t""$CC" 1>&6
664 else
665   echo "$ac_t""no" 1>&6
666 fi
667
668   if test -z "$CC"; then
669     case "`uname -s`" in
670     *win32* | *WIN32*)
671       # Extract the first word of "cl", so it can be a program name with args.
672 set dummy cl; ac_word=$2
673 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
674 echo "configure:675: checking for $ac_word" >&5
675 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
676   echo $ac_n "(cached) $ac_c" 1>&6
677 else
678   if test -n "$CC"; then
679   ac_cv_prog_CC="$CC" # Let the user override the test.
680 else
681   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
682   ac_dummy="$PATH"
683   for ac_dir in $ac_dummy; do
684     test -z "$ac_dir" && ac_dir=.
685     if test -f $ac_dir/$ac_word; then
686       ac_cv_prog_CC="cl"
687       break
688     fi
689   done
690   IFS="$ac_save_ifs"
691 fi
692 fi
693 CC="$ac_cv_prog_CC"
694 if test -n "$CC"; then
695   echo "$ac_t""$CC" 1>&6
696 else
697   echo "$ac_t""no" 1>&6
698 fi
699  ;;
700     esac
701   fi
702   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
703 fi
704
705 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
706 echo "configure:707: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
707
708 ac_ext=c
709 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
710 ac_cpp='$CPP $CPPFLAGS'
711 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
712 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
713 cross_compiling=$ac_cv_prog_cc_cross
714
715 cat > conftest.$ac_ext << EOF
716
717 #line 718 "configure"
718 #include "confdefs.h"
719
720 main(){return(0);}
721 EOF
722 if { (eval echo configure:723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
723   ac_cv_prog_cc_works=yes
724   # If we can't run a trivial program, we are probably using a cross compiler.
725   if (./conftest; exit) 2>/dev/null; then
726     ac_cv_prog_cc_cross=no
727   else
728     ac_cv_prog_cc_cross=yes
729   fi
730 else
731   echo "configure: failed program was:" >&5
732   cat conftest.$ac_ext >&5
733   ac_cv_prog_cc_works=no
734 fi
735 rm -fr conftest*
736 ac_ext=c
737 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
738 ac_cpp='$CPP $CPPFLAGS'
739 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
740 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
741 cross_compiling=$ac_cv_prog_cc_cross
742
743 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
744 if test $ac_cv_prog_cc_works = no; then
745   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
746 fi
747 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
748 echo "configure:749: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
749 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
750 cross_compiling=$ac_cv_prog_cc_cross
751
752 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
753 echo "configure:754: checking whether we are using GNU C" >&5
754 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
755   echo $ac_n "(cached) $ac_c" 1>&6
756 else
757   cat > conftest.c <<EOF
758 #ifdef __GNUC__
759   yes;
760 #endif
761 EOF
762 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
763   ac_cv_prog_gcc=yes
764 else
765   ac_cv_prog_gcc=no
766 fi
767 fi
768
769 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
770
771 if test $ac_cv_prog_gcc = yes; then
772   GCC=yes
773 else
774   GCC=
775 fi
776
777 ac_test_CFLAGS="${CFLAGS+set}"
778 ac_save_CFLAGS="$CFLAGS"
779 CFLAGS=
780 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
781 echo "configure:782: checking whether ${CC-cc} accepts -g" >&5
782 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
783   echo $ac_n "(cached) $ac_c" 1>&6
784 else
785   echo 'void f(){}' > conftest.c
786 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
787   ac_cv_prog_cc_g=yes
788 else
789   ac_cv_prog_cc_g=no
790 fi
791 rm -f conftest*
792
793 fi
794
795 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
796 if test "$ac_test_CFLAGS" = set; then
797   CFLAGS="$ac_save_CFLAGS"
798 elif test $ac_cv_prog_cc_g = yes; then
799   if test "$GCC" = yes; then
800     CFLAGS="-g -O2"
801   else
802     CFLAGS="-g"
803   fi
804 else
805   if test "$GCC" = yes; then
806     CFLAGS="-O2"
807   else
808     CFLAGS=
809   fi
810 fi
811
812 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
813 echo "configure:814: checking how to run the C preprocessor" >&5
814 # On Suns, sometimes $CPP names a directory.
815 if test -n "$CPP" && test -d "$CPP"; then
816   CPP=
817 fi
818 if test -z "$CPP"; then
819 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
820   echo $ac_n "(cached) $ac_c" 1>&6
821 else
822     # This must be in double quotes, not single quotes, because CPP may get
823   # substituted into the Makefile and "${CC-cc}" will confuse make.
824   CPP="${CC-cc} -E"
825   # On the NeXT, cc -E runs the code through the compiler's parser,
826   # not just through cpp.
827   cat > conftest.$ac_ext <<EOF
828 #line 829 "configure"
829 #include "confdefs.h"
830 #include <assert.h>
831 Syntax Error
832 EOF
833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
834 { (eval echo configure:835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
836 if test -z "$ac_err"; then
837   :
838 else
839   echo "$ac_err" >&5
840   echo "configure: failed program was:" >&5
841   cat conftest.$ac_ext >&5
842   rm -rf conftest*
843   CPP="${CC-cc} -E -traditional-cpp"
844   cat > conftest.$ac_ext <<EOF
845 #line 846 "configure"
846 #include "confdefs.h"
847 #include <assert.h>
848 Syntax Error
849 EOF
850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
851 { (eval echo configure:852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
853 if test -z "$ac_err"; then
854   :
855 else
856   echo "$ac_err" >&5
857   echo "configure: failed program was:" >&5
858   cat conftest.$ac_ext >&5
859   rm -rf conftest*
860   CPP="${CC-cc} -nologo -E"
861   cat > conftest.$ac_ext <<EOF
862 #line 863 "configure"
863 #include "confdefs.h"
864 #include <assert.h>
865 Syntax Error
866 EOF
867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
868 { (eval echo configure:869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
870 if test -z "$ac_err"; then
871   :
872 else
873   echo "$ac_err" >&5
874   echo "configure: failed program was:" >&5
875   cat conftest.$ac_ext >&5
876   rm -rf conftest*
877   CPP=/lib/cpp
878 fi
879 rm -f conftest*
880 fi
881 rm -f conftest*
882 fi
883 rm -f conftest*
884   ac_cv_prog_CPP="$CPP"
885 fi
886   CPP="$ac_cv_prog_CPP"
887 else
888   ac_cv_prog_CPP="$CPP"
889 fi
890 echo "$ac_t""$CPP" 1>&6
891
892
893 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
894 echo "configure:895: checking for mingw32 environment" >&5
895 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
896   echo $ac_n "(cached) $ac_c" 1>&6
897 else
898   cat > conftest.$ac_ext <<EOF
899 #line 900 "configure"
900 #include "confdefs.h"
901
902 int main() {
903 return __MINGW32__;
904 ; return 0; }
905 EOF
906 if { (eval echo configure:907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
907   rm -rf conftest*
908   ac_cv_mingw32=yes
909 else
910   echo "configure: failed program was:" >&5
911   cat conftest.$ac_ext >&5
912   rm -rf conftest*
913   ac_cv_mingw32=no
914 fi
915 rm -f conftest*
916 rm -f conftest*
917 fi
918
919 echo "$ac_t""$ac_cv_mingw32" 1>&6
920 MINGW32=
921 test "$ac_cv_mingw32" = yes && MINGW32=yes
922 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
923 echo "configure:924: checking for Cygwin environment" >&5
924 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
925   echo $ac_n "(cached) $ac_c" 1>&6
926 else
927   cat > conftest.$ac_ext <<EOF
928 #line 929 "configure"
929 #include "confdefs.h"
930
931 int main() {
932
933 #ifndef __CYGWIN__
934 #define __CYGWIN__ __CYGWIN32__
935 #endif
936 return __CYGWIN__;
937 ; return 0; }
938 EOF
939 if { (eval echo configure:940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
940   rm -rf conftest*
941   ac_cv_cygwin=yes
942 else
943   echo "configure: failed program was:" >&5
944   cat conftest.$ac_ext >&5
945   rm -rf conftest*
946   ac_cv_cygwin=no
947 fi
948 rm -f conftest*
949 rm -f conftest*
950 fi
951
952 echo "$ac_t""$ac_cv_cygwin" 1>&6
953 CYGWIN=
954 test "$ac_cv_cygwin" = yes && CYGWIN=yes
955
956
957 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
958 echo "configure:959: checking for executable suffix" >&5
959 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
960   echo $ac_n "(cached) $ac_c" 1>&6
961 else
962   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
963   ac_cv_exeext=.exe
964 else
965   rm -f conftest*
966   echo 'int main () { return 0; }' > conftest.$ac_ext
967   ac_cv_exeext=
968   if { (eval echo configure:969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
969     for file in conftest.*; do
970       case $file in
971       *.c | *.o | *.obj) ;;
972       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
973       esac
974     done
975   else
976     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
977   fi
978   rm -f conftest*
979   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
980 fi
981 fi
982
983 EXEEXT=""
984 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
985 echo "$ac_t""${ac_cv_exeext}" 1>&6
986 ac_exeext=$EXEEXT
987
988 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
989 echo "configure:990: checking for object suffix" >&5
990 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
991   echo $ac_n "(cached) $ac_c" 1>&6
992 else
993   rm -f conftest*
994 echo 'int i = 1;' > conftest.$ac_ext
995 if { (eval echo configure:996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
996   for ac_file in conftest.*; do
997     case $ac_file in
998     *.c) ;;
999     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1000     esac
1001   done
1002 else
1003   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1004 fi
1005 rm -f conftest*
1006 fi
1007
1008 echo "$ac_t""$ac_cv_objext" 1>&6
1009 OBJEXT=$ac_cv_objext
1010 ac_objext=$ac_cv_objext
1011
1012
1013
1014 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1015 echo "configure:1016: checking for ANSI C header files" >&5
1016 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1017   echo $ac_n "(cached) $ac_c" 1>&6
1018 else
1019   cat > conftest.$ac_ext <<EOF
1020 #line 1021 "configure"
1021 #include "confdefs.h"
1022 #include <stdlib.h>
1023 #include <stdarg.h>
1024 #include <string.h>
1025 #include <float.h>
1026 EOF
1027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1028 { (eval echo configure:1029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1029 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1030 if test -z "$ac_err"; then
1031   rm -rf conftest*
1032   ac_cv_header_stdc=yes
1033 else
1034   echo "$ac_err" >&5
1035   echo "configure: failed program was:" >&5
1036   cat conftest.$ac_ext >&5
1037   rm -rf conftest*
1038   ac_cv_header_stdc=no
1039 fi
1040 rm -f conftest*
1041
1042 if test $ac_cv_header_stdc = yes; then
1043   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1044 cat > conftest.$ac_ext <<EOF
1045 #line 1046 "configure"
1046 #include "confdefs.h"
1047 #include <string.h>
1048 EOF
1049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1050   egrep "memchr" >/dev/null 2>&1; then
1051   :
1052 else
1053   rm -rf conftest*
1054   ac_cv_header_stdc=no
1055 fi
1056 rm -f conftest*
1057
1058 fi
1059
1060 if test $ac_cv_header_stdc = yes; then
1061   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1062 cat > conftest.$ac_ext <<EOF
1063 #line 1064 "configure"
1064 #include "confdefs.h"
1065 #include <stdlib.h>
1066 EOF
1067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1068   egrep "free" >/dev/null 2>&1; then
1069   :
1070 else
1071   rm -rf conftest*
1072   ac_cv_header_stdc=no
1073 fi
1074 rm -f conftest*
1075
1076 fi
1077
1078 if test $ac_cv_header_stdc = yes; then
1079   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1080 if test "$cross_compiling" = yes; then
1081   :
1082 else
1083   cat > conftest.$ac_ext <<EOF
1084 #line 1085 "configure"
1085 #include "confdefs.h"
1086 #include <ctype.h>
1087 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1088 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1089 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1090 int main () { int i; for (i = 0; i < 256; i++)
1091 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1092 exit (0); }
1093
1094 EOF
1095 if { (eval echo configure:1096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1096 then
1097   :
1098 else
1099   echo "configure: failed program was:" >&5
1100   cat conftest.$ac_ext >&5
1101   rm -fr conftest*
1102   ac_cv_header_stdc=no
1103 fi
1104 rm -fr conftest*
1105 fi
1106
1107 fi
1108 fi
1109
1110 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1111 if test $ac_cv_header_stdc = yes; then
1112   cat >> confdefs.h <<\EOF
1113 #define STDC_HEADERS 1
1114 EOF
1115
1116 fi
1117
1118
1119 echo $ac_n "checking for working const""... $ac_c" 1>&6
1120 echo "configure:1121: checking for working const" >&5
1121 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1122   echo $ac_n "(cached) $ac_c" 1>&6
1123 else
1124   cat > conftest.$ac_ext <<EOF
1125 #line 1126 "configure"
1126 #include "confdefs.h"
1127
1128 int main() {
1129
1130 /* Ultrix mips cc rejects this.  */
1131 typedef int charset[2]; const charset x;
1132 /* SunOS 4.1.1 cc rejects this.  */
1133 char const *const *ccp;
1134 char **p;
1135 /* NEC SVR4.0.2 mips cc rejects this.  */
1136 struct point {int x, y;};
1137 static struct point const zero = {0,0};
1138 /* AIX XL C 1.02.0.0 rejects this.
1139    It does not let you subtract one const X* pointer from another in an arm
1140    of an if-expression whose if-part is not a constant expression */
1141 const char *g = "string";
1142 ccp = &g + (g ? g-g : 0);
1143 /* HPUX 7.0 cc rejects these. */
1144 ++ccp;
1145 p = (char**) ccp;
1146 ccp = (char const *const *) p;
1147 { /* SCO 3.2v4 cc rejects this.  */
1148   char *t;
1149   char const *s = 0 ? (char *) 0 : (char const *) 0;
1150
1151   *t++ = 0;
1152 }
1153 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1154   int x[] = {25, 17};
1155   const int *foo = &x[0];
1156   ++foo;
1157 }
1158 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1159   typedef const int *iptr;
1160   iptr p = 0;
1161   ++p;
1162 }
1163 { /* AIX XL C 1.02.0.0 rejects this saying
1164      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1165   struct s { int j; const int *ap[3]; };
1166   struct s *b; b->j = 5;
1167 }
1168 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1169   const int foo = 10;
1170 }
1171
1172 ; return 0; }
1173 EOF
1174 if { (eval echo configure:1175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1175   rm -rf conftest*
1176   ac_cv_c_const=yes
1177 else
1178   echo "configure: failed program was:" >&5
1179   cat conftest.$ac_ext >&5
1180   rm -rf conftest*
1181   ac_cv_c_const=no
1182 fi
1183 rm -f conftest*
1184 fi
1185
1186 echo "$ac_t""$ac_cv_c_const" 1>&6
1187 if test $ac_cv_c_const = no; then
1188   cat >> confdefs.h <<\EOF
1189 #define const 
1190 EOF
1191
1192 fi
1193
1194 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1195 echo "configure:1196: checking for size_t" >&5
1196 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1197   echo $ac_n "(cached) $ac_c" 1>&6
1198 else
1199   cat > conftest.$ac_ext <<EOF
1200 #line 1201 "configure"
1201 #include "confdefs.h"
1202 #include <sys/types.h>
1203 #if STDC_HEADERS
1204 #include <stdlib.h>
1205 #include <stddef.h>
1206 #endif
1207 EOF
1208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1209   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1210   rm -rf conftest*
1211   ac_cv_type_size_t=yes
1212 else
1213   rm -rf conftest*
1214   ac_cv_type_size_t=no
1215 fi
1216 rm -f conftest*
1217
1218 fi
1219 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1220 if test $ac_cv_type_size_t = no; then
1221   cat >> confdefs.h <<\EOF
1222 #define size_t unsigned
1223 EOF
1224
1225 fi
1226
1227
1228 for ac_func in strerror bcopy memmove
1229 do
1230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1231 echo "configure:1232: checking for $ac_func" >&5
1232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1233   echo $ac_n "(cached) $ac_c" 1>&6
1234 else
1235   cat > conftest.$ac_ext <<EOF
1236 #line 1237 "configure"
1237 #include "confdefs.h"
1238 /* System header to define __stub macros and hopefully few prototypes,
1239     which can conflict with char $ac_func(); below.  */
1240 #include <assert.h>
1241 /* Override any gcc2 internal prototype to avoid an error.  */
1242 /* We use char because int might match the return type of a gcc2
1243     builtin and then its argument prototype would still apply.  */
1244 char $ac_func();
1245
1246 int main() {
1247
1248 /* The GNU C library defines this for functions which it implements
1249     to always fail with ENOSYS.  Some functions are actually named
1250     something starting with __ and the normal name is an alias.  */
1251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1252 choke me
1253 #else
1254 $ac_func();
1255 #endif
1256
1257 ; return 0; }
1258 EOF
1259 if { (eval echo configure:1260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1260   rm -rf conftest*
1261   eval "ac_cv_func_$ac_func=yes"
1262 else
1263   echo "configure: failed program was:" >&5
1264   cat conftest.$ac_ext >&5
1265   rm -rf conftest*
1266   eval "ac_cv_func_$ac_func=no"
1267 fi
1268 rm -f conftest*
1269 fi
1270
1271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1272   echo "$ac_t""yes" 1>&6
1273     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1274   cat >> confdefs.h <<EOF
1275 #define $ac_tr_func 1
1276 EOF
1277  
1278 else
1279   echo "$ac_t""no" 1>&6
1280 fi
1281 done
1282
1283
1284
1285 # Check whether --enable-mingw32 or --disable-mingw32 was given.
1286 if test "${enable_mingw32+set}" = set; then
1287   enableval="$enable_mingw32"
1288   if test $enableval = yes; then
1289     WIN_ONLY=
1290     CYGWIN_FLAGS="-mwindows -mno-cygwin"
1291     echo "Using mingw32 (Win32 GUI)"
1292   else
1293     WIN_ONLY=#
1294     if test "$CYGWIN" = "yes"; then
1295       CYGWIN_FLAGS="-mno-win32"
1296       echo "Using Cygnus (Win32 command line)"
1297     else
1298       CYGWIN_FLAGS=
1299     fi
1300   fi
1301 else
1302   if test "$MINGW32" = "yes"; then
1303     WIN_ONLY=
1304     CYGWIN_FLAGS="-mwindows -mno-cygwin"
1305     echo "Using mingw32 (Win32 GUI)"
1306   else
1307     WIN_ONLY=#
1308     if test "$CYGWIN" = "yes"; then
1309       CYGWIN_FLAGS="-mno-win32"
1310       echo "Using Cygnus (Win32 command line)"
1311     else
1312       CYGWIN_FLAGS=
1313     fi
1314   fi
1315 fi
1316
1317
1318
1319
1320
1321 SOLARIS_ONLY=#
1322
1323
1324
1325
1326 GNU_REGEX_ONLY=
1327 PCRE_REGEX_ONLY=
1328 NO_REGEX_ONLY=#
1329
1330 # Check whether --enable-regex or --disable-regex was given.
1331 if test "${enable_regex+set}" = set; then
1332   enableval="$enable_regex"
1333   if test $enableval = yes; then
1334   cat >> confdefs.h <<\EOF
1335 #define REGEX 1
1336 EOF
1337
1338 else
1339   NO_REGEX_ONLY=
1340   GNU_REGEX_ONLY=#
1341   PCRE_REGEX_ONLY=#
1342 fi
1343 else
1344   cat >> confdefs.h <<\EOF
1345 #define REGEX 1
1346 EOF
1347
1348 fi
1349
1350
1351 # Check whether --enable-pcre-regex or --disable-pcre-regex was given.
1352 if test "${enable_pcre_regex+set}" = set; then
1353   enableval="$enable_pcre_regex"
1354   if test $enableval = yes; then
1355   cat >> confdefs.h <<\EOF
1356 #define PCRE 1
1357 EOF
1358
1359   GNU_REGEX_ONLY=#
1360 else
1361   PCRE_REGEX_ONLY=#
1362 fi
1363 else
1364   cat >> confdefs.h <<\EOF
1365 #define PCRE 1
1366 EOF
1367
1368   GNU_REGEX_ONLY=#
1369
1370 fi
1371
1372
1373
1374
1375
1376
1377
1378
1379 # Check whether --enable-toggle or --disable-toggle was given.
1380 if test "${enable_toggle+set}" = set; then
1381   enableval="$enable_toggle"
1382   if test $enableval = yes; then
1383   cat >> confdefs.h <<\EOF
1384 #define TOGGLE 1
1385 EOF
1386
1387 fi
1388 else
1389   cat >> confdefs.h <<\EOF
1390 #define TOGGLE 1
1391 EOF
1392
1393 fi
1394
1395
1396 PCRS_ONLY=
1397 # Check whether --enable-pcrs or --disable-pcrs was given.
1398 if test "${enable_pcrs+set}" = set; then
1399   enableval="$enable_pcrs"
1400   if test $enableval = yes; then
1401   cat >> confdefs.h <<\EOF
1402 #define PCRS 1
1403 EOF
1404
1405   cat >> confdefs.h <<\EOF
1406 #define DENY_GZIP 1
1407 EOF
1408
1409 else
1410   PCRS_ONLY=#
1411 fi
1412 else
1413   cat >> confdefs.h <<\EOF
1414 #define PCRS 1
1415 EOF
1416  cat >> confdefs.h <<\EOF
1417 #define DENY_GZIP 1
1418 EOF
1419
1420 fi
1421
1422
1423
1424 # Check whether --enable-force or --disable-force was given.
1425 if test "${enable_force+set}" = set; then
1426   enableval="$enable_force"
1427   if test $enableval = yes; then
1428   cat >> confdefs.h <<\EOF
1429 #define FORCE_LOAD 1
1430 EOF
1431
1432 fi
1433 else
1434   cat >> confdefs.h <<\EOF
1435 #define FORCE_LOAD 1
1436 EOF
1437
1438 fi
1439
1440
1441 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
1442 if test "${enable_fast_redirects+set}" = set; then
1443   enableval="$enable_fast_redirects"
1444   if test $enableval = yes; then
1445   cat >> confdefs.h <<\EOF
1446 #define FAST_REDIRECTS 1
1447 EOF
1448
1449 fi
1450 else
1451   cat >> confdefs.h <<\EOF
1452 #define FAST_REDIRECTS 1
1453 EOF
1454
1455 fi
1456
1457
1458 # Check whether --enable-killpopup or --disable-killpopup was given.
1459 if test "${enable_killpopup+set}" = set; then
1460   enableval="$enable_killpopup"
1461   if test $enableval = yes; then
1462   cat >> confdefs.h <<\EOF
1463 #define KILLPOPUPS 1
1464 EOF
1465
1466 fi
1467 else
1468   cat >> confdefs.h <<\EOF
1469 #define KILLPOPUPS 1
1470 EOF
1471
1472 fi
1473
1474
1475 # Check whether --enable-stats or --disable-stats was given.
1476 if test "${enable_stats+set}" = set; then
1477   enableval="$enable_stats"
1478   if test $enableval = yes; then
1479   cat >> confdefs.h <<\EOF
1480 #define STATISTICS 1
1481 EOF
1482
1483 fi
1484 else
1485   cat >> confdefs.h <<\EOF
1486 #define STATISTICS 1
1487 EOF
1488
1489 fi
1490
1491
1492 # Check whether --enable-split-proxy-args or --disable-split-proxy-args was given.
1493 if test "${enable_split_proxy_args+set}" = set; then
1494   enableval="$enable_split_proxy_args"
1495   if test $enableval = yes; then
1496   cat >> confdefs.h <<\EOF
1497 #define SPLIT_PROXY_ARGS 1
1498 EOF
1499
1500 fi
1501 else
1502   cat >> confdefs.h <<\EOF
1503 #define SPLIT_PROXY_ARGS 1
1504 EOF
1505
1506 fi
1507
1508
1509 # Check whether --enable-webdav or --disable-webdav was given.
1510 if test "${enable_webdav+set}" = set; then
1511   enableval="$enable_webdav"
1512   if test $enableval = yes; then
1513   cat >> confdefs.h <<\EOF
1514 #define WEBDAV 1
1515 EOF
1516
1517 fi
1518 else
1519   cat >> confdefs.h <<\EOF
1520 #define WEBDAV 1
1521 EOF
1522
1523 fi
1524
1525
1526 # Check whether --enable-ie-images or --disable-ie-images was given.
1527 if test "${enable_ie_images+set}" = set; then
1528   enableval="$enable_ie_images"
1529   if test $enableval = yes; then
1530   cat >> confdefs.h <<\EOF
1531 #define DETECT_MSIE_IMAGES 1
1532 EOF
1533
1534 fi
1535 else
1536   cat >> confdefs.h <<\EOF
1537 #define DETECT_MSIE_IMAGES 1
1538 EOF
1539
1540 fi
1541
1542
1543 # Check whether --enable-image-list or --disable-image-list was given.
1544 if test "${enable_image_list+set}" = set; then
1545   enableval="$enable_image_list"
1546   if test $enableval = yes; then
1547   cat >> confdefs.h <<\EOF
1548 #define USE_IMAGE_LIST 1
1549 EOF
1550
1551 fi
1552 else
1553   cat >> confdefs.h <<\EOF
1554 #define USE_IMAGE_LIST 1
1555 EOF
1556
1557 fi
1558
1559
1560 # Check whether --enable-acl-files or --disable-acl-files was given.
1561 if test "${enable_acl_files+set}" = set; then
1562   enableval="$enable_acl_files"
1563   if test $enableval = yes; then
1564   cat >> confdefs.h <<\EOF
1565 #define ACL_FILES 1
1566 EOF
1567
1568 fi
1569 else
1570   cat >> confdefs.h <<\EOF
1571 #define ACL_FILES 1
1572 EOF
1573
1574 fi
1575
1576
1577 # Check whether --enable-trust-files or --disable-trust-files was given.
1578 if test "${enable_trust_files+set}" = set; then
1579   enableval="$enable_trust_files"
1580   if test $enableval = yes; then
1581   cat >> confdefs.h <<\EOF
1582 #define TRUST_FILES 1
1583 EOF
1584
1585 fi
1586 else
1587   cat >> confdefs.h <<\EOF
1588 #define TRUST_FILES 1
1589 EOF
1590
1591 fi
1592
1593
1594 # Check whether --enable-jar-files or --disable-jar-files was given.
1595 if test "${enable_jar_files+set}" = set; then
1596   enableval="$enable_jar_files"
1597   if test $enableval = yes; then
1598   cat >> confdefs.h <<\EOF
1599 #define JAR_FILES 1
1600 EOF
1601
1602 fi
1603 else
1604   cat >> confdefs.h <<\EOF
1605 #define JAR_FILES 1
1606 EOF
1607
1608 fi
1609
1610
1611 LIBRARY_PCRE_ONLY=#
1612 STATIC_PCRE_ONLY=
1613 # Check whether --enable-static-pcre or --disable-static-pcre was given.
1614 if test "${enable_static_pcre+set}" = set; then
1615   enableval="$enable_static_pcre"
1616   if test $enableval = no; then
1617   LIBRARY_PCRE_ONLY=
1618   STATIC_PCRE_ONLY=#
1619 fi
1620 fi
1621
1622
1623
1624
1625 trap '' 1 2 15
1626 cat > confcache <<\EOF
1627 # This file is a shell script that caches the results of configure
1628 # tests run on this system so they can be shared between configure
1629 # scripts and configure runs.  It is not useful on other systems.
1630 # If it contains results you don't want to keep, you may remove or edit it.
1631 #
1632 # By default, configure uses ./config.cache as the cache file,
1633 # creating it if it does not exist already.  You can give configure
1634 # the --cache-file=FILE option to use a different cache file; that is
1635 # what configure does when it calls configure scripts in
1636 # subdirectories, so they share the cache.
1637 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1638 # config.status only pays attention to the cache file if you give it the
1639 # --recheck option to rerun configure.
1640 #
1641 EOF
1642 # The following way of writing the cache mishandles newlines in values,
1643 # but we know of no workaround that is simple, portable, and efficient.
1644 # So, don't put newlines in cache variables' values.
1645 # Ultrix sh set writes to stderr and can't be redirected directly,
1646 # and sets the high bit in the cache file unless we assign to the vars.
1647 (set) 2>&1 |
1648   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1649   *ac_space=\ *)
1650     # `set' does not quote correctly, so add quotes (double-quote substitution
1651     # turns \\\\ into \\, and sed turns \\ into \).
1652     sed -n \
1653       -e "s/'/'\\\\''/g" \
1654       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1655     ;;
1656   *)
1657     # `set' quotes correctly as required by POSIX, so do not add quotes.
1658     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1659     ;;
1660   esac >> confcache
1661 if cmp -s $cache_file confcache; then
1662   :
1663 else
1664   if test -w $cache_file; then
1665     echo "updating cache $cache_file"
1666     cat confcache > $cache_file
1667   else
1668     echo "not updating unwritable cache $cache_file"
1669   fi
1670 fi
1671 rm -f confcache
1672
1673 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1674
1675 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1676 # Let make expand exec_prefix.
1677 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1678
1679 # Any assignment to VPATH causes Sun make to only execute
1680 # the first set of double-colon rules, so remove it if not needed.
1681 # If there is a colon in the path, we need to keep it.
1682 if test "x$srcdir" = x.; then
1683   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1684 fi
1685
1686 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1687
1688 DEFS=-DHAVE_CONFIG_H
1689
1690 # Without the "./", some shells look in PATH for config.status.
1691 : ${CONFIG_STATUS=./config.status}
1692
1693 echo creating $CONFIG_STATUS
1694 rm -f $CONFIG_STATUS
1695 cat > $CONFIG_STATUS <<EOF
1696 #! /bin/sh
1697 # Generated automatically by configure.
1698 # Run this file to recreate the current configuration.
1699 # This directory was configured as follows,
1700 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1701 #
1702 # $0 $ac_configure_args
1703 #
1704 # Compiler output produced by configure, useful for debugging
1705 # configure, is in ./config.log if it exists.
1706
1707 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1708 for ac_option
1709 do
1710   case "\$ac_option" in
1711   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1712     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1713     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1714   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1715     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1716     exit 0 ;;
1717   -help | --help | --hel | --he | --h)
1718     echo "\$ac_cs_usage"; exit 0 ;;
1719   *) echo "\$ac_cs_usage"; exit 1 ;;
1720   esac
1721 done
1722
1723 ac_given_srcdir=$srcdir
1724
1725 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1726 EOF
1727 cat >> $CONFIG_STATUS <<EOF
1728
1729 # Protect against being on the right side of a sed subst in config.status.
1730 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1731  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1732 $ac_vpsub
1733 $extrasub
1734 s%@SHELL@%$SHELL%g
1735 s%@CFLAGS@%$CFLAGS%g
1736 s%@CPPFLAGS@%$CPPFLAGS%g
1737 s%@CXXFLAGS@%$CXXFLAGS%g
1738 s%@FFLAGS@%$FFLAGS%g
1739 s%@DEFS@%$DEFS%g
1740 s%@LDFLAGS@%$LDFLAGS%g
1741 s%@LIBS@%$LIBS%g
1742 s%@exec_prefix@%$exec_prefix%g
1743 s%@prefix@%$prefix%g
1744 s%@program_transform_name@%$program_transform_name%g
1745 s%@bindir@%$bindir%g
1746 s%@sbindir@%$sbindir%g
1747 s%@libexecdir@%$libexecdir%g
1748 s%@datadir@%$datadir%g
1749 s%@sysconfdir@%$sysconfdir%g
1750 s%@sharedstatedir@%$sharedstatedir%g
1751 s%@localstatedir@%$localstatedir%g
1752 s%@libdir@%$libdir%g
1753 s%@includedir@%$includedir%g
1754 s%@oldincludedir@%$oldincludedir%g
1755 s%@infodir@%$infodir%g
1756 s%@mandir@%$mandir%g
1757 s%@VERSION_MAJOR@%$VERSION_MAJOR%g
1758 s%@VERSION_MINOR@%$VERSION_MINOR%g
1759 s%@VERSION_POINT@%$VERSION_POINT%g
1760 s%@CC@%$CC%g
1761 s%@CPP@%$CPP%g
1762 s%@EXEEXT@%$EXEEXT%g
1763 s%@OBJEXT@%$OBJEXT%g
1764 s%@WIN_ONLY@%$WIN_ONLY%g
1765 s%@CYGWIN_FLAGS@%$CYGWIN_FLAGS%g
1766 s%@SOLARIS_ONLY@%$SOLARIS_ONLY%g
1767 s%@GNU_REGEX_ONLY@%$GNU_REGEX_ONLY%g
1768 s%@PCRE_REGEX_ONLY@%$PCRE_REGEX_ONLY%g
1769 s%@NO_REGEX_ONLY@%$NO_REGEX_ONLY%g
1770 s%@PCRS_ONLY@%$PCRS_ONLY%g
1771 s%@LIBRARY_PCRE_ONLY@%$LIBRARY_PCRE_ONLY%g
1772 s%@STATIC_PCRE_ONLY@%$STATIC_PCRE_ONLY%g
1773
1774 CEOF
1775 EOF
1776
1777 cat >> $CONFIG_STATUS <<\EOF
1778
1779 # Split the substitutions into bite-sized pieces for seds with
1780 # small command number limits, like on Digital OSF/1 and HP-UX.
1781 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1782 ac_file=1 # Number of current file.
1783 ac_beg=1 # First line for current file.
1784 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1785 ac_more_lines=:
1786 ac_sed_cmds=""
1787 while $ac_more_lines; do
1788   if test $ac_beg -gt 1; then
1789     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1790   else
1791     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1792   fi
1793   if test ! -s conftest.s$ac_file; then
1794     ac_more_lines=false
1795     rm -f conftest.s$ac_file
1796   else
1797     if test -z "$ac_sed_cmds"; then
1798       ac_sed_cmds="sed -f conftest.s$ac_file"
1799     else
1800       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1801     fi
1802     ac_file=`expr $ac_file + 1`
1803     ac_beg=$ac_end
1804     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1805   fi
1806 done
1807 if test -z "$ac_sed_cmds"; then
1808   ac_sed_cmds=cat
1809 fi
1810 EOF
1811
1812 cat >> $CONFIG_STATUS <<EOF
1813
1814 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1815 EOF
1816 cat >> $CONFIG_STATUS <<\EOF
1817 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1818   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1819   case "$ac_file" in
1820   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1821        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1822   *) ac_file_in="${ac_file}.in" ;;
1823   esac
1824
1825   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1826
1827   # Remove last slash and all that follows it.  Not all systems have dirname.
1828   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1829   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1830     # The file is in a subdirectory.
1831     test ! -d "$ac_dir" && mkdir "$ac_dir"
1832     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1833     # A "../" for each directory in $ac_dir_suffix.
1834     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1835   else
1836     ac_dir_suffix= ac_dots=
1837   fi
1838
1839   case "$ac_given_srcdir" in
1840   .)  srcdir=.
1841       if test -z "$ac_dots"; then top_srcdir=.
1842       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1843   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1844   *) # Relative path.
1845     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1846     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1847   esac
1848
1849
1850   echo creating "$ac_file"
1851   rm -f "$ac_file"
1852   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1853   case "$ac_file" in
1854   *Makefile*) ac_comsub="1i\\
1855 # $configure_input" ;;
1856   *) ac_comsub= ;;
1857   esac
1858
1859   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1860   sed -e "$ac_comsub
1861 s%@configure_input@%$configure_input%g
1862 s%@srcdir@%$srcdir%g
1863 s%@top_srcdir@%$top_srcdir%g
1864 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1865 fi; done
1866 rm -f conftest.s*
1867
1868 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1869 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1870 #
1871 # ac_d sets the value in "#define NAME VALUE" lines.
1872 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
1873 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
1874 ac_dC='\3'
1875 ac_dD='%g'
1876 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1877 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1878 ac_uB='\([      ]\)%\1#\2define\3'
1879 ac_uC=' '
1880 ac_uD='\4%g'
1881 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1882 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1883 ac_eB='$%\1#\2define\3'
1884 ac_eC=' '
1885 ac_eD='%g'
1886
1887 if test "${CONFIG_HEADERS+set}" != set; then
1888 EOF
1889 cat >> $CONFIG_STATUS <<EOF
1890   CONFIG_HEADERS="config.h"
1891 EOF
1892 cat >> $CONFIG_STATUS <<\EOF
1893 fi
1894 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1895   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1896   case "$ac_file" in
1897   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1898        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1899   *) ac_file_in="${ac_file}.in" ;;
1900   esac
1901
1902   echo creating $ac_file
1903
1904   rm -f conftest.frag conftest.in conftest.out
1905   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1906   cat $ac_file_inputs > conftest.in
1907
1908 EOF
1909
1910 # Transform confdefs.h into a sed script conftest.vals that substitutes
1911 # the proper values into config.h.in to produce config.h.  And first:
1912 # Protect against being on the right side of a sed subst in config.status.
1913 # Protect against being in an unquoted here document in config.status.
1914 rm -f conftest.vals
1915 cat > conftest.hdr <<\EOF
1916 s/[\\&%]/\\&/g
1917 s%[\\$`]%\\&%g
1918 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1919 s%ac_d%ac_u%gp
1920 s%ac_u%ac_e%gp
1921 EOF
1922 sed -n -f conftest.hdr confdefs.h > conftest.vals
1923 rm -f conftest.hdr
1924
1925 # This sed command replaces #undef with comments.  This is necessary, for
1926 # example, in the case of _POSIX_SOURCE, which is predefined and required
1927 # on some systems where configure will not decide to define it.
1928 cat >> conftest.vals <<\EOF
1929 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1930 EOF
1931
1932 # Break up conftest.vals because some shells have a limit on
1933 # the size of here documents, and old seds have small limits too.
1934
1935 rm -f conftest.tail
1936 while :
1937 do
1938   ac_lines=`grep -c . conftest.vals`
1939   # grep -c gives empty output for an empty file on some AIX systems.
1940   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1941   # Write a limited-size here document to conftest.frag.
1942   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1943   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1944   echo 'CEOF
1945   sed -f conftest.frag conftest.in > conftest.out
1946   rm -f conftest.in
1947   mv conftest.out conftest.in
1948 ' >> $CONFIG_STATUS
1949   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1950   rm -f conftest.vals
1951   mv conftest.tail conftest.vals
1952 done
1953 rm -f conftest.vals
1954
1955 cat >> $CONFIG_STATUS <<\EOF
1956   rm -f conftest.frag conftest.h
1957   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
1958   cat conftest.in >> conftest.h
1959   rm -f conftest.in
1960   if cmp -s $ac_file conftest.h 2>/dev/null; then
1961     echo "$ac_file is unchanged"
1962     rm -f conftest.h
1963   else
1964     # Remove last slash and all that follows it.  Not all systems have dirname.
1965       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1966       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1967       # The file is in a subdirectory.
1968       test ! -d "$ac_dir" && mkdir "$ac_dir"
1969     fi
1970     rm -f $ac_file
1971     mv conftest.h $ac_file
1972   fi
1973 fi; done
1974
1975 EOF
1976 cat >> $CONFIG_STATUS <<EOF
1977
1978 EOF
1979 cat >> $CONFIG_STATUS <<\EOF
1980
1981 exit 0
1982 EOF
1983 chmod +x $CONFIG_STATUS
1984 rm -fr confdefs* $ac_clean_files
1985 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1986
1987