Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.58.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="kdc2tiff.cpp"
275 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE AWK CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP CXX CXXFLAGS ac_ct_CXX LN_S EGREP LIBOBJS LTLIBOBJS'
276 ac_subst_files=''
277
278 # Initialize some variables set by options.
279 ac_init_help=
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
283 cache_file=/dev/null
284 exec_prefix=NONE
285 no_create=
286 no_recursion=
287 prefix=NONE
288 program_prefix=NONE
289 program_suffix=NONE
290 program_transform_name=s,x,x,
291 silent=
292 site=
293 srcdir=
294 verbose=
295 x_includes=NONE
296 x_libraries=NONE
297
298 # Installation directory options.
299 # These are left unexpanded so users can "make install exec_prefix=/foo"
300 # and all the variables that are supposed to be based on exec_prefix
301 # by default will actually change.
302 # Use braces instead of parens because sh, perl, etc. also accept them.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
315
316 ac_prev=
317 for ac_option
318 do
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
324 fi
325
326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
330 case $ac_option in
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335 bindir=$ac_optarg ;;
336
337 -build | --build | --buil | --bui | --bu)
338 ac_prev=build_alias ;;
339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340 build_alias=$ac_optarg ;;
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
356 datadir=$ac_optarg ;;
357
358 -disable-* | --disable-*)
359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360 # Reject names that are not valid shell variable names.
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
366
367 -enable-* | --enable-*)
368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369 # Reject names that are not valid shell variable names.
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "enable_$ac_feature='$ac_optarg'" ;;
379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
387 exec_prefix=$ac_optarg ;;
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
399
400 -host | --host | --hos | --ho)
401 ac_prev=host_alias ;;
402 -host=* | --host=* | --hos=* | --ho=*)
403 host_alias=$ac_optarg ;;
404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
410 includedir=$ac_optarg ;;
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415 infodir=$ac_optarg ;;
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
420 libdir=$ac_optarg ;;
421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
427 libexecdir=$ac_optarg ;;
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436 localstatedir=$ac_optarg ;;
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441 mandir=$ac_optarg ;;
442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c | -n)
449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462 oldincludedir=$ac_optarg ;;
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467 prefix=$ac_optarg ;;
468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474 program_prefix=$ac_optarg ;;
475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481 program_suffix=$ac_optarg ;;
482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
498 program_transform_name=$ac_optarg ;;
499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
508 sbindir=$ac_optarg ;;
509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
519 sharedstatedir=$ac_optarg ;;
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
524 site=$ac_optarg ;;
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529 srcdir=$ac_optarg ;;
530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536 sysconfdir=$ac_optarg ;;
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
539 ac_prev=target_alias ;;
540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541 target_alias=$ac_optarg ;;
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
548
549 -with-* | --with-*)
550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
555 ac_package=`echo $ac_package| sed 's/-/_/g'`
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558 *) ac_optarg=yes ;;
559 esac
560 eval "with_$ac_package='$ac_optarg'" ;;
561
562 -without-* | --without-*)
563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580 x_includes=$ac_optarg ;;
581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587 x_libraries=$ac_optarg ;;
588
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
592 ;;
593
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
603
604 *)
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
610 ;;
611
612 esac
613 done
614
615 if test -n "$ac_prev"; then
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
619 fi
620
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
623 do
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630 done
631
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
635 do
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
641 esac
642 done
643
644 # There might be people who depend on the old broken behavior: `$host'
645 # used to hold the argument of --host etc.
646 # FIXME: To remove some day.
647 build=$build_alias
648 host=$host_alias
649 target=$target_alias
650
651 # FIXME: To remove some day.
652 if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660 fi
661
662 ac_tool_prefix=
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665 test "$silent" = yes && exec 6>/dev/null
666
667
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678 echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
687 fi
688 else
689 ac_srcdir_defaulted=no
690 fi
691 if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
695 else
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
698 fi
699 fi
700 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_env_CC_set=${CC+set}
717 ac_env_CC_value=$CC
718 ac_cv_env_CC_set=${CC+set}
719 ac_cv_env_CC_value=$CC
720 ac_env_CFLAGS_set=${CFLAGS+set}
721 ac_env_CFLAGS_value=$CFLAGS
722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value=$CFLAGS
724 ac_env_LDFLAGS_set=${LDFLAGS+set}
725 ac_env_LDFLAGS_value=$LDFLAGS
726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value=$LDFLAGS
728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732 ac_env_CPP_set=${CPP+set}
733 ac_env_CPP_value=$CPP
734 ac_cv_env_CPP_set=${CPP+set}
735 ac_cv_env_CPP_value=$CPP
736 ac_env_CXX_set=${CXX+set}
737 ac_env_CXX_value=$CXX
738 ac_cv_env_CXX_set=${CXX+set}
739 ac_cv_env_CXX_value=$CXX
740 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
741 ac_env_CXXFLAGS_value=$CXXFLAGS
742 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
743 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
744
745 #
746 # Report the --help message.
747 #
748 if test "$ac_init_help" = "long"; then
749 # Omit some internal or obsolete options to make the list less imposing.
750 # This message is too long to be a string in the A/UX 3.1 sh.
751 cat <<_ACEOF
752 \`configure' configures this package to adapt to many kinds of systems.
753
754 Usage: $0 [OPTION]... [VAR=VALUE]...
755
756 To assign environment variables (e.g., CC, CFLAGS...), specify them as
757 VAR=VALUE. See below for descriptions of some of the useful variables.
758
759 Defaults for the options are specified in brackets.
760
761 Configuration:
762 -h, --help display this help and exit
763 --help=short display options specific to this package
764 --help=recursive display the short help of all the included packages
765 -V, --version display version information and exit
766 -q, --quiet, --silent do not print \`checking...' messages
767 --cache-file=FILE cache test results in FILE [disabled]
768 -C, --config-cache alias for \`--cache-file=config.cache'
769 -n, --no-create do not create output files
770 --srcdir=DIR find the sources in DIR [configure dir or \`..']
771
772 _ACEOF
773
774 cat <<_ACEOF
775 Installation directories:
776 --prefix=PREFIX install architecture-independent files in PREFIX
777 [$ac_default_prefix]
778 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
779 [PREFIX]
780
781 By default, \`make install' will install all the files in
782 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
783 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
784 for instance \`--prefix=\$HOME'.
785
786 For better control, use the options below.
787
788 Fine tuning of the installation directories:
789 --bindir=DIR user executables [EPREFIX/bin]
790 --sbindir=DIR system admin executables [EPREFIX/sbin]
791 --libexecdir=DIR program executables [EPREFIX/libexec]
792 --datadir=DIR read-only architecture-independent data [PREFIX/share]
793 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
794 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
795 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
796 --libdir=DIR object code libraries [EPREFIX/lib]
797 --includedir=DIR C header files [PREFIX/include]
798 --oldincludedir=DIR C header files for non-gcc [/usr/include]
799 --infodir=DIR info documentation [PREFIX/info]
800 --mandir=DIR man documentation [PREFIX/man]
801 _ACEOF
802
803 cat <<\_ACEOF
804
805 Program names:
806 --program-prefix=PREFIX prepend PREFIX to installed program names
807 --program-suffix=SUFFIX append SUFFIX to installed program names
808 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
809 _ACEOF
810 fi
811
812 if test -n "$ac_init_help"; then
813
814 cat <<\_ACEOF
815
816 Some influential environment variables:
817 CC
818 C compiler command
819 CFLAGS
820 C compiler flags
821 LDFLAGS
822 linker flags, e.g. -L<lib dir> if you have
823 libraries in a nonstandard directory <lib dir>
824 CPPFLAGS
825 C/C++ preprocessor flags, e.g. -I<include dir> if you
826 have headers in a nonstandard directory <include dir>
827 CPP
828 C preprocessor
829 CXX
830 C++ compiler command
831 CXXFLAGS
832 C++ compiler flags
833
834 Use these variables to override the choices made by `configure' or to help
835 it to find libraries and programs with nonstandard names/locations.
836
837 _ACEOF
838 fi
839
840 if test "$ac_init_help" = "recursive"; then
841 # If there are subdirs, report their specific --help.
842 ac_popdir=`pwd`
843 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
844 test -d $ac_dir || continue
845 ac_builddir=.
846
847 if test "$ac_dir" != .; then
848 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
849 # A "../" for each directory in $ac_dir_suffix.
850 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
851 else
852 ac_dir_suffix= ac_top_builddir=
853 fi
854
855 case $srcdir in
856 .) # No --srcdir option. We are building in place.
857 ac_srcdir=.
858 if test -z "$ac_top_builddir"; then
859 ac_top_srcdir=.
860 else
861 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
862 fi ;;
863 [\\/]* | ?:[\\/]* ) # Absolute path.
864 ac_srcdir=$srcdir$ac_dir_suffix;
865 ac_top_srcdir=$srcdir ;;
866 *) # Relative path.
867 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
868 ac_top_srcdir=$ac_top_builddir$srcdir ;;
869 esac
870
871 # Do not use `cd foo && pwd` to compute absolute paths, because
872 # the directories may not exist.
873 case `pwd` in
874 .) ac_abs_builddir="$ac_dir";;
875 *)
876 case "$ac_dir" in
877 .) ac_abs_builddir=`pwd`;;
878 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
879 *) ac_abs_builddir=`pwd`/"$ac_dir";;
880 esac;;
881 esac
882 case $ac_abs_builddir in
883 .) ac_abs_top_builddir=${ac_top_builddir}.;;
884 *)
885 case ${ac_top_builddir}. in
886 .) ac_abs_top_builddir=$ac_abs_builddir;;
887 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
888 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
889 esac;;
890 esac
891 case $ac_abs_builddir in
892 .) ac_abs_srcdir=$ac_srcdir;;
893 *)
894 case $ac_srcdir in
895 .) ac_abs_srcdir=$ac_abs_builddir;;
896 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
897 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
898 esac;;
899 esac
900 case $ac_abs_builddir in
901 .) ac_abs_top_srcdir=$ac_top_srcdir;;
902 *)
903 case $ac_top_srcdir in
904 .) ac_abs_top_srcdir=$ac_abs_builddir;;
905 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
906 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
907 esac;;
908 esac
909
910 cd $ac_dir
911 # Check for guested configure; otherwise get Cygnus style configure.
912 if test -f $ac_srcdir/configure.gnu; then
913 echo
914 $SHELL $ac_srcdir/configure.gnu --help=recursive
915 elif test -f $ac_srcdir/configure; then
916 echo
917 $SHELL $ac_srcdir/configure --help=recursive
918 elif test -f $ac_srcdir/configure.ac ||
919 test -f $ac_srcdir/configure.in; then
920 echo
921 $ac_configure --help
922 else
923 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
924 fi
925 cd "$ac_popdir"
926 done
927 fi
928
929 test -n "$ac_init_help" && exit 0
930 if $ac_init_version; then
931 cat <<\_ACEOF
932
933 Copyright (C) 2003 Free Software Foundation, Inc.
934 This configure script is free software; the Free Software Foundation
935 gives unlimited permission to copy, distribute and modify it.
936 _ACEOF
937 exit 0
938 fi
939 exec 5>config.log
940 cat >&5 <<_ACEOF
941 This file contains any messages produced by compilers while
942 running configure, to aid debugging if configure makes a mistake.
943
944 It was created by $as_me, which was
945 generated by GNU Autoconf 2.58. Invocation command line was
946
947 $ $0 $@
948
949 _ACEOF
950 {
951 cat <<_ASUNAME
952 ## --------- ##
953 ## Platform. ##
954 ## --------- ##
955
956 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
957 uname -m = `(uname -m) 2>/dev/null || echo unknown`
958 uname -r = `(uname -r) 2>/dev/null || echo unknown`
959 uname -s = `(uname -s) 2>/dev/null || echo unknown`
960 uname -v = `(uname -v) 2>/dev/null || echo unknown`
961
962 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
963 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
964
965 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
966 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
967 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
968 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
969 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
970 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
971 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
972
973 _ASUNAME
974
975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
976 for as_dir in $PATH
977 do
978 IFS=$as_save_IFS
979 test -z "$as_dir" && as_dir=.
980 echo "PATH: $as_dir"
981 done
982
983 } >&5
984
985 cat >&5 <<_ACEOF
986
987
988 ## ----------- ##
989 ## Core tests. ##
990 ## ----------- ##
991
992 _ACEOF
993
994
995 # Keep a trace of the command line.
996 # Strip out --no-create and --no-recursion so they do not pile up.
997 # Strip out --silent because we don't want to record it for future runs.
998 # Also quote any args containing shell meta-characters.
999 # Make two passes to allow for proper duplicate-argument suppression.
1000 ac_configure_args=
1001 ac_configure_args0=
1002 ac_configure_args1=
1003 ac_sep=
1004 ac_must_keep_next=false
1005 for ac_pass in 1 2
1006 do
1007 for ac_arg
1008 do
1009 case $ac_arg in
1010 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1012 | -silent | --silent | --silen | --sile | --sil)
1013 continue ;;
1014 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1015 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1016 esac
1017 case $ac_pass in
1018 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1019 2)
1020 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1021 if test $ac_must_keep_next = true; then
1022 ac_must_keep_next=false # Got value, back to normal.
1023 else
1024 case $ac_arg in
1025 *=* | --config-cache | -C | -disable-* | --disable-* \
1026 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1027 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1028 | -with-* | --with-* | -without-* | --without-* | --x)
1029 case "$ac_configure_args0 " in
1030 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1031 esac
1032 ;;
1033 -* ) ac_must_keep_next=true ;;
1034 esac
1035 fi
1036 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1037 # Get rid of the leading space.
1038 ac_sep=" "
1039 ;;
1040 esac
1041 done
1042 done
1043 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1044 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1045
1046 # When interrupted or exit'd, cleanup temporary files, and complete
1047 # config.log. We remove comments because anyway the quotes in there
1048 # would cause problems or look ugly.
1049 # WARNING: Be sure not to use single quotes in there, as some shells,
1050 # such as our DU 5.0 friend, will then `close' the trap.
1051 trap 'exit_status=$?
1052 # Save into config.log some information that might help in debugging.
1053 {
1054 echo
1055
1056 cat <<\_ASBOX
1057 ## ---------------- ##
1058 ## Cache variables. ##
1059 ## ---------------- ##
1060 _ASBOX
1061 echo
1062 # The following way of writing the cache mishandles newlines in values,
1063 {
1064 (set) 2>&1 |
1065 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1066 *ac_space=\ *)
1067 sed -n \
1068 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1070 ;;
1071 *)
1072 sed -n \
1073 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1074 ;;
1075 esac;
1076 }
1077 echo
1078
1079 cat <<\_ASBOX
1080 ## ----------------- ##
1081 ## Output variables. ##
1082 ## ----------------- ##
1083 _ASBOX
1084 echo
1085 for ac_var in $ac_subst_vars
1086 do
1087 eval ac_val=$`echo $ac_var`
1088 echo "$ac_var='"'"'$ac_val'"'"'"
1089 done | sort
1090 echo
1091
1092 if test -n "$ac_subst_files"; then
1093 cat <<\_ASBOX
1094 ## ------------- ##
1095 ## Output files. ##
1096 ## ------------- ##
1097 _ASBOX
1098 echo
1099 for ac_var in $ac_subst_files
1100 do
1101 eval ac_val=$`echo $ac_var`
1102 echo "$ac_var='"'"'$ac_val'"'"'"
1103 done | sort
1104 echo
1105 fi
1106
1107 if test -s confdefs.h; then
1108 cat <<\_ASBOX
1109 ## ----------- ##
1110 ## confdefs.h. ##
1111 ## ----------- ##
1112 _ASBOX
1113 echo
1114 sed "/^$/d" confdefs.h | sort
1115 echo
1116 fi
1117 test "$ac_signal" != 0 &&
1118 echo "$as_me: caught signal $ac_signal"
1119 echo "$as_me: exit $exit_status"
1120 } >&5
1121 rm -f core *.core &&
1122 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1123 exit $exit_status
1124 ' 0
1125 for ac_signal in 1 2 13 15; do
1126 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1127 done
1128 ac_signal=0
1129
1130 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1131 rm -rf conftest* confdefs.h
1132 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1133 echo >confdefs.h
1134
1135 # Predefined preprocessor variables.
1136
1137 cat >>confdefs.h <<_ACEOF
1138 #define PACKAGE_NAME "$PACKAGE_NAME"
1139 _ACEOF
1140
1141
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1144 _ACEOF
1145
1146
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1149 _ACEOF
1150
1151
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_STRING "$PACKAGE_STRING"
1154 _ACEOF
1155
1156
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1159 _ACEOF
1160
1161
1162 # Let the site file select an alternate cache file if it wants to.
1163 # Prefer explicitly selected file to automatically selected ones.
1164 if test -z "$CONFIG_SITE"; then
1165 if test "x$prefix" != xNONE; then
1166 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1167 else
1168 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1169 fi
1170 fi
1171 for ac_site_file in $CONFIG_SITE; do
1172 if test -r "$ac_site_file"; then
1173 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1174 echo "$as_me: loading site script $ac_site_file" >&6;}
1175 sed 's/^/| /' "$ac_site_file" >&5
1176 . "$ac_site_file"
1177 fi
1178 done
1179
1180 if test -r "$cache_file"; then
1181 # Some versions of bash will fail to source /dev/null (special
1182 # files actually), so we avoid doing that.
1183 if test -f "$cache_file"; then
1184 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1185 echo "$as_me: loading cache $cache_file" >&6;}
1186 case $cache_file in
1187 [\\/]* | ?:[\\/]* ) . $cache_file;;
1188 *) . ./$cache_file;;
1189 esac
1190 fi
1191 else
1192 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1193 echo "$as_me: creating cache $cache_file" >&6;}
1194 >$cache_file
1195 fi
1196
1197 # Check that the precious variables saved in the cache have kept the same
1198 # value.
1199 ac_cache_corrupted=false
1200 for ac_var in `(set) 2>&1 |
1201 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1202 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1203 eval ac_new_set=\$ac_env_${ac_var}_set
1204 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1205 eval ac_new_val="\$ac_env_${ac_var}_value"
1206 case $ac_old_set,$ac_new_set in
1207 set,)
1208 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1209 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1210 ac_cache_corrupted=: ;;
1211 ,set)
1212 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1213 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1214 ac_cache_corrupted=: ;;
1215 ,);;
1216 *)
1217 if test "x$ac_old_val" != "x$ac_new_val"; then
1218 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1219 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1220 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1221 echo "$as_me: former value: $ac_old_val" >&2;}
1222 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1223 echo "$as_me: current value: $ac_new_val" >&2;}
1224 ac_cache_corrupted=:
1225 fi;;
1226 esac
1227 # Pass precious variables to config.status.
1228 if test "$ac_new_set" = set; then
1229 case $ac_new_val in
1230 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1231 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1232 *) ac_arg=$ac_var=$ac_new_val ;;
1233 esac
1234 case " $ac_configure_args " in
1235 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1236 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1237 esac
1238 fi
1239 done
1240 if $ac_cache_corrupted; then
1241 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1242 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1243 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1244 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1245 { (exit 1); exit 1; }; }
1246 fi
1247
1248 ac_ext=c
1249 ac_cpp='$CPP $CPPFLAGS'
1250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272 ac_aux_dir=
1273 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1274 if test -f $ac_dir/install-sh; then
1275 ac_aux_dir=$ac_dir
1276 ac_install_sh="$ac_aux_dir/install-sh -c"
1277 break
1278 elif test -f $ac_dir/install.sh; then
1279 ac_aux_dir=$ac_dir
1280 ac_install_sh="$ac_aux_dir/install.sh -c"
1281 break
1282 elif test -f $ac_dir/shtool; then
1283 ac_aux_dir=$ac_dir
1284 ac_install_sh="$ac_aux_dir/shtool install -c"
1285 break
1286 fi
1287 done
1288 if test -z "$ac_aux_dir"; then
1289 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1290 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1291 { (exit 1); exit 1; }; }
1292 fi
1293 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1294 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1295 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1296
1297 # Find a good install program. We prefer a C program (faster),
1298 # so one script is as good as another. But avoid the broken or
1299 # incompatible versions:
1300 # SysV /etc/install, /usr/sbin/install
1301 # SunOS /usr/etc/install
1302 # IRIX /sbin/install
1303 # AIX /bin/install
1304 # AmigaOS /C/install, which installs bootblocks on floppy discs
1305 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1306 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1307 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1308 # OS/2's system install, which has a completely different semantic
1309 # ./install, which can be erroneously created by make from ./install.sh.
1310 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1311 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1312 if test -z "$INSTALL"; then
1313 if test "${ac_cv_path_install+set}" = set; then
1314 echo $ECHO_N "(cached) $ECHO_C" >&6
1315 else
1316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1317 for as_dir in $PATH
1318 do
1319 IFS=$as_save_IFS
1320 test -z "$as_dir" && as_dir=.
1321 # Account for people who put trailing slashes in PATH elements.
1322 case $as_dir/ in
1323 ./ | .// | /cC/* | \
1324 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1325 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1326 /usr/ucb/* ) ;;
1327 *)
1328 # OSF1 and SCO ODT 3.0 have their own names for install.
1329 # Don't use installbsd from OSF since it installs stuff as root
1330 # by default.
1331 for ac_prog in ginstall scoinst install; do
1332 for ac_exec_ext in '' $ac_executable_extensions; do
1333 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1334 if test $ac_prog = install &&
1335 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1336 # AIX install. It has an incompatible calling convention.
1337 :
1338 elif test $ac_prog = install &&
1339 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1340 # program-specific install script used by HP pwplus--don't use.
1341 :
1342 else
1343 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1344 break 3
1345 fi
1346 fi
1347 done
1348 done
1349 ;;
1350 esac
1351 done
1352
1353
1354 fi
1355 if test "${ac_cv_path_install+set}" = set; then
1356 INSTALL=$ac_cv_path_install
1357 else
1358 # As a last resort, use the slow shell script. We don't cache a
1359 # path for INSTALL within a source directory, because that will
1360 # break other packages using the cache if that directory is
1361 # removed, or if the path is relative.
1362 INSTALL=$ac_install_sh
1363 fi
1364 fi
1365 echo "$as_me:$LINENO: result: $INSTALL" >&5
1366 echo "${ECHO_T}$INSTALL" >&6
1367
1368 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1369 # It thinks the first close brace ends the variable substitution.
1370 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1371
1372 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1373
1374 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1375
1376 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1377 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1378 # Just in case
1379 sleep 1
1380 echo timestamp > conftestfile
1381 # Do `set' in a subshell so we don't clobber the current shell's
1382 # arguments. Must try -L first in case configure is actually a
1383 # symlink; some systems play weird games with the mod time of symlinks
1384 # (eg FreeBSD returns the mod time of the symlink's containing
1385 # directory).
1386 if (
1387 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1388 if test "$*" = "X"; then
1389 # -L didn't work.
1390 set X `ls -t $srcdir/configure conftestfile`
1391 fi
1392 if test "$*" != "X $srcdir/configure conftestfile" \
1393 && test "$*" != "X conftestfile $srcdir/configure"; then
1394
1395 # If neither matched, then we have a broken ls. This can happen
1396 # if, for instance, CONFIG_SHELL is bash and it inherits a
1397 # broken ls alias from the environment. This has actually
1398 # happened. Such a system could not be considered "sane".
1399 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1400 alias in your environment" >&5
1401 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1402 alias in your environment" >&2;}
1403 { (exit 1); exit 1; }; }
1404 fi
1405
1406 test "$2" = conftestfile
1407 )
1408 then
1409 # Ok.
1410 :
1411 else
1412 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1413 Check your system clock" >&5
1414 echo "$as_me: error: newly created file is older than distributed files!
1415 Check your system clock" >&2;}
1416 { (exit 1); exit 1; }; }
1417 fi
1418 rm -f conftest*
1419 echo "$as_me:$LINENO: result: yes" >&5
1420 echo "${ECHO_T}yes" >&6
1421 test "$program_prefix" != NONE &&
1422 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1423 # Use a double $ so make ignores it.
1424 test "$program_suffix" != NONE &&
1425 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1426 # Double any \ or $. echo might interpret backslashes.
1427 # By default was `s,x,x', remove it if useless.
1428 cat <<\_ACEOF >conftest.sed
1429 s/[\\$]/&&/g;s/;s,x,x,$//
1430 _ACEOF
1431 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1432 rm conftest.sed
1433
1434 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1435 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1436 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1437 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 else
1440 cat >conftest.make <<\_ACEOF
1441 all:
1442 @echo 'ac_maketemp="$(MAKE)"'
1443 _ACEOF
1444 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1445 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1446 if test -n "$ac_maketemp"; then
1447 eval ac_cv_prog_make_${ac_make}_set=yes
1448 else
1449 eval ac_cv_prog_make_${ac_make}_set=no
1450 fi
1451 rm -f conftest.make
1452 fi
1453 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1454 echo "$as_me:$LINENO: result: yes" >&5
1455 echo "${ECHO_T}yes" >&6
1456 SET_MAKE=
1457 else
1458 echo "$as_me:$LINENO: result: no" >&5
1459 echo "${ECHO_T}no" >&6
1460 SET_MAKE="MAKE=${MAKE-make}"
1461 fi
1462
1463
1464 PACKAGE=kdc2tiff
1465
1466 VERSION=0.35
1467
1468 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1469 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1470 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1471 { (exit 1); exit 1; }; }
1472 fi
1473
1474 cat >>confdefs.h <<_ACEOF
1475 #define PACKAGE "$PACKAGE"
1476 _ACEOF
1477
1478
1479 cat >>confdefs.h <<_ACEOF
1480 #define VERSION "$VERSION"
1481 _ACEOF
1482
1483
1484
1485 missing_dir=`cd $ac_aux_dir && pwd`
1486 echo "$as_me:$LINENO: checking for working aclocal" >&5
1487 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1488 # Run test in a subshell; some versions of sh will print an error if
1489 # an executable is not found, even if stderr is redirected.
1490 # Redirect stdin to placate older versions of autoconf. Sigh.
1491 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1492 ACLOCAL=aclocal
1493 echo "$as_me:$LINENO: result: found" >&5
1494 echo "${ECHO_T}found" >&6
1495 else
1496 ACLOCAL="$missing_dir/missing aclocal"
1497 echo "$as_me:$LINENO: result: missing" >&5
1498 echo "${ECHO_T}missing" >&6
1499 fi
1500
1501 echo "$as_me:$LINENO: checking for working autoconf" >&5
1502 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1503 # Run test in a subshell; some versions of sh will print an error if
1504 # an executable is not found, even if stderr is redirected.
1505 # Redirect stdin to placate older versions of autoconf. Sigh.
1506 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1507 AUTOCONF=autoconf
1508 echo "$as_me:$LINENO: result: found" >&5
1509 echo "${ECHO_T}found" >&6
1510 else
1511 AUTOCONF="$missing_dir/missing autoconf"
1512 echo "$as_me:$LINENO: result: missing" >&5
1513 echo "${ECHO_T}missing" >&6
1514 fi
1515
1516 echo "$as_me:$LINENO: checking for working automake" >&5
1517 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1518 # Run test in a subshell; some versions of sh will print an error if
1519 # an executable is not found, even if stderr is redirected.
1520 # Redirect stdin to placate older versions of autoconf. Sigh.
1521 if (automake --version) < /dev/null > /dev/null 2>&1; then
1522 AUTOMAKE=automake
1523 echo "$as_me:$LINENO: result: found" >&5
1524 echo "${ECHO_T}found" >&6
1525 else
1526 AUTOMAKE="$missing_dir/missing automake"
1527 echo "$as_me:$LINENO: result: missing" >&5
1528 echo "${ECHO_T}missing" >&6
1529 fi
1530
1531 echo "$as_me:$LINENO: checking for working autoheader" >&5
1532 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1533 # Run test in a subshell; some versions of sh will print an error if
1534 # an executable is not found, even if stderr is redirected.
1535 # Redirect stdin to placate older versions of autoconf. Sigh.
1536 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1537 AUTOHEADER=autoheader
1538 echo "$as_me:$LINENO: result: found" >&5
1539 echo "${ECHO_T}found" >&6
1540 else
1541 AUTOHEADER="$missing_dir/missing autoheader"
1542 echo "$as_me:$LINENO: result: missing" >&5
1543 echo "${ECHO_T}missing" >&6
1544 fi
1545
1546 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1547 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1548 # Run test in a subshell; some versions of sh will print an error if
1549 # an executable is not found, even if stderr is redirected.
1550 # Redirect stdin to placate older versions of autoconf. Sigh.
1551 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1552 MAKEINFO=makeinfo
1553 echo "$as_me:$LINENO: result: found" >&5
1554 echo "${ECHO_T}found" >&6
1555 else
1556 MAKEINFO="$missing_dir/missing makeinfo"
1557 echo "$as_me:$LINENO: result: missing" >&5
1558 echo "${ECHO_T}missing" >&6
1559 fi
1560
1561
1562
1563 ac_config_headers="$ac_config_headers config.h"
1564
1565 ac_config_commands="$ac_config_commands default-1"
1566
1567
1568 for ac_prog in gawk mawk nawk awk
1569 do
1570 # Extract the first word of "$ac_prog", so it can be a program name with args.
1571 set dummy $ac_prog; ac_word=$2
1572 echo "$as_me:$LINENO: checking for $ac_word" >&5
1573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1574 if test "${ac_cv_prog_AWK+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1576 else
1577 if test -n "$AWK"; then
1578 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1579 else
1580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 for as_dir in $PATH
1582 do
1583 IFS=$as_save_IFS
1584 test -z "$as_dir" && as_dir=.
1585 for ac_exec_ext in '' $ac_executable_extensions; do
1586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1587 ac_cv_prog_AWK="$ac_prog"
1588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589 break 2
1590 fi
1591 done
1592 done
1593
1594 fi
1595 fi
1596 AWK=$ac_cv_prog_AWK
1597 if test -n "$AWK"; then
1598 echo "$as_me:$LINENO: result: $AWK" >&5
1599 echo "${ECHO_T}$AWK" >&6
1600 else
1601 echo "$as_me:$LINENO: result: no" >&5
1602 echo "${ECHO_T}no" >&6
1603 fi
1604
1605 test -n "$AWK" && break
1606 done
1607
1608 ac_ext=c
1609 ac_cpp='$CPP $CPPFLAGS'
1610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1613 if test -n "$ac_tool_prefix"; then
1614 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1615 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1616 echo "$as_me:$LINENO: checking for $ac_word" >&5
1617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618 if test "${ac_cv_prog_CC+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621 if test -n "$CC"; then
1622 ac_cv_prog_CC="$CC" # Let the user override the test.
1623 else
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 for as_dir in $PATH
1626 do
1627 IFS=$as_save_IFS
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633 break 2
1634 fi
1635 done
1636 done
1637
1638 fi
1639 fi
1640 CC=$ac_cv_prog_CC
1641 if test -n "$CC"; then
1642 echo "$as_me:$LINENO: result: $CC" >&5
1643 echo "${ECHO_T}$CC" >&6
1644 else
1645 echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1647 fi
1648
1649 fi
1650 if test -z "$ac_cv_prog_CC"; then
1651 ac_ct_CC=$CC
1652 # Extract the first word of "gcc", so it can be a program name with args.
1653 set dummy gcc; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659 if test -n "$ac_ct_CC"; then
1660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1661 else
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1664 do
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_ac_ct_CC="gcc"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1672 fi
1673 done
1674 done
1675
1676 fi
1677 fi
1678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1679 if test -n "$ac_ct_CC"; then
1680 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1681 echo "${ECHO_T}$ac_ct_CC" >&6
1682 else
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1685 fi
1686
1687 CC=$ac_ct_CC
1688 else
1689 CC="$ac_cv_prog_CC"
1690 fi
1691
1692 if test -z "$CC"; then
1693 if test -n "$ac_tool_prefix"; then
1694 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1695 set dummy ${ac_tool_prefix}cc; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701 if test -n "$CC"; then
1702 ac_cv_prog_CC="$CC" # Let the user override the test.
1703 else
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1706 do
1707 IFS=$as_save_IFS
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_CC="${ac_tool_prefix}cc"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 break 2
1714 fi
1715 done
1716 done
1717
1718 fi
1719 fi
1720 CC=$ac_cv_prog_CC
1721 if test -n "$CC"; then
1722 echo "$as_me:$LINENO: result: $CC" >&5
1723 echo "${ECHO_T}$CC" >&6
1724 else
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1727 fi
1728
1729 fi
1730 if test -z "$ac_cv_prog_CC"; then
1731 ac_ct_CC=$CC
1732 # Extract the first word of "cc", so it can be a program name with args.
1733 set dummy cc; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1738 else
1739 if test -n "$ac_ct_CC"; then
1740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1741 else
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 for as_dir in $PATH
1744 do
1745 IFS=$as_save_IFS
1746 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749 ac_cv_prog_ac_ct_CC="cc"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751 break 2
1752 fi
1753 done
1754 done
1755
1756 fi
1757 fi
1758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759 if test -n "$ac_ct_CC"; then
1760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761 echo "${ECHO_T}$ac_ct_CC" >&6
1762 else
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1765 fi
1766
1767 CC=$ac_ct_CC
1768 else
1769 CC="$ac_cv_prog_CC"
1770 fi
1771
1772 fi
1773 if test -z "$CC"; then
1774 # Extract the first word of "cc", so it can be a program name with args.
1775 set dummy cc; ac_word=$2
1776 echo "$as_me:$LINENO: checking for $ac_word" >&5
1777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778 if test "${ac_cv_prog_CC+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1780 else
1781 if test -n "$CC"; then
1782 ac_cv_prog_CC="$CC" # Let the user override the test.
1783 else
1784 ac_prog_rejected=no
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 for as_dir in $PATH
1787 do
1788 IFS=$as_save_IFS
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1793 ac_prog_rejected=yes
1794 continue
1795 fi
1796 ac_cv_prog_CC="cc"
1797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798 break 2
1799 fi
1800 done
1801 done
1802
1803 if test $ac_prog_rejected = yes; then
1804 # We found a bogon in the path, so make sure we never use it.
1805 set dummy $ac_cv_prog_CC
1806 shift
1807 if test $# != 0; then
1808 # We chose a different compiler from the bogus one.
1809 # However, it has the same basename, so the bogon will be chosen
1810 # first if we set CC to just the basename; use the full file name.
1811 shift
1812 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1813 fi
1814 fi
1815 fi
1816 fi
1817 CC=$ac_cv_prog_CC
1818 if test -n "$CC"; then
1819 echo "$as_me:$LINENO: result: $CC" >&5
1820 echo "${ECHO_T}$CC" >&6
1821 else
1822 echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1824 fi
1825
1826 fi
1827 if test -z "$CC"; then
1828 if test -n "$ac_tool_prefix"; then
1829 for ac_prog in cl
1830 do
1831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_CC+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 else
1838 if test -n "$CC"; then
1839 ac_cv_prog_CC="$CC" # Let the user override the test.
1840 else
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 for as_dir in $PATH
1843 do
1844 IFS=$as_save_IFS
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850 break 2
1851 fi
1852 done
1853 done
1854
1855 fi
1856 fi
1857 CC=$ac_cv_prog_CC
1858 if test -n "$CC"; then
1859 echo "$as_me:$LINENO: result: $CC" >&5
1860 echo "${ECHO_T}$CC" >&6
1861 else
1862 echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1864 fi
1865
1866 test -n "$CC" && break
1867 done
1868 fi
1869 if test -z "$CC"; then
1870 ac_ct_CC=$CC
1871 for ac_prog in cl
1872 do
1873 # Extract the first word of "$ac_prog", so it can be a program name with args.
1874 set dummy $ac_prog; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880 if test -n "$ac_ct_CC"; then
1881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1882 else
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1885 do
1886 IFS=$as_save_IFS
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890 ac_cv_prog_ac_ct_CC="$ac_prog"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 break 2
1893 fi
1894 done
1895 done
1896
1897 fi
1898 fi
1899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1900 if test -n "$ac_ct_CC"; then
1901 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1902 echo "${ECHO_T}$ac_ct_CC" >&6
1903 else
1904 echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1906 fi
1907
1908 test -n "$ac_ct_CC" && break
1909 done
1910
1911 CC=$ac_ct_CC
1912 fi
1913
1914 fi
1915
1916
1917 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1918 See \`config.log' for more details." >&5
1919 echo "$as_me: error: no acceptable C compiler found in \$PATH
1920 See \`config.log' for more details." >&2;}
1921 { (exit 1); exit 1; }; }
1922
1923 # Provide some information about the compiler.
1924 echo "$as_me:$LINENO:" \
1925 "checking for C compiler version" >&5
1926 ac_compiler=`set X $ac_compile; echo $2`
1927 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1928 (eval $ac_compiler --version </dev/null >&5) 2>&5
1929 ac_status=$?
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); }
1932 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1933 (eval $ac_compiler -v </dev/null >&5) 2>&5
1934 ac_status=$?
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }
1937 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1938 (eval $ac_compiler -V </dev/null >&5) 2>&5
1939 ac_status=$?
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }
1942
1943 cat >conftest.$ac_ext <<_ACEOF
1944 /* confdefs.h. */
1945 _ACEOF
1946 cat confdefs.h >>conftest.$ac_ext
1947 cat >>conftest.$ac_ext <<_ACEOF
1948 /* end confdefs.h. */
1949
1950 int
1951 main ()
1952 {
1953
1954 ;
1955 return 0;
1956 }
1957 _ACEOF
1958 ac_clean_files_save=$ac_clean_files
1959 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1960 # Try to create an executable without -o first, disregard a.out.
1961 # It will help us diagnose broken compilers, and finding out an intuition
1962 # of exeext.
1963 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1964 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1965 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1966 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1967 (eval $ac_link_default) 2>&5
1968 ac_status=$?
1969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970 (exit $ac_status); }; then
1971 # Find the output, starting from the most likely. This scheme is
1972 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1973 # resort.
1974
1975 # Be careful to initialize this variable, since it used to be cached.
1976 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1977 ac_cv_exeext=
1978 # b.out is created by i960 compilers.
1979 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1980 do
1981 test -f "$ac_file" || continue
1982 case $ac_file in
1983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1984 ;;
1985 conftest.$ac_ext )
1986 # This is the source file.
1987 ;;
1988 [ab].out )
1989 # We found the default executable, but exeext='' is most
1990 # certainly right.
1991 break;;
1992 *.* )
1993 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1994 # FIXME: I believe we export ac_cv_exeext for Libtool,
1995 # but it would be cool to find out if it's true. Does anybody
1996 # maintain Libtool? --akim.
1997 export ac_cv_exeext
1998 break;;
1999 * )
2000 break;;
2001 esac
2002 done
2003 else
2004 echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2006
2007 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2008 See \`config.log' for more details." >&5
2009 echo "$as_me: error: C compiler cannot create executables
2010 See \`config.log' for more details." >&2;}
2011 { (exit 77); exit 77; }; }
2012 fi
2013
2014 ac_exeext=$ac_cv_exeext
2015 echo "$as_me:$LINENO: result: $ac_file" >&5
2016 echo "${ECHO_T}$ac_file" >&6
2017
2018 # Check the compiler produces executables we can run. If not, either
2019 # the compiler is broken, or we cross compile.
2020 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2021 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2022 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2023 # If not cross compiling, check that we can run a simple program.
2024 if test "$cross_compiling" != yes; then
2025 if { ac_try='./$ac_file'
2026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2027 (eval $ac_try) 2>&5
2028 ac_status=$?
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; }; then
2031 cross_compiling=no
2032 else
2033 if test "$cross_compiling" = maybe; then
2034 cross_compiling=yes
2035 else
2036 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2037 If you meant to cross compile, use \`--host'.
2038 See \`config.log' for more details." >&5
2039 echo "$as_me: error: cannot run C compiled programs.
2040 If you meant to cross compile, use \`--host'.
2041 See \`config.log' for more details." >&2;}
2042 { (exit 1); exit 1; }; }
2043 fi
2044 fi
2045 fi
2046 echo "$as_me:$LINENO: result: yes" >&5
2047 echo "${ECHO_T}yes" >&6
2048
2049 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2050 ac_clean_files=$ac_clean_files_save
2051 # Check the compiler produces executables we can run. If not, either
2052 # the compiler is broken, or we cross compile.
2053 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2054 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2055 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2056 echo "${ECHO_T}$cross_compiling" >&6
2057
2058 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2059 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2061 (eval $ac_link) 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; then
2065 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2066 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2067 # work properly (i.e., refer to `conftest.exe'), while it won't with
2068 # `rm'.
2069 for ac_file in conftest.exe conftest conftest.*; do
2070 test -f "$ac_file" || continue
2071 case $ac_file in
2072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2073 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2074 export ac_cv_exeext
2075 break;;
2076 * ) break;;
2077 esac
2078 done
2079 else
2080 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2083 See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
2085 fi
2086
2087 rm -f conftest$ac_cv_exeext
2088 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2089 echo "${ECHO_T}$ac_cv_exeext" >&6
2090
2091 rm -f conftest.$ac_ext
2092 EXEEXT=$ac_cv_exeext
2093 ac_exeext=$EXEEXT
2094 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2095 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2096 if test "${ac_cv_objext+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099 cat >conftest.$ac_ext <<_ACEOF
2100 /* confdefs.h. */
2101 _ACEOF
2102 cat confdefs.h >>conftest.$ac_ext
2103 cat >>conftest.$ac_ext <<_ACEOF
2104 /* end confdefs.h. */
2105
2106 int
2107 main ()
2108 {
2109
2110 ;
2111 return 0;
2112 }
2113 _ACEOF
2114 rm -f conftest.o conftest.obj
2115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2116 (eval $ac_compile) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; then
2120 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2121 case $ac_file in
2122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2123 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2124 break;;
2125 esac
2126 done
2127 else
2128 echo "$as_me: failed program was:" >&5
2129 sed 's/^/| /' conftest.$ac_ext >&5
2130
2131 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2134 See \`config.log' for more details." >&2;}
2135 { (exit 1); exit 1; }; }
2136 fi
2137
2138 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2139 fi
2140 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2141 echo "${ECHO_T}$ac_cv_objext" >&6
2142 OBJEXT=$ac_cv_objext
2143 ac_objext=$OBJEXT
2144 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2145 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2146 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149 cat >conftest.$ac_ext <<_ACEOF
2150 /* confdefs.h. */
2151 _ACEOF
2152 cat confdefs.h >>conftest.$ac_ext
2153 cat >>conftest.$ac_ext <<_ACEOF
2154 /* end confdefs.h. */
2155
2156 int
2157 main ()
2158 {
2159 #ifndef __GNUC__
2160 choke me
2161 #endif
2162
2163 ;
2164 return 0;
2165 }
2166 _ACEOF
2167 rm -f conftest.$ac_objext
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>conftest.er1
2170 ac_status=$?
2171 grep -v '^ *+' conftest.er1 >conftest.err
2172 rm -f conftest.er1
2173 cat conftest.err >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); } &&
2176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 (eval $ac_try) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; } &&
2182 { ac_try='test -s conftest.$ac_objext'
2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 (eval $ac_try) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; }; then
2188 ac_compiler_gnu=yes
2189 else
2190 echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2192
2193 ac_compiler_gnu=no
2194 fi
2195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2196 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2197
2198 fi
2199 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2200 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2201 GCC=`test $ac_compiler_gnu = yes && echo yes`
2202 ac_test_CFLAGS=${CFLAGS+set}
2203 ac_save_CFLAGS=$CFLAGS
2204 CFLAGS="-g"
2205 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2206 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2207 if test "${ac_cv_prog_cc_g+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210 cat >conftest.$ac_ext <<_ACEOF
2211 /* confdefs.h. */
2212 _ACEOF
2213 cat confdefs.h >>conftest.$ac_ext
2214 cat >>conftest.$ac_ext <<_ACEOF
2215 /* end confdefs.h. */
2216
2217 int
2218 main ()
2219 {
2220
2221 ;
2222 return 0;
2223 }
2224 _ACEOF
2225 rm -f conftest.$ac_objext
2226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2227 (eval $ac_compile) 2>conftest.er1
2228 ac_status=$?
2229 grep -v '^ *+' conftest.er1 >conftest.err
2230 rm -f conftest.er1
2231 cat conftest.err >&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); } &&
2234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 (eval $ac_try) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; } &&
2240 { ac_try='test -s conftest.$ac_objext'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 (eval $ac_try) 2>&5
2243 ac_status=$?
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; }; then
2246 ac_cv_prog_cc_g=yes
2247 else
2248 echo "$as_me: failed program was:" >&5
2249 sed 's/^/| /' conftest.$ac_ext >&5
2250
2251 ac_cv_prog_cc_g=no
2252 fi
2253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2254 fi
2255 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2256 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2257 if test "$ac_test_CFLAGS" = set; then
2258 CFLAGS=$ac_save_CFLAGS
2259 elif test $ac_cv_prog_cc_g = yes; then
2260 if test "$GCC" = yes; then
2261 CFLAGS="-g -O2"
2262 else
2263 CFLAGS="-g"
2264 fi
2265 else
2266 if test "$GCC" = yes; then
2267 CFLAGS="-O2"
2268 else
2269 CFLAGS=
2270 fi
2271 fi
2272 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2273 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2274 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277 ac_cv_prog_cc_stdc=no
2278 ac_save_CC=$CC
2279 cat >conftest.$ac_ext <<_ACEOF
2280 /* confdefs.h. */
2281 _ACEOF
2282 cat confdefs.h >>conftest.$ac_ext
2283 cat >>conftest.$ac_ext <<_ACEOF
2284 /* end confdefs.h. */
2285 #include <stdarg.h>
2286 #include <stdio.h>
2287 #include <sys/types.h>
2288 #include <sys/stat.h>
2289 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2290 struct buf { int x; };
2291 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2292 static char *e (p, i)
2293 char **p;
2294 int i;
2295 {
2296 return p[i];
2297 }
2298 static char *f (char * (*g) (char **, int), char **p, ...)
2299 {
2300 char *s;
2301 va_list v;
2302 va_start (v,p);
2303 s = g (p, va_arg (v,int));
2304 va_end (v);
2305 return s;
2306 }
2307
2308 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2309 function prototypes and stuff, but not '\xHH' hex character constants.
2310 These don't provoke an error unfortunately, instead are silently treated
2311 as 'x'. The following induces an error, until -std1 is added to get
2312 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2313 array size at least. It's necessary to write '\x00'==0 to get something
2314 that's true only with -std1. */
2315 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2316
2317 int test (int i, double x);
2318 struct s1 {int (*f) (int a);};
2319 struct s2 {int (*f) (double a);};
2320 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2321 int argc;
2322 char **argv;
2323 int
2324 main ()
2325 {
2326 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2327 ;
2328 return 0;
2329 }
2330 _ACEOF
2331 # Don't try gcc -ansi; that turns off useful extensions and
2332 # breaks some systems' header files.
2333 # AIX -qlanglvl=ansi
2334 # Ultrix and OSF/1 -std1
2335 # HP-UX 10.20 and later -Ae
2336 # HP-UX older versions -Aa -D_HPUX_SOURCE
2337 # SVR4 -Xc -D__EXTENSIONS__
2338 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2339 do
2340 CC="$ac_save_CC $ac_arg"
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>conftest.er1
2344 ac_status=$?
2345 grep -v '^ *+' conftest.er1 >conftest.err
2346 rm -f conftest.er1
2347 cat conftest.err >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); } &&
2350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352 (eval $ac_try) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; } &&
2356 { ac_try='test -s conftest.$ac_objext'
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 (eval $ac_try) 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; }; then
2362 ac_cv_prog_cc_stdc=$ac_arg
2363 break
2364 else
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2367
2368 fi
2369 rm -f conftest.err conftest.$ac_objext
2370 done
2371 rm -f conftest.$ac_ext conftest.$ac_objext
2372 CC=$ac_save_CC
2373
2374 fi
2375
2376 case "x$ac_cv_prog_cc_stdc" in
2377 x|xno)
2378 echo "$as_me:$LINENO: result: none needed" >&5
2379 echo "${ECHO_T}none needed" >&6 ;;
2380 *)
2381 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2382 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2383 CC="$CC $ac_cv_prog_cc_stdc" ;;
2384 esac
2385
2386 # Some people use a C++ compiler to compile C. Since we use `exit',
2387 # in C++ we need to declare it. In case someone uses the same compiler
2388 # for both compiling C and C++ we need to have the C++ compiler decide
2389 # the declaration of exit, since it's the most demanding environment.
2390 cat >conftest.$ac_ext <<_ACEOF
2391 #ifndef __cplusplus
2392 choke me
2393 #endif
2394 _ACEOF
2395 rm -f conftest.$ac_objext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397 (eval $ac_compile) 2>conftest.er1
2398 ac_status=$?
2399 grep -v '^ *+' conftest.er1 >conftest.err
2400 rm -f conftest.er1
2401 cat conftest.err >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } &&
2404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 (eval $ac_try) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; } &&
2410 { ac_try='test -s conftest.$ac_objext'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2416 for ac_declaration in \
2417 '' \
2418 'extern "C" void std::exit (int) throw (); using std::exit;' \
2419 'extern "C" void std::exit (int); using std::exit;' \
2420 'extern "C" void exit (int) throw ();' \
2421 'extern "C" void exit (int);' \
2422 'void exit (int);'
2423 do
2424 cat >conftest.$ac_ext <<_ACEOF
2425 /* confdefs.h. */
2426 _ACEOF
2427 cat confdefs.h >>conftest.$ac_ext
2428 cat >>conftest.$ac_ext <<_ACEOF
2429 /* end confdefs.h. */
2430 $ac_declaration
2431 #include <stdlib.h>
2432 int
2433 main ()
2434 {
2435 exit (42);
2436 ;
2437 return 0;
2438 }
2439 _ACEOF
2440 rm -f conftest.$ac_objext
2441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442 (eval $ac_compile) 2>conftest.er1
2443 ac_status=$?
2444 grep -v '^ *+' conftest.er1 >conftest.err
2445 rm -f conftest.er1
2446 cat conftest.err >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); } &&
2449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 (eval $ac_try) 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; } &&
2455 { ac_try='test -s conftest.$ac_objext'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; }; then
2461 :
2462 else
2463 echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2465
2466 continue
2467 fi
2468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2469 cat >conftest.$ac_ext <<_ACEOF
2470 /* confdefs.h. */
2471 _ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2475 $ac_declaration
2476 int
2477 main ()
2478 {
2479 exit (42);
2480 ;
2481 return 0;
2482 }
2483 _ACEOF
2484 rm -f conftest.$ac_objext
2485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2486 (eval $ac_compile) 2>conftest.er1
2487 ac_status=$?
2488 grep -v '^ *+' conftest.er1 >conftest.err
2489 rm -f conftest.er1
2490 cat conftest.err >&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); } &&
2493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495 (eval $ac_try) 2>&5
2496 ac_status=$?
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; } &&
2499 { ac_try='test -s conftest.$ac_objext'
2500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501 (eval $ac_try) 2>&5
2502 ac_status=$?
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; }; then
2505 break
2506 else
2507 echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2509
2510 fi
2511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2512 done
2513 rm -f conftest*
2514 if test -n "$ac_declaration"; then
2515 echo '#ifdef __cplusplus' >>confdefs.h
2516 echo $ac_declaration >>confdefs.h
2517 echo '#endif' >>confdefs.h
2518 fi
2519
2520 else
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2523
2524 fi
2525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2526 ac_ext=c
2527 ac_cpp='$CPP $CPPFLAGS'
2528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531
2532 ac_ext=c
2533 ac_cpp='$CPP $CPPFLAGS'
2534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2537 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2538 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2539 # On Suns, sometimes $CPP names a directory.
2540 if test -n "$CPP" && test -d "$CPP"; then
2541 CPP=
2542 fi
2543 if test -z "$CPP"; then
2544 if test "${ac_cv_prog_CPP+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 else
2547 # Double quotes because CPP needs to be expanded
2548 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2549 do
2550 ac_preproc_ok=false
2551 for ac_c_preproc_warn_flag in '' yes
2552 do
2553 # Use a header file that comes with gcc, so configuring glibc
2554 # with a fresh cross-compiler works.
2555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2556 # <limits.h> exists even on freestanding compilers.
2557 # On the NeXT, cc -E runs the code through the compiler's parser,
2558 # not just through cpp. "Syntax error" is here to catch this case.
2559 cat >conftest.$ac_ext <<_ACEOF
2560 /* confdefs.h. */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2565 #ifdef __STDC__
2566 # include <limits.h>
2567 #else
2568 # include <assert.h>
2569 #endif
2570 Syntax error
2571 _ACEOF
2572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2574 ac_status=$?
2575 grep -v '^ *+' conftest.er1 >conftest.err
2576 rm -f conftest.er1
2577 cat conftest.err >&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } >/dev/null; then
2580 if test -s conftest.err; then
2581 ac_cpp_err=$ac_c_preproc_warn_flag
2582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2583 else
2584 ac_cpp_err=
2585 fi
2586 else
2587 ac_cpp_err=yes
2588 fi
2589 if test -z "$ac_cpp_err"; then
2590 :
2591 else
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2594
2595 # Broken: fails on valid input.
2596 continue
2597 fi
2598 rm -f conftest.err conftest.$ac_ext
2599
2600 # OK, works on sane cases. Now check whether non-existent headers
2601 # can be detected and how.
2602 cat >conftest.$ac_ext <<_ACEOF
2603 /* confdefs.h. */
2604 _ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2608 #include <ac_nonexistent.h>
2609 _ACEOF
2610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2612 ac_status=$?
2613 grep -v '^ *+' conftest.er1 >conftest.err
2614 rm -f conftest.er1
2615 cat conftest.err >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); } >/dev/null; then
2618 if test -s conftest.err; then
2619 ac_cpp_err=$ac_c_preproc_warn_flag
2620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2621 else
2622 ac_cpp_err=
2623 fi
2624 else
2625 ac_cpp_err=yes
2626 fi
2627 if test -z "$ac_cpp_err"; then
2628 # Broken: success on invalid input.
2629 continue
2630 else
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2633
2634 # Passes both tests.
2635 ac_preproc_ok=:
2636 break
2637 fi
2638 rm -f conftest.err conftest.$ac_ext
2639
2640 done
2641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2642 rm -f conftest.err conftest.$ac_ext
2643 if $ac_preproc_ok; then
2644 break
2645 fi
2646
2647 done
2648 ac_cv_prog_CPP=$CPP
2649
2650 fi
2651 CPP=$ac_cv_prog_CPP
2652 else
2653 ac_cv_prog_CPP=$CPP
2654 fi
2655 echo "$as_me:$LINENO: result: $CPP" >&5
2656 echo "${ECHO_T}$CPP" >&6
2657 ac_preproc_ok=false
2658 for ac_c_preproc_warn_flag in '' yes
2659 do
2660 # Use a header file that comes with gcc, so configuring glibc
2661 # with a fresh cross-compiler works.
2662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2663 # <limits.h> exists even on freestanding compilers.
2664 # On the NeXT, cc -E runs the code through the compiler's parser,
2665 # not just through cpp. "Syntax error" is here to catch this case.
2666 cat >conftest.$ac_ext <<_ACEOF
2667 /* confdefs.h. */
2668 _ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h. */
2672 #ifdef __STDC__
2673 # include <limits.h>
2674 #else
2675 # include <assert.h>
2676 #endif
2677 Syntax error
2678 _ACEOF
2679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2681 ac_status=$?
2682 grep -v '^ *+' conftest.er1 >conftest.err
2683 rm -f conftest.er1
2684 cat conftest.err >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); } >/dev/null; then
2687 if test -s conftest.err; then
2688 ac_cpp_err=$ac_c_preproc_warn_flag
2689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2690 else
2691 ac_cpp_err=
2692 fi
2693 else
2694 ac_cpp_err=yes
2695 fi
2696 if test -z "$ac_cpp_err"; then
2697 :
2698 else
2699 echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.$ac_ext >&5
2701
2702 # Broken: fails on valid input.
2703 continue
2704 fi
2705 rm -f conftest.err conftest.$ac_ext
2706
2707 # OK, works on sane cases. Now check whether non-existent headers
2708 # can be detected and how.
2709 cat >conftest.$ac_ext <<_ACEOF
2710 /* confdefs.h. */
2711 _ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2715 #include <ac_nonexistent.h>
2716 _ACEOF
2717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2719 ac_status=$?
2720 grep -v '^ *+' conftest.er1 >conftest.err
2721 rm -f conftest.er1
2722 cat conftest.err >&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); } >/dev/null; then
2725 if test -s conftest.err; then
2726 ac_cpp_err=$ac_c_preproc_warn_flag
2727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2728 else
2729 ac_cpp_err=
2730 fi
2731 else
2732 ac_cpp_err=yes
2733 fi
2734 if test -z "$ac_cpp_err"; then
2735 # Broken: success on invalid input.
2736 continue
2737 else
2738 echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2740
2741 # Passes both tests.
2742 ac_preproc_ok=:
2743 break
2744 fi
2745 rm -f conftest.err conftest.$ac_ext
2746
2747 done
2748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2749 rm -f conftest.err conftest.$ac_ext
2750 if $ac_preproc_ok; then
2751 :
2752 else
2753 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2754 See \`config.log' for more details." >&5
2755 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2756 See \`config.log' for more details." >&2;}
2757 { (exit 1); exit 1; }; }
2758 fi
2759
2760 ac_ext=c
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765
2766 ac_ext=cc
2767 ac_cpp='$CXXCPP $CPPFLAGS'
2768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2771 if test -n "$ac_tool_prefix"; then
2772 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2773 do
2774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2775 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2776 echo "$as_me:$LINENO: checking for $ac_word" >&5
2777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2778 if test "${ac_cv_prog_CXX+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 else
2781 if test -n "$CXX"; then
2782 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2783 else
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2786 do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2794 fi
2795 done
2796 done
2797
2798 fi
2799 fi
2800 CXX=$ac_cv_prog_CXX
2801 if test -n "$CXX"; then
2802 echo "$as_me:$LINENO: result: $CXX" >&5
2803 echo "${ECHO_T}$CXX" >&6
2804 else
2805 echo "$as_me:$LINENO: result: no" >&5
2806 echo "${ECHO_T}no" >&6
2807 fi
2808
2809 test -n "$CXX" && break
2810 done
2811 fi
2812 if test -z "$CXX"; then
2813 ac_ct_CXX=$CXX
2814 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2815 do
2816 # Extract the first word of "$ac_prog", so it can be a program name with args.
2817 set dummy $ac_prog; ac_word=$2
2818 echo "$as_me:$LINENO: checking for $ac_word" >&5
2819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2820 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823 if test -n "$ac_ct_CXX"; then
2824 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833 ac_cv_prog_ac_ct_CXX="$ac_prog"
2834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2836 fi
2837 done
2838 done
2839
2840 fi
2841 fi
2842 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2843 if test -n "$ac_ct_CXX"; then
2844 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2845 echo "${ECHO_T}$ac_ct_CXX" >&6
2846 else
2847 echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6
2849 fi
2850
2851 test -n "$ac_ct_CXX" && break
2852 done
2853 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2854
2855 CXX=$ac_ct_CXX
2856 fi
2857
2858
2859 # Provide some information about the compiler.
2860 echo "$as_me:$LINENO:" \
2861 "checking for C++ compiler version" >&5
2862 ac_compiler=`set X $ac_compile; echo $2`
2863 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2864 (eval $ac_compiler --version </dev/null >&5) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }
2868 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2869 (eval $ac_compiler -v </dev/null >&5) 2>&5
2870 ac_status=$?
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }
2873 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2874 (eval $ac_compiler -V </dev/null >&5) 2>&5
2875 ac_status=$?
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }
2878
2879 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2880 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2881 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884 cat >conftest.$ac_ext <<_ACEOF
2885 /* confdefs.h. */
2886 _ACEOF
2887 cat confdefs.h >>conftest.$ac_ext
2888 cat >>conftest.$ac_ext <<_ACEOF
2889 /* end confdefs.h. */
2890
2891 int
2892 main ()
2893 {
2894 #ifndef __GNUC__
2895 choke me
2896 #endif
2897
2898 ;
2899 return 0;
2900 }
2901 _ACEOF
2902 rm -f conftest.$ac_objext
2903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2904 (eval $ac_compile) 2>conftest.er1
2905 ac_status=$?
2906 grep -v '^ *+' conftest.er1 >conftest.err
2907 rm -f conftest.er1
2908 cat conftest.err >&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); } &&
2911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913 (eval $ac_try) 2>&5
2914 ac_status=$?
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; } &&
2917 { ac_try='test -s conftest.$ac_objext'
2918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919 (eval $ac_try) 2>&5
2920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; }; then
2923 ac_compiler_gnu=yes
2924 else
2925 echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2927
2928 ac_compiler_gnu=no
2929 fi
2930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2931 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2932
2933 fi
2934 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2935 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2936 GXX=`test $ac_compiler_gnu = yes && echo yes`
2937 ac_test_CXXFLAGS=${CXXFLAGS+set}
2938 ac_save_CXXFLAGS=$CXXFLAGS
2939 CXXFLAGS="-g"
2940 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2941 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2942 if test "${ac_cv_prog_cxx_g+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 else
2945 cat >conftest.$ac_ext <<_ACEOF
2946 /* confdefs.h. */
2947 _ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h. */
2951
2952 int
2953 main ()
2954 {
2955
2956 ;
2957 return 0;
2958 }
2959 _ACEOF
2960 rm -f conftest.$ac_objext
2961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2962 (eval $ac_compile) 2>conftest.er1
2963 ac_status=$?
2964 grep -v '^ *+' conftest.er1 >conftest.err
2965 rm -f conftest.er1
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } &&
2969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 (eval $ac_try) 2>&5
2972 ac_status=$?
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; } &&
2975 { ac_try='test -s conftest.$ac_objext'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 (eval $ac_try) 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2981 ac_cv_prog_cxx_g=yes
2982 else
2983 echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2985
2986 ac_cv_prog_cxx_g=no
2987 fi
2988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2989 fi
2990 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2991 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2992 if test "$ac_test_CXXFLAGS" = set; then
2993 CXXFLAGS=$ac_save_CXXFLAGS
2994 elif test $ac_cv_prog_cxx_g = yes; then
2995 if test "$GXX" = yes; then
2996 CXXFLAGS="-g -O2"
2997 else
2998 CXXFLAGS="-g"
2999 fi
3000 else
3001 if test "$GXX" = yes; then
3002 CXXFLAGS="-O2"
3003 else
3004 CXXFLAGS=
3005 fi
3006 fi
3007 for ac_declaration in \
3008 '' \
3009 'extern "C" void std::exit (int) throw (); using std::exit;' \
3010 'extern "C" void std::exit (int); using std::exit;' \
3011 'extern "C" void exit (int) throw ();' \
3012 'extern "C" void exit (int);' \
3013 'void exit (int);'
3014 do
3015 cat >conftest.$ac_ext <<_ACEOF
3016 /* confdefs.h. */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3021 $ac_declaration
3022 #include <stdlib.h>
3023 int
3024 main ()
3025 {
3026 exit (42);
3027 ;
3028 return 0;
3029 }
3030 _ACEOF
3031 rm -f conftest.$ac_objext
3032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033 (eval $ac_compile) 2>conftest.er1
3034 ac_status=$?
3035 grep -v '^ *+' conftest.er1 >conftest.err
3036 rm -f conftest.er1
3037 cat conftest.err >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } &&
3040 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042 (eval $ac_try) 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; } &&
3046 { ac_try='test -s conftest.$ac_objext'
3047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 (eval $ac_try) 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; }; then
3052 :
3053 else
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3056
3057 continue
3058 fi
3059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3060 cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h. */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3066 $ac_declaration
3067 int
3068 main ()
3069 {
3070 exit (42);
3071 ;
3072 return 0;
3073 }
3074 _ACEOF
3075 rm -f conftest.$ac_objext
3076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3077 (eval $ac_compile) 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086 (eval $ac_try) 2>&5
3087 ac_status=$?
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; } &&
3090 { ac_try='test -s conftest.$ac_objext'
3091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092 (eval $ac_try) 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; }; then
3096 break
3097 else
3098 echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3100
3101 fi
3102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3103 done
3104 rm -f conftest*
3105 if test -n "$ac_declaration"; then
3106 echo '#ifdef __cplusplus' >>confdefs.h
3107 echo $ac_declaration >>confdefs.h
3108 echo '#endif' >>confdefs.h
3109 fi
3110
3111 ac_ext=c
3112 ac_cpp='$CPP $CPPFLAGS'
3113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3116
3117 # Find a good install program. We prefer a C program (faster),
3118 # so one script is as good as another. But avoid the broken or
3119 # incompatible versions:
3120 # SysV /etc/install, /usr/sbin/install
3121 # SunOS /usr/etc/install
3122 # IRIX /sbin/install
3123 # AIX /bin/install
3124 # AmigaOS /C/install, which installs bootblocks on floppy discs
3125 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3126 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3127 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3128 # OS/2's system install, which has a completely different semantic
3129 # ./install, which can be erroneously created by make from ./install.sh.
3130 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3131 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3132 if test -z "$INSTALL"; then
3133 if test "${ac_cv_path_install+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3138 do
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 # Account for people who put trailing slashes in PATH elements.
3142 case $as_dir/ in
3143 ./ | .// | /cC/* | \
3144 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3145 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3146 /usr/ucb/* ) ;;
3147 *)
3148 # OSF1 and SCO ODT 3.0 have their own names for install.
3149 # Don't use installbsd from OSF since it installs stuff as root
3150 # by default.
3151 for ac_prog in ginstall scoinst install; do
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3154 if test $ac_prog = install &&
3155 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3156 # AIX install. It has an incompatible calling convention.
3157 :
3158 elif test $ac_prog = install &&
3159 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3160 # program-specific install script used by HP pwplus--don't use.
3161 :
3162 else
3163 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3164 break 3
3165 fi
3166 fi
3167 done
3168 done
3169 ;;
3170 esac
3171 done
3172
3173
3174 fi
3175 if test "${ac_cv_path_install+set}" = set; then
3176 INSTALL=$ac_cv_path_install
3177 else
3178 # As a last resort, use the slow shell script. We don't cache a
3179 # path for INSTALL within a source directory, because that will
3180 # break other packages using the cache if that directory is
3181 # removed, or if the path is relative.
3182 INSTALL=$ac_install_sh
3183 fi
3184 fi
3185 echo "$as_me:$LINENO: result: $INSTALL" >&5
3186 echo "${ECHO_T}$INSTALL" >&6
3187
3188 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3189 # It thinks the first close brace ends the variable substitution.
3190 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3191
3192 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3193
3194 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3195
3196 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3197 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3198 LN_S=$as_ln_s
3199 if test "$LN_S" = "ln -s"; then
3200 echo "$as_me:$LINENO: result: yes" >&5
3201 echo "${ECHO_T}yes" >&6
3202 else
3203 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3204 echo "${ECHO_T}no, using $LN_S" >&6
3205 fi
3206
3207
3208
3209
3210 echo "$as_me:$LINENO: checking for main in -lm" >&5
3211 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3212 if test "${ac_cv_lib_m_main+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215 ac_check_lib_save_LIBS=$LIBS
3216 LIBS="-lm $LIBS"
3217 cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h. */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3223
3224
3225 int
3226 main ()
3227 {
3228 main ();
3229 ;
3230 return 0;
3231 }
3232 _ACEOF
3233 rm -f conftest.$ac_objext conftest$ac_exeext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3235 (eval $ac_link) 2>conftest.er1
3236 ac_status=$?
3237 grep -v '^ *+' conftest.er1 >conftest.err
3238 rm -f conftest.er1
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244 (eval $ac_try) 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try='test -s conftest$ac_exeext'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 (eval $ac_try) 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3254 ac_cv_lib_m_main=yes
3255 else
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3258
3259 ac_cv_lib_m_main=no
3260 fi
3261 rm -f conftest.err conftest.$ac_objext \
3262 conftest$ac_exeext conftest.$ac_ext
3263 LIBS=$ac_check_lib_save_LIBS
3264 fi
3265 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3266 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3267 if test $ac_cv_lib_m_main = yes; then
3268 cat >>confdefs.h <<_ACEOF
3269 #define HAVE_LIBM 1
3270 _ACEOF
3271
3272 LIBS="-lm $LIBS"
3273
3274 else
3275 { { echo "$as_me:$LINENO: error: a math library is required" >&5
3276 echo "$as_me: error: a math library is required" >&2;}
3277 { (exit 1); exit 1; }; }
3278 fi
3279
3280
3281 echo "$as_me:$LINENO: checking for main in -ltiff" >&5
3282 echo $ECHO_N "checking for main in -ltiff... $ECHO_C" >&6
3283 if test "${ac_cv_lib_tiff_main+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286 ac_check_lib_save_LIBS=$LIBS
3287 LIBS="-ltiff $LIBS"
3288 cat >conftest.$ac_ext <<_ACEOF
3289 /* confdefs.h. */
3290 _ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3294
3295
3296 int
3297 main ()
3298 {
3299 main ();
3300 ;
3301 return 0;
3302 }
3303 _ACEOF
3304 rm -f conftest.$ac_objext conftest$ac_exeext
3305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3306 (eval $ac_link) 2>conftest.er1
3307 ac_status=$?
3308 grep -v '^ *+' conftest.er1 >conftest.err
3309 rm -f conftest.er1
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
3313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 (eval $ac_try) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; } &&
3319 { ac_try='test -s conftest$ac_exeext'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 (eval $ac_try) 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; }; then
3325 ac_cv_lib_tiff_main=yes
3326 else
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3329
3330 ac_cv_lib_tiff_main=no
3331 fi
3332 rm -f conftest.err conftest.$ac_objext \
3333 conftest$ac_exeext conftest.$ac_ext
3334 LIBS=$ac_check_lib_save_LIBS
3335 fi
3336 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_main" >&5
3337 echo "${ECHO_T}$ac_cv_lib_tiff_main" >&6
3338 if test $ac_cv_lib_tiff_main = yes; then
3339 cat >>confdefs.h <<_ACEOF
3340 #define HAVE_LIBTIFF 1
3341 _ACEOF
3342
3343 LIBS="-ltiff $LIBS"
3344
3345 else
3346 { { echo "$as_me:$LINENO: error: libtiff is required" >&5
3347 echo "$as_me: error: libtiff is required" >&2;}
3348 { (exit 1); exit 1; }; }
3349 fi
3350
3351
3352 echo "$as_me:$LINENO: checking for main in -ljpeg" >&5
3353 echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6
3354 if test "${ac_cv_lib_jpeg_main+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357 ac_check_lib_save_LIBS=$LIBS
3358 LIBS="-ljpeg $LIBS"
3359 cat >conftest.$ac_ext <<_ACEOF
3360 /* confdefs.h. */
3361 _ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3365
3366
3367 int
3368 main ()
3369 {
3370 main ();
3371 ;
3372 return 0;
3373 }
3374 _ACEOF
3375 rm -f conftest.$ac_objext conftest$ac_exeext
3376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3377 (eval $ac_link) 2>conftest.er1
3378 ac_status=$?
3379 grep -v '^ *+' conftest.er1 >conftest.err
3380 rm -f conftest.er1
3381 cat conftest.err >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } &&
3384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386 (eval $ac_try) 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; } &&
3390 { ac_try='test -s conftest$ac_exeext'
3391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 (eval $ac_try) 2>&5
3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3396 ac_cv_lib_jpeg_main=yes
3397 else
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3400
3401 ac_cv_lib_jpeg_main=no
3402 fi
3403 rm -f conftest.err conftest.$ac_objext \
3404 conftest$ac_exeext conftest.$ac_ext
3405 LIBS=$ac_check_lib_save_LIBS
3406 fi
3407 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5
3408 echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6
3409 if test $ac_cv_lib_jpeg_main = yes; then
3410 cat >>confdefs.h <<_ACEOF
3411 #define HAVE_LIBJPEG 1
3412 _ACEOF
3413
3414 LIBS="-ljpeg $LIBS"
3415
3416 else
3417 { { echo "$as_me:$LINENO: error: jpeglib is required" >&5
3418 echo "$as_me: error: jpeglib is required" >&2;}
3419 { (exit 1); exit 1; }; }
3420 fi
3421
3422
3423
3424 echo "$as_me:$LINENO: checking for egrep" >&5
3425 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3426 if test "${ac_cv_prog_egrep+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 else
3429 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3430 then ac_cv_prog_egrep='grep -E'
3431 else ac_cv_prog_egrep='egrep'
3432 fi
3433 fi
3434 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3435 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3436 EGREP=$ac_cv_prog_egrep
3437
3438
3439 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3440 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3441 if test "${ac_cv_header_stdc+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444 cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h. */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450 #include <stdlib.h>
3451 #include <stdarg.h>
3452 #include <string.h>
3453 #include <float.h>
3454
3455 int
3456 main ()
3457 {
3458
3459 ;
3460 return 0;
3461 }
3462 _ACEOF
3463 rm -f conftest.$ac_objext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3465 (eval $ac_compile) 2>conftest.er1
3466 ac_status=$?
3467 grep -v '^ *+' conftest.er1 >conftest.err
3468 rm -f conftest.er1
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } &&
3472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474 (eval $ac_try) 2>&5
3475 ac_status=$?
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; } &&
3478 { ac_try='test -s conftest.$ac_objext'
3479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480 (eval $ac_try) 2>&5
3481 ac_status=$?
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; }; then
3484 ac_cv_header_stdc=yes
3485 else
3486 echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3488
3489 ac_cv_header_stdc=no
3490 fi
3491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3492
3493 if test $ac_cv_header_stdc = yes; then
3494 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3495 cat >conftest.$ac_ext <<_ACEOF
3496 /* confdefs.h. */
3497 _ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h. */
3501 #include <string.h>
3502
3503 _ACEOF
3504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3505 $EGREP "memchr" >/dev/null 2>&1; then
3506 :
3507 else
3508 ac_cv_header_stdc=no
3509 fi
3510 rm -f conftest*
3511
3512 fi
3513
3514 if test $ac_cv_header_stdc = yes; then
3515 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3516 cat >conftest.$ac_ext <<_ACEOF
3517 /* confdefs.h. */
3518 _ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3522 #include <stdlib.h>
3523
3524 _ACEOF
3525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3526 $EGREP "free" >/dev/null 2>&1; then
3527 :
3528 else
3529 ac_cv_header_stdc=no
3530 fi
3531 rm -f conftest*
3532
3533 fi
3534
3535 if test $ac_cv_header_stdc = yes; then
3536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3537 if test "$cross_compiling" = yes; then
3538 :
3539 else
3540 cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h. */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3546 #include <ctype.h>
3547 #if ((' ' & 0x0FF) == 0x020)
3548 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3549 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3550 #else
3551 # define ISLOWER(c) \
3552 (('a' <= (c) && (c) <= 'i') \
3553 || ('j' <= (c) && (c) <= 'r') \
3554 || ('s' <= (c) && (c) <= 'z'))
3555 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3556 #endif
3557
3558 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3559 int
3560 main ()
3561 {
3562 int i;
3563 for (i = 0; i < 256; i++)
3564 if (XOR (islower (i), ISLOWER (i))
3565 || toupper (i) != TOUPPER (i))
3566 exit(2);
3567 exit (0);
3568 }
3569 _ACEOF
3570 rm -f conftest$ac_exeext
3571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3572 (eval $ac_link) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 (eval $ac_try) 2>&5
3578 ac_status=$?
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; }; then
3581 :
3582 else
3583 echo "$as_me: program exited with status $ac_status" >&5
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587 ( exit $ac_status )
3588 ac_cv_header_stdc=no
3589 fi
3590 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3591 fi
3592 fi
3593 fi
3594 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3595 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3596 if test $ac_cv_header_stdc = yes; then
3597
3598 cat >>confdefs.h <<\_ACEOF
3599 #define STDC_HEADERS 1
3600 _ACEOF
3601
3602 fi
3603
3604
3605 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3606 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3607 if test "${ac_cv_c_const+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610 cat >conftest.$ac_ext <<_ACEOF
3611 /* confdefs.h. */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3616
3617 int
3618 main ()
3619 {
3620 /* FIXME: Include the comments suggested by Paul. */
3621 #ifndef __cplusplus
3622 /* Ultrix mips cc rejects this. */
3623 typedef int charset[2];
3624 const charset x;
3625 /* SunOS 4.1.1 cc rejects this. */
3626 char const *const *ccp;
3627 char **p;
3628 /* NEC SVR4.0.2 mips cc rejects this. */
3629 struct point {int x, y;};
3630 static struct point const zero = {0,0};
3631 /* AIX XL C 1.02.0.0 rejects this.
3632 It does not let you subtract one const X* pointer from another in
3633 an arm of an if-expression whose if-part is not a constant
3634 expression */
3635 const char *g = "string";
3636 ccp = &g + (g ? g-g : 0);
3637 /* HPUX 7.0 cc rejects these. */
3638 ++ccp;
3639 p = (char**) ccp;
3640 ccp = (char const *const *) p;
3641 { /* SCO 3.2v4 cc rejects this. */
3642 char *t;
3643 char const *s = 0 ? (char *) 0 : (char const *) 0;
3644
3645 *t++ = 0;
3646 }
3647 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3648 int x[] = {25, 17};
3649 const int *foo = &x[0];
3650 ++foo;
3651 }
3652 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3653 typedef const int *iptr;
3654 iptr p = 0;
3655 ++p;
3656 }
3657 { /* AIX XL C 1.02.0.0 rejects this saying
3658 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3659 struct s { int j; const int *ap[3]; };
3660 struct s *b; b->j = 5;
3661 }
3662 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3663 const int foo = 10;
3664 }
3665 #endif
3666
3667 ;
3668 return 0;
3669 }
3670 _ACEOF
3671 rm -f conftest.$ac_objext
3672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3673 (eval $ac_compile) 2>conftest.er1
3674 ac_status=$?
3675 grep -v '^ *+' conftest.er1 >conftest.err
3676 rm -f conftest.er1
3677 cat conftest.err >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } &&
3680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3682 (eval $ac_try) 2>&5
3683 ac_status=$?
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); }; } &&
3686 { ac_try='test -s conftest.$ac_objext'
3687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688 (eval $ac_try) 2>&5
3689 ac_status=$?
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; }; then
3692 ac_cv_c_const=yes
3693 else
3694 echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3696
3697 ac_cv_c_const=no
3698 fi
3699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3700 fi
3701 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3702 echo "${ECHO_T}$ac_cv_c_const" >&6
3703 if test $ac_cv_c_const = no; then
3704
3705 cat >>confdefs.h <<\_ACEOF
3706 #define const
3707 _ACEOF
3708
3709 fi
3710
3711 echo "$as_me:$LINENO: checking for inline" >&5
3712 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3713 if test "${ac_cv_c_inline+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716 ac_cv_c_inline=no
3717 for ac_kw in inline __inline__ __inline; do
3718 cat >conftest.$ac_ext <<_ACEOF
3719 /* confdefs.h. */
3720 _ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3724 #ifndef __cplusplus
3725 typedef int foo_t;
3726 static $ac_kw foo_t static_foo () {return 0; }
3727 $ac_kw foo_t foo () {return 0; }
3728 #endif
3729
3730 _ACEOF
3731 rm -f conftest.$ac_objext
3732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3733 (eval $ac_compile) 2>conftest.er1
3734 ac_status=$?
3735 grep -v '^ *+' conftest.er1 >conftest.err
3736 rm -f conftest.er1
3737 cat conftest.err >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } &&
3740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742 (eval $ac_try) 2>&5
3743 ac_status=$?
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); }; } &&
3746 { ac_try='test -s conftest.$ac_objext'
3747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748 (eval $ac_try) 2>&5
3749 ac_status=$?
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }; }; then
3752 ac_cv_c_inline=$ac_kw; break
3753 else
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3756
3757 fi
3758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3759 done
3760
3761 fi
3762 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3763 echo "${ECHO_T}$ac_cv_c_inline" >&6
3764
3765
3766 case $ac_cv_c_inline in
3767 inline | yes) ;;
3768 *)
3769 case $ac_cv_c_inline in
3770 no) ac_val=;;
3771 *) ac_val=$ac_cv_c_inline;;
3772 esac
3773 cat >>confdefs.h <<_ACEOF
3774 #ifndef __cplusplus
3775 #define inline $ac_val
3776 #endif
3777 _ACEOF
3778 ;;
3779 esac
3780
3781
3782
3783 #AC_ARG_ENABLE(kdctag,[Decode KDC specific tags],
3784 # [if test $enable_kdctag != "no"; then
3785 # AC_DEFINE_UNQUOTED(DECODE_KDCTAG,1)
3786 # XTIFF=xtif_dir.o
3787 # AC_SUBST(XTIFF)
3788 # fi],)
3789
3790 ac_config_files="$ac_config_files Makefile"
3791 cat >confcache <<\_ACEOF
3792 # This file is a shell script that caches the results of configure
3793 # tests run on this system so they can be shared between configure
3794 # scripts and configure runs, see configure's option --config-cache.
3795 # It is not useful on other systems. If it contains results you don't
3796 # want to keep, you may remove or edit it.
3797 #
3798 # config.status only pays attention to the cache file if you give it
3799 # the --recheck option to rerun configure.
3800 #
3801 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3802 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3803 # following values.
3804
3805 _ACEOF
3806
3807 # The following way of writing the cache mishandles newlines in values,
3808 # but we know of no workaround that is simple, portable, and efficient.
3809 # So, don't put newlines in cache variables' values.
3810 # Ultrix sh set writes to stderr and can't be redirected directly,
3811 # and sets the high bit in the cache file unless we assign to the vars.
3812 {
3813 (set) 2>&1 |
3814 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3815 *ac_space=\ *)
3816 # `set' does not quote correctly, so add quotes (double-quote
3817 # substitution turns \\\\ into \\, and sed turns \\ into \).
3818 sed -n \
3819 "s/'/'\\\\''/g;
3820 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3821 ;;
3822 *)
3823 # `set' quotes correctly as required by POSIX, so do not add quotes.
3824 sed -n \
3825 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3826 ;;
3827 esac;
3828 } |
3829 sed '
3830 t clear
3831 : clear
3832 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3833 t end
3834 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3835 : end' >>confcache
3836 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3837 if test -w $cache_file; then
3838 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3839 cat confcache >$cache_file
3840 else
3841 echo "not updating unwritable cache $cache_file"
3842 fi
3843 fi
3844 rm -f confcache
3845
3846 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3847 # Let make expand exec_prefix.
3848 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3849
3850 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3851 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3852 # trailing colons and then remove the whole line if VPATH becomes empty
3853 # (actually we leave an empty line to preserve line numbers).
3854 if test "x$srcdir" = x.; then
3855 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3856 s/:*\$(srcdir):*/:/;
3857 s/:*\${srcdir}:*/:/;
3858 s/:*@srcdir@:*/:/;
3859 s/^\([^=]*=[ ]*\):*/\1/;
3860 s/:*$//;
3861 s/^[^=]*=[ ]*$//;
3862 }'
3863 fi
3864
3865 DEFS=-DHAVE_CONFIG_H
3866
3867 ac_libobjs=
3868 ac_ltlibobjs=
3869 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3870 # 1. Remove the extension, and $U if already installed.
3871 ac_i=`echo "$ac_i" |
3872 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3873 # 2. Add them.
3874 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3875 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3876 done
3877 LIBOBJS=$ac_libobjs
3878
3879 LTLIBOBJS=$ac_ltlibobjs
3880
3881
3882
3883 : ${CONFIG_STATUS=./config.status}
3884 ac_clean_files_save=$ac_clean_files
3885 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3886 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3887 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3888 cat >$CONFIG_STATUS <<_ACEOF
3889 #! $SHELL
3890 # Generated by $as_me.
3891 # Run this file to recreate the current configuration.
3892 # Compiler output produced by configure, useful for debugging
3893 # configure, is in config.log if it exists.
3894
3895 debug=false
3896 ac_cs_recheck=false
3897 ac_cs_silent=false
3898 SHELL=\${CONFIG_SHELL-$SHELL}
3899 _ACEOF
3900
3901 cat >>$CONFIG_STATUS <<\_ACEOF
3902 ## --------------------- ##
3903 ## M4sh Initialization. ##
3904 ## --------------------- ##
3905
3906 # Be Bourne compatible
3907 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3908 emulate sh
3909 NULLCMD=:
3910 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3911 # is contrary to our usage. Disable this feature.
3912 alias -g '${1+"$@"}'='"$@"'
3913 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3914 set -o posix
3915 fi
3916 DUALCASE=1; export DUALCASE # for MKS sh
3917
3918 # Support unset when possible.
3919 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3920 as_unset=unset
3921 else
3922 as_unset=false
3923 fi
3924
3925
3926 # Work around bugs in pre-3.0 UWIN ksh.
3927 $as_unset ENV MAIL MAILPATH
3928 PS1='$ '
3929 PS2='> '
3930 PS4='+ '
3931
3932 # NLS nuisances.
3933 for as_var in \
3934 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3935 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3936 LC_TELEPHONE LC_TIME
3937 do
3938 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3939 eval $as_var=C; export $as_var
3940 else
3941 $as_unset $as_var
3942 fi
3943 done
3944
3945 # Required to use basename.
3946 if expr a : '\(a\)' >/dev/null 2>&1; then
3947 as_expr=expr
3948 else
3949 as_expr=false
3950 fi
3951
3952 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3953 as_basename=basename
3954 else
3955 as_basename=false
3956 fi
3957
3958
3959 # Name of the executable.
3960 as_me=`$as_basename "$0" ||
3961 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3962 X"$0" : 'X\(//\)$' \| \
3963 X"$0" : 'X\(/\)$' \| \
3964 . : '\(.\)' 2>/dev/null ||
3965 echo X/"$0" |
3966 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3967 /^X\/\(\/\/\)$/{ s//\1/; q; }
3968 /^X\/\(\/\).*/{ s//\1/; q; }
3969 s/.*/./; q'`
3970
3971
3972 # PATH needs CR, and LINENO needs CR and PATH.
3973 # Avoid depending upon Character Ranges.
3974 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3975 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3976 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3977 as_cr_digits='0123456789'
3978 as_cr_alnum=$as_cr_Letters$as_cr_digits
3979
3980 # The user is always right.
3981 if test "${PATH_SEPARATOR+set}" != set; then
3982 echo "#! /bin/sh" >conf$$.sh
3983 echo "exit 0" >>conf$$.sh
3984 chmod +x conf$$.sh
3985 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3986 PATH_SEPARATOR=';'
3987 else
3988 PATH_SEPARATOR=:
3989 fi
3990 rm -f conf$$.sh
3991 fi
3992
3993
3994 as_lineno_1=$LINENO
3995 as_lineno_2=$LINENO
3996 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3997 test "x$as_lineno_1" != "x$as_lineno_2" &&
3998 test "x$as_lineno_3" = "x$as_lineno_2" || {
3999 # Find who we are. Look in the path if we contain no path at all
4000 # relative or not.
4001 case $0 in
4002 *[\\/]* ) as_myself=$0 ;;
4003 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH
4005 do
4006 IFS=$as_save_IFS
4007 test -z "$as_dir" && as_dir=.
4008 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4009 done
4010
4011 ;;
4012 esac
4013 # We did not find ourselves, most probably we were run as `sh COMMAND'
4014 # in which case we are not to be found in the path.
4015 if test "x$as_myself" = x; then
4016 as_myself=$0
4017 fi
4018 if test ! -f "$as_myself"; then
4019 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4020 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4021 { (exit 1); exit 1; }; }
4022 fi
4023 case $CONFIG_SHELL in
4024 '')
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4027 do
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for as_base in sh bash ksh sh5; do
4031 case $as_dir in
4032 /*)
4033 if ("$as_dir/$as_base" -c '
4034 as_lineno_1=$LINENO
4035 as_lineno_2=$LINENO
4036 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4037 test "x$as_lineno_1" != "x$as_lineno_2" &&
4038 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4039 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4040 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4041 CONFIG_SHELL=$as_dir/$as_base
4042 export CONFIG_SHELL
4043 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4044 fi;;
4045 esac
4046 done
4047 done
4048 ;;
4049 esac
4050
4051 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4052 # uniformly replaced by the line number. The first 'sed' inserts a
4053 # line-number line before each line; the second 'sed' does the real
4054 # work. The second script uses 'N' to pair each line-number line
4055 # with the numbered line, and appends trailing '-' during
4056 # substitution so that $LINENO is not a special case at line end.
4057 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4058 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4059 sed '=' <$as_myself |
4060 sed '
4061 N
4062 s,$,-,
4063 : loop
4064 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4065 t loop
4066 s,-$,,
4067 s,^['$as_cr_digits']*\n,,
4068 ' >$as_me.lineno &&
4069 chmod +x $as_me.lineno ||
4070 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4071 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4072 { (exit 1); exit 1; }; }
4073
4074 # Don't try to exec as it changes $[0], causing all sort of problems
4075 # (the dirname of $[0] is not the place where we might find the
4076 # original and so on. Autoconf is especially sensible to this).
4077 . ./$as_me.lineno
4078 # Exit status is that of the last command.
4079 exit
4080 }
4081
4082
4083 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4084 *c*,-n*) ECHO_N= ECHO_C='
4085 ' ECHO_T=' ' ;;
4086 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4087 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4088 esac
4089
4090 if expr a : '\(a\)' >/dev/null 2>&1; then
4091 as_expr=expr
4092 else
4093 as_expr=false
4094 fi
4095
4096 rm -f conf$$ conf$$.exe conf$$.file
4097 echo >conf$$.file
4098 if ln -s conf$$.file conf$$ 2>/dev/null; then
4099 # We could just check for DJGPP; but this test a) works b) is more generic
4100 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4101 if test -f conf$$.exe; then
4102 # Don't use ln at all; we don't have any links
4103 as_ln_s='cp -p'
4104 else
4105 as_ln_s='ln -s'
4106 fi
4107 elif ln conf$$.file conf$$ 2>/dev/null; then
4108 as_ln_s=ln
4109 else
4110 as_ln_s='cp -p'
4111 fi
4112 rm -f conf$$ conf$$.exe conf$$.file
4113
4114 if mkdir -p . 2>/dev/null; then
4115 as_mkdir_p=:
4116 else
4117 test -d ./-p && rmdir ./-p
4118 as_mkdir_p=false
4119 fi
4120
4121 as_executable_p="test -f"
4122
4123 # Sed expression to map a string onto a valid CPP name.
4124 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4125
4126 # Sed expression to map a string onto a valid variable name.
4127 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4128
4129
4130 # IFS
4131 # We need space, tab and new line, in precisely that order.
4132 as_nl='
4133 '
4134 IFS=" $as_nl"
4135
4136 # CDPATH.
4137 $as_unset CDPATH
4138
4139 exec 6>&1
4140
4141 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4142 # report actual input values of CONFIG_FILES etc. instead of their
4143 # values after options handling. Logging --version etc. is OK.
4144 exec 5>>config.log
4145 {
4146 echo
4147 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4148 ## Running $as_me. ##
4149 _ASBOX
4150 } >&5
4151 cat >&5 <<_CSEOF
4152
4153 This file was extended by $as_me, which was
4154 generated by GNU Autoconf 2.58. Invocation command line was
4155
4156 CONFIG_FILES = $CONFIG_FILES
4157 CONFIG_HEADERS = $CONFIG_HEADERS
4158 CONFIG_LINKS = $CONFIG_LINKS
4159 CONFIG_COMMANDS = $CONFIG_COMMANDS
4160 $ $0 $@
4161
4162 _CSEOF
4163 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4164 echo >&5
4165 _ACEOF
4166
4167 # Files that config.status was made for.
4168 if test -n "$ac_config_files"; then
4169 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4170 fi
4171
4172 if test -n "$ac_config_headers"; then
4173 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4174 fi
4175
4176 if test -n "$ac_config_links"; then
4177 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4178 fi
4179
4180 if test -n "$ac_config_commands"; then
4181 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4182 fi
4183
4184 cat >>$CONFIG_STATUS <<\_ACEOF
4185
4186 ac_cs_usage="\
4187 \`$as_me' instantiates files from templates according to the
4188 current configuration.
4189
4190 Usage: $0 [OPTIONS] [FILE]...
4191
4192 -h, --help print this help, then exit
4193 -V, --version print version number, then exit
4194 -q, --quiet do not print progress messages
4195 -d, --debug don't remove temporary files
4196 --recheck update $as_me by reconfiguring in the same conditions
4197 --file=FILE[:TEMPLATE]
4198 instantiate the configuration file FILE
4199 --header=FILE[:TEMPLATE]
4200 instantiate the configuration header FILE
4201
4202 Configuration files:
4203 $config_files
4204
4205 Configuration headers:
4206 $config_headers
4207
4208 Configuration commands:
4209 $config_commands
4210
4211 Report bugs to <[email protected]>."
4212 _ACEOF
4213
4214 cat >>$CONFIG_STATUS <<_ACEOF
4215 ac_cs_version="\\
4216 config.status
4217 configured by $0, generated by GNU Autoconf 2.58,
4218 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4219
4220 Copyright (C) 2003 Free Software Foundation, Inc.
4221 This config.status script is free software; the Free Software Foundation
4222 gives unlimited permission to copy, distribute and modify it."
4223 srcdir=$srcdir
4224 INSTALL="$INSTALL"
4225 _ACEOF
4226
4227 cat >>$CONFIG_STATUS <<\_ACEOF
4228 # If no file are specified by the user, then we need to provide default
4229 # value. By we need to know if files were specified by the user.
4230 ac_need_defaults=:
4231 while test $# != 0
4232 do
4233 case $1 in
4234 --*=*)
4235 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4236 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4237 ac_shift=:
4238 ;;
4239 -*)
4240 ac_option=$1
4241 ac_optarg=$2
4242 ac_shift=shift
4243 ;;
4244 *) # This is not an option, so the user has probably given explicit
4245 # arguments.
4246 ac_option=$1
4247 ac_need_defaults=false;;
4248 esac
4249
4250 case $ac_option in
4251 # Handling of the options.
4252 _ACEOF
4253 cat >>$CONFIG_STATUS <<\_ACEOF
4254 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4255 ac_cs_recheck=: ;;
4256 --version | --vers* | -V )
4257 echo "$ac_cs_version"; exit 0 ;;
4258 --he | --h)
4259 # Conflict between --help and --header
4260 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4261 Try \`$0 --help' for more information." >&5
4262 echo "$as_me: error: ambiguous option: $1
4263 Try \`$0 --help' for more information." >&2;}
4264 { (exit 1); exit 1; }; };;
4265 --help | --hel | -h )
4266 echo "$ac_cs_usage"; exit 0 ;;
4267 --debug | --d* | -d )
4268 debug=: ;;
4269 --file | --fil | --fi | --f )
4270 $ac_shift
4271 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4272 ac_need_defaults=false;;
4273 --header | --heade | --head | --hea )
4274 $ac_shift
4275 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4276 ac_need_defaults=false;;
4277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4278 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4279 ac_cs_silent=: ;;
4280
4281 # This is an error.
4282 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4283 Try \`$0 --help' for more information." >&5
4284 echo "$as_me: error: unrecognized option: $1
4285 Try \`$0 --help' for more information." >&2;}
4286 { (exit 1); exit 1; }; } ;;
4287
4288 *) ac_config_targets="$ac_config_targets $1" ;;
4289
4290 esac
4291 shift
4292 done
4293
4294 ac_configure_extra_args=
4295
4296 if $ac_cs_silent; then
4297 exec 6>/dev/null
4298 ac_configure_extra_args="$ac_configure_extra_args --silent"
4299 fi
4300
4301 _ACEOF
4302 cat >>$CONFIG_STATUS <<_ACEOF
4303 if \$ac_cs_recheck; then
4304 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4305 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4306 fi
4307
4308 _ACEOF
4309
4310 cat >>$CONFIG_STATUS <<_ACEOF
4311 #
4312 # INIT-COMMANDS section.
4313 #
4314
4315
4316
4317 _ACEOF
4318
4319
4320
4321 cat >>$CONFIG_STATUS <<\_ACEOF
4322 for ac_config_target in $ac_config_targets
4323 do
4324 case "$ac_config_target" in
4325 # Handling of arguments.
4326 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4327 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
4328 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4329 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4330 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4331 { (exit 1); exit 1; }; };;
4332 esac
4333 done
4334
4335 # If the user did not use the arguments to specify the items to instantiate,
4336 # then the envvar interface is used. Set only those that are not.
4337 # We use the long form for the default assignment because of an extremely
4338 # bizarre bug on SunOS 4.1.3.
4339 if $ac_need_defaults; then
4340 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4341 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4342 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4343 fi
4344
4345 # Have a temporary directory for convenience. Make it in the build tree
4346 # simply because there is no reason to put it here, and in addition,
4347 # creating and moving files from /tmp can sometimes cause problems.
4348 # Create a temporary directory, and hook for its removal unless debugging.
4349 $debug ||
4350 {
4351 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4352 trap '{ (exit 1); exit 1; }' 1 2 13 15
4353 }
4354
4355 # Create a (secure) tmp directory for tmp files.
4356
4357 {
4358 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4359 test -n "$tmp" && test -d "$tmp"
4360 } ||
4361 {
4362 tmp=./confstat$$-$RANDOM
4363 (umask 077 && mkdir $tmp)
4364 } ||
4365 {
4366 echo "$me: cannot create a temporary directory in ." >&2
4367 { (exit 1); exit 1; }
4368 }
4369
4370 _ACEOF
4371
4372 cat >>$CONFIG_STATUS <<_ACEOF
4373
4374 #
4375 # CONFIG_FILES section.
4376 #
4377
4378 # No need to generate the scripts if there are no CONFIG_FILES.
4379 # This happens for instance when ./config.status config.h
4380 if test -n "\$CONFIG_FILES"; then
4381 # Protect against being on the right side of a sed subst in config.status.
4382 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4383 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4384 s,@SHELL@,$SHELL,;t t
4385 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4386 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4387 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4388 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4389 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4390 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4391 s,@exec_prefix@,$exec_prefix,;t t
4392 s,@prefix@,$prefix,;t t
4393 s,@program_transform_name@,$program_transform_name,;t t
4394 s,@bindir@,$bindir,;t t
4395 s,@sbindir@,$sbindir,;t t
4396 s,@libexecdir@,$libexecdir,;t t
4397 s,@datadir@,$datadir,;t t
4398 s,@sysconfdir@,$sysconfdir,;t t
4399 s,@sharedstatedir@,$sharedstatedir,;t t
4400 s,@localstatedir@,$localstatedir,;t t
4401 s,@libdir@,$libdir,;t t
4402 s,@includedir@,$includedir,;t t
4403 s,@oldincludedir@,$oldincludedir,;t t
4404 s,@infodir@,$infodir,;t t
4405 s,@mandir@,$mandir,;t t
4406 s,@build_alias@,$build_alias,;t t
4407 s,@host_alias@,$host_alias,;t t
4408 s,@target_alias@,$target_alias,;t t
4409 s,@DEFS@,$DEFS,;t t
4410 s,@ECHO_C@,$ECHO_C,;t t
4411 s,@ECHO_N@,$ECHO_N,;t t
4412 s,@ECHO_T@,$ECHO_T,;t t
4413 s,@LIBS@,$LIBS,;t t
4414 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4415 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4416 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4417 s,@PACKAGE@,$PACKAGE,;t t
4418 s,@VERSION@,$VERSION,;t t
4419 s,@ACLOCAL@,$ACLOCAL,;t t
4420 s,@AUTOCONF@,$AUTOCONF,;t t
4421 s,@AUTOMAKE@,$AUTOMAKE,;t t
4422 s,@AUTOHEADER@,$AUTOHEADER,;t t
4423 s,@MAKEINFO@,$MAKEINFO,;t t
4424 s,@SET_MAKE@,$SET_MAKE,;t t
4425 s,@AWK@,$AWK,;t t
4426 s,@CC@,$CC,;t t
4427 s,@CFLAGS@,$CFLAGS,;t t
4428 s,@LDFLAGS@,$LDFLAGS,;t t
4429 s,@CPPFLAGS@,$CPPFLAGS,;t t
4430 s,@ac_ct_CC@,$ac_ct_CC,;t t
4431 s,@EXEEXT@,$EXEEXT,;t t
4432 s,@OBJEXT@,$OBJEXT,;t t
4433 s,@CPP@,$CPP,;t t
4434 s,@CXX@,$CXX,;t t
4435 s,@CXXFLAGS@,$CXXFLAGS,;t t
4436 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
4437 s,@LN_S@,$LN_S,;t t
4438 s,@EGREP@,$EGREP,;t t
4439 s,@LIBOBJS@,$LIBOBJS,;t t
4440 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4441 CEOF
4442
4443 _ACEOF
4444
4445 cat >>$CONFIG_STATUS <<\_ACEOF
4446 # Split the substitutions into bite-sized pieces for seds with
4447 # small command number limits, like on Digital OSF/1 and HP-UX.
4448 ac_max_sed_lines=48
4449 ac_sed_frag=1 # Number of current file.
4450 ac_beg=1 # First line for current file.
4451 ac_end=$ac_max_sed_lines # Line after last line for current file.
4452 ac_more_lines=:
4453 ac_sed_cmds=
4454 while $ac_more_lines; do
4455 if test $ac_beg -gt 1; then
4456 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4457 else
4458 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4459 fi
4460 if test ! -s $tmp/subs.frag; then
4461 ac_more_lines=false
4462 else
4463 # The purpose of the label and of the branching condition is to
4464 # speed up the sed processing (if there are no `@' at all, there
4465 # is no need to browse any of the substitutions).
4466 # These are the two extra sed commands mentioned above.
4467 (echo ':t
4468 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4469 if test -z "$ac_sed_cmds"; then
4470 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4471 else
4472 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4473 fi
4474 ac_sed_frag=`expr $ac_sed_frag + 1`
4475 ac_beg=$ac_end
4476 ac_end=`expr $ac_end + $ac_max_sed_lines`
4477 fi
4478 done
4479 if test -z "$ac_sed_cmds"; then
4480 ac_sed_cmds=cat
4481 fi
4482 fi # test -n "$CONFIG_FILES"
4483
4484 _ACEOF
4485 cat >>$CONFIG_STATUS <<\_ACEOF
4486 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4487 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4488 case $ac_file in
4489 - | *:- | *:-:* ) # input from stdin
4490 cat >$tmp/stdin
4491 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4492 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4493 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4494 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4495 * ) ac_file_in=$ac_file.in ;;
4496 esac
4497
4498 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4499 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4500 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4501 X"$ac_file" : 'X\(//\)[^/]' \| \
4502 X"$ac_file" : 'X\(//\)$' \| \
4503 X"$ac_file" : 'X\(/\)' \| \
4504 . : '\(.\)' 2>/dev/null ||
4505 echo X"$ac_file" |
4506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4507 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4508 /^X\(\/\/\)$/{ s//\1/; q; }
4509 /^X\(\/\).*/{ s//\1/; q; }
4510 s/.*/./; q'`
4511 { if $as_mkdir_p; then
4512 mkdir -p "$ac_dir"
4513 else
4514 as_dir="$ac_dir"
4515 as_dirs=
4516 while test ! -d "$as_dir"; do
4517 as_dirs="$as_dir $as_dirs"
4518 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4519 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4520 X"$as_dir" : 'X\(//\)[^/]' \| \
4521 X"$as_dir" : 'X\(//\)$' \| \
4522 X"$as_dir" : 'X\(/\)' \| \
4523 . : '\(.\)' 2>/dev/null ||
4524 echo X"$as_dir" |
4525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4526 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4527 /^X\(\/\/\)$/{ s//\1/; q; }
4528 /^X\(\/\).*/{ s//\1/; q; }
4529 s/.*/./; q'`
4530 done
4531 test ! -n "$as_dirs" || mkdir $as_dirs
4532 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4533 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4534 { (exit 1); exit 1; }; }; }
4535
4536 ac_builddir=.
4537
4538 if test "$ac_dir" != .; then
4539 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4540 # A "../" for each directory in $ac_dir_suffix.
4541 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4542 else
4543 ac_dir_suffix= ac_top_builddir=
4544 fi
4545
4546 case $srcdir in
4547 .) # No --srcdir option. We are building in place.
4548 ac_srcdir=.
4549 if test -z "$ac_top_builddir"; then
4550 ac_top_srcdir=.
4551 else
4552 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4553 fi ;;
4554 [\\/]* | ?:[\\/]* ) # Absolute path.
4555 ac_srcdir=$srcdir$ac_dir_suffix;
4556 ac_top_srcdir=$srcdir ;;
4557 *) # Relative path.
4558 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4559 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4560 esac
4561
4562 # Do not use `cd foo && pwd` to compute absolute paths, because
4563 # the directories may not exist.
4564 case `pwd` in
4565 .) ac_abs_builddir="$ac_dir";;
4566 *)
4567 case "$ac_dir" in
4568 .) ac_abs_builddir=`pwd`;;
4569 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4570 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4571 esac;;
4572 esac
4573 case $ac_abs_builddir in
4574 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4575 *)
4576 case ${ac_top_builddir}. in
4577 .) ac_abs_top_builddir=$ac_abs_builddir;;
4578 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4579 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4580 esac;;
4581 esac
4582 case $ac_abs_builddir in
4583 .) ac_abs_srcdir=$ac_srcdir;;
4584 *)
4585 case $ac_srcdir in
4586 .) ac_abs_srcdir=$ac_abs_builddir;;
4587 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4588 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4589 esac;;
4590 esac
4591 case $ac_abs_builddir in
4592 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4593 *)
4594 case $ac_top_srcdir in
4595 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4596 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4597 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4598 esac;;
4599 esac
4600
4601
4602 case $INSTALL in
4603 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4604 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4605 esac
4606
4607 # Let's still pretend it is `configure' which instantiates (i.e., don't
4608 # use $as_me), people would be surprised to read:
4609 # /* config.h. Generated by config.status. */
4610 if test x"$ac_file" = x-; then
4611 configure_input=
4612 else
4613 configure_input="$ac_file. "
4614 fi
4615 configure_input=$configure_input"Generated from `echo $ac_file_in |
4616 sed 's,.*/,,'` by configure."
4617
4618 # First look for the input files in the build tree, otherwise in the
4619 # src tree.
4620 ac_file_inputs=`IFS=:
4621 for f in $ac_file_in; do
4622 case $f in
4623 -) echo $tmp/stdin ;;
4624 [\\/$]*)
4625 # Absolute (can't be DOS-style, as IFS=:)
4626 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4627 echo "$as_me: error: cannot find input file: $f" >&2;}
4628 { (exit 1); exit 1; }; }
4629 echo "$f";;
4630 *) # Relative
4631 if test -f "$f"; then
4632 # Build tree
4633 echo "$f"
4634 elif test -f "$srcdir/$f"; then
4635 # Source tree
4636 echo "$srcdir/$f"
4637 else
4638 # /dev/null tree
4639 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4640 echo "$as_me: error: cannot find input file: $f" >&2;}
4641 { (exit 1); exit 1; }; }
4642 fi;;
4643 esac
4644 done` || { (exit 1); exit 1; }
4645
4646 if test x"$ac_file" != x-; then
4647 { echo "$as_me:$LINENO: creating $ac_file" >&5
4648 echo "$as_me: creating $ac_file" >&6;}
4649 rm -f "$ac_file"
4650 fi
4651 _ACEOF
4652 cat >>$CONFIG_STATUS <<_ACEOF
4653 sed "$ac_vpsub
4654 $extrasub
4655 _ACEOF
4656 cat >>$CONFIG_STATUS <<\_ACEOF
4657 :t
4658 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4659 s,@configure_input@,$configure_input,;t t
4660 s,@srcdir@,$ac_srcdir,;t t
4661 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4662 s,@top_srcdir@,$ac_top_srcdir,;t t
4663 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4664 s,@builddir@,$ac_builddir,;t t
4665 s,@abs_builddir@,$ac_abs_builddir,;t t
4666 s,@top_builddir@,$ac_top_builddir,;t t
4667 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4668 s,@INSTALL@,$ac_INSTALL,;t t
4669 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4670 rm -f $tmp/stdin
4671 if test x"$ac_file" != x-; then
4672 mv $tmp/out $ac_file
4673 else
4674 cat $tmp/out
4675 rm -f $tmp/out
4676 fi
4677
4678 done
4679 _ACEOF
4680 cat >>$CONFIG_STATUS <<\_ACEOF
4681
4682 #
4683 # CONFIG_HEADER section.
4684 #
4685
4686 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4687 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4688 #
4689 # ac_d sets the value in "#define NAME VALUE" lines.
4690 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4691 ac_dB='[ ].*$,\1#\2'
4692 ac_dC=' '
4693 ac_dD=',;t'
4694 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4695 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4696 ac_uB='$,\1#\2define\3'
4697 ac_uC=' '
4698 ac_uD=',;t'
4699
4700 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4701 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4702 case $ac_file in
4703 - | *:- | *:-:* ) # input from stdin
4704 cat >$tmp/stdin
4705 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4706 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4707 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4708 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4709 * ) ac_file_in=$ac_file.in ;;
4710 esac
4711
4712 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4713 echo "$as_me: creating $ac_file" >&6;}
4714
4715 # First look for the input files in the build tree, otherwise in the
4716 # src tree.
4717 ac_file_inputs=`IFS=:
4718 for f in $ac_file_in; do
4719 case $f in
4720 -) echo $tmp/stdin ;;
4721 [\\/$]*)
4722 # Absolute (can't be DOS-style, as IFS=:)
4723 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4724 echo "$as_me: error: cannot find input file: $f" >&2;}
4725 { (exit 1); exit 1; }; }
4726 # Do quote $f, to prevent DOS paths from being IFS'd.
4727 echo "$f";;
4728 *) # Relative
4729 if test -f "$f"; then
4730 # Build tree
4731 echo "$f"
4732 elif test -f "$srcdir/$f"; then
4733 # Source tree
4734 echo "$srcdir/$f"
4735 else
4736 # /dev/null tree
4737 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4738 echo "$as_me: error: cannot find input file: $f" >&2;}
4739 { (exit 1); exit 1; }; }
4740 fi;;
4741 esac
4742 done` || { (exit 1); exit 1; }
4743 # Remove the trailing spaces.
4744 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4745
4746 _ACEOF
4747
4748 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4749 # `conftest.undefs', that substitutes the proper values into
4750 # config.h.in to produce config.h. The first handles `#define'
4751 # templates, and the second `#undef' templates.
4752 # And first: Protect against being on the right side of a sed subst in
4753 # config.status. Protect against being in an unquoted here document
4754 # in config.status.
4755 rm -f conftest.defines conftest.undefs
4756 # Using a here document instead of a string reduces the quoting nightmare.
4757 # Putting comments in sed scripts is not portable.
4758 #
4759 # `end' is used to avoid that the second main sed command (meant for
4760 # 0-ary CPP macros) applies to n-ary macro definitions.
4761 # See the Autoconf documentation for `clear'.
4762 cat >confdef2sed.sed <<\_ACEOF
4763 s/[\\&,]/\\&/g
4764 s,[\\$`],\\&,g
4765 t clear
4766 : clear
4767 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4768 t end
4769 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4770 : end
4771 _ACEOF
4772 # If some macros were called several times there might be several times
4773 # the same #defines, which is useless. Nevertheless, we may not want to
4774 # sort them, since we want the *last* AC-DEFINE to be honored.
4775 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4776 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4777 rm -f confdef2sed.sed
4778
4779 # This sed command replaces #undef with comments. This is necessary, for
4780 # example, in the case of _POSIX_SOURCE, which is predefined and required
4781 # on some systems where configure will not decide to define it.
4782 cat >>conftest.undefs <<\_ACEOF
4783 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4784 _ACEOF
4785
4786 # Break up conftest.defines because some shells have a limit on the size
4787 # of here documents, and old seds have small limits too (100 cmds).
4788 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4789 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4790 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4791 echo ' :' >>$CONFIG_STATUS
4792 rm -f conftest.tail
4793 while grep . conftest.defines >/dev/null
4794 do
4795 # Write a limited-size here document to $tmp/defines.sed.
4796 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4797 # Speed up: don't consider the non `#define' lines.
4798 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4799 # Work around the forget-to-reset-the-flag bug.
4800 echo 't clr' >>$CONFIG_STATUS
4801 echo ': clr' >>$CONFIG_STATUS
4802 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4803 echo 'CEOF
4804 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4805 rm -f $tmp/in
4806 mv $tmp/out $tmp/in
4807 ' >>$CONFIG_STATUS
4808 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4809 rm -f conftest.defines
4810 mv conftest.tail conftest.defines
4811 done
4812 rm -f conftest.defines
4813 echo ' fi # grep' >>$CONFIG_STATUS
4814 echo >>$CONFIG_STATUS
4815
4816 # Break up conftest.undefs because some shells have a limit on the size
4817 # of here documents, and old seds have small limits too (100 cmds).
4818 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4819 rm -f conftest.tail
4820 while grep . conftest.undefs >/dev/null
4821 do
4822 # Write a limited-size here document to $tmp/undefs.sed.
4823 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4824 # Speed up: don't consider the non `#undef'
4825 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4826 # Work around the forget-to-reset-the-flag bug.
4827 echo 't clr' >>$CONFIG_STATUS
4828 echo ': clr' >>$CONFIG_STATUS
4829 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4830 echo 'CEOF
4831 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4832 rm -f $tmp/in
4833 mv $tmp/out $tmp/in
4834 ' >>$CONFIG_STATUS
4835 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4836 rm -f conftest.undefs
4837 mv conftest.tail conftest.undefs
4838 done
4839 rm -f conftest.undefs
4840
4841 cat >>$CONFIG_STATUS <<\_ACEOF
4842 # Let's still pretend it is `configure' which instantiates (i.e., don't
4843 # use $as_me), people would be surprised to read:
4844 # /* config.h. Generated by config.status. */
4845 if test x"$ac_file" = x-; then
4846 echo "/* Generated by configure. */" >$tmp/config.h
4847 else
4848 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4849 fi
4850 cat $tmp/in >>$tmp/config.h
4851 rm -f $tmp/in
4852 if test x"$ac_file" != x-; then
4853 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4854 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4855 echo "$as_me: $ac_file is unchanged" >&6;}
4856 else
4857 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4858 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4859 X"$ac_file" : 'X\(//\)[^/]' \| \
4860 X"$ac_file" : 'X\(//\)$' \| \
4861 X"$ac_file" : 'X\(/\)' \| \
4862 . : '\(.\)' 2>/dev/null ||
4863 echo X"$ac_file" |
4864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4866 /^X\(\/\/\)$/{ s//\1/; q; }
4867 /^X\(\/\).*/{ s//\1/; q; }
4868 s/.*/./; q'`
4869 { if $as_mkdir_p; then
4870 mkdir -p "$ac_dir"
4871 else
4872 as_dir="$ac_dir"
4873 as_dirs=
4874 while test ! -d "$as_dir"; do
4875 as_dirs="$as_dir $as_dirs"
4876 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4877 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4878 X"$as_dir" : 'X\(//\)[^/]' \| \
4879 X"$as_dir" : 'X\(//\)$' \| \
4880 X"$as_dir" : 'X\(/\)' \| \
4881 . : '\(.\)' 2>/dev/null ||
4882 echo X"$as_dir" |
4883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4885 /^X\(\/\/\)$/{ s//\1/; q; }
4886 /^X\(\/\).*/{ s//\1/; q; }
4887 s/.*/./; q'`
4888 done
4889 test ! -n "$as_dirs" || mkdir $as_dirs
4890 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4891 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4892 { (exit 1); exit 1; }; }; }
4893
4894 rm -f $ac_file
4895 mv $tmp/config.h $ac_file
4896 fi
4897 else
4898 cat $tmp/config.h
4899 rm -f $tmp/config.h
4900 fi
4901 done
4902 _ACEOF
4903 cat >>$CONFIG_STATUS <<\_ACEOF
4904
4905 #
4906 # CONFIG_COMMANDS section.
4907 #
4908 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4909 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4910 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4911 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4912 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4913 X"$ac_dest" : 'X\(//\)[^/]' \| \
4914 X"$ac_dest" : 'X\(//\)$' \| \
4915 X"$ac_dest" : 'X\(/\)' \| \
4916 . : '\(.\)' 2>/dev/null ||
4917 echo X"$ac_dest" |
4918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4919 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4920 /^X\(\/\/\)$/{ s//\1/; q; }
4921 /^X\(\/\).*/{ s//\1/; q; }
4922 s/.*/./; q'`
4923 { if $as_mkdir_p; then
4924 mkdir -p "$ac_dir"
4925 else
4926 as_dir="$ac_dir"
4927 as_dirs=
4928 while test ! -d "$as_dir"; do
4929 as_dirs="$as_dir $as_dirs"
4930 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4931 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4932 X"$as_dir" : 'X\(//\)[^/]' \| \
4933 X"$as_dir" : 'X\(//\)$' \| \
4934 X"$as_dir" : 'X\(/\)' \| \
4935 . : '\(.\)' 2>/dev/null ||
4936 echo X"$as_dir" |
4937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4938 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4939 /^X\(\/\/\)$/{ s//\1/; q; }
4940 /^X\(\/\).*/{ s//\1/; q; }
4941 s/.*/./; q'`
4942 done
4943 test ! -n "$as_dirs" || mkdir $as_dirs
4944 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4945 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4946 { (exit 1); exit 1; }; }; }
4947
4948 ac_builddir=.
4949
4950 if test "$ac_dir" != .; then
4951 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4952 # A "../" for each directory in $ac_dir_suffix.
4953 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4954 else
4955 ac_dir_suffix= ac_top_builddir=
4956 fi
4957
4958 case $srcdir in
4959 .) # No --srcdir option. We are building in place.
4960 ac_srcdir=.
4961 if test -z "$ac_top_builddir"; then
4962 ac_top_srcdir=.
4963 else
4964 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4965 fi ;;
4966 [\\/]* | ?:[\\/]* ) # Absolute path.
4967 ac_srcdir=$srcdir$ac_dir_suffix;
4968 ac_top_srcdir=$srcdir ;;
4969 *) # Relative path.
4970 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4971 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4972 esac
4973
4974 # Do not use `cd foo && pwd` to compute absolute paths, because
4975 # the directories may not exist.
4976 case `pwd` in
4977 .) ac_abs_builddir="$ac_dir";;
4978 *)
4979 case "$ac_dir" in
4980 .) ac_abs_builddir=`pwd`;;
4981 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4982 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4983 esac;;
4984 esac
4985 case $ac_abs_builddir in
4986 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4987 *)
4988 case ${ac_top_builddir}. in
4989 .) ac_abs_top_builddir=$ac_abs_builddir;;
4990 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4991 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4992 esac;;
4993 esac
4994 case $ac_abs_builddir in
4995 .) ac_abs_srcdir=$ac_srcdir;;
4996 *)
4997 case $ac_srcdir in
4998 .) ac_abs_srcdir=$ac_abs_builddir;;
4999 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5000 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5001 esac;;
5002 esac
5003 case $ac_abs_builddir in
5004 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5005 *)
5006 case $ac_top_srcdir in
5007 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5008 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5009 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5010 esac;;
5011 esac
5012
5013
5014 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5015 echo "$as_me: executing $ac_dest commands" >&6;}
5016 case $ac_dest in
5017 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
5018 esac
5019 done
5020 _ACEOF
5021
5022 cat >>$CONFIG_STATUS <<\_ACEOF
5023
5024 { (exit 0); exit 0; }
5025 _ACEOF
5026 chmod +x $CONFIG_STATUS
5027 ac_clean_files=$ac_clean_files_save
5028
5029
5030 # configure is writing to config.log, and then calls config.status.
5031 # config.status does its own redirection, appending to config.log.
5032 # Unfortunately, on DOS this fails, as config.log is still kept open
5033 # by configure, so config.status won't be able to write to it; its
5034 # output is simply discarded. So we exec the FD to /dev/null,
5035 # effectively closing config.log, so it can be properly (re)opened and
5036 # appended to by config.status. When coming back to configure, we
5037 # need to make the FD available again.
5038 if test "$no_create" != yes; then
5039 ac_cs_success=:
5040 ac_config_status_args=
5041 test "$silent" = yes &&
5042 ac_config_status_args="$ac_config_status_args --quiet"
5043 exec 5>/dev/null
5044 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5045 exec 5>>config.log
5046 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5047 # would make configure fail if this is the last instruction.
5048 $ac_cs_success || { (exit 1); exit 1; }
5049 fi
5050