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