Debian Codegraph @

configure

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