Debian Codegraph @

configure

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