Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / rp-l2tp / configure
blob850ca70f4dee9e48e12bcd00e988037e7686b623
1 #! /bin/sh
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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 #ac_default_prefix=/usr/local
13 ac_default_prefix=/usr
14 # Any additions from configure.in:
16 # Initialize some variables set by options.
17 # The variables have the same names as the options, with
18 # dashes changed to underlines.
19 build=NONE
20 cache_file=./config.cache
21 exec_prefix=NONE
22 host=NONE
23 no_create=
24 nonopt=NONE
25 no_recursion=
26 prefix=NONE
27 program_prefix=NONE
28 program_suffix=NONE
29 program_transform_name=s,x,x,
30 silent=
31 site=
32 srcdir=
33 target=NONE
34 verbose=
35 x_includes=NONE
36 x_libraries=NONE
37 bindir='${exec_prefix}/bin'
38 sbindir='${exec_prefix}/sbin'
39 libexecdir='${exec_prefix}/libexec'
40 datadir='${prefix}/share'
41 sysconfdir='${prefix}/etc'
42 sharedstatedir='${prefix}/com'
43 localstatedir='${prefix}/var'
44 libdir='${exec_prefix}/lib'
45 includedir='${prefix}/include'
46 oldincludedir='/usr/include'
47 infodir='${prefix}/info'
48 mandir='${prefix}/man'
50 # Initialize some other variables.
51 subdirs=
52 MFLAGS= MAKEFLAGS=
53 SHELL=${CONFIG_SHELL-/bin/sh}
54 # Maximum number of lines to put in a shell here document.
55 ac_max_here_lines=12
57 ac_prev=
58 for ac_option
61 # If the previous option needs an argument, assign it.
62 if test -n "$ac_prev"; then
63 eval "$ac_prev=\$ac_option"
64 ac_prev=
65 continue
68 case "$ac_option" in
69 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
70 *) ac_optarg= ;;
71 esac
73 # Accept the important Cygnus configure options, so we can diagnose typos.
75 case "$ac_option" in
77 -bindir | --bindir | --bindi | --bind | --bin | --bi)
78 ac_prev=bindir ;;
79 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
80 bindir="$ac_optarg" ;;
82 -build | --build | --buil | --bui | --bu)
83 ac_prev=build ;;
84 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
85 build="$ac_optarg" ;;
87 -cache-file | --cache-file | --cache-fil | --cache-fi \
88 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
89 ac_prev=cache_file ;;
90 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
91 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
92 cache_file="$ac_optarg" ;;
94 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
95 ac_prev=datadir ;;
96 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
97 | --da=*)
98 datadir="$ac_optarg" ;;
100 -disable-* | --disable-*)
101 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
102 # Reject names that are not valid shell variable names.
103 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
104 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
106 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
107 eval "enable_${ac_feature}=no" ;;
109 -enable-* | --enable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116 case "$ac_option" in
117 *=*) ;;
118 *) ac_optarg=yes ;;
119 esac
120 eval "enable_${ac_feature}='$ac_optarg'" ;;
122 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
123 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
124 | --exec | --exe | --ex)
125 ac_prev=exec_prefix ;;
126 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
127 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
128 | --exec=* | --exe=* | --ex=*)
129 exec_prefix="$ac_optarg" ;;
131 -gas | --gas | --ga | --g)
132 # Obsolete; use --with-gas.
133 with_gas=yes ;;
135 -help | --help | --hel | --he)
136 # Omit some internal or obsolete options to make the list less imposing.
137 # This message is too long to be a string in the A/UX 3.1 sh.
138 cat << EOF
139 Usage: configure [options] [host]
140 Options: [defaults in brackets after descriptions]
141 Configuration:
142 --cache-file=FILE cache test results in FILE
143 --help print this message
144 --no-create do not create output files
145 --quiet, --silent do not print \`checking...' messages
146 --version print the version of autoconf that created configure
147 Directory and file names:
148 --prefix=PREFIX install architecture-independent files in PREFIX
149 [$ac_default_prefix]
150 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
151 [same as prefix]
152 --bindir=DIR user executables in DIR [EPREFIX/bin]
153 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
154 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
155 --datadir=DIR read-only architecture-independent data in DIR
156 [PREFIX/share]
157 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
158 --sharedstatedir=DIR modifiable architecture-independent data in DIR
159 [PREFIX/com]
160 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
161 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
162 --includedir=DIR C header files in DIR [PREFIX/include]
163 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
164 --infodir=DIR info documentation in DIR [PREFIX/info]
165 --mandir=DIR man documentation in DIR [PREFIX/man]
166 --srcdir=DIR find the sources in DIR [configure dir or ..]
167 --program-prefix=PREFIX prepend PREFIX to installed program names
168 --program-suffix=SUFFIX append SUFFIX to installed program names
169 --program-transform-name=PROGRAM
170 run sed PROGRAM on installed program names
172 cat << EOF
173 Host type:
174 --build=BUILD configure for building on BUILD [BUILD=HOST]
175 --host=HOST configure for HOST [guessed]
176 --target=TARGET configure for TARGET [TARGET=HOST]
177 Features and packages:
178 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
179 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
180 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
181 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
182 --x-includes=DIR X include files are in DIR
183 --x-libraries=DIR X library files are in DIR
185 if test -n "$ac_help"; then
186 echo "--enable and --with options recognized:$ac_help"
188 exit 0 ;;
190 -host | --host | --hos | --ho)
191 ac_prev=host ;;
192 -host=* | --host=* | --hos=* | --ho=*)
193 host="$ac_optarg" ;;
195 -includedir | --includedir | --includedi | --included | --include \
196 | --includ | --inclu | --incl | --inc)
197 ac_prev=includedir ;;
198 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
199 | --includ=* | --inclu=* | --incl=* | --inc=*)
200 includedir="$ac_optarg" ;;
202 -infodir | --infodir | --infodi | --infod | --info | --inf)
203 ac_prev=infodir ;;
204 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
205 infodir="$ac_optarg" ;;
207 -libdir | --libdir | --libdi | --libd)
208 ac_prev=libdir ;;
209 -libdir=* | --libdir=* | --libdi=* | --libd=*)
210 libdir="$ac_optarg" ;;
212 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
213 | --libexe | --libex | --libe)
214 ac_prev=libexecdir ;;
215 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
216 | --libexe=* | --libex=* | --libe=*)
217 libexecdir="$ac_optarg" ;;
219 -localstatedir | --localstatedir | --localstatedi | --localstated \
220 | --localstate | --localstat | --localsta | --localst \
221 | --locals | --local | --loca | --loc | --lo)
222 ac_prev=localstatedir ;;
223 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
224 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
225 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
226 localstatedir="$ac_optarg" ;;
228 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
229 ac_prev=mandir ;;
230 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
231 mandir="$ac_optarg" ;;
233 -nfp | --nfp | --nf)
234 # Obsolete; use --without-fp.
235 with_fp=no ;;
237 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
238 | --no-cr | --no-c)
239 no_create=yes ;;
241 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
242 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
243 no_recursion=yes ;;
245 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
246 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
247 | --oldin | --oldi | --old | --ol | --o)
248 ac_prev=oldincludedir ;;
249 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
250 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
251 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
252 oldincludedir="$ac_optarg" ;;
254 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
255 ac_prev=prefix ;;
256 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
257 prefix="$ac_optarg" ;;
259 -program-prefix | --program-prefix | --program-prefi | --program-pref \
260 | --program-pre | --program-pr | --program-p)
261 ac_prev=program_prefix ;;
262 -program-prefix=* | --program-prefix=* | --program-prefi=* \
263 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
264 program_prefix="$ac_optarg" ;;
266 -program-suffix | --program-suffix | --program-suffi | --program-suff \
267 | --program-suf | --program-su | --program-s)
268 ac_prev=program_suffix ;;
269 -program-suffix=* | --program-suffix=* | --program-suffi=* \
270 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
271 program_suffix="$ac_optarg" ;;
273 -program-transform-name | --program-transform-name \
274 | --program-transform-nam | --program-transform-na \
275 | --program-transform-n | --program-transform- \
276 | --program-transform | --program-transfor \
277 | --program-transfo | --program-transf \
278 | --program-trans | --program-tran \
279 | --progr-tra | --program-tr | --program-t)
280 ac_prev=program_transform_name ;;
281 -program-transform-name=* | --program-transform-name=* \
282 | --program-transform-nam=* | --program-transform-na=* \
283 | --program-transform-n=* | --program-transform-=* \
284 | --program-transform=* | --program-transfor=* \
285 | --program-transfo=* | --program-transf=* \
286 | --program-trans=* | --program-tran=* \
287 | --progr-tra=* | --program-tr=* | --program-t=*)
288 program_transform_name="$ac_optarg" ;;
290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
291 | -silent | --silent | --silen | --sile | --sil)
292 silent=yes ;;
294 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
295 ac_prev=sbindir ;;
296 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
297 | --sbi=* | --sb=*)
298 sbindir="$ac_optarg" ;;
300 -sharedstatedir | --sharedstatedir | --sharedstatedi \
301 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
302 | --sharedst | --shareds | --shared | --share | --shar \
303 | --sha | --sh)
304 ac_prev=sharedstatedir ;;
305 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
306 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
307 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
308 | --sha=* | --sh=*)
309 sharedstatedir="$ac_optarg" ;;
311 -site | --site | --sit)
312 ac_prev=site ;;
313 -site=* | --site=* | --sit=*)
314 site="$ac_optarg" ;;
316 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
317 ac_prev=srcdir ;;
318 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
319 srcdir="$ac_optarg" ;;
321 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
322 | --syscon | --sysco | --sysc | --sys | --sy)
323 ac_prev=sysconfdir ;;
324 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
325 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
326 sysconfdir="$ac_optarg" ;;
328 -target | --target | --targe | --targ | --tar | --ta | --t)
329 ac_prev=target ;;
330 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
331 target="$ac_optarg" ;;
333 -v | -verbose | --verbose | --verbos | --verbo | --verb)
334 verbose=yes ;;
336 -version | --version | --versio | --versi | --vers)
337 echo "configure generated by autoconf version 2.13"
338 exit 0 ;;
340 -with-* | --with-*)
341 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
342 # Reject names that are not valid shell variable names.
343 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
344 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
346 ac_package=`echo $ac_package| sed 's/-/_/g'`
347 case "$ac_option" in
348 *=*) ;;
349 *) ac_optarg=yes ;;
350 esac
351 eval "with_${ac_package}='$ac_optarg'" ;;
353 -without-* | --without-*)
354 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 ac_package=`echo $ac_package| sed 's/-/_/g'`
360 eval "with_${ac_package}=no" ;;
362 --x)
363 # Obsolete; use --with-x.
364 with_x=yes ;;
366 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
367 | --x-incl | --x-inc | --x-in | --x-i)
368 ac_prev=x_includes ;;
369 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
370 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
371 x_includes="$ac_optarg" ;;
373 -x-libraries | --x-libraries | --x-librarie | --x-librari \
374 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
375 ac_prev=x_libraries ;;
376 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
377 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
378 x_libraries="$ac_optarg" ;;
380 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
384 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
385 echo "configure: warning: $ac_option: invalid host type" 1>&2
387 if test "x$nonopt" != xNONE; then
388 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
390 nonopt="$ac_option"
393 esac
394 done
396 if test -n "$ac_prev"; then
397 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
400 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
402 # File descriptor usage:
403 # 0 standard input
404 # 1 file creation
405 # 2 errors and warnings
406 # 3 some systems may open it to /dev/tty
407 # 4 used on the Kubota Titan
408 # 6 checking for... messages and results
409 # 5 compiler messages saved in config.log
410 if test "$silent" = yes; then
411 exec 6>/dev/null
412 else
413 exec 6>&1
415 exec 5>./config.log
417 echo "\
418 This file contains any messages produced by compilers while
419 running configure, to aid debugging if configure makes a mistake.
420 " 1>&5
422 # Strip out --no-create and --no-recursion so they do not pile up.
423 # Also quote any args containing shell metacharacters.
424 ac_configure_args=
425 for ac_arg
427 case "$ac_arg" in
428 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
429 | --no-cr | --no-c) ;;
430 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
431 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
432 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
433 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
434 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
435 esac
436 done
438 # NLS nuisances.
439 # Only set these to C if already set. These must not be set unconditionally
440 # because not all systems understand e.g. LANG=C (notably SCO).
441 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
442 # Non-C LC_CTYPE values break the ctype check.
443 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
444 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
445 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
446 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
448 # confdefs.h avoids OS command line length limits that DEFS can exceed.
449 rm -rf conftest* confdefs.h
450 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
451 echo > confdefs.h
453 # A filename unique to this package, relative to the directory that
454 # configure is in, which we can look for to find out if srcdir is correct.
455 ac_unique_file=l2tp.h
457 # Find the source files, if location was not specified.
458 if test -z "$srcdir"; then
459 ac_srcdir_defaulted=yes
460 # Try the directory containing this script, then its parent.
461 ac_prog=$0
462 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
463 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
464 srcdir=$ac_confdir
465 if test ! -r $srcdir/$ac_unique_file; then
466 srcdir=..
468 else
469 ac_srcdir_defaulted=no
471 if test ! -r $srcdir/$ac_unique_file; then
472 if test "$ac_srcdir_defaulted" = yes; then
473 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
474 else
475 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
478 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
480 # Prefer explicitly selected file to automatically selected ones.
481 if test -z "$CONFIG_SITE"; then
482 if test "x$prefix" != xNONE; then
483 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
484 else
485 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
488 for ac_site_file in $CONFIG_SITE; do
489 if test -r "$ac_site_file"; then
490 echo "loading site script $ac_site_file"
491 . "$ac_site_file"
493 done
495 if test -r "$cache_file"; then
496 echo "loading cache $cache_file"
497 . $cache_file
498 else
499 echo "creating cache $cache_file"
500 > $cache_file
503 ac_ext=c
504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
505 ac_cpp='$CPP $CPPFLAGS'
506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
507 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
508 cross_compiling=$ac_cv_prog_cc_cross
510 ac_exeext=
511 ac_objext=o
512 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
513 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
514 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
515 ac_n= ac_c='
516 ' ac_t=' '
517 else
518 ac_n=-n ac_c= ac_t=
520 else
521 ac_n= ac_c='\c' ac_t=
526 # Extract the first word of "gcc", so it can be a program name with args.
527 set dummy gcc; ac_word=$2
528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
529 echo "configure:529: checking for $ac_word" >&5
530 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
531 echo $ac_n "(cached) $ac_c" 1>&6
532 else
533 if test -n "$CC"; then
534 ac_cv_prog_CC="$CC" # Let the user override the test.
535 else
536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
537 ac_dummy="$PATH"
538 for ac_dir in $ac_dummy; do
539 test -z "$ac_dir" && ac_dir=.
540 if test -f $ac_dir/$ac_word; then
541 ac_cv_prog_CC="gcc"
542 break
544 done
545 IFS="$ac_save_ifs"
548 CC="$ac_cv_prog_CC"
549 if test -n "$CC"; then
550 echo "$ac_t""$CC" 1>&6
551 else
552 echo "$ac_t""no" 1>&6
555 if test -z "$CC"; then
556 # Extract the first word of "cc", so it can be a program name with args.
557 set dummy cc; ac_word=$2
558 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
559 echo "configure:559: checking for $ac_word" >&5
560 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
561 echo $ac_n "(cached) $ac_c" 1>&6
562 else
563 if test -n "$CC"; then
564 ac_cv_prog_CC="$CC" # Let the user override the test.
565 else
566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
567 ac_prog_rejected=no
568 ac_dummy="$PATH"
569 for ac_dir in $ac_dummy; do
570 test -z "$ac_dir" && ac_dir=.
571 if test -f $ac_dir/$ac_word; then
572 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
573 ac_prog_rejected=yes
574 continue
576 ac_cv_prog_CC="cc"
577 break
579 done
580 IFS="$ac_save_ifs"
581 if test $ac_prog_rejected = yes; then
582 # We found a bogon in the path, so make sure we never use it.
583 set dummy $ac_cv_prog_CC
584 shift
585 if test $# -gt 0; then
586 # We chose a different compiler from the bogus one.
587 # However, it has the same basename, so the bogon will be chosen
588 # first if we set CC to just the basename; use the full file name.
589 shift
590 set dummy "$ac_dir/$ac_word" "$@"
591 shift
592 ac_cv_prog_CC="$@"
597 CC="$ac_cv_prog_CC"
598 if test -n "$CC"; then
599 echo "$ac_t""$CC" 1>&6
600 else
601 echo "$ac_t""no" 1>&6
604 if test -z "$CC"; then
605 case "`uname -s`" in
606 *win32* | *WIN32*)
607 # Extract the first word of "cl", so it can be a program name with args.
608 set dummy cl; ac_word=$2
609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
610 echo "configure:610: checking for $ac_word" >&5
611 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
612 echo $ac_n "(cached) $ac_c" 1>&6
613 else
614 if test -n "$CC"; then
615 ac_cv_prog_CC="$CC" # Let the user override the test.
616 else
617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
618 ac_dummy="$PATH"
619 for ac_dir in $ac_dummy; do
620 test -z "$ac_dir" && ac_dir=.
621 if test -f $ac_dir/$ac_word; then
622 ac_cv_prog_CC="cl"
623 break
625 done
626 IFS="$ac_save_ifs"
629 CC="$ac_cv_prog_CC"
630 if test -n "$CC"; then
631 echo "$ac_t""$CC" 1>&6
632 else
633 echo "$ac_t""no" 1>&6
636 esac
638 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
641 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
642 echo "configure:642: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
644 ac_ext=c
645 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
646 ac_cpp='$CPP $CPPFLAGS'
647 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
648 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
649 cross_compiling=$ac_cv_prog_cc_cross
651 cat > conftest.$ac_ext << EOF
653 #line 653 "configure"
654 #include "confdefs.h"
656 main(){return(0);}
658 if { (eval echo configure:658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
659 ac_cv_prog_cc_works=yes
660 # If we can't run a trivial program, we are probably using a cross compiler.
661 if (./conftest; exit) 2>/dev/null; then
662 ac_cv_prog_cc_cross=no
663 else
664 ac_cv_prog_cc_cross=yes
666 else
667 echo "configure: failed program was:" >&5
668 cat conftest.$ac_ext >&5
669 ac_cv_prog_cc_works=no
671 rm -fr conftest*
672 ac_ext=c
673 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
674 ac_cpp='$CPP $CPPFLAGS'
675 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
676 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
677 cross_compiling=$ac_cv_prog_cc_cross
679 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
680 if test $ac_cv_prog_cc_works = no; then
681 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
683 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
684 echo "configure:684: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
685 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
686 cross_compiling=$ac_cv_prog_cc_cross
688 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
689 echo "configure:689: checking whether we are using GNU C" >&5
690 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
691 echo $ac_n "(cached) $ac_c" 1>&6
692 else
693 cat > conftest.c <<EOF
694 #ifdef __GNUC__
695 yes;
696 #endif
698 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
699 ac_cv_prog_gcc=yes
700 else
701 ac_cv_prog_gcc=no
705 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
707 if test $ac_cv_prog_gcc = yes; then
708 GCC=yes
709 else
710 GCC=
713 ac_test_CFLAGS="${CFLAGS+set}"
714 ac_save_CFLAGS="$CFLAGS"
715 CFLAGS=
716 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
717 echo "configure:717: checking whether ${CC-cc} accepts -g" >&5
718 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
719 echo $ac_n "(cached) $ac_c" 1>&6
720 else
721 echo 'void f(){}' > conftest.c
722 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
723 ac_cv_prog_cc_g=yes
724 else
725 ac_cv_prog_cc_g=no
727 rm -f conftest*
731 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
732 if test "$ac_test_CFLAGS" = set; then
733 CFLAGS="$ac_save_CFLAGS"
734 elif test $ac_cv_prog_cc_g = yes; then
735 if test "$GCC" = yes; then
736 CFLAGS="-g -O2"
737 else
738 CFLAGS="-g"
740 else
741 if test "$GCC" = yes; then
742 CFLAGS="-O2"
743 else
744 CFLAGS=
748 ac_aux_dir=
749 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
750 if test -f $ac_dir/install-sh; then
751 ac_aux_dir=$ac_dir
752 ac_install_sh="$ac_aux_dir/install-sh -c"
753 break
754 elif test -f $ac_dir/install.sh; then
755 ac_aux_dir=$ac_dir
756 ac_install_sh="$ac_aux_dir/install.sh -c"
757 break
759 done
760 if test -z "$ac_aux_dir"; then
761 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
763 ac_config_guess=$ac_aux_dir/config.guess
764 ac_config_sub=$ac_aux_dir/config.sub
765 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
767 # Find a good install program. We prefer a C program (faster),
768 # so one script is as good as another. But avoid the broken or
769 # incompatible versions:
770 # SysV /etc/install, /usr/sbin/install
771 # SunOS /usr/etc/install
772 # IRIX /sbin/install
773 # AIX /bin/install
774 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
775 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
776 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
777 # ./install, which can be erroneously created by make from ./install.sh.
778 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
779 echo "configure:779: checking for a BSD compatible install" >&5
780 if test -z "$INSTALL"; then
781 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
783 else
784 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
785 for ac_dir in $PATH; do
786 # Account for people who put trailing slashes in PATH elements.
787 case "$ac_dir/" in
788 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
790 # OSF1 and SCO ODT 3.0 have their own names for install.
791 # Don't use installbsd from OSF since it installs stuff as root
792 # by default.
793 for ac_prog in ginstall scoinst install; do
794 if test -f $ac_dir/$ac_prog; then
795 if test $ac_prog = install &&
796 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
797 # AIX install. It has an incompatible calling convention.
799 else
800 ac_cv_path_install="$ac_dir/$ac_prog -c"
801 break 2
804 done
806 esac
807 done
808 IFS="$ac_save_IFS"
811 if test "${ac_cv_path_install+set}" = set; then
812 INSTALL="$ac_cv_path_install"
813 else
814 # As a last resort, use the slow shell script. We don't cache a
815 # path for INSTALL within a source directory, because that will
816 # break other packages using the cache if that directory is
817 # removed, or if the path is relative.
818 INSTALL="$ac_install_sh"
821 echo "$ac_t""$INSTALL" 1>&6
823 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
824 # It thinks the first close brace ends the variable substitution.
825 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
827 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
829 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
831 # Extract the first word of "ranlib", so it can be a program name with args.
832 set dummy ranlib; ac_word=$2
833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
834 echo "configure:834: checking for $ac_word" >&5
835 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
837 else
838 if test -n "$RANLIB"; then
839 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
840 else
841 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
842 ac_dummy="$PATH"
843 for ac_dir in $ac_dummy; do
844 test -z "$ac_dir" && ac_dir=.
845 if test -f $ac_dir/$ac_word; then
846 ac_cv_prog_RANLIB="ranlib"
847 break
849 done
850 IFS="$ac_save_ifs"
851 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
854 RANLIB="$ac_cv_prog_RANLIB"
855 if test -n "$RANLIB"; then
856 echo "$ac_t""$RANLIB" 1>&6
857 else
858 echo "$ac_t""no" 1>&6
862 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
863 echo "configure:863: checking for dlopen in -ldl" >&5
864 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
867 else
868 ac_save_LIBS="$LIBS"
869 LIBS="-ldl $LIBS"
870 cat > conftest.$ac_ext <<EOF
871 #line 871 "configure"
872 #include "confdefs.h"
873 /* Override any gcc2 internal prototype to avoid an error. */
874 /* We use char because int might match the return type of a gcc2
875 builtin and then its argument prototype would still apply. */
876 char dlopen();
878 int main() {
879 dlopen()
880 ; return 0; }
882 if { (eval echo configure:882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
883 rm -rf conftest*
884 eval "ac_cv_lib_$ac_lib_var=yes"
885 else
886 echo "configure: failed program was:" >&5
887 cat conftest.$ac_ext >&5
888 rm -rf conftest*
889 eval "ac_cv_lib_$ac_lib_var=no"
891 rm -f conftest*
892 LIBS="$ac_save_LIBS"
895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
896 echo "$ac_t""yes" 1>&6
897 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
898 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
899 cat >> confdefs.h <<EOF
900 #define $ac_tr_lib 1
903 LIBS="-ldl $LIBS"
905 else
906 echo "$ac_t""no" 1>&6
910 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
911 echo "configure:911: checking how to run the C preprocessor" >&5
912 # On Suns, sometimes $CPP names a directory.
913 if test -n "$CPP" && test -d "$CPP"; then
914 CPP=
916 if test -z "$CPP"; then
917 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
918 echo $ac_n "(cached) $ac_c" 1>&6
919 else
920 # This must be in double quotes, not single quotes, because CPP may get
921 # substituted into the Makefile and "${CC-cc}" will confuse make.
922 CPP="${CC-cc} -E"
923 # On the NeXT, cc -E runs the code through the compiler's parser,
924 # not just through cpp.
925 cat > conftest.$ac_ext <<EOF
926 #line 926 "configure"
927 #include "confdefs.h"
928 #include <assert.h>
929 Syntax Error
931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
932 { (eval echo configure:932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
934 if test -z "$ac_err"; then
936 else
937 echo "$ac_err" >&5
938 echo "configure: failed program was:" >&5
939 cat conftest.$ac_ext >&5
940 rm -rf conftest*
941 CPP="${CC-cc} -E -traditional-cpp"
942 cat > conftest.$ac_ext <<EOF
943 #line 943 "configure"
944 #include "confdefs.h"
945 #include <assert.h>
946 Syntax Error
948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
949 { (eval echo configure:949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
951 if test -z "$ac_err"; then
953 else
954 echo "$ac_err" >&5
955 echo "configure: failed program was:" >&5
956 cat conftest.$ac_ext >&5
957 rm -rf conftest*
958 CPP="${CC-cc} -nologo -E"
959 cat > conftest.$ac_ext <<EOF
960 #line 960 "configure"
961 #include "confdefs.h"
962 #include <assert.h>
963 Syntax Error
965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
966 { (eval echo configure:966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
967 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
968 if test -z "$ac_err"; then
970 else
971 echo "$ac_err" >&5
972 echo "configure: failed program was:" >&5
973 cat conftest.$ac_ext >&5
974 rm -rf conftest*
975 CPP=/lib/cpp
977 rm -f conftest*
979 rm -f conftest*
981 rm -f conftest*
982 ac_cv_prog_CPP="$CPP"
984 CPP="$ac_cv_prog_CPP"
985 else
986 ac_cv_prog_CPP="$CPP"
988 echo "$ac_t""$CPP" 1>&6
990 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
991 echo "configure:991: checking for ANSI C header files" >&5
992 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
994 else
995 cat > conftest.$ac_ext <<EOF
996 #line 996 "configure"
997 #include "confdefs.h"
998 #include <stdlib.h>
999 #include <stdarg.h>
1000 #include <string.h>
1001 #include <float.h>
1003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1004 { (eval echo configure:1004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1005 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1006 if test -z "$ac_err"; then
1007 rm -rf conftest*
1008 ac_cv_header_stdc=yes
1009 else
1010 echo "$ac_err" >&5
1011 echo "configure: failed program was:" >&5
1012 cat conftest.$ac_ext >&5
1013 rm -rf conftest*
1014 ac_cv_header_stdc=no
1016 rm -f conftest*
1018 if test $ac_cv_header_stdc = yes; then
1019 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1020 cat > conftest.$ac_ext <<EOF
1021 #line 1021 "configure"
1022 #include "confdefs.h"
1023 #include <string.h>
1025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1026 egrep "memchr" >/dev/null 2>&1; then
1028 else
1029 rm -rf conftest*
1030 ac_cv_header_stdc=no
1032 rm -f conftest*
1036 if test $ac_cv_header_stdc = yes; then
1037 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1038 cat > conftest.$ac_ext <<EOF
1039 #line 1039 "configure"
1040 #include "confdefs.h"
1041 #include <stdlib.h>
1043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1044 egrep "free" >/dev/null 2>&1; then
1046 else
1047 rm -rf conftest*
1048 ac_cv_header_stdc=no
1050 rm -f conftest*
1054 if test $ac_cv_header_stdc = yes; then
1055 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1056 if test "$cross_compiling" = yes; then
1058 else
1059 cat > conftest.$ac_ext <<EOF
1060 #line 1060 "configure"
1061 #include "confdefs.h"
1062 #include <ctype.h>
1063 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1064 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1065 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1066 int main () { int i; for (i = 0; i < 256; i++)
1067 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1068 exit (0); }
1071 if { (eval echo configure:1071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1072 then
1074 else
1075 echo "configure: failed program was:" >&5
1076 cat conftest.$ac_ext >&5
1077 rm -fr conftest*
1078 ac_cv_header_stdc=no
1080 rm -fr conftest*
1086 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1087 if test $ac_cv_header_stdc = yes; then
1088 cat >> confdefs.h <<\EOF
1089 #define STDC_HEADERS 1
1094 for ac_hdr in fcntl.h sys/ioctl.h sys/time.h syslog.h unistd.h
1096 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1097 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1098 echo "configure:1098: checking for $ac_hdr" >&5
1099 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1101 else
1102 cat > conftest.$ac_ext <<EOF
1103 #line 1103 "configure"
1104 #include "confdefs.h"
1105 #include <$ac_hdr>
1107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1108 { (eval echo configure:1108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1110 if test -z "$ac_err"; then
1111 rm -rf conftest*
1112 eval "ac_cv_header_$ac_safe=yes"
1113 else
1114 echo "$ac_err" >&5
1115 echo "configure: failed program was:" >&5
1116 cat conftest.$ac_ext >&5
1117 rm -rf conftest*
1118 eval "ac_cv_header_$ac_safe=no"
1120 rm -f conftest*
1122 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1123 echo "$ac_t""yes" 1>&6
1124 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1125 cat >> confdefs.h <<EOF
1126 #define $ac_tr_hdr 1
1129 else
1130 echo "$ac_t""no" 1>&6
1132 done
1135 echo $ac_n "checking for libevent directory""... $ac_c" 1>&6
1136 echo "configure:1136: checking for libevent directory" >&5
1137 if test -d ../libevent ; then
1138 LIBEVENT=../libevent
1139 elif test -d libevent ; then
1140 LIBEVENT=libevent
1141 else
1142 echo "$ac_t""not found" 1>&6
1143 echo "Cannot find libevent library; exiting"
1144 exit 1
1147 echo "$ac_t""$LIBEVENT" 1>&6
1151 echo $ac_n "checking for working const""... $ac_c" 1>&6
1152 echo "configure:1152: checking for working const" >&5
1153 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1155 else
1156 cat > conftest.$ac_ext <<EOF
1157 #line 1157 "configure"
1158 #include "confdefs.h"
1160 int main() {
1162 /* Ultrix mips cc rejects this. */
1163 typedef int charset[2]; const charset x;
1164 /* SunOS 4.1.1 cc rejects this. */
1165 char const *const *ccp;
1166 char **p;
1167 /* NEC SVR4.0.2 mips cc rejects this. */
1168 struct point {int x, y;};
1169 static struct point const zero = {0,0};
1170 /* AIX XL C 1.02.0.0 rejects this.
1171 It does not let you subtract one const X* pointer from another in an arm
1172 of an if-expression whose if-part is not a constant expression */
1173 const char *g = "string";
1174 ccp = &g + (g ? g-g : 0);
1175 /* HPUX 7.0 cc rejects these. */
1176 ++ccp;
1177 p = (char**) ccp;
1178 ccp = (char const *const *) p;
1179 { /* SCO 3.2v4 cc rejects this. */
1180 char *t;
1181 char const *s = 0 ? (char *) 0 : (char const *) 0;
1183 *t++ = 0;
1185 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1186 int x[] = {25, 17};
1187 const int *foo = &x[0];
1188 ++foo;
1190 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1191 typedef const int *iptr;
1192 iptr p = 0;
1193 ++p;
1195 { /* AIX XL C 1.02.0.0 rejects this saying
1196 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1197 struct s { int j; const int *ap[3]; };
1198 struct s *b; b->j = 5;
1200 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1201 const int foo = 10;
1204 ; return 0; }
1206 if { (eval echo configure:1206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1207 rm -rf conftest*
1208 ac_cv_c_const=yes
1209 else
1210 echo "configure: failed program was:" >&5
1211 cat conftest.$ac_ext >&5
1212 rm -rf conftest*
1213 ac_cv_c_const=no
1215 rm -f conftest*
1218 echo "$ac_t""$ac_cv_c_const" 1>&6
1219 if test $ac_cv_c_const = no; then
1220 cat >> confdefs.h <<\EOF
1221 #define const
1226 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1227 echo "configure:1227: checking for pid_t" >&5
1228 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1230 else
1231 cat > conftest.$ac_ext <<EOF
1232 #line 1232 "configure"
1233 #include "confdefs.h"
1234 #include <sys/types.h>
1235 #if STDC_HEADERS
1236 #include <stdlib.h>
1237 #include <stddef.h>
1238 #endif
1240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1241 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1242 rm -rf conftest*
1243 ac_cv_type_pid_t=yes
1244 else
1245 rm -rf conftest*
1246 ac_cv_type_pid_t=no
1248 rm -f conftest*
1251 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1252 if test $ac_cv_type_pid_t = no; then
1253 cat >> confdefs.h <<\EOF
1254 #define pid_t int
1259 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1260 echo "configure:1260: checking for size_t" >&5
1261 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1263 else
1264 cat > conftest.$ac_ext <<EOF
1265 #line 1265 "configure"
1266 #include "confdefs.h"
1267 #include <sys/types.h>
1268 #if STDC_HEADERS
1269 #include <stdlib.h>
1270 #include <stddef.h>
1271 #endif
1273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1274 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1275 rm -rf conftest*
1276 ac_cv_type_size_t=yes
1277 else
1278 rm -rf conftest*
1279 ac_cv_type_size_t=no
1281 rm -f conftest*
1284 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1285 if test $ac_cv_type_size_t = no; then
1286 cat >> confdefs.h <<\EOF
1287 #define size_t unsigned
1292 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1293 echo "configure:1293: checking whether time.h and sys/time.h may both be included" >&5
1294 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1296 else
1297 cat > conftest.$ac_ext <<EOF
1298 #line 1298 "configure"
1299 #include "confdefs.h"
1300 #include <sys/types.h>
1301 #include <sys/time.h>
1302 #include <time.h>
1303 int main() {
1304 struct tm *tp;
1305 ; return 0; }
1307 if { (eval echo configure:1307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1308 rm -rf conftest*
1309 ac_cv_header_time=yes
1310 else
1311 echo "configure: failed program was:" >&5
1312 cat conftest.$ac_ext >&5
1313 rm -rf conftest*
1314 ac_cv_header_time=no
1316 rm -f conftest*
1319 echo "$ac_t""$ac_cv_header_time" 1>&6
1320 if test $ac_cv_header_time = yes; then
1321 cat >> confdefs.h <<\EOF
1322 #define TIME_WITH_SYS_TIME 1
1328 if test $ac_cv_prog_gcc = yes; then
1329 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1330 echo "configure:1330: checking whether ${CC-cc} needs -traditional" >&5
1331 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1333 else
1334 ac_pattern="Autoconf.*'x'"
1335 cat > conftest.$ac_ext <<EOF
1336 #line 1336 "configure"
1337 #include "confdefs.h"
1338 #include <sgtty.h>
1339 Autoconf TIOCGETP
1341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1342 egrep "$ac_pattern" >/dev/null 2>&1; then
1343 rm -rf conftest*
1344 ac_cv_prog_gcc_traditional=yes
1345 else
1346 rm -rf conftest*
1347 ac_cv_prog_gcc_traditional=no
1349 rm -f conftest*
1352 if test $ac_cv_prog_gcc_traditional = no; then
1353 cat > conftest.$ac_ext <<EOF
1354 #line 1354 "configure"
1355 #include "confdefs.h"
1356 #include <termio.h>
1357 Autoconf TCGETA
1359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1360 egrep "$ac_pattern" >/dev/null 2>&1; then
1361 rm -rf conftest*
1362 ac_cv_prog_gcc_traditional=yes
1364 rm -f conftest*
1369 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1370 if test $ac_cv_prog_gcc_traditional = yes; then
1371 CC="$CC -traditional"
1375 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1376 echo "configure:1376: checking for 8-bit clean memcmp" >&5
1377 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1378 echo $ac_n "(cached) $ac_c" 1>&6
1379 else
1380 if test "$cross_compiling" = yes; then
1381 ac_cv_func_memcmp_clean=no
1382 else
1383 cat > conftest.$ac_ext <<EOF
1384 #line 1384 "configure"
1385 #include "confdefs.h"
1387 main()
1389 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1390 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
1394 if { (eval echo configure:1394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1395 then
1396 ac_cv_func_memcmp_clean=yes
1397 else
1398 echo "configure: failed program was:" >&5
1399 cat conftest.$ac_ext >&5
1400 rm -fr conftest*
1401 ac_cv_func_memcmp_clean=no
1403 rm -fr conftest*
1408 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
1409 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
1411 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1412 echo "configure:1412: checking return type of signal handlers" >&5
1413 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1414 echo $ac_n "(cached) $ac_c" 1>&6
1415 else
1416 cat > conftest.$ac_ext <<EOF
1417 #line 1417 "configure"
1418 #include "confdefs.h"
1419 #include <sys/types.h>
1420 #include <signal.h>
1421 #ifdef signal
1422 #undef signal
1423 #endif
1424 #ifdef __cplusplus
1425 extern "C" void (*signal (int, void (*)(int)))(int);
1426 #else
1427 void (*signal ()) ();
1428 #endif
1430 int main() {
1431 int i;
1432 ; return 0; }
1434 if { (eval echo configure:1434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1435 rm -rf conftest*
1436 ac_cv_type_signal=void
1437 else
1438 echo "configure: failed program was:" >&5
1439 cat conftest.$ac_ext >&5
1440 rm -rf conftest*
1441 ac_cv_type_signal=int
1443 rm -f conftest*
1446 echo "$ac_t""$ac_cv_type_signal" 1>&6
1447 cat >> confdefs.h <<EOF
1448 #define RETSIGTYPE $ac_cv_type_signal
1452 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1453 echo "configure:1453: checking for vprintf" >&5
1454 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1456 else
1457 cat > conftest.$ac_ext <<EOF
1458 #line 1458 "configure"
1459 #include "confdefs.h"
1460 /* System header to define __stub macros and hopefully few prototypes,
1461 which can conflict with char vprintf(); below. */
1462 #include <assert.h>
1463 /* Override any gcc2 internal prototype to avoid an error. */
1464 /* We use char because int might match the return type of a gcc2
1465 builtin and then its argument prototype would still apply. */
1466 char vprintf();
1468 int main() {
1470 /* The GNU C library defines this for functions which it implements
1471 to always fail with ENOSYS. Some functions are actually named
1472 something starting with __ and the normal name is an alias. */
1473 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1474 choke me
1475 #else
1476 vprintf();
1477 #endif
1479 ; return 0; }
1481 if { (eval echo configure:1481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1482 rm -rf conftest*
1483 eval "ac_cv_func_vprintf=yes"
1484 else
1485 echo "configure: failed program was:" >&5
1486 cat conftest.$ac_ext >&5
1487 rm -rf conftest*
1488 eval "ac_cv_func_vprintf=no"
1490 rm -f conftest*
1493 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1494 echo "$ac_t""yes" 1>&6
1495 cat >> confdefs.h <<\EOF
1496 #define HAVE_VPRINTF 1
1499 else
1500 echo "$ac_t""no" 1>&6
1503 if test "$ac_cv_func_vprintf" != yes; then
1504 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1505 echo "configure:1505: checking for _doprnt" >&5
1506 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1508 else
1509 cat > conftest.$ac_ext <<EOF
1510 #line 1510 "configure"
1511 #include "confdefs.h"
1512 /* System header to define __stub macros and hopefully few prototypes,
1513 which can conflict with char _doprnt(); below. */
1514 #include <assert.h>
1515 /* Override any gcc2 internal prototype to avoid an error. */
1516 /* We use char because int might match the return type of a gcc2
1517 builtin and then its argument prototype would still apply. */
1518 char _doprnt();
1520 int main() {
1522 /* The GNU C library defines this for functions which it implements
1523 to always fail with ENOSYS. Some functions are actually named
1524 something starting with __ and the normal name is an alias. */
1525 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1526 choke me
1527 #else
1528 _doprnt();
1529 #endif
1531 ; return 0; }
1533 if { (eval echo configure:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1534 rm -rf conftest*
1535 eval "ac_cv_func__doprnt=yes"
1536 else
1537 echo "configure: failed program was:" >&5
1538 cat conftest.$ac_ext >&5
1539 rm -rf conftest*
1540 eval "ac_cv_func__doprnt=no"
1542 rm -f conftest*
1545 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1546 echo "$ac_t""yes" 1>&6
1547 cat >> confdefs.h <<\EOF
1548 #define HAVE_DOPRNT 1
1551 else
1552 echo "$ac_t""no" 1>&6
1557 for ac_func in gethostname gettimeofday socket strdup strerror strtol
1559 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1560 echo "configure:1560: checking for $ac_func" >&5
1561 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1563 else
1564 cat > conftest.$ac_ext <<EOF
1565 #line 1565 "configure"
1566 #include "confdefs.h"
1567 /* System header to define __stub macros and hopefully few prototypes,
1568 which can conflict with char $ac_func(); below. */
1569 #include <assert.h>
1570 /* Override any gcc2 internal prototype to avoid an error. */
1571 /* We use char because int might match the return type of a gcc2
1572 builtin and then its argument prototype would still apply. */
1573 char $ac_func();
1575 int main() {
1577 /* The GNU C library defines this for functions which it implements
1578 to always fail with ENOSYS. Some functions are actually named
1579 something starting with __ and the normal name is an alias. */
1580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1581 choke me
1582 #else
1583 $ac_func();
1584 #endif
1586 ; return 0; }
1588 if { (eval echo configure:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1589 rm -rf conftest*
1590 eval "ac_cv_func_$ac_func=yes"
1591 else
1592 echo "configure: failed program was:" >&5
1593 cat conftest.$ac_ext >&5
1594 rm -rf conftest*
1595 eval "ac_cv_func_$ac_func=no"
1597 rm -f conftest*
1600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1601 echo "$ac_t""yes" 1>&6
1602 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1603 cat >> confdefs.h <<EOF
1604 #define $ac_tr_func 1
1607 else
1608 echo "$ac_t""no" 1>&6
1610 done
1614 if test -d libevent ; then
1615 if test -L libevent ; then
1616 OUTPUT="Makefile handlers/Makefile"
1617 else
1618 OUTPUT="Makefile libevent/Makefile handlers/Makefile"
1620 else
1621 OUTPUT="Makefile handlers/Makefile"
1624 trap '' 1 2 15
1625 cat > confcache <<\EOF
1626 # This file is a shell script that caches the results of configure
1627 # tests run on this system so they can be shared between configure
1628 # scripts and configure runs. It is not useful on other systems.
1629 # If it contains results you don't want to keep, you may remove or edit it.
1631 # By default, configure uses ./config.cache as the cache file,
1632 # creating it if it does not exist already. You can give configure
1633 # the --cache-file=FILE option to use a different cache file; that is
1634 # what configure does when it calls configure scripts in
1635 # subdirectories, so they share the cache.
1636 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1637 # config.status only pays attention to the cache file if you give it the
1638 # --recheck option to rerun configure.
1641 # The following way of writing the cache mishandles newlines in values,
1642 # but we know of no workaround that is simple, portable, and efficient.
1643 # So, don't put newlines in cache variables' values.
1644 # Ultrix sh set writes to stderr and can't be redirected directly,
1645 # and sets the high bit in the cache file unless we assign to the vars.
1646 (set) 2>&1 |
1647 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1648 *ac_space=\ *)
1649 # `set' does not quote correctly, so add quotes (double-quote substitution
1650 # turns \\\\ into \\, and sed turns \\ into \).
1651 sed -n \
1652 -e "s/'/'\\\\''/g" \
1653 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1656 # `set' quotes correctly as required by POSIX, so do not add quotes.
1657 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1659 esac >> confcache
1660 if cmp -s $cache_file confcache; then
1662 else
1663 if test -w $cache_file; then
1664 echo "updating cache $cache_file"
1665 cat confcache > $cache_file
1666 else
1667 echo "not updating unwritable cache $cache_file"
1670 rm -f confcache
1672 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1674 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1675 # Let make expand exec_prefix.
1676 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1678 # Any assignment to VPATH causes Sun make to only execute
1679 # the first set of double-colon rules, so remove it if not needed.
1680 # If there is a colon in the path, we need to keep it.
1681 if test "x$srcdir" = x.; then
1682 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1685 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1687 # Transform confdefs.h into DEFS.
1688 # Protect against shell expansion while executing Makefile rules.
1689 # Protect against Makefile macro expansion.
1690 cat > conftest.defs <<\EOF
1691 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1692 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1693 s%\[%\\&%g
1694 s%\]%\\&%g
1695 s%\$%$$%g
1697 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1698 rm -f conftest.defs
1701 # Without the "./", some shells look in PATH for config.status.
1702 : ${CONFIG_STATUS=./config.status}
1704 echo creating $CONFIG_STATUS
1705 rm -f $CONFIG_STATUS
1706 cat > $CONFIG_STATUS <<EOF
1707 #! /bin/sh
1708 # Generated automatically by configure.
1709 # Run this file to recreate the current configuration.
1710 # This directory was configured as follows,
1711 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1713 # $0 $ac_configure_args
1715 # Compiler output produced by configure, useful for debugging
1716 # configure, is in ./config.log if it exists.
1718 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1719 for ac_option
1721 case "\$ac_option" in
1722 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1723 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1724 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1725 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1726 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1727 exit 0 ;;
1728 -help | --help | --hel | --he | --h)
1729 echo "\$ac_cs_usage"; exit 0 ;;
1730 *) echo "\$ac_cs_usage"; exit 1 ;;
1731 esac
1732 done
1734 ac_given_srcdir=$srcdir
1735 ac_given_INSTALL="$INSTALL"
1737 trap 'rm -fr `echo "$OUTPUT" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1739 cat >> $CONFIG_STATUS <<EOF
1741 # Protect against being on the right side of a sed subst in config.status.
1742 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1743 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1744 $ac_vpsub
1745 $extrasub
1746 s%@SHELL@%$SHELL%g
1747 s%@CFLAGS@%$CFLAGS%g
1748 s%@CPPFLAGS@%$CPPFLAGS%g
1749 s%@CXXFLAGS@%$CXXFLAGS%g
1750 s%@FFLAGS@%$FFLAGS%g
1751 s%@DEFS@%$DEFS%g
1752 s%@LDFLAGS@%$LDFLAGS%g
1753 s%@LIBS@%$LIBS%g
1754 s%@exec_prefix@%$exec_prefix%g
1755 s%@prefix@%$prefix%g
1756 s%@program_transform_name@%$program_transform_name%g
1757 s%@bindir@%$bindir%g
1758 s%@sbindir@%$sbindir%g
1759 s%@libexecdir@%$libexecdir%g
1760 s%@datadir@%$datadir%g
1761 s%@sysconfdir@%$sysconfdir%g
1762 s%@sharedstatedir@%$sharedstatedir%g
1763 s%@localstatedir@%$localstatedir%g
1764 s%@libdir@%$libdir%g
1765 s%@includedir@%$includedir%g
1766 s%@oldincludedir@%$oldincludedir%g
1767 s%@infodir@%$infodir%g
1768 s%@mandir@%$mandir%g
1769 s%@CC@%$CC%g
1770 s%@AR@%$AR%g
1771 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1772 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1773 s%@INSTALL_DATA@%$INSTALL_DATA%g
1774 s%@RANLIB@%$RANLIB%g
1775 s%@CPP@%$CPP%g
1776 s%@LIBEVENT@%$LIBEVENT%g
1777 s%@LIBOBJS@%$LIBOBJS%g
1779 CEOF
1782 cat >> $CONFIG_STATUS <<\EOF
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
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"
1807 ac_file=`expr $ac_file + 1`
1808 ac_beg=$ac_end
1809 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1811 done
1812 if test -z "$ac_sed_cmds"; then
1813 ac_sed_cmds=cat
1817 cat >> $CONFIG_STATUS <<EOF
1819 CONFIG_FILES=\${CONFIG_FILES-"$OUTPUT"}
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
1830 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
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=
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
1854 case "$ac_given_INSTALL" in
1855 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1856 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1857 esac
1859 echo creating "$ac_file"
1860 rm -f "$ac_file"
1861 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1862 case "$ac_file" in
1863 *Makefile*) ac_comsub="1i\\
1864 # $configure_input" ;;
1865 *) ac_comsub= ;;
1866 esac
1868 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1869 sed -e "$ac_comsub
1870 s%@configure_input@%$configure_input%g
1871 s%@srcdir@%$srcdir%g
1872 s%@top_srcdir@%$top_srcdir%g
1873 s%@INSTALL@%$INSTALL%g
1874 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1875 fi; done
1876 rm -f conftest.s*
1879 cat >> $CONFIG_STATUS <<EOF
1882 cat >> $CONFIG_STATUS <<\EOF
1884 exit 0
1886 chmod +x $CONFIG_STATUS
1887 rm -fr confdefs* $ac_clean_files
1888 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1