Second part of ms1 to mt renaming.
[deliverable/binutils-gdb.git] / ld / 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="ldmain.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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS NO_WERROR 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 YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB LIBOBJS LTLIBOBJS'
313 ac_subst_files='TDIRS'
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 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=yes
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-targets alternative target configurations
860 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
861 --enable-werror treat compile warnings as errors
862 --enable-build-warnings Enable build-time compiler warnings
863 --disable-nls do not use Native Language Support
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
866
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-gnu-ld assume the C compiler uses GNU ld default=no
871 --with-pic try to use only PIC/non-PIC objects default=use both
872 --with-lib-path=dir1:dir2... set default LIB_PATH
873 --with-sysroot=DIR Search for usr/lib et al within DIR.
874 --with-included-gettext use the GNU gettext library included here
875
876 Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
883 CPP C preprocessor
884
885 Use these variables to override the choices made by `configure' or to help
886 it to find libraries and programs with nonstandard names/locations.
887
888 _ACEOF
889 fi
890
891 if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
893 ac_popdir=`pwd`
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
896 ac_builddir=.
897
898 if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902 else
903 ac_dir_suffix= ac_top_builddir=
904 fi
905
906 case $srcdir in
907 .) # No --srcdir option. We are building in place.
908 ac_srcdir=.
909 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=.
911 else
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 fi ;;
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
917 *) # Relative path.
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
920 esac
921
922 # Do not use `cd foo && pwd` to compute absolute paths, because
923 # the directories may not exist.
924 case `pwd` in
925 .) ac_abs_builddir="$ac_dir";;
926 *)
927 case "$ac_dir" in
928 .) ac_abs_builddir=`pwd`;;
929 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
930 *) ac_abs_builddir=`pwd`/"$ac_dir";;
931 esac;;
932 esac
933 case $ac_abs_builddir in
934 .) ac_abs_top_builddir=${ac_top_builddir}.;;
935 *)
936 case ${ac_top_builddir}. in
937 .) ac_abs_top_builddir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940 esac;;
941 esac
942 case $ac_abs_builddir in
943 .) ac_abs_srcdir=$ac_srcdir;;
944 *)
945 case $ac_srcdir in
946 .) ac_abs_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
948 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949 esac;;
950 esac
951 case $ac_abs_builddir in
952 .) ac_abs_top_srcdir=$ac_top_srcdir;;
953 *)
954 case $ac_top_srcdir in
955 .) ac_abs_top_srcdir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
958 esac;;
959 esac
960
961 cd $ac_dir
962 # Check for guested configure; otherwise get Cygnus style configure.
963 if test -f $ac_srcdir/configure.gnu; then
964 echo
965 $SHELL $ac_srcdir/configure.gnu --help=recursive
966 elif test -f $ac_srcdir/configure; then
967 echo
968 $SHELL $ac_srcdir/configure --help=recursive
969 elif test -f $ac_srcdir/configure.ac ||
970 test -f $ac_srcdir/configure.in; then
971 echo
972 $ac_configure --help
973 else
974 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
975 fi
976 cd $ac_popdir
977 done
978 fi
979
980 test -n "$ac_init_help" && exit 0
981 if $ac_init_version; then
982 cat <<\_ACEOF
983
984 Copyright (C) 2003 Free Software Foundation, Inc.
985 This configure script is free software; the Free Software Foundation
986 gives unlimited permission to copy, distribute and modify it.
987 _ACEOF
988 exit 0
989 fi
990 exec 5>config.log
991 cat >&5 <<_ACEOF
992 This file contains any messages produced by compilers while
993 running configure, to aid debugging if configure makes a mistake.
994
995 It was created by $as_me, which was
996 generated by GNU Autoconf 2.59. Invocation command line was
997
998 $ $0 $@
999
1000 _ACEOF
1001 {
1002 cat <<_ASUNAME
1003 ## --------- ##
1004 ## Platform. ##
1005 ## --------- ##
1006
1007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015
1016 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1023
1024 _ASUNAME
1025
1026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027 for as_dir in $PATH
1028 do
1029 IFS=$as_save_IFS
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1032 done
1033
1034 } >&5
1035
1036 cat >&5 <<_ACEOF
1037
1038
1039 ## ----------- ##
1040 ## Core tests. ##
1041 ## ----------- ##
1042
1043 _ACEOF
1044
1045
1046 # Keep a trace of the command line.
1047 # Strip out --no-create and --no-recursion so they do not pile up.
1048 # Strip out --silent because we don't want to record it for future runs.
1049 # Also quote any args containing shell meta-characters.
1050 # Make two passes to allow for proper duplicate-argument suppression.
1051 ac_configure_args=
1052 ac_configure_args0=
1053 ac_configure_args1=
1054 ac_sep=
1055 ac_must_keep_next=false
1056 for ac_pass in 1 2
1057 do
1058 for ac_arg
1059 do
1060 case $ac_arg in
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 continue ;;
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 esac
1068 case $ac_pass in
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 2)
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1074 else
1075 case $ac_arg in
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 esac
1083 ;;
1084 -* ) ac_must_keep_next=true ;;
1085 esac
1086 fi
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1089 ac_sep=" "
1090 ;;
1091 esac
1092 done
1093 done
1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096
1097 # When interrupted or exit'd, cleanup temporary files, and complete
1098 # config.log. We remove comments because anyway the quotes in there
1099 # would cause problems or look ugly.
1100 # WARNING: Be sure not to use single quotes in there, as some shells,
1101 # such as our DU 5.0 friend, will then `close' the trap.
1102 trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
1104 {
1105 echo
1106
1107 cat <<\_ASBOX
1108 ## ---------------- ##
1109 ## Cache variables. ##
1110 ## ---------------- ##
1111 _ASBOX
1112 echo
1113 # The following way of writing the cache mishandles newlines in values,
1114 {
1115 (set) 2>&1 |
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 *ac_space=\ *)
1118 sed -n \
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 ;;
1122 *)
1123 sed -n \
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 ;;
1126 esac;
1127 }
1128 echo
1129
1130 cat <<\_ASBOX
1131 ## ----------------- ##
1132 ## Output variables. ##
1133 ## ----------------- ##
1134 _ASBOX
1135 echo
1136 for ac_var in $ac_subst_vars
1137 do
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1142
1143 if test -n "$ac_subst_files"; then
1144 cat <<\_ASBOX
1145 ## ------------- ##
1146 ## Output files. ##
1147 ## ------------- ##
1148 _ASBOX
1149 echo
1150 for ac_var in $ac_subst_files
1151 do
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1154 done | sort
1155 echo
1156 fi
1157
1158 if test -s confdefs.h; then
1159 cat <<\_ASBOX
1160 ## ----------- ##
1161 ## confdefs.h. ##
1162 ## ----------- ##
1163 _ASBOX
1164 echo
1165 sed "/^$/d" confdefs.h | sort
1166 echo
1167 fi
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1171 } >&5
1172 rm -f core *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174 exit $exit_status
1175 ' 0
1176 for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178 done
1179 ac_signal=0
1180
1181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1182 rm -rf conftest* confdefs.h
1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184 echo >confdefs.h
1185
1186 # Predefined preprocessor variables.
1187
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_NAME "$PACKAGE_NAME"
1190 _ACEOF
1191
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195 _ACEOF
1196
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_STRING "$PACKAGE_STRING"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210 _ACEOF
1211
1212
1213 # Let the site file select an alternate cache file if it wants to.
1214 # Prefer explicitly selected file to automatically selected ones.
1215 if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 else
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 fi
1221 fi
1222 for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225 echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1227 . "$ac_site_file"
1228 fi
1229 done
1230
1231 if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236 echo "$as_me: loading cache $cache_file" >&6;}
1237 case $cache_file in
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1240 esac
1241 fi
1242 else
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244 echo "$as_me: creating cache $cache_file" >&6;}
1245 >$cache_file
1246 fi
1247
1248 # Check that the precious variables saved in the cache have kept the same
1249 # value.
1250 ac_cache_corrupted=false
1251 for ac_var in `(set) 2>&1 |
1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1258 set,)
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1262 ,set)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,);;
1267 *)
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272 echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274 echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1276 fi;;
1277 esac
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1280 case $ac_new_val in
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1284 esac
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288 esac
1289 fi
1290 done
1291 if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1297 fi
1298
1299 ac_ext=c
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324 ac_aux_dir=
1325 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1326 if test -f $ac_dir/install-sh; then
1327 ac_aux_dir=$ac_dir
1328 ac_install_sh="$ac_aux_dir/install-sh -c"
1329 break
1330 elif test -f $ac_dir/install.sh; then
1331 ac_aux_dir=$ac_dir
1332 ac_install_sh="$ac_aux_dir/install.sh -c"
1333 break
1334 elif test -f $ac_dir/shtool; then
1335 ac_aux_dir=$ac_dir
1336 ac_install_sh="$ac_aux_dir/shtool install -c"
1337 break
1338 fi
1339 done
1340 if test -z "$ac_aux_dir"; then
1341 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1342 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1343 { (exit 1); exit 1; }; }
1344 fi
1345 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1346 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1347 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1348
1349 # Make sure we can run config.sub.
1350 $ac_config_sub sun4 >/dev/null 2>&1 ||
1351 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1352 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1353 { (exit 1); exit 1; }; }
1354
1355 echo "$as_me:$LINENO: checking build system type" >&5
1356 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1357 if test "${ac_cv_build+set}" = set; then
1358 echo $ECHO_N "(cached) $ECHO_C" >&6
1359 else
1360 ac_cv_build_alias=$build_alias
1361 test -z "$ac_cv_build_alias" &&
1362 ac_cv_build_alias=`$ac_config_guess`
1363 test -z "$ac_cv_build_alias" &&
1364 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1365 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1366 { (exit 1); exit 1; }; }
1367 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1368 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1369 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1370 { (exit 1); exit 1; }; }
1371
1372 fi
1373 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1374 echo "${ECHO_T}$ac_cv_build" >&6
1375 build=$ac_cv_build
1376 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1377 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1378 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1379
1380
1381 echo "$as_me:$LINENO: checking host system type" >&5
1382 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1383 if test "${ac_cv_host+set}" = set; then
1384 echo $ECHO_N "(cached) $ECHO_C" >&6
1385 else
1386 ac_cv_host_alias=$host_alias
1387 test -z "$ac_cv_host_alias" &&
1388 ac_cv_host_alias=$ac_cv_build_alias
1389 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1390 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1391 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1392 { (exit 1); exit 1; }; }
1393
1394 fi
1395 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1396 echo "${ECHO_T}$ac_cv_host" >&6
1397 host=$ac_cv_host
1398 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1399 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1400 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1401
1402
1403 echo "$as_me:$LINENO: checking target system type" >&5
1404 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1405 if test "${ac_cv_target+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1407 else
1408 ac_cv_target_alias=$target_alias
1409 test "x$ac_cv_target_alias" = "x" &&
1410 ac_cv_target_alias=$ac_cv_host_alias
1411 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1412 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1413 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1414 { (exit 1); exit 1; }; }
1415
1416 fi
1417 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1418 echo "${ECHO_T}$ac_cv_target" >&6
1419 target=$ac_cv_target
1420 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1421 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1422 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423
1424
1425 # The aliases save the names the user supplied, while $host etc.
1426 # will get canonicalized.
1427 test -n "$target_alias" &&
1428 test "$program_prefix$program_suffix$program_transform_name" = \
1429 NONENONEs,x,x, &&
1430 program_prefix=${target_alias}-
1431 ac_ext=c
1432 ac_cpp='$CPP $CPPFLAGS'
1433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1436 if test -n "$ac_tool_prefix"; then
1437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1438 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1439 echo "$as_me:$LINENO: checking for $ac_word" >&5
1440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1441 if test "${ac_cv_prog_CC+set}" = set; then
1442 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 else
1444 if test -n "$CC"; then
1445 ac_cv_prog_CC="$CC" # Let the user override the test.
1446 else
1447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448 for as_dir in $PATH
1449 do
1450 IFS=$as_save_IFS
1451 test -z "$as_dir" && as_dir=.
1452 for ac_exec_ext in '' $ac_executable_extensions; do
1453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1454 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1456 break 2
1457 fi
1458 done
1459 done
1460
1461 fi
1462 fi
1463 CC=$ac_cv_prog_CC
1464 if test -n "$CC"; then
1465 echo "$as_me:$LINENO: result: $CC" >&5
1466 echo "${ECHO_T}$CC" >&6
1467 else
1468 echo "$as_me:$LINENO: result: no" >&5
1469 echo "${ECHO_T}no" >&6
1470 fi
1471
1472 fi
1473 if test -z "$ac_cv_prog_CC"; then
1474 ac_ct_CC=$CC
1475 # Extract the first word of "gcc", so it can be a program name with args.
1476 set dummy gcc; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 else
1482 if test -n "$ac_ct_CC"; then
1483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1484 else
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 for as_dir in $PATH
1487 do
1488 IFS=$as_save_IFS
1489 test -z "$as_dir" && as_dir=.
1490 for ac_exec_ext in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492 ac_cv_prog_ac_ct_CC="gcc"
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1494 break 2
1495 fi
1496 done
1497 done
1498
1499 fi
1500 fi
1501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1502 if test -n "$ac_ct_CC"; then
1503 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1504 echo "${ECHO_T}$ac_ct_CC" >&6
1505 else
1506 echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1508 fi
1509
1510 CC=$ac_ct_CC
1511 else
1512 CC="$ac_cv_prog_CC"
1513 fi
1514
1515 if test -z "$CC"; then
1516 if test -n "$ac_tool_prefix"; then
1517 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1518 set dummy ${ac_tool_prefix}cc; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 else
1524 if test -n "$CC"; then
1525 ac_cv_prog_CC="$CC" # Let the user override the test.
1526 else
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528 for as_dir in $PATH
1529 do
1530 IFS=$as_save_IFS
1531 test -z "$as_dir" && as_dir=.
1532 for ac_exec_ext in '' $ac_executable_extensions; do
1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534 ac_cv_prog_CC="${ac_tool_prefix}cc"
1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536 break 2
1537 fi
1538 done
1539 done
1540
1541 fi
1542 fi
1543 CC=$ac_cv_prog_CC
1544 if test -n "$CC"; then
1545 echo "$as_me:$LINENO: result: $CC" >&5
1546 echo "${ECHO_T}$CC" >&6
1547 else
1548 echo "$as_me:$LINENO: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1550 fi
1551
1552 fi
1553 if test -z "$ac_cv_prog_CC"; then
1554 ac_ct_CC=$CC
1555 # Extract the first word of "cc", so it can be a program name with args.
1556 set dummy cc; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 else
1562 if test -n "$ac_ct_CC"; then
1563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1564 else
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 for as_dir in $PATH
1567 do
1568 IFS=$as_save_IFS
1569 test -z "$as_dir" && as_dir=.
1570 for ac_exec_ext in '' $ac_executable_extensions; do
1571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572 ac_cv_prog_ac_ct_CC="cc"
1573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574 break 2
1575 fi
1576 done
1577 done
1578
1579 fi
1580 fi
1581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1582 if test -n "$ac_ct_CC"; then
1583 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1584 echo "${ECHO_T}$ac_ct_CC" >&6
1585 else
1586 echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1588 fi
1589
1590 CC=$ac_ct_CC
1591 else
1592 CC="$ac_cv_prog_CC"
1593 fi
1594
1595 fi
1596 if test -z "$CC"; then
1597 # Extract the first word of "cc", so it can be a program name with args.
1598 set dummy cc; ac_word=$2
1599 echo "$as_me:$LINENO: checking for $ac_word" >&5
1600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601 if test "${ac_cv_prog_CC+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1603 else
1604 if test -n "$CC"; then
1605 ac_cv_prog_CC="$CC" # Let the user override the test.
1606 else
1607 ac_prog_rejected=no
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 for as_dir in $PATH
1610 do
1611 IFS=$as_save_IFS
1612 test -z "$as_dir" && as_dir=.
1613 for ac_exec_ext in '' $ac_executable_extensions; do
1614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1616 ac_prog_rejected=yes
1617 continue
1618 fi
1619 ac_cv_prog_CC="cc"
1620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1621 break 2
1622 fi
1623 done
1624 done
1625
1626 if test $ac_prog_rejected = yes; then
1627 # We found a bogon in the path, so make sure we never use it.
1628 set dummy $ac_cv_prog_CC
1629 shift
1630 if test $# != 0; then
1631 # We chose a different compiler from the bogus one.
1632 # However, it has the same basename, so the bogon will be chosen
1633 # first if we set CC to just the basename; use the full file name.
1634 shift
1635 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1636 fi
1637 fi
1638 fi
1639 fi
1640 CC=$ac_cv_prog_CC
1641 if test -n "$CC"; then
1642 echo "$as_me:$LINENO: result: $CC" >&5
1643 echo "${ECHO_T}$CC" >&6
1644 else
1645 echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1647 fi
1648
1649 fi
1650 if test -z "$CC"; then
1651 if test -n "$ac_tool_prefix"; then
1652 for ac_prog in cl
1653 do
1654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_CC+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1660 else
1661 if test -n "$CC"; then
1662 ac_cv_prog_CC="$CC" # Let the user override the test.
1663 else
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 for as_dir in $PATH
1666 do
1667 IFS=$as_save_IFS
1668 test -z "$as_dir" && as_dir=.
1669 for ac_exec_ext in '' $ac_executable_extensions; do
1670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673 break 2
1674 fi
1675 done
1676 done
1677
1678 fi
1679 fi
1680 CC=$ac_cv_prog_CC
1681 if test -n "$CC"; then
1682 echo "$as_me:$LINENO: result: $CC" >&5
1683 echo "${ECHO_T}$CC" >&6
1684 else
1685 echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1687 fi
1688
1689 test -n "$CC" && break
1690 done
1691 fi
1692 if test -z "$CC"; then
1693 ac_ct_CC=$CC
1694 for ac_prog in cl
1695 do
1696 # Extract the first word of "$ac_prog", so it can be a program name with args.
1697 set dummy $ac_prog; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 else
1703 if test -n "$ac_ct_CC"; then
1704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1705 else
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 for as_dir in $PATH
1708 do
1709 IFS=$as_save_IFS
1710 test -z "$as_dir" && as_dir=.
1711 for ac_exec_ext in '' $ac_executable_extensions; do
1712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713 ac_cv_prog_ac_ct_CC="$ac_prog"
1714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 break 2
1716 fi
1717 done
1718 done
1719
1720 fi
1721 fi
1722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1723 if test -n "$ac_ct_CC"; then
1724 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1725 echo "${ECHO_T}$ac_ct_CC" >&6
1726 else
1727 echo "$as_me:$LINENO: result: no" >&5
1728 echo "${ECHO_T}no" >&6
1729 fi
1730
1731 test -n "$ac_ct_CC" && break
1732 done
1733
1734 CC=$ac_ct_CC
1735 fi
1736
1737 fi
1738
1739
1740 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1741 See \`config.log' for more details." >&5
1742 echo "$as_me: error: no acceptable C compiler found in \$PATH
1743 See \`config.log' for more details." >&2;}
1744 { (exit 1); exit 1; }; }
1745
1746 # Provide some information about the compiler.
1747 echo "$as_me:$LINENO:" \
1748 "checking for C compiler version" >&5
1749 ac_compiler=`set X $ac_compile; echo $2`
1750 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1751 (eval $ac_compiler --version </dev/null >&5) 2>&5
1752 ac_status=$?
1753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754 (exit $ac_status); }
1755 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1756 (eval $ac_compiler -v </dev/null >&5) 2>&5
1757 ac_status=$?
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }
1760 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1761 (eval $ac_compiler -V </dev/null >&5) 2>&5
1762 ac_status=$?
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }
1765
1766 cat >conftest.$ac_ext <<_ACEOF
1767 /* confdefs.h. */
1768 _ACEOF
1769 cat confdefs.h >>conftest.$ac_ext
1770 cat >>conftest.$ac_ext <<_ACEOF
1771 /* end confdefs.h. */
1772
1773 int
1774 main ()
1775 {
1776
1777 ;
1778 return 0;
1779 }
1780 _ACEOF
1781 ac_clean_files_save=$ac_clean_files
1782 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1783 # Try to create an executable without -o first, disregard a.out.
1784 # It will help us diagnose broken compilers, and finding out an intuition
1785 # of exeext.
1786 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1787 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1788 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1789 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1790 (eval $ac_link_default) 2>&5
1791 ac_status=$?
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); }; then
1794 # Find the output, starting from the most likely. This scheme is
1795 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1796 # resort.
1797
1798 # Be careful to initialize this variable, since it used to be cached.
1799 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1800 ac_cv_exeext=
1801 # b.out is created by i960 compilers.
1802 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1803 do
1804 test -f "$ac_file" || continue
1805 case $ac_file in
1806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1807 ;;
1808 conftest.$ac_ext )
1809 # This is the source file.
1810 ;;
1811 [ab].out )
1812 # We found the default executable, but exeext='' is most
1813 # certainly right.
1814 break;;
1815 *.* )
1816 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1817 # FIXME: I believe we export ac_cv_exeext for Libtool,
1818 # but it would be cool to find out if it's true. Does anybody
1819 # maintain Libtool? --akim.
1820 export ac_cv_exeext
1821 break;;
1822 * )
1823 break;;
1824 esac
1825 done
1826 else
1827 echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&5
1832 echo "$as_me: error: C compiler cannot create executables
1833 See \`config.log' for more details." >&2;}
1834 { (exit 77); exit 77; }; }
1835 fi
1836
1837 ac_exeext=$ac_cv_exeext
1838 echo "$as_me:$LINENO: result: $ac_file" >&5
1839 echo "${ECHO_T}$ac_file" >&6
1840
1841 # Check the compiler produces executables we can run. If not, either
1842 # the compiler is broken, or we cross compile.
1843 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1844 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1845 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1846 # If not cross compiling, check that we can run a simple program.
1847 if test "$cross_compiling" != yes; then
1848 if { ac_try='./$ac_file'
1849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1850 (eval $ac_try) 2>&5
1851 ac_status=$?
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }; }; then
1854 cross_compiling=no
1855 else
1856 if test "$cross_compiling" = maybe; then
1857 cross_compiling=yes
1858 else
1859 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1860 If you meant to cross compile, use \`--host'.
1861 See \`config.log' for more details." >&5
1862 echo "$as_me: error: cannot run C compiled programs.
1863 If you meant to cross compile, use \`--host'.
1864 See \`config.log' for more details." >&2;}
1865 { (exit 1); exit 1; }; }
1866 fi
1867 fi
1868 fi
1869 echo "$as_me:$LINENO: result: yes" >&5
1870 echo "${ECHO_T}yes" >&6
1871
1872 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1873 ac_clean_files=$ac_clean_files_save
1874 # Check the compiler produces executables we can run. If not, either
1875 # the compiler is broken, or we cross compile.
1876 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1877 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1878 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1879 echo "${ECHO_T}$cross_compiling" >&6
1880
1881 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1882 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1884 (eval $ac_link) 2>&5
1885 ac_status=$?
1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887 (exit $ac_status); }; then
1888 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1889 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1890 # work properly (i.e., refer to `conftest.exe'), while it won't with
1891 # `rm'.
1892 for ac_file in conftest.exe conftest conftest.*; do
1893 test -f "$ac_file" || continue
1894 case $ac_file in
1895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1896 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1897 export ac_cv_exeext
1898 break;;
1899 * ) break;;
1900 esac
1901 done
1902 else
1903 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&5
1905 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&2;}
1907 { (exit 1); exit 1; }; }
1908 fi
1909
1910 rm -f conftest$ac_cv_exeext
1911 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1912 echo "${ECHO_T}$ac_cv_exeext" >&6
1913
1914 rm -f conftest.$ac_ext
1915 EXEEXT=$ac_cv_exeext
1916 ac_exeext=$EXEEXT
1917 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1918 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1919 if test "${ac_cv_objext+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922 cat >conftest.$ac_ext <<_ACEOF
1923 /* confdefs.h. */
1924 _ACEOF
1925 cat confdefs.h >>conftest.$ac_ext
1926 cat >>conftest.$ac_ext <<_ACEOF
1927 /* end confdefs.h. */
1928
1929 int
1930 main ()
1931 {
1932
1933 ;
1934 return 0;
1935 }
1936 _ACEOF
1937 rm -f conftest.o conftest.obj
1938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1939 (eval $ac_compile) 2>&5
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; then
1943 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1944 case $ac_file in
1945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1946 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1947 break;;
1948 esac
1949 done
1950 else
1951 echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1953
1954 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1955 See \`config.log' for more details." >&5
1956 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1957 See \`config.log' for more details." >&2;}
1958 { (exit 1); exit 1; }; }
1959 fi
1960
1961 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1962 fi
1963 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1964 echo "${ECHO_T}$ac_cv_objext" >&6
1965 OBJEXT=$ac_cv_objext
1966 ac_objext=$OBJEXT
1967 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1968 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1969 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972 cat >conftest.$ac_ext <<_ACEOF
1973 /* confdefs.h. */
1974 _ACEOF
1975 cat confdefs.h >>conftest.$ac_ext
1976 cat >>conftest.$ac_ext <<_ACEOF
1977 /* end confdefs.h. */
1978
1979 int
1980 main ()
1981 {
1982 #ifndef __GNUC__
1983 choke me
1984 #endif
1985
1986 ;
1987 return 0;
1988 }
1989 _ACEOF
1990 rm -f conftest.$ac_objext
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992 (eval $ac_compile) 2>conftest.er1
1993 ac_status=$?
1994 grep -v '^ *+' conftest.er1 >conftest.err
1995 rm -f conftest.er1
1996 cat conftest.err >&5
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); } &&
1999 { ac_try='test -z "$ac_c_werror_flag"
2000 || test ! -s conftest.err'
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 (eval $ac_try) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; } &&
2006 { ac_try='test -s conftest.$ac_objext'
2007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008 (eval $ac_try) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2012 ac_compiler_gnu=yes
2013 else
2014 echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2016
2017 ac_compiler_gnu=no
2018 fi
2019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2020 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2021
2022 fi
2023 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2024 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2025 GCC=`test $ac_compiler_gnu = yes && echo yes`
2026 ac_test_CFLAGS=${CFLAGS+set}
2027 ac_save_CFLAGS=$CFLAGS
2028 CFLAGS="-g"
2029 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2030 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2031 if test "${ac_cv_prog_cc_g+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034 cat >conftest.$ac_ext <<_ACEOF
2035 /* confdefs.h. */
2036 _ACEOF
2037 cat confdefs.h >>conftest.$ac_ext
2038 cat >>conftest.$ac_ext <<_ACEOF
2039 /* end confdefs.h. */
2040
2041 int
2042 main ()
2043 {
2044
2045 ;
2046 return 0;
2047 }
2048 _ACEOF
2049 rm -f conftest.$ac_objext
2050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2051 (eval $ac_compile) 2>conftest.er1
2052 ac_status=$?
2053 grep -v '^ *+' conftest.er1 >conftest.err
2054 rm -f conftest.er1
2055 cat conftest.err >&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); } &&
2058 { ac_try='test -z "$ac_c_werror_flag"
2059 || test ! -s conftest.err'
2060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061 (eval $ac_try) 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; } &&
2065 { ac_try='test -s conftest.$ac_objext'
2066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2067 (eval $ac_try) 2>&5
2068 ac_status=$?
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; }; then
2071 ac_cv_prog_cc_g=yes
2072 else
2073 echo "$as_me: failed program was:" >&5
2074 sed 's/^/| /' conftest.$ac_ext >&5
2075
2076 ac_cv_prog_cc_g=no
2077 fi
2078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2079 fi
2080 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2081 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2082 if test "$ac_test_CFLAGS" = set; then
2083 CFLAGS=$ac_save_CFLAGS
2084 elif test $ac_cv_prog_cc_g = yes; then
2085 if test "$GCC" = yes; then
2086 CFLAGS="-g -O2"
2087 else
2088 CFLAGS="-g"
2089 fi
2090 else
2091 if test "$GCC" = yes; then
2092 CFLAGS="-O2"
2093 else
2094 CFLAGS=
2095 fi
2096 fi
2097 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2098 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2099 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102 ac_cv_prog_cc_stdc=no
2103 ac_save_CC=$CC
2104 cat >conftest.$ac_ext <<_ACEOF
2105 /* confdefs.h. */
2106 _ACEOF
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h. */
2110 #include <stdarg.h>
2111 #include <stdio.h>
2112 #include <sys/types.h>
2113 #include <sys/stat.h>
2114 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2115 struct buf { int x; };
2116 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2117 static char *e (p, i)
2118 char **p;
2119 int i;
2120 {
2121 return p[i];
2122 }
2123 static char *f (char * (*g) (char **, int), char **p, ...)
2124 {
2125 char *s;
2126 va_list v;
2127 va_start (v,p);
2128 s = g (p, va_arg (v,int));
2129 va_end (v);
2130 return s;
2131 }
2132
2133 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2134 function prototypes and stuff, but not '\xHH' hex character constants.
2135 These don't provoke an error unfortunately, instead are silently treated
2136 as 'x'. The following induces an error, until -std1 is added to get
2137 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2138 array size at least. It's necessary to write '\x00'==0 to get something
2139 that's true only with -std1. */
2140 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2141
2142 int test (int i, double x);
2143 struct s1 {int (*f) (int a);};
2144 struct s2 {int (*f) (double a);};
2145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2146 int argc;
2147 char **argv;
2148 int
2149 main ()
2150 {
2151 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2152 ;
2153 return 0;
2154 }
2155 _ACEOF
2156 # Don't try gcc -ansi; that turns off useful extensions and
2157 # breaks some systems' header files.
2158 # AIX -qlanglvl=ansi
2159 # Ultrix and OSF/1 -std1
2160 # HP-UX 10.20 and later -Ae
2161 # HP-UX older versions -Aa -D_HPUX_SOURCE
2162 # SVR4 -Xc -D__EXTENSIONS__
2163 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2164 do
2165 CC="$ac_save_CC $ac_arg"
2166 rm -f conftest.$ac_objext
2167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168 (eval $ac_compile) 2>conftest.er1
2169 ac_status=$?
2170 grep -v '^ *+' conftest.er1 >conftest.err
2171 rm -f conftest.er1
2172 cat conftest.err >&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); } &&
2175 { ac_try='test -z "$ac_c_werror_flag"
2176 || test ! -s conftest.err'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 (eval $ac_try) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; } &&
2182 { ac_try='test -s conftest.$ac_objext'
2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 (eval $ac_try) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; }; then
2188 ac_cv_prog_cc_stdc=$ac_arg
2189 break
2190 else
2191 echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2193
2194 fi
2195 rm -f conftest.err conftest.$ac_objext
2196 done
2197 rm -f conftest.$ac_ext conftest.$ac_objext
2198 CC=$ac_save_CC
2199
2200 fi
2201
2202 case "x$ac_cv_prog_cc_stdc" in
2203 x|xno)
2204 echo "$as_me:$LINENO: result: none needed" >&5
2205 echo "${ECHO_T}none needed" >&6 ;;
2206 *)
2207 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2208 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2209 CC="$CC $ac_cv_prog_cc_stdc" ;;
2210 esac
2211
2212 # Some people use a C++ compiler to compile C. Since we use `exit',
2213 # in C++ we need to declare it. In case someone uses the same compiler
2214 # for both compiling C and C++ we need to have the C++ compiler decide
2215 # the declaration of exit, since it's the most demanding environment.
2216 cat >conftest.$ac_ext <<_ACEOF
2217 #ifndef __cplusplus
2218 choke me
2219 #endif
2220 _ACEOF
2221 rm -f conftest.$ac_objext
2222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2223 (eval $ac_compile) 2>conftest.er1
2224 ac_status=$?
2225 grep -v '^ *+' conftest.er1 >conftest.err
2226 rm -f conftest.er1
2227 cat conftest.err >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); } &&
2230 { ac_try='test -z "$ac_c_werror_flag"
2231 || test ! -s conftest.err'
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); }; } &&
2237 { ac_try='test -s conftest.$ac_objext'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 (eval $ac_try) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; }; then
2243 for ac_declaration in \
2244 '' \
2245 'extern "C" void std::exit (int) throw (); using std::exit;' \
2246 'extern "C" void std::exit (int); using std::exit;' \
2247 'extern "C" void exit (int) throw ();' \
2248 'extern "C" void exit (int);' \
2249 'void exit (int);'
2250 do
2251 cat >conftest.$ac_ext <<_ACEOF
2252 /* confdefs.h. */
2253 _ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h. */
2257 $ac_declaration
2258 #include <stdlib.h>
2259 int
2260 main ()
2261 {
2262 exit (42);
2263 ;
2264 return 0;
2265 }
2266 _ACEOF
2267 rm -f conftest.$ac_objext
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269 (eval $ac_compile) 2>conftest.er1
2270 ac_status=$?
2271 grep -v '^ *+' conftest.er1 >conftest.err
2272 rm -f conftest.er1
2273 cat conftest.err >&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); } &&
2276 { ac_try='test -z "$ac_c_werror_flag"
2277 || test ! -s conftest.err'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 (eval $ac_try) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; } &&
2283 { ac_try='test -s conftest.$ac_objext'
2284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285 (eval $ac_try) 2>&5
2286 ac_status=$?
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; }; then
2289 :
2290 else
2291 echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2293
2294 continue
2295 fi
2296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2297 cat >conftest.$ac_ext <<_ACEOF
2298 /* confdefs.h. */
2299 _ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h. */
2303 $ac_declaration
2304 int
2305 main ()
2306 {
2307 exit (42);
2308 ;
2309 return 0;
2310 }
2311 _ACEOF
2312 rm -f conftest.$ac_objext
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314 (eval $ac_compile) 2>conftest.er1
2315 ac_status=$?
2316 grep -v '^ *+' conftest.er1 >conftest.err
2317 rm -f conftest.er1
2318 cat conftest.err >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); } &&
2321 { ac_try='test -z "$ac_c_werror_flag"
2322 || test ! -s conftest.err'
2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 (eval $ac_try) 2>&5
2325 ac_status=$?
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; } &&
2328 { ac_try='test -s conftest.$ac_objext'
2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 (eval $ac_try) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; }; then
2334 break
2335 else
2336 echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2338
2339 fi
2340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2341 done
2342 rm -f conftest*
2343 if test -n "$ac_declaration"; then
2344 echo '#ifdef __cplusplus' >>confdefs.h
2345 echo $ac_declaration >>confdefs.h
2346 echo '#endif' >>confdefs.h
2347 fi
2348
2349 else
2350 echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2352
2353 fi
2354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2355 ac_ext=c
2356 ac_cpp='$CPP $CPPFLAGS'
2357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2360
2361
2362 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2363 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2364 if test "${ac_cv_search_strerror+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367 ac_func_search_save_LIBS=$LIBS
2368 ac_cv_search_strerror=no
2369 cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h. */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2375
2376 /* Override any gcc2 internal prototype to avoid an error. */
2377 #ifdef __cplusplus
2378 extern "C"
2379 #endif
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2382 char strerror ();
2383 int
2384 main ()
2385 {
2386 strerror ();
2387 ;
2388 return 0;
2389 }
2390 _ACEOF
2391 rm -f conftest.$ac_objext conftest$ac_exeext
2392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2393 (eval $ac_link) 2>conftest.er1
2394 ac_status=$?
2395 grep -v '^ *+' conftest.er1 >conftest.err
2396 rm -f conftest.er1
2397 cat conftest.err >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -z "$ac_c_werror_flag"
2401 || test ! -s conftest.err'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; } &&
2407 { ac_try='test -s conftest$ac_exeext'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 (eval $ac_try) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2413 ac_cv_search_strerror="none required"
2414 else
2415 echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2417
2418 fi
2419 rm -f conftest.err conftest.$ac_objext \
2420 conftest$ac_exeext conftest.$ac_ext
2421 if test "$ac_cv_search_strerror" = no; then
2422 for ac_lib in cposix; do
2423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2424 cat >conftest.$ac_ext <<_ACEOF
2425 /* confdefs.h. */
2426 _ACEOF
2427 cat confdefs.h >>conftest.$ac_ext
2428 cat >>conftest.$ac_ext <<_ACEOF
2429 /* end confdefs.h. */
2430
2431 /* Override any gcc2 internal prototype to avoid an error. */
2432 #ifdef __cplusplus
2433 extern "C"
2434 #endif
2435 /* We use char because int might match the return type of a gcc2
2436 builtin and then its argument prototype would still apply. */
2437 char strerror ();
2438 int
2439 main ()
2440 {
2441 strerror ();
2442 ;
2443 return 0;
2444 }
2445 _ACEOF
2446 rm -f conftest.$ac_objext conftest$ac_exeext
2447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2448 (eval $ac_link) 2>conftest.er1
2449 ac_status=$?
2450 grep -v '^ *+' conftest.er1 >conftest.err
2451 rm -f conftest.er1
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
2455 { ac_try='test -z "$ac_c_werror_flag"
2456 || test ! -s conftest.err'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 (eval $ac_try) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try='test -s conftest$ac_exeext'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 (eval $ac_try) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2468 ac_cv_search_strerror="-l$ac_lib"
2469 break
2470 else
2471 echo "$as_me: failed program was:" >&5
2472 sed 's/^/| /' conftest.$ac_ext >&5
2473
2474 fi
2475 rm -f conftest.err conftest.$ac_objext \
2476 conftest$ac_exeext conftest.$ac_ext
2477 done
2478 fi
2479 LIBS=$ac_func_search_save_LIBS
2480 fi
2481 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2482 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2483 if test "$ac_cv_search_strerror" != no; then
2484 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2485
2486 fi
2487
2488
2489 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2490 am__api_version="1.9"
2491 # Find a good install program. We prefer a C program (faster),
2492 # so one script is as good as another. But avoid the broken or
2493 # incompatible versions:
2494 # SysV /etc/install, /usr/sbin/install
2495 # SunOS /usr/etc/install
2496 # IRIX /sbin/install
2497 # AIX /bin/install
2498 # AmigaOS /C/install, which installs bootblocks on floppy discs
2499 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2500 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2501 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2502 # OS/2's system install, which has a completely different semantic
2503 # ./install, which can be erroneously created by make from ./install.sh.
2504 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2505 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2506 if test -z "$INSTALL"; then
2507 if test "${ac_cv_path_install+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2512 do
2513 IFS=$as_save_IFS
2514 test -z "$as_dir" && as_dir=.
2515 # Account for people who put trailing slashes in PATH elements.
2516 case $as_dir/ in
2517 ./ | .// | /cC/* | \
2518 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2519 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2520 /usr/ucb/* ) ;;
2521 *)
2522 # OSF1 and SCO ODT 3.0 have their own names for install.
2523 # Don't use installbsd from OSF since it installs stuff as root
2524 # by default.
2525 for ac_prog in ginstall scoinst install; do
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2528 if test $ac_prog = install &&
2529 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2530 # AIX install. It has an incompatible calling convention.
2531 :
2532 elif test $ac_prog = install &&
2533 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2534 # program-specific install script used by HP pwplus--don't use.
2535 :
2536 else
2537 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2538 break 3
2539 fi
2540 fi
2541 done
2542 done
2543 ;;
2544 esac
2545 done
2546
2547
2548 fi
2549 if test "${ac_cv_path_install+set}" = set; then
2550 INSTALL=$ac_cv_path_install
2551 else
2552 # As a last resort, use the slow shell script. We don't cache a
2553 # path for INSTALL within a source directory, because that will
2554 # break other packages using the cache if that directory is
2555 # removed, or if the path is relative.
2556 INSTALL=$ac_install_sh
2557 fi
2558 fi
2559 echo "$as_me:$LINENO: result: $INSTALL" >&5
2560 echo "${ECHO_T}$INSTALL" >&6
2561
2562 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2563 # It thinks the first close brace ends the variable substitution.
2564 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2565
2566 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2567
2568 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2569
2570 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2571 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2572 # Just in case
2573 sleep 1
2574 echo timestamp > conftest.file
2575 # Do `set' in a subshell so we don't clobber the current shell's
2576 # arguments. Must try -L first in case configure is actually a
2577 # symlink; some systems play weird games with the mod time of symlinks
2578 # (eg FreeBSD returns the mod time of the symlink's containing
2579 # directory).
2580 if (
2581 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2582 if test "$*" = "X"; then
2583 # -L didn't work.
2584 set X `ls -t $srcdir/configure conftest.file`
2585 fi
2586 rm -f conftest.file
2587 if test "$*" != "X $srcdir/configure conftest.file" \
2588 && test "$*" != "X conftest.file $srcdir/configure"; then
2589
2590 # If neither matched, then we have a broken ls. This can happen
2591 # if, for instance, CONFIG_SHELL is bash and it inherits a
2592 # broken ls alias from the environment. This has actually
2593 # happened. Such a system could not be considered "sane".
2594 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2595 alias in your environment" >&5
2596 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2597 alias in your environment" >&2;}
2598 { (exit 1); exit 1; }; }
2599 fi
2600
2601 test "$2" = conftest.file
2602 )
2603 then
2604 # Ok.
2605 :
2606 else
2607 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2608 Check your system clock" >&5
2609 echo "$as_me: error: newly created file is older than distributed files!
2610 Check your system clock" >&2;}
2611 { (exit 1); exit 1; }; }
2612 fi
2613 echo "$as_me:$LINENO: result: yes" >&5
2614 echo "${ECHO_T}yes" >&6
2615 test "$program_prefix" != NONE &&
2616 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2617 # Use a double $ so make ignores it.
2618 test "$program_suffix" != NONE &&
2619 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2620 # Double any \ or $. echo might interpret backslashes.
2621 # By default was `s,x,x', remove it if useless.
2622 cat <<\_ACEOF >conftest.sed
2623 s/[\\$]/&&/g;s/;s,x,x,$//
2624 _ACEOF
2625 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2626 rm conftest.sed
2627
2628 # expand $ac_aux_dir to an absolute path
2629 am_aux_dir=`cd $ac_aux_dir && pwd`
2630
2631 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2632 # Use eval to expand $SHELL
2633 if eval "$MISSING --run true"; then
2634 am_missing_run="$MISSING --run "
2635 else
2636 am_missing_run=
2637 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2638 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2639 fi
2640
2641 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2642 # We used to keeping the `.' as first argument, in order to
2643 # allow $(mkdir_p) to be used without argument. As in
2644 # $(mkdir_p) $(somedir)
2645 # where $(somedir) is conditionally defined. However this is wrong
2646 # for two reasons:
2647 # 1. if the package is installed by a user who cannot write `.'
2648 # make install will fail,
2649 # 2. the above comment should most certainly read
2650 # $(mkdir_p) $(DESTDIR)$(somedir)
2651 # so it does not work when $(somedir) is undefined and
2652 # $(DESTDIR) is not.
2653 # To support the latter case, we have to write
2654 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2655 # so the `.' trick is pointless.
2656 mkdir_p='mkdir -p --'
2657 else
2658 # On NextStep and OpenStep, the `mkdir' command does not
2659 # recognize any option. It will interpret all options as
2660 # directories to create, and then abort because `.' already
2661 # exists.
2662 for d in ./-p ./--version;
2663 do
2664 test -d $d && rmdir $d
2665 done
2666 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2667 if test -f "$ac_aux_dir/mkinstalldirs"; then
2668 mkdir_p='$(mkinstalldirs)'
2669 else
2670 mkdir_p='$(install_sh) -d'
2671 fi
2672 fi
2673
2674 for ac_prog in gawk mawk nawk awk
2675 do
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy $ac_prog; ac_word=$2
2678 echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680 if test "${ac_cv_prog_AWK+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683 if test -n "$AWK"; then
2684 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_AWK="$ac_prog"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697 done
2698 done
2699
2700 fi
2701 fi
2702 AWK=$ac_cv_prog_AWK
2703 if test -n "$AWK"; then
2704 echo "$as_me:$LINENO: result: $AWK" >&5
2705 echo "${ECHO_T}$AWK" >&6
2706 else
2707 echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6
2709 fi
2710
2711 test -n "$AWK" && break
2712 done
2713
2714 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2715 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2716 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2717 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720 cat >conftest.make <<\_ACEOF
2721 all:
2722 @echo 'ac_maketemp="$(MAKE)"'
2723 _ACEOF
2724 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2725 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2726 if test -n "$ac_maketemp"; then
2727 eval ac_cv_prog_make_${ac_make}_set=yes
2728 else
2729 eval ac_cv_prog_make_${ac_make}_set=no
2730 fi
2731 rm -f conftest.make
2732 fi
2733 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2734 echo "$as_me:$LINENO: result: yes" >&5
2735 echo "${ECHO_T}yes" >&6
2736 SET_MAKE=
2737 else
2738 echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6
2740 SET_MAKE="MAKE=${MAKE-make}"
2741 fi
2742
2743 rm -rf .tst 2>/dev/null
2744 mkdir .tst 2>/dev/null
2745 if test -d .tst; then
2746 am__leading_dot=.
2747 else
2748 am__leading_dot=_
2749 fi
2750 rmdir .tst 2>/dev/null
2751
2752 DEPDIR="${am__leading_dot}deps"
2753
2754 ac_config_commands="$ac_config_commands depfiles"
2755
2756
2757 am_make=${MAKE-make}
2758 cat > confinc << 'END'
2759 am__doit:
2760 @echo done
2761 .PHONY: am__doit
2762 END
2763 # If we don't find an include directive, just comment out the code.
2764 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2765 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2766 am__include="#"
2767 am__quote=
2768 _am_result=none
2769 # First try GNU make style include.
2770 echo "include confinc" > confmf
2771 # We grep out `Entering directory' and `Leaving directory'
2772 # messages which can occur if `w' ends up in MAKEFLAGS.
2773 # In particular we don't look at `^make:' because GNU make might
2774 # be invoked under some other name (usually "gmake"), in which
2775 # case it prints its new name instead of `make'.
2776 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2777 am__include=include
2778 am__quote=
2779 _am_result=GNU
2780 fi
2781 # Now try BSD make style include.
2782 if test "$am__include" = "#"; then
2783 echo '.include "confinc"' > confmf
2784 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2785 am__include=.include
2786 am__quote="\""
2787 _am_result=BSD
2788 fi
2789 fi
2790
2791
2792 echo "$as_me:$LINENO: result: $_am_result" >&5
2793 echo "${ECHO_T}$_am_result" >&6
2794 rm -f confinc confmf
2795
2796 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2797 if test "${enable_dependency_tracking+set}" = set; then
2798 enableval="$enable_dependency_tracking"
2799
2800 fi;
2801 if test "x$enable_dependency_tracking" != xno; then
2802 am_depcomp="$ac_aux_dir/depcomp"
2803 AMDEPBACKSLASH='\'
2804 fi
2805
2806
2807 if test "x$enable_dependency_tracking" != xno; then
2808 AMDEP_TRUE=
2809 AMDEP_FALSE='#'
2810 else
2811 AMDEP_TRUE='#'
2812 AMDEP_FALSE=
2813 fi
2814
2815
2816
2817 # test to see if srcdir already configured
2818 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2819 test -f $srcdir/config.status; then
2820 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2821 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2822 { (exit 1); exit 1; }; }
2823 fi
2824
2825 # test whether we have cygpath
2826 if test -z "$CYGPATH_W"; then
2827 if (cygpath --version) >/dev/null 2>/dev/null; then
2828 CYGPATH_W='cygpath -w'
2829 else
2830 CYGPATH_W=echo
2831 fi
2832 fi
2833
2834
2835 # Define the identity of the package.
2836 PACKAGE=ld
2837 VERSION=${BFD_VERSION}
2838
2839
2840 cat >>confdefs.h <<_ACEOF
2841 #define PACKAGE "$PACKAGE"
2842 _ACEOF
2843
2844
2845 cat >>confdefs.h <<_ACEOF
2846 #define VERSION "$VERSION"
2847 _ACEOF
2848
2849 # Some tools Automake needs.
2850
2851 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2852
2853
2854 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2855
2856
2857 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2858
2859
2860 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2861
2862
2863 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2864
2865 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2866
2867 # Installed binaries are usually stripped using `strip' when the user
2868 # run `make install-strip'. However `strip' might not be the right
2869 # tool to use in cross-compilation environments, therefore Automake
2870 # will honor the `STRIP' environment variable to overrule this program.
2871 if test "$cross_compiling" != no; then
2872 if test -n "$ac_tool_prefix"; then
2873 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2874 set dummy ${ac_tool_prefix}strip; ac_word=$2
2875 echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2877 if test "${ac_cv_prog_STRIP+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880 if test -n "$STRIP"; then
2881 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 break 2
2893 fi
2894 done
2895 done
2896
2897 fi
2898 fi
2899 STRIP=$ac_cv_prog_STRIP
2900 if test -n "$STRIP"; then
2901 echo "$as_me:$LINENO: result: $STRIP" >&5
2902 echo "${ECHO_T}$STRIP" >&6
2903 else
2904 echo "$as_me:$LINENO: result: no" >&5
2905 echo "${ECHO_T}no" >&6
2906 fi
2907
2908 fi
2909 if test -z "$ac_cv_prog_STRIP"; then
2910 ac_ct_STRIP=$STRIP
2911 # Extract the first word of "strip", so it can be a program name with args.
2912 set dummy strip; ac_word=$2
2913 echo "$as_me:$LINENO: checking for $ac_word" >&5
2914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2915 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918 if test -n "$ac_ct_STRIP"; then
2919 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928 ac_cv_prog_ac_ct_STRIP="strip"
2929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2931 fi
2932 done
2933 done
2934
2935 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2936 fi
2937 fi
2938 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2939 if test -n "$ac_ct_STRIP"; then
2940 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2941 echo "${ECHO_T}$ac_ct_STRIP" >&6
2942 else
2943 echo "$as_me:$LINENO: result: no" >&5
2944 echo "${ECHO_T}no" >&6
2945 fi
2946
2947 STRIP=$ac_ct_STRIP
2948 else
2949 STRIP="$ac_cv_prog_STRIP"
2950 fi
2951
2952 fi
2953 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2954
2955 # We need awk for the "check" target. The system "awk" is bad on
2956 # some platforms.
2957 # Always define AMTAR for backward compatibility.
2958
2959 AMTAR=${AMTAR-"${am_missing_run}tar"}
2960
2961 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2962
2963
2964
2965
2966 depcc="$CC" am_compiler_list=
2967
2968 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2969 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2970 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2972 else
2973 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2974 # We make a subdir and do the tests there. Otherwise we can end up
2975 # making bogus files that we don't know about and never remove. For
2976 # instance it was reported that on HP-UX the gcc test will end up
2977 # making a dummy file named `D' -- because `-MD' means `put the output
2978 # in D'.
2979 mkdir conftest.dir
2980 # Copy depcomp to subdir because otherwise we won't find it if we're
2981 # using a relative directory.
2982 cp "$am_depcomp" conftest.dir
2983 cd conftest.dir
2984 # We will build objects and dependencies in a subdirectory because
2985 # it helps to detect inapplicable dependency modes. For instance
2986 # both Tru64's cc and ICC support -MD to output dependencies as a
2987 # side effect of compilation, but ICC will put the dependencies in
2988 # the current directory while Tru64 will put them in the object
2989 # directory.
2990 mkdir sub
2991
2992 am_cv_CC_dependencies_compiler_type=none
2993 if test "$am_compiler_list" = ""; then
2994 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2995 fi
2996 for depmode in $am_compiler_list; do
2997 # Setup a source with many dependencies, because some compilers
2998 # like to wrap large dependency lists on column 80 (with \), and
2999 # we should not choose a depcomp mode which is confused by this.
3000 #
3001 # We need to recreate these files for each test, as the compiler may
3002 # overwrite some of them when testing with obscure command lines.
3003 # This happens at least with the AIX C compiler.
3004 : > sub/conftest.c
3005 for i in 1 2 3 4 5 6; do
3006 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3007 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3008 # Solaris 8's {/usr,}/bin/sh.
3009 touch sub/conftst$i.h
3010 done
3011 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3012
3013 case $depmode in
3014 nosideeffect)
3015 # after this tag, mechanisms are not by side-effect, so they'll
3016 # only be used when explicitly requested
3017 if test "x$enable_dependency_tracking" = xyes; then
3018 continue
3019 else
3020 break
3021 fi
3022 ;;
3023 none) break ;;
3024 esac
3025 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3026 # mode. It turns out that the SunPro C++ compiler does not properly
3027 # handle `-M -o', and we need to detect this.
3028 if depmode=$depmode \
3029 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3030 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3031 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3032 >/dev/null 2>conftest.err &&
3033 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3034 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3035 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3036 # icc doesn't choke on unknown options, it will just issue warnings
3037 # or remarks (even with -Werror). So we grep stderr for any message
3038 # that says an option was ignored or not supported.
3039 # When given -MP, icc 7.0 and 7.1 complain thusly:
3040 # icc: Command line warning: ignoring option '-M'; no argument required
3041 # The diagnosis changed in icc 8.0:
3042 # icc: Command line remark: option '-MP' not supported
3043 if (grep 'ignoring option' conftest.err ||
3044 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3045 am_cv_CC_dependencies_compiler_type=$depmode
3046 break
3047 fi
3048 fi
3049 done
3050
3051 cd ..
3052 rm -rf conftest.dir
3053 else
3054 am_cv_CC_dependencies_compiler_type=none
3055 fi
3056
3057 fi
3058 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3059 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3060 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3061
3062
3063
3064 if
3065 test "x$enable_dependency_tracking" != xno \
3066 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3067 am__fastdepCC_TRUE=
3068 am__fastdepCC_FALSE='#'
3069 else
3070 am__fastdepCC_TRUE='#'
3071 am__fastdepCC_FALSE=
3072 fi
3073
3074
3075
3076
3077 # Check whether --enable-shared or --disable-shared was given.
3078 if test "${enable_shared+set}" = set; then
3079 enableval="$enable_shared"
3080 p=${PACKAGE-default}
3081 case $enableval in
3082 yes) enable_shared=yes ;;
3083 no) enable_shared=no ;;
3084 *)
3085 enable_shared=no
3086 # Look at the argument we got. We use all the common list separators.
3087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3088 for pkg in $enableval; do
3089 if test "X$pkg" = "X$p"; then
3090 enable_shared=yes
3091 fi
3092 done
3093 IFS="$ac_save_ifs"
3094 ;;
3095 esac
3096 else
3097 enable_shared=yes
3098 fi;
3099 # Check whether --enable-static or --disable-static was given.
3100 if test "${enable_static+set}" = set; then
3101 enableval="$enable_static"
3102 p=${PACKAGE-default}
3103 case $enableval in
3104 yes) enable_static=yes ;;
3105 no) enable_static=no ;;
3106 *)
3107 enable_static=no
3108 # Look at the argument we got. We use all the common list separators.
3109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3110 for pkg in $enableval; do
3111 if test "X$pkg" = "X$p"; then
3112 enable_static=yes
3113 fi
3114 done
3115 IFS="$ac_save_ifs"
3116 ;;
3117 esac
3118 else
3119 enable_static=yes
3120 fi;
3121 # Check whether --enable-fast-install or --disable-fast-install was given.
3122 if test "${enable_fast_install+set}" = set; then
3123 enableval="$enable_fast_install"
3124 p=${PACKAGE-default}
3125 case $enableval in
3126 yes) enable_fast_install=yes ;;
3127 no) enable_fast_install=no ;;
3128 *)
3129 enable_fast_install=no
3130 # Look at the argument we got. We use all the common list separators.
3131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3132 for pkg in $enableval; do
3133 if test "X$pkg" = "X$p"; then
3134 enable_fast_install=yes
3135 fi
3136 done
3137 IFS="$ac_save_ifs"
3138 ;;
3139 esac
3140 else
3141 enable_fast_install=yes
3142 fi;
3143
3144 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3145 if test "${with_gnu_ld+set}" = set; then
3146 withval="$with_gnu_ld"
3147 test "$withval" = no || with_gnu_ld=yes
3148 else
3149 with_gnu_ld=no
3150 fi;
3151 ac_prog=ld
3152 if test "$GCC" = yes; then
3153 # Check if gcc -print-prog-name=ld gives a path.
3154 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3155 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3156 case $host in
3157 *-*-mingw*)
3158 # gcc leaves a trailing carriage return which upsets mingw
3159 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3160 *)
3161 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3162 esac
3163 case $ac_prog in
3164 # Accept absolute paths.
3165 [\\/]* | [A-Za-z]:[\\/]*)
3166 re_direlt='/[^/][^/]*/\.\./'
3167 # Canonicalize the path of ld
3168 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3169 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3170 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3171 done
3172 test -z "$LD" && LD="$ac_prog"
3173 ;;
3174 "")
3175 # If it fails, then pretend we aren't using GCC.
3176 ac_prog=ld
3177 ;;
3178 *)
3179 # If it is relative, then search for the first ld in PATH.
3180 with_gnu_ld=unknown
3181 ;;
3182 esac
3183 elif test "$with_gnu_ld" = yes; then
3184 echo "$as_me:$LINENO: checking for GNU ld" >&5
3185 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3186 else
3187 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3188 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3189 fi
3190 if test "${lt_cv_path_LD+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193 if test -z "$LD"; then
3194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3195 for ac_dir in $PATH; do
3196 test -z "$ac_dir" && ac_dir=.
3197 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3198 lt_cv_path_LD="$ac_dir/$ac_prog"
3199 # Check to see if the program is GNU ld. I'd rather use --version,
3200 # but apparently some GNU ld's only accept -v.
3201 # Break only if it was the GNU/non-GNU ld that we prefer.
3202 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3203 test "$with_gnu_ld" != no && break
3204 else
3205 test "$with_gnu_ld" != yes && break
3206 fi
3207 fi
3208 done
3209 IFS="$ac_save_ifs"
3210 else
3211 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3212 fi
3213 fi
3214
3215 LD="$lt_cv_path_LD"
3216 if test -n "$LD"; then
3217 echo "$as_me:$LINENO: result: $LD" >&5
3218 echo "${ECHO_T}$LD" >&6
3219 else
3220 echo "$as_me:$LINENO: result: no" >&5
3221 echo "${ECHO_T}no" >&6
3222 fi
3223 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3224 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3225 { (exit 1); exit 1; }; }
3226 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3227 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3228 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3232 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3233 lt_cv_prog_gnu_ld=yes
3234 else
3235 lt_cv_prog_gnu_ld=no
3236 fi
3237 fi
3238 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3239 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3240 with_gnu_ld=$lt_cv_prog_gnu_ld
3241
3242
3243 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3244 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3245 if test "${lt_cv_ld_reload_flag+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248 lt_cv_ld_reload_flag='-r'
3249 fi
3250 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3251 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3252 reload_flag=$lt_cv_ld_reload_flag
3253 test -n "$reload_flag" && reload_flag=" $reload_flag"
3254
3255 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3256 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3257 if test "${lt_cv_path_NM+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 else
3260 if test -n "$NM"; then
3261 # Let the user override the test.
3262 lt_cv_path_NM="$NM"
3263 else
3264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3265 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3266 test -z "$ac_dir" && ac_dir=.
3267 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3268 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3269 # Check to see if the nm accepts a BSD-compat flag.
3270 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3271 # nm: unknown option "B" ignored
3272 # Tru64's nm complains that /dev/null is an invalid object file
3273 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3274 lt_cv_path_NM="$tmp_nm -B"
3275 break
3276 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3277 lt_cv_path_NM="$tmp_nm -p"
3278 break
3279 else
3280 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3281 continue # so that we can try to find one that supports BSD flags
3282 fi
3283 fi
3284 done
3285 IFS="$ac_save_ifs"
3286 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3287 fi
3288 fi
3289
3290 NM="$lt_cv_path_NM"
3291 echo "$as_me:$LINENO: result: $NM" >&5
3292 echo "${ECHO_T}$NM" >&6
3293
3294 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3295 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3296 LN_S=$as_ln_s
3297 if test "$LN_S" = "ln -s"; then
3298 echo "$as_me:$LINENO: result: yes" >&5
3299 echo "${ECHO_T}yes" >&6
3300 else
3301 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3302 echo "${ECHO_T}no, using $LN_S" >&6
3303 fi
3304
3305 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3306 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3307 if test "${lt_cv_deplibs_check_method+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310 lt_cv_file_magic_cmd='$MAGIC_CMD'
3311 lt_cv_file_magic_test_file=
3312 lt_cv_deplibs_check_method='unknown'
3313 # Need to set the preceding variable on all platforms that support
3314 # interlibrary dependencies.
3315 # 'none' -- dependencies not supported.
3316 # `unknown' -- same as none, but documents that we really don't know.
3317 # 'pass_all' -- all dependencies passed with no checks.
3318 # 'test_compile' -- check by making test program.
3319 # 'file_magic [regex]' -- check by looking for files in library path
3320 # which responds to the $file_magic_cmd with a given egrep regex.
3321 # If you have `file' or equivalent on your system and you're not sure
3322 # whether `pass_all' will *always* work, you probably want this one.
3323
3324 case $host_os in
3325 aix*)
3326 lt_cv_deplibs_check_method=pass_all
3327 ;;
3328
3329 beos*)
3330 lt_cv_deplibs_check_method=pass_all
3331 ;;
3332
3333 bsdi4*)
3334 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3335 lt_cv_file_magic_cmd='/usr/bin/file -L'
3336 lt_cv_file_magic_test_file=/shlib/libc.so
3337 ;;
3338
3339 cygwin* | mingw* |pw32*)
3340 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3341 lt_cv_file_magic_cmd='$OBJDUMP -f'
3342 ;;
3343
3344 darwin* | rhapsody*)
3345 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3346 lt_cv_file_magic_cmd='/usr/bin/file -L'
3347 case "$host_os" in
3348 rhapsody* | darwin1.012)
3349 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3350 ;;
3351 *) # Darwin 1.3 on
3352 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3353 ;;
3354 esac
3355 ;;
3356
3357 freebsd* | kfreebsd*-gnu)
3358 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3359 case $host_cpu in
3360 i*86 )
3361 # Not sure whether the presence of OpenBSD here was a mistake.
3362 # Let's accept both of them until this is cleared up.
3363 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3364 lt_cv_file_magic_cmd=/usr/bin/file
3365 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3366 ;;
3367 esac
3368 else
3369 lt_cv_deplibs_check_method=pass_all
3370 fi
3371 ;;
3372
3373 gnu*)
3374 lt_cv_deplibs_check_method=pass_all
3375 ;;
3376
3377 hpux10.20*|hpux11*)
3378 case $host_cpu in
3379 hppa*)
3380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3381 lt_cv_file_magic_cmd=/usr/bin/file
3382 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3383 ;;
3384 ia64*)
3385 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3386 lt_cv_file_magic_cmd=/usr/bin/file
3387 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3388 ;;
3389 esac
3390 ;;
3391
3392 irix5* | irix6*)
3393 case $host_os in
3394 irix5*)
3395 # this will be overridden with pass_all, but let us keep it just in case
3396 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3397 ;;
3398 *)
3399 case $LD in
3400 *-32|*"-32 ") libmagic=32-bit;;
3401 *-n32|*"-n32 ") libmagic=N32;;
3402 *-64|*"-64 ") libmagic=64-bit;;
3403 *) libmagic=never-match;;
3404 esac
3405 # this will be overridden with pass_all, but let us keep it just in case
3406 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3407 ;;
3408 esac
3409 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3410 lt_cv_deplibs_check_method=pass_all
3411 ;;
3412
3413 # This must be Linux ELF.
3414 linux-gnu*)
3415 case $host_cpu in
3416 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3417 lt_cv_deplibs_check_method=pass_all ;;
3418 *)
3419 # glibc up to 2.1.1 does not perform some relocations on ARM
3420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3421 esac
3422 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3423 ;;
3424
3425 netbsd* | knetbsd*-gnu)
3426 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3427 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3428 else
3429 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3430 fi
3431 ;;
3432
3433 newsos6)
3434 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3435 lt_cv_file_magic_cmd=/usr/bin/file
3436 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3437 ;;
3438
3439 osf3* | osf4* | osf5*)
3440 # this will be overridden with pass_all, but let us keep it just in case
3441 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3442 lt_cv_file_magic_test_file=/shlib/libc.so
3443 lt_cv_deplibs_check_method=pass_all
3444 ;;
3445
3446 sco3.2v5*)
3447 lt_cv_deplibs_check_method=pass_all
3448 ;;
3449
3450 solaris*)
3451 lt_cv_deplibs_check_method=pass_all
3452 lt_cv_file_magic_test_file=/lib/libc.so
3453 ;;
3454
3455 sysv5uw[78]* | sysv4*uw2*)
3456 lt_cv_deplibs_check_method=pass_all
3457 ;;
3458
3459 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3460 case $host_vendor in
3461 ncr)
3462 lt_cv_deplibs_check_method=pass_all
3463 ;;
3464 motorola)
3465 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]'
3466 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3467 ;;
3468 esac
3469 ;;
3470 esac
3471
3472 fi
3473 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3474 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3475 file_magic_cmd=$lt_cv_file_magic_cmd
3476 deplibs_check_method=$lt_cv_deplibs_check_method
3477
3478
3479
3480
3481 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3482
3483 # Only perform the check for file, if the check method requires it
3484 case $deplibs_check_method in
3485 file_magic*)
3486 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3487 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3488 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3489 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 else
3492 case $MAGIC_CMD in
3493 /*)
3494 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3495 ;;
3496 ?:/*)
3497 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3498 ;;
3499 *)
3500 ac_save_MAGIC_CMD="$MAGIC_CMD"
3501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3502 ac_dummy="/usr/bin:$PATH"
3503 for ac_dir in $ac_dummy; do
3504 test -z "$ac_dir" && ac_dir=.
3505 if test -f $ac_dir/${ac_tool_prefix}file; then
3506 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3507 if test -n "$file_magic_test_file"; then
3508 case $deplibs_check_method in
3509 "file_magic "*)
3510 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3512 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3513 egrep "$file_magic_regex" > /dev/null; then
3514 :
3515 else
3516 cat <<EOF 1>&2
3517
3518 *** Warning: the command libtool uses to detect shared libraries,
3519 *** $file_magic_cmd, produces output that libtool cannot recognize.
3520 *** The result is that libtool may fail to recognize shared libraries
3521 *** as such. This will affect the creation of libtool libraries that
3522 *** depend on shared libraries, but programs linked with such libtool
3523 *** libraries will work regardless of this problem. Nevertheless, you
3524 *** may want to report the problem to your system manager and/or to
3525 *** bug-libtool@gnu.org
3526
3527 EOF
3528 fi ;;
3529 esac
3530 fi
3531 break
3532 fi
3533 done
3534 IFS="$ac_save_ifs"
3535 MAGIC_CMD="$ac_save_MAGIC_CMD"
3536 ;;
3537 esac
3538 fi
3539
3540 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3541 if test -n "$MAGIC_CMD"; then
3542 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3543 echo "${ECHO_T}$MAGIC_CMD" >&6
3544 else
3545 echo "$as_me:$LINENO: result: no" >&5
3546 echo "${ECHO_T}no" >&6
3547 fi
3548
3549 if test -z "$lt_cv_path_MAGIC_CMD"; then
3550 if test -n "$ac_tool_prefix"; then
3551 echo "$as_me:$LINENO: checking for file" >&5
3552 echo $ECHO_N "checking for file... $ECHO_C" >&6
3553 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556 case $MAGIC_CMD in
3557 /*)
3558 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3559 ;;
3560 ?:/*)
3561 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3562 ;;
3563 *)
3564 ac_save_MAGIC_CMD="$MAGIC_CMD"
3565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3566 ac_dummy="/usr/bin:$PATH"
3567 for ac_dir in $ac_dummy; do
3568 test -z "$ac_dir" && ac_dir=.
3569 if test -f $ac_dir/file; then
3570 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3571 if test -n "$file_magic_test_file"; then
3572 case $deplibs_check_method in
3573 "file_magic "*)
3574 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3575 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3576 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3577 egrep "$file_magic_regex" > /dev/null; then
3578 :
3579 else
3580 cat <<EOF 1>&2
3581
3582 *** Warning: the command libtool uses to detect shared libraries,
3583 *** $file_magic_cmd, produces output that libtool cannot recognize.
3584 *** The result is that libtool may fail to recognize shared libraries
3585 *** as such. This will affect the creation of libtool libraries that
3586 *** depend on shared libraries, but programs linked with such libtool
3587 *** libraries will work regardless of this problem. Nevertheless, you
3588 *** may want to report the problem to your system manager and/or to
3589 *** bug-libtool@gnu.org
3590
3591 EOF
3592 fi ;;
3593 esac
3594 fi
3595 break
3596 fi
3597 done
3598 IFS="$ac_save_ifs"
3599 MAGIC_CMD="$ac_save_MAGIC_CMD"
3600 ;;
3601 esac
3602 fi
3603
3604 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3605 if test -n "$MAGIC_CMD"; then
3606 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3607 echo "${ECHO_T}$MAGIC_CMD" >&6
3608 else
3609 echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6
3611 fi
3612
3613 else
3614 MAGIC_CMD=:
3615 fi
3616 fi
3617
3618 fi
3619 ;;
3620 esac
3621
3622 if test -n "$ac_tool_prefix"; then
3623 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3624 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3625 echo "$as_me:$LINENO: checking for $ac_word" >&5
3626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3627 if test "${ac_cv_prog_RANLIB+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630 if test -n "$RANLIB"; then
3631 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3632 else
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH
3635 do
3636 IFS=$as_save_IFS
3637 test -z "$as_dir" && as_dir=.
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3640 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 break 2
3643 fi
3644 done
3645 done
3646
3647 fi
3648 fi
3649 RANLIB=$ac_cv_prog_RANLIB
3650 if test -n "$RANLIB"; then
3651 echo "$as_me:$LINENO: result: $RANLIB" >&5
3652 echo "${ECHO_T}$RANLIB" >&6
3653 else
3654 echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3656 fi
3657
3658 fi
3659 if test -z "$ac_cv_prog_RANLIB"; then
3660 ac_ct_RANLIB=$RANLIB
3661 # Extract the first word of "ranlib", so it can be a program name with args.
3662 set dummy ranlib; ac_word=$2
3663 echo "$as_me:$LINENO: checking for $ac_word" >&5
3664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3665 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668 if test -n "$ac_ct_RANLIB"; then
3669 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3670 else
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH
3673 do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3678 ac_cv_prog_ac_ct_RANLIB="ranlib"
3679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 break 2
3681 fi
3682 done
3683 done
3684
3685 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3686 fi
3687 fi
3688 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3689 if test -n "$ac_ct_RANLIB"; then
3690 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3691 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3692 else
3693 echo "$as_me:$LINENO: result: no" >&5
3694 echo "${ECHO_T}no" >&6
3695 fi
3696
3697 RANLIB=$ac_ct_RANLIB
3698 else
3699 RANLIB="$ac_cv_prog_RANLIB"
3700 fi
3701
3702 if test -n "$ac_tool_prefix"; then
3703 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3704 set dummy ${ac_tool_prefix}strip; ac_word=$2
3705 echo "$as_me:$LINENO: checking for $ac_word" >&5
3706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3707 if test "${ac_cv_prog_STRIP+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710 if test -n "$STRIP"; then
3711 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3712 else
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 for as_dir in $PATH
3715 do
3716 IFS=$as_save_IFS
3717 test -z "$as_dir" && as_dir=.
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3720 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 break 2
3723 fi
3724 done
3725 done
3726
3727 fi
3728 fi
3729 STRIP=$ac_cv_prog_STRIP
3730 if test -n "$STRIP"; then
3731 echo "$as_me:$LINENO: result: $STRIP" >&5
3732 echo "${ECHO_T}$STRIP" >&6
3733 else
3734 echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3736 fi
3737
3738 fi
3739 if test -z "$ac_cv_prog_STRIP"; then
3740 ac_ct_STRIP=$STRIP
3741 # Extract the first word of "strip", so it can be a program name with args.
3742 set dummy strip; ac_word=$2
3743 echo "$as_me:$LINENO: checking for $ac_word" >&5
3744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3745 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 else
3748 if test -n "$ac_ct_STRIP"; then
3749 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3750 else
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH
3753 do
3754 IFS=$as_save_IFS
3755 test -z "$as_dir" && as_dir=.
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3758 ac_cv_prog_ac_ct_STRIP="strip"
3759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3760 break 2
3761 fi
3762 done
3763 done
3764
3765 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3766 fi
3767 fi
3768 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3769 if test -n "$ac_ct_STRIP"; then
3770 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3771 echo "${ECHO_T}$ac_ct_STRIP" >&6
3772 else
3773 echo "$as_me:$LINENO: result: no" >&5
3774 echo "${ECHO_T}no" >&6
3775 fi
3776
3777 STRIP=$ac_ct_STRIP
3778 else
3779 STRIP="$ac_cv_prog_STRIP"
3780 fi
3781
3782
3783 # Check for any special flags to pass to ltconfig.
3784 libtool_flags="--cache-file=$cache_file"
3785 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3786 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3787 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3788 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3789 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3790
3791
3792 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3793 if test "${enable_libtool_lock+set}" = set; then
3794 enableval="$enable_libtool_lock"
3795
3796 fi;
3797 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3798 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3799
3800
3801 # Check whether --with-pic or --without-pic was given.
3802 if test "${with_pic+set}" = set; then
3803 withval="$with_pic"
3804 pic_mode="$withval"
3805 else
3806 pic_mode=default
3807 fi;
3808 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3809 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3810
3811 # Some flags need to be propagated to the compiler or linker for good
3812 # libtool support.
3813 case $host in
3814 *-*-irix6*)
3815 # Find out which ABI we are using.
3816 echo '#line 3816 "configure"' > conftest.$ac_ext
3817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3818 (eval $ac_compile) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; then
3822 if test "$lt_cv_prog_gnu_ld" = yes; then
3823 case `/usr/bin/file conftest.$ac_objext` in
3824 *32-bit*)
3825 LD="${LD-ld} -melf32bsmip"
3826 ;;
3827 *N32*)
3828 LD="${LD-ld} -melf32bmipn32"
3829 ;;
3830 *64-bit*)
3831 LD="${LD-ld} -melf64bmip"
3832 ;;
3833 esac
3834 else
3835 case `/usr/bin/file conftest.$ac_objext` in
3836 *32-bit*)
3837 LD="${LD-ld} -32"
3838 ;;
3839 *N32*)
3840 LD="${LD-ld} -n32"
3841 ;;
3842 *64-bit*)
3843 LD="${LD-ld} -64"
3844 ;;
3845 esac
3846 fi
3847 fi
3848 rm -rf conftest*
3849 ;;
3850
3851 ia64-*-hpux*)
3852 # Find out which ABI we are using.
3853 echo 'int i;' > conftest.$ac_ext
3854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3855 (eval $ac_compile) 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; then
3859 case "`/usr/bin/file conftest.o`" in
3860 *ELF-32*)
3861 HPUX_IA64_MODE="32"
3862 ;;
3863 *ELF-64*)
3864 HPUX_IA64_MODE="64"
3865 ;;
3866 esac
3867 fi
3868 rm -rf conftest*
3869 ;;
3870
3871 *-*-sco3.2v5*)
3872 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3873 SAVE_CFLAGS="$CFLAGS"
3874 CFLAGS="$CFLAGS -belf"
3875 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3876 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3877 if test "${lt_cv_cc_needs_belf+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880
3881
3882 ac_ext=c
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887
3888 cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h. */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3894
3895 int
3896 main ()
3897 {
3898
3899 ;
3900 return 0;
3901 }
3902 _ACEOF
3903 rm -f conftest.$ac_objext conftest$ac_exeext
3904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3905 (eval $ac_link) 2>conftest.er1
3906 ac_status=$?
3907 grep -v '^ *+' conftest.er1 >conftest.err
3908 rm -f conftest.er1
3909 cat conftest.err >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } &&
3912 { ac_try='test -z "$ac_c_werror_flag"
3913 || test ! -s conftest.err'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 (eval $ac_try) 2>&5
3916 ac_status=$?
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; } &&
3919 { ac_try='test -s conftest$ac_exeext'
3920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921 (eval $ac_try) 2>&5
3922 ac_status=$?
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; }; then
3925 lt_cv_cc_needs_belf=yes
3926 else
3927 echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3929
3930 lt_cv_cc_needs_belf=no
3931 fi
3932 rm -f conftest.err conftest.$ac_objext \
3933 conftest$ac_exeext conftest.$ac_ext
3934 ac_ext=c
3935 ac_cpp='$CPP $CPPFLAGS'
3936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3939
3940 fi
3941 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3942 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3943 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3944 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3945 CFLAGS="$SAVE_CFLAGS"
3946 fi
3947 ;;
3948
3949
3950 esac
3951
3952
3953 # Save cache, so that ltconfig can load it
3954 cat >confcache <<\_ACEOF
3955 # This file is a shell script that caches the results of configure
3956 # tests run on this system so they can be shared between configure
3957 # scripts and configure runs, see configure's option --config-cache.
3958 # It is not useful on other systems. If it contains results you don't
3959 # want to keep, you may remove or edit it.
3960 #
3961 # config.status only pays attention to the cache file if you give it
3962 # the --recheck option to rerun configure.
3963 #
3964 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3965 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3966 # following values.
3967
3968 _ACEOF
3969
3970 # The following way of writing the cache mishandles newlines in values,
3971 # but we know of no workaround that is simple, portable, and efficient.
3972 # So, don't put newlines in cache variables' values.
3973 # Ultrix sh set writes to stderr and can't be redirected directly,
3974 # and sets the high bit in the cache file unless we assign to the vars.
3975 {
3976 (set) 2>&1 |
3977 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3978 *ac_space=\ *)
3979 # `set' does not quote correctly, so add quotes (double-quote
3980 # substitution turns \\\\ into \\, and sed turns \\ into \).
3981 sed -n \
3982 "s/'/'\\\\''/g;
3983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3984 ;;
3985 *)
3986 # `set' quotes correctly as required by POSIX, so do not add quotes.
3987 sed -n \
3988 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3989 ;;
3990 esac;
3991 } |
3992 sed '
3993 t clear
3994 : clear
3995 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3996 t end
3997 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3998 : end' >>confcache
3999 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4000 if test -w $cache_file; then
4001 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4002 cat confcache >$cache_file
4003 else
4004 echo "not updating unwritable cache $cache_file"
4005 fi
4006 fi
4007 rm -f confcache
4008
4009 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4010 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4011 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4012 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4013 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4014 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4015 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4016 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4017 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4018 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4019 echo "$as_me: error: libtool configure failed" >&2;}
4020 { (exit 1); exit 1; }; }
4021
4022 # Reload cache, that may have been modified by ltconfig
4023 if test -r "$cache_file"; then
4024 # Some versions of bash will fail to source /dev/null (special
4025 # files actually), so we avoid doing that.
4026 if test -f "$cache_file"; then
4027 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4028 echo "$as_me: loading cache $cache_file" >&6;}
4029 case $cache_file in
4030 [\\/]* | ?:[\\/]* ) . $cache_file;;
4031 *) . ./$cache_file;;
4032 esac
4033 fi
4034 else
4035 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4036 echo "$as_me: creating cache $cache_file" >&6;}
4037 >$cache_file
4038 fi
4039
4040
4041 # This can be used to rebuild libtool when needed
4042 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4043
4044 # Always use our own libtool.
4045 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4046
4047 # Redirect the config.log output again, so that the ltconfig log is not
4048 # clobbered by the next message.
4049 exec 5>>./config.log
4050
4051
4052
4053
4054
4055
4056
4057
4058 # Check whether --with-lib-path or --without-lib-path was given.
4059 if test "${with_lib_path+set}" = set; then
4060 withval="$with_lib_path"
4061 LIB_PATH=$withval
4062 fi;
4063 # Check whether --enable-targets or --disable-targets was given.
4064 if test "${enable_targets+set}" = set; then
4065 enableval="$enable_targets"
4066 case "${enableval}" in
4067 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4068 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4069 { (exit 1); exit 1; }; }
4070 ;;
4071 no) enable_targets= ;;
4072 *) enable_targets=$enableval ;;
4073 esac
4074 fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4075 if test "${enable_64_bit_bfd+set}" = set; then
4076 enableval="$enable_64_bit_bfd"
4077 case "${enableval}" in
4078 yes) want64=true ;;
4079 no) want64=false ;;
4080 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4081 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4082 { (exit 1); exit 1; }; } ;;
4083 esac
4084 else
4085 want64=false
4086 fi;
4087
4088 # Check whether --with-sysroot or --without-sysroot was given.
4089 if test "${with_sysroot+set}" = set; then
4090 withval="$with_sysroot"
4091
4092 case ${with_sysroot} in
4093 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4094 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4095 esac
4096
4097 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4098 use_sysroot=yes
4099
4100 if test "x$exec_prefix" = xNONE; then
4101 if test "x$prefix" = xNONE; then
4102 test_prefix=/usr/local
4103 else
4104 test_prefix=$prefix
4105 fi
4106 else
4107 test_prefix=$exec_prefix
4108 fi
4109 case ${TARGET_SYSTEM_ROOT} in
4110 "${test_prefix}"|"${test_prefix}/"*|\
4111 '${exec_prefix}'|'${exec_prefix}/'*)
4112 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4113 TARGET_SYSTEM_ROOT_DEFINE="$t"
4114 ;;
4115 esac
4116
4117 else
4118
4119 use_sysroot=no
4120 TARGET_SYSTEM_ROOT=
4121 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
4122
4123 fi;
4124
4125
4126
4127
4128
4129 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4130
4131 # Check whether --enable-werror or --disable-werror was given.
4132 if test "${enable_werror+set}" = set; then
4133 enableval="$enable_werror"
4134 case "${enableval}" in
4135 yes | y) ERROR_ON_WARNING="yes" ;;
4136 no | n) ERROR_ON_WARNING="no" ;;
4137 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4138 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4139 { (exit 1); exit 1; }; } ;;
4140 esac
4141 fi;
4142
4143 # Enable -Werror by default when using gcc
4144 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4145 ERROR_ON_WARNING=yes
4146 fi
4147
4148 NO_WERROR=
4149 if test "${ERROR_ON_WARNING}" = yes ; then
4150 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4151 NO_WERROR="-Wno-error"
4152 fi
4153
4154 if test "${GCC}" = yes ; then
4155 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4156 fi
4157
4158 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4159 if test "${enable_build_warnings+set}" = set; then
4160 enableval="$enable_build_warnings"
4161 case "${enableval}" in
4162 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4163 no) if test "${GCC}" = yes ; then
4164 WARN_CFLAGS="-w"
4165 fi;;
4166 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4167 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4168 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4169 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4170 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4171 esac
4172 fi;
4173
4174 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4175 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4176 fi
4177
4178
4179
4180
4181
4182 ac_config_headers="$ac_config_headers config.h:config.in"
4183
4184
4185 if test -z "$target" ; then
4186 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4187 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4188 { (exit 1); exit 1; }; }
4189 fi
4190 if test -z "$host" ; then
4191 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4192 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4193 { (exit 1); exit 1; }; }
4194 fi
4195
4196 # host-specific stuff:
4197
4198 ac_ext=c
4199 ac_cpp='$CPP $CPPFLAGS'
4200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203 if test -n "$ac_tool_prefix"; then
4204 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4205 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4206 echo "$as_me:$LINENO: checking for $ac_word" >&5
4207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4208 if test "${ac_cv_prog_CC+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211 if test -n "$CC"; then
4212 ac_cv_prog_CC="$CC" # Let the user override the test.
4213 else
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4216 do
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 break 2
4224 fi
4225 done
4226 done
4227
4228 fi
4229 fi
4230 CC=$ac_cv_prog_CC
4231 if test -n "$CC"; then
4232 echo "$as_me:$LINENO: result: $CC" >&5
4233 echo "${ECHO_T}$CC" >&6
4234 else
4235 echo "$as_me:$LINENO: result: no" >&5
4236 echo "${ECHO_T}no" >&6
4237 fi
4238
4239 fi
4240 if test -z "$ac_cv_prog_CC"; then
4241 ac_ct_CC=$CC
4242 # Extract the first word of "gcc", so it can be a program name with args.
4243 set dummy gcc; ac_word=$2
4244 echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4246 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 if test -n "$ac_ct_CC"; then
4250 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259 ac_cv_prog_ac_ct_CC="gcc"
4260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4262 fi
4263 done
4264 done
4265
4266 fi
4267 fi
4268 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4269 if test -n "$ac_ct_CC"; then
4270 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4271 echo "${ECHO_T}$ac_ct_CC" >&6
4272 else
4273 echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6
4275 fi
4276
4277 CC=$ac_ct_CC
4278 else
4279 CC="$ac_cv_prog_CC"
4280 fi
4281
4282 if test -z "$CC"; then
4283 if test -n "$ac_tool_prefix"; then
4284 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4285 set dummy ${ac_tool_prefix}cc; ac_word=$2
4286 echo "$as_me:$LINENO: checking for $ac_word" >&5
4287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4288 if test "${ac_cv_prog_CC+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 else
4291 if test -n "$CC"; then
4292 ac_cv_prog_CC="$CC" # Let the user override the test.
4293 else
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4296 do
4297 IFS=$as_save_IFS
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301 ac_cv_prog_CC="${ac_tool_prefix}cc"
4302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 break 2
4304 fi
4305 done
4306 done
4307
4308 fi
4309 fi
4310 CC=$ac_cv_prog_CC
4311 if test -n "$CC"; then
4312 echo "$as_me:$LINENO: result: $CC" >&5
4313 echo "${ECHO_T}$CC" >&6
4314 else
4315 echo "$as_me:$LINENO: result: no" >&5
4316 echo "${ECHO_T}no" >&6
4317 fi
4318
4319 fi
4320 if test -z "$ac_cv_prog_CC"; then
4321 ac_ct_CC=$CC
4322 # Extract the first word of "cc", so it can be a program name with args.
4323 set dummy cc; ac_word=$2
4324 echo "$as_me:$LINENO: checking for $ac_word" >&5
4325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4326 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329 if test -n "$ac_ct_CC"; then
4330 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4331 else
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH
4334 do
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4339 ac_cv_prog_ac_ct_CC="cc"
4340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 break 2
4342 fi
4343 done
4344 done
4345
4346 fi
4347 fi
4348 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4349 if test -n "$ac_ct_CC"; then
4350 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4351 echo "${ECHO_T}$ac_ct_CC" >&6
4352 else
4353 echo "$as_me:$LINENO: result: no" >&5
4354 echo "${ECHO_T}no" >&6
4355 fi
4356
4357 CC=$ac_ct_CC
4358 else
4359 CC="$ac_cv_prog_CC"
4360 fi
4361
4362 fi
4363 if test -z "$CC"; then
4364 # Extract the first word of "cc", so it can be a program name with args.
4365 set dummy cc; ac_word=$2
4366 echo "$as_me:$LINENO: checking for $ac_word" >&5
4367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4368 if test "${ac_cv_prog_CC+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371 if test -n "$CC"; then
4372 ac_cv_prog_CC="$CC" # Let the user override the test.
4373 else
4374 ac_prog_rejected=no
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 for as_dir in $PATH
4377 do
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4382 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4383 ac_prog_rejected=yes
4384 continue
4385 fi
4386 ac_cv_prog_CC="cc"
4387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 break 2
4389 fi
4390 done
4391 done
4392
4393 if test $ac_prog_rejected = yes; then
4394 # We found a bogon in the path, so make sure we never use it.
4395 set dummy $ac_cv_prog_CC
4396 shift
4397 if test $# != 0; then
4398 # We chose a different compiler from the bogus one.
4399 # However, it has the same basename, so the bogon will be chosen
4400 # first if we set CC to just the basename; use the full file name.
4401 shift
4402 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4403 fi
4404 fi
4405 fi
4406 fi
4407 CC=$ac_cv_prog_CC
4408 if test -n "$CC"; then
4409 echo "$as_me:$LINENO: result: $CC" >&5
4410 echo "${ECHO_T}$CC" >&6
4411 else
4412 echo "$as_me:$LINENO: result: no" >&5
4413 echo "${ECHO_T}no" >&6
4414 fi
4415
4416 fi
4417 if test -z "$CC"; then
4418 if test -n "$ac_tool_prefix"; then
4419 for ac_prog in cl
4420 do
4421 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4422 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4423 echo "$as_me:$LINENO: checking for $ac_word" >&5
4424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4425 if test "${ac_cv_prog_CC+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428 if test -n "$CC"; then
4429 ac_cv_prog_CC="$CC" # Let the user override the test.
4430 else
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 break 2
4441 fi
4442 done
4443 done
4444
4445 fi
4446 fi
4447 CC=$ac_cv_prog_CC
4448 if test -n "$CC"; then
4449 echo "$as_me:$LINENO: result: $CC" >&5
4450 echo "${ECHO_T}$CC" >&6
4451 else
4452 echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6
4454 fi
4455
4456 test -n "$CC" && break
4457 done
4458 fi
4459 if test -z "$CC"; then
4460 ac_ct_CC=$CC
4461 for ac_prog in cl
4462 do
4463 # Extract the first word of "$ac_prog", so it can be a program name with args.
4464 set dummy $ac_prog; ac_word=$2
4465 echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4467 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470 if test -n "$ac_ct_CC"; then
4471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4472 else
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH
4475 do
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480 ac_cv_prog_ac_ct_CC="$ac_prog"
4481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482 break 2
4483 fi
4484 done
4485 done
4486
4487 fi
4488 fi
4489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4490 if test -n "$ac_ct_CC"; then
4491 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4492 echo "${ECHO_T}$ac_ct_CC" >&6
4493 else
4494 echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6
4496 fi
4497
4498 test -n "$ac_ct_CC" && break
4499 done
4500
4501 CC=$ac_ct_CC
4502 fi
4503
4504 fi
4505
4506
4507 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4508 See \`config.log' for more details." >&5
4509 echo "$as_me: error: no acceptable C compiler found in \$PATH
4510 See \`config.log' for more details." >&2;}
4511 { (exit 1); exit 1; }; }
4512
4513 # Provide some information about the compiler.
4514 echo "$as_me:$LINENO:" \
4515 "checking for C compiler version" >&5
4516 ac_compiler=`set X $ac_compile; echo $2`
4517 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4518 (eval $ac_compiler --version </dev/null >&5) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }
4522 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4523 (eval $ac_compiler -v </dev/null >&5) 2>&5
4524 ac_status=$?
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }
4527 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4528 (eval $ac_compiler -V </dev/null >&5) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }
4532
4533 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4534 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4535 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4538 cat >conftest.$ac_ext <<_ACEOF
4539 /* confdefs.h. */
4540 _ACEOF
4541 cat confdefs.h >>conftest.$ac_ext
4542 cat >>conftest.$ac_ext <<_ACEOF
4543 /* end confdefs.h. */
4544
4545 int
4546 main ()
4547 {
4548 #ifndef __GNUC__
4549 choke me
4550 #endif
4551
4552 ;
4553 return 0;
4554 }
4555 _ACEOF
4556 rm -f conftest.$ac_objext
4557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4558 (eval $ac_compile) 2>conftest.er1
4559 ac_status=$?
4560 grep -v '^ *+' conftest.er1 >conftest.err
4561 rm -f conftest.er1
4562 cat conftest.err >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } &&
4565 { ac_try='test -z "$ac_c_werror_flag"
4566 || test ! -s conftest.err'
4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 (eval $ac_try) 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; } &&
4572 { ac_try='test -s conftest.$ac_objext'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 (eval $ac_try) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; }; then
4578 ac_compiler_gnu=yes
4579 else
4580 echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4582
4583 ac_compiler_gnu=no
4584 fi
4585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4586 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4587
4588 fi
4589 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4590 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4591 GCC=`test $ac_compiler_gnu = yes && echo yes`
4592 ac_test_CFLAGS=${CFLAGS+set}
4593 ac_save_CFLAGS=$CFLAGS
4594 CFLAGS="-g"
4595 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4596 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4597 if test "${ac_cv_prog_cc_g+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 else
4600 cat >conftest.$ac_ext <<_ACEOF
4601 /* confdefs.h. */
4602 _ACEOF
4603 cat confdefs.h >>conftest.$ac_ext
4604 cat >>conftest.$ac_ext <<_ACEOF
4605 /* end confdefs.h. */
4606
4607 int
4608 main ()
4609 {
4610
4611 ;
4612 return 0;
4613 }
4614 _ACEOF
4615 rm -f conftest.$ac_objext
4616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4617 (eval $ac_compile) 2>conftest.er1
4618 ac_status=$?
4619 grep -v '^ *+' conftest.er1 >conftest.err
4620 rm -f conftest.er1
4621 cat conftest.err >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } &&
4624 { ac_try='test -z "$ac_c_werror_flag"
4625 || test ! -s conftest.err'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 (eval $ac_try) 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; } &&
4631 { ac_try='test -s conftest.$ac_objext'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 (eval $ac_try) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; }; then
4637 ac_cv_prog_cc_g=yes
4638 else
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4641
4642 ac_cv_prog_cc_g=no
4643 fi
4644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4645 fi
4646 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4647 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4648 if test "$ac_test_CFLAGS" = set; then
4649 CFLAGS=$ac_save_CFLAGS
4650 elif test $ac_cv_prog_cc_g = yes; then
4651 if test "$GCC" = yes; then
4652 CFLAGS="-g -O2"
4653 else
4654 CFLAGS="-g"
4655 fi
4656 else
4657 if test "$GCC" = yes; then
4658 CFLAGS="-O2"
4659 else
4660 CFLAGS=
4661 fi
4662 fi
4663 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4664 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4665 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668 ac_cv_prog_cc_stdc=no
4669 ac_save_CC=$CC
4670 cat >conftest.$ac_ext <<_ACEOF
4671 /* confdefs.h. */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 #include <stdarg.h>
4677 #include <stdio.h>
4678 #include <sys/types.h>
4679 #include <sys/stat.h>
4680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4681 struct buf { int x; };
4682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4683 static char *e (p, i)
4684 char **p;
4685 int i;
4686 {
4687 return p[i];
4688 }
4689 static char *f (char * (*g) (char **, int), char **p, ...)
4690 {
4691 char *s;
4692 va_list v;
4693 va_start (v,p);
4694 s = g (p, va_arg (v,int));
4695 va_end (v);
4696 return s;
4697 }
4698
4699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4700 function prototypes and stuff, but not '\xHH' hex character constants.
4701 These don't provoke an error unfortunately, instead are silently treated
4702 as 'x'. The following induces an error, until -std1 is added to get
4703 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4704 array size at least. It's necessary to write '\x00'==0 to get something
4705 that's true only with -std1. */
4706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4707
4708 int test (int i, double x);
4709 struct s1 {int (*f) (int a);};
4710 struct s2 {int (*f) (double a);};
4711 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4712 int argc;
4713 char **argv;
4714 int
4715 main ()
4716 {
4717 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4718 ;
4719 return 0;
4720 }
4721 _ACEOF
4722 # Don't try gcc -ansi; that turns off useful extensions and
4723 # breaks some systems' header files.
4724 # AIX -qlanglvl=ansi
4725 # Ultrix and OSF/1 -std1
4726 # HP-UX 10.20 and later -Ae
4727 # HP-UX older versions -Aa -D_HPUX_SOURCE
4728 # SVR4 -Xc -D__EXTENSIONS__
4729 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4730 do
4731 CC="$ac_save_CC $ac_arg"
4732 rm -f conftest.$ac_objext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4734 (eval $ac_compile) 2>conftest.er1
4735 ac_status=$?
4736 grep -v '^ *+' conftest.er1 >conftest.err
4737 rm -f conftest.er1
4738 cat conftest.err >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } &&
4741 { ac_try='test -z "$ac_c_werror_flag"
4742 || test ! -s conftest.err'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; } &&
4748 { ac_try='test -s conftest.$ac_objext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 (eval $ac_try) 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 ac_cv_prog_cc_stdc=$ac_arg
4755 break
4756 else
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4759
4760 fi
4761 rm -f conftest.err conftest.$ac_objext
4762 done
4763 rm -f conftest.$ac_ext conftest.$ac_objext
4764 CC=$ac_save_CC
4765
4766 fi
4767
4768 case "x$ac_cv_prog_cc_stdc" in
4769 x|xno)
4770 echo "$as_me:$LINENO: result: none needed" >&5
4771 echo "${ECHO_T}none needed" >&6 ;;
4772 *)
4773 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4774 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4775 CC="$CC $ac_cv_prog_cc_stdc" ;;
4776 esac
4777
4778 # Some people use a C++ compiler to compile C. Since we use `exit',
4779 # in C++ we need to declare it. In case someone uses the same compiler
4780 # for both compiling C and C++ we need to have the C++ compiler decide
4781 # the declaration of exit, since it's the most demanding environment.
4782 cat >conftest.$ac_ext <<_ACEOF
4783 #ifndef __cplusplus
4784 choke me
4785 #endif
4786 _ACEOF
4787 rm -f conftest.$ac_objext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4789 (eval $ac_compile) 2>conftest.er1
4790 ac_status=$?
4791 grep -v '^ *+' conftest.er1 >conftest.err
4792 rm -f conftest.er1
4793 cat conftest.err >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } &&
4796 { ac_try='test -z "$ac_c_werror_flag"
4797 || test ! -s conftest.err'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; } &&
4803 { ac_try='test -s conftest.$ac_objext'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 (eval $ac_try) 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; }; then
4809 for ac_declaration in \
4810 '' \
4811 'extern "C" void std::exit (int) throw (); using std::exit;' \
4812 'extern "C" void std::exit (int); using std::exit;' \
4813 'extern "C" void exit (int) throw ();' \
4814 'extern "C" void exit (int);' \
4815 'void exit (int);'
4816 do
4817 cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h. */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 $ac_declaration
4824 #include <stdlib.h>
4825 int
4826 main ()
4827 {
4828 exit (42);
4829 ;
4830 return 0;
4831 }
4832 _ACEOF
4833 rm -f conftest.$ac_objext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>conftest.er1
4836 ac_status=$?
4837 grep -v '^ *+' conftest.er1 >conftest.err
4838 rm -f conftest.er1
4839 cat conftest.err >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } &&
4842 { ac_try='test -z "$ac_c_werror_flag"
4843 || test ! -s conftest.err'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 (eval $ac_try) 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; } &&
4849 { ac_try='test -s conftest.$ac_objext'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 (eval $ac_try) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; }; then
4855 :
4856 else
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4859
4860 continue
4861 fi
4862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4863 cat >conftest.$ac_ext <<_ACEOF
4864 /* confdefs.h. */
4865 _ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4869 $ac_declaration
4870 int
4871 main ()
4872 {
4873 exit (42);
4874 ;
4875 return 0;
4876 }
4877 _ACEOF
4878 rm -f conftest.$ac_objext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880 (eval $ac_compile) 2>conftest.er1
4881 ac_status=$?
4882 grep -v '^ *+' conftest.er1 >conftest.err
4883 rm -f conftest.er1
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try='test -z "$ac_c_werror_flag"
4888 || test ! -s conftest.err'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 (eval $ac_try) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; } &&
4894 { ac_try='test -s conftest.$ac_objext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 (eval $ac_try) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 break
4901 else
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4904
4905 fi
4906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4907 done
4908 rm -f conftest*
4909 if test -n "$ac_declaration"; then
4910 echo '#ifdef __cplusplus' >>confdefs.h
4911 echo $ac_declaration >>confdefs.h
4912 echo '#endif' >>confdefs.h
4913 fi
4914
4915 else
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4918
4919 fi
4920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4921 ac_ext=c
4922 ac_cpp='$CPP $CPPFLAGS'
4923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4926
4927 # Find a good install program. We prefer a C program (faster),
4928 # so one script is as good as another. But avoid the broken or
4929 # incompatible versions:
4930 # SysV /etc/install, /usr/sbin/install
4931 # SunOS /usr/etc/install
4932 # IRIX /sbin/install
4933 # AIX /bin/install
4934 # AmigaOS /C/install, which installs bootblocks on floppy discs
4935 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4936 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4937 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4938 # OS/2's system install, which has a completely different semantic
4939 # ./install, which can be erroneously created by make from ./install.sh.
4940 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4941 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4942 if test -z "$INSTALL"; then
4943 if test "${ac_cv_path_install+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 else
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4948 do
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 # Account for people who put trailing slashes in PATH elements.
4952 case $as_dir/ in
4953 ./ | .// | /cC/* | \
4954 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4955 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4956 /usr/ucb/* ) ;;
4957 *)
4958 # OSF1 and SCO ODT 3.0 have their own names for install.
4959 # Don't use installbsd from OSF since it installs stuff as root
4960 # by default.
4961 for ac_prog in ginstall scoinst install; do
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4964 if test $ac_prog = install &&
4965 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4966 # AIX install. It has an incompatible calling convention.
4967 :
4968 elif test $ac_prog = install &&
4969 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4970 # program-specific install script used by HP pwplus--don't use.
4971 :
4972 else
4973 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4974 break 3
4975 fi
4976 fi
4977 done
4978 done
4979 ;;
4980 esac
4981 done
4982
4983
4984 fi
4985 if test "${ac_cv_path_install+set}" = set; then
4986 INSTALL=$ac_cv_path_install
4987 else
4988 # As a last resort, use the slow shell script. We don't cache a
4989 # path for INSTALL within a source directory, because that will
4990 # break other packages using the cache if that directory is
4991 # removed, or if the path is relative.
4992 INSTALL=$ac_install_sh
4993 fi
4994 fi
4995 echo "$as_me:$LINENO: result: $INSTALL" >&5
4996 echo "${ECHO_T}$INSTALL" >&6
4997
4998 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4999 # It thinks the first close brace ends the variable substitution.
5000 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5001
5002 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5003
5004 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5005
5006
5007 ALL_LINGUAS="fr sv tr es da"
5008 if test -n "$ac_tool_prefix"; then
5009 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5010 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5011 echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013 if test "${ac_cv_prog_RANLIB+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016 if test -n "$RANLIB"; then
5017 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5021 do
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5029 fi
5030 done
5031 done
5032
5033 fi
5034 fi
5035 RANLIB=$ac_cv_prog_RANLIB
5036 if test -n "$RANLIB"; then
5037 echo "$as_me:$LINENO: result: $RANLIB" >&5
5038 echo "${ECHO_T}$RANLIB" >&6
5039 else
5040 echo "$as_me:$LINENO: result: no" >&5
5041 echo "${ECHO_T}no" >&6
5042 fi
5043
5044 fi
5045 if test -z "$ac_cv_prog_RANLIB"; then
5046 ac_ct_RANLIB=$RANLIB
5047 # Extract the first word of "ranlib", so it can be a program name with args.
5048 set dummy ranlib; ac_word=$2
5049 echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5051 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054 if test -n "$ac_ct_RANLIB"; then
5055 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5059 do
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064 ac_cv_prog_ac_ct_RANLIB="ranlib"
5065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5067 fi
5068 done
5069 done
5070
5071 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5072 fi
5073 fi
5074 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5075 if test -n "$ac_ct_RANLIB"; then
5076 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5077 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5078 else
5079 echo "$as_me:$LINENO: result: no" >&5
5080 echo "${ECHO_T}no" >&6
5081 fi
5082
5083 RANLIB=$ac_ct_RANLIB
5084 else
5085 RANLIB="$ac_cv_prog_RANLIB"
5086 fi
5087
5088 ac_ext=c
5089 ac_cpp='$CPP $CPPFLAGS'
5090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5093 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5094 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5095 # On Suns, sometimes $CPP names a directory.
5096 if test -n "$CPP" && test -d "$CPP"; then
5097 CPP=
5098 fi
5099 if test -z "$CPP"; then
5100 if test "${ac_cv_prog_CPP+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103 # Double quotes because CPP needs to be expanded
5104 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5105 do
5106 ac_preproc_ok=false
5107 for ac_c_preproc_warn_flag in '' yes
5108 do
5109 # Use a header file that comes with gcc, so configuring glibc
5110 # with a fresh cross-compiler works.
5111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5112 # <limits.h> exists even on freestanding compilers.
5113 # On the NeXT, cc -E runs the code through the compiler's parser,
5114 # not just through cpp. "Syntax error" is here to catch this case.
5115 cat >conftest.$ac_ext <<_ACEOF
5116 /* confdefs.h. */
5117 _ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5121 #ifdef __STDC__
5122 # include <limits.h>
5123 #else
5124 # include <assert.h>
5125 #endif
5126 Syntax error
5127 _ACEOF
5128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5130 ac_status=$?
5131 grep -v '^ *+' conftest.er1 >conftest.err
5132 rm -f conftest.er1
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } >/dev/null; then
5136 if test -s conftest.err; then
5137 ac_cpp_err=$ac_c_preproc_warn_flag
5138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5139 else
5140 ac_cpp_err=
5141 fi
5142 else
5143 ac_cpp_err=yes
5144 fi
5145 if test -z "$ac_cpp_err"; then
5146 :
5147 else
5148 echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5150
5151 # Broken: fails on valid input.
5152 continue
5153 fi
5154 rm -f conftest.err conftest.$ac_ext
5155
5156 # OK, works on sane cases. Now check whether non-existent headers
5157 # can be detected and how.
5158 cat >conftest.$ac_ext <<_ACEOF
5159 /* confdefs.h. */
5160 _ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h. */
5164 #include <ac_nonexistent.h>
5165 _ACEOF
5166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5168 ac_status=$?
5169 grep -v '^ *+' conftest.er1 >conftest.err
5170 rm -f conftest.er1
5171 cat conftest.err >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } >/dev/null; then
5174 if test -s conftest.err; then
5175 ac_cpp_err=$ac_c_preproc_warn_flag
5176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5177 else
5178 ac_cpp_err=
5179 fi
5180 else
5181 ac_cpp_err=yes
5182 fi
5183 if test -z "$ac_cpp_err"; then
5184 # Broken: success on invalid input.
5185 continue
5186 else
5187 echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5189
5190 # Passes both tests.
5191 ac_preproc_ok=:
5192 break
5193 fi
5194 rm -f conftest.err conftest.$ac_ext
5195
5196 done
5197 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5198 rm -f conftest.err conftest.$ac_ext
5199 if $ac_preproc_ok; then
5200 break
5201 fi
5202
5203 done
5204 ac_cv_prog_CPP=$CPP
5205
5206 fi
5207 CPP=$ac_cv_prog_CPP
5208 else
5209 ac_cv_prog_CPP=$CPP
5210 fi
5211 echo "$as_me:$LINENO: result: $CPP" >&5
5212 echo "${ECHO_T}$CPP" >&6
5213 ac_preproc_ok=false
5214 for ac_c_preproc_warn_flag in '' yes
5215 do
5216 # Use a header file that comes with gcc, so configuring glibc
5217 # with a fresh cross-compiler works.
5218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5219 # <limits.h> exists even on freestanding compilers.
5220 # On the NeXT, cc -E runs the code through the compiler's parser,
5221 # not just through cpp. "Syntax error" is here to catch this case.
5222 cat >conftest.$ac_ext <<_ACEOF
5223 /* confdefs.h. */
5224 _ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h. */
5228 #ifdef __STDC__
5229 # include <limits.h>
5230 #else
5231 # include <assert.h>
5232 #endif
5233 Syntax error
5234 _ACEOF
5235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5237 ac_status=$?
5238 grep -v '^ *+' conftest.er1 >conftest.err
5239 rm -f conftest.er1
5240 cat conftest.err >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } >/dev/null; then
5243 if test -s conftest.err; then
5244 ac_cpp_err=$ac_c_preproc_warn_flag
5245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5246 else
5247 ac_cpp_err=
5248 fi
5249 else
5250 ac_cpp_err=yes
5251 fi
5252 if test -z "$ac_cpp_err"; then
5253 :
5254 else
5255 echo "$as_me: failed program was:" >&5
5256 sed 's/^/| /' conftest.$ac_ext >&5
5257
5258 # Broken: fails on valid input.
5259 continue
5260 fi
5261 rm -f conftest.err conftest.$ac_ext
5262
5263 # OK, works on sane cases. Now check whether non-existent headers
5264 # can be detected and how.
5265 cat >conftest.$ac_ext <<_ACEOF
5266 /* confdefs.h. */
5267 _ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5271 #include <ac_nonexistent.h>
5272 _ACEOF
5273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5275 ac_status=$?
5276 grep -v '^ *+' conftest.er1 >conftest.err
5277 rm -f conftest.er1
5278 cat conftest.err >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } >/dev/null; then
5281 if test -s conftest.err; then
5282 ac_cpp_err=$ac_c_preproc_warn_flag
5283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5284 else
5285 ac_cpp_err=
5286 fi
5287 else
5288 ac_cpp_err=yes
5289 fi
5290 if test -z "$ac_cpp_err"; then
5291 # Broken: success on invalid input.
5292 continue
5293 else
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5296
5297 # Passes both tests.
5298 ac_preproc_ok=:
5299 break
5300 fi
5301 rm -f conftest.err conftest.$ac_ext
5302
5303 done
5304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5305 rm -f conftest.err conftest.$ac_ext
5306 if $ac_preproc_ok; then
5307 :
5308 else
5309 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5310 See \`config.log' for more details." >&5
5311 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5312 See \`config.log' for more details." >&2;}
5313 { (exit 1); exit 1; }; }
5314 fi
5315
5316 ac_ext=c
5317 ac_cpp='$CPP $CPPFLAGS'
5318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5321
5322
5323 echo "$as_me:$LINENO: checking for egrep" >&5
5324 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5325 if test "${ac_cv_prog_egrep+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 else
5328 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5329 then ac_cv_prog_egrep='grep -E'
5330 else ac_cv_prog_egrep='egrep'
5331 fi
5332 fi
5333 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5334 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5335 EGREP=$ac_cv_prog_egrep
5336
5337
5338 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5339 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5340 if test "${ac_cv_header_stdc+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343 cat >conftest.$ac_ext <<_ACEOF
5344 /* confdefs.h. */
5345 _ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h. */
5349 #include <stdlib.h>
5350 #include <stdarg.h>
5351 #include <string.h>
5352 #include <float.h>
5353
5354 int
5355 main ()
5356 {
5357
5358 ;
5359 return 0;
5360 }
5361 _ACEOF
5362 rm -f conftest.$ac_objext
5363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5364 (eval $ac_compile) 2>conftest.er1
5365 ac_status=$?
5366 grep -v '^ *+' conftest.er1 >conftest.err
5367 rm -f conftest.er1
5368 cat conftest.err >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } &&
5371 { ac_try='test -z "$ac_c_werror_flag"
5372 || test ! -s conftest.err'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 (eval $ac_try) 2>&5
5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; } &&
5378 { ac_try='test -s conftest.$ac_objext'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 (eval $ac_try) 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; }; then
5384 ac_cv_header_stdc=yes
5385 else
5386 echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5388
5389 ac_cv_header_stdc=no
5390 fi
5391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5392
5393 if test $ac_cv_header_stdc = yes; then
5394 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5395 cat >conftest.$ac_ext <<_ACEOF
5396 /* confdefs.h. */
5397 _ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h. */
5401 #include <string.h>
5402
5403 _ACEOF
5404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5405 $EGREP "memchr" >/dev/null 2>&1; then
5406 :
5407 else
5408 ac_cv_header_stdc=no
5409 fi
5410 rm -f conftest*
5411
5412 fi
5413
5414 if test $ac_cv_header_stdc = yes; then
5415 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5416 cat >conftest.$ac_ext <<_ACEOF
5417 /* confdefs.h. */
5418 _ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5422 #include <stdlib.h>
5423
5424 _ACEOF
5425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5426 $EGREP "free" >/dev/null 2>&1; then
5427 :
5428 else
5429 ac_cv_header_stdc=no
5430 fi
5431 rm -f conftest*
5432
5433 fi
5434
5435 if test $ac_cv_header_stdc = yes; then
5436 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5437 if test "$cross_compiling" = yes; then
5438 :
5439 else
5440 cat >conftest.$ac_ext <<_ACEOF
5441 /* confdefs.h. */
5442 _ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h. */
5446 #include <ctype.h>
5447 #if ((' ' & 0x0FF) == 0x020)
5448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5450 #else
5451 # define ISLOWER(c) \
5452 (('a' <= (c) && (c) <= 'i') \
5453 || ('j' <= (c) && (c) <= 'r') \
5454 || ('s' <= (c) && (c) <= 'z'))
5455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5456 #endif
5457
5458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5459 int
5460 main ()
5461 {
5462 int i;
5463 for (i = 0; i < 256; i++)
5464 if (XOR (islower (i), ISLOWER (i))
5465 || toupper (i) != TOUPPER (i))
5466 exit(2);
5467 exit (0);
5468 }
5469 _ACEOF
5470 rm -f conftest$ac_exeext
5471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5472 (eval $ac_link) 2>&5
5473 ac_status=$?
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5477 (eval $ac_try) 2>&5
5478 ac_status=$?
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); }; }; then
5481 :
5482 else
5483 echo "$as_me: program exited with status $ac_status" >&5
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5486
5487 ( exit $ac_status )
5488 ac_cv_header_stdc=no
5489 fi
5490 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5491 fi
5492 fi
5493 fi
5494 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5495 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5496 if test $ac_cv_header_stdc = yes; then
5497
5498 cat >>confdefs.h <<\_ACEOF
5499 #define STDC_HEADERS 1
5500 _ACEOF
5501
5502 fi
5503
5504 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5505 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5506 if test "${ac_cv_c_const+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 else
5509 cat >conftest.$ac_ext <<_ACEOF
5510 /* confdefs.h. */
5511 _ACEOF
5512 cat confdefs.h >>conftest.$ac_ext
5513 cat >>conftest.$ac_ext <<_ACEOF
5514 /* end confdefs.h. */
5515
5516 int
5517 main ()
5518 {
5519 /* FIXME: Include the comments suggested by Paul. */
5520 #ifndef __cplusplus
5521 /* Ultrix mips cc rejects this. */
5522 typedef int charset[2];
5523 const charset x;
5524 /* SunOS 4.1.1 cc rejects this. */
5525 char const *const *ccp;
5526 char **p;
5527 /* NEC SVR4.0.2 mips cc rejects this. */
5528 struct point {int x, y;};
5529 static struct point const zero = {0,0};
5530 /* AIX XL C 1.02.0.0 rejects this.
5531 It does not let you subtract one const X* pointer from another in
5532 an arm of an if-expression whose if-part is not a constant
5533 expression */
5534 const char *g = "string";
5535 ccp = &g + (g ? g-g : 0);
5536 /* HPUX 7.0 cc rejects these. */
5537 ++ccp;
5538 p = (char**) ccp;
5539 ccp = (char const *const *) p;
5540 { /* SCO 3.2v4 cc rejects this. */
5541 char *t;
5542 char const *s = 0 ? (char *) 0 : (char const *) 0;
5543
5544 *t++ = 0;
5545 }
5546 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5547 int x[] = {25, 17};
5548 const int *foo = &x[0];
5549 ++foo;
5550 }
5551 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5552 typedef const int *iptr;
5553 iptr p = 0;
5554 ++p;
5555 }
5556 { /* AIX XL C 1.02.0.0 rejects this saying
5557 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5558 struct s { int j; const int *ap[3]; };
5559 struct s *b; b->j = 5;
5560 }
5561 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5562 const int foo = 10;
5563 }
5564 #endif
5565
5566 ;
5567 return 0;
5568 }
5569 _ACEOF
5570 rm -f conftest.$ac_objext
5571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5572 (eval $ac_compile) 2>conftest.er1
5573 ac_status=$?
5574 grep -v '^ *+' conftest.er1 >conftest.err
5575 rm -f conftest.er1
5576 cat conftest.err >&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } &&
5579 { ac_try='test -z "$ac_c_werror_flag"
5580 || test ! -s conftest.err'
5581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582 (eval $ac_try) 2>&5
5583 ac_status=$?
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; } &&
5586 { ac_try='test -s conftest.$ac_objext'
5587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 (eval $ac_try) 2>&5
5589 ac_status=$?
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); }; }; then
5592 ac_cv_c_const=yes
5593 else
5594 echo "$as_me: failed program was:" >&5
5595 sed 's/^/| /' conftest.$ac_ext >&5
5596
5597 ac_cv_c_const=no
5598 fi
5599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5600 fi
5601 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5602 echo "${ECHO_T}$ac_cv_c_const" >&6
5603 if test $ac_cv_c_const = no; then
5604
5605 cat >>confdefs.h <<\_ACEOF
5606 #define const
5607 _ACEOF
5608
5609 fi
5610
5611 echo "$as_me:$LINENO: checking for inline" >&5
5612 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5613 if test "${ac_cv_c_inline+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616 ac_cv_c_inline=no
5617 for ac_kw in inline __inline__ __inline; do
5618 cat >conftest.$ac_ext <<_ACEOF
5619 /* confdefs.h. */
5620 _ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5624 #ifndef __cplusplus
5625 typedef int foo_t;
5626 static $ac_kw foo_t static_foo () {return 0; }
5627 $ac_kw foo_t foo () {return 0; }
5628 #endif
5629
5630 _ACEOF
5631 rm -f conftest.$ac_objext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633 (eval $ac_compile) 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try='test -z "$ac_c_werror_flag"
5641 || test ! -s conftest.err'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; } &&
5647 { ac_try='test -s conftest.$ac_objext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 (eval $ac_try) 2>&5
5650 ac_status=$?
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5653 ac_cv_c_inline=$ac_kw; break
5654 else
5655 echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5657
5658 fi
5659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5660 done
5661
5662 fi
5663 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5664 echo "${ECHO_T}$ac_cv_c_inline" >&6
5665
5666
5667 case $ac_cv_c_inline in
5668 inline | yes) ;;
5669 *)
5670 case $ac_cv_c_inline in
5671 no) ac_val=;;
5672 *) ac_val=$ac_cv_c_inline;;
5673 esac
5674 cat >>confdefs.h <<_ACEOF
5675 #ifndef __cplusplus
5676 #define inline $ac_val
5677 #endif
5678 _ACEOF
5679 ;;
5680 esac
5681
5682 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5693 inttypes.h stdint.h unistd.h
5694 do
5695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5696 echo "$as_me:$LINENO: checking for $ac_header" >&5
5697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701 cat >conftest.$ac_ext <<_ACEOF
5702 /* confdefs.h. */
5703 _ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h. */
5707 $ac_includes_default
5708
5709 #include <$ac_header>
5710 _ACEOF
5711 rm -f conftest.$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>conftest.er1
5714 ac_status=$?
5715 grep -v '^ *+' conftest.er1 >conftest.err
5716 rm -f conftest.er1
5717 cat conftest.err >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } &&
5720 { ac_try='test -z "$ac_c_werror_flag"
5721 || test ! -s conftest.err'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 (eval $ac_try) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; } &&
5727 { ac_try='test -s conftest.$ac_objext'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 (eval $ac_try) 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 eval "$as_ac_Header=yes"
5734 else
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5737
5738 eval "$as_ac_Header=no"
5739 fi
5740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5741 fi
5742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5745 cat >>confdefs.h <<_ACEOF
5746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5747 _ACEOF
5748
5749 fi
5750
5751 done
5752
5753
5754 echo "$as_me:$LINENO: checking for off_t" >&5
5755 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5756 if test "${ac_cv_type_off_t+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759 cat >conftest.$ac_ext <<_ACEOF
5760 /* confdefs.h. */
5761 _ACEOF
5762 cat confdefs.h >>conftest.$ac_ext
5763 cat >>conftest.$ac_ext <<_ACEOF
5764 /* end confdefs.h. */
5765 $ac_includes_default
5766 int
5767 main ()
5768 {
5769 if ((off_t *) 0)
5770 return 0;
5771 if (sizeof (off_t))
5772 return 0;
5773 ;
5774 return 0;
5775 }
5776 _ACEOF
5777 rm -f conftest.$ac_objext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779 (eval $ac_compile) 2>conftest.er1
5780 ac_status=$?
5781 grep -v '^ *+' conftest.er1 >conftest.err
5782 rm -f conftest.er1
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try='test -z "$ac_c_werror_flag"
5787 || test ! -s conftest.err'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 (eval $ac_try) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; } &&
5793 { ac_try='test -s conftest.$ac_objext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 (eval $ac_try) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5799 ac_cv_type_off_t=yes
5800 else
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 ac_cv_type_off_t=no
5805 fi
5806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5807 fi
5808 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5809 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5810 if test $ac_cv_type_off_t = yes; then
5811 :
5812 else
5813
5814 cat >>confdefs.h <<_ACEOF
5815 #define off_t long
5816 _ACEOF
5817
5818 fi
5819
5820 echo "$as_me:$LINENO: checking for size_t" >&5
5821 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5822 if test "${ac_cv_type_size_t+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825 cat >conftest.$ac_ext <<_ACEOF
5826 /* confdefs.h. */
5827 _ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5831 $ac_includes_default
5832 int
5833 main ()
5834 {
5835 if ((size_t *) 0)
5836 return 0;
5837 if (sizeof (size_t))
5838 return 0;
5839 ;
5840 return 0;
5841 }
5842 _ACEOF
5843 rm -f conftest.$ac_objext
5844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5845 (eval $ac_compile) 2>conftest.er1
5846 ac_status=$?
5847 grep -v '^ *+' conftest.er1 >conftest.err
5848 rm -f conftest.er1
5849 cat conftest.err >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } &&
5852 { ac_try='test -z "$ac_c_werror_flag"
5853 || test ! -s conftest.err'
5854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855 (eval $ac_try) 2>&5
5856 ac_status=$?
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; } &&
5859 { ac_try='test -s conftest.$ac_objext'
5860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 (eval $ac_try) 2>&5
5862 ac_status=$?
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; }; then
5865 ac_cv_type_size_t=yes
5866 else
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5869
5870 ac_cv_type_size_t=no
5871 fi
5872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5873 fi
5874 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5875 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5876 if test $ac_cv_type_size_t = yes; then
5877 :
5878 else
5879
5880 cat >>confdefs.h <<_ACEOF
5881 #define size_t unsigned
5882 _ACEOF
5883
5884 fi
5885
5886 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5887 # for constant arguments. Useless!
5888 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5889 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5890 if test "${ac_cv_working_alloca_h+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893 cat >conftest.$ac_ext <<_ACEOF
5894 /* confdefs.h. */
5895 _ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5899 #include <alloca.h>
5900 int
5901 main ()
5902 {
5903 char *p = (char *) alloca (2 * sizeof (int));
5904 ;
5905 return 0;
5906 }
5907 _ACEOF
5908 rm -f conftest.$ac_objext conftest$ac_exeext
5909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5910 (eval $ac_link) 2>conftest.er1
5911 ac_status=$?
5912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
5917 { ac_try='test -z "$ac_c_werror_flag"
5918 || test ! -s conftest.err'
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 (eval $ac_try) 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; } &&
5924 { ac_try='test -s conftest$ac_exeext'
5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 (eval $ac_try) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; }; then
5930 ac_cv_working_alloca_h=yes
5931 else
5932 echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.$ac_ext >&5
5934
5935 ac_cv_working_alloca_h=no
5936 fi
5937 rm -f conftest.err conftest.$ac_objext \
5938 conftest$ac_exeext conftest.$ac_ext
5939 fi
5940 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5941 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5942 if test $ac_cv_working_alloca_h = yes; then
5943
5944 cat >>confdefs.h <<\_ACEOF
5945 #define HAVE_ALLOCA_H 1
5946 _ACEOF
5947
5948 fi
5949
5950 echo "$as_me:$LINENO: checking for alloca" >&5
5951 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5952 if test "${ac_cv_func_alloca_works+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955 cat >conftest.$ac_ext <<_ACEOF
5956 /* confdefs.h. */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5961 #ifdef __GNUC__
5962 # define alloca __builtin_alloca
5963 #else
5964 # ifdef _MSC_VER
5965 # include <malloc.h>
5966 # define alloca _alloca
5967 # else
5968 # if HAVE_ALLOCA_H
5969 # include <alloca.h>
5970 # else
5971 # ifdef _AIX
5972 #pragma alloca
5973 # else
5974 # ifndef alloca /* predefined by HP cc +Olibcalls */
5975 char *alloca ();
5976 # endif
5977 # endif
5978 # endif
5979 # endif
5980 #endif
5981
5982 int
5983 main ()
5984 {
5985 char *p = (char *) alloca (1);
5986 ;
5987 return 0;
5988 }
5989 _ACEOF
5990 rm -f conftest.$ac_objext conftest$ac_exeext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5992 (eval $ac_link) 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try='test -z "$ac_c_werror_flag"
6000 || test ! -s conftest.err'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 (eval $ac_try) 2>&5
6003 ac_status=$?
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; } &&
6006 { ac_try='test -s conftest$ac_exeext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 (eval $ac_try) 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 ac_cv_func_alloca_works=yes
6013 else
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6016
6017 ac_cv_func_alloca_works=no
6018 fi
6019 rm -f conftest.err conftest.$ac_objext \
6020 conftest$ac_exeext conftest.$ac_ext
6021 fi
6022 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6023 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6024
6025 if test $ac_cv_func_alloca_works = yes; then
6026
6027 cat >>confdefs.h <<\_ACEOF
6028 #define HAVE_ALLOCA 1
6029 _ACEOF
6030
6031 else
6032 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6033 # that cause trouble. Some versions do not even contain alloca or
6034 # contain a buggy version. If you still want to use their alloca,
6035 # use ar to extract alloca.o from them instead of compiling alloca.c.
6036
6037 ALLOCA=alloca.$ac_objext
6038
6039 cat >>confdefs.h <<\_ACEOF
6040 #define C_ALLOCA 1
6041 _ACEOF
6042
6043
6044 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6045 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6046 if test "${ac_cv_os_cray+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049 cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h. */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6055 #if defined(CRAY) && ! defined(CRAY2)
6056 webecray
6057 #else
6058 wenotbecray
6059 #endif
6060
6061 _ACEOF
6062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6063 $EGREP "webecray" >/dev/null 2>&1; then
6064 ac_cv_os_cray=yes
6065 else
6066 ac_cv_os_cray=no
6067 fi
6068 rm -f conftest*
6069
6070 fi
6071 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6072 echo "${ECHO_T}$ac_cv_os_cray" >&6
6073 if test $ac_cv_os_cray = yes; then
6074 for ac_func in _getb67 GETB67 getb67; do
6075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6076 echo "$as_me:$LINENO: checking for $ac_func" >&5
6077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6078 if eval "test \"\${$as_ac_var+set}\" = set"; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081 cat >conftest.$ac_ext <<_ACEOF
6082 /* confdefs.h. */
6083 _ACEOF
6084 cat confdefs.h >>conftest.$ac_ext
6085 cat >>conftest.$ac_ext <<_ACEOF
6086 /* end confdefs.h. */
6087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6089 #define $ac_func innocuous_$ac_func
6090
6091 /* System header to define __stub macros and hopefully few prototypes,
6092 which can conflict with char $ac_func (); below.
6093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6094 <limits.h> exists even on freestanding compilers. */
6095
6096 #ifdef __STDC__
6097 # include <limits.h>
6098 #else
6099 # include <assert.h>
6100 #endif
6101
6102 #undef $ac_func
6103
6104 /* Override any gcc2 internal prototype to avoid an error. */
6105 #ifdef __cplusplus
6106 extern "C"
6107 {
6108 #endif
6109 /* We use char because int might match the return type of a gcc2
6110 builtin and then its argument prototype would still apply. */
6111 char $ac_func ();
6112 /* The GNU C library defines this for functions which it implements
6113 to always fail with ENOSYS. Some functions are actually named
6114 something starting with __ and the normal name is an alias. */
6115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6116 choke me
6117 #else
6118 char (*f) () = $ac_func;
6119 #endif
6120 #ifdef __cplusplus
6121 }
6122 #endif
6123
6124 int
6125 main ()
6126 {
6127 return f != $ac_func;
6128 ;
6129 return 0;
6130 }
6131 _ACEOF
6132 rm -f conftest.$ac_objext conftest$ac_exeext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6134 (eval $ac_link) 2>conftest.er1
6135 ac_status=$?
6136 grep -v '^ *+' conftest.er1 >conftest.err
6137 rm -f conftest.er1
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try='test -z "$ac_c_werror_flag"
6142 || test ! -s conftest.err'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 (eval $ac_try) 2>&5
6145 ac_status=$?
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; } &&
6148 { ac_try='test -s conftest$ac_exeext'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 (eval $ac_try) 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
6154 eval "$as_ac_var=yes"
6155 else
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6158
6159 eval "$as_ac_var=no"
6160 fi
6161 rm -f conftest.err conftest.$ac_objext \
6162 conftest$ac_exeext conftest.$ac_ext
6163 fi
6164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6166 if test `eval echo '${'$as_ac_var'}'` = yes; then
6167
6168 cat >>confdefs.h <<_ACEOF
6169 #define CRAY_STACKSEG_END $ac_func
6170 _ACEOF
6171
6172 break
6173 fi
6174
6175 done
6176 fi
6177
6178 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6179 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6180 if test "${ac_cv_c_stack_direction+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183 if test "$cross_compiling" = yes; then
6184 ac_cv_c_stack_direction=0
6185 else
6186 cat >conftest.$ac_ext <<_ACEOF
6187 /* confdefs.h. */
6188 _ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 int
6193 find_stack_direction ()
6194 {
6195 static char *addr = 0;
6196 auto char dummy;
6197 if (addr == 0)
6198 {
6199 addr = &dummy;
6200 return find_stack_direction ();
6201 }
6202 else
6203 return (&dummy > addr) ? 1 : -1;
6204 }
6205
6206 int
6207 main ()
6208 {
6209 exit (find_stack_direction () < 0);
6210 }
6211 _ACEOF
6212 rm -f conftest$ac_exeext
6213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6214 (eval $ac_link) 2>&5
6215 ac_status=$?
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 (eval $ac_try) 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; }; then
6223 ac_cv_c_stack_direction=1
6224 else
6225 echo "$as_me: program exited with status $ac_status" >&5
6226 echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6228
6229 ( exit $ac_status )
6230 ac_cv_c_stack_direction=-1
6231 fi
6232 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6233 fi
6234 fi
6235 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6236 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6237
6238 cat >>confdefs.h <<_ACEOF
6239 #define STACK_DIRECTION $ac_cv_c_stack_direction
6240 _ACEOF
6241
6242
6243 fi
6244
6245
6246
6247 for ac_header in stdlib.h unistd.h
6248 do
6249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6251 echo "$as_me:$LINENO: checking for $ac_header" >&5
6252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 fi
6256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6258 else
6259 # Is the header compilable?
6260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6262 cat >conftest.$ac_ext <<_ACEOF
6263 /* confdefs.h. */
6264 _ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6268 $ac_includes_default
6269 #include <$ac_header>
6270 _ACEOF
6271 rm -f conftest.$ac_objext
6272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273 (eval $ac_compile) 2>conftest.er1
6274 ac_status=$?
6275 grep -v '^ *+' conftest.er1 >conftest.err
6276 rm -f conftest.er1
6277 cat conftest.err >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } &&
6280 { ac_try='test -z "$ac_c_werror_flag"
6281 || test ! -s conftest.err'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 (eval $ac_try) 2>&5
6284 ac_status=$?
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; } &&
6287 { ac_try='test -s conftest.$ac_objext'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 (eval $ac_try) 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6293 ac_header_compiler=yes
6294 else
6295 echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.$ac_ext >&5
6297
6298 ac_header_compiler=no
6299 fi
6300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6302 echo "${ECHO_T}$ac_header_compiler" >&6
6303
6304 # Is the header present?
6305 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6307 cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h. */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6313 #include <$ac_header>
6314 _ACEOF
6315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6317 ac_status=$?
6318 grep -v '^ *+' conftest.er1 >conftest.err
6319 rm -f conftest.er1
6320 cat conftest.err >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } >/dev/null; then
6323 if test -s conftest.err; then
6324 ac_cpp_err=$ac_c_preproc_warn_flag
6325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6326 else
6327 ac_cpp_err=
6328 fi
6329 else
6330 ac_cpp_err=yes
6331 fi
6332 if test -z "$ac_cpp_err"; then
6333 ac_header_preproc=yes
6334 else
6335 echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6337
6338 ac_header_preproc=no
6339 fi
6340 rm -f conftest.err conftest.$ac_ext
6341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6342 echo "${ECHO_T}$ac_header_preproc" >&6
6343
6344 # So? What about this header?
6345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6346 yes:no: )
6347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6351 ac_header_preproc=yes
6352 ;;
6353 no:yes:* )
6354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6366 (
6367 cat <<\_ASBOX
6368 ## ------------------------------------------ ##
6369 ## Report this to the AC_PACKAGE_NAME lists. ##
6370 ## ------------------------------------------ ##
6371 _ASBOX
6372 ) |
6373 sed "s/^/$as_me: WARNING: /" >&2
6374 ;;
6375 esac
6376 echo "$as_me:$LINENO: checking for $ac_header" >&5
6377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381 eval "$as_ac_Header=\$ac_header_preproc"
6382 fi
6383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6385
6386 fi
6387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6388 cat >>confdefs.h <<_ACEOF
6389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6390 _ACEOF
6391
6392 fi
6393
6394 done
6395
6396
6397 for ac_func in getpagesize
6398 do
6399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6400 echo "$as_me:$LINENO: checking for $ac_func" >&5
6401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6402 if eval "test \"\${$as_ac_var+set}\" = set"; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 else
6405 cat >conftest.$ac_ext <<_ACEOF
6406 /* confdefs.h. */
6407 _ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6413 #define $ac_func innocuous_$ac_func
6414
6415 /* System header to define __stub macros and hopefully few prototypes,
6416 which can conflict with char $ac_func (); below.
6417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6418 <limits.h> exists even on freestanding compilers. */
6419
6420 #ifdef __STDC__
6421 # include <limits.h>
6422 #else
6423 # include <assert.h>
6424 #endif
6425
6426 #undef $ac_func
6427
6428 /* Override any gcc2 internal prototype to avoid an error. */
6429 #ifdef __cplusplus
6430 extern "C"
6431 {
6432 #endif
6433 /* We use char because int might match the return type of a gcc2
6434 builtin and then its argument prototype would still apply. */
6435 char $ac_func ();
6436 /* The GNU C library defines this for functions which it implements
6437 to always fail with ENOSYS. Some functions are actually named
6438 something starting with __ and the normal name is an alias. */
6439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6440 choke me
6441 #else
6442 char (*f) () = $ac_func;
6443 #endif
6444 #ifdef __cplusplus
6445 }
6446 #endif
6447
6448 int
6449 main ()
6450 {
6451 return f != $ac_func;
6452 ;
6453 return 0;
6454 }
6455 _ACEOF
6456 rm -f conftest.$ac_objext conftest$ac_exeext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6458 (eval $ac_link) 2>conftest.er1
6459 ac_status=$?
6460 grep -v '^ *+' conftest.er1 >conftest.err
6461 rm -f conftest.er1
6462 cat conftest.err >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } &&
6465 { ac_try='test -z "$ac_c_werror_flag"
6466 || test ! -s conftest.err'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468 (eval $ac_try) 2>&5
6469 ac_status=$?
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; } &&
6472 { ac_try='test -s conftest$ac_exeext'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474 (eval $ac_try) 2>&5
6475 ac_status=$?
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; }; then
6478 eval "$as_ac_var=yes"
6479 else
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6482
6483 eval "$as_ac_var=no"
6484 fi
6485 rm -f conftest.err conftest.$ac_objext \
6486 conftest$ac_exeext conftest.$ac_ext
6487 fi
6488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6489 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6490 if test `eval echo '${'$as_ac_var'}'` = yes; then
6491 cat >>confdefs.h <<_ACEOF
6492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6493 _ACEOF
6494
6495 fi
6496 done
6497
6498 echo "$as_me:$LINENO: checking for working mmap" >&5
6499 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6500 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 else
6503 if test "$cross_compiling" = yes; then
6504 ac_cv_func_mmap_fixed_mapped=no
6505 else
6506 cat >conftest.$ac_ext <<_ACEOF
6507 /* confdefs.h. */
6508 _ACEOF
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h. */
6512 $ac_includes_default
6513 /* malloc might have been renamed as rpl_malloc. */
6514 #undef malloc
6515
6516 /* Thanks to Mike Haertel and Jim Avera for this test.
6517 Here is a matrix of mmap possibilities:
6518 mmap private not fixed
6519 mmap private fixed at somewhere currently unmapped
6520 mmap private fixed at somewhere already mapped
6521 mmap shared not fixed
6522 mmap shared fixed at somewhere currently unmapped
6523 mmap shared fixed at somewhere already mapped
6524 For private mappings, we should verify that changes cannot be read()
6525 back from the file, nor mmap's back from the file at a different
6526 address. (There have been systems where private was not correctly
6527 implemented like the infamous i386 svr4.0, and systems where the
6528 VM page cache was not coherent with the file system buffer cache
6529 like early versions of FreeBSD and possibly contemporary NetBSD.)
6530 For shared mappings, we should conversely verify that changes get
6531 propagated back to all the places they're supposed to be.
6532
6533 Grep wants private fixed already mapped.
6534 The main things grep needs to know about mmap are:
6535 * does it exist and is it safe to write into the mmap'd area
6536 * how to use it (BSD variants) */
6537
6538 #include <fcntl.h>
6539 #include <sys/mman.h>
6540
6541 #if !STDC_HEADERS && !HAVE_STDLIB_H
6542 char *malloc ();
6543 #endif
6544
6545 /* This mess was copied from the GNU getpagesize.h. */
6546 #if !HAVE_GETPAGESIZE
6547 /* Assume that all systems that can run configure have sys/param.h. */
6548 # if !HAVE_SYS_PARAM_H
6549 # define HAVE_SYS_PARAM_H 1
6550 # endif
6551
6552 # ifdef _SC_PAGESIZE
6553 # define getpagesize() sysconf(_SC_PAGESIZE)
6554 # else /* no _SC_PAGESIZE */
6555 # if HAVE_SYS_PARAM_H
6556 # include <sys/param.h>
6557 # ifdef EXEC_PAGESIZE
6558 # define getpagesize() EXEC_PAGESIZE
6559 # else /* no EXEC_PAGESIZE */
6560 # ifdef NBPG
6561 # define getpagesize() NBPG * CLSIZE
6562 # ifndef CLSIZE
6563 # define CLSIZE 1
6564 # endif /* no CLSIZE */
6565 # else /* no NBPG */
6566 # ifdef NBPC
6567 # define getpagesize() NBPC
6568 # else /* no NBPC */
6569 # ifdef PAGESIZE
6570 # define getpagesize() PAGESIZE
6571 # endif /* PAGESIZE */
6572 # endif /* no NBPC */
6573 # endif /* no NBPG */
6574 # endif /* no EXEC_PAGESIZE */
6575 # else /* no HAVE_SYS_PARAM_H */
6576 # define getpagesize() 8192 /* punt totally */
6577 # endif /* no HAVE_SYS_PARAM_H */
6578 # endif /* no _SC_PAGESIZE */
6579
6580 #endif /* no HAVE_GETPAGESIZE */
6581
6582 int
6583 main ()
6584 {
6585 char *data, *data2, *data3;
6586 int i, pagesize;
6587 int fd;
6588
6589 pagesize = getpagesize ();
6590
6591 /* First, make a file with some known garbage in it. */
6592 data = (char *) malloc (pagesize);
6593 if (!data)
6594 exit (1);
6595 for (i = 0; i < pagesize; ++i)
6596 *(data + i) = rand ();
6597 umask (0);
6598 fd = creat ("conftest.mmap", 0600);
6599 if (fd < 0)
6600 exit (1);
6601 if (write (fd, data, pagesize) != pagesize)
6602 exit (1);
6603 close (fd);
6604
6605 /* Next, try to mmap the file at a fixed address which already has
6606 something else allocated at it. If we can, also make sure that
6607 we see the same garbage. */
6608 fd = open ("conftest.mmap", O_RDWR);
6609 if (fd < 0)
6610 exit (1);
6611 data2 = (char *) malloc (2 * pagesize);
6612 if (!data2)
6613 exit (1);
6614 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6615 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6616 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6617 exit (1);
6618 for (i = 0; i < pagesize; ++i)
6619 if (*(data + i) != *(data2 + i))
6620 exit (1);
6621
6622 /* Finally, make sure that changes to the mapped area do not
6623 percolate back to the file as seen by read(). (This is a bug on
6624 some variants of i386 svr4.0.) */
6625 for (i = 0; i < pagesize; ++i)
6626 *(data2 + i) = *(data2 + i) + 1;
6627 data3 = (char *) malloc (pagesize);
6628 if (!data3)
6629 exit (1);
6630 if (read (fd, data3, pagesize) != pagesize)
6631 exit (1);
6632 for (i = 0; i < pagesize; ++i)
6633 if (*(data + i) != *(data3 + i))
6634 exit (1);
6635 close (fd);
6636 exit (0);
6637 }
6638 _ACEOF
6639 rm -f conftest$ac_exeext
6640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6641 (eval $ac_link) 2>&5
6642 ac_status=$?
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 (eval $ac_try) 2>&5
6647 ac_status=$?
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; }; then
6650 ac_cv_func_mmap_fixed_mapped=yes
6651 else
6652 echo "$as_me: program exited with status $ac_status" >&5
6653 echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.$ac_ext >&5
6655
6656 ( exit $ac_status )
6657 ac_cv_func_mmap_fixed_mapped=no
6658 fi
6659 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6660 fi
6661 fi
6662 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6663 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6664 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6665
6666 cat >>confdefs.h <<\_ACEOF
6667 #define HAVE_MMAP 1
6668 _ACEOF
6669
6670 fi
6671 rm -f conftest.mmap
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6684 unistd.h values.h sys/param.h
6685 do
6686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6688 echo "$as_me:$LINENO: checking for $ac_header" >&5
6689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 fi
6693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6695 else
6696 # Is the header compilable?
6697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6699 cat >conftest.$ac_ext <<_ACEOF
6700 /* confdefs.h. */
6701 _ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h. */
6705 $ac_includes_default
6706 #include <$ac_header>
6707 _ACEOF
6708 rm -f conftest.$ac_objext
6709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6710 (eval $ac_compile) 2>conftest.er1
6711 ac_status=$?
6712 grep -v '^ *+' conftest.er1 >conftest.err
6713 rm -f conftest.er1
6714 cat conftest.err >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } &&
6717 { ac_try='test -z "$ac_c_werror_flag"
6718 || test ! -s conftest.err'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720 (eval $ac_try) 2>&5
6721 ac_status=$?
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; } &&
6724 { ac_try='test -s conftest.$ac_objext'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726 (eval $ac_try) 2>&5
6727 ac_status=$?
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; }; then
6730 ac_header_compiler=yes
6731 else
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6734
6735 ac_header_compiler=no
6736 fi
6737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6739 echo "${ECHO_T}$ac_header_compiler" >&6
6740
6741 # Is the header present?
6742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6744 cat >conftest.$ac_ext <<_ACEOF
6745 /* confdefs.h. */
6746 _ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6750 #include <$ac_header>
6751 _ACEOF
6752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6754 ac_status=$?
6755 grep -v '^ *+' conftest.er1 >conftest.err
6756 rm -f conftest.er1
6757 cat conftest.err >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } >/dev/null; then
6760 if test -s conftest.err; then
6761 ac_cpp_err=$ac_c_preproc_warn_flag
6762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6763 else
6764 ac_cpp_err=
6765 fi
6766 else
6767 ac_cpp_err=yes
6768 fi
6769 if test -z "$ac_cpp_err"; then
6770 ac_header_preproc=yes
6771 else
6772 echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6774
6775 ac_header_preproc=no
6776 fi
6777 rm -f conftest.err conftest.$ac_ext
6778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6779 echo "${ECHO_T}$ac_header_preproc" >&6
6780
6781 # So? What about this header?
6782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6783 yes:no: )
6784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6788 ac_header_preproc=yes
6789 ;;
6790 no:yes:* )
6791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6803 (
6804 cat <<\_ASBOX
6805 ## ------------------------------------------ ##
6806 ## Report this to the AC_PACKAGE_NAME lists. ##
6807 ## ------------------------------------------ ##
6808 _ASBOX
6809 ) |
6810 sed "s/^/$as_me: WARNING: /" >&2
6811 ;;
6812 esac
6813 echo "$as_me:$LINENO: checking for $ac_header" >&5
6814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6817 else
6818 eval "$as_ac_Header=\$ac_header_preproc"
6819 fi
6820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6822
6823 fi
6824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6825 cat >>confdefs.h <<_ACEOF
6826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6827 _ACEOF
6828
6829 fi
6830
6831 done
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6844 __argz_count __argz_stringify __argz_next
6845 do
6846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6847 echo "$as_me:$LINENO: checking for $ac_func" >&5
6848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6849 if eval "test \"\${$as_ac_var+set}\" = set"; then
6850 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 else
6852 cat >conftest.$ac_ext <<_ACEOF
6853 /* confdefs.h. */
6854 _ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6860 #define $ac_func innocuous_$ac_func
6861
6862 /* System header to define __stub macros and hopefully few prototypes,
6863 which can conflict with char $ac_func (); below.
6864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6865 <limits.h> exists even on freestanding compilers. */
6866
6867 #ifdef __STDC__
6868 # include <limits.h>
6869 #else
6870 # include <assert.h>
6871 #endif
6872
6873 #undef $ac_func
6874
6875 /* Override any gcc2 internal prototype to avoid an error. */
6876 #ifdef __cplusplus
6877 extern "C"
6878 {
6879 #endif
6880 /* We use char because int might match the return type of a gcc2
6881 builtin and then its argument prototype would still apply. */
6882 char $ac_func ();
6883 /* The GNU C library defines this for functions which it implements
6884 to always fail with ENOSYS. Some functions are actually named
6885 something starting with __ and the normal name is an alias. */
6886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6887 choke me
6888 #else
6889 char (*f) () = $ac_func;
6890 #endif
6891 #ifdef __cplusplus
6892 }
6893 #endif
6894
6895 int
6896 main ()
6897 {
6898 return f != $ac_func;
6899 ;
6900 return 0;
6901 }
6902 _ACEOF
6903 rm -f conftest.$ac_objext conftest$ac_exeext
6904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6905 (eval $ac_link) 2>conftest.er1
6906 ac_status=$?
6907 grep -v '^ *+' conftest.er1 >conftest.err
6908 rm -f conftest.er1
6909 cat conftest.err >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } &&
6912 { ac_try='test -z "$ac_c_werror_flag"
6913 || test ! -s conftest.err'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 (eval $ac_try) 2>&5
6916 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; } &&
6919 { ac_try='test -s conftest$ac_exeext'
6920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921 (eval $ac_try) 2>&5
6922 ac_status=$?
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; }; then
6925 eval "$as_ac_var=yes"
6926 else
6927 echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6929
6930 eval "$as_ac_var=no"
6931 fi
6932 rm -f conftest.err conftest.$ac_objext \
6933 conftest$ac_exeext conftest.$ac_ext
6934 fi
6935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6937 if test `eval echo '${'$as_ac_var'}'` = yes; then
6938 cat >>confdefs.h <<_ACEOF
6939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6940 _ACEOF
6941
6942 fi
6943 done
6944
6945
6946 if test "${ac_cv_func_stpcpy+set}" != "set"; then
6947
6948 for ac_func in stpcpy
6949 do
6950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6951 echo "$as_me:$LINENO: checking for $ac_func" >&5
6952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6953 if eval "test \"\${$as_ac_var+set}\" = set"; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 else
6956 cat >conftest.$ac_ext <<_ACEOF
6957 /* confdefs.h. */
6958 _ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6964 #define $ac_func innocuous_$ac_func
6965
6966 /* System header to define __stub macros and hopefully few prototypes,
6967 which can conflict with char $ac_func (); below.
6968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6969 <limits.h> exists even on freestanding compilers. */
6970
6971 #ifdef __STDC__
6972 # include <limits.h>
6973 #else
6974 # include <assert.h>
6975 #endif
6976
6977 #undef $ac_func
6978
6979 /* Override any gcc2 internal prototype to avoid an error. */
6980 #ifdef __cplusplus
6981 extern "C"
6982 {
6983 #endif
6984 /* We use char because int might match the return type of a gcc2
6985 builtin and then its argument prototype would still apply. */
6986 char $ac_func ();
6987 /* The GNU C library defines this for functions which it implements
6988 to always fail with ENOSYS. Some functions are actually named
6989 something starting with __ and the normal name is an alias. */
6990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6991 choke me
6992 #else
6993 char (*f) () = $ac_func;
6994 #endif
6995 #ifdef __cplusplus
6996 }
6997 #endif
6998
6999 int
7000 main ()
7001 {
7002 return f != $ac_func;
7003 ;
7004 return 0;
7005 }
7006 _ACEOF
7007 rm -f conftest.$ac_objext conftest$ac_exeext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7009 (eval $ac_link) 2>conftest.er1
7010 ac_status=$?
7011 grep -v '^ *+' conftest.er1 >conftest.err
7012 rm -f conftest.er1
7013 cat conftest.err >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } &&
7016 { ac_try='test -z "$ac_c_werror_flag"
7017 || test ! -s conftest.err'
7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 (eval $ac_try) 2>&5
7020 ac_status=$?
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; } &&
7023 { ac_try='test -s conftest$ac_exeext'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 (eval $ac_try) 2>&5
7026 ac_status=$?
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; }; then
7029 eval "$as_ac_var=yes"
7030 else
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7033
7034 eval "$as_ac_var=no"
7035 fi
7036 rm -f conftest.err conftest.$ac_objext \
7037 conftest$ac_exeext conftest.$ac_ext
7038 fi
7039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7040 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7041 if test `eval echo '${'$as_ac_var'}'` = yes; then
7042 cat >>confdefs.h <<_ACEOF
7043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7044 _ACEOF
7045
7046 fi
7047 done
7048
7049 fi
7050 if test "${ac_cv_func_stpcpy}" = "yes"; then
7051
7052 cat >>confdefs.h <<\_ACEOF
7053 #define HAVE_STPCPY 1
7054 _ACEOF
7055
7056 fi
7057
7058 if test $ac_cv_header_locale_h = yes; then
7059 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7060 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7061 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064 cat >conftest.$ac_ext <<_ACEOF
7065 /* confdefs.h. */
7066 _ACEOF
7067 cat confdefs.h >>conftest.$ac_ext
7068 cat >>conftest.$ac_ext <<_ACEOF
7069 /* end confdefs.h. */
7070 #include <locale.h>
7071 int
7072 main ()
7073 {
7074 return LC_MESSAGES
7075 ;
7076 return 0;
7077 }
7078 _ACEOF
7079 rm -f conftest.$ac_objext conftest$ac_exeext
7080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7081 (eval $ac_link) 2>conftest.er1
7082 ac_status=$?
7083 grep -v '^ *+' conftest.er1 >conftest.err
7084 rm -f conftest.er1
7085 cat conftest.err >&5
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); } &&
7088 { ac_try='test -z "$ac_c_werror_flag"
7089 || test ! -s conftest.err'
7090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091 (eval $ac_try) 2>&5
7092 ac_status=$?
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; } &&
7095 { ac_try='test -s conftest$ac_exeext'
7096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097 (eval $ac_try) 2>&5
7098 ac_status=$?
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; }; then
7101 am_cv_val_LC_MESSAGES=yes
7102 else
7103 echo "$as_me: failed program was:" >&5
7104 sed 's/^/| /' conftest.$ac_ext >&5
7105
7106 am_cv_val_LC_MESSAGES=no
7107 fi
7108 rm -f conftest.err conftest.$ac_objext \
7109 conftest$ac_exeext conftest.$ac_ext
7110 fi
7111 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7112 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7113 if test $am_cv_val_LC_MESSAGES = yes; then
7114
7115 cat >>confdefs.h <<\_ACEOF
7116 #define HAVE_LC_MESSAGES 1
7117 _ACEOF
7118
7119 fi
7120 fi
7121 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7122 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7123 # Check whether --enable-nls or --disable-nls was given.
7124 if test "${enable_nls+set}" = set; then
7125 enableval="$enable_nls"
7126 USE_NLS=$enableval
7127 else
7128 USE_NLS=yes
7129 fi;
7130 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7131 echo "${ECHO_T}$USE_NLS" >&6
7132
7133
7134 USE_INCLUDED_LIBINTL=no
7135
7136 if test "$USE_NLS" = "yes"; then
7137 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7138 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7139
7140 # Check whether --with-included-gettext or --without-included-gettext was given.
7141 if test "${with_included_gettext+set}" = set; then
7142 withval="$with_included_gettext"
7143 nls_cv_force_use_gnu_gettext=$withval
7144 else
7145 nls_cv_force_use_gnu_gettext=no
7146 fi;
7147 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7148 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7149
7150 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7151 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7152 nls_cv_header_intl=
7153 nls_cv_header_libgt=
7154 CATOBJEXT=
7155
7156 if test "${ac_cv_header_libintl_h+set}" = set; then
7157 echo "$as_me:$LINENO: checking for libintl.h" >&5
7158 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7159 if test "${ac_cv_header_libintl_h+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 fi
7162 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7163 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7164 else
7165 # Is the header compilable?
7166 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7167 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7168 cat >conftest.$ac_ext <<_ACEOF
7169 /* confdefs.h. */
7170 _ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7174 $ac_includes_default
7175 #include <libintl.h>
7176 _ACEOF
7177 rm -f conftest.$ac_objext
7178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7179 (eval $ac_compile) 2>conftest.er1
7180 ac_status=$?
7181 grep -v '^ *+' conftest.er1 >conftest.err
7182 rm -f conftest.er1
7183 cat conftest.err >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } &&
7186 { ac_try='test -z "$ac_c_werror_flag"
7187 || test ! -s conftest.err'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 (eval $ac_try) 2>&5
7190 ac_status=$?
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; } &&
7193 { ac_try='test -s conftest.$ac_objext'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 (eval $ac_try) 2>&5
7196 ac_status=$?
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; }; then
7199 ac_header_compiler=yes
7200 else
7201 echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7203
7204 ac_header_compiler=no
7205 fi
7206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7207 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7208 echo "${ECHO_T}$ac_header_compiler" >&6
7209
7210 # Is the header present?
7211 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7212 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7213 cat >conftest.$ac_ext <<_ACEOF
7214 /* confdefs.h. */
7215 _ACEOF
7216 cat confdefs.h >>conftest.$ac_ext
7217 cat >>conftest.$ac_ext <<_ACEOF
7218 /* end confdefs.h. */
7219 #include <libintl.h>
7220 _ACEOF
7221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7223 ac_status=$?
7224 grep -v '^ *+' conftest.er1 >conftest.err
7225 rm -f conftest.er1
7226 cat conftest.err >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } >/dev/null; then
7229 if test -s conftest.err; then
7230 ac_cpp_err=$ac_c_preproc_warn_flag
7231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7232 else
7233 ac_cpp_err=
7234 fi
7235 else
7236 ac_cpp_err=yes
7237 fi
7238 if test -z "$ac_cpp_err"; then
7239 ac_header_preproc=yes
7240 else
7241 echo "$as_me: failed program was:" >&5
7242 sed 's/^/| /' conftest.$ac_ext >&5
7243
7244 ac_header_preproc=no
7245 fi
7246 rm -f conftest.err conftest.$ac_ext
7247 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7248 echo "${ECHO_T}$ac_header_preproc" >&6
7249
7250 # So? What about this header?
7251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7252 yes:no: )
7253 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7254 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7255 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7256 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7257 ac_header_preproc=yes
7258 ;;
7259 no:yes:* )
7260 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7261 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7262 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7263 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7264 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7265 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7266 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7267 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7268 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7269 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7270 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7271 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7272 (
7273 cat <<\_ASBOX
7274 ## ------------------------------------------ ##
7275 ## Report this to the AC_PACKAGE_NAME lists. ##
7276 ## ------------------------------------------ ##
7277 _ASBOX
7278 ) |
7279 sed "s/^/$as_me: WARNING: /" >&2
7280 ;;
7281 esac
7282 echo "$as_me:$LINENO: checking for libintl.h" >&5
7283 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7284 if test "${ac_cv_header_libintl_h+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287 ac_cv_header_libintl_h=$ac_header_preproc
7288 fi
7289 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7290 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7291
7292 fi
7293 if test $ac_cv_header_libintl_h = yes; then
7294 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7295 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7296 if test "${gt_cv_func_gettext_libc+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299 cat >conftest.$ac_ext <<_ACEOF
7300 /* confdefs.h. */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7305 #include <libintl.h>
7306 int
7307 main ()
7308 {
7309 return (int) gettext ("")
7310 ;
7311 return 0;
7312 }
7313 _ACEOF
7314 rm -f conftest.$ac_objext conftest$ac_exeext
7315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7316 (eval $ac_link) 2>conftest.er1
7317 ac_status=$?
7318 grep -v '^ *+' conftest.er1 >conftest.err
7319 rm -f conftest.er1
7320 cat conftest.err >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } &&
7323 { ac_try='test -z "$ac_c_werror_flag"
7324 || test ! -s conftest.err'
7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326 (eval $ac_try) 2>&5
7327 ac_status=$?
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); }; } &&
7330 { ac_try='test -s conftest$ac_exeext'
7331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7332 (eval $ac_try) 2>&5
7333 ac_status=$?
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); }; }; then
7336 gt_cv_func_gettext_libc=yes
7337 else
7338 echo "$as_me: failed program was:" >&5
7339 sed 's/^/| /' conftest.$ac_ext >&5
7340
7341 gt_cv_func_gettext_libc=no
7342 fi
7343 rm -f conftest.err conftest.$ac_objext \
7344 conftest$ac_exeext conftest.$ac_ext
7345 fi
7346 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7347 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7348
7349 if test "$gt_cv_func_gettext_libc" != "yes"; then
7350 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7351 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7352 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355 ac_check_lib_save_LIBS=$LIBS
7356 LIBS="-lintl $LIBS"
7357 cat >conftest.$ac_ext <<_ACEOF
7358 /* confdefs.h. */
7359 _ACEOF
7360 cat confdefs.h >>conftest.$ac_ext
7361 cat >>conftest.$ac_ext <<_ACEOF
7362 /* end confdefs.h. */
7363
7364 /* Override any gcc2 internal prototype to avoid an error. */
7365 #ifdef __cplusplus
7366 extern "C"
7367 #endif
7368 /* We use char because int might match the return type of a gcc2
7369 builtin and then its argument prototype would still apply. */
7370 char bindtextdomain ();
7371 int
7372 main ()
7373 {
7374 bindtextdomain ();
7375 ;
7376 return 0;
7377 }
7378 _ACEOF
7379 rm -f conftest.$ac_objext conftest$ac_exeext
7380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7381 (eval $ac_link) 2>conftest.er1
7382 ac_status=$?
7383 grep -v '^ *+' conftest.er1 >conftest.err
7384 rm -f conftest.er1
7385 cat conftest.err >&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); } &&
7388 { ac_try='test -z "$ac_c_werror_flag"
7389 || test ! -s conftest.err'
7390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391 (eval $ac_try) 2>&5
7392 ac_status=$?
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }; } &&
7395 { ac_try='test -s conftest$ac_exeext'
7396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7397 (eval $ac_try) 2>&5
7398 ac_status=$?
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); }; }; then
7401 ac_cv_lib_intl_bindtextdomain=yes
7402 else
7403 echo "$as_me: failed program was:" >&5
7404 sed 's/^/| /' conftest.$ac_ext >&5
7405
7406 ac_cv_lib_intl_bindtextdomain=no
7407 fi
7408 rm -f conftest.err conftest.$ac_objext \
7409 conftest$ac_exeext conftest.$ac_ext
7410 LIBS=$ac_check_lib_save_LIBS
7411 fi
7412 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7413 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7414 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7415 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7416 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7417 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420 cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h. */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7426
7427 int
7428 main ()
7429 {
7430 return (int) gettext ("")
7431 ;
7432 return 0;
7433 }
7434 _ACEOF
7435 rm -f conftest.$ac_objext conftest$ac_exeext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7437 (eval $ac_link) 2>conftest.er1
7438 ac_status=$?
7439 grep -v '^ *+' conftest.er1 >conftest.err
7440 rm -f conftest.er1
7441 cat conftest.err >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } &&
7444 { ac_try='test -z "$ac_c_werror_flag"
7445 || test ! -s conftest.err'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 (eval $ac_try) 2>&5
7448 ac_status=$?
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; } &&
7451 { ac_try='test -s conftest$ac_exeext'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 (eval $ac_try) 2>&5
7454 ac_status=$?
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; }; then
7457 gt_cv_func_gettext_libintl=yes
7458 else
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7461
7462 gt_cv_func_gettext_libintl=no
7463 fi
7464 rm -f conftest.err conftest.$ac_objext \
7465 conftest$ac_exeext conftest.$ac_ext
7466 fi
7467 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7468 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7469 fi
7470
7471 fi
7472
7473 if test "$gt_cv_func_gettext_libc" = "yes" \
7474 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7475
7476 cat >>confdefs.h <<\_ACEOF
7477 #define HAVE_GETTEXT 1
7478 _ACEOF
7479
7480 # Extract the first word of "msgfmt", so it can be a program name with args.
7481 set dummy msgfmt; ac_word=$2
7482 echo "$as_me:$LINENO: checking for $ac_word" >&5
7483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7484 if test "${ac_cv_path_MSGFMT+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 else
7487 case "$MSGFMT" in
7488 /*)
7489 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7490 ;;
7491 *)
7492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7493 for ac_dir in $PATH; do
7494 test -z "$ac_dir" && ac_dir=.
7495 if test -f $ac_dir/$ac_word; then
7496 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7497 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7498 break
7499 fi
7500 fi
7501 done
7502 IFS="$ac_save_ifs"
7503 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7504 ;;
7505 esac
7506 fi
7507 MSGFMT="$ac_cv_path_MSGFMT"
7508 if test -n "$MSGFMT"; then
7509 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7510 echo "${ECHO_T}$MSGFMT" >&6
7511 else
7512 echo "$as_me:$LINENO: result: no" >&5
7513 echo "${ECHO_T}no" >&6
7514 fi
7515 if test "$MSGFMT" != "no"; then
7516
7517 for ac_func in dcgettext
7518 do
7519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7520 echo "$as_me:$LINENO: checking for $ac_func" >&5
7521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7522 if eval "test \"\${$as_ac_var+set}\" = set"; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 else
7525 cat >conftest.$ac_ext <<_ACEOF
7526 /* confdefs.h. */
7527 _ACEOF
7528 cat confdefs.h >>conftest.$ac_ext
7529 cat >>conftest.$ac_ext <<_ACEOF
7530 /* end confdefs.h. */
7531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7533 #define $ac_func innocuous_$ac_func
7534
7535 /* System header to define __stub macros and hopefully few prototypes,
7536 which can conflict with char $ac_func (); below.
7537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7538 <limits.h> exists even on freestanding compilers. */
7539
7540 #ifdef __STDC__
7541 # include <limits.h>
7542 #else
7543 # include <assert.h>
7544 #endif
7545
7546 #undef $ac_func
7547
7548 /* Override any gcc2 internal prototype to avoid an error. */
7549 #ifdef __cplusplus
7550 extern "C"
7551 {
7552 #endif
7553 /* We use char because int might match the return type of a gcc2
7554 builtin and then its argument prototype would still apply. */
7555 char $ac_func ();
7556 /* The GNU C library defines this for functions which it implements
7557 to always fail with ENOSYS. Some functions are actually named
7558 something starting with __ and the normal name is an alias. */
7559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7560 choke me
7561 #else
7562 char (*f) () = $ac_func;
7563 #endif
7564 #ifdef __cplusplus
7565 }
7566 #endif
7567
7568 int
7569 main ()
7570 {
7571 return f != $ac_func;
7572 ;
7573 return 0;
7574 }
7575 _ACEOF
7576 rm -f conftest.$ac_objext conftest$ac_exeext
7577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7578 (eval $ac_link) 2>conftest.er1
7579 ac_status=$?
7580 grep -v '^ *+' conftest.er1 >conftest.err
7581 rm -f conftest.er1
7582 cat conftest.err >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } &&
7585 { ac_try='test -z "$ac_c_werror_flag"
7586 || test ! -s conftest.err'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588 (eval $ac_try) 2>&5
7589 ac_status=$?
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; } &&
7592 { ac_try='test -s conftest$ac_exeext'
7593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594 (eval $ac_try) 2>&5
7595 ac_status=$?
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); }; }; then
7598 eval "$as_ac_var=yes"
7599 else
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.$ac_ext >&5
7602
7603 eval "$as_ac_var=no"
7604 fi
7605 rm -f conftest.err conftest.$ac_objext \
7606 conftest$ac_exeext conftest.$ac_ext
7607 fi
7608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7610 if test `eval echo '${'$as_ac_var'}'` = yes; then
7611 cat >>confdefs.h <<_ACEOF
7612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7613 _ACEOF
7614
7615 fi
7616 done
7617
7618 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7619 set dummy gmsgfmt; ac_word=$2
7620 echo "$as_me:$LINENO: checking for $ac_word" >&5
7621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7622 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7624 else
7625 case $GMSGFMT in
7626 [\\/]* | ?:[\\/]*)
7627 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7628 ;;
7629 *)
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 for as_dir in $PATH
7632 do
7633 IFS=$as_save_IFS
7634 test -z "$as_dir" && as_dir=.
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7637 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 break 2
7640 fi
7641 done
7642 done
7643
7644 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7645 ;;
7646 esac
7647 fi
7648 GMSGFMT=$ac_cv_path_GMSGFMT
7649
7650 if test -n "$GMSGFMT"; then
7651 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7652 echo "${ECHO_T}$GMSGFMT" >&6
7653 else
7654 echo "$as_me:$LINENO: result: no" >&5
7655 echo "${ECHO_T}no" >&6
7656 fi
7657
7658 # Extract the first word of "xgettext", so it can be a program name with args.
7659 set dummy xgettext; ac_word=$2
7660 echo "$as_me:$LINENO: checking for $ac_word" >&5
7661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7662 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 else
7665 case "$XGETTEXT" in
7666 /*)
7667 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7668 ;;
7669 *)
7670 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7671 for ac_dir in $PATH; do
7672 test -z "$ac_dir" && ac_dir=.
7673 if test -f $ac_dir/$ac_word; then
7674 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7675 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7676 break
7677 fi
7678 fi
7679 done
7680 IFS="$ac_save_ifs"
7681 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7682 ;;
7683 esac
7684 fi
7685 XGETTEXT="$ac_cv_path_XGETTEXT"
7686 if test -n "$XGETTEXT"; then
7687 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7688 echo "${ECHO_T}$XGETTEXT" >&6
7689 else
7690 echo "$as_me:$LINENO: result: no" >&5
7691 echo "${ECHO_T}no" >&6
7692 fi
7693
7694 cat >conftest.$ac_ext <<_ACEOF
7695 /* confdefs.h. */
7696 _ACEOF
7697 cat confdefs.h >>conftest.$ac_ext
7698 cat >>conftest.$ac_ext <<_ACEOF
7699 /* end confdefs.h. */
7700
7701 int
7702 main ()
7703 {
7704 extern int _nl_msg_cat_cntr;
7705 return _nl_msg_cat_cntr
7706 ;
7707 return 0;
7708 }
7709 _ACEOF
7710 rm -f conftest.$ac_objext conftest$ac_exeext
7711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7712 (eval $ac_link) 2>conftest.er1
7713 ac_status=$?
7714 grep -v '^ *+' conftest.er1 >conftest.err
7715 rm -f conftest.er1
7716 cat conftest.err >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } &&
7719 { ac_try='test -z "$ac_c_werror_flag"
7720 || test ! -s conftest.err'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; } &&
7726 { ac_try='test -s conftest$ac_exeext'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728 (eval $ac_try) 2>&5
7729 ac_status=$?
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; }; then
7732 CATOBJEXT=.gmo
7733 DATADIRNAME=share
7734 else
7735 echo "$as_me: failed program was:" >&5
7736 sed 's/^/| /' conftest.$ac_ext >&5
7737
7738 CATOBJEXT=.mo
7739 DATADIRNAME=lib
7740 fi
7741 rm -f conftest.err conftest.$ac_objext \
7742 conftest$ac_exeext conftest.$ac_ext
7743 INSTOBJEXT=.mo
7744 fi
7745 fi
7746
7747 fi
7748
7749
7750
7751
7752 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
7753 # Neither gettext nor catgets in included in the C library.
7754 # Fall back on GNU gettext library (assuming it is present).
7755 nls_cv_use_gnu_gettext=yes
7756 fi
7757 fi
7758
7759 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7760 INTLOBJS="\$(GETTOBJS)"
7761 # Extract the first word of "msgfmt", so it can be a program name with args.
7762 set dummy msgfmt; ac_word=$2
7763 echo "$as_me:$LINENO: checking for $ac_word" >&5
7764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7765 if test "${ac_cv_path_MSGFMT+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768 case "$MSGFMT" in
7769 /*)
7770 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7771 ;;
7772 *)
7773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7774 for ac_dir in $PATH; do
7775 test -z "$ac_dir" && ac_dir=.
7776 if test -f $ac_dir/$ac_word; then
7777 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7778 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7779 break
7780 fi
7781 fi
7782 done
7783 IFS="$ac_save_ifs"
7784 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7785 ;;
7786 esac
7787 fi
7788 MSGFMT="$ac_cv_path_MSGFMT"
7789 if test -n "$MSGFMT"; then
7790 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7791 echo "${ECHO_T}$MSGFMT" >&6
7792 else
7793 echo "$as_me:$LINENO: result: no" >&5
7794 echo "${ECHO_T}no" >&6
7795 fi
7796
7797 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7798 set dummy gmsgfmt; ac_word=$2
7799 echo "$as_me:$LINENO: checking for $ac_word" >&5
7800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7801 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804 case $GMSGFMT in
7805 [\\/]* | ?:[\\/]*)
7806 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7807 ;;
7808 *)
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH
7811 do
7812 IFS=$as_save_IFS
7813 test -z "$as_dir" && as_dir=.
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7816 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 break 2
7819 fi
7820 done
7821 done
7822
7823 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7824 ;;
7825 esac
7826 fi
7827 GMSGFMT=$ac_cv_path_GMSGFMT
7828
7829 if test -n "$GMSGFMT"; then
7830 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7831 echo "${ECHO_T}$GMSGFMT" >&6
7832 else
7833 echo "$as_me:$LINENO: result: no" >&5
7834 echo "${ECHO_T}no" >&6
7835 fi
7836
7837 # Extract the first word of "xgettext", so it can be a program name with args.
7838 set dummy xgettext; ac_word=$2
7839 echo "$as_me:$LINENO: checking for $ac_word" >&5
7840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7841 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844 case "$XGETTEXT" in
7845 /*)
7846 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7847 ;;
7848 *)
7849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7850 for ac_dir in $PATH; do
7851 test -z "$ac_dir" && ac_dir=.
7852 if test -f $ac_dir/$ac_word; then
7853 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7854 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7855 break
7856 fi
7857 fi
7858 done
7859 IFS="$ac_save_ifs"
7860 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7861 ;;
7862 esac
7863 fi
7864 XGETTEXT="$ac_cv_path_XGETTEXT"
7865 if test -n "$XGETTEXT"; then
7866 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7867 echo "${ECHO_T}$XGETTEXT" >&6
7868 else
7869 echo "$as_me:$LINENO: result: no" >&5
7870 echo "${ECHO_T}no" >&6
7871 fi
7872
7873
7874 USE_INCLUDED_LIBINTL=yes
7875 CATOBJEXT=.gmo
7876 INSTOBJEXT=.mo
7877 DATADIRNAME=share
7878 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7879 INTLLIBS=$INTLDEPS
7880 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7881 nls_cv_header_intl=libintl.h
7882 nls_cv_header_libgt=libgettext.h
7883 fi
7884
7885 if test "$XGETTEXT" != ":"; then
7886 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7887 : ;
7888 else
7889 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7890 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
7891 XGETTEXT=":"
7892 fi
7893 fi
7894
7895 # We need to process the po/ directory.
7896 POSUB=po
7897 else
7898 DATADIRNAME=share
7899 nls_cv_header_intl=libintl.h
7900 nls_cv_header_libgt=libgettext.h
7901 fi
7902
7903 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7904 # because some of the sources are only built for this goal.
7905 if test "$PACKAGE" = gettext; then
7906 USE_NLS=yes
7907 USE_INCLUDED_LIBINTL=yes
7908 fi
7909
7910 for lang in $ALL_LINGUAS; do
7911 GMOFILES="$GMOFILES $lang.gmo"
7912 POFILES="$POFILES $lang.po"
7913 done
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926 if test "x$CATOBJEXT" != "x"; then
7927
7928 cat >>confdefs.h <<\_ACEOF
7929 #define ENABLE_NLS 1
7930 _ACEOF
7931
7932 fi
7933
7934
7935 if test "x$CATOBJEXT" != "x"; then
7936 if test "x$ALL_LINGUAS" = "x"; then
7937 LINGUAS=
7938 else
7939 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7940 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7941 NEW_LINGUAS=
7942 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7943 case "$ALL_LINGUAS" in
7944 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7945 esac
7946 done
7947 LINGUAS=$NEW_LINGUAS
7948 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7949 echo "${ECHO_T}$LINGUAS" >&6
7950 fi
7951
7952 if test -n "$LINGUAS"; then
7953 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7954 fi
7955 fi
7956
7957 if test $ac_cv_header_locale_h = yes; then
7958 INCLUDE_LOCALE_H="#include <locale.h>"
7959 else
7960 INCLUDE_LOCALE_H="\
7961 /* The system does not provide the header <locale.h>. Take care yourself. */"
7962 fi
7963
7964
7965 if test -f $srcdir/po2tbl.sed.in; then
7966 if test "$CATOBJEXT" = ".cat"; then
7967 if test "${ac_cv_header_linux_version_h+set}" = set; then
7968 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7969 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7970 if test "${ac_cv_header_linux_version_h+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 fi
7973 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7974 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7975 else
7976 # Is the header compilable?
7977 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7978 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7979 cat >conftest.$ac_ext <<_ACEOF
7980 /* confdefs.h. */
7981 _ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h. */
7985 $ac_includes_default
7986 #include <linux/version.h>
7987 _ACEOF
7988 rm -f conftest.$ac_objext
7989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7990 (eval $ac_compile) 2>conftest.er1
7991 ac_status=$?
7992 grep -v '^ *+' conftest.er1 >conftest.err
7993 rm -f conftest.er1
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } &&
7997 { ac_try='test -z "$ac_c_werror_flag"
7998 || test ! -s conftest.err'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 (eval $ac_try) 2>&5
8001 ac_status=$?
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; } &&
8004 { ac_try='test -s conftest.$ac_objext'
8005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 (eval $ac_try) 2>&5
8007 ac_status=$?
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; }; then
8010 ac_header_compiler=yes
8011 else
8012 echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.$ac_ext >&5
8014
8015 ac_header_compiler=no
8016 fi
8017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8018 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8019 echo "${ECHO_T}$ac_header_compiler" >&6
8020
8021 # Is the header present?
8022 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8023 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8024 cat >conftest.$ac_ext <<_ACEOF
8025 /* confdefs.h. */
8026 _ACEOF
8027 cat confdefs.h >>conftest.$ac_ext
8028 cat >>conftest.$ac_ext <<_ACEOF
8029 /* end confdefs.h. */
8030 #include <linux/version.h>
8031 _ACEOF
8032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8034 ac_status=$?
8035 grep -v '^ *+' conftest.er1 >conftest.err
8036 rm -f conftest.er1
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } >/dev/null; then
8040 if test -s conftest.err; then
8041 ac_cpp_err=$ac_c_preproc_warn_flag
8042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8043 else
8044 ac_cpp_err=
8045 fi
8046 else
8047 ac_cpp_err=yes
8048 fi
8049 if test -z "$ac_cpp_err"; then
8050 ac_header_preproc=yes
8051 else
8052 echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8054
8055 ac_header_preproc=no
8056 fi
8057 rm -f conftest.err conftest.$ac_ext
8058 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8059 echo "${ECHO_T}$ac_header_preproc" >&6
8060
8061 # So? What about this header?
8062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8063 yes:no: )
8064 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8065 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8066 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8067 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8068 ac_header_preproc=yes
8069 ;;
8070 no:yes:* )
8071 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8072 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8073 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8074 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8075 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8076 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8077 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8078 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8079 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8080 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8081 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8082 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8083 (
8084 cat <<\_ASBOX
8085 ## ------------------------------------------ ##
8086 ## Report this to the AC_PACKAGE_NAME lists. ##
8087 ## ------------------------------------------ ##
8088 _ASBOX
8089 ) |
8090 sed "s/^/$as_me: WARNING: /" >&2
8091 ;;
8092 esac
8093 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8094 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8095 if test "${ac_cv_header_linux_version_h+set}" = set; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 else
8098 ac_cv_header_linux_version_h=$ac_header_preproc
8099 fi
8100 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8101 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8102
8103 fi
8104 if test $ac_cv_header_linux_version_h = yes; then
8105 msgformat=linux
8106 else
8107 msgformat=xopen
8108 fi
8109
8110
8111
8112 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8113 fi
8114 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8115 $srcdir/po2tbl.sed.in > po2tbl.sed
8116 fi
8117
8118 if test "$PACKAGE" = "gettext"; then
8119 GT_NO="#NO#"
8120 GT_YES=
8121 else
8122 GT_NO=
8123 GT_YES="#YES#"
8124 fi
8125
8126
8127
8128 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8129
8130
8131 l=
8132
8133
8134 if test -f $srcdir/po/POTFILES.in; then
8135 test -d po || mkdir po
8136 if test "x$srcdir" != "x."; then
8137 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8138 posrcprefix="$srcdir/"
8139 else
8140 posrcprefix="../$srcdir/"
8141 fi
8142 else
8143 posrcprefix="../"
8144 fi
8145 rm -f po/POTFILES
8146 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8147 < $srcdir/po/POTFILES.in > po/POTFILES
8148 fi
8149
8150
8151
8152
8153 for ac_prog in 'bison -y' byacc
8154 do
8155 # Extract the first word of "$ac_prog", so it can be a program name with args.
8156 set dummy $ac_prog; ac_word=$2
8157 echo "$as_me:$LINENO: checking for $ac_word" >&5
8158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8159 if test "${ac_cv_prog_YACC+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8161 else
8162 if test -n "$YACC"; then
8163 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8164 else
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 for as_dir in $PATH
8167 do
8168 IFS=$as_save_IFS
8169 test -z "$as_dir" && as_dir=.
8170 for ac_exec_ext in '' $ac_executable_extensions; do
8171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8172 ac_cv_prog_YACC="$ac_prog"
8173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8174 break 2
8175 fi
8176 done
8177 done
8178
8179 fi
8180 fi
8181 YACC=$ac_cv_prog_YACC
8182 if test -n "$YACC"; then
8183 echo "$as_me:$LINENO: result: $YACC" >&5
8184 echo "${ECHO_T}$YACC" >&6
8185 else
8186 echo "$as_me:$LINENO: result: no" >&5
8187 echo "${ECHO_T}no" >&6
8188 fi
8189
8190 test -n "$YACC" && break
8191 done
8192 test -n "$YACC" || YACC="yacc"
8193
8194 for ac_prog in flex lex
8195 do
8196 # Extract the first word of "$ac_prog", so it can be a program name with args.
8197 set dummy $ac_prog; ac_word=$2
8198 echo "$as_me:$LINENO: checking for $ac_word" >&5
8199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8200 if test "${ac_cv_prog_LEX+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 else
8203 if test -n "$LEX"; then
8204 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8205 else
8206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207 for as_dir in $PATH
8208 do
8209 IFS=$as_save_IFS
8210 test -z "$as_dir" && as_dir=.
8211 for ac_exec_ext in '' $ac_executable_extensions; do
8212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8213 ac_cv_prog_LEX="$ac_prog"
8214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 break 2
8216 fi
8217 done
8218 done
8219
8220 fi
8221 fi
8222 LEX=$ac_cv_prog_LEX
8223 if test -n "$LEX"; then
8224 echo "$as_me:$LINENO: result: $LEX" >&5
8225 echo "${ECHO_T}$LEX" >&6
8226 else
8227 echo "$as_me:$LINENO: result: no" >&5
8228 echo "${ECHO_T}no" >&6
8229 fi
8230
8231 test -n "$LEX" && break
8232 done
8233 test -n "$LEX" || LEX=":"
8234
8235 if test -z "$LEXLIB"
8236 then
8237 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
8238 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
8239 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8241 else
8242 ac_check_lib_save_LIBS=$LIBS
8243 LIBS="-lfl $LIBS"
8244 cat >conftest.$ac_ext <<_ACEOF
8245 /* confdefs.h. */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8250
8251 /* Override any gcc2 internal prototype to avoid an error. */
8252 #ifdef __cplusplus
8253 extern "C"
8254 #endif
8255 /* We use char because int might match the return type of a gcc2
8256 builtin and then its argument prototype would still apply. */
8257 char yywrap ();
8258 int
8259 main ()
8260 {
8261 yywrap ();
8262 ;
8263 return 0;
8264 }
8265 _ACEOF
8266 rm -f conftest.$ac_objext conftest$ac_exeext
8267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8268 (eval $ac_link) 2>conftest.er1
8269 ac_status=$?
8270 grep -v '^ *+' conftest.er1 >conftest.err
8271 rm -f conftest.er1
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } &&
8275 { ac_try='test -z "$ac_c_werror_flag"
8276 || test ! -s conftest.err'
8277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278 (eval $ac_try) 2>&5
8279 ac_status=$?
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; } &&
8282 { ac_try='test -s conftest$ac_exeext'
8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284 (eval $ac_try) 2>&5
8285 ac_status=$?
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; }; then
8288 ac_cv_lib_fl_yywrap=yes
8289 else
8290 echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8292
8293 ac_cv_lib_fl_yywrap=no
8294 fi
8295 rm -f conftest.err conftest.$ac_objext \
8296 conftest$ac_exeext conftest.$ac_ext
8297 LIBS=$ac_check_lib_save_LIBS
8298 fi
8299 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
8300 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
8301 if test $ac_cv_lib_fl_yywrap = yes; then
8302 LEXLIB="-lfl"
8303 else
8304 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
8305 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
8306 if test "${ac_cv_lib_l_yywrap+set}" = set; then
8307 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 else
8309 ac_check_lib_save_LIBS=$LIBS
8310 LIBS="-ll $LIBS"
8311 cat >conftest.$ac_ext <<_ACEOF
8312 /* confdefs.h. */
8313 _ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8317
8318 /* Override any gcc2 internal prototype to avoid an error. */
8319 #ifdef __cplusplus
8320 extern "C"
8321 #endif
8322 /* We use char because int might match the return type of a gcc2
8323 builtin and then its argument prototype would still apply. */
8324 char yywrap ();
8325 int
8326 main ()
8327 {
8328 yywrap ();
8329 ;
8330 return 0;
8331 }
8332 _ACEOF
8333 rm -f conftest.$ac_objext conftest$ac_exeext
8334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8335 (eval $ac_link) 2>conftest.er1
8336 ac_status=$?
8337 grep -v '^ *+' conftest.er1 >conftest.err
8338 rm -f conftest.er1
8339 cat conftest.err >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); } &&
8342 { ac_try='test -z "$ac_c_werror_flag"
8343 || test ! -s conftest.err'
8344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345 (eval $ac_try) 2>&5
8346 ac_status=$?
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); }; } &&
8349 { ac_try='test -s conftest$ac_exeext'
8350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351 (eval $ac_try) 2>&5
8352 ac_status=$?
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); }; }; then
8355 ac_cv_lib_l_yywrap=yes
8356 else
8357 echo "$as_me: failed program was:" >&5
8358 sed 's/^/| /' conftest.$ac_ext >&5
8359
8360 ac_cv_lib_l_yywrap=no
8361 fi
8362 rm -f conftest.err conftest.$ac_objext \
8363 conftest$ac_exeext conftest.$ac_ext
8364 LIBS=$ac_check_lib_save_LIBS
8365 fi
8366 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
8367 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
8368 if test $ac_cv_lib_l_yywrap = yes; then
8369 LEXLIB="-ll"
8370 fi
8371
8372 fi
8373
8374 fi
8375
8376 if test "x$LEX" != "x:"; then
8377 echo "$as_me:$LINENO: checking lex output file root" >&5
8378 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
8379 if test "${ac_cv_prog_lex_root+set}" = set; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8381 else
8382 # The minimal lex program is just a single line: %%. But some broken lexes
8383 # (Solaris, I think it was) want two %% lines, so accommodate them.
8384 cat >conftest.l <<_ACEOF
8385 %%
8386 %%
8387 _ACEOF
8388 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
8389 (eval $LEX conftest.l) 2>&5
8390 ac_status=$?
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }
8393 if test -f lex.yy.c; then
8394 ac_cv_prog_lex_root=lex.yy
8395 elif test -f lexyy.c; then
8396 ac_cv_prog_lex_root=lexyy
8397 else
8398 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
8399 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
8400 { (exit 1); exit 1; }; }
8401 fi
8402 fi
8403 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
8404 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
8405 rm -f conftest.l
8406 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8407
8408 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
8409 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
8410 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413 # POSIX says lex can declare yytext either as a pointer or an array; the
8414 # default is implementation-dependent. Figure out which it is, since
8415 # not all implementations provide the %pointer and %array declarations.
8416 ac_cv_prog_lex_yytext_pointer=no
8417 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
8418 ac_save_LIBS=$LIBS
8419 LIBS="$LIBS $LEXLIB"
8420 cat >conftest.$ac_ext <<_ACEOF
8421 `cat $LEX_OUTPUT_ROOT.c`
8422 _ACEOF
8423 rm -f conftest.$ac_objext conftest$ac_exeext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8425 (eval $ac_link) 2>conftest.er1
8426 ac_status=$?
8427 grep -v '^ *+' conftest.er1 >conftest.err
8428 rm -f conftest.er1
8429 cat conftest.err >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try='test -z "$ac_c_werror_flag"
8433 || test ! -s conftest.err'
8434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 (eval $ac_try) 2>&5
8436 ac_status=$?
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; } &&
8439 { ac_try='test -s conftest$ac_exeext'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 (eval $ac_try) 2>&5
8442 ac_status=$?
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; }; then
8445 ac_cv_prog_lex_yytext_pointer=yes
8446 else
8447 echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8449
8450 fi
8451 rm -f conftest.err conftest.$ac_objext \
8452 conftest$ac_exeext conftest.$ac_ext
8453 LIBS=$ac_save_LIBS
8454 rm -f "${LEX_OUTPUT_ROOT}.c"
8455
8456 fi
8457 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
8458 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
8459 if test $ac_cv_prog_lex_yytext_pointer = yes; then
8460
8461 cat >>confdefs.h <<\_ACEOF
8462 #define YYTEXT_POINTER 1
8463 _ACEOF
8464
8465 fi
8466
8467 fi
8468 if test "$LEX" = :; then
8469 LEX=${am_missing_run}flex
8470 fi
8471
8472 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8473 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
8474 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8475 if test "${enable_maintainer_mode+set}" = set; then
8476 enableval="$enable_maintainer_mode"
8477 USE_MAINTAINER_MODE=$enableval
8478 else
8479 USE_MAINTAINER_MODE=no
8480 fi;
8481 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8482 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8483
8484
8485 if test $USE_MAINTAINER_MODE = yes; then
8486 MAINTAINER_MODE_TRUE=
8487 MAINTAINER_MODE_FALSE='#'
8488 else
8489 MAINTAINER_MODE_TRUE='#'
8490 MAINTAINER_MODE_FALSE=
8491 fi
8492
8493 MAINT=$MAINTAINER_MODE_TRUE
8494
8495
8496
8497 . ${srcdir}/configure.host
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508 for ac_header in string.h strings.h stdlib.h unistd.h
8509 do
8510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8512 echo "$as_me:$LINENO: checking for $ac_header" >&5
8513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8516 fi
8517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8519 else
8520 # Is the header compilable?
8521 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8523 cat >conftest.$ac_ext <<_ACEOF
8524 /* confdefs.h. */
8525 _ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8529 $ac_includes_default
8530 #include <$ac_header>
8531 _ACEOF
8532 rm -f conftest.$ac_objext
8533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8534 (eval $ac_compile) 2>conftest.er1
8535 ac_status=$?
8536 grep -v '^ *+' conftest.er1 >conftest.err
8537 rm -f conftest.er1
8538 cat conftest.err >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } &&
8541 { ac_try='test -z "$ac_c_werror_flag"
8542 || test ! -s conftest.err'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 (eval $ac_try) 2>&5
8545 ac_status=$?
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; } &&
8548 { ac_try='test -s conftest.$ac_objext'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 (eval $ac_try) 2>&5
8551 ac_status=$?
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; }; then
8554 ac_header_compiler=yes
8555 else
8556 echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8558
8559 ac_header_compiler=no
8560 fi
8561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8563 echo "${ECHO_T}$ac_header_compiler" >&6
8564
8565 # Is the header present?
8566 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8568 cat >conftest.$ac_ext <<_ACEOF
8569 /* confdefs.h. */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574 #include <$ac_header>
8575 _ACEOF
8576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8578 ac_status=$?
8579 grep -v '^ *+' conftest.er1 >conftest.err
8580 rm -f conftest.er1
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } >/dev/null; then
8584 if test -s conftest.err; then
8585 ac_cpp_err=$ac_c_preproc_warn_flag
8586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8587 else
8588 ac_cpp_err=
8589 fi
8590 else
8591 ac_cpp_err=yes
8592 fi
8593 if test -z "$ac_cpp_err"; then
8594 ac_header_preproc=yes
8595 else
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8598
8599 ac_header_preproc=no
8600 fi
8601 rm -f conftest.err conftest.$ac_ext
8602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8603 echo "${ECHO_T}$ac_header_preproc" >&6
8604
8605 # So? What about this header?
8606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8607 yes:no: )
8608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8612 ac_header_preproc=yes
8613 ;;
8614 no:yes:* )
8615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8622 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8627 (
8628 cat <<\_ASBOX
8629 ## ------------------------------------------ ##
8630 ## Report this to the AC_PACKAGE_NAME lists. ##
8631 ## ------------------------------------------ ##
8632 _ASBOX
8633 ) |
8634 sed "s/^/$as_me: WARNING: /" >&2
8635 ;;
8636 esac
8637 echo "$as_me:$LINENO: checking for $ac_header" >&5
8638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8641 else
8642 eval "$as_ac_Header=\$ac_header_preproc"
8643 fi
8644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8646
8647 fi
8648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8649 cat >>confdefs.h <<_ACEOF
8650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8651 _ACEOF
8652
8653 fi
8654
8655 done
8656
8657
8658
8659
8660 for ac_func in sbrk realpath glob
8661 do
8662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8663 echo "$as_me:$LINENO: checking for $ac_func" >&5
8664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8665 if eval "test \"\${$as_ac_var+set}\" = set"; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8667 else
8668 cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h. */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8676 #define $ac_func innocuous_$ac_func
8677
8678 /* System header to define __stub macros and hopefully few prototypes,
8679 which can conflict with char $ac_func (); below.
8680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8681 <limits.h> exists even on freestanding compilers. */
8682
8683 #ifdef __STDC__
8684 # include <limits.h>
8685 #else
8686 # include <assert.h>
8687 #endif
8688
8689 #undef $ac_func
8690
8691 /* Override any gcc2 internal prototype to avoid an error. */
8692 #ifdef __cplusplus
8693 extern "C"
8694 {
8695 #endif
8696 /* We use char because int might match the return type of a gcc2
8697 builtin and then its argument prototype would still apply. */
8698 char $ac_func ();
8699 /* The GNU C library defines this for functions which it implements
8700 to always fail with ENOSYS. Some functions are actually named
8701 something starting with __ and the normal name is an alias. */
8702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8703 choke me
8704 #else
8705 char (*f) () = $ac_func;
8706 #endif
8707 #ifdef __cplusplus
8708 }
8709 #endif
8710
8711 int
8712 main ()
8713 {
8714 return f != $ac_func;
8715 ;
8716 return 0;
8717 }
8718 _ACEOF
8719 rm -f conftest.$ac_objext conftest$ac_exeext
8720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8721 (eval $ac_link) 2>conftest.er1
8722 ac_status=$?
8723 grep -v '^ *+' conftest.er1 >conftest.err
8724 rm -f conftest.er1
8725 cat conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } &&
8728 { ac_try='test -z "$ac_c_werror_flag"
8729 || test ! -s conftest.err'
8730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 (eval $ac_try) 2>&5
8732 ac_status=$?
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); }; } &&
8735 { ac_try='test -s conftest$ac_exeext'
8736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8737 (eval $ac_try) 2>&5
8738 ac_status=$?
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); }; }; then
8741 eval "$as_ac_var=yes"
8742 else
8743 echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8745
8746 eval "$as_ac_var=no"
8747 fi
8748 rm -f conftest.err conftest.$ac_objext \
8749 conftest$ac_exeext conftest.$ac_ext
8750 fi
8751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8753 if test `eval echo '${'$as_ac_var'}'` = yes; then
8754 cat >>confdefs.h <<_ACEOF
8755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8756 _ACEOF
8757
8758 fi
8759 done
8760
8761
8762
8763
8764
8765
8766 ac_header_dirent=no
8767 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8768 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8769 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8770 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8773 else
8774 cat >conftest.$ac_ext <<_ACEOF
8775 /* confdefs.h. */
8776 _ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8780 #include <sys/types.h>
8781 #include <$ac_hdr>
8782
8783 int
8784 main ()
8785 {
8786 if ((DIR *) 0)
8787 return 0;
8788 ;
8789 return 0;
8790 }
8791 _ACEOF
8792 rm -f conftest.$ac_objext
8793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8794 (eval $ac_compile) 2>conftest.er1
8795 ac_status=$?
8796 grep -v '^ *+' conftest.er1 >conftest.err
8797 rm -f conftest.er1
8798 cat conftest.err >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } &&
8801 { ac_try='test -z "$ac_c_werror_flag"
8802 || test ! -s conftest.err'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 (eval $ac_try) 2>&5
8805 ac_status=$?
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; } &&
8808 { ac_try='test -s conftest.$ac_objext'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 (eval $ac_try) 2>&5
8811 ac_status=$?
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; }; then
8814 eval "$as_ac_Header=yes"
8815 else
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8818
8819 eval "$as_ac_Header=no"
8820 fi
8821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8822 fi
8823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8826 cat >>confdefs.h <<_ACEOF
8827 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8828 _ACEOF
8829
8830 ac_header_dirent=$ac_hdr; break
8831 fi
8832
8833 done
8834 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8835 if test $ac_header_dirent = dirent.h; then
8836 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8837 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8838 if test "${ac_cv_search_opendir+set}" = set; then
8839 echo $ECHO_N "(cached) $ECHO_C" >&6
8840 else
8841 ac_func_search_save_LIBS=$LIBS
8842 ac_cv_search_opendir=no
8843 cat >conftest.$ac_ext <<_ACEOF
8844 /* confdefs.h. */
8845 _ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8849
8850 /* Override any gcc2 internal prototype to avoid an error. */
8851 #ifdef __cplusplus
8852 extern "C"
8853 #endif
8854 /* We use char because int might match the return type of a gcc2
8855 builtin and then its argument prototype would still apply. */
8856 char opendir ();
8857 int
8858 main ()
8859 {
8860 opendir ();
8861 ;
8862 return 0;
8863 }
8864 _ACEOF
8865 rm -f conftest.$ac_objext conftest$ac_exeext
8866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8867 (eval $ac_link) 2>conftest.er1
8868 ac_status=$?
8869 grep -v '^ *+' conftest.er1 >conftest.err
8870 rm -f conftest.er1
8871 cat conftest.err >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); } &&
8874 { ac_try='test -z "$ac_c_werror_flag"
8875 || test ! -s conftest.err'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877 (eval $ac_try) 2>&5
8878 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; } &&
8881 { ac_try='test -s conftest$ac_exeext'
8882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883 (eval $ac_try) 2>&5
8884 ac_status=$?
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); }; }; then
8887 ac_cv_search_opendir="none required"
8888 else
8889 echo "$as_me: failed program was:" >&5
8890 sed 's/^/| /' conftest.$ac_ext >&5
8891
8892 fi
8893 rm -f conftest.err conftest.$ac_objext \
8894 conftest$ac_exeext conftest.$ac_ext
8895 if test "$ac_cv_search_opendir" = no; then
8896 for ac_lib in dir; do
8897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8898 cat >conftest.$ac_ext <<_ACEOF
8899 /* confdefs.h. */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8904
8905 /* Override any gcc2 internal prototype to avoid an error. */
8906 #ifdef __cplusplus
8907 extern "C"
8908 #endif
8909 /* We use char because int might match the return type of a gcc2
8910 builtin and then its argument prototype would still apply. */
8911 char opendir ();
8912 int
8913 main ()
8914 {
8915 opendir ();
8916 ;
8917 return 0;
8918 }
8919 _ACEOF
8920 rm -f conftest.$ac_objext conftest$ac_exeext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922 (eval $ac_link) 2>conftest.er1
8923 ac_status=$?
8924 grep -v '^ *+' conftest.er1 >conftest.err
8925 rm -f conftest.er1
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try='test -z "$ac_c_werror_flag"
8930 || test ! -s conftest.err'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 (eval $ac_try) 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; } &&
8936 { ac_try='test -s conftest$ac_exeext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 (eval $ac_try) 2>&5
8939 ac_status=$?
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 ac_cv_search_opendir="-l$ac_lib"
8943 break
8944 else
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8947
8948 fi
8949 rm -f conftest.err conftest.$ac_objext \
8950 conftest$ac_exeext conftest.$ac_ext
8951 done
8952 fi
8953 LIBS=$ac_func_search_save_LIBS
8954 fi
8955 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8956 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8957 if test "$ac_cv_search_opendir" != no; then
8958 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8959
8960 fi
8961
8962 else
8963 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8964 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8965 if test "${ac_cv_search_opendir+set}" = set; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6
8967 else
8968 ac_func_search_save_LIBS=$LIBS
8969 ac_cv_search_opendir=no
8970 cat >conftest.$ac_ext <<_ACEOF
8971 /* confdefs.h. */
8972 _ACEOF
8973 cat confdefs.h >>conftest.$ac_ext
8974 cat >>conftest.$ac_ext <<_ACEOF
8975 /* end confdefs.h. */
8976
8977 /* Override any gcc2 internal prototype to avoid an error. */
8978 #ifdef __cplusplus
8979 extern "C"
8980 #endif
8981 /* We use char because int might match the return type of a gcc2
8982 builtin and then its argument prototype would still apply. */
8983 char opendir ();
8984 int
8985 main ()
8986 {
8987 opendir ();
8988 ;
8989 return 0;
8990 }
8991 _ACEOF
8992 rm -f conftest.$ac_objext conftest$ac_exeext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8994 (eval $ac_link) 2>conftest.er1
8995 ac_status=$?
8996 grep -v '^ *+' conftest.er1 >conftest.err
8997 rm -f conftest.er1
8998 cat conftest.err >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } &&
9001 { ac_try='test -z "$ac_c_werror_flag"
9002 || test ! -s conftest.err'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 (eval $ac_try) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; } &&
9008 { ac_try='test -s conftest$ac_exeext'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 (eval $ac_try) 2>&5
9011 ac_status=$?
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; }; then
9014 ac_cv_search_opendir="none required"
9015 else
9016 echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9018
9019 fi
9020 rm -f conftest.err conftest.$ac_objext \
9021 conftest$ac_exeext conftest.$ac_ext
9022 if test "$ac_cv_search_opendir" = no; then
9023 for ac_lib in x; do
9024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9025 cat >conftest.$ac_ext <<_ACEOF
9026 /* confdefs.h. */
9027 _ACEOF
9028 cat confdefs.h >>conftest.$ac_ext
9029 cat >>conftest.$ac_ext <<_ACEOF
9030 /* end confdefs.h. */
9031
9032 /* Override any gcc2 internal prototype to avoid an error. */
9033 #ifdef __cplusplus
9034 extern "C"
9035 #endif
9036 /* We use char because int might match the return type of a gcc2
9037 builtin and then its argument prototype would still apply. */
9038 char opendir ();
9039 int
9040 main ()
9041 {
9042 opendir ();
9043 ;
9044 return 0;
9045 }
9046 _ACEOF
9047 rm -f conftest.$ac_objext conftest$ac_exeext
9048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9049 (eval $ac_link) 2>conftest.er1
9050 ac_status=$?
9051 grep -v '^ *+' conftest.er1 >conftest.err
9052 rm -f conftest.er1
9053 cat conftest.err >&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); } &&
9056 { ac_try='test -z "$ac_c_werror_flag"
9057 || test ! -s conftest.err'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 (eval $ac_try) 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; } &&
9063 { ac_try='test -s conftest$ac_exeext'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 (eval $ac_try) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; }; then
9069 ac_cv_search_opendir="-l$ac_lib"
9070 break
9071 else
9072 echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9074
9075 fi
9076 rm -f conftest.err conftest.$ac_objext \
9077 conftest$ac_exeext conftest.$ac_ext
9078 done
9079 fi
9080 LIBS=$ac_func_search_save_LIBS
9081 fi
9082 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9083 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9084 if test "$ac_cv_search_opendir" != no; then
9085 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9086
9087 fi
9088
9089 fi
9090
9091
9092 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
9093 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
9094 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 else
9097 cat >conftest.$ac_ext <<_ACEOF
9098 /* confdefs.h. */
9099 _ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9103 #include <unistd.h>
9104 int
9105 main ()
9106 {
9107 extern int getopt (int, char *const*, const char *);
9108 ;
9109 return 0;
9110 }
9111 _ACEOF
9112 rm -f conftest.$ac_objext
9113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9114 (eval $ac_compile) 2>conftest.er1
9115 ac_status=$?
9116 grep -v '^ *+' conftest.er1 >conftest.err
9117 rm -f conftest.er1
9118 cat conftest.err >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } &&
9121 { ac_try='test -z "$ac_c_werror_flag"
9122 || test ! -s conftest.err'
9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 (eval $ac_try) 2>&5
9125 ac_status=$?
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; } &&
9128 { ac_try='test -s conftest.$ac_objext'
9129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 (eval $ac_try) 2>&5
9131 ac_status=$?
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; }; then
9134 ld_cv_decl_getopt_unistd_h=yes
9135 else
9136 echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.$ac_ext >&5
9138
9139 ld_cv_decl_getopt_unistd_h=no
9140 fi
9141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9142 fi
9143
9144 echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
9145 echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
9146 if test $ld_cv_decl_getopt_unistd_h = yes; then
9147
9148 cat >>confdefs.h <<\_ACEOF
9149 #define HAVE_DECL_GETOPT 1
9150 _ACEOF
9151
9152 fi
9153
9154
9155 case "${host}" in
9156 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
9157
9158 cat >>confdefs.h <<\_ACEOF
9159 #define USE_BINARY_FOPEN 1
9160 _ACEOF
9161 ;;
9162 esac
9163
9164 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
9165 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
9166 if test "${ac_cv_have_decl_strstr+set}" = set; then
9167 echo $ECHO_N "(cached) $ECHO_C" >&6
9168 else
9169 cat >conftest.$ac_ext <<_ACEOF
9170 /* confdefs.h. */
9171 _ACEOF
9172 cat confdefs.h >>conftest.$ac_ext
9173 cat >>conftest.$ac_ext <<_ACEOF
9174 /* end confdefs.h. */
9175 $ac_includes_default
9176 int
9177 main ()
9178 {
9179 #ifndef strstr
9180 char *p = (char *) strstr;
9181 #endif
9182
9183 ;
9184 return 0;
9185 }
9186 _ACEOF
9187 rm -f conftest.$ac_objext
9188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9189 (eval $ac_compile) 2>conftest.er1
9190 ac_status=$?
9191 grep -v '^ *+' conftest.er1 >conftest.err
9192 rm -f conftest.er1
9193 cat conftest.err >&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } &&
9196 { ac_try='test -z "$ac_c_werror_flag"
9197 || test ! -s conftest.err'
9198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199 (eval $ac_try) 2>&5
9200 ac_status=$?
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); }; } &&
9203 { ac_try='test -s conftest.$ac_objext'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 (eval $ac_try) 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; }; then
9209 ac_cv_have_decl_strstr=yes
9210 else
9211 echo "$as_me: failed program was:" >&5
9212 sed 's/^/| /' conftest.$ac_ext >&5
9213
9214 ac_cv_have_decl_strstr=no
9215 fi
9216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9217 fi
9218 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
9219 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
9220 if test $ac_cv_have_decl_strstr = yes; then
9221
9222 cat >>confdefs.h <<_ACEOF
9223 #define HAVE_DECL_STRSTR 1
9224 _ACEOF
9225
9226
9227 else
9228 cat >>confdefs.h <<_ACEOF
9229 #define HAVE_DECL_STRSTR 0
9230 _ACEOF
9231
9232
9233 fi
9234 echo "$as_me:$LINENO: checking whether free is declared" >&5
9235 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
9236 if test "${ac_cv_have_decl_free+set}" = set; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 else
9239 cat >conftest.$ac_ext <<_ACEOF
9240 /* confdefs.h. */
9241 _ACEOF
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9245 $ac_includes_default
9246 int
9247 main ()
9248 {
9249 #ifndef free
9250 char *p = (char *) free;
9251 #endif
9252
9253 ;
9254 return 0;
9255 }
9256 _ACEOF
9257 rm -f conftest.$ac_objext
9258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9259 (eval $ac_compile) 2>conftest.er1
9260 ac_status=$?
9261 grep -v '^ *+' conftest.er1 >conftest.err
9262 rm -f conftest.er1
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } &&
9266 { ac_try='test -z "$ac_c_werror_flag"
9267 || test ! -s conftest.err'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 (eval $ac_try) 2>&5
9270 ac_status=$?
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; } &&
9273 { ac_try='test -s conftest.$ac_objext'
9274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275 (eval $ac_try) 2>&5
9276 ac_status=$?
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; }; then
9279 ac_cv_have_decl_free=yes
9280 else
9281 echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.$ac_ext >&5
9283
9284 ac_cv_have_decl_free=no
9285 fi
9286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9287 fi
9288 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
9289 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
9290 if test $ac_cv_have_decl_free = yes; then
9291
9292 cat >>confdefs.h <<_ACEOF
9293 #define HAVE_DECL_FREE 1
9294 _ACEOF
9295
9296
9297 else
9298 cat >>confdefs.h <<_ACEOF
9299 #define HAVE_DECL_FREE 0
9300 _ACEOF
9301
9302
9303 fi
9304 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
9305 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
9306 if test "${ac_cv_have_decl_sbrk+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
9308 else
9309 cat >conftest.$ac_ext <<_ACEOF
9310 /* confdefs.h. */
9311 _ACEOF
9312 cat confdefs.h >>conftest.$ac_ext
9313 cat >>conftest.$ac_ext <<_ACEOF
9314 /* end confdefs.h. */
9315 $ac_includes_default
9316 int
9317 main ()
9318 {
9319 #ifndef sbrk
9320 char *p = (char *) sbrk;
9321 #endif
9322
9323 ;
9324 return 0;
9325 }
9326 _ACEOF
9327 rm -f conftest.$ac_objext
9328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9329 (eval $ac_compile) 2>conftest.er1
9330 ac_status=$?
9331 grep -v '^ *+' conftest.er1 >conftest.err
9332 rm -f conftest.er1
9333 cat conftest.err >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); } &&
9336 { ac_try='test -z "$ac_c_werror_flag"
9337 || test ! -s conftest.err'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339 (eval $ac_try) 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; } &&
9343 { ac_try='test -s conftest.$ac_objext'
9344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345 (eval $ac_try) 2>&5
9346 ac_status=$?
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; }; then
9349 ac_cv_have_decl_sbrk=yes
9350 else
9351 echo "$as_me: failed program was:" >&5
9352 sed 's/^/| /' conftest.$ac_ext >&5
9353
9354 ac_cv_have_decl_sbrk=no
9355 fi
9356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9357 fi
9358 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
9359 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
9360 if test $ac_cv_have_decl_sbrk = yes; then
9361
9362 cat >>confdefs.h <<_ACEOF
9363 #define HAVE_DECL_SBRK 1
9364 _ACEOF
9365
9366
9367 else
9368 cat >>confdefs.h <<_ACEOF
9369 #define HAVE_DECL_SBRK 0
9370 _ACEOF
9371
9372
9373 fi
9374 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9375 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
9376 if test "${ac_cv_have_decl_getenv+set}" = set; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 else
9379 cat >conftest.$ac_ext <<_ACEOF
9380 /* confdefs.h. */
9381 _ACEOF
9382 cat confdefs.h >>conftest.$ac_ext
9383 cat >>conftest.$ac_ext <<_ACEOF
9384 /* end confdefs.h. */
9385 $ac_includes_default
9386 int
9387 main ()
9388 {
9389 #ifndef getenv
9390 char *p = (char *) getenv;
9391 #endif
9392
9393 ;
9394 return 0;
9395 }
9396 _ACEOF
9397 rm -f conftest.$ac_objext
9398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9399 (eval $ac_compile) 2>conftest.er1
9400 ac_status=$?
9401 grep -v '^ *+' conftest.er1 >conftest.err
9402 rm -f conftest.er1
9403 cat conftest.err >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } &&
9406 { ac_try='test -z "$ac_c_werror_flag"
9407 || test ! -s conftest.err'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 (eval $ac_try) 2>&5
9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; } &&
9413 { ac_try='test -s conftest.$ac_objext'
9414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415 (eval $ac_try) 2>&5
9416 ac_status=$?
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; }; then
9419 ac_cv_have_decl_getenv=yes
9420 else
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.$ac_ext >&5
9423
9424 ac_cv_have_decl_getenv=no
9425 fi
9426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9427 fi
9428 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9429 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
9430 if test $ac_cv_have_decl_getenv = yes; then
9431
9432 cat >>confdefs.h <<_ACEOF
9433 #define HAVE_DECL_GETENV 1
9434 _ACEOF
9435
9436
9437 else
9438 cat >>confdefs.h <<_ACEOF
9439 #define HAVE_DECL_GETENV 0
9440 _ACEOF
9441
9442
9443 fi
9444 echo "$as_me:$LINENO: checking whether environ is declared" >&5
9445 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
9446 if test "${ac_cv_have_decl_environ+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9448 else
9449 cat >conftest.$ac_ext <<_ACEOF
9450 /* confdefs.h. */
9451 _ACEOF
9452 cat confdefs.h >>conftest.$ac_ext
9453 cat >>conftest.$ac_ext <<_ACEOF
9454 /* end confdefs.h. */
9455 $ac_includes_default
9456 int
9457 main ()
9458 {
9459 #ifndef environ
9460 char *p = (char *) environ;
9461 #endif
9462
9463 ;
9464 return 0;
9465 }
9466 _ACEOF
9467 rm -f conftest.$ac_objext
9468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9469 (eval $ac_compile) 2>conftest.er1
9470 ac_status=$?
9471 grep -v '^ *+' conftest.er1 >conftest.err
9472 rm -f conftest.er1
9473 cat conftest.err >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } &&
9476 { ac_try='test -z "$ac_c_werror_flag"
9477 || test ! -s conftest.err'
9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 (eval $ac_try) 2>&5
9480 ac_status=$?
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; } &&
9483 { ac_try='test -s conftest.$ac_objext'
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485 (eval $ac_try) 2>&5
9486 ac_status=$?
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; }; then
9489 ac_cv_have_decl_environ=yes
9490 else
9491 echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9493
9494 ac_cv_have_decl_environ=no
9495 fi
9496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9497 fi
9498 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
9499 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
9500 if test $ac_cv_have_decl_environ = yes; then
9501
9502 cat >>confdefs.h <<_ACEOF
9503 #define HAVE_DECL_ENVIRON 1
9504 _ACEOF
9505
9506
9507 else
9508 cat >>confdefs.h <<_ACEOF
9509 #define HAVE_DECL_ENVIRON 0
9510 _ACEOF
9511
9512
9513 fi
9514
9515
9516
9517 # When converting linker scripts into strings for use in emulation
9518 # files, use astring.sed if the compiler supports ANSI string
9519 # concatenation, or ostring.sed otherwise. This is to support the
9520 # broken Microsoft MSVC compiler, which limits the length of string
9521 # constants, while still supporting pre-ANSI compilers which do not
9522 # support string concatenation.
9523 echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
9524 echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
9525 if test "${ld_cv_string_concatenation+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9527 else
9528 cat >conftest.$ac_ext <<_ACEOF
9529 /* confdefs.h. */
9530 _ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h. */
9534
9535 int
9536 main ()
9537 {
9538 char *a = "a" "a";
9539 ;
9540 return 0;
9541 }
9542 _ACEOF
9543 rm -f conftest.$ac_objext
9544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9545 (eval $ac_compile) 2>conftest.er1
9546 ac_status=$?
9547 grep -v '^ *+' conftest.er1 >conftest.err
9548 rm -f conftest.er1
9549 cat conftest.err >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); } &&
9552 { ac_try='test -z "$ac_c_werror_flag"
9553 || test ! -s conftest.err'
9554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555 (eval $ac_try) 2>&5
9556 ac_status=$?
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); }; } &&
9559 { ac_try='test -s conftest.$ac_objext'
9560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 (eval $ac_try) 2>&5
9562 ac_status=$?
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; }; then
9565 ld_cv_string_concatenation=yes
9566 else
9567 echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.$ac_ext >&5
9569
9570 ld_cv_string_concatenation=no
9571 fi
9572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9573 fi
9574
9575 echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
9576 echo "${ECHO_T}$ld_cv_string_concatenation" >&6
9577 if test "$ld_cv_string_concatenation" = "yes"; then
9578 STRINGIFY=astring.sed
9579 else
9580 STRINGIFY=ostring.sed
9581 fi
9582
9583
9584 # target-specific stuff:
9585
9586 all_targets=
9587 EMUL=
9588 all_emuls=
9589 all_emul_extras=
9590 all_libpath=
9591
9592 rm -f tdirs
9593
9594 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
9595 do
9596 if test "$targ_alias" = "all"; then
9597 all_targets=true
9598 else
9599 # Canonicalize the secondary target names.
9600 result=`$ac_config_sub $targ_alias 2>/dev/null`
9601 if test -n "$result"; then
9602 targ=$result
9603 else
9604 targ=$targ_alias
9605 fi
9606
9607 . ${srcdir}/configure.tgt
9608
9609 if test "$targ" = "$target"; then
9610 EMUL=$targ_emul
9611 fi
9612
9613 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
9614 case " $all_emuls " in
9615 *" e${i}.o "*) ;;
9616 *)
9617 all_emuls="$all_emuls e${i}.o"
9618 eval result=\$tdir_$i
9619 test -z "$result" && result=$targ_alias
9620 echo tdir_$i=$result >> tdirs
9621 ;;
9622 esac
9623 done
9624
9625 for i in $targ_emul $targ_extra_libpath; do
9626 case " $all_libpath " in
9627 *" ${i} "*) ;;
9628 *)
9629 if test -z "$all_libpath"; then
9630 all_libpath=${i}
9631 else
9632 all_libpath="$all_libpath ${i}"
9633 fi
9634 ;;
9635 esac
9636 done
9637
9638 for i in $targ_extra_ofiles; do
9639 case " $all_emul_extras " in
9640 *" ${i} "*) ;;
9641 *)
9642 all_emul_extras="$all_emul_extras ${i}"
9643 ;;
9644 esac
9645 done
9646 fi
9647 done
9648
9649
9650
9651 TDIRS=tdirs
9652
9653
9654 if test x${all_targets} = xtrue; then
9655 if test x${want64} = xtrue; then
9656 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9657 else
9658 EMULATION_OFILES='$(ALL_EMULATIONS)'
9659 fi
9660 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
9661 else
9662 EMULATION_OFILES=$all_emuls
9663 EMUL_EXTRA_OFILES=$all_emul_extras
9664 fi
9665
9666
9667
9668
9669 EMULATION_LIBPATH=$all_libpath
9670
9671
9672 if test x${enable_static} = xno; then
9673 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
9674 else
9675 TESTBFDLIB="../bfd/.libs/libbfd.a"
9676 fi
9677
9678
9679 target_vendor=${target_vendor=$host_vendor}
9680 case "$target_vendor" in
9681 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
9682 *) EXTRA_SHLIB_EXTENSION= ;;
9683 esac
9684
9685 case "$target_os" in
9686 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
9687 esac
9688
9689 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
9690
9691 cat >>confdefs.h <<_ACEOF
9692 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
9693 _ACEOF
9694
9695 fi
9696
9697 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
9698 ac_config_commands="$ac_config_commands default"
9699 cat >confcache <<\_ACEOF
9700 # This file is a shell script that caches the results of configure
9701 # tests run on this system so they can be shared between configure
9702 # scripts and configure runs, see configure's option --config-cache.
9703 # It is not useful on other systems. If it contains results you don't
9704 # want to keep, you may remove or edit it.
9705 #
9706 # config.status only pays attention to the cache file if you give it
9707 # the --recheck option to rerun configure.
9708 #
9709 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9710 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9711 # following values.
9712
9713 _ACEOF
9714
9715 # The following way of writing the cache mishandles newlines in values,
9716 # but we know of no workaround that is simple, portable, and efficient.
9717 # So, don't put newlines in cache variables' values.
9718 # Ultrix sh set writes to stderr and can't be redirected directly,
9719 # and sets the high bit in the cache file unless we assign to the vars.
9720 {
9721 (set) 2>&1 |
9722 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9723 *ac_space=\ *)
9724 # `set' does not quote correctly, so add quotes (double-quote
9725 # substitution turns \\\\ into \\, and sed turns \\ into \).
9726 sed -n \
9727 "s/'/'\\\\''/g;
9728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9729 ;;
9730 *)
9731 # `set' quotes correctly as required by POSIX, so do not add quotes.
9732 sed -n \
9733 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9734 ;;
9735 esac;
9736 } |
9737 sed '
9738 t clear
9739 : clear
9740 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9741 t end
9742 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9743 : end' >>confcache
9744 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9745 if test -w $cache_file; then
9746 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9747 cat confcache >$cache_file
9748 else
9749 echo "not updating unwritable cache $cache_file"
9750 fi
9751 fi
9752 rm -f confcache
9753
9754 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9755 # Let make expand exec_prefix.
9756 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9757
9758 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9759 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9760 # trailing colons and then remove the whole line if VPATH becomes empty
9761 # (actually we leave an empty line to preserve line numbers).
9762 if test "x$srcdir" = x.; then
9763 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9764 s/:*\$(srcdir):*/:/;
9765 s/:*\${srcdir}:*/:/;
9766 s/:*@srcdir@:*/:/;
9767 s/^\([^=]*=[ ]*\):*/\1/;
9768 s/:*$//;
9769 s/^[^=]*=[ ]*$//;
9770 }'
9771 fi
9772
9773 DEFS=-DHAVE_CONFIG_H
9774
9775 ac_libobjs=
9776 ac_ltlibobjs=
9777 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9778 # 1. Remove the extension, and $U if already installed.
9779 ac_i=`echo "$ac_i" |
9780 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9781 # 2. Add them.
9782 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9783 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9784 done
9785 LIBOBJS=$ac_libobjs
9786
9787 LTLIBOBJS=$ac_ltlibobjs
9788
9789
9790 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9791 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9792 Usually this means the macro was only invoked conditionally." >&5
9793 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9794 Usually this means the macro was only invoked conditionally." >&2;}
9795 { (exit 1); exit 1; }; }
9796 fi
9797 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9798 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9799 Usually this means the macro was only invoked conditionally." >&5
9800 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9801 Usually this means the macro was only invoked conditionally." >&2;}
9802 { (exit 1); exit 1; }; }
9803 fi
9804 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9805 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
9806 Usually this means the macro was only invoked conditionally." >&5
9807 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
9808 Usually this means the macro was only invoked conditionally." >&2;}
9809 { (exit 1); exit 1; }; }
9810 fi
9811
9812 : ${CONFIG_STATUS=./config.status}
9813 ac_clean_files_save=$ac_clean_files
9814 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9815 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9816 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9817 cat >$CONFIG_STATUS <<_ACEOF
9818 #! $SHELL
9819 # Generated by $as_me.
9820 # Run this file to recreate the current configuration.
9821 # Compiler output produced by configure, useful for debugging
9822 # configure, is in config.log if it exists.
9823
9824 debug=false
9825 ac_cs_recheck=false
9826 ac_cs_silent=false
9827 SHELL=\${CONFIG_SHELL-$SHELL}
9828 _ACEOF
9829
9830 cat >>$CONFIG_STATUS <<\_ACEOF
9831 ## --------------------- ##
9832 ## M4sh Initialization. ##
9833 ## --------------------- ##
9834
9835 # Be Bourne compatible
9836 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9837 emulate sh
9838 NULLCMD=:
9839 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9840 # is contrary to our usage. Disable this feature.
9841 alias -g '${1+"$@"}'='"$@"'
9842 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9843 set -o posix
9844 fi
9845 DUALCASE=1; export DUALCASE # for MKS sh
9846
9847 # Support unset when possible.
9848 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9849 as_unset=unset
9850 else
9851 as_unset=false
9852 fi
9853
9854
9855 # Work around bugs in pre-3.0 UWIN ksh.
9856 $as_unset ENV MAIL MAILPATH
9857 PS1='$ '
9858 PS2='> '
9859 PS4='+ '
9860
9861 # NLS nuisances.
9862 for as_var in \
9863 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9864 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9865 LC_TELEPHONE LC_TIME
9866 do
9867 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9868 eval $as_var=C; export $as_var
9869 else
9870 $as_unset $as_var
9871 fi
9872 done
9873
9874 # Required to use basename.
9875 if expr a : '\(a\)' >/dev/null 2>&1; then
9876 as_expr=expr
9877 else
9878 as_expr=false
9879 fi
9880
9881 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9882 as_basename=basename
9883 else
9884 as_basename=false
9885 fi
9886
9887
9888 # Name of the executable.
9889 as_me=`$as_basename "$0" ||
9890 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9891 X"$0" : 'X\(//\)$' \| \
9892 X"$0" : 'X\(/\)$' \| \
9893 . : '\(.\)' 2>/dev/null ||
9894 echo X/"$0" |
9895 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9896 /^X\/\(\/\/\)$/{ s//\1/; q; }
9897 /^X\/\(\/\).*/{ s//\1/; q; }
9898 s/.*/./; q'`
9899
9900
9901 # PATH needs CR, and LINENO needs CR and PATH.
9902 # Avoid depending upon Character Ranges.
9903 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9904 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9905 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9906 as_cr_digits='0123456789'
9907 as_cr_alnum=$as_cr_Letters$as_cr_digits
9908
9909 # The user is always right.
9910 if test "${PATH_SEPARATOR+set}" != set; then
9911 echo "#! /bin/sh" >conf$$.sh
9912 echo "exit 0" >>conf$$.sh
9913 chmod +x conf$$.sh
9914 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9915 PATH_SEPARATOR=';'
9916 else
9917 PATH_SEPARATOR=:
9918 fi
9919 rm -f conf$$.sh
9920 fi
9921
9922
9923 as_lineno_1=$LINENO
9924 as_lineno_2=$LINENO
9925 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9926 test "x$as_lineno_1" != "x$as_lineno_2" &&
9927 test "x$as_lineno_3" = "x$as_lineno_2" || {
9928 # Find who we are. Look in the path if we contain no path at all
9929 # relative or not.
9930 case $0 in
9931 *[\\/]* ) as_myself=$0 ;;
9932 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9933 for as_dir in $PATH
9934 do
9935 IFS=$as_save_IFS
9936 test -z "$as_dir" && as_dir=.
9937 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9938 done
9939
9940 ;;
9941 esac
9942 # We did not find ourselves, most probably we were run as `sh COMMAND'
9943 # in which case we are not to be found in the path.
9944 if test "x$as_myself" = x; then
9945 as_myself=$0
9946 fi
9947 if test ! -f "$as_myself"; then
9948 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9949 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9950 { (exit 1); exit 1; }; }
9951 fi
9952 case $CONFIG_SHELL in
9953 '')
9954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9955 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9956 do
9957 IFS=$as_save_IFS
9958 test -z "$as_dir" && as_dir=.
9959 for as_base in sh bash ksh sh5; do
9960 case $as_dir in
9961 /*)
9962 if ("$as_dir/$as_base" -c '
9963 as_lineno_1=$LINENO
9964 as_lineno_2=$LINENO
9965 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9966 test "x$as_lineno_1" != "x$as_lineno_2" &&
9967 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9968 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9969 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9970 CONFIG_SHELL=$as_dir/$as_base
9971 export CONFIG_SHELL
9972 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9973 fi;;
9974 esac
9975 done
9976 done
9977 ;;
9978 esac
9979
9980 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9981 # uniformly replaced by the line number. The first 'sed' inserts a
9982 # line-number line before each line; the second 'sed' does the real
9983 # work. The second script uses 'N' to pair each line-number line
9984 # with the numbered line, and appends trailing '-' during
9985 # substitution so that $LINENO is not a special case at line end.
9986 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9987 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9988 sed '=' <$as_myself |
9989 sed '
9990 N
9991 s,$,-,
9992 : loop
9993 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9994 t loop
9995 s,-$,,
9996 s,^['$as_cr_digits']*\n,,
9997 ' >$as_me.lineno &&
9998 chmod +x $as_me.lineno ||
9999 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10000 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10001 { (exit 1); exit 1; }; }
10002
10003 # Don't try to exec as it changes $[0], causing all sort of problems
10004 # (the dirname of $[0] is not the place where we might find the
10005 # original and so on. Autoconf is especially sensible to this).
10006 . ./$as_me.lineno
10007 # Exit status is that of the last command.
10008 exit
10009 }
10010
10011
10012 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10013 *c*,-n*) ECHO_N= ECHO_C='
10014 ' ECHO_T=' ' ;;
10015 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10016 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10017 esac
10018
10019 if expr a : '\(a\)' >/dev/null 2>&1; then
10020 as_expr=expr
10021 else
10022 as_expr=false
10023 fi
10024
10025 rm -f conf$$ conf$$.exe conf$$.file
10026 echo >conf$$.file
10027 if ln -s conf$$.file conf$$ 2>/dev/null; then
10028 # We could just check for DJGPP; but this test a) works b) is more generic
10029 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10030 if test -f conf$$.exe; then
10031 # Don't use ln at all; we don't have any links
10032 as_ln_s='cp -p'
10033 else
10034 as_ln_s='ln -s'
10035 fi
10036 elif ln conf$$.file conf$$ 2>/dev/null; then
10037 as_ln_s=ln
10038 else
10039 as_ln_s='cp -p'
10040 fi
10041 rm -f conf$$ conf$$.exe conf$$.file
10042
10043 if mkdir -p . 2>/dev/null; then
10044 as_mkdir_p=:
10045 else
10046 test -d ./-p && rmdir ./-p
10047 as_mkdir_p=false
10048 fi
10049
10050 as_executable_p="test -f"
10051
10052 # Sed expression to map a string onto a valid CPP name.
10053 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10054
10055 # Sed expression to map a string onto a valid variable name.
10056 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10057
10058
10059 # IFS
10060 # We need space, tab and new line, in precisely that order.
10061 as_nl='
10062 '
10063 IFS=" $as_nl"
10064
10065 # CDPATH.
10066 $as_unset CDPATH
10067
10068 exec 6>&1
10069
10070 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10071 # report actual input values of CONFIG_FILES etc. instead of their
10072 # values after options handling. Logging --version etc. is OK.
10073 exec 5>>config.log
10074 {
10075 echo
10076 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10077 ## Running $as_me. ##
10078 _ASBOX
10079 } >&5
10080 cat >&5 <<_CSEOF
10081
10082 This file was extended by $as_me, which was
10083 generated by GNU Autoconf 2.59. Invocation command line was
10084
10085 CONFIG_FILES = $CONFIG_FILES
10086 CONFIG_HEADERS = $CONFIG_HEADERS
10087 CONFIG_LINKS = $CONFIG_LINKS
10088 CONFIG_COMMANDS = $CONFIG_COMMANDS
10089 $ $0 $@
10090
10091 _CSEOF
10092 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10093 echo >&5
10094 _ACEOF
10095
10096 # Files that config.status was made for.
10097 if test -n "$ac_config_files"; then
10098 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10099 fi
10100
10101 if test -n "$ac_config_headers"; then
10102 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10103 fi
10104
10105 if test -n "$ac_config_links"; then
10106 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10107 fi
10108
10109 if test -n "$ac_config_commands"; then
10110 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10111 fi
10112
10113 cat >>$CONFIG_STATUS <<\_ACEOF
10114
10115 ac_cs_usage="\
10116 \`$as_me' instantiates files from templates according to the
10117 current configuration.
10118
10119 Usage: $0 [OPTIONS] [FILE]...
10120
10121 -h, --help print this help, then exit
10122 -V, --version print version number, then exit
10123 -q, --quiet do not print progress messages
10124 -d, --debug don't remove temporary files
10125 --recheck update $as_me by reconfiguring in the same conditions
10126 --file=FILE[:TEMPLATE]
10127 instantiate the configuration file FILE
10128 --header=FILE[:TEMPLATE]
10129 instantiate the configuration header FILE
10130
10131 Configuration files:
10132 $config_files
10133
10134 Configuration headers:
10135 $config_headers
10136
10137 Configuration commands:
10138 $config_commands
10139
10140 Report bugs to <bug-autoconf@gnu.org>."
10141 _ACEOF
10142
10143 cat >>$CONFIG_STATUS <<_ACEOF
10144 ac_cs_version="\\
10145 config.status
10146 configured by $0, generated by GNU Autoconf 2.59,
10147 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10148
10149 Copyright (C) 2003 Free Software Foundation, Inc.
10150 This config.status script is free software; the Free Software Foundation
10151 gives unlimited permission to copy, distribute and modify it."
10152 srcdir=$srcdir
10153 INSTALL="$INSTALL"
10154 _ACEOF
10155
10156 cat >>$CONFIG_STATUS <<\_ACEOF
10157 # If no file are specified by the user, then we need to provide default
10158 # value. By we need to know if files were specified by the user.
10159 ac_need_defaults=:
10160 while test $# != 0
10161 do
10162 case $1 in
10163 --*=*)
10164 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10165 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10166 ac_shift=:
10167 ;;
10168 -*)
10169 ac_option=$1
10170 ac_optarg=$2
10171 ac_shift=shift
10172 ;;
10173 *) # This is not an option, so the user has probably given explicit
10174 # arguments.
10175 ac_option=$1
10176 ac_need_defaults=false;;
10177 esac
10178
10179 case $ac_option in
10180 # Handling of the options.
10181 _ACEOF
10182 cat >>$CONFIG_STATUS <<\_ACEOF
10183 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10184 ac_cs_recheck=: ;;
10185 --version | --vers* | -V )
10186 echo "$ac_cs_version"; exit 0 ;;
10187 --he | --h)
10188 # Conflict between --help and --header
10189 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10190 Try \`$0 --help' for more information." >&5
10191 echo "$as_me: error: ambiguous option: $1
10192 Try \`$0 --help' for more information." >&2;}
10193 { (exit 1); exit 1; }; };;
10194 --help | --hel | -h )
10195 echo "$ac_cs_usage"; exit 0 ;;
10196 --debug | --d* | -d )
10197 debug=: ;;
10198 --file | --fil | --fi | --f )
10199 $ac_shift
10200 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10201 ac_need_defaults=false;;
10202 --header | --heade | --head | --hea )
10203 $ac_shift
10204 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10205 ac_need_defaults=false;;
10206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10207 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10208 ac_cs_silent=: ;;
10209
10210 # This is an error.
10211 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10212 Try \`$0 --help' for more information." >&5
10213 echo "$as_me: error: unrecognized option: $1
10214 Try \`$0 --help' for more information." >&2;}
10215 { (exit 1); exit 1; }; } ;;
10216
10217 *) ac_config_targets="$ac_config_targets $1" ;;
10218
10219 esac
10220 shift
10221 done
10222
10223 ac_configure_extra_args=
10224
10225 if $ac_cs_silent; then
10226 exec 6>/dev/null
10227 ac_configure_extra_args="$ac_configure_extra_args --silent"
10228 fi
10229
10230 _ACEOF
10231 cat >>$CONFIG_STATUS <<_ACEOF
10232 if \$ac_cs_recheck; then
10233 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10234 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10235 fi
10236
10237 _ACEOF
10238
10239 cat >>$CONFIG_STATUS <<_ACEOF
10240 #
10241 # INIT-COMMANDS section.
10242 #
10243
10244 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10245
10246 _ACEOF
10247
10248
10249
10250 cat >>$CONFIG_STATUS <<\_ACEOF
10251 for ac_config_target in $ac_config_targets
10252 do
10253 case "$ac_config_target" in
10254 # Handling of arguments.
10255 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10256 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
10257 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10258 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10259 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
10260 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10261 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10262 { (exit 1); exit 1; }; };;
10263 esac
10264 done
10265
10266 # If the user did not use the arguments to specify the items to instantiate,
10267 # then the envvar interface is used. Set only those that are not.
10268 # We use the long form for the default assignment because of an extremely
10269 # bizarre bug on SunOS 4.1.3.
10270 if $ac_need_defaults; then
10271 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10272 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10273 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10274 fi
10275
10276 # Have a temporary directory for convenience. Make it in the build tree
10277 # simply because there is no reason to put it here, and in addition,
10278 # creating and moving files from /tmp can sometimes cause problems.
10279 # Create a temporary directory, and hook for its removal unless debugging.
10280 $debug ||
10281 {
10282 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10283 trap '{ (exit 1); exit 1; }' 1 2 13 15
10284 }
10285
10286 # Create a (secure) tmp directory for tmp files.
10287
10288 {
10289 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10290 test -n "$tmp" && test -d "$tmp"
10291 } ||
10292 {
10293 tmp=./confstat$$-$RANDOM
10294 (umask 077 && mkdir $tmp)
10295 } ||
10296 {
10297 echo "$me: cannot create a temporary directory in ." >&2
10298 { (exit 1); exit 1; }
10299 }
10300
10301 _ACEOF
10302
10303 cat >>$CONFIG_STATUS <<_ACEOF
10304
10305 #
10306 # CONFIG_FILES section.
10307 #
10308
10309 # No need to generate the scripts if there are no CONFIG_FILES.
10310 # This happens for instance when ./config.status config.h
10311 if test -n "\$CONFIG_FILES"; then
10312 # Protect against being on the right side of a sed subst in config.status.
10313 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10314 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10315 s,@SHELL@,$SHELL,;t t
10316 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10317 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10318 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10319 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10320 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10321 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10322 s,@exec_prefix@,$exec_prefix,;t t
10323 s,@prefix@,$prefix,;t t
10324 s,@program_transform_name@,$program_transform_name,;t t
10325 s,@bindir@,$bindir,;t t
10326 s,@sbindir@,$sbindir,;t t
10327 s,@libexecdir@,$libexecdir,;t t
10328 s,@datadir@,$datadir,;t t
10329 s,@sysconfdir@,$sysconfdir,;t t
10330 s,@sharedstatedir@,$sharedstatedir,;t t
10331 s,@localstatedir@,$localstatedir,;t t
10332 s,@libdir@,$libdir,;t t
10333 s,@includedir@,$includedir,;t t
10334 s,@oldincludedir@,$oldincludedir,;t t
10335 s,@infodir@,$infodir,;t t
10336 s,@mandir@,$mandir,;t t
10337 s,@build_alias@,$build_alias,;t t
10338 s,@host_alias@,$host_alias,;t t
10339 s,@target_alias@,$target_alias,;t t
10340 s,@DEFS@,$DEFS,;t t
10341 s,@ECHO_C@,$ECHO_C,;t t
10342 s,@ECHO_N@,$ECHO_N,;t t
10343 s,@ECHO_T@,$ECHO_T,;t t
10344 s,@LIBS@,$LIBS,;t t
10345 s,@build@,$build,;t t
10346 s,@build_cpu@,$build_cpu,;t t
10347 s,@build_vendor@,$build_vendor,;t t
10348 s,@build_os@,$build_os,;t t
10349 s,@host@,$host,;t t
10350 s,@host_cpu@,$host_cpu,;t t
10351 s,@host_vendor@,$host_vendor,;t t
10352 s,@host_os@,$host_os,;t t
10353 s,@target@,$target,;t t
10354 s,@target_cpu@,$target_cpu,;t t
10355 s,@target_vendor@,$target_vendor,;t t
10356 s,@target_os@,$target_os,;t t
10357 s,@CC@,$CC,;t t
10358 s,@CFLAGS@,$CFLAGS,;t t
10359 s,@LDFLAGS@,$LDFLAGS,;t t
10360 s,@CPPFLAGS@,$CPPFLAGS,;t t
10361 s,@ac_ct_CC@,$ac_ct_CC,;t t
10362 s,@EXEEXT@,$EXEEXT,;t t
10363 s,@OBJEXT@,$OBJEXT,;t t
10364 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10365 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10366 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10367 s,@CYGPATH_W@,$CYGPATH_W,;t t
10368 s,@PACKAGE@,$PACKAGE,;t t
10369 s,@VERSION@,$VERSION,;t t
10370 s,@ACLOCAL@,$ACLOCAL,;t t
10371 s,@AUTOCONF@,$AUTOCONF,;t t
10372 s,@AUTOMAKE@,$AUTOMAKE,;t t
10373 s,@AUTOHEADER@,$AUTOHEADER,;t t
10374 s,@MAKEINFO@,$MAKEINFO,;t t
10375 s,@install_sh@,$install_sh,;t t
10376 s,@STRIP@,$STRIP,;t t
10377 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10378 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10379 s,@mkdir_p@,$mkdir_p,;t t
10380 s,@AWK@,$AWK,;t t
10381 s,@SET_MAKE@,$SET_MAKE,;t t
10382 s,@am__leading_dot@,$am__leading_dot,;t t
10383 s,@AMTAR@,$AMTAR,;t t
10384 s,@am__tar@,$am__tar,;t t
10385 s,@am__untar@,$am__untar,;t t
10386 s,@DEPDIR@,$DEPDIR,;t t
10387 s,@am__include@,$am__include,;t t
10388 s,@am__quote@,$am__quote,;t t
10389 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10390 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10391 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10392 s,@CCDEPMODE@,$CCDEPMODE,;t t
10393 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10394 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10395 s,@LN_S@,$LN_S,;t t
10396 s,@RANLIB@,$RANLIB,;t t
10397 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10398 s,@LIBTOOL@,$LIBTOOL,;t t
10399 s,@use_sysroot@,$use_sysroot,;t t
10400 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
10401 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
10402 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
10403 s,@NO_WERROR@,$NO_WERROR,;t t
10404 s,@CPP@,$CPP,;t t
10405 s,@EGREP@,$EGREP,;t t
10406 s,@ALLOCA@,$ALLOCA,;t t
10407 s,@USE_NLS@,$USE_NLS,;t t
10408 s,@MSGFMT@,$MSGFMT,;t t
10409 s,@GMSGFMT@,$GMSGFMT,;t t
10410 s,@XGETTEXT@,$XGETTEXT,;t t
10411 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
10412 s,@CATALOGS@,$CATALOGS,;t t
10413 s,@CATOBJEXT@,$CATOBJEXT,;t t
10414 s,@DATADIRNAME@,$DATADIRNAME,;t t
10415 s,@GMOFILES@,$GMOFILES,;t t
10416 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
10417 s,@INTLDEPS@,$INTLDEPS,;t t
10418 s,@INTLLIBS@,$INTLLIBS,;t t
10419 s,@INTLOBJS@,$INTLOBJS,;t t
10420 s,@POFILES@,$POFILES,;t t
10421 s,@POSUB@,$POSUB,;t t
10422 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
10423 s,@GT_NO@,$GT_NO,;t t
10424 s,@GT_YES@,$GT_YES,;t t
10425 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10426 s,@l@,$l,;t t
10427 s,@YACC@,$YACC,;t t
10428 s,@LEX@,$LEX,;t t
10429 s,@LEXLIB@,$LEXLIB,;t t
10430 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10431 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10432 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10433 s,@MAINT@,$MAINT,;t t
10434 s,@HDEFINES@,$HDEFINES,;t t
10435 s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
10436 s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
10437 s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
10438 s,@STRINGIFY@,$STRINGIFY,;t t
10439 s,@EMUL@,$EMUL,;t t
10440 s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
10441 s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
10442 s,@LIB_PATH@,$LIB_PATH,;t t
10443 s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
10444 s,@TESTBFDLIB@,$TESTBFDLIB,;t t
10445 s,@LIBOBJS@,$LIBOBJS,;t t
10446 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10447 /@TDIRS@/r $TDIRS
10448 s,@TDIRS@,,;t t
10449 CEOF
10450
10451 _ACEOF
10452
10453 cat >>$CONFIG_STATUS <<\_ACEOF
10454 # Split the substitutions into bite-sized pieces for seds with
10455 # small command number limits, like on Digital OSF/1 and HP-UX.
10456 ac_max_sed_lines=48
10457 ac_sed_frag=1 # Number of current file.
10458 ac_beg=1 # First line for current file.
10459 ac_end=$ac_max_sed_lines # Line after last line for current file.
10460 ac_more_lines=:
10461 ac_sed_cmds=
10462 while $ac_more_lines; do
10463 if test $ac_beg -gt 1; then
10464 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10465 else
10466 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10467 fi
10468 if test ! -s $tmp/subs.frag; then
10469 ac_more_lines=false
10470 else
10471 # The purpose of the label and of the branching condition is to
10472 # speed up the sed processing (if there are no `@' at all, there
10473 # is no need to browse any of the substitutions).
10474 # These are the two extra sed commands mentioned above.
10475 (echo ':t
10476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10477 if test -z "$ac_sed_cmds"; then
10478 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10479 else
10480 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10481 fi
10482 ac_sed_frag=`expr $ac_sed_frag + 1`
10483 ac_beg=$ac_end
10484 ac_end=`expr $ac_end + $ac_max_sed_lines`
10485 fi
10486 done
10487 if test -z "$ac_sed_cmds"; then
10488 ac_sed_cmds=cat
10489 fi
10490 fi # test -n "$CONFIG_FILES"
10491
10492 _ACEOF
10493 cat >>$CONFIG_STATUS <<\_ACEOF
10494 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10495 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10496 case $ac_file in
10497 - | *:- | *:-:* ) # input from stdin
10498 cat >$tmp/stdin
10499 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10500 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10501 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10502 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10503 * ) ac_file_in=$ac_file.in ;;
10504 esac
10505
10506 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10507 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10508 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10509 X"$ac_file" : 'X\(//\)[^/]' \| \
10510 X"$ac_file" : 'X\(//\)$' \| \
10511 X"$ac_file" : 'X\(/\)' \| \
10512 . : '\(.\)' 2>/dev/null ||
10513 echo X"$ac_file" |
10514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10515 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10516 /^X\(\/\/\)$/{ s//\1/; q; }
10517 /^X\(\/\).*/{ s//\1/; q; }
10518 s/.*/./; q'`
10519 { if $as_mkdir_p; then
10520 mkdir -p "$ac_dir"
10521 else
10522 as_dir="$ac_dir"
10523 as_dirs=
10524 while test ! -d "$as_dir"; do
10525 as_dirs="$as_dir $as_dirs"
10526 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10527 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10528 X"$as_dir" : 'X\(//\)[^/]' \| \
10529 X"$as_dir" : 'X\(//\)$' \| \
10530 X"$as_dir" : 'X\(/\)' \| \
10531 . : '\(.\)' 2>/dev/null ||
10532 echo X"$as_dir" |
10533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10534 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10535 /^X\(\/\/\)$/{ s//\1/; q; }
10536 /^X\(\/\).*/{ s//\1/; q; }
10537 s/.*/./; q'`
10538 done
10539 test ! -n "$as_dirs" || mkdir $as_dirs
10540 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10541 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10542 { (exit 1); exit 1; }; }; }
10543
10544 ac_builddir=.
10545
10546 if test "$ac_dir" != .; then
10547 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10548 # A "../" for each directory in $ac_dir_suffix.
10549 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10550 else
10551 ac_dir_suffix= ac_top_builddir=
10552 fi
10553
10554 case $srcdir in
10555 .) # No --srcdir option. We are building in place.
10556 ac_srcdir=.
10557 if test -z "$ac_top_builddir"; then
10558 ac_top_srcdir=.
10559 else
10560 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10561 fi ;;
10562 [\\/]* | ?:[\\/]* ) # Absolute path.
10563 ac_srcdir=$srcdir$ac_dir_suffix;
10564 ac_top_srcdir=$srcdir ;;
10565 *) # Relative path.
10566 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10567 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10568 esac
10569
10570 # Do not use `cd foo && pwd` to compute absolute paths, because
10571 # the directories may not exist.
10572 case `pwd` in
10573 .) ac_abs_builddir="$ac_dir";;
10574 *)
10575 case "$ac_dir" in
10576 .) ac_abs_builddir=`pwd`;;
10577 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10578 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10579 esac;;
10580 esac
10581 case $ac_abs_builddir in
10582 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10583 *)
10584 case ${ac_top_builddir}. in
10585 .) ac_abs_top_builddir=$ac_abs_builddir;;
10586 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10587 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10588 esac;;
10589 esac
10590 case $ac_abs_builddir in
10591 .) ac_abs_srcdir=$ac_srcdir;;
10592 *)
10593 case $ac_srcdir in
10594 .) ac_abs_srcdir=$ac_abs_builddir;;
10595 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10596 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10597 esac;;
10598 esac
10599 case $ac_abs_builddir in
10600 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10601 *)
10602 case $ac_top_srcdir in
10603 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10604 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10605 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10606 esac;;
10607 esac
10608
10609
10610 case $INSTALL in
10611 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10612 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10613 esac
10614
10615 if test x"$ac_file" != x-; then
10616 { echo "$as_me:$LINENO: creating $ac_file" >&5
10617 echo "$as_me: creating $ac_file" >&6;}
10618 rm -f "$ac_file"
10619 fi
10620 # Let's still pretend it is `configure' which instantiates (i.e., don't
10621 # use $as_me), people would be surprised to read:
10622 # /* config.h. Generated by config.status. */
10623 if test x"$ac_file" = x-; then
10624 configure_input=
10625 else
10626 configure_input="$ac_file. "
10627 fi
10628 configure_input=$configure_input"Generated from `echo $ac_file_in |
10629 sed 's,.*/,,'` by configure."
10630
10631 # First look for the input files in the build tree, otherwise in the
10632 # src tree.
10633 ac_file_inputs=`IFS=:
10634 for f in $ac_file_in; do
10635 case $f in
10636 -) echo $tmp/stdin ;;
10637 [\\/$]*)
10638 # Absolute (can't be DOS-style, as IFS=:)
10639 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10640 echo "$as_me: error: cannot find input file: $f" >&2;}
10641 { (exit 1); exit 1; }; }
10642 echo "$f";;
10643 *) # Relative
10644 if test -f "$f"; then
10645 # Build tree
10646 echo "$f"
10647 elif test -f "$srcdir/$f"; then
10648 # Source tree
10649 echo "$srcdir/$f"
10650 else
10651 # /dev/null tree
10652 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10653 echo "$as_me: error: cannot find input file: $f" >&2;}
10654 { (exit 1); exit 1; }; }
10655 fi;;
10656 esac
10657 done` || { (exit 1); exit 1; }
10658 _ACEOF
10659 cat >>$CONFIG_STATUS <<_ACEOF
10660 sed "$ac_vpsub
10661 $extrasub
10662 _ACEOF
10663 cat >>$CONFIG_STATUS <<\_ACEOF
10664 :t
10665 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10666 s,@configure_input@,$configure_input,;t t
10667 s,@srcdir@,$ac_srcdir,;t t
10668 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10669 s,@top_srcdir@,$ac_top_srcdir,;t t
10670 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10671 s,@builddir@,$ac_builddir,;t t
10672 s,@abs_builddir@,$ac_abs_builddir,;t t
10673 s,@top_builddir@,$ac_top_builddir,;t t
10674 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10675 s,@INSTALL@,$ac_INSTALL,;t t
10676 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10677 rm -f $tmp/stdin
10678 if test x"$ac_file" != x-; then
10679 mv $tmp/out $ac_file
10680 else
10681 cat $tmp/out
10682 rm -f $tmp/out
10683 fi
10684
10685 done
10686 _ACEOF
10687 cat >>$CONFIG_STATUS <<\_ACEOF
10688
10689 #
10690 # CONFIG_HEADER section.
10691 #
10692
10693 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10694 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10695 #
10696 # ac_d sets the value in "#define NAME VALUE" lines.
10697 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10698 ac_dB='[ ].*$,\1#\2'
10699 ac_dC=' '
10700 ac_dD=',;t'
10701 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10702 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10703 ac_uB='$,\1#\2define\3'
10704 ac_uC=' '
10705 ac_uD=',;t'
10706
10707 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10708 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10709 case $ac_file in
10710 - | *:- | *:-:* ) # input from stdin
10711 cat >$tmp/stdin
10712 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10713 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10714 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10715 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10716 * ) ac_file_in=$ac_file.in ;;
10717 esac
10718
10719 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10720 echo "$as_me: creating $ac_file" >&6;}
10721
10722 # First look for the input files in the build tree, otherwise in the
10723 # src tree.
10724 ac_file_inputs=`IFS=:
10725 for f in $ac_file_in; do
10726 case $f in
10727 -) echo $tmp/stdin ;;
10728 [\\/$]*)
10729 # Absolute (can't be DOS-style, as IFS=:)
10730 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10731 echo "$as_me: error: cannot find input file: $f" >&2;}
10732 { (exit 1); exit 1; }; }
10733 # Do quote $f, to prevent DOS paths from being IFS'd.
10734 echo "$f";;
10735 *) # Relative
10736 if test -f "$f"; then
10737 # Build tree
10738 echo "$f"
10739 elif test -f "$srcdir/$f"; then
10740 # Source tree
10741 echo "$srcdir/$f"
10742 else
10743 # /dev/null tree
10744 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10745 echo "$as_me: error: cannot find input file: $f" >&2;}
10746 { (exit 1); exit 1; }; }
10747 fi;;
10748 esac
10749 done` || { (exit 1); exit 1; }
10750 # Remove the trailing spaces.
10751 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10752
10753 _ACEOF
10754
10755 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10756 # `conftest.undefs', that substitutes the proper values into
10757 # config.h.in to produce config.h. The first handles `#define'
10758 # templates, and the second `#undef' templates.
10759 # And first: Protect against being on the right side of a sed subst in
10760 # config.status. Protect against being in an unquoted here document
10761 # in config.status.
10762 rm -f conftest.defines conftest.undefs
10763 # Using a here document instead of a string reduces the quoting nightmare.
10764 # Putting comments in sed scripts is not portable.
10765 #
10766 # `end' is used to avoid that the second main sed command (meant for
10767 # 0-ary CPP macros) applies to n-ary macro definitions.
10768 # See the Autoconf documentation for `clear'.
10769 cat >confdef2sed.sed <<\_ACEOF
10770 s/[\\&,]/\\&/g
10771 s,[\\$`],\\&,g
10772 t clear
10773 : clear
10774 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10775 t end
10776 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10777 : end
10778 _ACEOF
10779 # If some macros were called several times there might be several times
10780 # the same #defines, which is useless. Nevertheless, we may not want to
10781 # sort them, since we want the *last* AC-DEFINE to be honored.
10782 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10783 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10784 rm -f confdef2sed.sed
10785
10786 # This sed command replaces #undef with comments. This is necessary, for
10787 # example, in the case of _POSIX_SOURCE, which is predefined and required
10788 # on some systems where configure will not decide to define it.
10789 cat >>conftest.undefs <<\_ACEOF
10790 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10791 _ACEOF
10792
10793 # Break up conftest.defines because some shells have a limit on the size
10794 # of here documents, and old seds have small limits too (100 cmds).
10795 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10796 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10797 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10798 echo ' :' >>$CONFIG_STATUS
10799 rm -f conftest.tail
10800 while grep . conftest.defines >/dev/null
10801 do
10802 # Write a limited-size here document to $tmp/defines.sed.
10803 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10804 # Speed up: don't consider the non `#define' lines.
10805 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10806 # Work around the forget-to-reset-the-flag bug.
10807 echo 't clr' >>$CONFIG_STATUS
10808 echo ': clr' >>$CONFIG_STATUS
10809 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10810 echo 'CEOF
10811 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10812 rm -f $tmp/in
10813 mv $tmp/out $tmp/in
10814 ' >>$CONFIG_STATUS
10815 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10816 rm -f conftest.defines
10817 mv conftest.tail conftest.defines
10818 done
10819 rm -f conftest.defines
10820 echo ' fi # grep' >>$CONFIG_STATUS
10821 echo >>$CONFIG_STATUS
10822
10823 # Break up conftest.undefs because some shells have a limit on the size
10824 # of here documents, and old seds have small limits too (100 cmds).
10825 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10826 rm -f conftest.tail
10827 while grep . conftest.undefs >/dev/null
10828 do
10829 # Write a limited-size here document to $tmp/undefs.sed.
10830 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10831 # Speed up: don't consider the non `#undef'
10832 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10833 # Work around the forget-to-reset-the-flag bug.
10834 echo 't clr' >>$CONFIG_STATUS
10835 echo ': clr' >>$CONFIG_STATUS
10836 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10837 echo 'CEOF
10838 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10839 rm -f $tmp/in
10840 mv $tmp/out $tmp/in
10841 ' >>$CONFIG_STATUS
10842 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10843 rm -f conftest.undefs
10844 mv conftest.tail conftest.undefs
10845 done
10846 rm -f conftest.undefs
10847
10848 cat >>$CONFIG_STATUS <<\_ACEOF
10849 # Let's still pretend it is `configure' which instantiates (i.e., don't
10850 # use $as_me), people would be surprised to read:
10851 # /* config.h. Generated by config.status. */
10852 if test x"$ac_file" = x-; then
10853 echo "/* Generated by configure. */" >$tmp/config.h
10854 else
10855 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10856 fi
10857 cat $tmp/in >>$tmp/config.h
10858 rm -f $tmp/in
10859 if test x"$ac_file" != x-; then
10860 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10861 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10862 echo "$as_me: $ac_file is unchanged" >&6;}
10863 else
10864 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10865 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10866 X"$ac_file" : 'X\(//\)[^/]' \| \
10867 X"$ac_file" : 'X\(//\)$' \| \
10868 X"$ac_file" : 'X\(/\)' \| \
10869 . : '\(.\)' 2>/dev/null ||
10870 echo X"$ac_file" |
10871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10873 /^X\(\/\/\)$/{ s//\1/; q; }
10874 /^X\(\/\).*/{ s//\1/; q; }
10875 s/.*/./; q'`
10876 { if $as_mkdir_p; then
10877 mkdir -p "$ac_dir"
10878 else
10879 as_dir="$ac_dir"
10880 as_dirs=
10881 while test ! -d "$as_dir"; do
10882 as_dirs="$as_dir $as_dirs"
10883 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10884 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10885 X"$as_dir" : 'X\(//\)[^/]' \| \
10886 X"$as_dir" : 'X\(//\)$' \| \
10887 X"$as_dir" : 'X\(/\)' \| \
10888 . : '\(.\)' 2>/dev/null ||
10889 echo X"$as_dir" |
10890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10891 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10892 /^X\(\/\/\)$/{ s//\1/; q; }
10893 /^X\(\/\).*/{ s//\1/; q; }
10894 s/.*/./; q'`
10895 done
10896 test ! -n "$as_dirs" || mkdir $as_dirs
10897 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10898 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10899 { (exit 1); exit 1; }; }; }
10900
10901 rm -f $ac_file
10902 mv $tmp/config.h $ac_file
10903 fi
10904 else
10905 cat $tmp/config.h
10906 rm -f $tmp/config.h
10907 fi
10908 # Compute $ac_file's index in $config_headers.
10909 _am_stamp_count=1
10910 for _am_header in $config_headers :; do
10911 case $_am_header in
10912 $ac_file | $ac_file:* )
10913 break ;;
10914 * )
10915 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10916 esac
10917 done
10918 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10919 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10920 X$ac_file : 'X\(//\)[^/]' \| \
10921 X$ac_file : 'X\(//\)$' \| \
10922 X$ac_file : 'X\(/\)' \| \
10923 . : '\(.\)' 2>/dev/null ||
10924 echo X$ac_file |
10925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10926 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10927 /^X\(\/\/\)$/{ s//\1/; q; }
10928 /^X\(\/\).*/{ s//\1/; q; }
10929 s/.*/./; q'`/stamp-h$_am_stamp_count
10930 done
10931 _ACEOF
10932 cat >>$CONFIG_STATUS <<\_ACEOF
10933
10934 #
10935 # CONFIG_COMMANDS section.
10936 #
10937 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10938 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10939 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10940 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10941 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10942 X"$ac_dest" : 'X\(//\)[^/]' \| \
10943 X"$ac_dest" : 'X\(//\)$' \| \
10944 X"$ac_dest" : 'X\(/\)' \| \
10945 . : '\(.\)' 2>/dev/null ||
10946 echo X"$ac_dest" |
10947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10948 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10949 /^X\(\/\/\)$/{ s//\1/; q; }
10950 /^X\(\/\).*/{ s//\1/; q; }
10951 s/.*/./; q'`
10952 { if $as_mkdir_p; then
10953 mkdir -p "$ac_dir"
10954 else
10955 as_dir="$ac_dir"
10956 as_dirs=
10957 while test ! -d "$as_dir"; do
10958 as_dirs="$as_dir $as_dirs"
10959 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10960 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10961 X"$as_dir" : 'X\(//\)[^/]' \| \
10962 X"$as_dir" : 'X\(//\)$' \| \
10963 X"$as_dir" : 'X\(/\)' \| \
10964 . : '\(.\)' 2>/dev/null ||
10965 echo X"$as_dir" |
10966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10967 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10968 /^X\(\/\/\)$/{ s//\1/; q; }
10969 /^X\(\/\).*/{ s//\1/; q; }
10970 s/.*/./; q'`
10971 done
10972 test ! -n "$as_dirs" || mkdir $as_dirs
10973 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10974 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10975 { (exit 1); exit 1; }; }; }
10976
10977 ac_builddir=.
10978
10979 if test "$ac_dir" != .; then
10980 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10981 # A "../" for each directory in $ac_dir_suffix.
10982 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10983 else
10984 ac_dir_suffix= ac_top_builddir=
10985 fi
10986
10987 case $srcdir in
10988 .) # No --srcdir option. We are building in place.
10989 ac_srcdir=.
10990 if test -z "$ac_top_builddir"; then
10991 ac_top_srcdir=.
10992 else
10993 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10994 fi ;;
10995 [\\/]* | ?:[\\/]* ) # Absolute path.
10996 ac_srcdir=$srcdir$ac_dir_suffix;
10997 ac_top_srcdir=$srcdir ;;
10998 *) # Relative path.
10999 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11000 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11001 esac
11002
11003 # Do not use `cd foo && pwd` to compute absolute paths, because
11004 # the directories may not exist.
11005 case `pwd` in
11006 .) ac_abs_builddir="$ac_dir";;
11007 *)
11008 case "$ac_dir" in
11009 .) ac_abs_builddir=`pwd`;;
11010 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11011 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11012 esac;;
11013 esac
11014 case $ac_abs_builddir in
11015 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11016 *)
11017 case ${ac_top_builddir}. in
11018 .) ac_abs_top_builddir=$ac_abs_builddir;;
11019 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11020 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11021 esac;;
11022 esac
11023 case $ac_abs_builddir in
11024 .) ac_abs_srcdir=$ac_srcdir;;
11025 *)
11026 case $ac_srcdir in
11027 .) ac_abs_srcdir=$ac_abs_builddir;;
11028 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11029 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11030 esac;;
11031 esac
11032 case $ac_abs_builddir in
11033 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11034 *)
11035 case $ac_top_srcdir in
11036 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11037 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11038 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11039 esac;;
11040 esac
11041
11042
11043 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11044 echo "$as_me: executing $ac_dest commands" >&6;}
11045 case $ac_dest in
11046 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11047 # Strip MF so we end up with the name of the file.
11048 mf=`echo "$mf" | sed -e 's/:.*$//'`
11049 # Check whether this is an Automake generated Makefile or not.
11050 # We used to match only the files named `Makefile.in', but
11051 # some people rename them; so instead we look at the file content.
11052 # Grep'ing the first line is not enough: some people post-process
11053 # each Makefile.in and add a new line on top of each file to say so.
11054 # So let's grep whole file.
11055 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11056 dirpart=`(dirname "$mf") 2>/dev/null ||
11057 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11058 X"$mf" : 'X\(//\)[^/]' \| \
11059 X"$mf" : 'X\(//\)$' \| \
11060 X"$mf" : 'X\(/\)' \| \
11061 . : '\(.\)' 2>/dev/null ||
11062 echo X"$mf" |
11063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11064 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11065 /^X\(\/\/\)$/{ s//\1/; q; }
11066 /^X\(\/\).*/{ s//\1/; q; }
11067 s/.*/./; q'`
11068 else
11069 continue
11070 fi
11071 # Extract the definition of DEPDIR, am__include, and am__quote
11072 # from the Makefile without running `make'.
11073 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11074 test -z "$DEPDIR" && continue
11075 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11076 test -z "am__include" && continue
11077 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11078 # When using ansi2knr, U may be empty or an underscore; expand it
11079 U=`sed -n 's/^U = //p' < "$mf"`
11080 # Find all dependency output files, they are included files with
11081 # $(DEPDIR) in their names. We invoke sed twice because it is the
11082 # simplest approach to changing $(DEPDIR) to its actual value in the
11083 # expansion.
11084 for file in `sed -n "
11085 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11086 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11087 # Make sure the directory exists.
11088 test -f "$dirpart/$file" && continue
11089 fdir=`(dirname "$file") 2>/dev/null ||
11090 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11091 X"$file" : 'X\(//\)[^/]' \| \
11092 X"$file" : 'X\(//\)$' \| \
11093 X"$file" : 'X\(/\)' \| \
11094 . : '\(.\)' 2>/dev/null ||
11095 echo X"$file" |
11096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11097 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11098 /^X\(\/\/\)$/{ s//\1/; q; }
11099 /^X\(\/\).*/{ s//\1/; q; }
11100 s/.*/./; q'`
11101 { if $as_mkdir_p; then
11102 mkdir -p $dirpart/$fdir
11103 else
11104 as_dir=$dirpart/$fdir
11105 as_dirs=
11106 while test ! -d "$as_dir"; do
11107 as_dirs="$as_dir $as_dirs"
11108 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11109 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11110 X"$as_dir" : 'X\(//\)[^/]' \| \
11111 X"$as_dir" : 'X\(//\)$' \| \
11112 X"$as_dir" : 'X\(/\)' \| \
11113 . : '\(.\)' 2>/dev/null ||
11114 echo X"$as_dir" |
11115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11116 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11117 /^X\(\/\/\)$/{ s//\1/; q; }
11118 /^X\(\/\).*/{ s//\1/; q; }
11119 s/.*/./; q'`
11120 done
11121 test ! -n "$as_dirs" || mkdir $as_dirs
11122 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11123 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11124 { (exit 1); exit 1; }; }; }
11125
11126 # echo "creating $dirpart/$file"
11127 echo '# dummy' > "$dirpart/$file"
11128 done
11129 done
11130 ;;
11131 default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
11132 esac
11133 done
11134 _ACEOF
11135
11136 cat >>$CONFIG_STATUS <<\_ACEOF
11137
11138 { (exit 0); exit 0; }
11139 _ACEOF
11140 chmod +x $CONFIG_STATUS
11141 ac_clean_files=$ac_clean_files_save
11142
11143
11144 # configure is writing to config.log, and then calls config.status.
11145 # config.status does its own redirection, appending to config.log.
11146 # Unfortunately, on DOS this fails, as config.log is still kept open
11147 # by configure, so config.status won't be able to write to it; its
11148 # output is simply discarded. So we exec the FD to /dev/null,
11149 # effectively closing config.log, so it can be properly (re)opened and
11150 # appended to by config.status. When coming back to configure, we
11151 # need to make the FD available again.
11152 if test "$no_create" != yes; then
11153 ac_cs_success=:
11154 ac_config_status_args=
11155 test "$silent" = yes &&
11156 ac_config_status_args="$ac_config_status_args --quiet"
11157 exec 5>/dev/null
11158 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11159 exec 5>>config.log
11160 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11161 # would make configure fail if this is the last instruction.
11162 $ac_cs_success || { (exit 1); exit 1; }
11163 fi
11164
This page took 0.605115 seconds and 4 git commands to generate.