26eaf59b25a76545e94b35e3b0da6327e59b7720
[deliverable/binutils-gdb.git] / opcodes / 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="z8k-dis.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S STRIP ac_ct_STRIP LIBTOOL WARN_CFLAGS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l CC_FOR_BUILD EXEEXT_FOR_BUILD HDEFINES CGEN_MAINT_TRUE CGEN_MAINT_FALSE cgendir WIN32LDFLAGS WIN32LIBADD archdefs BFD_MACHINES LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --enable-shared=PKGS build shared libraries default=no
854 --enable-static=PKGS build static libraries default=yes
855 --enable-fast-install=PKGS optimize for fast installation default=yes
856 --disable-libtool-lock avoid locking (might break parallel builds)
857 --enable-targets alternative target configurations
858 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
859 --enable-build-warnings Enable build-time compiler warnings if gcc is used
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-install-libbfd controls installation of libbfd and related headers
863 --disable-nls do not use Native Language Support
864 --enable-cgen-maint=dir build cgen generated files
865
866 Optional Packages:
867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
869 --with-gnu-ld assume the C compiler uses GNU ld default=no
870 --with-pic try to use only PIC/non-PIC objects default=use both
871 --with-included-gettext use the GNU gettext library included here
872
873 Some influential environment variables:
874 CC C compiler command
875 CFLAGS C compiler flags
876 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
877 nonstandard directory <lib dir>
878 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
879 headers in a nonstandard directory <include dir>
880 CPP C preprocessor
881
882 Use these variables to override the choices made by `configure' or to help
883 it to find libraries and programs with nonstandard names/locations.
884
885 _ACEOF
886 fi
887
888 if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
890 ac_popdir=`pwd`
891 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892 test -d $ac_dir || continue
893 ac_builddir=.
894
895 if test "$ac_dir" != .; then
896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897 # A "../" for each directory in $ac_dir_suffix.
898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899 else
900 ac_dir_suffix= ac_top_builddir=
901 fi
902
903 case $srcdir in
904 .) # No --srcdir option. We are building in place.
905 ac_srcdir=.
906 if test -z "$ac_top_builddir"; then
907 ac_top_srcdir=.
908 else
909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910 fi ;;
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_srcdir=$srcdir$ac_dir_suffix;
913 ac_top_srcdir=$srcdir ;;
914 *) # Relative path.
915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
917 esac
918
919 # Do not use `cd foo && pwd` to compute absolute paths, because
920 # the directories may not exist.
921 case `pwd` in
922 .) ac_abs_builddir="$ac_dir";;
923 *)
924 case "$ac_dir" in
925 .) ac_abs_builddir=`pwd`;;
926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
928 esac;;
929 esac
930 case $ac_abs_builddir in
931 .) ac_abs_top_builddir=${ac_top_builddir}.;;
932 *)
933 case ${ac_top_builddir}. in
934 .) ac_abs_top_builddir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937 esac;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_srcdir=$ac_srcdir;;
941 *)
942 case $ac_srcdir in
943 .) ac_abs_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_srcdir=$ac_top_srcdir;;
950 *)
951 case $ac_top_srcdir in
952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955 esac;;
956 esac
957
958 cd $ac_dir
959 # Check for guested configure; otherwise get Cygnus style configure.
960 if test -f $ac_srcdir/configure.gnu; then
961 echo
962 $SHELL $ac_srcdir/configure.gnu --help=recursive
963 elif test -f $ac_srcdir/configure; then
964 echo
965 $SHELL $ac_srcdir/configure --help=recursive
966 elif test -f $ac_srcdir/configure.ac ||
967 test -f $ac_srcdir/configure.in; then
968 echo
969 $ac_configure --help
970 else
971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972 fi
973 cd "$ac_popdir"
974 done
975 fi
976
977 test -n "$ac_init_help" && exit 0
978 if $ac_init_version; then
979 cat <<\_ACEOF
980
981 Copyright (C) 2003 Free Software Foundation, Inc.
982 This configure script is free software; the Free Software Foundation
983 gives unlimited permission to copy, distribute and modify it.
984 _ACEOF
985 exit 0
986 fi
987 exec 5>config.log
988 cat >&5 <<_ACEOF
989 This file contains any messages produced by compilers while
990 running configure, to aid debugging if configure makes a mistake.
991
992 It was created by $as_me, which was
993 generated by GNU Autoconf 2.59. Invocation command line was
994
995 $ $0 $@
996
997 _ACEOF
998 {
999 cat <<_ASUNAME
1000 ## --------- ##
1001 ## Platform. ##
1002 ## --------- ##
1003
1004 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1005 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1006 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1007 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1008 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1009
1010 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1011 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1012
1013 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1014 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1015 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1016 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1017 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1018 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1019 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1020
1021 _ASUNAME
1022
1023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024 for as_dir in $PATH
1025 do
1026 IFS=$as_save_IFS
1027 test -z "$as_dir" && as_dir=.
1028 echo "PATH: $as_dir"
1029 done
1030
1031 } >&5
1032
1033 cat >&5 <<_ACEOF
1034
1035
1036 ## ----------- ##
1037 ## Core tests. ##
1038 ## ----------- ##
1039
1040 _ACEOF
1041
1042
1043 # Keep a trace of the command line.
1044 # Strip out --no-create and --no-recursion so they do not pile up.
1045 # Strip out --silent because we don't want to record it for future runs.
1046 # Also quote any args containing shell meta-characters.
1047 # Make two passes to allow for proper duplicate-argument suppression.
1048 ac_configure_args=
1049 ac_configure_args0=
1050 ac_configure_args1=
1051 ac_sep=
1052 ac_must_keep_next=false
1053 for ac_pass in 1 2
1054 do
1055 for ac_arg
1056 do
1057 case $ac_arg in
1058 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1061 continue ;;
1062 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1063 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1064 esac
1065 case $ac_pass in
1066 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1067 2)
1068 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1069 if test $ac_must_keep_next = true; then
1070 ac_must_keep_next=false # Got value, back to normal.
1071 else
1072 case $ac_arg in
1073 *=* | --config-cache | -C | -disable-* | --disable-* \
1074 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1075 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1076 | -with-* | --with-* | -without-* | --without-* | --x)
1077 case "$ac_configure_args0 " in
1078 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1079 esac
1080 ;;
1081 -* ) ac_must_keep_next=true ;;
1082 esac
1083 fi
1084 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1085 # Get rid of the leading space.
1086 ac_sep=" "
1087 ;;
1088 esac
1089 done
1090 done
1091 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1092 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1093
1094 # When interrupted or exit'd, cleanup temporary files, and complete
1095 # config.log. We remove comments because anyway the quotes in there
1096 # would cause problems or look ugly.
1097 # WARNING: Be sure not to use single quotes in there, as some shells,
1098 # such as our DU 5.0 friend, will then `close' the trap.
1099 trap 'exit_status=$?
1100 # Save into config.log some information that might help in debugging.
1101 {
1102 echo
1103
1104 cat <<\_ASBOX
1105 ## ---------------- ##
1106 ## Cache variables. ##
1107 ## ---------------- ##
1108 _ASBOX
1109 echo
1110 # The following way of writing the cache mishandles newlines in values,
1111 {
1112 (set) 2>&1 |
1113 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1114 *ac_space=\ *)
1115 sed -n \
1116 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1118 ;;
1119 *)
1120 sed -n \
1121 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122 ;;
1123 esac;
1124 }
1125 echo
1126
1127 cat <<\_ASBOX
1128 ## ----------------- ##
1129 ## Output variables. ##
1130 ## ----------------- ##
1131 _ASBOX
1132 echo
1133 for ac_var in $ac_subst_vars
1134 do
1135 eval ac_val=$`echo $ac_var`
1136 echo "$ac_var='"'"'$ac_val'"'"'"
1137 done | sort
1138 echo
1139
1140 if test -n "$ac_subst_files"; then
1141 cat <<\_ASBOX
1142 ## ------------- ##
1143 ## Output files. ##
1144 ## ------------- ##
1145 _ASBOX
1146 echo
1147 for ac_var in $ac_subst_files
1148 do
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1153 fi
1154
1155 if test -s confdefs.h; then
1156 cat <<\_ASBOX
1157 ## ----------- ##
1158 ## confdefs.h. ##
1159 ## ----------- ##
1160 _ASBOX
1161 echo
1162 sed "/^$/d" confdefs.h | sort
1163 echo
1164 fi
1165 test "$ac_signal" != 0 &&
1166 echo "$as_me: caught signal $ac_signal"
1167 echo "$as_me: exit $exit_status"
1168 } >&5
1169 rm -f core *.core &&
1170 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1171 exit $exit_status
1172 ' 0
1173 for ac_signal in 1 2 13 15; do
1174 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1175 done
1176 ac_signal=0
1177
1178 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1179 rm -rf conftest* confdefs.h
1180 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1181 echo >confdefs.h
1182
1183 # Predefined preprocessor variables.
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_NAME "$PACKAGE_NAME"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1192 _ACEOF
1193
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1197 _ACEOF
1198
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_STRING "$PACKAGE_STRING"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1207 _ACEOF
1208
1209
1210 # Let the site file select an alternate cache file if it wants to.
1211 # Prefer explicitly selected file to automatically selected ones.
1212 if test -z "$CONFIG_SITE"; then
1213 if test "x$prefix" != xNONE; then
1214 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1215 else
1216 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1217 fi
1218 fi
1219 for ac_site_file in $CONFIG_SITE; do
1220 if test -r "$ac_site_file"; then
1221 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1222 echo "$as_me: loading site script $ac_site_file" >&6;}
1223 sed 's/^/| /' "$ac_site_file" >&5
1224 . "$ac_site_file"
1225 fi
1226 done
1227
1228 if test -r "$cache_file"; then
1229 # Some versions of bash will fail to source /dev/null (special
1230 # files actually), so we avoid doing that.
1231 if test -f "$cache_file"; then
1232 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1233 echo "$as_me: loading cache $cache_file" >&6;}
1234 case $cache_file in
1235 [\\/]* | ?:[\\/]* ) . $cache_file;;
1236 *) . ./$cache_file;;
1237 esac
1238 fi
1239 else
1240 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1241 echo "$as_me: creating cache $cache_file" >&6;}
1242 >$cache_file
1243 fi
1244
1245 # Check that the precious variables saved in the cache have kept the same
1246 # value.
1247 ac_cache_corrupted=false
1248 for ac_var in `(set) 2>&1 |
1249 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1251 eval ac_new_set=\$ac_env_${ac_var}_set
1252 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1253 eval ac_new_val="\$ac_env_${ac_var}_value"
1254 case $ac_old_set,$ac_new_set in
1255 set,)
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1259 ,set)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,);;
1264 *)
1265 if test "x$ac_old_val" != "x$ac_new_val"; then
1266 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1267 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1268 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1269 echo "$as_me: former value: $ac_old_val" >&2;}
1270 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1271 echo "$as_me: current value: $ac_new_val" >&2;}
1272 ac_cache_corrupted=:
1273 fi;;
1274 esac
1275 # Pass precious variables to config.status.
1276 if test "$ac_new_set" = set; then
1277 case $ac_new_val in
1278 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1280 *) ac_arg=$ac_var=$ac_new_val ;;
1281 esac
1282 case " $ac_configure_args " in
1283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1284 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1285 esac
1286 fi
1287 done
1288 if $ac_cache_corrupted; then
1289 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1290 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1291 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1292 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1293 { (exit 1); exit 1; }; }
1294 fi
1295
1296 ac_ext=c
1297 ac_cpp='$CPP $CPPFLAGS'
1298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322 ac_aux_dir=
1323 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324 if test -f $ac_dir/install-sh; then
1325 ac_aux_dir=$ac_dir
1326 ac_install_sh="$ac_aux_dir/install-sh -c"
1327 break
1328 elif test -f $ac_dir/install.sh; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/install.sh -c"
1331 break
1332 elif test -f $ac_dir/shtool; then
1333 ac_aux_dir=$ac_dir
1334 ac_install_sh="$ac_aux_dir/shtool install -c"
1335 break
1336 fi
1337 done
1338 if test -z "$ac_aux_dir"; then
1339 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341 { (exit 1); exit 1; }; }
1342 fi
1343 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1346
1347 # Make sure we can run config.sub.
1348 $ac_config_sub sun4 >/dev/null 2>&1 ||
1349 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1350 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1351 { (exit 1); exit 1; }; }
1352
1353 echo "$as_me:$LINENO: checking build system type" >&5
1354 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1355 if test "${ac_cv_build+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1357 else
1358 ac_cv_build_alias=$build_alias
1359 test -z "$ac_cv_build_alias" &&
1360 ac_cv_build_alias=`$ac_config_guess`
1361 test -z "$ac_cv_build_alias" &&
1362 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1363 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1364 { (exit 1); exit 1; }; }
1365 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1366 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1367 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1368 { (exit 1); exit 1; }; }
1369
1370 fi
1371 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1372 echo "${ECHO_T}$ac_cv_build" >&6
1373 build=$ac_cv_build
1374 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1377
1378
1379 echo "$as_me:$LINENO: checking host system type" >&5
1380 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1381 if test "${ac_cv_host+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 else
1384 ac_cv_host_alias=$host_alias
1385 test -z "$ac_cv_host_alias" &&
1386 ac_cv_host_alias=$ac_cv_build_alias
1387 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1388 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1390 { (exit 1); exit 1; }; }
1391
1392 fi
1393 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1394 echo "${ECHO_T}$ac_cv_host" >&6
1395 host=$ac_cv_host
1396 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1399
1400
1401 echo "$as_me:$LINENO: checking target system type" >&5
1402 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1403 if test "${ac_cv_target+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406 ac_cv_target_alias=$target_alias
1407 test "x$ac_cv_target_alias" = "x" &&
1408 ac_cv_target_alias=$ac_cv_host_alias
1409 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1413
1414 fi
1415 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1416 echo "${ECHO_T}$ac_cv_target" >&6
1417 target=$ac_cv_target
1418 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421
1422
1423 # The aliases save the names the user supplied, while $host etc.
1424 # will get canonicalized.
1425 test -n "$target_alias" &&
1426 test "$program_prefix$program_suffix$program_transform_name" = \
1427 NONENONEs,x,x, &&
1428 program_prefix=${target_alias}-
1429 ac_ext=c
1430 ac_cpp='$CPP $CPPFLAGS'
1431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1434 if test -n "$ac_tool_prefix"; then
1435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1441 else
1442 if test -n "$CC"; then
1443 ac_cv_prog_CC="$CC" # Let the user override the test.
1444 else
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446 for as_dir in $PATH
1447 do
1448 IFS=$as_save_IFS
1449 test -z "$as_dir" && as_dir=.
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 break 2
1455 fi
1456 done
1457 done
1458
1459 fi
1460 fi
1461 CC=$ac_cv_prog_CC
1462 if test -n "$CC"; then
1463 echo "$as_me:$LINENO: result: $CC" >&5
1464 echo "${ECHO_T}$CC" >&6
1465 else
1466 echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1468 fi
1469
1470 fi
1471 if test -z "$ac_cv_prog_CC"; then
1472 ac_ct_CC=$CC
1473 # Extract the first word of "gcc", so it can be a program name with args.
1474 set dummy gcc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480 if test -n "$ac_ct_CC"; then
1481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1482 else
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 for as_dir in $PATH
1485 do
1486 IFS=$as_save_IFS
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_ac_ct_CC="gcc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492 break 2
1493 fi
1494 done
1495 done
1496
1497 fi
1498 fi
1499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1500 if test -n "$ac_ct_CC"; then
1501 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502 echo "${ECHO_T}$ac_ct_CC" >&6
1503 else
1504 echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1506 fi
1507
1508 CC=$ac_ct_CC
1509 else
1510 CC="$ac_cv_prog_CC"
1511 fi
1512
1513 if test -z "$CC"; then
1514 if test -n "$ac_tool_prefix"; then
1515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1516 set dummy ${ac_tool_prefix}cc; ac_word=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1521 else
1522 if test -n "$CC"; then
1523 ac_cv_prog_CC="$CC" # Let the user override the test.
1524 else
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 for as_dir in $PATH
1527 do
1528 IFS=$as_save_IFS
1529 test -z "$as_dir" && as_dir=.
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_CC="${ac_tool_prefix}cc"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 break 2
1535 fi
1536 done
1537 done
1538
1539 fi
1540 fi
1541 CC=$ac_cv_prog_CC
1542 if test -n "$CC"; then
1543 echo "$as_me:$LINENO: result: $CC" >&5
1544 echo "${ECHO_T}$CC" >&6
1545 else
1546 echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1548 fi
1549
1550 fi
1551 if test -z "$ac_cv_prog_CC"; then
1552 ac_ct_CC=$CC
1553 # Extract the first word of "cc", so it can be a program name with args.
1554 set dummy cc; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560 if test -n "$ac_ct_CC"; then
1561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1562 else
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 for as_dir in $PATH
1565 do
1566 IFS=$as_save_IFS
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_ac_ct_CC="cc"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 break 2
1573 fi
1574 done
1575 done
1576
1577 fi
1578 fi
1579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1580 if test -n "$ac_ct_CC"; then
1581 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582 echo "${ECHO_T}$ac_ct_CC" >&6
1583 else
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1586 fi
1587
1588 CC=$ac_ct_CC
1589 else
1590 CC="$ac_cv_prog_CC"
1591 fi
1592
1593 fi
1594 if test -z "$CC"; then
1595 # Extract the first word of "cc", so it can be a program name with args.
1596 set dummy cc; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1604 else
1605 ac_prog_rejected=no
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1614 ac_prog_rejected=yes
1615 continue
1616 fi
1617 ac_cv_prog_CC="cc"
1618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619 break 2
1620 fi
1621 done
1622 done
1623
1624 if test $ac_prog_rejected = yes; then
1625 # We found a bogon in the path, so make sure we never use it.
1626 set dummy $ac_cv_prog_CC
1627 shift
1628 if test $# != 0; then
1629 # We chose a different compiler from the bogus one.
1630 # However, it has the same basename, so the bogon will be chosen
1631 # first if we set CC to just the basename; use the full file name.
1632 shift
1633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1634 fi
1635 fi
1636 fi
1637 fi
1638 CC=$ac_cv_prog_CC
1639 if test -n "$CC"; then
1640 echo "$as_me:$LINENO: result: $CC" >&5
1641 echo "${ECHO_T}$CC" >&6
1642 else
1643 echo "$as_me:$LINENO: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1645 fi
1646
1647 fi
1648 if test -z "$CC"; then
1649 if test -n "$ac_tool_prefix"; then
1650 for ac_prog in cl
1651 do
1652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659 if test -n "$CC"; then
1660 ac_cv_prog_CC="$CC" # Let the user override the test.
1661 else
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1664 do
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1672 fi
1673 done
1674 done
1675
1676 fi
1677 fi
1678 CC=$ac_cv_prog_CC
1679 if test -n "$CC"; then
1680 echo "$as_me:$LINENO: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6
1682 else
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1685 fi
1686
1687 test -n "$CC" && break
1688 done
1689 fi
1690 if test -z "$CC"; then
1691 ac_ct_CC=$CC
1692 for ac_prog in cl
1693 do
1694 # Extract the first word of "$ac_prog", so it can be a program name with args.
1695 set dummy $ac_prog; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701 if test -n "$ac_ct_CC"; then
1702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1703 else
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1706 do
1707 IFS=$as_save_IFS
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_ac_ct_CC="$ac_prog"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 break 2
1714 fi
1715 done
1716 done
1717
1718 fi
1719 fi
1720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721 if test -n "$ac_ct_CC"; then
1722 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723 echo "${ECHO_T}$ac_ct_CC" >&6
1724 else
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1727 fi
1728
1729 test -n "$ac_ct_CC" && break
1730 done
1731
1732 CC=$ac_ct_CC
1733 fi
1734
1735 fi
1736
1737
1738 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1739 See \`config.log' for more details." >&5
1740 echo "$as_me: error: no acceptable C compiler found in \$PATH
1741 See \`config.log' for more details." >&2;}
1742 { (exit 1); exit 1; }; }
1743
1744 # Provide some information about the compiler.
1745 echo "$as_me:$LINENO:" \
1746 "checking for C compiler version" >&5
1747 ac_compiler=`set X $ac_compile; echo $2`
1748 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1749 (eval $ac_compiler --version </dev/null >&5) 2>&5
1750 ac_status=$?
1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752 (exit $ac_status); }
1753 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1754 (eval $ac_compiler -v </dev/null >&5) 2>&5
1755 ac_status=$?
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1759 (eval $ac_compiler -V </dev/null >&5) 2>&5
1760 ac_status=$?
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1763
1764 cat >conftest.$ac_ext <<_ACEOF
1765 /* confdefs.h. */
1766 _ACEOF
1767 cat confdefs.h >>conftest.$ac_ext
1768 cat >>conftest.$ac_ext <<_ACEOF
1769 /* end confdefs.h. */
1770
1771 int
1772 main ()
1773 {
1774
1775 ;
1776 return 0;
1777 }
1778 _ACEOF
1779 ac_clean_files_save=$ac_clean_files
1780 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1781 # Try to create an executable without -o first, disregard a.out.
1782 # It will help us diagnose broken compilers, and finding out an intuition
1783 # of exeext.
1784 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1785 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1786 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1787 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1788 (eval $ac_link_default) 2>&5
1789 ac_status=$?
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; then
1792 # Find the output, starting from the most likely. This scheme is
1793 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1794 # resort.
1795
1796 # Be careful to initialize this variable, since it used to be cached.
1797 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1798 ac_cv_exeext=
1799 # b.out is created by i960 compilers.
1800 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1801 do
1802 test -f "$ac_file" || continue
1803 case $ac_file in
1804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1805 ;;
1806 conftest.$ac_ext )
1807 # This is the source file.
1808 ;;
1809 [ab].out )
1810 # We found the default executable, but exeext='' is most
1811 # certainly right.
1812 break;;
1813 *.* )
1814 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815 # FIXME: I believe we export ac_cv_exeext for Libtool,
1816 # but it would be cool to find out if it's true. Does anybody
1817 # maintain Libtool? --akim.
1818 export ac_cv_exeext
1819 break;;
1820 * )
1821 break;;
1822 esac
1823 done
1824 else
1825 echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&2;}
1832 { (exit 77); exit 77; }; }
1833 fi
1834
1835 ac_exeext=$ac_cv_exeext
1836 echo "$as_me:$LINENO: result: $ac_file" >&5
1837 echo "${ECHO_T}$ac_file" >&6
1838
1839 # Check the compiler produces executables we can run. If not, either
1840 # the compiler is broken, or we cross compile.
1841 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1842 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1843 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1844 # If not cross compiling, check that we can run a simple program.
1845 if test "$cross_compiling" != yes; then
1846 if { ac_try='./$ac_file'
1847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1848 (eval $ac_try) 2>&5
1849 ac_status=$?
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; }; then
1852 cross_compiling=no
1853 else
1854 if test "$cross_compiling" = maybe; then
1855 cross_compiling=yes
1856 else
1857 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&5
1860 echo "$as_me: error: cannot run C compiled programs.
1861 If you meant to cross compile, use \`--host'.
1862 See \`config.log' for more details." >&2;}
1863 { (exit 1); exit 1; }; }
1864 fi
1865 fi
1866 fi
1867 echo "$as_me:$LINENO: result: yes" >&5
1868 echo "${ECHO_T}yes" >&6
1869
1870 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1871 ac_clean_files=$ac_clean_files_save
1872 # Check the compiler produces executables we can run. If not, either
1873 # the compiler is broken, or we cross compile.
1874 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1875 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1876 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1877 echo "${ECHO_T}$cross_compiling" >&6
1878
1879 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1880 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1882 (eval $ac_link) 2>&5
1883 ac_status=$?
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1887 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1888 # work properly (i.e., refer to `conftest.exe'), while it won't with
1889 # `rm'.
1890 for ac_file in conftest.exe conftest conftest.*; do
1891 test -f "$ac_file" || continue
1892 case $ac_file in
1893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1895 export ac_cv_exeext
1896 break;;
1897 * ) break;;
1898 esac
1899 done
1900 else
1901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&2;}
1905 { (exit 1); exit 1; }; }
1906 fi
1907
1908 rm -f conftest$ac_cv_exeext
1909 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1910 echo "${ECHO_T}$ac_cv_exeext" >&6
1911
1912 rm -f conftest.$ac_ext
1913 EXEEXT=$ac_cv_exeext
1914 ac_exeext=$EXEEXT
1915 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1917 if test "${ac_cv_objext+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920 cat >conftest.$ac_ext <<_ACEOF
1921 /* confdefs.h. */
1922 _ACEOF
1923 cat confdefs.h >>conftest.$ac_ext
1924 cat >>conftest.$ac_ext <<_ACEOF
1925 /* end confdefs.h. */
1926
1927 int
1928 main ()
1929 {
1930
1931 ;
1932 return 0;
1933 }
1934 _ACEOF
1935 rm -f conftest.o conftest.obj
1936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>&5
1938 ac_status=$?
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; then
1941 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1942 case $ac_file in
1943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1945 break;;
1946 esac
1947 done
1948 else
1949 echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1951
1952 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1955 See \`config.log' for more details." >&2;}
1956 { (exit 1); exit 1; }; }
1957 fi
1958
1959 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1960 fi
1961 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1962 echo "${ECHO_T}$ac_cv_objext" >&6
1963 OBJEXT=$ac_cv_objext
1964 ac_objext=$OBJEXT
1965 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1966 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1967 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970 cat >conftest.$ac_ext <<_ACEOF
1971 /* confdefs.h. */
1972 _ACEOF
1973 cat confdefs.h >>conftest.$ac_ext
1974 cat >>conftest.$ac_ext <<_ACEOF
1975 /* end confdefs.h. */
1976
1977 int
1978 main ()
1979 {
1980 #ifndef __GNUC__
1981 choke me
1982 #endif
1983
1984 ;
1985 return 0;
1986 }
1987 _ACEOF
1988 rm -f conftest.$ac_objext
1989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990 (eval $ac_compile) 2>conftest.er1
1991 ac_status=$?
1992 grep -v '^ *+' conftest.er1 >conftest.err
1993 rm -f conftest.er1
1994 cat conftest.err >&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
1997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 (eval $ac_try) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; } &&
2003 { ac_try='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
2009 ac_compiler_gnu=yes
2010 else
2011 echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2013
2014 ac_compiler_gnu=no
2015 fi
2016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2018
2019 fi
2020 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2021 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2022 GCC=`test $ac_compiler_gnu = yes && echo yes`
2023 ac_test_CFLAGS=${CFLAGS+set}
2024 ac_save_CFLAGS=$CFLAGS
2025 CFLAGS="-g"
2026 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2027 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2028 if test "${ac_cv_prog_cc_g+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031 cat >conftest.$ac_ext <<_ACEOF
2032 /* confdefs.h. */
2033 _ACEOF
2034 cat confdefs.h >>conftest.$ac_ext
2035 cat >>conftest.$ac_ext <<_ACEOF
2036 /* end confdefs.h. */
2037
2038 int
2039 main ()
2040 {
2041
2042 ;
2043 return 0;
2044 }
2045 _ACEOF
2046 rm -f conftest.$ac_objext
2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048 (eval $ac_compile) 2>conftest.er1
2049 ac_status=$?
2050 grep -v '^ *+' conftest.er1 >conftest.err
2051 rm -f conftest.er1
2052 cat conftest.err >&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); } &&
2055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057 (eval $ac_try) 2>&5
2058 ac_status=$?
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; } &&
2061 { ac_try='test -s conftest.$ac_objext'
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 (eval $ac_try) 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; }; then
2067 ac_cv_prog_cc_g=yes
2068 else
2069 echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2071
2072 ac_cv_prog_cc_g=no
2073 fi
2074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2075 fi
2076 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2077 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2078 if test "$ac_test_CFLAGS" = set; then
2079 CFLAGS=$ac_save_CFLAGS
2080 elif test $ac_cv_prog_cc_g = yes; then
2081 if test "$GCC" = yes; then
2082 CFLAGS="-g -O2"
2083 else
2084 CFLAGS="-g"
2085 fi
2086 else
2087 if test "$GCC" = yes; then
2088 CFLAGS="-O2"
2089 else
2090 CFLAGS=
2091 fi
2092 fi
2093 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2094 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2095 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098 ac_cv_prog_cc_stdc=no
2099 ac_save_CC=$CC
2100 cat >conftest.$ac_ext <<_ACEOF
2101 /* confdefs.h. */
2102 _ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h. */
2106 #include <stdarg.h>
2107 #include <stdio.h>
2108 #include <sys/types.h>
2109 #include <sys/stat.h>
2110 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2111 struct buf { int x; };
2112 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2113 static char *e (p, i)
2114 char **p;
2115 int i;
2116 {
2117 return p[i];
2118 }
2119 static char *f (char * (*g) (char **, int), char **p, ...)
2120 {
2121 char *s;
2122 va_list v;
2123 va_start (v,p);
2124 s = g (p, va_arg (v,int));
2125 va_end (v);
2126 return s;
2127 }
2128
2129 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2130 function prototypes and stuff, but not '\xHH' hex character constants.
2131 These don't provoke an error unfortunately, instead are silently treated
2132 as 'x'. The following induces an error, until -std1 is added to get
2133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2134 array size at least. It's necessary to write '\x00'==0 to get something
2135 that's true only with -std1. */
2136 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2137
2138 int test (int i, double x);
2139 struct s1 {int (*f) (int a);};
2140 struct s2 {int (*f) (double a);};
2141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2142 int argc;
2143 char **argv;
2144 int
2145 main ()
2146 {
2147 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2148 ;
2149 return 0;
2150 }
2151 _ACEOF
2152 # Don't try gcc -ansi; that turns off useful extensions and
2153 # breaks some systems' header files.
2154 # AIX -qlanglvl=ansi
2155 # Ultrix and OSF/1 -std1
2156 # HP-UX 10.20 and later -Ae
2157 # HP-UX older versions -Aa -D_HPUX_SOURCE
2158 # SVR4 -Xc -D__EXTENSIONS__
2159 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2160 do
2161 CC="$ac_save_CC $ac_arg"
2162 rm -f conftest.$ac_objext
2163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164 (eval $ac_compile) 2>conftest.er1
2165 ac_status=$?
2166 grep -v '^ *+' conftest.er1 >conftest.err
2167 rm -f conftest.er1
2168 cat conftest.err >&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); } &&
2171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173 (eval $ac_try) 2>&5
2174 ac_status=$?
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; } &&
2177 { ac_try='test -s conftest.$ac_objext'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2183 ac_cv_prog_cc_stdc=$ac_arg
2184 break
2185 else
2186 echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2188
2189 fi
2190 rm -f conftest.err conftest.$ac_objext
2191 done
2192 rm -f conftest.$ac_ext conftest.$ac_objext
2193 CC=$ac_save_CC
2194
2195 fi
2196
2197 case "x$ac_cv_prog_cc_stdc" in
2198 x|xno)
2199 echo "$as_me:$LINENO: result: none needed" >&5
2200 echo "${ECHO_T}none needed" >&6 ;;
2201 *)
2202 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2203 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2204 CC="$CC $ac_cv_prog_cc_stdc" ;;
2205 esac
2206
2207 # Some people use a C++ compiler to compile C. Since we use `exit',
2208 # in C++ we need to declare it. In case someone uses the same compiler
2209 # for both compiling C and C++ we need to have the C++ compiler decide
2210 # the declaration of exit, since it's the most demanding environment.
2211 cat >conftest.$ac_ext <<_ACEOF
2212 #ifndef __cplusplus
2213 choke me
2214 #endif
2215 _ACEOF
2216 rm -f conftest.$ac_objext
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>conftest.er1
2219 ac_status=$?
2220 grep -v '^ *+' conftest.er1 >conftest.err
2221 rm -f conftest.er1
2222 cat conftest.err >&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); } &&
2225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227 (eval $ac_try) 2>&5
2228 ac_status=$?
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; } &&
2231 { ac_try='test -s conftest.$ac_objext'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 (eval $ac_try) 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2237 for ac_declaration in \
2238 '' \
2239 'extern "C" void std::exit (int) throw (); using std::exit;' \
2240 'extern "C" void std::exit (int); using std::exit;' \
2241 'extern "C" void exit (int) throw ();' \
2242 'extern "C" void exit (int);' \
2243 'void exit (int);'
2244 do
2245 cat >conftest.$ac_ext <<_ACEOF
2246 /* confdefs.h. */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2251 $ac_declaration
2252 #include <stdlib.h>
2253 int
2254 main ()
2255 {
2256 exit (42);
2257 ;
2258 return 0;
2259 }
2260 _ACEOF
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263 (eval $ac_compile) 2>conftest.er1
2264 ac_status=$?
2265 grep -v '^ *+' conftest.er1 >conftest.err
2266 rm -f conftest.er1
2267 cat conftest.err >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } &&
2270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 (eval $ac_try) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; } &&
2276 { ac_try='test -s conftest.$ac_objext'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; }; then
2282 :
2283 else
2284 echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2286
2287 continue
2288 fi
2289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290 cat >conftest.$ac_ext <<_ACEOF
2291 /* confdefs.h. */
2292 _ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2296 $ac_declaration
2297 int
2298 main ()
2299 {
2300 exit (42);
2301 ;
2302 return 0;
2303 }
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2308 ac_status=$?
2309 grep -v '^ *+' conftest.er1 >conftest.err
2310 rm -f conftest.er1
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 (eval $ac_try) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; } &&
2320 { ac_try='test -s conftest.$ac_objext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2326 break
2327 else
2328 echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2330
2331 fi
2332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2333 done
2334 rm -f conftest*
2335 if test -n "$ac_declaration"; then
2336 echo '#ifdef __cplusplus' >>confdefs.h
2337 echo $ac_declaration >>confdefs.h
2338 echo '#endif' >>confdefs.h
2339 fi
2340
2341 else
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2344
2345 fi
2346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2347 ac_ext=c
2348 ac_cpp='$CPP $CPPFLAGS'
2349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352
2353
2354
2355 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2356 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2357 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360 ac_check_lib_save_LIBS=$LIBS
2361 LIBS="-lcposix $LIBS"
2362 cat >conftest.$ac_ext <<_ACEOF
2363 /* confdefs.h. */
2364 _ACEOF
2365 cat confdefs.h >>conftest.$ac_ext
2366 cat >>conftest.$ac_ext <<_ACEOF
2367 /* end confdefs.h. */
2368
2369 /* Override any gcc2 internal prototype to avoid an error. */
2370 #ifdef __cplusplus
2371 extern "C"
2372 #endif
2373 /* We use char because int might match the return type of a gcc2
2374 builtin and then its argument prototype would still apply. */
2375 char strerror ();
2376 int
2377 main ()
2378 {
2379 strerror ();
2380 ;
2381 return 0;
2382 }
2383 _ACEOF
2384 rm -f conftest.$ac_objext conftest$ac_exeext
2385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2386 (eval $ac_link) 2>conftest.er1
2387 ac_status=$?
2388 grep -v '^ *+' conftest.er1 >conftest.err
2389 rm -f conftest.er1
2390 cat conftest.err >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 (eval $ac_try) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; } &&
2399 { ac_try='test -s conftest$ac_exeext'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2405 ac_cv_lib_cposix_strerror=yes
2406 else
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2409
2410 ac_cv_lib_cposix_strerror=no
2411 fi
2412 rm -f conftest.err conftest.$ac_objext \
2413 conftest$ac_exeext conftest.$ac_ext
2414 LIBS=$ac_check_lib_save_LIBS
2415 fi
2416 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2417 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2418 if test $ac_cv_lib_cposix_strerror = yes; then
2419 LIBS="$LIBS -lcposix"
2420 fi
2421
2422
2423
2424
2425 # We currently only use the version number for the name of any shared
2426 # library. For user convenience, we always use the same version
2427 # number that BFD is using.
2428 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2429
2430 am__api_version="1.4"
2431 # Find a good install program. We prefer a C program (faster),
2432 # so one script is as good as another. But avoid the broken or
2433 # incompatible versions:
2434 # SysV /etc/install, /usr/sbin/install
2435 # SunOS /usr/etc/install
2436 # IRIX /sbin/install
2437 # AIX /bin/install
2438 # AmigaOS /C/install, which installs bootblocks on floppy discs
2439 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2440 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2441 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2442 # OS/2's system install, which has a completely different semantic
2443 # ./install, which can be erroneously created by make from ./install.sh.
2444 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2445 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2446 if test -z "$INSTALL"; then
2447 if test "${ac_cv_path_install+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 for as_dir in $PATH
2452 do
2453 IFS=$as_save_IFS
2454 test -z "$as_dir" && as_dir=.
2455 # Account for people who put trailing slashes in PATH elements.
2456 case $as_dir/ in
2457 ./ | .// | /cC/* | \
2458 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2459 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2460 /usr/ucb/* ) ;;
2461 *)
2462 # OSF1 and SCO ODT 3.0 have their own names for install.
2463 # Don't use installbsd from OSF since it installs stuff as root
2464 # by default.
2465 for ac_prog in ginstall scoinst install; do
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2468 if test $ac_prog = install &&
2469 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2470 # AIX install. It has an incompatible calling convention.
2471 :
2472 elif test $ac_prog = install &&
2473 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2474 # program-specific install script used by HP pwplus--don't use.
2475 :
2476 else
2477 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2478 break 3
2479 fi
2480 fi
2481 done
2482 done
2483 ;;
2484 esac
2485 done
2486
2487
2488 fi
2489 if test "${ac_cv_path_install+set}" = set; then
2490 INSTALL=$ac_cv_path_install
2491 else
2492 # As a last resort, use the slow shell script. We don't cache a
2493 # path for INSTALL within a source directory, because that will
2494 # break other packages using the cache if that directory is
2495 # removed, or if the path is relative.
2496 INSTALL=$ac_install_sh
2497 fi
2498 fi
2499 echo "$as_me:$LINENO: result: $INSTALL" >&5
2500 echo "${ECHO_T}$INSTALL" >&6
2501
2502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2503 # It thinks the first close brace ends the variable substitution.
2504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2505
2506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2507
2508 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2509
2510 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2511 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2512 # Just in case
2513 sleep 1
2514 echo timestamp > conftestfile
2515 # Do `set' in a subshell so we don't clobber the current shell's
2516 # arguments. Must try -L first in case configure is actually a
2517 # symlink; some systems play weird games with the mod time of symlinks
2518 # (eg FreeBSD returns the mod time of the symlink's containing
2519 # directory).
2520 if (
2521 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
2522 if test "$*" = "X"; then
2523 # -L didn't work.
2524 set X `ls -t $srcdir/configure conftestfile`
2525 fi
2526 if test "$*" != "X $srcdir/configure conftestfile" \
2527 && test "$*" != "X conftestfile $srcdir/configure"; then
2528
2529 # If neither matched, then we have a broken ls. This can happen
2530 # if, for instance, CONFIG_SHELL is bash and it inherits a
2531 # broken ls alias from the environment. This has actually
2532 # happened. Such a system could not be considered "sane".
2533 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2534 alias in your environment" >&5
2535 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2536 alias in your environment" >&2;}
2537 { (exit 1); exit 1; }; }
2538 fi
2539
2540 test "$2" = conftestfile
2541 )
2542 then
2543 # Ok.
2544 :
2545 else
2546 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2547 Check your system clock" >&5
2548 echo "$as_me: error: newly created file is older than distributed files!
2549 Check your system clock" >&2;}
2550 { (exit 1); exit 1; }; }
2551 fi
2552 rm -f conftest*
2553 echo "$as_me:$LINENO: result: yes" >&5
2554 echo "${ECHO_T}yes" >&6
2555 test "$program_prefix" != NONE &&
2556 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2557 # Use a double $ so make ignores it.
2558 test "$program_suffix" != NONE &&
2559 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2560 # Double any \ or $. echo might interpret backslashes.
2561 # By default was `s,x,x', remove it if useless.
2562 cat <<\_ACEOF >conftest.sed
2563 s/[\\$]/&&/g;s/;s,x,x,$//
2564 _ACEOF
2565 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2566 rm conftest.sed
2567
2568 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2569 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2570 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2571 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2573 else
2574 cat >conftest.make <<\_ACEOF
2575 all:
2576 @echo 'ac_maketemp="$(MAKE)"'
2577 _ACEOF
2578 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2579 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2580 if test -n "$ac_maketemp"; then
2581 eval ac_cv_prog_make_${ac_make}_set=yes
2582 else
2583 eval ac_cv_prog_make_${ac_make}_set=no
2584 fi
2585 rm -f conftest.make
2586 fi
2587 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2588 echo "$as_me:$LINENO: result: yes" >&5
2589 echo "${ECHO_T}yes" >&6
2590 SET_MAKE=
2591 else
2592 echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6
2594 SET_MAKE="MAKE=${MAKE-make}"
2595 fi
2596
2597
2598 PACKAGE=opcodes
2599
2600 VERSION=${BFD_VERSION}
2601
2602 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
2603 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2604 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2605 { (exit 1); exit 1; }; }
2606 fi
2607
2608 cat >>confdefs.h <<_ACEOF
2609 #define PACKAGE "$PACKAGE"
2610 _ACEOF
2611
2612
2613 cat >>confdefs.h <<_ACEOF
2614 #define VERSION "$VERSION"
2615 _ACEOF
2616
2617
2618
2619 missing_dir=`cd $ac_aux_dir && pwd`
2620 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
2621 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
2622 # Run test in a subshell; some versions of sh will print an error if
2623 # an executable is not found, even if stderr is redirected.
2624 # Redirect stdin to placate older versions of autoconf. Sigh.
2625 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2626 ACLOCAL=aclocal-${am__api_version}
2627 echo "$as_me:$LINENO: result: found" >&5
2628 echo "${ECHO_T}found" >&6
2629 else
2630 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
2631 echo "$as_me:$LINENO: result: missing" >&5
2632 echo "${ECHO_T}missing" >&6
2633 fi
2634
2635 echo "$as_me:$LINENO: checking for working autoconf" >&5
2636 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
2637 # Run test in a subshell; some versions of sh will print an error if
2638 # an executable is not found, even if stderr is redirected.
2639 # Redirect stdin to placate older versions of autoconf. Sigh.
2640 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2641 AUTOCONF=autoconf
2642 echo "$as_me:$LINENO: result: found" >&5
2643 echo "${ECHO_T}found" >&6
2644 else
2645 AUTOCONF="$missing_dir/missing autoconf"
2646 echo "$as_me:$LINENO: result: missing" >&5
2647 echo "${ECHO_T}missing" >&6
2648 fi
2649
2650 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
2651 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
2652 # Run test in a subshell; some versions of sh will print an error if
2653 # an executable is not found, even if stderr is redirected.
2654 # Redirect stdin to placate older versions of autoconf. Sigh.
2655 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2656 AUTOMAKE=automake-${am__api_version}
2657 echo "$as_me:$LINENO: result: found" >&5
2658 echo "${ECHO_T}found" >&6
2659 else
2660 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
2661 echo "$as_me:$LINENO: result: missing" >&5
2662 echo "${ECHO_T}missing" >&6
2663 fi
2664
2665 echo "$as_me:$LINENO: checking for working autoheader" >&5
2666 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
2667 # Run test in a subshell; some versions of sh will print an error if
2668 # an executable is not found, even if stderr is redirected.
2669 # Redirect stdin to placate older versions of autoconf. Sigh.
2670 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2671 AUTOHEADER=autoheader
2672 echo "$as_me:$LINENO: result: found" >&5
2673 echo "${ECHO_T}found" >&6
2674 else
2675 AUTOHEADER="$missing_dir/missing autoheader"
2676 echo "$as_me:$LINENO: result: missing" >&5
2677 echo "${ECHO_T}missing" >&6
2678 fi
2679
2680 echo "$as_me:$LINENO: checking for working makeinfo" >&5
2681 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
2682 # Run test in a subshell; some versions of sh will print an error if
2683 # an executable is not found, even if stderr is redirected.
2684 # Redirect stdin to placate older versions of autoconf. Sigh.
2685 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2686 MAKEINFO=makeinfo
2687 echo "$as_me:$LINENO: result: found" >&5
2688 echo "${ECHO_T}found" >&6
2689 else
2690 MAKEINFO="$missing_dir/missing makeinfo"
2691 echo "$as_me:$LINENO: result: missing" >&5
2692 echo "${ECHO_T}missing" >&6
2693 fi
2694
2695
2696
2697 if test -n "$ac_tool_prefix"; then
2698 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2699 set dummy ${ac_tool_prefix}ar; ac_word=$2
2700 echo "$as_me:$LINENO: checking for $ac_word" >&5
2701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2702 if test "${ac_cv_prog_AR+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2704 else
2705 if test -n "$AR"; then
2706 ac_cv_prog_AR="$AR" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711 IFS=$as_save_IFS
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2715 ac_cv_prog_AR="${ac_tool_prefix}ar"
2716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 break 2
2718 fi
2719 done
2720 done
2721
2722 fi
2723 fi
2724 AR=$ac_cv_prog_AR
2725 if test -n "$AR"; then
2726 echo "$as_me:$LINENO: result: $AR" >&5
2727 echo "${ECHO_T}$AR" >&6
2728 else
2729 echo "$as_me:$LINENO: result: no" >&5
2730 echo "${ECHO_T}no" >&6
2731 fi
2732
2733 fi
2734 if test -z "$ac_cv_prog_AR"; then
2735 ac_ct_AR=$AR
2736 # Extract the first word of "ar", so it can be a program name with args.
2737 set dummy ar; ac_word=$2
2738 echo "$as_me:$LINENO: checking for $ac_word" >&5
2739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2740 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2742 else
2743 if test -n "$ac_ct_AR"; then
2744 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2748 do
2749 IFS=$as_save_IFS
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2753 ac_cv_prog_ac_ct_AR="ar"
2754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 break 2
2756 fi
2757 done
2758 done
2759
2760 fi
2761 fi
2762 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2763 if test -n "$ac_ct_AR"; then
2764 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2765 echo "${ECHO_T}$ac_ct_AR" >&6
2766 else
2767 echo "$as_me:$LINENO: result: no" >&5
2768 echo "${ECHO_T}no" >&6
2769 fi
2770
2771 AR=$ac_ct_AR
2772 else
2773 AR="$ac_cv_prog_AR"
2774 fi
2775
2776 if test -n "$ac_tool_prefix"; then
2777 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2778 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2779 echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781 if test "${ac_cv_prog_RANLIB+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784 if test -n "$RANLIB"; then
2785 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798 done
2799 done
2800
2801 fi
2802 fi
2803 RANLIB=$ac_cv_prog_RANLIB
2804 if test -n "$RANLIB"; then
2805 echo "$as_me:$LINENO: result: $RANLIB" >&5
2806 echo "${ECHO_T}$RANLIB" >&6
2807 else
2808 echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6
2810 fi
2811
2812 fi
2813 if test -z "$ac_cv_prog_RANLIB"; then
2814 ac_ct_RANLIB=$RANLIB
2815 # Extract the first word of "ranlib", so it can be a program name with args.
2816 set dummy ranlib; ac_word=$2
2817 echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2819 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 else
2822 if test -n "$ac_ct_RANLIB"; then
2823 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832 ac_cv_prog_ac_ct_RANLIB="ranlib"
2833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2835 fi
2836 done
2837 done
2838
2839 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2840 fi
2841 fi
2842 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2843 if test -n "$ac_ct_RANLIB"; then
2844 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2845 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2846 else
2847 echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6
2849 fi
2850
2851 RANLIB=$ac_ct_RANLIB
2852 else
2853 RANLIB="$ac_cv_prog_RANLIB"
2854 fi
2855
2856
2857 # Check whether --enable-shared or --disable-shared was given.
2858 if test "${enable_shared+set}" = set; then
2859 enableval="$enable_shared"
2860 p=${PACKAGE-default}
2861 case $enableval in
2862 yes) enable_shared=yes ;;
2863 no) enable_shared=no ;;
2864 *)
2865 enable_shared=no
2866 # Look at the argument we got. We use all the common list separators.
2867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2868 for pkg in $enableval; do
2869 if test "X$pkg" = "X$p"; then
2870 enable_shared=yes
2871 fi
2872 done
2873 IFS="$ac_save_ifs"
2874 ;;
2875 esac
2876 else
2877 enable_shared=no
2878 fi;
2879
2880 # Check whether --enable-static or --disable-static was given.
2881 if test "${enable_static+set}" = set; then
2882 enableval="$enable_static"
2883 p=${PACKAGE-default}
2884 case $enableval in
2885 yes) enable_static=yes ;;
2886 no) enable_static=no ;;
2887 *)
2888 enable_static=no
2889 # Look at the argument we got. We use all the common list separators.
2890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2891 for pkg in $enableval; do
2892 if test "X$pkg" = "X$p"; then
2893 enable_static=yes
2894 fi
2895 done
2896 IFS="$ac_save_ifs"
2897 ;;
2898 esac
2899 else
2900 enable_static=yes
2901 fi;
2902 # Check whether --enable-fast-install or --disable-fast-install was given.
2903 if test "${enable_fast_install+set}" = set; then
2904 enableval="$enable_fast_install"
2905 p=${PACKAGE-default}
2906 case $enableval in
2907 yes) enable_fast_install=yes ;;
2908 no) enable_fast_install=no ;;
2909 *)
2910 enable_fast_install=no
2911 # Look at the argument we got. We use all the common list separators.
2912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2913 for pkg in $enableval; do
2914 if test "X$pkg" = "X$p"; then
2915 enable_fast_install=yes
2916 fi
2917 done
2918 IFS="$ac_save_ifs"
2919 ;;
2920 esac
2921 else
2922 enable_fast_install=yes
2923 fi;
2924
2925 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2926 if test "${with_gnu_ld+set}" = set; then
2927 withval="$with_gnu_ld"
2928 test "$withval" = no || with_gnu_ld=yes
2929 else
2930 with_gnu_ld=no
2931 fi;
2932 ac_prog=ld
2933 if test "$GCC" = yes; then
2934 # Check if gcc -print-prog-name=ld gives a path.
2935 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2936 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2937 case $host in
2938 *-*-mingw*)
2939 # gcc leaves a trailing carriage return which upsets mingw
2940 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2941 *)
2942 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2943 esac
2944 case $ac_prog in
2945 # Accept absolute paths.
2946 [\\/]* | [A-Za-z]:[\\/]*)
2947 re_direlt='/[^/][^/]*/\.\./'
2948 # Canonicalize the path of ld
2949 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2950 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2951 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2952 done
2953 test -z "$LD" && LD="$ac_prog"
2954 ;;
2955 "")
2956 # If it fails, then pretend we aren't using GCC.
2957 ac_prog=ld
2958 ;;
2959 *)
2960 # If it is relative, then search for the first ld in PATH.
2961 with_gnu_ld=unknown
2962 ;;
2963 esac
2964 elif test "$with_gnu_ld" = yes; then
2965 echo "$as_me:$LINENO: checking for GNU ld" >&5
2966 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2967 else
2968 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2969 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2970 fi
2971 if test "${lt_cv_path_LD+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974 if test -z "$LD"; then
2975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2976 for ac_dir in $PATH; do
2977 test -z "$ac_dir" && ac_dir=.
2978 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2979 lt_cv_path_LD="$ac_dir/$ac_prog"
2980 # Check to see if the program is GNU ld. I'd rather use --version,
2981 # but apparently some GNU ld's only accept -v.
2982 # Break only if it was the GNU/non-GNU ld that we prefer.
2983 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2984 test "$with_gnu_ld" != no && break
2985 else
2986 test "$with_gnu_ld" != yes && break
2987 fi
2988 fi
2989 done
2990 IFS="$ac_save_ifs"
2991 else
2992 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2993 fi
2994 fi
2995
2996 LD="$lt_cv_path_LD"
2997 if test -n "$LD"; then
2998 echo "$as_me:$LINENO: result: $LD" >&5
2999 echo "${ECHO_T}$LD" >&6
3000 else
3001 echo "$as_me:$LINENO: result: no" >&5
3002 echo "${ECHO_T}no" >&6
3003 fi
3004 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3005 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3006 { (exit 1); exit 1; }; }
3007 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3008 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3009 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3013 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3014 lt_cv_prog_gnu_ld=yes
3015 else
3016 lt_cv_prog_gnu_ld=no
3017 fi
3018 fi
3019 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3020 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3021 with_gnu_ld=$lt_cv_prog_gnu_ld
3022
3023
3024 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3025 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3026 if test "${lt_cv_ld_reload_flag+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029 lt_cv_ld_reload_flag='-r'
3030 fi
3031 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3032 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3033 reload_flag=$lt_cv_ld_reload_flag
3034 test -n "$reload_flag" && reload_flag=" $reload_flag"
3035
3036 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3037 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3038 if test "${lt_cv_path_NM+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 else
3041 if test -n "$NM"; then
3042 # Let the user override the test.
3043 lt_cv_path_NM="$NM"
3044 else
3045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3046 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3047 test -z "$ac_dir" && ac_dir=.
3048 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3049 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3050 # Check to see if the nm accepts a BSD-compat flag.
3051 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3052 # nm: unknown option "B" ignored
3053 # Tru64's nm complains that /dev/null is an invalid object file
3054 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3055 lt_cv_path_NM="$tmp_nm -B"
3056 break
3057 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3058 lt_cv_path_NM="$tmp_nm -p"
3059 break
3060 else
3061 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3062 continue # so that we can try to find one that supports BSD flags
3063 fi
3064 fi
3065 done
3066 IFS="$ac_save_ifs"
3067 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3068 fi
3069 fi
3070
3071 NM="$lt_cv_path_NM"
3072 echo "$as_me:$LINENO: result: $NM" >&5
3073 echo "${ECHO_T}$NM" >&6
3074
3075 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3076 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3077 LN_S=$as_ln_s
3078 if test "$LN_S" = "ln -s"; then
3079 echo "$as_me:$LINENO: result: yes" >&5
3080 echo "${ECHO_T}yes" >&6
3081 else
3082 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3083 echo "${ECHO_T}no, using $LN_S" >&6
3084 fi
3085
3086 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3087 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3088 if test "${lt_cv_deplibs_check_method+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 else
3091 lt_cv_file_magic_cmd='$MAGIC_CMD'
3092 lt_cv_file_magic_test_file=
3093 lt_cv_deplibs_check_method='unknown'
3094 # Need to set the preceding variable on all platforms that support
3095 # interlibrary dependencies.
3096 # 'none' -- dependencies not supported.
3097 # `unknown' -- same as none, but documents that we really don't know.
3098 # 'pass_all' -- all dependencies passed with no checks.
3099 # 'test_compile' -- check by making test program.
3100 # 'file_magic [regex]' -- check by looking for files in library path
3101 # which responds to the $file_magic_cmd with a given egrep regex.
3102 # If you have `file' or equivalent on your system and you're not sure
3103 # whether `pass_all' will *always* work, you probably want this one.
3104
3105 case $host_os in
3106 aix*)
3107 lt_cv_deplibs_check_method=pass_all
3108 ;;
3109
3110 beos*)
3111 lt_cv_deplibs_check_method=pass_all
3112 ;;
3113
3114 bsdi4*)
3115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3116 lt_cv_file_magic_cmd='/usr/bin/file -L'
3117 lt_cv_file_magic_test_file=/shlib/libc.so
3118 ;;
3119
3120 cygwin* | mingw* |pw32*)
3121 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3122 lt_cv_file_magic_cmd='$OBJDUMP -f'
3123 ;;
3124
3125 darwin* | rhapsody*)
3126 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3127 lt_cv_file_magic_cmd='/usr/bin/file -L'
3128 case "$host_os" in
3129 rhapsody* | darwin1.012)
3130 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3131 ;;
3132 *) # Darwin 1.3 on
3133 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3134 ;;
3135 esac
3136 ;;
3137
3138 freebsd* | kfreebsd*-gnu)
3139 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3140 case $host_cpu in
3141 i*86 )
3142 # Not sure whether the presence of OpenBSD here was a mistake.
3143 # Let's accept both of them until this is cleared up.
3144 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3145 lt_cv_file_magic_cmd=/usr/bin/file
3146 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3147 ;;
3148 esac
3149 else
3150 lt_cv_deplibs_check_method=pass_all
3151 fi
3152 ;;
3153
3154 gnu*)
3155 lt_cv_deplibs_check_method=pass_all
3156 ;;
3157
3158 hpux10.20*|hpux11*)
3159 case $host_cpu in
3160 hppa*)
3161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3162 lt_cv_file_magic_cmd=/usr/bin/file
3163 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3164 ;;
3165 ia64*)
3166 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3167 lt_cv_file_magic_cmd=/usr/bin/file
3168 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3169 ;;
3170 esac
3171 ;;
3172
3173 irix5* | irix6*)
3174 case $host_os in
3175 irix5*)
3176 # this will be overridden with pass_all, but let us keep it just in case
3177 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3178 ;;
3179 *)
3180 case $LD in
3181 *-32|*"-32 ") libmagic=32-bit;;
3182 *-n32|*"-n32 ") libmagic=N32;;
3183 *-64|*"-64 ") libmagic=64-bit;;
3184 *) libmagic=never-match;;
3185 esac
3186 # this will be overridden with pass_all, but let us keep it just in case
3187 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3188 ;;
3189 esac
3190 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3191 lt_cv_deplibs_check_method=pass_all
3192 ;;
3193
3194 # This must be Linux ELF.
3195 linux-gnu*)
3196 case $host_cpu in
3197 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3198 lt_cv_deplibs_check_method=pass_all ;;
3199 *)
3200 # glibc up to 2.1.1 does not perform some relocations on ARM
3201 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3202 esac
3203 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3204 ;;
3205
3206 netbsd* | knetbsd*-gnu)
3207 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3208 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3209 else
3210 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3211 fi
3212 ;;
3213
3214 newsos6)
3215 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3216 lt_cv_file_magic_cmd=/usr/bin/file
3217 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3218 ;;
3219
3220 osf3* | osf4* | osf5*)
3221 # this will be overridden with pass_all, but let us keep it just in case
3222 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3223 lt_cv_file_magic_test_file=/shlib/libc.so
3224 lt_cv_deplibs_check_method=pass_all
3225 ;;
3226
3227 sco3.2v5*)
3228 lt_cv_deplibs_check_method=pass_all
3229 ;;
3230
3231 solaris*)
3232 lt_cv_deplibs_check_method=pass_all
3233 lt_cv_file_magic_test_file=/lib/libc.so
3234 ;;
3235
3236 sysv5uw[78]* | sysv4*uw2*)
3237 lt_cv_deplibs_check_method=pass_all
3238 ;;
3239
3240 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3241 case $host_vendor in
3242 ncr)
3243 lt_cv_deplibs_check_method=pass_all
3244 ;;
3245 motorola)
3246 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3247 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3248 ;;
3249 esac
3250 ;;
3251 esac
3252
3253 fi
3254 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3255 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3256 file_magic_cmd=$lt_cv_file_magic_cmd
3257 deplibs_check_method=$lt_cv_deplibs_check_method
3258
3259
3260
3261
3262 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3263
3264 # Only perform the check for file, if the check method requires it
3265 case $deplibs_check_method in
3266 file_magic*)
3267 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3268 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3269 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3270 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 else
3273 case $MAGIC_CMD in
3274 /*)
3275 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3276 ;;
3277 ?:/*)
3278 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3279 ;;
3280 *)
3281 ac_save_MAGIC_CMD="$MAGIC_CMD"
3282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3283 ac_dummy="/usr/bin:$PATH"
3284 for ac_dir in $ac_dummy; do
3285 test -z "$ac_dir" && ac_dir=.
3286 if test -f $ac_dir/${ac_tool_prefix}file; then
3287 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3288 if test -n "$file_magic_test_file"; then
3289 case $deplibs_check_method in
3290 "file_magic "*)
3291 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3293 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3294 egrep "$file_magic_regex" > /dev/null; then
3295 :
3296 else
3297 cat <<EOF 1>&2
3298
3299 *** Warning: the command libtool uses to detect shared libraries,
3300 *** $file_magic_cmd, produces output that libtool cannot recognize.
3301 *** The result is that libtool may fail to recognize shared libraries
3302 *** as such. This will affect the creation of libtool libraries that
3303 *** depend on shared libraries, but programs linked with such libtool
3304 *** libraries will work regardless of this problem. Nevertheless, you
3305 *** may want to report the problem to your system manager and/or to
3306 *** bug-libtool@gnu.org
3307
3308 EOF
3309 fi ;;
3310 esac
3311 fi
3312 break
3313 fi
3314 done
3315 IFS="$ac_save_ifs"
3316 MAGIC_CMD="$ac_save_MAGIC_CMD"
3317 ;;
3318 esac
3319 fi
3320
3321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3322 if test -n "$MAGIC_CMD"; then
3323 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3324 echo "${ECHO_T}$MAGIC_CMD" >&6
3325 else
3326 echo "$as_me:$LINENO: result: no" >&5
3327 echo "${ECHO_T}no" >&6
3328 fi
3329
3330 if test -z "$lt_cv_path_MAGIC_CMD"; then
3331 if test -n "$ac_tool_prefix"; then
3332 echo "$as_me:$LINENO: checking for file" >&5
3333 echo $ECHO_N "checking for file... $ECHO_C" >&6
3334 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337 case $MAGIC_CMD in
3338 /*)
3339 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3340 ;;
3341 ?:/*)
3342 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3343 ;;
3344 *)
3345 ac_save_MAGIC_CMD="$MAGIC_CMD"
3346 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3347 ac_dummy="/usr/bin:$PATH"
3348 for ac_dir in $ac_dummy; do
3349 test -z "$ac_dir" && ac_dir=.
3350 if test -f $ac_dir/file; then
3351 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3352 if test -n "$file_magic_test_file"; then
3353 case $deplibs_check_method in
3354 "file_magic "*)
3355 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3357 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3358 egrep "$file_magic_regex" > /dev/null; then
3359 :
3360 else
3361 cat <<EOF 1>&2
3362
3363 *** Warning: the command libtool uses to detect shared libraries,
3364 *** $file_magic_cmd, produces output that libtool cannot recognize.
3365 *** The result is that libtool may fail to recognize shared libraries
3366 *** as such. This will affect the creation of libtool libraries that
3367 *** depend on shared libraries, but programs linked with such libtool
3368 *** libraries will work regardless of this problem. Nevertheless, you
3369 *** may want to report the problem to your system manager and/or to
3370 *** bug-libtool@gnu.org
3371
3372 EOF
3373 fi ;;
3374 esac
3375 fi
3376 break
3377 fi
3378 done
3379 IFS="$ac_save_ifs"
3380 MAGIC_CMD="$ac_save_MAGIC_CMD"
3381 ;;
3382 esac
3383 fi
3384
3385 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3386 if test -n "$MAGIC_CMD"; then
3387 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3388 echo "${ECHO_T}$MAGIC_CMD" >&6
3389 else
3390 echo "$as_me:$LINENO: result: no" >&5
3391 echo "${ECHO_T}no" >&6
3392 fi
3393
3394 else
3395 MAGIC_CMD=:
3396 fi
3397 fi
3398
3399 fi
3400 ;;
3401 esac
3402
3403 if test -n "$ac_tool_prefix"; then
3404 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3405 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3406 echo "$as_me:$LINENO: checking for $ac_word" >&5
3407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3408 if test "${ac_cv_prog_RANLIB+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 if test -n "$RANLIB"; then
3412 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3416 do
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 break 2
3424 fi
3425 done
3426 done
3427
3428 fi
3429 fi
3430 RANLIB=$ac_cv_prog_RANLIB
3431 if test -n "$RANLIB"; then
3432 echo "$as_me:$LINENO: result: $RANLIB" >&5
3433 echo "${ECHO_T}$RANLIB" >&6
3434 else
3435 echo "$as_me:$LINENO: result: no" >&5
3436 echo "${ECHO_T}no" >&6
3437 fi
3438
3439 fi
3440 if test -z "$ac_cv_prog_RANLIB"; then
3441 ac_ct_RANLIB=$RANLIB
3442 # Extract the first word of "ranlib", so it can be a program name with args.
3443 set dummy ranlib; ac_word=$2
3444 echo "$as_me:$LINENO: checking for $ac_word" >&5
3445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3446 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449 if test -n "$ac_ct_RANLIB"; then
3450 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3451 else
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH
3454 do
3455 IFS=$as_save_IFS
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459 ac_cv_prog_ac_ct_RANLIB="ranlib"
3460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 break 2
3462 fi
3463 done
3464 done
3465
3466 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3467 fi
3468 fi
3469 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3470 if test -n "$ac_ct_RANLIB"; then
3471 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3472 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3473 else
3474 echo "$as_me:$LINENO: result: no" >&5
3475 echo "${ECHO_T}no" >&6
3476 fi
3477
3478 RANLIB=$ac_ct_RANLIB
3479 else
3480 RANLIB="$ac_cv_prog_RANLIB"
3481 fi
3482
3483 if test -n "$ac_tool_prefix"; then
3484 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3485 set dummy ${ac_tool_prefix}strip; ac_word=$2
3486 echo "$as_me:$LINENO: checking for $ac_word" >&5
3487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3488 if test "${ac_cv_prog_STRIP+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 else
3491 if test -n "$STRIP"; then
3492 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3493 else
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 for as_dir in $PATH
3496 do
3497 IFS=$as_save_IFS
3498 test -z "$as_dir" && as_dir=.
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3501 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3503 break 2
3504 fi
3505 done
3506 done
3507
3508 fi
3509 fi
3510 STRIP=$ac_cv_prog_STRIP
3511 if test -n "$STRIP"; then
3512 echo "$as_me:$LINENO: result: $STRIP" >&5
3513 echo "${ECHO_T}$STRIP" >&6
3514 else
3515 echo "$as_me:$LINENO: result: no" >&5
3516 echo "${ECHO_T}no" >&6
3517 fi
3518
3519 fi
3520 if test -z "$ac_cv_prog_STRIP"; then
3521 ac_ct_STRIP=$STRIP
3522 # Extract the first word of "strip", so it can be a program name with args.
3523 set dummy strip; ac_word=$2
3524 echo "$as_me:$LINENO: checking for $ac_word" >&5
3525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3526 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529 if test -n "$ac_ct_STRIP"; then
3530 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3534 do
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3539 ac_cv_prog_ac_ct_STRIP="strip"
3540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 break 2
3542 fi
3543 done
3544 done
3545
3546 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3547 fi
3548 fi
3549 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3550 if test -n "$ac_ct_STRIP"; then
3551 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3552 echo "${ECHO_T}$ac_ct_STRIP" >&6
3553 else
3554 echo "$as_me:$LINENO: result: no" >&5
3555 echo "${ECHO_T}no" >&6
3556 fi
3557
3558 STRIP=$ac_ct_STRIP
3559 else
3560 STRIP="$ac_cv_prog_STRIP"
3561 fi
3562
3563
3564 # Check for any special flags to pass to ltconfig.
3565 libtool_flags="--cache-file=$cache_file"
3566 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3567 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3568 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3569 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3570 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3571
3572
3573 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3574 if test "${enable_libtool_lock+set}" = set; then
3575 enableval="$enable_libtool_lock"
3576
3577 fi;
3578 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3579 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3580
3581
3582 # Check whether --with-pic or --without-pic was given.
3583 if test "${with_pic+set}" = set; then
3584 withval="$with_pic"
3585 pic_mode="$withval"
3586 else
3587 pic_mode=default
3588 fi;
3589 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3590 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3591
3592 # Some flags need to be propagated to the compiler or linker for good
3593 # libtool support.
3594 case $host in
3595 *-*-irix6*)
3596 # Find out which ABI we are using.
3597 echo '#line 3597 "configure"' > conftest.$ac_ext
3598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599 (eval $ac_compile) 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; then
3603 if test "$lt_cv_prog_gnu_ld" = yes; then
3604 case `/usr/bin/file conftest.$ac_objext` in
3605 *32-bit*)
3606 LD="${LD-ld} -melf32bsmip"
3607 ;;
3608 *N32*)
3609 LD="${LD-ld} -melf32bmipn32"
3610 ;;
3611 *64-bit*)
3612 LD="${LD-ld} -melf64bmip"
3613 ;;
3614 esac
3615 else
3616 case `/usr/bin/file conftest.$ac_objext` in
3617 *32-bit*)
3618 LD="${LD-ld} -32"
3619 ;;
3620 *N32*)
3621 LD="${LD-ld} -n32"
3622 ;;
3623 *64-bit*)
3624 LD="${LD-ld} -64"
3625 ;;
3626 esac
3627 fi
3628 fi
3629 rm -rf conftest*
3630 ;;
3631
3632 ia64-*-hpux*)
3633 # Find out which ABI we are using.
3634 echo 'int i;' > conftest.$ac_ext
3635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3636 (eval $ac_compile) 2>&5
3637 ac_status=$?
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; then
3640 case "`/usr/bin/file conftest.o`" in
3641 *ELF-32*)
3642 HPUX_IA64_MODE="32"
3643 ;;
3644 *ELF-64*)
3645 HPUX_IA64_MODE="64"
3646 ;;
3647 esac
3648 fi
3649 rm -rf conftest*
3650 ;;
3651
3652 *-*-sco3.2v5*)
3653 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3654 SAVE_CFLAGS="$CFLAGS"
3655 CFLAGS="$CFLAGS -belf"
3656 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3657 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3658 if test "${lt_cv_cc_needs_belf+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661
3662
3663 ac_ext=c
3664 ac_cpp='$CPP $CPPFLAGS'
3665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3668
3669 cat >conftest.$ac_ext <<_ACEOF
3670 /* confdefs.h. */
3671 _ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3675
3676 int
3677 main ()
3678 {
3679
3680 ;
3681 return 0;
3682 }
3683 _ACEOF
3684 rm -f conftest.$ac_objext conftest$ac_exeext
3685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3686 (eval $ac_link) 2>conftest.er1
3687 ac_status=$?
3688 grep -v '^ *+' conftest.er1 >conftest.err
3689 rm -f conftest.er1
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } &&
3693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695 (eval $ac_try) 2>&5
3696 ac_status=$?
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); }; } &&
3699 { ac_try='test -s conftest$ac_exeext'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 (eval $ac_try) 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; }; then
3705 lt_cv_cc_needs_belf=yes
3706 else
3707 echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3709
3710 lt_cv_cc_needs_belf=no
3711 fi
3712 rm -f conftest.err conftest.$ac_objext \
3713 conftest$ac_exeext conftest.$ac_ext
3714 ac_ext=c
3715 ac_cpp='$CPP $CPPFLAGS'
3716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719
3720 fi
3721 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3722 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3723 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3724 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3725 CFLAGS="$SAVE_CFLAGS"
3726 fi
3727 ;;
3728
3729
3730 esac
3731
3732
3733 # Save cache, so that ltconfig can load it
3734 cat >confcache <<\_ACEOF
3735 # This file is a shell script that caches the results of configure
3736 # tests run on this system so they can be shared between configure
3737 # scripts and configure runs, see configure's option --config-cache.
3738 # It is not useful on other systems. If it contains results you don't
3739 # want to keep, you may remove or edit it.
3740 #
3741 # config.status only pays attention to the cache file if you give it
3742 # the --recheck option to rerun configure.
3743 #
3744 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3745 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3746 # following values.
3747
3748 _ACEOF
3749
3750 # The following way of writing the cache mishandles newlines in values,
3751 # but we know of no workaround that is simple, portable, and efficient.
3752 # So, don't put newlines in cache variables' values.
3753 # Ultrix sh set writes to stderr and can't be redirected directly,
3754 # and sets the high bit in the cache file unless we assign to the vars.
3755 {
3756 (set) 2>&1 |
3757 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3758 *ac_space=\ *)
3759 # `set' does not quote correctly, so add quotes (double-quote
3760 # substitution turns \\\\ into \\, and sed turns \\ into \).
3761 sed -n \
3762 "s/'/'\\\\''/g;
3763 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3764 ;;
3765 *)
3766 # `set' quotes correctly as required by POSIX, so do not add quotes.
3767 sed -n \
3768 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3769 ;;
3770 esac;
3771 } |
3772 sed '
3773 t clear
3774 : clear
3775 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3776 t end
3777 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3778 : end' >>confcache
3779 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3780 if test -w $cache_file; then
3781 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3782 cat confcache >$cache_file
3783 else
3784 echo "not updating unwritable cache $cache_file"
3785 fi
3786 fi
3787 rm -f confcache
3788
3789 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3790 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3791 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3792 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3793 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3794 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3795 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3796 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3797 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
3798 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3799 echo "$as_me: error: libtool configure failed" >&2;}
3800 { (exit 1); exit 1; }; }
3801
3802 # Reload cache, that may have been modified by ltconfig
3803 if test -r "$cache_file"; then
3804 # Some versions of bash will fail to source /dev/null (special
3805 # files actually), so we avoid doing that.
3806 if test -f "$cache_file"; then
3807 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3808 echo "$as_me: loading cache $cache_file" >&6;}
3809 case $cache_file in
3810 [\\/]* | ?:[\\/]* ) . $cache_file;;
3811 *) . ./$cache_file;;
3812 esac
3813 fi
3814 else
3815 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3816 echo "$as_me: creating cache $cache_file" >&6;}
3817 >$cache_file
3818 fi
3819
3820
3821 # This can be used to rebuild libtool when needed
3822 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3823
3824 # Always use our own libtool.
3825 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3826
3827 # Redirect the config.log output again, so that the ltconfig log is not
3828 # clobbered by the next message.
3829 exec 5>>./config.log
3830
3831
3832
3833
3834
3835
3836
3837 # Check whether --enable-targets or --disable-targets was given.
3838 if test "${enable_targets+set}" = set; then
3839 enableval="$enable_targets"
3840 case "${enableval}" in
3841 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3842 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3843 { (exit 1); exit 1; }; }
3844 ;;
3845 no) enable_targets= ;;
3846 *) enable_targets=$enableval ;;
3847 esac
3848 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
3849 if test "${enable_commonbfdlib+set}" = set; then
3850 enableval="$enable_commonbfdlib"
3851 case "${enableval}" in
3852 yes) commonbfdlib=true ;;
3853 no) commonbfdlib=false ;;
3854 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for opcodes commonbfdlib option" >&5
3855 echo "$as_me: error: bad value ${enableval} for opcodes commonbfdlib option" >&2;}
3856 { (exit 1); exit 1; }; } ;;
3857 esac
3858 fi;
3859 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3860 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3861 if test "${enable_build_warnings+set}" = set; then
3862 enableval="$enable_build_warnings"
3863 case "${enableval}" in
3864 yes) ;;
3865 no) build_warnings="-w";;
3866 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3867 build_warnings="${build_warnings} ${t}";;
3868 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3869 build_warnings="${t} ${build_warnings}";;
3870 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3871 esac
3872 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3873 echo "Setting warning flags = $build_warnings" 6>&1
3874 fi
3875 fi; WARN_CFLAGS=""
3876 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
3877 WARN_CFLAGS="${build_warnings}"
3878 fi
3879
3880
3881
3882 ac_config_headers="$ac_config_headers config.h:config.in"
3883
3884 ac_config_commands="$ac_config_commands default-1"
3885
3886
3887 if test -z "$target" ; then
3888 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3889 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3890 { (exit 1); exit 1; }; }
3891 fi
3892
3893 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3894 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3895 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3896 if test "${enable_maintainer_mode+set}" = set; then
3897 enableval="$enable_maintainer_mode"
3898 USE_MAINTAINER_MODE=$enableval
3899 else
3900 USE_MAINTAINER_MODE=no
3901 fi;
3902 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3903 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3904
3905
3906 if test $USE_MAINTAINER_MODE = yes; then
3907 MAINTAINER_MODE_TRUE=
3908 MAINTAINER_MODE_FALSE='#'
3909 else
3910 MAINTAINER_MODE_TRUE='#'
3911 MAINTAINER_MODE_FALSE=
3912 fi
3913 MAINT=$MAINTAINER_MODE_TRUE
3914
3915
3916 case ${build_alias} in
3917 "") build_noncanonical=${build} ;;
3918 *) build_noncanonical=${build_alias} ;;
3919 esac
3920
3921 case ${host_alias} in
3922 "") host_noncanonical=${build_noncanonical} ;;
3923 *) host_noncanonical=${host_alias} ;;
3924 esac
3925
3926 case ${target_alias} in
3927 "") target_noncanonical=${host_noncanonical} ;;
3928 *) target_noncanonical=${target_alias} ;;
3929 esac
3930
3931 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
3932 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
3933 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
3934 if test "${enable_install_libbfd+set}" = set; then
3935 enableval="$enable_install_libbfd"
3936 install_libbfd_p=$enableval
3937 else
3938 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
3939 install_libbfd_p=yes
3940 else
3941 install_libbfd_p=no
3942 fi
3943 fi;
3944 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
3945 echo "${ECHO_T}$install_libbfd_p" >&6
3946
3947
3948 if test $install_libbfd_p = yes; then
3949 INSTALL_LIBBFD_TRUE=
3950 INSTALL_LIBBFD_FALSE='#'
3951 else
3952 INSTALL_LIBBFD_TRUE='#'
3953 INSTALL_LIBBFD_FALSE=
3954 fi
3955 # Need _noncanonical variables for this.
3956
3957
3958
3959
3960 # libbfd.a is a host library containing target dependent code
3961 bfdlibdir='$(libdir)'
3962 bfdincludedir='$(includedir)'
3963 if test "${host}" != "${target}"; then
3964 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
3965 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
3966 fi
3967
3968
3969
3970
3971
3972
3973 # host-specific stuff:
3974
3975 ac_ext=c
3976 ac_cpp='$CPP $CPPFLAGS'
3977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3980 if test -n "$ac_tool_prefix"; then
3981 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3982 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3983 echo "$as_me:$LINENO: checking for $ac_word" >&5
3984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3985 if test "${ac_cv_prog_CC+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988 if test -n "$CC"; then
3989 ac_cv_prog_CC="$CC" # Let the user override the test.
3990 else
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH
3993 do
3994 IFS=$as_save_IFS
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3998 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4000 break 2
4001 fi
4002 done
4003 done
4004
4005 fi
4006 fi
4007 CC=$ac_cv_prog_CC
4008 if test -n "$CC"; then
4009 echo "$as_me:$LINENO: result: $CC" >&5
4010 echo "${ECHO_T}$CC" >&6
4011 else
4012 echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6
4014 fi
4015
4016 fi
4017 if test -z "$ac_cv_prog_CC"; then
4018 ac_ct_CC=$CC
4019 # Extract the first word of "gcc", so it can be a program name with args.
4020 set dummy gcc; ac_word=$2
4021 echo "$as_me:$LINENO: checking for $ac_word" >&5
4022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4023 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026 if test -n "$ac_ct_CC"; then
4027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4028 else
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4031 do
4032 IFS=$as_save_IFS
4033 test -z "$as_dir" && as_dir=.
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4036 ac_cv_prog_ac_ct_CC="gcc"
4037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4038 break 2
4039 fi
4040 done
4041 done
4042
4043 fi
4044 fi
4045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4046 if test -n "$ac_ct_CC"; then
4047 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4048 echo "${ECHO_T}$ac_ct_CC" >&6
4049 else
4050 echo "$as_me:$LINENO: result: no" >&5
4051 echo "${ECHO_T}no" >&6
4052 fi
4053
4054 CC=$ac_ct_CC
4055 else
4056 CC="$ac_cv_prog_CC"
4057 fi
4058
4059 if test -z "$CC"; then
4060 if test -n "$ac_tool_prefix"; then
4061 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4062 set dummy ${ac_tool_prefix}cc; ac_word=$2
4063 echo "$as_me:$LINENO: checking for $ac_word" >&5
4064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4065 if test "${ac_cv_prog_CC+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 else
4068 if test -n "$CC"; then
4069 ac_cv_prog_CC="$CC" # Let the user override the test.
4070 else
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4073 do
4074 IFS=$as_save_IFS
4075 test -z "$as_dir" && as_dir=.
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4078 ac_cv_prog_CC="${ac_tool_prefix}cc"
4079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 break 2
4081 fi
4082 done
4083 done
4084
4085 fi
4086 fi
4087 CC=$ac_cv_prog_CC
4088 if test -n "$CC"; then
4089 echo "$as_me:$LINENO: result: $CC" >&5
4090 echo "${ECHO_T}$CC" >&6
4091 else
4092 echo "$as_me:$LINENO: result: no" >&5
4093 echo "${ECHO_T}no" >&6
4094 fi
4095
4096 fi
4097 if test -z "$ac_cv_prog_CC"; then
4098 ac_ct_CC=$CC
4099 # Extract the first word of "cc", so it can be a program name with args.
4100 set dummy cc; ac_word=$2
4101 echo "$as_me:$LINENO: checking for $ac_word" >&5
4102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4103 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106 if test -n "$ac_ct_CC"; then
4107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4108 else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4111 do
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116 ac_cv_prog_ac_ct_CC="cc"
4117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 break 2
4119 fi
4120 done
4121 done
4122
4123 fi
4124 fi
4125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4126 if test -n "$ac_ct_CC"; then
4127 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4128 echo "${ECHO_T}$ac_ct_CC" >&6
4129 else
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4132 fi
4133
4134 CC=$ac_ct_CC
4135 else
4136 CC="$ac_cv_prog_CC"
4137 fi
4138
4139 fi
4140 if test -z "$CC"; then
4141 # Extract the first word of "cc", so it can be a program name with args.
4142 set dummy cc; ac_word=$2
4143 echo "$as_me:$LINENO: checking for $ac_word" >&5
4144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4145 if test "${ac_cv_prog_CC+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148 if test -n "$CC"; then
4149 ac_cv_prog_CC="$CC" # Let the user override the test.
4150 else
4151 ac_prog_rejected=no
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH
4154 do
4155 IFS=$as_save_IFS
4156 test -z "$as_dir" && as_dir=.
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4159 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4160 ac_prog_rejected=yes
4161 continue
4162 fi
4163 ac_cv_prog_CC="cc"
4164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 break 2
4166 fi
4167 done
4168 done
4169
4170 if test $ac_prog_rejected = yes; then
4171 # We found a bogon in the path, so make sure we never use it.
4172 set dummy $ac_cv_prog_CC
4173 shift
4174 if test $# != 0; then
4175 # We chose a different compiler from the bogus one.
4176 # However, it has the same basename, so the bogon will be chosen
4177 # first if we set CC to just the basename; use the full file name.
4178 shift
4179 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4180 fi
4181 fi
4182 fi
4183 fi
4184 CC=$ac_cv_prog_CC
4185 if test -n "$CC"; then
4186 echo "$as_me:$LINENO: result: $CC" >&5
4187 echo "${ECHO_T}$CC" >&6
4188 else
4189 echo "$as_me:$LINENO: result: no" >&5
4190 echo "${ECHO_T}no" >&6
4191 fi
4192
4193 fi
4194 if test -z "$CC"; then
4195 if test -n "$ac_tool_prefix"; then
4196 for ac_prog in cl
4197 do
4198 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4199 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4200 echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4202 if test "${ac_cv_prog_CC+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 if test -n "$CC"; then
4206 ac_cv_prog_CC="$CC" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4218 fi
4219 done
4220 done
4221
4222 fi
4223 fi
4224 CC=$ac_cv_prog_CC
4225 if test -n "$CC"; then
4226 echo "$as_me:$LINENO: result: $CC" >&5
4227 echo "${ECHO_T}$CC" >&6
4228 else
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4231 fi
4232
4233 test -n "$CC" && break
4234 done
4235 fi
4236 if test -z "$CC"; then
4237 ac_ct_CC=$CC
4238 for ac_prog in cl
4239 do
4240 # Extract the first word of "$ac_prog", so it can be a program name with args.
4241 set dummy $ac_prog; ac_word=$2
4242 echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4244 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247 if test -n "$ac_ct_CC"; then
4248 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4252 do
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257 ac_cv_prog_ac_ct_CC="$ac_prog"
4258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 break 2
4260 fi
4261 done
4262 done
4263
4264 fi
4265 fi
4266 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4267 if test -n "$ac_ct_CC"; then
4268 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4269 echo "${ECHO_T}$ac_ct_CC" >&6
4270 else
4271 echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6
4273 fi
4274
4275 test -n "$ac_ct_CC" && break
4276 done
4277
4278 CC=$ac_ct_CC
4279 fi
4280
4281 fi
4282
4283
4284 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4285 See \`config.log' for more details." >&5
4286 echo "$as_me: error: no acceptable C compiler found in \$PATH
4287 See \`config.log' for more details." >&2;}
4288 { (exit 1); exit 1; }; }
4289
4290 # Provide some information about the compiler.
4291 echo "$as_me:$LINENO:" \
4292 "checking for C compiler version" >&5
4293 ac_compiler=`set X $ac_compile; echo $2`
4294 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4295 (eval $ac_compiler --version </dev/null >&5) 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }
4299 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4300 (eval $ac_compiler -v </dev/null >&5) 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }
4304 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4305 (eval $ac_compiler -V </dev/null >&5) 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }
4309
4310 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4311 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4312 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 else
4315 cat >conftest.$ac_ext <<_ACEOF
4316 /* confdefs.h. */
4317 _ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h. */
4321
4322 int
4323 main ()
4324 {
4325 #ifndef __GNUC__
4326 choke me
4327 #endif
4328
4329 ;
4330 return 0;
4331 }
4332 _ACEOF
4333 rm -f conftest.$ac_objext
4334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4335 (eval $ac_compile) 2>conftest.er1
4336 ac_status=$?
4337 grep -v '^ *+' conftest.er1 >conftest.err
4338 rm -f conftest.er1
4339 cat conftest.err >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } &&
4342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344 (eval $ac_try) 2>&5
4345 ac_status=$?
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; } &&
4348 { ac_try='test -s conftest.$ac_objext'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 (eval $ac_try) 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; }; then
4354 ac_compiler_gnu=yes
4355 else
4356 echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4358
4359 ac_compiler_gnu=no
4360 fi
4361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4362 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4363
4364 fi
4365 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4366 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4367 GCC=`test $ac_compiler_gnu = yes && echo yes`
4368 ac_test_CFLAGS=${CFLAGS+set}
4369 ac_save_CFLAGS=$CFLAGS
4370 CFLAGS="-g"
4371 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4372 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4373 if test "${ac_cv_prog_cc_g+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376 cat >conftest.$ac_ext <<_ACEOF
4377 /* confdefs.h. */
4378 _ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4382
4383 int
4384 main ()
4385 {
4386
4387 ;
4388 return 0;
4389 }
4390 _ACEOF
4391 rm -f conftest.$ac_objext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4393 (eval $ac_compile) 2>conftest.er1
4394 ac_status=$?
4395 grep -v '^ *+' conftest.er1 >conftest.err
4396 rm -f conftest.er1
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 (eval $ac_try) 2>&5
4403 ac_status=$?
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; } &&
4406 { ac_try='test -s conftest.$ac_objext'
4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 (eval $ac_try) 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; }; then
4412 ac_cv_prog_cc_g=yes
4413 else
4414 echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4416
4417 ac_cv_prog_cc_g=no
4418 fi
4419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4420 fi
4421 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4422 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4423 if test "$ac_test_CFLAGS" = set; then
4424 CFLAGS=$ac_save_CFLAGS
4425 elif test $ac_cv_prog_cc_g = yes; then
4426 if test "$GCC" = yes; then
4427 CFLAGS="-g -O2"
4428 else
4429 CFLAGS="-g"
4430 fi
4431 else
4432 if test "$GCC" = yes; then
4433 CFLAGS="-O2"
4434 else
4435 CFLAGS=
4436 fi
4437 fi
4438 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4439 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4440 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443 ac_cv_prog_cc_stdc=no
4444 ac_save_CC=$CC
4445 cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h. */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 #include <stdarg.h>
4452 #include <stdio.h>
4453 #include <sys/types.h>
4454 #include <sys/stat.h>
4455 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4456 struct buf { int x; };
4457 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4458 static char *e (p, i)
4459 char **p;
4460 int i;
4461 {
4462 return p[i];
4463 }
4464 static char *f (char * (*g) (char **, int), char **p, ...)
4465 {
4466 char *s;
4467 va_list v;
4468 va_start (v,p);
4469 s = g (p, va_arg (v,int));
4470 va_end (v);
4471 return s;
4472 }
4473
4474 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4475 function prototypes and stuff, but not '\xHH' hex character constants.
4476 These don't provoke an error unfortunately, instead are silently treated
4477 as 'x'. The following induces an error, until -std1 is added to get
4478 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4479 array size at least. It's necessary to write '\x00'==0 to get something
4480 that's true only with -std1. */
4481 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4482
4483 int test (int i, double x);
4484 struct s1 {int (*f) (int a);};
4485 struct s2 {int (*f) (double a);};
4486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4487 int argc;
4488 char **argv;
4489 int
4490 main ()
4491 {
4492 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4493 ;
4494 return 0;
4495 }
4496 _ACEOF
4497 # Don't try gcc -ansi; that turns off useful extensions and
4498 # breaks some systems' header files.
4499 # AIX -qlanglvl=ansi
4500 # Ultrix and OSF/1 -std1
4501 # HP-UX 10.20 and later -Ae
4502 # HP-UX older versions -Aa -D_HPUX_SOURCE
4503 # SVR4 -Xc -D__EXTENSIONS__
4504 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4505 do
4506 CC="$ac_save_CC $ac_arg"
4507 rm -f conftest.$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>conftest.er1
4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 (eval $ac_try) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; } &&
4522 { ac_try='test -s conftest.$ac_objext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 (eval $ac_try) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 ac_cv_prog_cc_stdc=$ac_arg
4529 break
4530 else
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4533
4534 fi
4535 rm -f conftest.err conftest.$ac_objext
4536 done
4537 rm -f conftest.$ac_ext conftest.$ac_objext
4538 CC=$ac_save_CC
4539
4540 fi
4541
4542 case "x$ac_cv_prog_cc_stdc" in
4543 x|xno)
4544 echo "$as_me:$LINENO: result: none needed" >&5
4545 echo "${ECHO_T}none needed" >&6 ;;
4546 *)
4547 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4548 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4549 CC="$CC $ac_cv_prog_cc_stdc" ;;
4550 esac
4551
4552 # Some people use a C++ compiler to compile C. Since we use `exit',
4553 # in C++ we need to declare it. In case someone uses the same compiler
4554 # for both compiling C and C++ we need to have the C++ compiler decide
4555 # the declaration of exit, since it's the most demanding environment.
4556 cat >conftest.$ac_ext <<_ACEOF
4557 #ifndef __cplusplus
4558 choke me
4559 #endif
4560 _ACEOF
4561 rm -f conftest.$ac_objext
4562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4563 (eval $ac_compile) 2>conftest.er1
4564 ac_status=$?
4565 grep -v '^ *+' conftest.er1 >conftest.err
4566 rm -f conftest.er1
4567 cat conftest.err >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } &&
4570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 (eval $ac_try) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; } &&
4576 { ac_try='test -s conftest.$ac_objext'
4577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 (eval $ac_try) 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; }; then
4582 for ac_declaration in \
4583 '' \
4584 'extern "C" void std::exit (int) throw (); using std::exit;' \
4585 'extern "C" void std::exit (int); using std::exit;' \
4586 'extern "C" void exit (int) throw ();' \
4587 'extern "C" void exit (int);' \
4588 'void exit (int);'
4589 do
4590 cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h. */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 $ac_declaration
4597 #include <stdlib.h>
4598 int
4599 main ()
4600 {
4601 exit (42);
4602 ;
4603 return 0;
4604 }
4605 _ACEOF
4606 rm -f conftest.$ac_objext
4607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4608 (eval $ac_compile) 2>conftest.er1
4609 ac_status=$?
4610 grep -v '^ *+' conftest.er1 >conftest.err
4611 rm -f conftest.er1
4612 cat conftest.err >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } &&
4615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest.$ac_objext'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 (eval $ac_try) 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 :
4628 else
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 continue
4633 fi
4634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4635 cat >conftest.$ac_ext <<_ACEOF
4636 /* confdefs.h. */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4641 $ac_declaration
4642 int
4643 main ()
4644 {
4645 exit (42);
4646 ;
4647 return 0;
4648 }
4649 _ACEOF
4650 rm -f conftest.$ac_objext
4651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4652 (eval $ac_compile) 2>conftest.er1
4653 ac_status=$?
4654 grep -v '^ *+' conftest.er1 >conftest.err
4655 rm -f conftest.er1
4656 cat conftest.err >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } &&
4659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661 (eval $ac_try) 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; } &&
4665 { ac_try='test -s conftest.$ac_objext'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 (eval $ac_try) 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4671 break
4672 else
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4675
4676 fi
4677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4678 done
4679 rm -f conftest*
4680 if test -n "$ac_declaration"; then
4681 echo '#ifdef __cplusplus' >>confdefs.h
4682 echo $ac_declaration >>confdefs.h
4683 echo '#endif' >>confdefs.h
4684 fi
4685
4686 else
4687 echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4689
4690 fi
4691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4692 ac_ext=c
4693 ac_cpp='$CPP $CPPFLAGS'
4694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4697
4698
4699 ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl"
4700 if test -n "$ac_tool_prefix"; then
4701 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4702 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4703 echo "$as_me:$LINENO: checking for $ac_word" >&5
4704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4705 if test "${ac_cv_prog_RANLIB+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 else
4708 if test -n "$RANLIB"; then
4709 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4710 else
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714 IFS=$as_save_IFS
4715 test -z "$as_dir" && as_dir=.
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4718 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 break 2
4721 fi
4722 done
4723 done
4724
4725 fi
4726 fi
4727 RANLIB=$ac_cv_prog_RANLIB
4728 if test -n "$RANLIB"; then
4729 echo "$as_me:$LINENO: result: $RANLIB" >&5
4730 echo "${ECHO_T}$RANLIB" >&6
4731 else
4732 echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6
4734 fi
4735
4736 fi
4737 if test -z "$ac_cv_prog_RANLIB"; then
4738 ac_ct_RANLIB=$RANLIB
4739 # Extract the first word of "ranlib", so it can be a program name with args.
4740 set dummy ranlib; ac_word=$2
4741 echo "$as_me:$LINENO: checking for $ac_word" >&5
4742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4743 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746 if test -n "$ac_ct_RANLIB"; then
4747 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756 ac_cv_prog_ac_ct_RANLIB="ranlib"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760 done
4761 done
4762
4763 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4764 fi
4765 fi
4766 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4767 if test -n "$ac_ct_RANLIB"; then
4768 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4769 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4770 else
4771 echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6
4773 fi
4774
4775 RANLIB=$ac_ct_RANLIB
4776 else
4777 RANLIB="$ac_cv_prog_RANLIB"
4778 fi
4779
4780 ac_ext=c
4781 ac_cpp='$CPP $CPPFLAGS'
4782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4785 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4786 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4787 # On Suns, sometimes $CPP names a directory.
4788 if test -n "$CPP" && test -d "$CPP"; then
4789 CPP=
4790 fi
4791 if test -z "$CPP"; then
4792 if test "${ac_cv_prog_CPP+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 else
4795 # Double quotes because CPP needs to be expanded
4796 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4797 do
4798 ac_preproc_ok=false
4799 for ac_c_preproc_warn_flag in '' yes
4800 do
4801 # Use a header file that comes with gcc, so configuring glibc
4802 # with a fresh cross-compiler works.
4803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4804 # <limits.h> exists even on freestanding compilers.
4805 # On the NeXT, cc -E runs the code through the compiler's parser,
4806 # not just through cpp. "Syntax error" is here to catch this case.
4807 cat >conftest.$ac_ext <<_ACEOF
4808 /* confdefs.h. */
4809 _ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4813 #ifdef __STDC__
4814 # include <limits.h>
4815 #else
4816 # include <assert.h>
4817 #endif
4818 Syntax error
4819 _ACEOF
4820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4822 ac_status=$?
4823 grep -v '^ *+' conftest.er1 >conftest.err
4824 rm -f conftest.er1
4825 cat conftest.err >&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); } >/dev/null; then
4828 if test -s conftest.err; then
4829 ac_cpp_err=$ac_c_preproc_warn_flag
4830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4831 else
4832 ac_cpp_err=
4833 fi
4834 else
4835 ac_cpp_err=yes
4836 fi
4837 if test -z "$ac_cpp_err"; then
4838 :
4839 else
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4842
4843 # Broken: fails on valid input.
4844 continue
4845 fi
4846 rm -f conftest.err conftest.$ac_ext
4847
4848 # OK, works on sane cases. Now check whether non-existent headers
4849 # can be detected and how.
4850 cat >conftest.$ac_ext <<_ACEOF
4851 /* confdefs.h. */
4852 _ACEOF
4853 cat confdefs.h >>conftest.$ac_ext
4854 cat >>conftest.$ac_ext <<_ACEOF
4855 /* end confdefs.h. */
4856 #include <ac_nonexistent.h>
4857 _ACEOF
4858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4860 ac_status=$?
4861 grep -v '^ *+' conftest.er1 >conftest.err
4862 rm -f conftest.er1
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } >/dev/null; then
4866 if test -s conftest.err; then
4867 ac_cpp_err=$ac_c_preproc_warn_flag
4868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4869 else
4870 ac_cpp_err=
4871 fi
4872 else
4873 ac_cpp_err=yes
4874 fi
4875 if test -z "$ac_cpp_err"; then
4876 # Broken: success on invalid input.
4877 continue
4878 else
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4881
4882 # Passes both tests.
4883 ac_preproc_ok=:
4884 break
4885 fi
4886 rm -f conftest.err conftest.$ac_ext
4887
4888 done
4889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4890 rm -f conftest.err conftest.$ac_ext
4891 if $ac_preproc_ok; then
4892 break
4893 fi
4894
4895 done
4896 ac_cv_prog_CPP=$CPP
4897
4898 fi
4899 CPP=$ac_cv_prog_CPP
4900 else
4901 ac_cv_prog_CPP=$CPP
4902 fi
4903 echo "$as_me:$LINENO: result: $CPP" >&5
4904 echo "${ECHO_T}$CPP" >&6
4905 ac_preproc_ok=false
4906 for ac_c_preproc_warn_flag in '' yes
4907 do
4908 # Use a header file that comes with gcc, so configuring glibc
4909 # with a fresh cross-compiler works.
4910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4911 # <limits.h> exists even on freestanding compilers.
4912 # On the NeXT, cc -E runs the code through the compiler's parser,
4913 # not just through cpp. "Syntax error" is here to catch this case.
4914 cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h. */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4920 #ifdef __STDC__
4921 # include <limits.h>
4922 #else
4923 # include <assert.h>
4924 #endif
4925 Syntax error
4926 _ACEOF
4927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4929 ac_status=$?
4930 grep -v '^ *+' conftest.er1 >conftest.err
4931 rm -f conftest.er1
4932 cat conftest.err >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } >/dev/null; then
4935 if test -s conftest.err; then
4936 ac_cpp_err=$ac_c_preproc_warn_flag
4937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4938 else
4939 ac_cpp_err=
4940 fi
4941 else
4942 ac_cpp_err=yes
4943 fi
4944 if test -z "$ac_cpp_err"; then
4945 :
4946 else
4947 echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4949
4950 # Broken: fails on valid input.
4951 continue
4952 fi
4953 rm -f conftest.err conftest.$ac_ext
4954
4955 # OK, works on sane cases. Now check whether non-existent headers
4956 # can be detected and how.
4957 cat >conftest.$ac_ext <<_ACEOF
4958 /* confdefs.h. */
4959 _ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4963 #include <ac_nonexistent.h>
4964 _ACEOF
4965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4967 ac_status=$?
4968 grep -v '^ *+' conftest.er1 >conftest.err
4969 rm -f conftest.er1
4970 cat conftest.err >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } >/dev/null; then
4973 if test -s conftest.err; then
4974 ac_cpp_err=$ac_c_preproc_warn_flag
4975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4976 else
4977 ac_cpp_err=
4978 fi
4979 else
4980 ac_cpp_err=yes
4981 fi
4982 if test -z "$ac_cpp_err"; then
4983 # Broken: success on invalid input.
4984 continue
4985 else
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4988
4989 # Passes both tests.
4990 ac_preproc_ok=:
4991 break
4992 fi
4993 rm -f conftest.err conftest.$ac_ext
4994
4995 done
4996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4997 rm -f conftest.err conftest.$ac_ext
4998 if $ac_preproc_ok; then
4999 :
5000 else
5001 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5002 See \`config.log' for more details." >&5
5003 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5004 See \`config.log' for more details." >&2;}
5005 { (exit 1); exit 1; }; }
5006 fi
5007
5008 ac_ext=c
5009 ac_cpp='$CPP $CPPFLAGS'
5010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013
5014
5015 echo "$as_me:$LINENO: checking for egrep" >&5
5016 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5017 if test "${ac_cv_prog_egrep+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5020 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5021 then ac_cv_prog_egrep='grep -E'
5022 else ac_cv_prog_egrep='egrep'
5023 fi
5024 fi
5025 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5026 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5027 EGREP=$ac_cv_prog_egrep
5028
5029
5030 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5031 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5032 if test "${ac_cv_header_stdc+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035 cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h. */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 #include <stdlib.h>
5042 #include <stdarg.h>
5043 #include <string.h>
5044 #include <float.h>
5045
5046 int
5047 main ()
5048 {
5049
5050 ;
5051 return 0;
5052 }
5053 _ACEOF
5054 rm -f conftest.$ac_objext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056 (eval $ac_compile) 2>conftest.er1
5057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } &&
5063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 (eval $ac_try) 2>&5
5066 ac_status=$?
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; } &&
5069 { ac_try='test -s conftest.$ac_objext'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 (eval $ac_try) 2>&5
5072 ac_status=$?
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; }; then
5075 ac_cv_header_stdc=yes
5076 else
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5079
5080 ac_cv_header_stdc=no
5081 fi
5082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5083
5084 if test $ac_cv_header_stdc = yes; then
5085 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5086 cat >conftest.$ac_ext <<_ACEOF
5087 /* confdefs.h. */
5088 _ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 #include <string.h>
5093
5094 _ACEOF
5095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5096 $EGREP "memchr" >/dev/null 2>&1; then
5097 :
5098 else
5099 ac_cv_header_stdc=no
5100 fi
5101 rm -f conftest*
5102
5103 fi
5104
5105 if test $ac_cv_header_stdc = yes; then
5106 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5107 cat >conftest.$ac_ext <<_ACEOF
5108 /* confdefs.h. */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5113 #include <stdlib.h>
5114
5115 _ACEOF
5116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5117 $EGREP "free" >/dev/null 2>&1; then
5118 :
5119 else
5120 ac_cv_header_stdc=no
5121 fi
5122 rm -f conftest*
5123
5124 fi
5125
5126 if test $ac_cv_header_stdc = yes; then
5127 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5128 if test "$cross_compiling" = yes; then
5129 :
5130 else
5131 cat >conftest.$ac_ext <<_ACEOF
5132 /* confdefs.h. */
5133 _ACEOF
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>conftest.$ac_ext <<_ACEOF
5136 /* end confdefs.h. */
5137 #include <ctype.h>
5138 #if ((' ' & 0x0FF) == 0x020)
5139 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5140 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5141 #else
5142 # define ISLOWER(c) \
5143 (('a' <= (c) && (c) <= 'i') \
5144 || ('j' <= (c) && (c) <= 'r') \
5145 || ('s' <= (c) && (c) <= 'z'))
5146 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5147 #endif
5148
5149 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5150 int
5151 main ()
5152 {
5153 int i;
5154 for (i = 0; i < 256; i++)
5155 if (XOR (islower (i), ISLOWER (i))
5156 || toupper (i) != TOUPPER (i))
5157 exit(2);
5158 exit (0);
5159 }
5160 _ACEOF
5161 rm -f conftest$ac_exeext
5162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5163 (eval $ac_link) 2>&5
5164 ac_status=$?
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168 (eval $ac_try) 2>&5
5169 ac_status=$?
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; }; then
5172 :
5173 else
5174 echo "$as_me: program exited with status $ac_status" >&5
5175 echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5177
5178 ( exit $ac_status )
5179 ac_cv_header_stdc=no
5180 fi
5181 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5182 fi
5183 fi
5184 fi
5185 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5186 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5187 if test $ac_cv_header_stdc = yes; then
5188
5189 cat >>confdefs.h <<\_ACEOF
5190 #define STDC_HEADERS 1
5191 _ACEOF
5192
5193 fi
5194
5195 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5196 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5197 if test "${ac_cv_c_const+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 cat >conftest.$ac_ext <<_ACEOF
5201 /* confdefs.h. */
5202 _ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5206
5207 int
5208 main ()
5209 {
5210 /* FIXME: Include the comments suggested by Paul. */
5211 #ifndef __cplusplus
5212 /* Ultrix mips cc rejects this. */
5213 typedef int charset[2];
5214 const charset x;
5215 /* SunOS 4.1.1 cc rejects this. */
5216 char const *const *ccp;
5217 char **p;
5218 /* NEC SVR4.0.2 mips cc rejects this. */
5219 struct point {int x, y;};
5220 static struct point const zero = {0,0};
5221 /* AIX XL C 1.02.0.0 rejects this.
5222 It does not let you subtract one const X* pointer from another in
5223 an arm of an if-expression whose if-part is not a constant
5224 expression */
5225 const char *g = "string";
5226 ccp = &g + (g ? g-g : 0);
5227 /* HPUX 7.0 cc rejects these. */
5228 ++ccp;
5229 p = (char**) ccp;
5230 ccp = (char const *const *) p;
5231 { /* SCO 3.2v4 cc rejects this. */
5232 char *t;
5233 char const *s = 0 ? (char *) 0 : (char const *) 0;
5234
5235 *t++ = 0;
5236 }
5237 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5238 int x[] = {25, 17};
5239 const int *foo = &x[0];
5240 ++foo;
5241 }
5242 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5243 typedef const int *iptr;
5244 iptr p = 0;
5245 ++p;
5246 }
5247 { /* AIX XL C 1.02.0.0 rejects this saying
5248 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5249 struct s { int j; const int *ap[3]; };
5250 struct s *b; b->j = 5;
5251 }
5252 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5253 const int foo = 10;
5254 }
5255 #endif
5256
5257 ;
5258 return 0;
5259 }
5260 _ACEOF
5261 rm -f conftest.$ac_objext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5263 (eval $ac_compile) 2>conftest.er1
5264 ac_status=$?
5265 grep -v '^ *+' conftest.er1 >conftest.err
5266 rm -f conftest.er1
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
5270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 (eval $ac_try) 2>&5
5273 ac_status=$?
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; } &&
5276 { ac_try='test -s conftest.$ac_objext'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278 (eval $ac_try) 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
5282 ac_cv_c_const=yes
5283 else
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5286
5287 ac_cv_c_const=no
5288 fi
5289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5290 fi
5291 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5292 echo "${ECHO_T}$ac_cv_c_const" >&6
5293 if test $ac_cv_c_const = no; then
5294
5295 cat >>confdefs.h <<\_ACEOF
5296 #define const
5297 _ACEOF
5298
5299 fi
5300
5301 echo "$as_me:$LINENO: checking for inline" >&5
5302 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5303 if test "${ac_cv_c_inline+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306 ac_cv_c_inline=no
5307 for ac_kw in inline __inline__ __inline; do
5308 cat >conftest.$ac_ext <<_ACEOF
5309 /* confdefs.h. */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 #ifndef __cplusplus
5315 typedef int foo_t;
5316 static $ac_kw foo_t static_foo () {return 0; }
5317 $ac_kw foo_t foo () {return 0; }
5318 #endif
5319
5320 _ACEOF
5321 rm -f conftest.$ac_objext
5322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5323 (eval $ac_compile) 2>conftest.er1
5324 ac_status=$?
5325 grep -v '^ *+' conftest.er1 >conftest.err
5326 rm -f conftest.er1
5327 cat conftest.err >&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } &&
5330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332 (eval $ac_try) 2>&5
5333 ac_status=$?
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); }; } &&
5336 { ac_try='test -s conftest.$ac_objext'
5337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338 (eval $ac_try) 2>&5
5339 ac_status=$?
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }; }; then
5342 ac_cv_c_inline=$ac_kw; break
5343 else
5344 echo "$as_me: failed program was:" >&5
5345 sed 's/^/| /' conftest.$ac_ext >&5
5346
5347 fi
5348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5349 done
5350
5351 fi
5352 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5353 echo "${ECHO_T}$ac_cv_c_inline" >&6
5354
5355
5356 case $ac_cv_c_inline in
5357 inline | yes) ;;
5358 *)
5359 case $ac_cv_c_inline in
5360 no) ac_val=;;
5361 *) ac_val=$ac_cv_c_inline;;
5362 esac
5363 cat >>confdefs.h <<_ACEOF
5364 #ifndef __cplusplus
5365 #define inline $ac_val
5366 #endif
5367 _ACEOF
5368 ;;
5369 esac
5370
5371 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5382 inttypes.h stdint.h unistd.h
5383 do
5384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5385 echo "$as_me:$LINENO: checking for $ac_header" >&5
5386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390 cat >conftest.$ac_ext <<_ACEOF
5391 /* confdefs.h. */
5392 _ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h. */
5396 $ac_includes_default
5397
5398 #include <$ac_header>
5399 _ACEOF
5400 rm -f conftest.$ac_objext
5401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5402 (eval $ac_compile) 2>conftest.er1
5403 ac_status=$?
5404 grep -v '^ *+' conftest.er1 >conftest.err
5405 rm -f conftest.er1
5406 cat conftest.err >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } &&
5409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 (eval $ac_try) 2>&5
5412 ac_status=$?
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; } &&
5415 { ac_try='test -s conftest.$ac_objext'
5416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417 (eval $ac_try) 2>&5
5418 ac_status=$?
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }; }; then
5421 eval "$as_ac_Header=yes"
5422 else
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5425
5426 eval "$as_ac_Header=no"
5427 fi
5428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5429 fi
5430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5433 cat >>confdefs.h <<_ACEOF
5434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5435 _ACEOF
5436
5437 fi
5438
5439 done
5440
5441
5442 echo "$as_me:$LINENO: checking for off_t" >&5
5443 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5444 if test "${ac_cv_type_off_t+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447 cat >conftest.$ac_ext <<_ACEOF
5448 /* confdefs.h. */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5453 $ac_includes_default
5454 int
5455 main ()
5456 {
5457 if ((off_t *) 0)
5458 return 0;
5459 if (sizeof (off_t))
5460 return 0;
5461 ;
5462 return 0;
5463 }
5464 _ACEOF
5465 rm -f conftest.$ac_objext
5466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5467 (eval $ac_compile) 2>conftest.er1
5468 ac_status=$?
5469 grep -v '^ *+' conftest.er1 >conftest.err
5470 rm -f conftest.er1
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } &&
5474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 (eval $ac_try) 2>&5
5477 ac_status=$?
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }; } &&
5480 { ac_try='test -s conftest.$ac_objext'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 (eval $ac_try) 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; }; then
5486 ac_cv_type_off_t=yes
5487 else
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5490
5491 ac_cv_type_off_t=no
5492 fi
5493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5494 fi
5495 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5496 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5497 if test $ac_cv_type_off_t = yes; then
5498 :
5499 else
5500
5501 cat >>confdefs.h <<_ACEOF
5502 #define off_t long
5503 _ACEOF
5504
5505 fi
5506
5507 echo "$as_me:$LINENO: checking for size_t" >&5
5508 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5509 if test "${ac_cv_type_size_t+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512 cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h. */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 $ac_includes_default
5519 int
5520 main ()
5521 {
5522 if ((size_t *) 0)
5523 return 0;
5524 if (sizeof (size_t))
5525 return 0;
5526 ;
5527 return 0;
5528 }
5529 _ACEOF
5530 rm -f conftest.$ac_objext
5531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5532 (eval $ac_compile) 2>conftest.er1
5533 ac_status=$?
5534 grep -v '^ *+' conftest.er1 >conftest.err
5535 rm -f conftest.er1
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } &&
5539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 (eval $ac_try) 2>&5
5542 ac_status=$?
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; } &&
5545 { ac_try='test -s conftest.$ac_objext'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 (eval $ac_try) 2>&5
5548 ac_status=$?
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; }; then
5551 ac_cv_type_size_t=yes
5552 else
5553 echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5555
5556 ac_cv_type_size_t=no
5557 fi
5558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5559 fi
5560 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5561 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5562 if test $ac_cv_type_size_t = yes; then
5563 :
5564 else
5565
5566 cat >>confdefs.h <<_ACEOF
5567 #define size_t unsigned
5568 _ACEOF
5569
5570 fi
5571
5572 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5573 # for constant arguments. Useless!
5574 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5575 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5576 if test "${ac_cv_working_alloca_h+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579 cat >conftest.$ac_ext <<_ACEOF
5580 /* confdefs.h. */
5581 _ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5585 #include <alloca.h>
5586 int
5587 main ()
5588 {
5589 char *p = (char *) alloca (2 * sizeof (int));
5590 ;
5591 return 0;
5592 }
5593 _ACEOF
5594 rm -f conftest.$ac_objext conftest$ac_exeext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5596 (eval $ac_link) 2>conftest.er1
5597 ac_status=$?
5598 grep -v '^ *+' conftest.er1 >conftest.err
5599 rm -f conftest.er1
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } &&
5603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 (eval $ac_try) 2>&5
5606 ac_status=$?
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; } &&
5609 { ac_try='test -s conftest$ac_exeext'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 (eval $ac_try) 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 ac_cv_working_alloca_h=yes
5616 else
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5619
5620 ac_cv_working_alloca_h=no
5621 fi
5622 rm -f conftest.err conftest.$ac_objext \
5623 conftest$ac_exeext conftest.$ac_ext
5624 fi
5625 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5626 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5627 if test $ac_cv_working_alloca_h = yes; then
5628
5629 cat >>confdefs.h <<\_ACEOF
5630 #define HAVE_ALLOCA_H 1
5631 _ACEOF
5632
5633 fi
5634
5635 echo "$as_me:$LINENO: checking for alloca" >&5
5636 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5637 if test "${ac_cv_func_alloca_works+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640 cat >conftest.$ac_ext <<_ACEOF
5641 /* confdefs.h. */
5642 _ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h. */
5646 #ifdef __GNUC__
5647 # define alloca __builtin_alloca
5648 #else
5649 # ifdef _MSC_VER
5650 # include <malloc.h>
5651 # define alloca _alloca
5652 # else
5653 # if HAVE_ALLOCA_H
5654 # include <alloca.h>
5655 # else
5656 # ifdef _AIX
5657 #pragma alloca
5658 # else
5659 # ifndef alloca /* predefined by HP cc +Olibcalls */
5660 char *alloca ();
5661 # endif
5662 # endif
5663 # endif
5664 # endif
5665 #endif
5666
5667 int
5668 main ()
5669 {
5670 char *p = (char *) alloca (1);
5671 ;
5672 return 0;
5673 }
5674 _ACEOF
5675 rm -f conftest.$ac_objext conftest$ac_exeext
5676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5677 (eval $ac_link) 2>conftest.er1
5678 ac_status=$?
5679 grep -v '^ *+' conftest.er1 >conftest.err
5680 rm -f conftest.er1
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } &&
5684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 (eval $ac_try) 2>&5
5687 ac_status=$?
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; } &&
5690 { ac_try='test -s conftest$ac_exeext'
5691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 (eval $ac_try) 2>&5
5693 ac_status=$?
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; }; then
5696 ac_cv_func_alloca_works=yes
5697 else
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5700
5701 ac_cv_func_alloca_works=no
5702 fi
5703 rm -f conftest.err conftest.$ac_objext \
5704 conftest$ac_exeext conftest.$ac_ext
5705 fi
5706 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5707 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5708
5709 if test $ac_cv_func_alloca_works = yes; then
5710
5711 cat >>confdefs.h <<\_ACEOF
5712 #define HAVE_ALLOCA 1
5713 _ACEOF
5714
5715 else
5716 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5717 # that cause trouble. Some versions do not even contain alloca or
5718 # contain a buggy version. If you still want to use their alloca,
5719 # use ar to extract alloca.o from them instead of compiling alloca.c.
5720
5721 ALLOCA=alloca.$ac_objext
5722
5723 cat >>confdefs.h <<\_ACEOF
5724 #define C_ALLOCA 1
5725 _ACEOF
5726
5727
5728 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5729 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5730 if test "${ac_cv_os_cray+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733 cat >conftest.$ac_ext <<_ACEOF
5734 /* confdefs.h. */
5735 _ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5739 #if defined(CRAY) && ! defined(CRAY2)
5740 webecray
5741 #else
5742 wenotbecray
5743 #endif
5744
5745 _ACEOF
5746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5747 $EGREP "webecray" >/dev/null 2>&1; then
5748 ac_cv_os_cray=yes
5749 else
5750 ac_cv_os_cray=no
5751 fi
5752 rm -f conftest*
5753
5754 fi
5755 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5756 echo "${ECHO_T}$ac_cv_os_cray" >&6
5757 if test $ac_cv_os_cray = yes; then
5758 for ac_func in _getb67 GETB67 getb67; do
5759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5760 echo "$as_me:$LINENO: checking for $ac_func" >&5
5761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5762 if eval "test \"\${$as_ac_var+set}\" = set"; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765 cat >conftest.$ac_ext <<_ACEOF
5766 /* confdefs.h. */
5767 _ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5773 #define $ac_func innocuous_$ac_func
5774
5775 /* System header to define __stub macros and hopefully few prototypes,
5776 which can conflict with char $ac_func (); below.
5777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5778 <limits.h> exists even on freestanding compilers. */
5779
5780 #ifdef __STDC__
5781 # include <limits.h>
5782 #else
5783 # include <assert.h>
5784 #endif
5785
5786 #undef $ac_func
5787
5788 /* Override any gcc2 internal prototype to avoid an error. */
5789 #ifdef __cplusplus
5790 extern "C"
5791 {
5792 #endif
5793 /* We use char because int might match the return type of a gcc2
5794 builtin and then its argument prototype would still apply. */
5795 char $ac_func ();
5796 /* The GNU C library defines this for functions which it implements
5797 to always fail with ENOSYS. Some functions are actually named
5798 something starting with __ and the normal name is an alias. */
5799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5800 choke me
5801 #else
5802 char (*f) () = $ac_func;
5803 #endif
5804 #ifdef __cplusplus
5805 }
5806 #endif
5807
5808 int
5809 main ()
5810 {
5811 return f != $ac_func;
5812 ;
5813 return 0;
5814 }
5815 _ACEOF
5816 rm -f conftest.$ac_objext conftest$ac_exeext
5817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5818 (eval $ac_link) 2>conftest.er1
5819 ac_status=$?
5820 grep -v '^ *+' conftest.er1 >conftest.err
5821 rm -f conftest.er1
5822 cat conftest.err >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } &&
5825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 (eval $ac_try) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try='test -s conftest$ac_exeext'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 (eval $ac_try) 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; }; then
5837 eval "$as_ac_var=yes"
5838 else
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 eval "$as_ac_var=no"
5843 fi
5844 rm -f conftest.err conftest.$ac_objext \
5845 conftest$ac_exeext conftest.$ac_ext
5846 fi
5847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5849 if test `eval echo '${'$as_ac_var'}'` = yes; then
5850
5851 cat >>confdefs.h <<_ACEOF
5852 #define CRAY_STACKSEG_END $ac_func
5853 _ACEOF
5854
5855 break
5856 fi
5857
5858 done
5859 fi
5860
5861 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5862 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5863 if test "${ac_cv_c_stack_direction+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866 if test "$cross_compiling" = yes; then
5867 ac_cv_c_stack_direction=0
5868 else
5869 cat >conftest.$ac_ext <<_ACEOF
5870 /* confdefs.h. */
5871 _ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h. */
5875 int
5876 find_stack_direction ()
5877 {
5878 static char *addr = 0;
5879 auto char dummy;
5880 if (addr == 0)
5881 {
5882 addr = &dummy;
5883 return find_stack_direction ();
5884 }
5885 else
5886 return (&dummy > addr) ? 1 : -1;
5887 }
5888
5889 int
5890 main ()
5891 {
5892 exit (find_stack_direction () < 0);
5893 }
5894 _ACEOF
5895 rm -f conftest$ac_exeext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5897 (eval $ac_link) 2>&5
5898 ac_status=$?
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 (eval $ac_try) 2>&5
5903 ac_status=$?
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; }; then
5906 ac_cv_c_stack_direction=1
5907 else
5908 echo "$as_me: program exited with status $ac_status" >&5
5909 echo "$as_me: failed program was:" >&5
5910 sed 's/^/| /' conftest.$ac_ext >&5
5911
5912 ( exit $ac_status )
5913 ac_cv_c_stack_direction=-1
5914 fi
5915 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5916 fi
5917 fi
5918 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5919 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5920
5921 cat >>confdefs.h <<_ACEOF
5922 #define STACK_DIRECTION $ac_cv_c_stack_direction
5923 _ACEOF
5924
5925
5926 fi
5927
5928
5929
5930 for ac_header in stdlib.h unistd.h
5931 do
5932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5934 echo "$as_me:$LINENO: checking for $ac_header" >&5
5935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 fi
5939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5941 else
5942 # Is the header compilable?
5943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5945 cat >conftest.$ac_ext <<_ACEOF
5946 /* confdefs.h. */
5947 _ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 $ac_includes_default
5952 #include <$ac_header>
5953 _ACEOF
5954 rm -f conftest.$ac_objext
5955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5956 (eval $ac_compile) 2>conftest.er1
5957 ac_status=$?
5958 grep -v '^ *+' conftest.er1 >conftest.err
5959 rm -f conftest.er1
5960 cat conftest.err >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } &&
5963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 (eval $ac_try) 2>&5
5966 ac_status=$?
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; } &&
5969 { ac_try='test -s conftest.$ac_objext'
5970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971 (eval $ac_try) 2>&5
5972 ac_status=$?
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); }; }; then
5975 ac_header_compiler=yes
5976 else
5977 echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.$ac_ext >&5
5979
5980 ac_header_compiler=no
5981 fi
5982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5984 echo "${ECHO_T}$ac_header_compiler" >&6
5985
5986 # Is the header present?
5987 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5989 cat >conftest.$ac_ext <<_ACEOF
5990 /* confdefs.h. */
5991 _ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5995 #include <$ac_header>
5996 _ACEOF
5997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5999 ac_status=$?
6000 grep -v '^ *+' conftest.er1 >conftest.err
6001 rm -f conftest.er1
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } >/dev/null; then
6005 if test -s conftest.err; then
6006 ac_cpp_err=$ac_c_preproc_warn_flag
6007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6008 else
6009 ac_cpp_err=
6010 fi
6011 else
6012 ac_cpp_err=yes
6013 fi
6014 if test -z "$ac_cpp_err"; then
6015 ac_header_preproc=yes
6016 else
6017 echo "$as_me: failed program was:" >&5
6018 sed 's/^/| /' conftest.$ac_ext >&5
6019
6020 ac_header_preproc=no
6021 fi
6022 rm -f conftest.err conftest.$ac_ext
6023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6024 echo "${ECHO_T}$ac_header_preproc" >&6
6025
6026 # So? What about this header?
6027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6028 yes:no: )
6029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6033 ac_header_preproc=yes
6034 ;;
6035 no:yes:* )
6036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6048 (
6049 cat <<\_ASBOX
6050 ## ------------------------------------------ ##
6051 ## Report this to the AC_PACKAGE_NAME lists. ##
6052 ## ------------------------------------------ ##
6053 _ASBOX
6054 ) |
6055 sed "s/^/$as_me: WARNING: /" >&2
6056 ;;
6057 esac
6058 echo "$as_me:$LINENO: checking for $ac_header" >&5
6059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063 eval "$as_ac_Header=\$ac_header_preproc"
6064 fi
6065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6067
6068 fi
6069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6070 cat >>confdefs.h <<_ACEOF
6071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6072 _ACEOF
6073
6074 fi
6075
6076 done
6077
6078
6079 for ac_func in getpagesize
6080 do
6081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6082 echo "$as_me:$LINENO: checking for $ac_func" >&5
6083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6084 if eval "test \"\${$as_ac_var+set}\" = set"; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 else
6087 cat >conftest.$ac_ext <<_ACEOF
6088 /* confdefs.h. */
6089 _ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h. */
6093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6095 #define $ac_func innocuous_$ac_func
6096
6097 /* System header to define __stub macros and hopefully few prototypes,
6098 which can conflict with char $ac_func (); below.
6099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6100 <limits.h> exists even on freestanding compilers. */
6101
6102 #ifdef __STDC__
6103 # include <limits.h>
6104 #else
6105 # include <assert.h>
6106 #endif
6107
6108 #undef $ac_func
6109
6110 /* Override any gcc2 internal prototype to avoid an error. */
6111 #ifdef __cplusplus
6112 extern "C"
6113 {
6114 #endif
6115 /* We use char because int might match the return type of a gcc2
6116 builtin and then its argument prototype would still apply. */
6117 char $ac_func ();
6118 /* The GNU C library defines this for functions which it implements
6119 to always fail with ENOSYS. Some functions are actually named
6120 something starting with __ and the normal name is an alias. */
6121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6122 choke me
6123 #else
6124 char (*f) () = $ac_func;
6125 #endif
6126 #ifdef __cplusplus
6127 }
6128 #endif
6129
6130 int
6131 main ()
6132 {
6133 return f != $ac_func;
6134 ;
6135 return 0;
6136 }
6137 _ACEOF
6138 rm -f conftest.$ac_objext conftest$ac_exeext
6139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6140 (eval $ac_link) 2>conftest.er1
6141 ac_status=$?
6142 grep -v '^ *+' conftest.er1 >conftest.err
6143 rm -f conftest.er1
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } &&
6147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; } &&
6153 { ac_try='test -s conftest$ac_exeext'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 (eval $ac_try) 2>&5
6156 ac_status=$?
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6159 eval "$as_ac_var=yes"
6160 else
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6163
6164 eval "$as_ac_var=no"
6165 fi
6166 rm -f conftest.err conftest.$ac_objext \
6167 conftest$ac_exeext conftest.$ac_ext
6168 fi
6169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6171 if test `eval echo '${'$as_ac_var'}'` = yes; then
6172 cat >>confdefs.h <<_ACEOF
6173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6174 _ACEOF
6175
6176 fi
6177 done
6178
6179 echo "$as_me:$LINENO: checking for working mmap" >&5
6180 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6181 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184 if test "$cross_compiling" = yes; then
6185 ac_cv_func_mmap_fixed_mapped=no
6186 else
6187 cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h. */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 $ac_includes_default
6194 /* malloc might have been renamed as rpl_malloc. */
6195 #undef malloc
6196
6197 /* Thanks to Mike Haertel and Jim Avera for this test.
6198 Here is a matrix of mmap possibilities:
6199 mmap private not fixed
6200 mmap private fixed at somewhere currently unmapped
6201 mmap private fixed at somewhere already mapped
6202 mmap shared not fixed
6203 mmap shared fixed at somewhere currently unmapped
6204 mmap shared fixed at somewhere already mapped
6205 For private mappings, we should verify that changes cannot be read()
6206 back from the file, nor mmap's back from the file at a different
6207 address. (There have been systems where private was not correctly
6208 implemented like the infamous i386 svr4.0, and systems where the
6209 VM page cache was not coherent with the file system buffer cache
6210 like early versions of FreeBSD and possibly contemporary NetBSD.)
6211 For shared mappings, we should conversely verify that changes get
6212 propagated back to all the places they're supposed to be.
6213
6214 Grep wants private fixed already mapped.
6215 The main things grep needs to know about mmap are:
6216 * does it exist and is it safe to write into the mmap'd area
6217 * how to use it (BSD variants) */
6218
6219 #include <fcntl.h>
6220 #include <sys/mman.h>
6221
6222 #if !STDC_HEADERS && !HAVE_STDLIB_H
6223 char *malloc ();
6224 #endif
6225
6226 /* This mess was copied from the GNU getpagesize.h. */
6227 #if !HAVE_GETPAGESIZE
6228 /* Assume that all systems that can run configure have sys/param.h. */
6229 # if !HAVE_SYS_PARAM_H
6230 # define HAVE_SYS_PARAM_H 1
6231 # endif
6232
6233 # ifdef _SC_PAGESIZE
6234 # define getpagesize() sysconf(_SC_PAGESIZE)
6235 # else /* no _SC_PAGESIZE */
6236 # if HAVE_SYS_PARAM_H
6237 # include <sys/param.h>
6238 # ifdef EXEC_PAGESIZE
6239 # define getpagesize() EXEC_PAGESIZE
6240 # else /* no EXEC_PAGESIZE */
6241 # ifdef NBPG
6242 # define getpagesize() NBPG * CLSIZE
6243 # ifndef CLSIZE
6244 # define CLSIZE 1
6245 # endif /* no CLSIZE */
6246 # else /* no NBPG */
6247 # ifdef NBPC
6248 # define getpagesize() NBPC
6249 # else /* no NBPC */
6250 # ifdef PAGESIZE
6251 # define getpagesize() PAGESIZE
6252 # endif /* PAGESIZE */
6253 # endif /* no NBPC */
6254 # endif /* no NBPG */
6255 # endif /* no EXEC_PAGESIZE */
6256 # else /* no HAVE_SYS_PARAM_H */
6257 # define getpagesize() 8192 /* punt totally */
6258 # endif /* no HAVE_SYS_PARAM_H */
6259 # endif /* no _SC_PAGESIZE */
6260
6261 #endif /* no HAVE_GETPAGESIZE */
6262
6263 int
6264 main ()
6265 {
6266 char *data, *data2, *data3;
6267 int i, pagesize;
6268 int fd;
6269
6270 pagesize = getpagesize ();
6271
6272 /* First, make a file with some known garbage in it. */
6273 data = (char *) malloc (pagesize);
6274 if (!data)
6275 exit (1);
6276 for (i = 0; i < pagesize; ++i)
6277 *(data + i) = rand ();
6278 umask (0);
6279 fd = creat ("conftest.mmap", 0600);
6280 if (fd < 0)
6281 exit (1);
6282 if (write (fd, data, pagesize) != pagesize)
6283 exit (1);
6284 close (fd);
6285
6286 /* Next, try to mmap the file at a fixed address which already has
6287 something else allocated at it. If we can, also make sure that
6288 we see the same garbage. */
6289 fd = open ("conftest.mmap", O_RDWR);
6290 if (fd < 0)
6291 exit (1);
6292 data2 = (char *) malloc (2 * pagesize);
6293 if (!data2)
6294 exit (1);
6295 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6296 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6297 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6298 exit (1);
6299 for (i = 0; i < pagesize; ++i)
6300 if (*(data + i) != *(data2 + i))
6301 exit (1);
6302
6303 /* Finally, make sure that changes to the mapped area do not
6304 percolate back to the file as seen by read(). (This is a bug on
6305 some variants of i386 svr4.0.) */
6306 for (i = 0; i < pagesize; ++i)
6307 *(data2 + i) = *(data2 + i) + 1;
6308 data3 = (char *) malloc (pagesize);
6309 if (!data3)
6310 exit (1);
6311 if (read (fd, data3, pagesize) != pagesize)
6312 exit (1);
6313 for (i = 0; i < pagesize; ++i)
6314 if (*(data + i) != *(data3 + i))
6315 exit (1);
6316 close (fd);
6317 exit (0);
6318 }
6319 _ACEOF
6320 rm -f conftest$ac_exeext
6321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6322 (eval $ac_link) 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327 (eval $ac_try) 2>&5
6328 ac_status=$?
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; }; then
6331 ac_cv_func_mmap_fixed_mapped=yes
6332 else
6333 echo "$as_me: program exited with status $ac_status" >&5
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6336
6337 ( exit $ac_status )
6338 ac_cv_func_mmap_fixed_mapped=no
6339 fi
6340 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6341 fi
6342 fi
6343 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6344 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6345 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6346
6347 cat >>confdefs.h <<\_ACEOF
6348 #define HAVE_MMAP 1
6349 _ACEOF
6350
6351 fi
6352 rm -f conftest.mmap
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6365 unistd.h values.h sys/param.h
6366 do
6367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6369 echo "$as_me:$LINENO: checking for $ac_header" >&5
6370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6373 fi
6374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6376 else
6377 # Is the header compilable?
6378 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6380 cat >conftest.$ac_ext <<_ACEOF
6381 /* confdefs.h. */
6382 _ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h. */
6386 $ac_includes_default
6387 #include <$ac_header>
6388 _ACEOF
6389 rm -f conftest.$ac_objext
6390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6391 (eval $ac_compile) 2>conftest.er1
6392 ac_status=$?
6393 grep -v '^ *+' conftest.er1 >conftest.err
6394 rm -f conftest.er1
6395 cat conftest.err >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
6398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 (eval $ac_try) 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; } &&
6404 { ac_try='test -s conftest.$ac_objext'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 (eval $ac_try) 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 ac_header_compiler=yes
6411 else
6412 echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6414
6415 ac_header_compiler=no
6416 fi
6417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6419 echo "${ECHO_T}$ac_header_compiler" >&6
6420
6421 # Is the header present?
6422 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6424 cat >conftest.$ac_ext <<_ACEOF
6425 /* confdefs.h. */
6426 _ACEOF
6427 cat confdefs.h >>conftest.$ac_ext
6428 cat >>conftest.$ac_ext <<_ACEOF
6429 /* end confdefs.h. */
6430 #include <$ac_header>
6431 _ACEOF
6432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6434 ac_status=$?
6435 grep -v '^ *+' conftest.er1 >conftest.err
6436 rm -f conftest.er1
6437 cat conftest.err >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } >/dev/null; then
6440 if test -s conftest.err; then
6441 ac_cpp_err=$ac_c_preproc_warn_flag
6442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6443 else
6444 ac_cpp_err=
6445 fi
6446 else
6447 ac_cpp_err=yes
6448 fi
6449 if test -z "$ac_cpp_err"; then
6450 ac_header_preproc=yes
6451 else
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6454
6455 ac_header_preproc=no
6456 fi
6457 rm -f conftest.err conftest.$ac_ext
6458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6459 echo "${ECHO_T}$ac_header_preproc" >&6
6460
6461 # So? What about this header?
6462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6463 yes:no: )
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6468 ac_header_preproc=yes
6469 ;;
6470 no:yes:* )
6471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6483 (
6484 cat <<\_ASBOX
6485 ## ------------------------------------------ ##
6486 ## Report this to the AC_PACKAGE_NAME lists. ##
6487 ## ------------------------------------------ ##
6488 _ASBOX
6489 ) |
6490 sed "s/^/$as_me: WARNING: /" >&2
6491 ;;
6492 esac
6493 echo "$as_me:$LINENO: checking for $ac_header" >&5
6494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 else
6498 eval "$as_ac_Header=\$ac_header_preproc"
6499 fi
6500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6502
6503 fi
6504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6505 cat >>confdefs.h <<_ACEOF
6506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6507 _ACEOF
6508
6509 fi
6510
6511 done
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6524 __argz_count __argz_stringify __argz_next
6525 do
6526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6527 echo "$as_me:$LINENO: checking for $ac_func" >&5
6528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6529 if eval "test \"\${$as_ac_var+set}\" = set"; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532 cat >conftest.$ac_ext <<_ACEOF
6533 /* confdefs.h. */
6534 _ACEOF
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h. */
6538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6540 #define $ac_func innocuous_$ac_func
6541
6542 /* System header to define __stub macros and hopefully few prototypes,
6543 which can conflict with char $ac_func (); below.
6544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6545 <limits.h> exists even on freestanding compilers. */
6546
6547 #ifdef __STDC__
6548 # include <limits.h>
6549 #else
6550 # include <assert.h>
6551 #endif
6552
6553 #undef $ac_func
6554
6555 /* Override any gcc2 internal prototype to avoid an error. */
6556 #ifdef __cplusplus
6557 extern "C"
6558 {
6559 #endif
6560 /* We use char because int might match the return type of a gcc2
6561 builtin and then its argument prototype would still apply. */
6562 char $ac_func ();
6563 /* The GNU C library defines this for functions which it implements
6564 to always fail with ENOSYS. Some functions are actually named
6565 something starting with __ and the normal name is an alias. */
6566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6567 choke me
6568 #else
6569 char (*f) () = $ac_func;
6570 #endif
6571 #ifdef __cplusplus
6572 }
6573 #endif
6574
6575 int
6576 main ()
6577 {
6578 return f != $ac_func;
6579 ;
6580 return 0;
6581 }
6582 _ACEOF
6583 rm -f conftest.$ac_objext conftest$ac_exeext
6584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6585 (eval $ac_link) 2>conftest.er1
6586 ac_status=$?
6587 grep -v '^ *+' conftest.er1 >conftest.err
6588 rm -f conftest.er1
6589 cat conftest.err >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } &&
6592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 (eval $ac_try) 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; } &&
6598 { ac_try='test -s conftest$ac_exeext'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 (eval $ac_try) 2>&5
6601 ac_status=$?
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6604 eval "$as_ac_var=yes"
6605 else
6606 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6608
6609 eval "$as_ac_var=no"
6610 fi
6611 rm -f conftest.err conftest.$ac_objext \
6612 conftest$ac_exeext conftest.$ac_ext
6613 fi
6614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6615 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6616 if test `eval echo '${'$as_ac_var'}'` = yes; then
6617 cat >>confdefs.h <<_ACEOF
6618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6619 _ACEOF
6620
6621 fi
6622 done
6623
6624
6625 if test "${ac_cv_func_stpcpy+set}" != "set"; then
6626
6627 for ac_func in stpcpy
6628 do
6629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6630 echo "$as_me:$LINENO: checking for $ac_func" >&5
6631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6632 if eval "test \"\${$as_ac_var+set}\" = set"; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 else
6635 cat >conftest.$ac_ext <<_ACEOF
6636 /* confdefs.h. */
6637 _ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6643 #define $ac_func innocuous_$ac_func
6644
6645 /* System header to define __stub macros and hopefully few prototypes,
6646 which can conflict with char $ac_func (); below.
6647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6648 <limits.h> exists even on freestanding compilers. */
6649
6650 #ifdef __STDC__
6651 # include <limits.h>
6652 #else
6653 # include <assert.h>
6654 #endif
6655
6656 #undef $ac_func
6657
6658 /* Override any gcc2 internal prototype to avoid an error. */
6659 #ifdef __cplusplus
6660 extern "C"
6661 {
6662 #endif
6663 /* We use char because int might match the return type of a gcc2
6664 builtin and then its argument prototype would still apply. */
6665 char $ac_func ();
6666 /* The GNU C library defines this for functions which it implements
6667 to always fail with ENOSYS. Some functions are actually named
6668 something starting with __ and the normal name is an alias. */
6669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6670 choke me
6671 #else
6672 char (*f) () = $ac_func;
6673 #endif
6674 #ifdef __cplusplus
6675 }
6676 #endif
6677
6678 int
6679 main ()
6680 {
6681 return f != $ac_func;
6682 ;
6683 return 0;
6684 }
6685 _ACEOF
6686 rm -f conftest.$ac_objext conftest$ac_exeext
6687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6688 (eval $ac_link) 2>conftest.er1
6689 ac_status=$?
6690 grep -v '^ *+' conftest.er1 >conftest.err
6691 rm -f conftest.er1
6692 cat conftest.err >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } &&
6695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 (eval $ac_try) 2>&5
6698 ac_status=$?
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; } &&
6701 { ac_try='test -s conftest$ac_exeext'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; }; then
6707 eval "$as_ac_var=yes"
6708 else
6709 echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.$ac_ext >&5
6711
6712 eval "$as_ac_var=no"
6713 fi
6714 rm -f conftest.err conftest.$ac_objext \
6715 conftest$ac_exeext conftest.$ac_ext
6716 fi
6717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6718 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6719 if test `eval echo '${'$as_ac_var'}'` = yes; then
6720 cat >>confdefs.h <<_ACEOF
6721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6722 _ACEOF
6723
6724 fi
6725 done
6726
6727 fi
6728 if test "${ac_cv_func_stpcpy}" = "yes"; then
6729
6730 cat >>confdefs.h <<\_ACEOF
6731 #define HAVE_STPCPY 1
6732 _ACEOF
6733
6734 fi
6735
6736 if test $ac_cv_header_locale_h = yes; then
6737 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6738 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6739 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742 cat >conftest.$ac_ext <<_ACEOF
6743 /* confdefs.h. */
6744 _ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6748 #include <locale.h>
6749 int
6750 main ()
6751 {
6752 return LC_MESSAGES
6753 ;
6754 return 0;
6755 }
6756 _ACEOF
6757 rm -f conftest.$ac_objext conftest$ac_exeext
6758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6759 (eval $ac_link) 2>conftest.er1
6760 ac_status=$?
6761 grep -v '^ *+' conftest.er1 >conftest.err
6762 rm -f conftest.er1
6763 cat conftest.err >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } &&
6766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 (eval $ac_try) 2>&5
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try='test -s conftest$ac_exeext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 (eval $ac_try) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 am_cv_val_LC_MESSAGES=yes
6779 else
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6782
6783 am_cv_val_LC_MESSAGES=no
6784 fi
6785 rm -f conftest.err conftest.$ac_objext \
6786 conftest$ac_exeext conftest.$ac_ext
6787 fi
6788 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6789 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6790 if test $am_cv_val_LC_MESSAGES = yes; then
6791
6792 cat >>confdefs.h <<\_ACEOF
6793 #define HAVE_LC_MESSAGES 1
6794 _ACEOF
6795
6796 fi
6797 fi
6798 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6799 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6800 # Check whether --enable-nls or --disable-nls was given.
6801 if test "${enable_nls+set}" = set; then
6802 enableval="$enable_nls"
6803 USE_NLS=$enableval
6804 else
6805 USE_NLS=yes
6806 fi;
6807 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6808 echo "${ECHO_T}$USE_NLS" >&6
6809
6810
6811 USE_INCLUDED_LIBINTL=no
6812
6813 if test "$USE_NLS" = "yes"; then
6814
6815 cat >>confdefs.h <<\_ACEOF
6816 #define ENABLE_NLS 1
6817 _ACEOF
6818
6819 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
6820 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6821
6822 # Check whether --with-included-gettext or --without-included-gettext was given.
6823 if test "${with_included_gettext+set}" = set; then
6824 withval="$with_included_gettext"
6825 nls_cv_force_use_gnu_gettext=$withval
6826 else
6827 nls_cv_force_use_gnu_gettext=no
6828 fi;
6829 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
6830 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
6831
6832 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6833 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6834 nls_cv_header_intl=
6835 nls_cv_header_libgt=
6836 CATOBJEXT=NONE
6837
6838 if test "${ac_cv_header_libintl_h+set}" = set; then
6839 echo "$as_me:$LINENO: checking for libintl.h" >&5
6840 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6841 if test "${ac_cv_header_libintl_h+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6843 fi
6844 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6845 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6846 else
6847 # Is the header compilable?
6848 echo "$as_me:$LINENO: checking libintl.h usability" >&5
6849 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
6850 cat >conftest.$ac_ext <<_ACEOF
6851 /* confdefs.h. */
6852 _ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h. */
6856 $ac_includes_default
6857 #include <libintl.h>
6858 _ACEOF
6859 rm -f conftest.$ac_objext
6860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6861 (eval $ac_compile) 2>conftest.er1
6862 ac_status=$?
6863 grep -v '^ *+' conftest.er1 >conftest.err
6864 rm -f conftest.er1
6865 cat conftest.err >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } &&
6868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 (eval $ac_try) 2>&5
6871 ac_status=$?
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; } &&
6874 { ac_try='test -s conftest.$ac_objext'
6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876 (eval $ac_try) 2>&5
6877 ac_status=$?
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; }; then
6880 ac_header_compiler=yes
6881 else
6882 echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6884
6885 ac_header_compiler=no
6886 fi
6887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6889 echo "${ECHO_T}$ac_header_compiler" >&6
6890
6891 # Is the header present?
6892 echo "$as_me:$LINENO: checking libintl.h presence" >&5
6893 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
6894 cat >conftest.$ac_ext <<_ACEOF
6895 /* confdefs.h. */
6896 _ACEOF
6897 cat confdefs.h >>conftest.$ac_ext
6898 cat >>conftest.$ac_ext <<_ACEOF
6899 /* end confdefs.h. */
6900 #include <libintl.h>
6901 _ACEOF
6902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6904 ac_status=$?
6905 grep -v '^ *+' conftest.er1 >conftest.err
6906 rm -f conftest.er1
6907 cat conftest.err >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } >/dev/null; then
6910 if test -s conftest.err; then
6911 ac_cpp_err=$ac_c_preproc_warn_flag
6912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6913 else
6914 ac_cpp_err=
6915 fi
6916 else
6917 ac_cpp_err=yes
6918 fi
6919 if test -z "$ac_cpp_err"; then
6920 ac_header_preproc=yes
6921 else
6922 echo "$as_me: failed program was:" >&5
6923 sed 's/^/| /' conftest.$ac_ext >&5
6924
6925 ac_header_preproc=no
6926 fi
6927 rm -f conftest.err conftest.$ac_ext
6928 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6929 echo "${ECHO_T}$ac_header_preproc" >&6
6930
6931 # So? What about this header?
6932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6933 yes:no: )
6934 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6935 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6936 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6937 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6938 ac_header_preproc=yes
6939 ;;
6940 no:yes:* )
6941 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6942 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6943 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
6944 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
6945 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
6946 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
6947 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
6948 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6949 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6950 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6951 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
6952 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
6953 (
6954 cat <<\_ASBOX
6955 ## ------------------------------------------ ##
6956 ## Report this to the AC_PACKAGE_NAME lists. ##
6957 ## ------------------------------------------ ##
6958 _ASBOX
6959 ) |
6960 sed "s/^/$as_me: WARNING: /" >&2
6961 ;;
6962 esac
6963 echo "$as_me:$LINENO: checking for libintl.h" >&5
6964 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6965 if test "${ac_cv_header_libintl_h+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 else
6968 ac_cv_header_libintl_h=$ac_header_preproc
6969 fi
6970 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6971 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6972
6973 fi
6974 if test $ac_cv_header_libintl_h = yes; then
6975 echo "$as_me:$LINENO: checking for gettext in libc" >&5
6976 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
6977 if test "${gt_cv_func_gettext_libc+set}" = set; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 else
6980 cat >conftest.$ac_ext <<_ACEOF
6981 /* confdefs.h. */
6982 _ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6986 #include <libintl.h>
6987 int
6988 main ()
6989 {
6990 return (int) gettext ("")
6991 ;
6992 return 0;
6993 }
6994 _ACEOF
6995 rm -f conftest.$ac_objext conftest$ac_exeext
6996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6997 (eval $ac_link) 2>conftest.er1
6998 ac_status=$?
6999 grep -v '^ *+' conftest.er1 >conftest.err
7000 rm -f conftest.er1
7001 cat conftest.err >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } &&
7004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006 (eval $ac_try) 2>&5
7007 ac_status=$?
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; } &&
7010 { ac_try='test -s conftest$ac_exeext'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7016 gt_cv_func_gettext_libc=yes
7017 else
7018 echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7020
7021 gt_cv_func_gettext_libc=no
7022 fi
7023 rm -f conftest.err conftest.$ac_objext \
7024 conftest$ac_exeext conftest.$ac_ext
7025 fi
7026 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7027 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7028
7029 if test "$gt_cv_func_gettext_libc" != "yes"; then
7030 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7031 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7032 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035 ac_check_lib_save_LIBS=$LIBS
7036 LIBS="-lintl $LIBS"
7037 cat >conftest.$ac_ext <<_ACEOF
7038 /* confdefs.h. */
7039 _ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7043
7044 /* Override any gcc2 internal prototype to avoid an error. */
7045 #ifdef __cplusplus
7046 extern "C"
7047 #endif
7048 /* We use char because int might match the return type of a gcc2
7049 builtin and then its argument prototype would still apply. */
7050 char bindtextdomain ();
7051 int
7052 main ()
7053 {
7054 bindtextdomain ();
7055 ;
7056 return 0;
7057 }
7058 _ACEOF
7059 rm -f conftest.$ac_objext conftest$ac_exeext
7060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7061 (eval $ac_link) 2>conftest.er1
7062 ac_status=$?
7063 grep -v '^ *+' conftest.er1 >conftest.err
7064 rm -f conftest.er1
7065 cat conftest.err >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); } &&
7068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070 (eval $ac_try) 2>&5
7071 ac_status=$?
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; } &&
7074 { ac_try='test -s conftest$ac_exeext'
7075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 (eval $ac_try) 2>&5
7077 ac_status=$?
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; }; then
7080 ac_cv_lib_intl_bindtextdomain=yes
7081 else
7082 echo "$as_me: failed program was:" >&5
7083 sed 's/^/| /' conftest.$ac_ext >&5
7084
7085 ac_cv_lib_intl_bindtextdomain=no
7086 fi
7087 rm -f conftest.err conftest.$ac_objext \
7088 conftest$ac_exeext conftest.$ac_ext
7089 LIBS=$ac_check_lib_save_LIBS
7090 fi
7091 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7092 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7093 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7094 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7095 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7096 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7097 echo $ECHO_N "(cached) $ECHO_C" >&6
7098 else
7099 cat >conftest.$ac_ext <<_ACEOF
7100 /* confdefs.h. */
7101 _ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h. */
7105
7106 int
7107 main ()
7108 {
7109 return (int) gettext ("")
7110 ;
7111 return 0;
7112 }
7113 _ACEOF
7114 rm -f conftest.$ac_objext conftest$ac_exeext
7115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7116 (eval $ac_link) 2>conftest.er1
7117 ac_status=$?
7118 grep -v '^ *+' conftest.er1 >conftest.err
7119 rm -f conftest.er1
7120 cat conftest.err >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } &&
7123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 (eval $ac_try) 2>&5
7126 ac_status=$?
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; } &&
7129 { ac_try='test -s conftest$ac_exeext'
7130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 (eval $ac_try) 2>&5
7132 ac_status=$?
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); }; }; then
7135 gt_cv_func_gettext_libintl=yes
7136 else
7137 echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.$ac_ext >&5
7139
7140 gt_cv_func_gettext_libintl=no
7141 fi
7142 rm -f conftest.err conftest.$ac_objext \
7143 conftest$ac_exeext conftest.$ac_ext
7144 fi
7145 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7146 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7147 fi
7148
7149 fi
7150
7151 if test "$gt_cv_func_gettext_libc" = "yes" \
7152 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7153
7154 cat >>confdefs.h <<\_ACEOF
7155 #define HAVE_GETTEXT 1
7156 _ACEOF
7157
7158 # Extract the first word of "msgfmt", so it can be a program name with args.
7159 set dummy msgfmt; ac_word=$2
7160 echo "$as_me:$LINENO: checking for $ac_word" >&5
7161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7162 if test "${ac_cv_path_MSGFMT+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165 case "$MSGFMT" in
7166 /*)
7167 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7168 ;;
7169 *)
7170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7171 for ac_dir in $PATH; do
7172 test -z "$ac_dir" && ac_dir=.
7173 if test -f $ac_dir/$ac_word; then
7174 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7175 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7176 break
7177 fi
7178 fi
7179 done
7180 IFS="$ac_save_ifs"
7181 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7182 ;;
7183 esac
7184 fi
7185 MSGFMT="$ac_cv_path_MSGFMT"
7186 if test -n "$MSGFMT"; then
7187 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7188 echo "${ECHO_T}$MSGFMT" >&6
7189 else
7190 echo "$as_me:$LINENO: result: no" >&5
7191 echo "${ECHO_T}no" >&6
7192 fi
7193 if test "$MSGFMT" != "no"; then
7194
7195 for ac_func in dcgettext
7196 do
7197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7198 echo "$as_me:$LINENO: checking for $ac_func" >&5
7199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7200 if eval "test \"\${$as_ac_var+set}\" = set"; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 else
7203 cat >conftest.$ac_ext <<_ACEOF
7204 /* confdefs.h. */
7205 _ACEOF
7206 cat confdefs.h >>conftest.$ac_ext
7207 cat >>conftest.$ac_ext <<_ACEOF
7208 /* end confdefs.h. */
7209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7211 #define $ac_func innocuous_$ac_func
7212
7213 /* System header to define __stub macros and hopefully few prototypes,
7214 which can conflict with char $ac_func (); below.
7215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7216 <limits.h> exists even on freestanding compilers. */
7217
7218 #ifdef __STDC__
7219 # include <limits.h>
7220 #else
7221 # include <assert.h>
7222 #endif
7223
7224 #undef $ac_func
7225
7226 /* Override any gcc2 internal prototype to avoid an error. */
7227 #ifdef __cplusplus
7228 extern "C"
7229 {
7230 #endif
7231 /* We use char because int might match the return type of a gcc2
7232 builtin and then its argument prototype would still apply. */
7233 char $ac_func ();
7234 /* The GNU C library defines this for functions which it implements
7235 to always fail with ENOSYS. Some functions are actually named
7236 something starting with __ and the normal name is an alias. */
7237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7238 choke me
7239 #else
7240 char (*f) () = $ac_func;
7241 #endif
7242 #ifdef __cplusplus
7243 }
7244 #endif
7245
7246 int
7247 main ()
7248 {
7249 return f != $ac_func;
7250 ;
7251 return 0;
7252 }
7253 _ACEOF
7254 rm -f conftest.$ac_objext conftest$ac_exeext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7256 (eval $ac_link) 2>conftest.er1
7257 ac_status=$?
7258 grep -v '^ *+' conftest.er1 >conftest.err
7259 rm -f conftest.er1
7260 cat conftest.err >&5
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); } &&
7263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 (eval $ac_try) 2>&5
7266 ac_status=$?
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); }; } &&
7269 { ac_try='test -s conftest$ac_exeext'
7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271 (eval $ac_try) 2>&5
7272 ac_status=$?
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; }; then
7275 eval "$as_ac_var=yes"
7276 else
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7279
7280 eval "$as_ac_var=no"
7281 fi
7282 rm -f conftest.err conftest.$ac_objext \
7283 conftest$ac_exeext conftest.$ac_ext
7284 fi
7285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7287 if test `eval echo '${'$as_ac_var'}'` = yes; then
7288 cat >>confdefs.h <<_ACEOF
7289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7290 _ACEOF
7291
7292 fi
7293 done
7294
7295 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7296 set dummy gmsgfmt; ac_word=$2
7297 echo "$as_me:$LINENO: checking for $ac_word" >&5
7298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7299 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302 case $GMSGFMT in
7303 [\\/]* | ?:[\\/]*)
7304 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7305 ;;
7306 *)
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 for as_dir in $PATH
7309 do
7310 IFS=$as_save_IFS
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7314 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 break 2
7317 fi
7318 done
7319 done
7320
7321 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7322 ;;
7323 esac
7324 fi
7325 GMSGFMT=$ac_cv_path_GMSGFMT
7326
7327 if test -n "$GMSGFMT"; then
7328 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7329 echo "${ECHO_T}$GMSGFMT" >&6
7330 else
7331 echo "$as_me:$LINENO: result: no" >&5
7332 echo "${ECHO_T}no" >&6
7333 fi
7334
7335 # Extract the first word of "xgettext", so it can be a program name with args.
7336 set dummy xgettext; ac_word=$2
7337 echo "$as_me:$LINENO: checking for $ac_word" >&5
7338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7339 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342 case "$XGETTEXT" in
7343 /*)
7344 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7345 ;;
7346 *)
7347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7348 for ac_dir in $PATH; do
7349 test -z "$ac_dir" && ac_dir=.
7350 if test -f $ac_dir/$ac_word; then
7351 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7352 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7353 break
7354 fi
7355 fi
7356 done
7357 IFS="$ac_save_ifs"
7358 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7359 ;;
7360 esac
7361 fi
7362 XGETTEXT="$ac_cv_path_XGETTEXT"
7363 if test -n "$XGETTEXT"; then
7364 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7365 echo "${ECHO_T}$XGETTEXT" >&6
7366 else
7367 echo "$as_me:$LINENO: result: no" >&5
7368 echo "${ECHO_T}no" >&6
7369 fi
7370
7371 cat >conftest.$ac_ext <<_ACEOF
7372 /* confdefs.h. */
7373 _ACEOF
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h. */
7377
7378 int
7379 main ()
7380 {
7381 extern int _nl_msg_cat_cntr;
7382 return _nl_msg_cat_cntr
7383 ;
7384 return 0;
7385 }
7386 _ACEOF
7387 rm -f conftest.$ac_objext conftest$ac_exeext
7388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7389 (eval $ac_link) 2>conftest.er1
7390 ac_status=$?
7391 grep -v '^ *+' conftest.er1 >conftest.err
7392 rm -f conftest.er1
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } &&
7396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7398 (eval $ac_try) 2>&5
7399 ac_status=$?
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); }; } &&
7402 { ac_try='test -s conftest$ac_exeext'
7403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7404 (eval $ac_try) 2>&5
7405 ac_status=$?
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); }; }; then
7408 CATOBJEXT=.gmo
7409 DATADIRNAME=share
7410 else
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7413
7414 CATOBJEXT=.mo
7415 DATADIRNAME=lib
7416 fi
7417 rm -f conftest.err conftest.$ac_objext \
7418 conftest$ac_exeext conftest.$ac_ext
7419 INSTOBJEXT=.mo
7420 fi
7421 fi
7422
7423 fi
7424
7425
7426
7427
7428 if test "$CATOBJEXT" = "NONE"; then
7429 nls_cv_use_gnu_gettext=yes
7430 fi
7431 fi
7432
7433 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7434 INTLOBJS="\$(GETTOBJS)"
7435 # Extract the first word of "msgfmt", so it can be a program name with args.
7436 set dummy msgfmt; ac_word=$2
7437 echo "$as_me:$LINENO: checking for $ac_word" >&5
7438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7439 if test "${ac_cv_path_MSGFMT+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 else
7442 case "$MSGFMT" in
7443 /*)
7444 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7445 ;;
7446 *)
7447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7448 for ac_dir in $PATH; do
7449 test -z "$ac_dir" && ac_dir=.
7450 if test -f $ac_dir/$ac_word; then
7451 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7452 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7453 break
7454 fi
7455 fi
7456 done
7457 IFS="$ac_save_ifs"
7458 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7459 ;;
7460 esac
7461 fi
7462 MSGFMT="$ac_cv_path_MSGFMT"
7463 if test -n "$MSGFMT"; then
7464 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7465 echo "${ECHO_T}$MSGFMT" >&6
7466 else
7467 echo "$as_me:$LINENO: result: no" >&5
7468 echo "${ECHO_T}no" >&6
7469 fi
7470
7471 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7472 set dummy gmsgfmt; ac_word=$2
7473 echo "$as_me:$LINENO: checking for $ac_word" >&5
7474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7475 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 else
7478 case $GMSGFMT in
7479 [\\/]* | ?:[\\/]*)
7480 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7481 ;;
7482 *)
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 for as_dir in $PATH
7485 do
7486 IFS=$as_save_IFS
7487 test -z "$as_dir" && as_dir=.
7488 for ac_exec_ext in '' $ac_executable_extensions; do
7489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7490 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7492 break 2
7493 fi
7494 done
7495 done
7496
7497 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7498 ;;
7499 esac
7500 fi
7501 GMSGFMT=$ac_cv_path_GMSGFMT
7502
7503 if test -n "$GMSGFMT"; then
7504 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7505 echo "${ECHO_T}$GMSGFMT" >&6
7506 else
7507 echo "$as_me:$LINENO: result: no" >&5
7508 echo "${ECHO_T}no" >&6
7509 fi
7510
7511 # Extract the first word of "xgettext", so it can be a program name with args.
7512 set dummy xgettext; ac_word=$2
7513 echo "$as_me:$LINENO: checking for $ac_word" >&5
7514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7515 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518 case "$XGETTEXT" in
7519 /*)
7520 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7521 ;;
7522 *)
7523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7524 for ac_dir in $PATH; do
7525 test -z "$ac_dir" && ac_dir=.
7526 if test -f $ac_dir/$ac_word; then
7527 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7528 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7529 break
7530 fi
7531 fi
7532 done
7533 IFS="$ac_save_ifs"
7534 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7535 ;;
7536 esac
7537 fi
7538 XGETTEXT="$ac_cv_path_XGETTEXT"
7539 if test -n "$XGETTEXT"; then
7540 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7541 echo "${ECHO_T}$XGETTEXT" >&6
7542 else
7543 echo "$as_me:$LINENO: result: no" >&5
7544 echo "${ECHO_T}no" >&6
7545 fi
7546
7547
7548 USE_INCLUDED_LIBINTL=yes
7549 CATOBJEXT=.gmo
7550 INSTOBJEXT=.mo
7551 DATADIRNAME=share
7552 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7553 INTLLIBS=$INTLDEPS
7554 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7555 nls_cv_header_intl=libintl.h
7556 nls_cv_header_libgt=libgettext.h
7557 fi
7558
7559 if test "$XGETTEXT" != ":"; then
7560 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7561 : ;
7562 else
7563 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7564 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
7565 XGETTEXT=":"
7566 fi
7567 fi
7568
7569 # We need to process the po/ directory.
7570 POSUB=po
7571 else
7572 DATADIRNAME=share
7573 nls_cv_header_intl=libintl.h
7574 nls_cv_header_libgt=libgettext.h
7575 fi
7576
7577 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7578 # because some of the sources are only built for this goal.
7579 if test "$PACKAGE" = gettext; then
7580 USE_NLS=yes
7581 USE_INCLUDED_LIBINTL=yes
7582 fi
7583
7584 for lang in $ALL_LINGUAS; do
7585 GMOFILES="$GMOFILES $lang.gmo"
7586 POFILES="$POFILES $lang.po"
7587 done
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602 if test "x$CATOBJEXT" != "x"; then
7603 if test "x$ALL_LINGUAS" = "x"; then
7604 LINGUAS=
7605 else
7606 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7607 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7608 NEW_LINGUAS=
7609 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7610 case "$ALL_LINGUAS" in
7611 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7612 esac
7613 done
7614 LINGUAS=$NEW_LINGUAS
7615 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7616 echo "${ECHO_T}$LINGUAS" >&6
7617 fi
7618
7619 if test -n "$LINGUAS"; then
7620 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7621 fi
7622 fi
7623
7624 if test $ac_cv_header_locale_h = yes; then
7625 INCLUDE_LOCALE_H="#include <locale.h>"
7626 else
7627 INCLUDE_LOCALE_H="\
7628 /* The system does not provide the header <locale.h>. Take care yourself. */"
7629 fi
7630
7631
7632 if test -f $srcdir/po2tbl.sed.in; then
7633 if test "$CATOBJEXT" = ".cat"; then
7634 if test "${ac_cv_header_linux_version_h+set}" = set; then
7635 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7636 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7637 if test "${ac_cv_header_linux_version_h+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 fi
7640 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7641 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7642 else
7643 # Is the header compilable?
7644 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7645 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7646 cat >conftest.$ac_ext <<_ACEOF
7647 /* confdefs.h. */
7648 _ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7652 $ac_includes_default
7653 #include <linux/version.h>
7654 _ACEOF
7655 rm -f conftest.$ac_objext
7656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7657 (eval $ac_compile) 2>conftest.er1
7658 ac_status=$?
7659 grep -v '^ *+' conftest.er1 >conftest.err
7660 rm -f conftest.er1
7661 cat conftest.err >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); } &&
7664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; } &&
7670 { ac_try='test -s conftest.$ac_objext'
7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672 (eval $ac_try) 2>&5
7673 ac_status=$?
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; }; then
7676 ac_header_compiler=yes
7677 else
7678 echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7680
7681 ac_header_compiler=no
7682 fi
7683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7685 echo "${ECHO_T}$ac_header_compiler" >&6
7686
7687 # Is the header present?
7688 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
7689 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
7690 cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h. */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7696 #include <linux/version.h>
7697 _ACEOF
7698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7700 ac_status=$?
7701 grep -v '^ *+' conftest.er1 >conftest.err
7702 rm -f conftest.er1
7703 cat conftest.err >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } >/dev/null; then
7706 if test -s conftest.err; then
7707 ac_cpp_err=$ac_c_preproc_warn_flag
7708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7709 else
7710 ac_cpp_err=
7711 fi
7712 else
7713 ac_cpp_err=yes
7714 fi
7715 if test -z "$ac_cpp_err"; then
7716 ac_header_preproc=yes
7717 else
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7720
7721 ac_header_preproc=no
7722 fi
7723 rm -f conftest.err conftest.$ac_ext
7724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7725 echo "${ECHO_T}$ac_header_preproc" >&6
7726
7727 # So? What about this header?
7728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7729 yes:no: )
7730 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
7731 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7732 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
7733 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
7734 ac_header_preproc=yes
7735 ;;
7736 no:yes:* )
7737 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
7738 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
7739 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
7740 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
7741 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
7742 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
7743 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
7744 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
7745 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
7746 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
7747 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
7748 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
7749 (
7750 cat <<\_ASBOX
7751 ## ------------------------------------------ ##
7752 ## Report this to the AC_PACKAGE_NAME lists. ##
7753 ## ------------------------------------------ ##
7754 _ASBOX
7755 ) |
7756 sed "s/^/$as_me: WARNING: /" >&2
7757 ;;
7758 esac
7759 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7760 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7761 if test "${ac_cv_header_linux_version_h+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 else
7764 ac_cv_header_linux_version_h=$ac_header_preproc
7765 fi
7766 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7767 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7768
7769 fi
7770 if test $ac_cv_header_linux_version_h = yes; then
7771 msgformat=linux
7772 else
7773 msgformat=xopen
7774 fi
7775
7776
7777
7778 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
7779 fi
7780 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7781 $srcdir/po2tbl.sed.in > po2tbl.sed
7782 fi
7783
7784 if test "$PACKAGE" = "gettext"; then
7785 GT_NO="#NO#"
7786 GT_YES=
7787 else
7788 GT_NO=
7789 GT_YES="#YES#"
7790 fi
7791
7792
7793
7794 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
7795
7796
7797 l=
7798
7799
7800 if test -f $srcdir/po/POTFILES.in; then
7801 test -d po || mkdir po
7802 if test "x$srcdir" != "x."; then
7803 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7804 posrcprefix="$srcdir/"
7805 else
7806 posrcprefix="../$srcdir/"
7807 fi
7808 else
7809 posrcprefix="../"
7810 fi
7811 rm -f po/POTFILES
7812 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7813 < $srcdir/po/POTFILES.in > po/POTFILES
7814 fi
7815
7816
7817 . ${srcdir}/../bfd/configure.host
7818
7819 # Put a plausible default for CC_FOR_BUILD in Makefile.
7820 if test -z "$CC_FOR_BUILD"; then
7821 if test "x$cross_compiling" = "xno"; then
7822 CC_FOR_BUILD='$(CC)'
7823 else
7824 CC_FOR_BUILD=gcc
7825 fi
7826 fi
7827
7828 # Also set EXEEXT_FOR_BUILD.
7829 if test "x$cross_compiling" = "xno"; then
7830 EXEEXT_FOR_BUILD='$(EXEEXT)'
7831 else
7832 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
7833 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
7834 if test "${bfd_cv_build_exeext+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837 rm -f conftest*
7838 echo 'int main () { return 0; }' > conftest.c
7839 bfd_cv_build_exeext=
7840 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
7841 for file in conftest.*; do
7842 case $file in
7843 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
7844 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
7845 esac
7846 done
7847 rm -f conftest*
7848 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
7849 fi
7850 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
7851 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
7852 EXEEXT_FOR_BUILD=""
7853 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
7854 fi
7855
7856
7857
7858 # Find a good install program. We prefer a C program (faster),
7859 # so one script is as good as another. But avoid the broken or
7860 # incompatible versions:
7861 # SysV /etc/install, /usr/sbin/install
7862 # SunOS /usr/etc/install
7863 # IRIX /sbin/install
7864 # AIX /bin/install
7865 # AmigaOS /C/install, which installs bootblocks on floppy discs
7866 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7867 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7868 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7869 # OS/2's system install, which has a completely different semantic
7870 # ./install, which can be erroneously created by make from ./install.sh.
7871 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7872 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7873 if test -z "$INSTALL"; then
7874 if test "${ac_cv_path_install+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 for as_dir in $PATH
7879 do
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
7882 # Account for people who put trailing slashes in PATH elements.
7883 case $as_dir/ in
7884 ./ | .// | /cC/* | \
7885 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7886 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7887 /usr/ucb/* ) ;;
7888 *)
7889 # OSF1 and SCO ODT 3.0 have their own names for install.
7890 # Don't use installbsd from OSF since it installs stuff as root
7891 # by default.
7892 for ac_prog in ginstall scoinst install; do
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7895 if test $ac_prog = install &&
7896 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7897 # AIX install. It has an incompatible calling convention.
7898 :
7899 elif test $ac_prog = install &&
7900 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7901 # program-specific install script used by HP pwplus--don't use.
7902 :
7903 else
7904 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7905 break 3
7906 fi
7907 fi
7908 done
7909 done
7910 ;;
7911 esac
7912 done
7913
7914
7915 fi
7916 if test "${ac_cv_path_install+set}" = set; then
7917 INSTALL=$ac_cv_path_install
7918 else
7919 # As a last resort, use the slow shell script. We don't cache a
7920 # path for INSTALL within a source directory, because that will
7921 # break other packages using the cache if that directory is
7922 # removed, or if the path is relative.
7923 INSTALL=$ac_install_sh
7924 fi
7925 fi
7926 echo "$as_me:$LINENO: result: $INSTALL" >&5
7927 echo "${ECHO_T}$INSTALL" >&6
7928
7929 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7930 # It thinks the first close brace ends the variable substitution.
7931 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7932
7933 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7934
7935 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7936
7937
7938
7939
7940
7941 for ac_header in string.h strings.h stdlib.h
7942 do
7943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7945 echo "$as_me:$LINENO: checking for $ac_header" >&5
7946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 fi
7950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7952 else
7953 # Is the header compilable?
7954 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7956 cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h. */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7962 $ac_includes_default
7963 #include <$ac_header>
7964 _ACEOF
7965 rm -f conftest.$ac_objext
7966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7967 (eval $ac_compile) 2>conftest.er1
7968 ac_status=$?
7969 grep -v '^ *+' conftest.er1 >conftest.err
7970 rm -f conftest.er1
7971 cat conftest.err >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } &&
7974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 (eval $ac_try) 2>&5
7977 ac_status=$?
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; } &&
7980 { ac_try='test -s conftest.$ac_objext'
7981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982 (eval $ac_try) 2>&5
7983 ac_status=$?
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; }; then
7986 ac_header_compiler=yes
7987 else
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7990
7991 ac_header_compiler=no
7992 fi
7993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7995 echo "${ECHO_T}$ac_header_compiler" >&6
7996
7997 # Is the header present?
7998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8000 cat >conftest.$ac_ext <<_ACEOF
8001 /* confdefs.h. */
8002 _ACEOF
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h. */
8006 #include <$ac_header>
8007 _ACEOF
8008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8010 ac_status=$?
8011 grep -v '^ *+' conftest.er1 >conftest.err
8012 rm -f conftest.er1
8013 cat conftest.err >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } >/dev/null; then
8016 if test -s conftest.err; then
8017 ac_cpp_err=$ac_c_preproc_warn_flag
8018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8019 else
8020 ac_cpp_err=
8021 fi
8022 else
8023 ac_cpp_err=yes
8024 fi
8025 if test -z "$ac_cpp_err"; then
8026 ac_header_preproc=yes
8027 else
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8030
8031 ac_header_preproc=no
8032 fi
8033 rm -f conftest.err conftest.$ac_ext
8034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8035 echo "${ECHO_T}$ac_header_preproc" >&6
8036
8037 # So? What about this header?
8038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8039 yes:no: )
8040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8044 ac_header_preproc=yes
8045 ;;
8046 no:yes:* )
8047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8059 (
8060 cat <<\_ASBOX
8061 ## ------------------------------------------ ##
8062 ## Report this to the AC_PACKAGE_NAME lists. ##
8063 ## ------------------------------------------ ##
8064 _ASBOX
8065 ) |
8066 sed "s/^/$as_me: WARNING: /" >&2
8067 ;;
8068 esac
8069 echo "$as_me:$LINENO: checking for $ac_header" >&5
8070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8073 else
8074 eval "$as_ac_Header=\$ac_header_preproc"
8075 fi
8076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8078
8079 fi
8080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8081 cat >>confdefs.h <<_ACEOF
8082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8083 _ACEOF
8084
8085 fi
8086
8087 done
8088
8089
8090 cgen_maint=no
8091 cgendir='$(srcdir)/../cgen'
8092
8093 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
8094 if test "${enable_cgen_maint+set}" = set; then
8095 enableval="$enable_cgen_maint"
8096 case "${enableval}" in
8097 yes) cgen_maint=yes ;;
8098 no) cgen_maint=no ;;
8099 *)
8100 # argument is cgen install directory (not implemented yet).
8101 # Having a `share' directory might be more appropriate for the .scm,
8102 # .cpu, etc. files.
8103 cgen_maint=yes
8104 cgendir=${cgen_maint}/lib/cgen
8105 ;;
8106 esac
8107 fi;
8108
8109 if test x${cgen_maint} = xyes; then
8110 CGEN_MAINT_TRUE=
8111 CGEN_MAINT_FALSE='#'
8112 else
8113 CGEN_MAINT_TRUE='#'
8114 CGEN_MAINT_FALSE=
8115 fi
8116
8117
8118 using_cgen=no
8119
8120 # Horrible hacks to build DLLs on Windows.
8121 WIN32LDFLAGS=
8122 WIN32LIBADD=
8123 case "${host}" in
8124 *-*-cygwin*)
8125 if test "$enable_shared" = "yes"; then
8126 WIN32LDFLAGS="-no-undefined"
8127 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
8128 fi
8129 ;;
8130 esac
8131
8132
8133
8134 # target-specific stuff:
8135
8136 # Canonicalize the secondary target names.
8137 if test -n "$enable_targets" ; then
8138 for targ in `echo $enable_targets | sed 's/,/ /g'`
8139 do
8140 result=`$ac_config_sub $targ 2>/dev/null`
8141 if test -n "$result" ; then
8142 canon_targets="$canon_targets $result"
8143 else
8144 # Allow targets that config.sub doesn't recognize, like "all".
8145 canon_targets="$canon_targets $targ"
8146 fi
8147 done
8148 fi
8149
8150 all_targets=false
8151 selarchs=
8152 for targ in $target $canon_targets
8153 do
8154 if test "x$targ" = "xall" ; then
8155 all_targets=true
8156 else
8157 . $srcdir/../bfd/config.bfd
8158 selarchs="$selarchs $targ_archs"
8159 fi
8160 done
8161
8162 # Utility var, documents generic cgen support files.
8163
8164 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
8165
8166 # We don't do any links based on the target system, just makefile config.
8167
8168 if test x${all_targets} = xfalse ; then
8169
8170 # Target architecture .o files.
8171 ta=
8172
8173 for arch in $selarchs
8174 do
8175 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
8176 archdefs="$archdefs -DARCH_$ad"
8177 case "$arch" in
8178 bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
8179 bfd_alliant_arch) ;;
8180 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
8181 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
8182 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
8183 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
8184 bfd_convex_arch) ;;
8185 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo" ;;
8186 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
8187 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
8188 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
8189 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
8190 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
8191 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
8192 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
8193 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
8194 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
8195 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
8196 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
8197 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
8198 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
8199 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
8200 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
8201 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
8202 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
8203 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
8204 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
8205 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
8206 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
8207 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
8208 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
8209 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
8210 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
8211 bfd_msp430_arch) ta="$ta msp430-dis.lo" ;;
8212 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
8213 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
8214 bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
8215 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
8216 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
8217 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
8218 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
8219 bfd_pyramid_arch) ;;
8220 bfd_romp_arch) ;;
8221 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
8222 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
8223 bfd_sh_arch)
8224 # We can't decide what we want just from the CPU family.
8225 # We want SH5 support unless a specific version of sh is
8226 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
8227 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
8228 for t in $target $canon_targets; do
8229 case $t in
8230 all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
8231 sh-*-linux* | shl-*-linux*)
8232 ta="$ta sh64-dis.lo sh64-opc.lo"
8233 archdefs="$archdefs -DINCLUDE_SHMEDIA"
8234 break;;
8235 esac;
8236 done
8237 ta="$ta sh-dis.lo" ;;
8238 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
8239 bfd_tahoe_arch) ;;
8240 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
8241 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
8242 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
8243 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
8244 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
8245 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
8246 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
8247 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
8248 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
8249 bfd_we32k_arch) ;;
8250 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
8251 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
8252 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
8253 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
8254
8255 "") ;;
8256 *) { { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5
8257 echo "$as_me: error: *** unknown target architecture $arch" >&2;}
8258 { (exit 1); exit 1; }; } ;;
8259 esac
8260 done
8261
8262 if test $using_cgen = yes ; then
8263 ta="$ta $cgen_files"
8264 fi
8265
8266 # Weed out duplicate .o files.
8267 f=""
8268 for i in $ta ; do
8269 case " $f " in
8270 *" $i "*) ;;
8271 *) f="$f $i" ;;
8272 esac
8273 done
8274 ta="$f"
8275
8276 # And duplicate -D flags.
8277 f=""
8278 for i in $archdefs ; do
8279 case " $f " in
8280 *" $i "*) ;;
8281 *) f="$f $i" ;;
8282 esac
8283 done
8284 archdefs="$f"
8285
8286 BFD_MACHINES="$ta"
8287
8288 else # all_targets is true
8289 archdefs=-DARCH_all
8290 BFD_MACHINES='$(ALL_MACHINES)'
8291 fi
8292
8293
8294
8295
8296 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
8297
8298 ac_config_commands="$ac_config_commands default"
8299
8300 cat >confcache <<\_ACEOF
8301 # This file is a shell script that caches the results of configure
8302 # tests run on this system so they can be shared between configure
8303 # scripts and configure runs, see configure's option --config-cache.
8304 # It is not useful on other systems. If it contains results you don't
8305 # want to keep, you may remove or edit it.
8306 #
8307 # config.status only pays attention to the cache file if you give it
8308 # the --recheck option to rerun configure.
8309 #
8310 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8311 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8312 # following values.
8313
8314 _ACEOF
8315
8316 # The following way of writing the cache mishandles newlines in values,
8317 # but we know of no workaround that is simple, portable, and efficient.
8318 # So, don't put newlines in cache variables' values.
8319 # Ultrix sh set writes to stderr and can't be redirected directly,
8320 # and sets the high bit in the cache file unless we assign to the vars.
8321 {
8322 (set) 2>&1 |
8323 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8324 *ac_space=\ *)
8325 # `set' does not quote correctly, so add quotes (double-quote
8326 # substitution turns \\\\ into \\, and sed turns \\ into \).
8327 sed -n \
8328 "s/'/'\\\\''/g;
8329 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8330 ;;
8331 *)
8332 # `set' quotes correctly as required by POSIX, so do not add quotes.
8333 sed -n \
8334 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8335 ;;
8336 esac;
8337 } |
8338 sed '
8339 t clear
8340 : clear
8341 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8342 t end
8343 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8344 : end' >>confcache
8345 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8346 if test -w $cache_file; then
8347 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8348 cat confcache >$cache_file
8349 else
8350 echo "not updating unwritable cache $cache_file"
8351 fi
8352 fi
8353 rm -f confcache
8354
8355 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8356 # Let make expand exec_prefix.
8357 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8358
8359 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8360 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8361 # trailing colons and then remove the whole line if VPATH becomes empty
8362 # (actually we leave an empty line to preserve line numbers).
8363 if test "x$srcdir" = x.; then
8364 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8365 s/:*\$(srcdir):*/:/;
8366 s/:*\${srcdir}:*/:/;
8367 s/:*@srcdir@:*/:/;
8368 s/^\([^=]*=[ ]*\):*/\1/;
8369 s/:*$//;
8370 s/^[^=]*=[ ]*$//;
8371 }'
8372 fi
8373
8374 DEFS=-DHAVE_CONFIG_H
8375
8376 ac_libobjs=
8377 ac_ltlibobjs=
8378 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8379 # 1. Remove the extension, and $U if already installed.
8380 ac_i=`echo "$ac_i" |
8381 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8382 # 2. Add them.
8383 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8384 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8385 done
8386 LIBOBJS=$ac_libobjs
8387
8388 LTLIBOBJS=$ac_ltlibobjs
8389
8390
8391
8392 : ${CONFIG_STATUS=./config.status}
8393 ac_clean_files_save=$ac_clean_files
8394 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8395 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8396 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8397 cat >$CONFIG_STATUS <<_ACEOF
8398 #! $SHELL
8399 # Generated by $as_me.
8400 # Run this file to recreate the current configuration.
8401 # Compiler output produced by configure, useful for debugging
8402 # configure, is in config.log if it exists.
8403
8404 debug=false
8405 ac_cs_recheck=false
8406 ac_cs_silent=false
8407 SHELL=\${CONFIG_SHELL-$SHELL}
8408 _ACEOF
8409
8410 cat >>$CONFIG_STATUS <<\_ACEOF
8411 ## --------------------- ##
8412 ## M4sh Initialization. ##
8413 ## --------------------- ##
8414
8415 # Be Bourne compatible
8416 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8417 emulate sh
8418 NULLCMD=:
8419 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8420 # is contrary to our usage. Disable this feature.
8421 alias -g '${1+"$@"}'='"$@"'
8422 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8423 set -o posix
8424 fi
8425 DUALCASE=1; export DUALCASE # for MKS sh
8426
8427 # Support unset when possible.
8428 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8429 as_unset=unset
8430 else
8431 as_unset=false
8432 fi
8433
8434
8435 # Work around bugs in pre-3.0 UWIN ksh.
8436 $as_unset ENV MAIL MAILPATH
8437 PS1='$ '
8438 PS2='> '
8439 PS4='+ '
8440
8441 # NLS nuisances.
8442 for as_var in \
8443 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8444 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8445 LC_TELEPHONE LC_TIME
8446 do
8447 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8448 eval $as_var=C; export $as_var
8449 else
8450 $as_unset $as_var
8451 fi
8452 done
8453
8454 # Required to use basename.
8455 if expr a : '\(a\)' >/dev/null 2>&1; then
8456 as_expr=expr
8457 else
8458 as_expr=false
8459 fi
8460
8461 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8462 as_basename=basename
8463 else
8464 as_basename=false
8465 fi
8466
8467
8468 # Name of the executable.
8469 as_me=`$as_basename "$0" ||
8470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8471 X"$0" : 'X\(//\)$' \| \
8472 X"$0" : 'X\(/\)$' \| \
8473 . : '\(.\)' 2>/dev/null ||
8474 echo X/"$0" |
8475 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8476 /^X\/\(\/\/\)$/{ s//\1/; q; }
8477 /^X\/\(\/\).*/{ s//\1/; q; }
8478 s/.*/./; q'`
8479
8480
8481 # PATH needs CR, and LINENO needs CR and PATH.
8482 # Avoid depending upon Character Ranges.
8483 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8484 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8485 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8486 as_cr_digits='0123456789'
8487 as_cr_alnum=$as_cr_Letters$as_cr_digits
8488
8489 # The user is always right.
8490 if test "${PATH_SEPARATOR+set}" != set; then
8491 echo "#! /bin/sh" >conf$$.sh
8492 echo "exit 0" >>conf$$.sh
8493 chmod +x conf$$.sh
8494 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8495 PATH_SEPARATOR=';'
8496 else
8497 PATH_SEPARATOR=:
8498 fi
8499 rm -f conf$$.sh
8500 fi
8501
8502
8503 as_lineno_1=$LINENO
8504 as_lineno_2=$LINENO
8505 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8506 test "x$as_lineno_1" != "x$as_lineno_2" &&
8507 test "x$as_lineno_3" = "x$as_lineno_2" || {
8508 # Find who we are. Look in the path if we contain no path at all
8509 # relative or not.
8510 case $0 in
8511 *[\\/]* ) as_myself=$0 ;;
8512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513 for as_dir in $PATH
8514 do
8515 IFS=$as_save_IFS
8516 test -z "$as_dir" && as_dir=.
8517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8518 done
8519
8520 ;;
8521 esac
8522 # We did not find ourselves, most probably we were run as `sh COMMAND'
8523 # in which case we are not to be found in the path.
8524 if test "x$as_myself" = x; then
8525 as_myself=$0
8526 fi
8527 if test ! -f "$as_myself"; then
8528 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8529 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8530 { (exit 1); exit 1; }; }
8531 fi
8532 case $CONFIG_SHELL in
8533 '')
8534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8536 do
8537 IFS=$as_save_IFS
8538 test -z "$as_dir" && as_dir=.
8539 for as_base in sh bash ksh sh5; do
8540 case $as_dir in
8541 /*)
8542 if ("$as_dir/$as_base" -c '
8543 as_lineno_1=$LINENO
8544 as_lineno_2=$LINENO
8545 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8546 test "x$as_lineno_1" != "x$as_lineno_2" &&
8547 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8548 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8549 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8550 CONFIG_SHELL=$as_dir/$as_base
8551 export CONFIG_SHELL
8552 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8553 fi;;
8554 esac
8555 done
8556 done
8557 ;;
8558 esac
8559
8560 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8561 # uniformly replaced by the line number. The first 'sed' inserts a
8562 # line-number line before each line; the second 'sed' does the real
8563 # work. The second script uses 'N' to pair each line-number line
8564 # with the numbered line, and appends trailing '-' during
8565 # substitution so that $LINENO is not a special case at line end.
8566 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8567 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8568 sed '=' <$as_myself |
8569 sed '
8570 N
8571 s,$,-,
8572 : loop
8573 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8574 t loop
8575 s,-$,,
8576 s,^['$as_cr_digits']*\n,,
8577 ' >$as_me.lineno &&
8578 chmod +x $as_me.lineno ||
8579 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8580 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8581 { (exit 1); exit 1; }; }
8582
8583 # Don't try to exec as it changes $[0], causing all sort of problems
8584 # (the dirname of $[0] is not the place where we might find the
8585 # original and so on. Autoconf is especially sensible to this).
8586 . ./$as_me.lineno
8587 # Exit status is that of the last command.
8588 exit
8589 }
8590
8591
8592 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8593 *c*,-n*) ECHO_N= ECHO_C='
8594 ' ECHO_T=' ' ;;
8595 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8596 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8597 esac
8598
8599 if expr a : '\(a\)' >/dev/null 2>&1; then
8600 as_expr=expr
8601 else
8602 as_expr=false
8603 fi
8604
8605 rm -f conf$$ conf$$.exe conf$$.file
8606 echo >conf$$.file
8607 if ln -s conf$$.file conf$$ 2>/dev/null; then
8608 # We could just check for DJGPP; but this test a) works b) is more generic
8609 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8610 if test -f conf$$.exe; then
8611 # Don't use ln at all; we don't have any links
8612 as_ln_s='cp -p'
8613 else
8614 as_ln_s='ln -s'
8615 fi
8616 elif ln conf$$.file conf$$ 2>/dev/null; then
8617 as_ln_s=ln
8618 else
8619 as_ln_s='cp -p'
8620 fi
8621 rm -f conf$$ conf$$.exe conf$$.file
8622
8623 if mkdir -p . 2>/dev/null; then
8624 as_mkdir_p=:
8625 else
8626 test -d ./-p && rmdir ./-p
8627 as_mkdir_p=false
8628 fi
8629
8630 as_executable_p="test -f"
8631
8632 # Sed expression to map a string onto a valid CPP name.
8633 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8634
8635 # Sed expression to map a string onto a valid variable name.
8636 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8637
8638
8639 # IFS
8640 # We need space, tab and new line, in precisely that order.
8641 as_nl='
8642 '
8643 IFS=" $as_nl"
8644
8645 # CDPATH.
8646 $as_unset CDPATH
8647
8648 exec 6>&1
8649
8650 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8651 # report actual input values of CONFIG_FILES etc. instead of their
8652 # values after options handling. Logging --version etc. is OK.
8653 exec 5>>config.log
8654 {
8655 echo
8656 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8657 ## Running $as_me. ##
8658 _ASBOX
8659 } >&5
8660 cat >&5 <<_CSEOF
8661
8662 This file was extended by $as_me, which was
8663 generated by GNU Autoconf 2.59. Invocation command line was
8664
8665 CONFIG_FILES = $CONFIG_FILES
8666 CONFIG_HEADERS = $CONFIG_HEADERS
8667 CONFIG_LINKS = $CONFIG_LINKS
8668 CONFIG_COMMANDS = $CONFIG_COMMANDS
8669 $ $0 $@
8670
8671 _CSEOF
8672 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8673 echo >&5
8674 _ACEOF
8675
8676 # Files that config.status was made for.
8677 if test -n "$ac_config_files"; then
8678 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8679 fi
8680
8681 if test -n "$ac_config_headers"; then
8682 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8683 fi
8684
8685 if test -n "$ac_config_links"; then
8686 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8687 fi
8688
8689 if test -n "$ac_config_commands"; then
8690 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8691 fi
8692
8693 cat >>$CONFIG_STATUS <<\_ACEOF
8694
8695 ac_cs_usage="\
8696 \`$as_me' instantiates files from templates according to the
8697 current configuration.
8698
8699 Usage: $0 [OPTIONS] [FILE]...
8700
8701 -h, --help print this help, then exit
8702 -V, --version print version number, then exit
8703 -q, --quiet do not print progress messages
8704 -d, --debug don't remove temporary files
8705 --recheck update $as_me by reconfiguring in the same conditions
8706 --file=FILE[:TEMPLATE]
8707 instantiate the configuration file FILE
8708 --header=FILE[:TEMPLATE]
8709 instantiate the configuration header FILE
8710
8711 Configuration files:
8712 $config_files
8713
8714 Configuration headers:
8715 $config_headers
8716
8717 Configuration commands:
8718 $config_commands
8719
8720 Report bugs to <bug-autoconf@gnu.org>."
8721 _ACEOF
8722
8723 cat >>$CONFIG_STATUS <<_ACEOF
8724 ac_cs_version="\\
8725 config.status
8726 configured by $0, generated by GNU Autoconf 2.59,
8727 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8728
8729 Copyright (C) 2003 Free Software Foundation, Inc.
8730 This config.status script is free software; the Free Software Foundation
8731 gives unlimited permission to copy, distribute and modify it."
8732 srcdir=$srcdir
8733 INSTALL="$INSTALL"
8734 _ACEOF
8735
8736 cat >>$CONFIG_STATUS <<\_ACEOF
8737 # If no file are specified by the user, then we need to provide default
8738 # value. By we need to know if files were specified by the user.
8739 ac_need_defaults=:
8740 while test $# != 0
8741 do
8742 case $1 in
8743 --*=*)
8744 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8745 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8746 ac_shift=:
8747 ;;
8748 -*)
8749 ac_option=$1
8750 ac_optarg=$2
8751 ac_shift=shift
8752 ;;
8753 *) # This is not an option, so the user has probably given explicit
8754 # arguments.
8755 ac_option=$1
8756 ac_need_defaults=false;;
8757 esac
8758
8759 case $ac_option in
8760 # Handling of the options.
8761 _ACEOF
8762 cat >>$CONFIG_STATUS <<\_ACEOF
8763 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8764 ac_cs_recheck=: ;;
8765 --version | --vers* | -V )
8766 echo "$ac_cs_version"; exit 0 ;;
8767 --he | --h)
8768 # Conflict between --help and --header
8769 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8770 Try \`$0 --help' for more information." >&5
8771 echo "$as_me: error: ambiguous option: $1
8772 Try \`$0 --help' for more information." >&2;}
8773 { (exit 1); exit 1; }; };;
8774 --help | --hel | -h )
8775 echo "$ac_cs_usage"; exit 0 ;;
8776 --debug | --d* | -d )
8777 debug=: ;;
8778 --file | --fil | --fi | --f )
8779 $ac_shift
8780 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8781 ac_need_defaults=false;;
8782 --header | --heade | --head | --hea )
8783 $ac_shift
8784 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8785 ac_need_defaults=false;;
8786 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8787 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8788 ac_cs_silent=: ;;
8789
8790 # This is an error.
8791 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8792 Try \`$0 --help' for more information." >&5
8793 echo "$as_me: error: unrecognized option: $1
8794 Try \`$0 --help' for more information." >&2;}
8795 { (exit 1); exit 1; }; } ;;
8796
8797 *) ac_config_targets="$ac_config_targets $1" ;;
8798
8799 esac
8800 shift
8801 done
8802
8803 ac_configure_extra_args=
8804
8805 if $ac_cs_silent; then
8806 exec 6>/dev/null
8807 ac_configure_extra_args="$ac_configure_extra_args --silent"
8808 fi
8809
8810 _ACEOF
8811 cat >>$CONFIG_STATUS <<_ACEOF
8812 if \$ac_cs_recheck; then
8813 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8814 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8815 fi
8816
8817 _ACEOF
8818
8819 cat >>$CONFIG_STATUS <<_ACEOF
8820 #
8821 # INIT-COMMANDS section.
8822 #
8823
8824
8825
8826
8827 _ACEOF
8828
8829
8830
8831 cat >>$CONFIG_STATUS <<\_ACEOF
8832 for ac_config_target in $ac_config_targets
8833 do
8834 case "$ac_config_target" in
8835 # Handling of arguments.
8836 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8837 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
8838 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8839 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8840 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8841 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8842 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8843 { (exit 1); exit 1; }; };;
8844 esac
8845 done
8846
8847 # If the user did not use the arguments to specify the items to instantiate,
8848 # then the envvar interface is used. Set only those that are not.
8849 # We use the long form for the default assignment because of an extremely
8850 # bizarre bug on SunOS 4.1.3.
8851 if $ac_need_defaults; then
8852 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8853 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8854 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8855 fi
8856
8857 # Have a temporary directory for convenience. Make it in the build tree
8858 # simply because there is no reason to put it here, and in addition,
8859 # creating and moving files from /tmp can sometimes cause problems.
8860 # Create a temporary directory, and hook for its removal unless debugging.
8861 $debug ||
8862 {
8863 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8864 trap '{ (exit 1); exit 1; }' 1 2 13 15
8865 }
8866
8867 # Create a (secure) tmp directory for tmp files.
8868
8869 {
8870 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8871 test -n "$tmp" && test -d "$tmp"
8872 } ||
8873 {
8874 tmp=./confstat$$-$RANDOM
8875 (umask 077 && mkdir $tmp)
8876 } ||
8877 {
8878 echo "$me: cannot create a temporary directory in ." >&2
8879 { (exit 1); exit 1; }
8880 }
8881
8882 _ACEOF
8883
8884 cat >>$CONFIG_STATUS <<_ACEOF
8885
8886 #
8887 # CONFIG_FILES section.
8888 #
8889
8890 # No need to generate the scripts if there are no CONFIG_FILES.
8891 # This happens for instance when ./config.status config.h
8892 if test -n "\$CONFIG_FILES"; then
8893 # Protect against being on the right side of a sed subst in config.status.
8894 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8895 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8896 s,@SHELL@,$SHELL,;t t
8897 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8898 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8899 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8900 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8901 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8902 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8903 s,@exec_prefix@,$exec_prefix,;t t
8904 s,@prefix@,$prefix,;t t
8905 s,@program_transform_name@,$program_transform_name,;t t
8906 s,@bindir@,$bindir,;t t
8907 s,@sbindir@,$sbindir,;t t
8908 s,@libexecdir@,$libexecdir,;t t
8909 s,@datadir@,$datadir,;t t
8910 s,@sysconfdir@,$sysconfdir,;t t
8911 s,@sharedstatedir@,$sharedstatedir,;t t
8912 s,@localstatedir@,$localstatedir,;t t
8913 s,@libdir@,$libdir,;t t
8914 s,@includedir@,$includedir,;t t
8915 s,@oldincludedir@,$oldincludedir,;t t
8916 s,@infodir@,$infodir,;t t
8917 s,@mandir@,$mandir,;t t
8918 s,@build_alias@,$build_alias,;t t
8919 s,@host_alias@,$host_alias,;t t
8920 s,@target_alias@,$target_alias,;t t
8921 s,@DEFS@,$DEFS,;t t
8922 s,@ECHO_C@,$ECHO_C,;t t
8923 s,@ECHO_N@,$ECHO_N,;t t
8924 s,@ECHO_T@,$ECHO_T,;t t
8925 s,@LIBS@,$LIBS,;t t
8926 s,@build@,$build,;t t
8927 s,@build_cpu@,$build_cpu,;t t
8928 s,@build_vendor@,$build_vendor,;t t
8929 s,@build_os@,$build_os,;t t
8930 s,@host@,$host,;t t
8931 s,@host_cpu@,$host_cpu,;t t
8932 s,@host_vendor@,$host_vendor,;t t
8933 s,@host_os@,$host_os,;t t
8934 s,@target@,$target,;t t
8935 s,@target_cpu@,$target_cpu,;t t
8936 s,@target_vendor@,$target_vendor,;t t
8937 s,@target_os@,$target_os,;t t
8938 s,@CC@,$CC,;t t
8939 s,@CFLAGS@,$CFLAGS,;t t
8940 s,@LDFLAGS@,$LDFLAGS,;t t
8941 s,@CPPFLAGS@,$CPPFLAGS,;t t
8942 s,@ac_ct_CC@,$ac_ct_CC,;t t
8943 s,@EXEEXT@,$EXEEXT,;t t
8944 s,@OBJEXT@,$OBJEXT,;t t
8945 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8946 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8947 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8948 s,@PACKAGE@,$PACKAGE,;t t
8949 s,@VERSION@,$VERSION,;t t
8950 s,@ACLOCAL@,$ACLOCAL,;t t
8951 s,@AUTOCONF@,$AUTOCONF,;t t
8952 s,@AUTOMAKE@,$AUTOMAKE,;t t
8953 s,@AUTOHEADER@,$AUTOHEADER,;t t
8954 s,@MAKEINFO@,$MAKEINFO,;t t
8955 s,@SET_MAKE@,$SET_MAKE,;t t
8956 s,@AR@,$AR,;t t
8957 s,@ac_ct_AR@,$ac_ct_AR,;t t
8958 s,@RANLIB@,$RANLIB,;t t
8959 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8960 s,@LN_S@,$LN_S,;t t
8961 s,@STRIP@,$STRIP,;t t
8962 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8963 s,@LIBTOOL@,$LIBTOOL,;t t
8964 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8965 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
8966 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
8967 s,@MAINT@,$MAINT,;t t
8968 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
8969 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
8970 s,@host_noncanonical@,$host_noncanonical,;t t
8971 s,@target_noncanonical@,$target_noncanonical,;t t
8972 s,@bfdlibdir@,$bfdlibdir,;t t
8973 s,@bfdincludedir@,$bfdincludedir,;t t
8974 s,@CPP@,$CPP,;t t
8975 s,@EGREP@,$EGREP,;t t
8976 s,@ALLOCA@,$ALLOCA,;t t
8977 s,@USE_NLS@,$USE_NLS,;t t
8978 s,@MSGFMT@,$MSGFMT,;t t
8979 s,@GMSGFMT@,$GMSGFMT,;t t
8980 s,@XGETTEXT@,$XGETTEXT,;t t
8981 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8982 s,@CATALOGS@,$CATALOGS,;t t
8983 s,@CATOBJEXT@,$CATOBJEXT,;t t
8984 s,@DATADIRNAME@,$DATADIRNAME,;t t
8985 s,@GMOFILES@,$GMOFILES,;t t
8986 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8987 s,@INTLDEPS@,$INTLDEPS,;t t
8988 s,@INTLLIBS@,$INTLLIBS,;t t
8989 s,@INTLOBJS@,$INTLOBJS,;t t
8990 s,@POFILES@,$POFILES,;t t
8991 s,@POSUB@,$POSUB,;t t
8992 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8993 s,@GT_NO@,$GT_NO,;t t
8994 s,@GT_YES@,$GT_YES,;t t
8995 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8996 s,@l@,$l,;t t
8997 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8998 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
8999 s,@HDEFINES@,$HDEFINES,;t t
9000 s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t
9001 s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t
9002 s,@cgendir@,$cgendir,;t t
9003 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
9004 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
9005 s,@archdefs@,$archdefs,;t t
9006 s,@BFD_MACHINES@,$BFD_MACHINES,;t t
9007 s,@LIBOBJS@,$LIBOBJS,;t t
9008 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9009 CEOF
9010
9011 _ACEOF
9012
9013 cat >>$CONFIG_STATUS <<\_ACEOF
9014 # Split the substitutions into bite-sized pieces for seds with
9015 # small command number limits, like on Digital OSF/1 and HP-UX.
9016 ac_max_sed_lines=48
9017 ac_sed_frag=1 # Number of current file.
9018 ac_beg=1 # First line for current file.
9019 ac_end=$ac_max_sed_lines # Line after last line for current file.
9020 ac_more_lines=:
9021 ac_sed_cmds=
9022 while $ac_more_lines; do
9023 if test $ac_beg -gt 1; then
9024 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9025 else
9026 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9027 fi
9028 if test ! -s $tmp/subs.frag; then
9029 ac_more_lines=false
9030 else
9031 # The purpose of the label and of the branching condition is to
9032 # speed up the sed processing (if there are no `@' at all, there
9033 # is no need to browse any of the substitutions).
9034 # These are the two extra sed commands mentioned above.
9035 (echo ':t
9036 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9037 if test -z "$ac_sed_cmds"; then
9038 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9039 else
9040 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9041 fi
9042 ac_sed_frag=`expr $ac_sed_frag + 1`
9043 ac_beg=$ac_end
9044 ac_end=`expr $ac_end + $ac_max_sed_lines`
9045 fi
9046 done
9047 if test -z "$ac_sed_cmds"; then
9048 ac_sed_cmds=cat
9049 fi
9050 fi # test -n "$CONFIG_FILES"
9051
9052 _ACEOF
9053 cat >>$CONFIG_STATUS <<\_ACEOF
9054 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9055 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9056 case $ac_file in
9057 - | *:- | *:-:* ) # input from stdin
9058 cat >$tmp/stdin
9059 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9060 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9061 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9062 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9063 * ) ac_file_in=$ac_file.in ;;
9064 esac
9065
9066 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9067 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9068 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9069 X"$ac_file" : 'X\(//\)[^/]' \| \
9070 X"$ac_file" : 'X\(//\)$' \| \
9071 X"$ac_file" : 'X\(/\)' \| \
9072 . : '\(.\)' 2>/dev/null ||
9073 echo X"$ac_file" |
9074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9076 /^X\(\/\/\)$/{ s//\1/; q; }
9077 /^X\(\/\).*/{ s//\1/; q; }
9078 s/.*/./; q'`
9079 { if $as_mkdir_p; then
9080 mkdir -p "$ac_dir"
9081 else
9082 as_dir="$ac_dir"
9083 as_dirs=
9084 while test ! -d "$as_dir"; do
9085 as_dirs="$as_dir $as_dirs"
9086 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9087 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9088 X"$as_dir" : 'X\(//\)[^/]' \| \
9089 X"$as_dir" : 'X\(//\)$' \| \
9090 X"$as_dir" : 'X\(/\)' \| \
9091 . : '\(.\)' 2>/dev/null ||
9092 echo X"$as_dir" |
9093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9095 /^X\(\/\/\)$/{ s//\1/; q; }
9096 /^X\(\/\).*/{ s//\1/; q; }
9097 s/.*/./; q'`
9098 done
9099 test ! -n "$as_dirs" || mkdir $as_dirs
9100 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9101 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9102 { (exit 1); exit 1; }; }; }
9103
9104 ac_builddir=.
9105
9106 if test "$ac_dir" != .; then
9107 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9108 # A "../" for each directory in $ac_dir_suffix.
9109 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9110 else
9111 ac_dir_suffix= ac_top_builddir=
9112 fi
9113
9114 case $srcdir in
9115 .) # No --srcdir option. We are building in place.
9116 ac_srcdir=.
9117 if test -z "$ac_top_builddir"; then
9118 ac_top_srcdir=.
9119 else
9120 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9121 fi ;;
9122 [\\/]* | ?:[\\/]* ) # Absolute path.
9123 ac_srcdir=$srcdir$ac_dir_suffix;
9124 ac_top_srcdir=$srcdir ;;
9125 *) # Relative path.
9126 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9127 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9128 esac
9129
9130 # Do not use `cd foo && pwd` to compute absolute paths, because
9131 # the directories may not exist.
9132 case `pwd` in
9133 .) ac_abs_builddir="$ac_dir";;
9134 *)
9135 case "$ac_dir" in
9136 .) ac_abs_builddir=`pwd`;;
9137 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9138 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9139 esac;;
9140 esac
9141 case $ac_abs_builddir in
9142 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9143 *)
9144 case ${ac_top_builddir}. in
9145 .) ac_abs_top_builddir=$ac_abs_builddir;;
9146 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9147 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9148 esac;;
9149 esac
9150 case $ac_abs_builddir in
9151 .) ac_abs_srcdir=$ac_srcdir;;
9152 *)
9153 case $ac_srcdir in
9154 .) ac_abs_srcdir=$ac_abs_builddir;;
9155 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9156 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9157 esac;;
9158 esac
9159 case $ac_abs_builddir in
9160 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9161 *)
9162 case $ac_top_srcdir in
9163 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9164 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9165 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9166 esac;;
9167 esac
9168
9169
9170 case $INSTALL in
9171 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9172 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9173 esac
9174
9175 # Let's still pretend it is `configure' which instantiates (i.e., don't
9176 # use $as_me), people would be surprised to read:
9177 # /* config.h. Generated by config.status. */
9178 if test x"$ac_file" = x-; then
9179 configure_input=
9180 else
9181 configure_input="$ac_file. "
9182 fi
9183 configure_input=$configure_input"Generated from `echo $ac_file_in |
9184 sed 's,.*/,,'` by configure."
9185
9186 # First look for the input files in the build tree, otherwise in the
9187 # src tree.
9188 ac_file_inputs=`IFS=:
9189 for f in $ac_file_in; do
9190 case $f in
9191 -) echo $tmp/stdin ;;
9192 [\\/$]*)
9193 # Absolute (can't be DOS-style, as IFS=:)
9194 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9195 echo "$as_me: error: cannot find input file: $f" >&2;}
9196 { (exit 1); exit 1; }; }
9197 echo "$f";;
9198 *) # Relative
9199 if test -f "$f"; then
9200 # Build tree
9201 echo "$f"
9202 elif test -f "$srcdir/$f"; then
9203 # Source tree
9204 echo "$srcdir/$f"
9205 else
9206 # /dev/null tree
9207 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9208 echo "$as_me: error: cannot find input file: $f" >&2;}
9209 { (exit 1); exit 1; }; }
9210 fi;;
9211 esac
9212 done` || { (exit 1); exit 1; }
9213
9214 if test x"$ac_file" != x-; then
9215 { echo "$as_me:$LINENO: creating $ac_file" >&5
9216 echo "$as_me: creating $ac_file" >&6;}
9217 rm -f "$ac_file"
9218 fi
9219 _ACEOF
9220 cat >>$CONFIG_STATUS <<_ACEOF
9221 sed "$ac_vpsub
9222 $extrasub
9223 _ACEOF
9224 cat >>$CONFIG_STATUS <<\_ACEOF
9225 :t
9226 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9227 s,@configure_input@,$configure_input,;t t
9228 s,@srcdir@,$ac_srcdir,;t t
9229 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9230 s,@top_srcdir@,$ac_top_srcdir,;t t
9231 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9232 s,@builddir@,$ac_builddir,;t t
9233 s,@abs_builddir@,$ac_abs_builddir,;t t
9234 s,@top_builddir@,$ac_top_builddir,;t t
9235 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9236 s,@INSTALL@,$ac_INSTALL,;t t
9237 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9238 rm -f $tmp/stdin
9239 if test x"$ac_file" != x-; then
9240 mv $tmp/out $ac_file
9241 else
9242 cat $tmp/out
9243 rm -f $tmp/out
9244 fi
9245
9246 done
9247 _ACEOF
9248 cat >>$CONFIG_STATUS <<\_ACEOF
9249
9250 #
9251 # CONFIG_HEADER section.
9252 #
9253
9254 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9255 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9256 #
9257 # ac_d sets the value in "#define NAME VALUE" lines.
9258 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9259 ac_dB='[ ].*$,\1#\2'
9260 ac_dC=' '
9261 ac_dD=',;t'
9262 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9263 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9264 ac_uB='$,\1#\2define\3'
9265 ac_uC=' '
9266 ac_uD=',;t'
9267
9268 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9269 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9270 case $ac_file in
9271 - | *:- | *:-:* ) # input from stdin
9272 cat >$tmp/stdin
9273 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9274 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9275 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9276 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9277 * ) ac_file_in=$ac_file.in ;;
9278 esac
9279
9280 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9281 echo "$as_me: creating $ac_file" >&6;}
9282
9283 # First look for the input files in the build tree, otherwise in the
9284 # src tree.
9285 ac_file_inputs=`IFS=:
9286 for f in $ac_file_in; do
9287 case $f in
9288 -) echo $tmp/stdin ;;
9289 [\\/$]*)
9290 # Absolute (can't be DOS-style, as IFS=:)
9291 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9292 echo "$as_me: error: cannot find input file: $f" >&2;}
9293 { (exit 1); exit 1; }; }
9294 # Do quote $f, to prevent DOS paths from being IFS'd.
9295 echo "$f";;
9296 *) # Relative
9297 if test -f "$f"; then
9298 # Build tree
9299 echo "$f"
9300 elif test -f "$srcdir/$f"; then
9301 # Source tree
9302 echo "$srcdir/$f"
9303 else
9304 # /dev/null tree
9305 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9306 echo "$as_me: error: cannot find input file: $f" >&2;}
9307 { (exit 1); exit 1; }; }
9308 fi;;
9309 esac
9310 done` || { (exit 1); exit 1; }
9311 # Remove the trailing spaces.
9312 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9313
9314 _ACEOF
9315
9316 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9317 # `conftest.undefs', that substitutes the proper values into
9318 # config.h.in to produce config.h. The first handles `#define'
9319 # templates, and the second `#undef' templates.
9320 # And first: Protect against being on the right side of a sed subst in
9321 # config.status. Protect against being in an unquoted here document
9322 # in config.status.
9323 rm -f conftest.defines conftest.undefs
9324 # Using a here document instead of a string reduces the quoting nightmare.
9325 # Putting comments in sed scripts is not portable.
9326 #
9327 # `end' is used to avoid that the second main sed command (meant for
9328 # 0-ary CPP macros) applies to n-ary macro definitions.
9329 # See the Autoconf documentation for `clear'.
9330 cat >confdef2sed.sed <<\_ACEOF
9331 s/[\\&,]/\\&/g
9332 s,[\\$`],\\&,g
9333 t clear
9334 : clear
9335 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9336 t end
9337 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9338 : end
9339 _ACEOF
9340 # If some macros were called several times there might be several times
9341 # the same #defines, which is useless. Nevertheless, we may not want to
9342 # sort them, since we want the *last* AC-DEFINE to be honored.
9343 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9344 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9345 rm -f confdef2sed.sed
9346
9347 # This sed command replaces #undef with comments. This is necessary, for
9348 # example, in the case of _POSIX_SOURCE, which is predefined and required
9349 # on some systems where configure will not decide to define it.
9350 cat >>conftest.undefs <<\_ACEOF
9351 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9352 _ACEOF
9353
9354 # Break up conftest.defines because some shells have a limit on the size
9355 # of here documents, and old seds have small limits too (100 cmds).
9356 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9357 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9358 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9359 echo ' :' >>$CONFIG_STATUS
9360 rm -f conftest.tail
9361 while grep . conftest.defines >/dev/null
9362 do
9363 # Write a limited-size here document to $tmp/defines.sed.
9364 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9365 # Speed up: don't consider the non `#define' lines.
9366 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9367 # Work around the forget-to-reset-the-flag bug.
9368 echo 't clr' >>$CONFIG_STATUS
9369 echo ': clr' >>$CONFIG_STATUS
9370 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9371 echo 'CEOF
9372 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9373 rm -f $tmp/in
9374 mv $tmp/out $tmp/in
9375 ' >>$CONFIG_STATUS
9376 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9377 rm -f conftest.defines
9378 mv conftest.tail conftest.defines
9379 done
9380 rm -f conftest.defines
9381 echo ' fi # grep' >>$CONFIG_STATUS
9382 echo >>$CONFIG_STATUS
9383
9384 # Break up conftest.undefs because some shells have a limit on the size
9385 # of here documents, and old seds have small limits too (100 cmds).
9386 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9387 rm -f conftest.tail
9388 while grep . conftest.undefs >/dev/null
9389 do
9390 # Write a limited-size here document to $tmp/undefs.sed.
9391 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9392 # Speed up: don't consider the non `#undef'
9393 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9394 # Work around the forget-to-reset-the-flag bug.
9395 echo 't clr' >>$CONFIG_STATUS
9396 echo ': clr' >>$CONFIG_STATUS
9397 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9398 echo 'CEOF
9399 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9400 rm -f $tmp/in
9401 mv $tmp/out $tmp/in
9402 ' >>$CONFIG_STATUS
9403 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9404 rm -f conftest.undefs
9405 mv conftest.tail conftest.undefs
9406 done
9407 rm -f conftest.undefs
9408
9409 cat >>$CONFIG_STATUS <<\_ACEOF
9410 # Let's still pretend it is `configure' which instantiates (i.e., don't
9411 # use $as_me), people would be surprised to read:
9412 # /* config.h. Generated by config.status. */
9413 if test x"$ac_file" = x-; then
9414 echo "/* Generated by configure. */" >$tmp/config.h
9415 else
9416 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9417 fi
9418 cat $tmp/in >>$tmp/config.h
9419 rm -f $tmp/in
9420 if test x"$ac_file" != x-; then
9421 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9422 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9423 echo "$as_me: $ac_file is unchanged" >&6;}
9424 else
9425 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9426 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9427 X"$ac_file" : 'X\(//\)[^/]' \| \
9428 X"$ac_file" : 'X\(//\)$' \| \
9429 X"$ac_file" : 'X\(/\)' \| \
9430 . : '\(.\)' 2>/dev/null ||
9431 echo X"$ac_file" |
9432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9433 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9434 /^X\(\/\/\)$/{ s//\1/; q; }
9435 /^X\(\/\).*/{ s//\1/; q; }
9436 s/.*/./; q'`
9437 { if $as_mkdir_p; then
9438 mkdir -p "$ac_dir"
9439 else
9440 as_dir="$ac_dir"
9441 as_dirs=
9442 while test ! -d "$as_dir"; do
9443 as_dirs="$as_dir $as_dirs"
9444 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9445 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9446 X"$as_dir" : 'X\(//\)[^/]' \| \
9447 X"$as_dir" : 'X\(//\)$' \| \
9448 X"$as_dir" : 'X\(/\)' \| \
9449 . : '\(.\)' 2>/dev/null ||
9450 echo X"$as_dir" |
9451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9452 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9453 /^X\(\/\/\)$/{ s//\1/; q; }
9454 /^X\(\/\).*/{ s//\1/; q; }
9455 s/.*/./; q'`
9456 done
9457 test ! -n "$as_dirs" || mkdir $as_dirs
9458 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9459 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9460 { (exit 1); exit 1; }; }; }
9461
9462 rm -f $ac_file
9463 mv $tmp/config.h $ac_file
9464 fi
9465 else
9466 cat $tmp/config.h
9467 rm -f $tmp/config.h
9468 fi
9469 done
9470 _ACEOF
9471 cat >>$CONFIG_STATUS <<\_ACEOF
9472
9473 #
9474 # CONFIG_COMMANDS section.
9475 #
9476 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9477 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9478 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9479 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9480 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9481 X"$ac_dest" : 'X\(//\)[^/]' \| \
9482 X"$ac_dest" : 'X\(//\)$' \| \
9483 X"$ac_dest" : 'X\(/\)' \| \
9484 . : '\(.\)' 2>/dev/null ||
9485 echo X"$ac_dest" |
9486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9488 /^X\(\/\/\)$/{ s//\1/; q; }
9489 /^X\(\/\).*/{ s//\1/; q; }
9490 s/.*/./; q'`
9491 { if $as_mkdir_p; then
9492 mkdir -p "$ac_dir"
9493 else
9494 as_dir="$ac_dir"
9495 as_dirs=
9496 while test ! -d "$as_dir"; do
9497 as_dirs="$as_dir $as_dirs"
9498 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9499 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9500 X"$as_dir" : 'X\(//\)[^/]' \| \
9501 X"$as_dir" : 'X\(//\)$' \| \
9502 X"$as_dir" : 'X\(/\)' \| \
9503 . : '\(.\)' 2>/dev/null ||
9504 echo X"$as_dir" |
9505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9506 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9507 /^X\(\/\/\)$/{ s//\1/; q; }
9508 /^X\(\/\).*/{ s//\1/; q; }
9509 s/.*/./; q'`
9510 done
9511 test ! -n "$as_dirs" || mkdir $as_dirs
9512 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9513 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9514 { (exit 1); exit 1; }; }; }
9515
9516 ac_builddir=.
9517
9518 if test "$ac_dir" != .; then
9519 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9520 # A "../" for each directory in $ac_dir_suffix.
9521 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9522 else
9523 ac_dir_suffix= ac_top_builddir=
9524 fi
9525
9526 case $srcdir in
9527 .) # No --srcdir option. We are building in place.
9528 ac_srcdir=.
9529 if test -z "$ac_top_builddir"; then
9530 ac_top_srcdir=.
9531 else
9532 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9533 fi ;;
9534 [\\/]* | ?:[\\/]* ) # Absolute path.
9535 ac_srcdir=$srcdir$ac_dir_suffix;
9536 ac_top_srcdir=$srcdir ;;
9537 *) # Relative path.
9538 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9539 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9540 esac
9541
9542 # Do not use `cd foo && pwd` to compute absolute paths, because
9543 # the directories may not exist.
9544 case `pwd` in
9545 .) ac_abs_builddir="$ac_dir";;
9546 *)
9547 case "$ac_dir" in
9548 .) ac_abs_builddir=`pwd`;;
9549 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9550 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9551 esac;;
9552 esac
9553 case $ac_abs_builddir in
9554 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9555 *)
9556 case ${ac_top_builddir}. in
9557 .) ac_abs_top_builddir=$ac_abs_builddir;;
9558 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9559 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9560 esac;;
9561 esac
9562 case $ac_abs_builddir in
9563 .) ac_abs_srcdir=$ac_srcdir;;
9564 *)
9565 case $ac_srcdir in
9566 .) ac_abs_srcdir=$ac_abs_builddir;;
9567 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9568 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9569 esac;;
9570 esac
9571 case $ac_abs_builddir in
9572 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9573 *)
9574 case $ac_top_srcdir in
9575 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9576 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9577 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9578 esac;;
9579 esac
9580
9581
9582 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9583 echo "$as_me: executing $ac_dest commands" >&6;}
9584 case $ac_dest in
9585 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
9586 default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
9587 esac
9588 done
9589 _ACEOF
9590
9591 cat >>$CONFIG_STATUS <<\_ACEOF
9592
9593 { (exit 0); exit 0; }
9594 _ACEOF
9595 chmod +x $CONFIG_STATUS
9596 ac_clean_files=$ac_clean_files_save
9597
9598
9599 # configure is writing to config.log, and then calls config.status.
9600 # config.status does its own redirection, appending to config.log.
9601 # Unfortunately, on DOS this fails, as config.log is still kept open
9602 # by configure, so config.status won't be able to write to it; its
9603 # output is simply discarded. So we exec the FD to /dev/null,
9604 # effectively closing config.log, so it can be properly (re)opened and
9605 # appended to by config.status. When coming back to configure, we
9606 # need to make the FD available again.
9607 if test "$no_create" != yes; then
9608 ac_cs_success=:
9609 ac_config_status_args=
9610 test "$silent" = yes &&
9611 ac_config_status_args="$ac_config_status_args --quiet"
9612 exec 5>/dev/null
9613 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9614 exec 5>>config.log
9615 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9616 # would make configure fail if this is the last instruction.
9617 $ac_cs_success || { (exit 1); exit 1; }
9618 fi
9619
This page took 0.300236 seconds and 4 git commands to generate.