]> git.ipfire.org Git - thirdparty/gcc.git/blame - libobjc/configure
builtins.c (expand_builtin_strstr, [...]): Eliminate duplicate code.
[thirdparty/gcc.git] / libobjc / configure
CommitLineData
bce1b489 1#! /bin/sh
bce1b489 2# Guess values for system-dependent variables and create Makefiles.
684c64bf 3# Generated by GNU Autoconf 2.59 for package-unused version-unused.
bce1b489 4#
88386050 5# Copyright (C) 2003 Free Software Foundation, Inc.
bce1b489
BE
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
88386050
NN
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
bce1b489 116
88386050
NN
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_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.
231as_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.
236as_nl='
237'
238IFS=" $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.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
bce1b489 254ac_default_prefix=/usr/local
88386050
NN
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${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.
684c64bf
AP
268PACKAGE_NAME='package-unused'
269PACKAGE_TARNAME='libobjc'
270PACKAGE_VERSION='version-unused'
271PACKAGE_STRING='package-unused version-unused'
272PACKAGE_BUGREPORT=''
88386050
NN
273
274ac_unique_file="objc/objc.h"
275# Factoring default headers for most tests.
276ac_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
7d34a5a9 312ac_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 VERSION OBJC_BOEHM_GC toplevel_srcdir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical glibcpp_srcdir gcc_version toolexecdir toolexeclibdir includedirname libext CC ac_ct_CC EXEEXT OBJEXT CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S STRIP ac_ct_STRIP LIBTOOL SET_MAKE CPP CPPFLAGS EGREP GTHREAD_FLAGS LIBOBJS LTLIBOBJS'
88386050 313ac_subst_files=''
bce1b489
BE
314
315# Initialize some variables set by options.
88386050
NN
316ac_init_help=
317ac_init_version=false
bce1b489
BE
318# The variables have the same names as the options, with
319# dashes changed to underlines.
88386050 320cache_file=/dev/null
bce1b489 321exec_prefix=NONE
bce1b489 322no_create=
bce1b489
BE
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
bce1b489
BE
331verbose=
332x_includes=NONE
333x_libraries=NONE
88386050
NN
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.
bce1b489
BE
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
bce1b489
BE
353ac_prev=
354for ac_option
355do
bce1b489
BE
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
88386050 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
bce1b489
BE
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
88386050 367 case $ac_option in
bce1b489
BE
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
88386050 372 bindir=$ac_optarg ;;
bce1b489
BE
373
374 -build | --build | --buil | --bui | --bu)
88386050 375 ac_prev=build_alias ;;
bce1b489 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
88386050 377 build_alias=$ac_optarg ;;
bce1b489
BE
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=*)
88386050
NN
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
bce1b489
BE
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
88386050 393 datadir=$ac_optarg ;;
bce1b489
BE
394
395 -disable-* | --disable-*)
88386050 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
bce1b489 397 # Reject names that are not valid shell variable names.
88386050
NN
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" ;;
bce1b489
BE
403
404 -enable-* | --enable-*)
88386050 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
bce1b489 406 # Reject names that are not valid shell variable names.
88386050
NN
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"`;;
bce1b489
BE
413 *) ac_optarg=yes ;;
414 esac
88386050 415 eval "enable_$ac_feature='$ac_optarg'" ;;
bce1b489
BE
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=*)
88386050 424 exec_prefix=$ac_optarg ;;
bce1b489
BE
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
88386050
NN
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 ;;
bce1b489
BE
436
437 -host | --host | --hos | --ho)
88386050 438 ac_prev=host_alias ;;
bce1b489 439 -host=* | --host=* | --hos=* | --ho=*)
88386050 440 host_alias=$ac_optarg ;;
bce1b489
BE
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=*)
88386050 447 includedir=$ac_optarg ;;
bce1b489
BE
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
88386050 452 infodir=$ac_optarg ;;
bce1b489
BE
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
88386050 457 libdir=$ac_optarg ;;
bce1b489
BE
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=*)
88386050 464 libexecdir=$ac_optarg ;;
bce1b489
BE
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=*)
88386050 473 localstatedir=$ac_optarg ;;
bce1b489
BE
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
88386050 478 mandir=$ac_optarg ;;
bce1b489
BE
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 \
88386050 485 | --no-cr | --no-c | -n)
bce1b489
BE
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=*)
88386050 499 oldincludedir=$ac_optarg ;;
bce1b489
BE
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
88386050 504 prefix=$ac_optarg ;;
bce1b489
BE
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=*)
88386050 511 program_prefix=$ac_optarg ;;
bce1b489
BE
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=*)
88386050 518 program_suffix=$ac_optarg ;;
bce1b489
BE
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=*)
88386050 535 program_transform_name=$ac_optarg ;;
bce1b489
BE
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=*)
88386050 545 sbindir=$ac_optarg ;;
bce1b489
BE
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=*)
88386050 556 sharedstatedir=$ac_optarg ;;
bce1b489
BE
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
88386050 561 site=$ac_optarg ;;
03391b53 562
bce1b489
BE
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
88386050 566 srcdir=$ac_optarg ;;
bce1b489
BE
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=*)
88386050 573 sysconfdir=$ac_optarg ;;
bce1b489
BE
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
88386050 576 ac_prev=target_alias ;;
bce1b489 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
88386050 578 target_alias=$ac_optarg ;;
bce1b489
BE
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
88386050
NN
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
bce1b489
BE
585
586 -with-* | --with-*)
88386050 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
bce1b489 588 # Reject names that are not valid shell variable names.
88386050
NN
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; }; }
bce1b489 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
88386050
NN
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
bce1b489
BE
595 *) ac_optarg=yes ;;
596 esac
88386050 597 eval "with_$ac_package='$ac_optarg'" ;;
bce1b489
BE
598
599 -without-* | --without-*)
88386050 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
bce1b489 601 # Reject names that are not valid shell variable names.
88386050
NN
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" ;;
bce1b489
BE
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=*)
88386050 617 x_includes=$ac_optarg ;;
bce1b489
BE
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=*)
88386050 624 x_libraries=$ac_optarg ;;
bce1b489 625
88386050
NN
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
bce1b489
BE
629 ;;
630
88386050
NN
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
162f5967 641 *)
88386050
NN
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}
bce1b489
BE
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
88386050
NN
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; }; }
bce1b489
BE
656fi
657
88386050
NN
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
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
667done
03391b53 668
88386050
NN
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
03391b53 672do
88386050
NN
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; }; };;
03391b53
AO
678 esac
679done
bce1b489 680
88386050
NN
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.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if 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
697fi
bce1b489 698
88386050
NN
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
bce1b489 703
03391b53
AO
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
88386050
NN
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 ||
715echo 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'`
03391b53
AO
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
88386050
NN
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
bce1b489 732 else
88386050
NN
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
03391b53
AO
735 fi
736fi
88386050
NN
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; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
88386050
NN
753ac_env_CPP_set=${CPP+set}
754ac_env_CPP_value=$CPP
755ac_cv_env_CPP_set=${CPP+set}
756ac_cv_env_CPP_value=$CPP
db7f3c69
NN
757ac_env_CPPFLAGS_set=${CPPFLAGS+set}
758ac_env_CPPFLAGS_value=$CPPFLAGS
759ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
760ac_cv_env_CPPFLAGS_value=$CPPFLAGS
03391b53 761
88386050
NN
762#
763# Report the --help message.
764#
765if test "$ac_init_help" = "long"; then
766 # Omit some internal or obsolete options to make the list less imposing.
767 # This message is too long to be a string in the A/UX 3.1 sh.
768 cat <<_ACEOF
684c64bf 769\`configure' configures package-unused version-unused to adapt to many kinds of systems.
bce1b489 770
88386050 771Usage: $0 [OPTION]... [VAR=VALUE]...
bce1b489 772
88386050
NN
773To assign environment variables (e.g., CC, CFLAGS...), specify them as
774VAR=VALUE. See below for descriptions of some of the useful variables.
03391b53 775
88386050 776Defaults for the options are specified in brackets.
9c01f395 777
88386050
NN
778Configuration:
779 -h, --help display this help and exit
780 --help=short display options specific to this package
781 --help=recursive display the short help of all the included packages
782 -V, --version display version information and exit
783 -q, --quiet, --silent do not print \`checking...' messages
784 --cache-file=FILE cache test results in FILE [disabled]
785 -C, --config-cache alias for \`--cache-file=config.cache'
786 -n, --no-create do not create output files
787 --srcdir=DIR find the sources in DIR [configure dir or \`..']
788
789_ACEOF
790
791 cat <<_ACEOF
792Installation directories:
793 --prefix=PREFIX install architecture-independent files in PREFIX
794 [$ac_default_prefix]
795 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
796 [PREFIX]
9c01f395 797
88386050
NN
798By default, \`make install' will install all the files in
799\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
800an installation prefix other than \`$ac_default_prefix' using \`--prefix',
801for instance \`--prefix=\$HOME'.
9c01f395 802
88386050 803For better control, use the options below.
9c01f395 804
88386050
NN
805Fine tuning of the installation directories:
806 --bindir=DIR user executables [EPREFIX/bin]
807 --sbindir=DIR system admin executables [EPREFIX/sbin]
808 --libexecdir=DIR program executables [EPREFIX/libexec]
809 --datadir=DIR read-only architecture-independent data [PREFIX/share]
810 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
811 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
812 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
813 --libdir=DIR object code libraries [EPREFIX/lib]
814 --includedir=DIR C header files [PREFIX/include]
815 --oldincludedir=DIR C header files for non-gcc [/usr/include]
816 --infodir=DIR info documentation [PREFIX/info]
817 --mandir=DIR man documentation [PREFIX/man]
818_ACEOF
819
820 cat <<\_ACEOF
821
822System types:
823 --build=BUILD configure for building on BUILD [guessed]
824 --host=HOST cross-compile to build programs to run on HOST [BUILD]
825 --target=TARGET configure for building compilers for TARGET [HOST]
826_ACEOF
9c01f395
NN
827fi
828
88386050 829if test -n "$ac_init_help"; then
684c64bf
AP
830 case $ac_init_help in
831 short | recursive ) echo "Configuration of package-unused version-unused:";;
832 esac
88386050 833 cat <<\_ACEOF
03391b53 834
88386050
NN
835Optional Features:
836 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
837 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
838 --enable-multilib build hella library versions (default)
839 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
252dde64
NN
840 --enable-objc-gc enable the use of Boehm's garbage collector with
841 the GNU Objective-C runtime.
3f35ff6f 842 --enable-shared=PKGS build shared libraries default=yes
88386050
NN
843 --enable-static=PKGS build static libraries default=yes
844 --enable-fast-install=PKGS optimize for fast installation default=yes
845 --disable-libtool-lock avoid locking (might break parallel builds)
03391b53 846
88386050
NN
847Optional Packages:
848 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
849 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
850 --with-target-subdir=SUBDIR
851 configuring in a subdirectory
852 --with-cross-host=HOST configuring with a cross compiler
853 --with-gnu-ld assume the C compiler uses GNU ld default=no
854 --with-pic try to use only PIC/non-PIC objects default=use both
1fcfac98 855
88386050
NN
856Some influential environment variables:
857 CC C compiler command
858 CFLAGS C compiler flags
859 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
860 nonstandard directory <lib dir>
861 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
862 headers in a nonstandard directory <include dir>
863 CPP C preprocessor
1fcfac98 864
88386050
NN
865Use these variables to override the choices made by `configure' or to help
866it to find libraries and programs with nonstandard names/locations.
6706f116 867
88386050
NN
868_ACEOF
869fi
870
871if test "$ac_init_help" = "recursive"; then
872 # If there are subdirs, report their specific --help.
873 ac_popdir=`pwd`
874 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
875 test -d $ac_dir || continue
876 ac_builddir=.
877
878if test "$ac_dir" != .; then
879 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
880 # A "../" for each directory in $ac_dir_suffix.
881 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
aebb8c22 882else
88386050 883 ac_dir_suffix= ac_top_builddir=
aebb8c22
DD
884fi
885
88386050
NN
886case $srcdir in
887 .) # No --srcdir option. We are building in place.
888 ac_srcdir=.
889 if test -z "$ac_top_builddir"; then
890 ac_top_srcdir=.
aebb8c22 891 else
88386050
NN
892 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
893 fi ;;
894 [\\/]* | ?:[\\/]* ) # Absolute path.
895 ac_srcdir=$srcdir$ac_dir_suffix;
896 ac_top_srcdir=$srcdir ;;
897 *) # Relative path.
898 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
899 ac_top_srcdir=$ac_top_builddir$srcdir ;;
900esac
901
902# Do not use `cd foo && pwd` to compute absolute paths, because
903# the directories may not exist.
904case `pwd` in
905.) ac_abs_builddir="$ac_dir";;
906*)
907 case "$ac_dir" in
908 .) ac_abs_builddir=`pwd`;;
909 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
910 *) ac_abs_builddir=`pwd`/"$ac_dir";;
911 esac;;
912esac
913case $ac_abs_builddir in
914.) ac_abs_top_builddir=${ac_top_builddir}.;;
915*)
916 case ${ac_top_builddir}. in
917 .) ac_abs_top_builddir=$ac_abs_builddir;;
918 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
919 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
920 esac;;
921esac
922case $ac_abs_builddir in
923.) ac_abs_srcdir=$ac_srcdir;;
924*)
925 case $ac_srcdir in
926 .) ac_abs_srcdir=$ac_abs_builddir;;
927 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
928 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
929 esac;;
930esac
931case $ac_abs_builddir in
932.) ac_abs_top_srcdir=$ac_top_srcdir;;
933*)
934 case $ac_top_srcdir in
935 .) ac_abs_top_srcdir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
937 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
938 esac;;
939esac
940
941 cd $ac_dir
942 # Check for guested configure; otherwise get Cygnus style configure.
943 if test -f $ac_srcdir/configure.gnu; then
944 echo
945 $SHELL $ac_srcdir/configure.gnu --help=recursive
946 elif test -f $ac_srcdir/configure; then
947 echo
948 $SHELL $ac_srcdir/configure --help=recursive
949 elif test -f $ac_srcdir/configure.ac ||
950 test -f $ac_srcdir/configure.in; then
951 echo
952 $ac_configure --help
953 else
954 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
aebb8c22 955 fi
1506eac1 956 cd "$ac_popdir"
88386050 957 done
aebb8c22 958fi
88386050
NN
959
960test -n "$ac_init_help" && exit 0
961if $ac_init_version; then
962 cat <<\_ACEOF
684c64bf
AP
963package-unused configure version-unused
964generated by GNU Autoconf 2.59
88386050
NN
965
966Copyright (C) 2003 Free Software Foundation, Inc.
967This configure script is free software; the Free Software Foundation
968gives unlimited permission to copy, distribute and modify it.
969_ACEOF
970 exit 0
b150efee 971fi
88386050
NN
972exec 5>config.log
973cat >&5 <<_ACEOF
974This file contains any messages produced by compilers while
975running configure, to aid debugging if configure makes a mistake.
b150efee 976
684c64bf 977It was created by package-unused $as_me version-unused, which was
88386050 978generated by GNU Autoconf 2.59. Invocation command line was
aebb8c22 979
88386050 980 $ $0 $@
aebb8c22 981
88386050
NN
982_ACEOF
983{
984cat <<_ASUNAME
985## --------- ##
986## Platform. ##
987## --------- ##
aebb8c22 988
88386050
NN
989hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
990uname -m = `(uname -m) 2>/dev/null || echo unknown`
991uname -r = `(uname -r) 2>/dev/null || echo unknown`
992uname -s = `(uname -s) 2>/dev/null || echo unknown`
993uname -v = `(uname -v) 2>/dev/null || echo unknown`
b150efee 994
88386050
NN
995/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
996/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
b150efee 997
88386050
NN
998/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
999/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1000/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1001hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1002/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1003/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1004/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
b150efee 1005
88386050 1006_ASUNAME
b150efee 1007
88386050
NN
1008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1009for as_dir in $PATH
1010do
1011 IFS=$as_save_IFS
1012 test -z "$as_dir" && as_dir=.
1013 echo "PATH: $as_dir"
1014done
b150efee 1015
88386050 1016} >&5
b150efee 1017
88386050 1018cat >&5 <<_ACEOF
b150efee 1019
b150efee 1020
88386050
NN
1021## ----------- ##
1022## Core tests. ##
1023## ----------- ##
b150efee 1024
88386050
NN
1025_ACEOF
1026
1027
1028# Keep a trace of the command line.
1029# Strip out --no-create and --no-recursion so they do not pile up.
1030# Strip out --silent because we don't want to record it for future runs.
1031# Also quote any args containing shell meta-characters.
1032# Make two passes to allow for proper duplicate-argument suppression.
1033ac_configure_args=
1034ac_configure_args0=
1035ac_configure_args1=
1036ac_sep=
1037ac_must_keep_next=false
1038for ac_pass in 1 2
1039do
1040 for ac_arg
1041 do
1042 case $ac_arg in
1043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1046 continue ;;
1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1049 esac
1050 case $ac_pass in
1051 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1052 2)
1053 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1054 if test $ac_must_keep_next = true; then
1055 ac_must_keep_next=false # Got value, back to normal.
1056 else
1057 case $ac_arg in
1058 *=* | --config-cache | -C | -disable-* | --disable-* \
1059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1061 | -with-* | --with-* | -without-* | --without-* | --x)
1062 case "$ac_configure_args0 " in
1063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1064 esac
1065 ;;
1066 -* ) ac_must_keep_next=true ;;
1067 esac
1068 fi
1069 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1070 # Get rid of the leading space.
1071 ac_sep=" "
1072 ;;
1073 esac
1074 done
1075done
1076$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1077$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1078
1079# When interrupted or exit'd, cleanup temporary files, and complete
1080# config.log. We remove comments because anyway the quotes in there
1081# would cause problems or look ugly.
1082# WARNING: Be sure not to use single quotes in there, as some shells,
1083# such as our DU 5.0 friend, will then `close' the trap.
1084trap 'exit_status=$?
1085 # Save into config.log some information that might help in debugging.
1086 {
1087 echo
1088
1089 cat <<\_ASBOX
1090## ---------------- ##
1091## Cache variables. ##
1092## ---------------- ##
1093_ASBOX
1094 echo
1095 # The following way of writing the cache mishandles newlines in values,
1096{
1097 (set) 2>&1 |
1098 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1099 *ac_space=\ *)
1100 sed -n \
1101 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1103 ;;
1104 *)
1105 sed -n \
1106 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1107 ;;
1108 esac;
1109}
1110 echo
1111
1112 cat <<\_ASBOX
1113## ----------------- ##
1114## Output variables. ##
1115## ----------------- ##
1116_ASBOX
1117 echo
1118 for ac_var in $ac_subst_vars
1119 do
1120 eval ac_val=$`echo $ac_var`
1121 echo "$ac_var='"'"'$ac_val'"'"'"
1122 done | sort
1123 echo
1124
1125 if test -n "$ac_subst_files"; then
1126 cat <<\_ASBOX
1127## ------------- ##
1128## Output files. ##
1129## ------------- ##
1130_ASBOX
1131 echo
1132 for ac_var in $ac_subst_files
1133 do
1134 eval ac_val=$`echo $ac_var`
1135 echo "$ac_var='"'"'$ac_val'"'"'"
1136 done | sort
1137 echo
1138 fi
1139
1140 if test -s confdefs.h; then
1141 cat <<\_ASBOX
1142## ----------- ##
1143## confdefs.h. ##
1144## ----------- ##
1145_ASBOX
1146 echo
1147 sed "/^$/d" confdefs.h | sort
1148 echo
1149 fi
1150 test "$ac_signal" != 0 &&
1151 echo "$as_me: caught signal $ac_signal"
1152 echo "$as_me: exit $exit_status"
1153 } >&5
1154 rm -f core *.core &&
1155 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1156 exit $exit_status
1157 ' 0
1158for ac_signal in 1 2 13 15; do
1159 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1160done
1161ac_signal=0
1162
1163# confdefs.h avoids OS command line length limits that DEFS can exceed.
1164rm -rf conftest* confdefs.h
1165# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1166echo >confdefs.h
1167
1168# Predefined preprocessor variables.
1169
1170cat >>confdefs.h <<_ACEOF
1171#define PACKAGE_NAME "$PACKAGE_NAME"
1172_ACEOF
1173
1174
1175cat >>confdefs.h <<_ACEOF
1176#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1177_ACEOF
1178
1179
1180cat >>confdefs.h <<_ACEOF
1181#define PACKAGE_VERSION "$PACKAGE_VERSION"
1182_ACEOF
1183
1184
1185cat >>confdefs.h <<_ACEOF
1186#define PACKAGE_STRING "$PACKAGE_STRING"
1187_ACEOF
1188
1189
1190cat >>confdefs.h <<_ACEOF
1191#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1192_ACEOF
1193
1194
1195# Let the site file select an alternate cache file if it wants to.
1196# Prefer explicitly selected file to automatically selected ones.
1197if test -z "$CONFIG_SITE"; then
1198 if test "x$prefix" != xNONE; then
1199 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1200 else
1201 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1202 fi
1203fi
1204for ac_site_file in $CONFIG_SITE; do
1205 if test -r "$ac_site_file"; then
1206 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1207echo "$as_me: loading site script $ac_site_file" >&6;}
1208 sed 's/^/| /' "$ac_site_file" >&5
1209 . "$ac_site_file"
1210 fi
1211done
1212
1213if test -r "$cache_file"; then
1214 # Some versions of bash will fail to source /dev/null (special
1215 # files actually), so we avoid doing that.
1216 if test -f "$cache_file"; then
1217 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1218echo "$as_me: loading cache $cache_file" >&6;}
1219 case $cache_file in
1220 [\\/]* | ?:[\\/]* ) . $cache_file;;
1221 *) . ./$cache_file;;
1222 esac
1223 fi
1224else
1225 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1226echo "$as_me: creating cache $cache_file" >&6;}
1227 >$cache_file
1228fi
1229
1230# Check that the precious variables saved in the cache have kept the same
1231# value.
1232ac_cache_corrupted=false
1233for ac_var in `(set) 2>&1 |
1234 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1235 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1236 eval ac_new_set=\$ac_env_${ac_var}_set
1237 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1238 eval ac_new_val="\$ac_env_${ac_var}_value"
1239 case $ac_old_set,$ac_new_set in
1240 set,)
1241 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1242echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1244 ,set)
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1246echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1248 ,);;
1249 *)
1250 if test "x$ac_old_val" != "x$ac_new_val"; then
1251 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1252echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1253 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1254echo "$as_me: former value: $ac_old_val" >&2;}
1255 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1256echo "$as_me: current value: $ac_new_val" >&2;}
1257 ac_cache_corrupted=:
1258 fi;;
1259 esac
1260 # Pass precious variables to config.status.
1261 if test "$ac_new_set" = set; then
1262 case $ac_new_val in
1263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1265 *) ac_arg=$ac_var=$ac_new_val ;;
1266 esac
1267 case " $ac_configure_args " in
1268 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1269 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1270 esac
1271 fi
1272done
1273if $ac_cache_corrupted; then
1274 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1275echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1276 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1277echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1278 { (exit 1); exit 1; }; }
1279fi
1280
1281ac_ext=c
1282ac_cpp='$CPP $CPPFLAGS'
1283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1285ac_compiler_gnu=$ac_cv_c_compiler_gnu
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
684c64bf
AP
1298
1299
1300
1301
1302
1303
1304
1305
88386050
NN
1306
1307
1308
1309
1310
1311
1312
252dde64 1313
88386050 1314
252dde64 1315# We need the following definitions because AC_PROG_LIBTOOL relies on them
88386050 1316PACKAGE=libobjc
252dde64 1317# Version is pulled out to make it a bit easier to change using sed.
88386050
NN
1318VERSION=1:0:0
1319
1320
1321# This works around the fact that libtool configuration may change LD
1322# for this particular configuration, but some shells, instead of
1323# keeping the changes in LD private, export them just because LD is
1324# exported.
1325ORIGINAL_LD_FOR_MULTILIBS=$LD
1326
252dde64
NN
1327# -------
1328# Options
1329# -------
1330
1331# Default to --enable-multilib
88386050
NN
1332# Check whether --enable-multilib or --disable-multilib was given.
1333if test "${enable_multilib+set}" = set; then
1334 enableval="$enable_multilib"
1335 case "${enableval}" in
1336 yes) multilib=yes ;;
1337 no) multilib=no ;;
1338 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1339echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1340 { (exit 1); exit 1; }; } ;;
1341 esac
1342else
1343 multilib=yes
1344fi;
252dde64
NN
1345
1346# We use these options to decide which functions to include.
1347
1348# Check whether --with-target-subdir or --without-target-subdir was given.
1349if test "${with_target_subdir+set}" = set; then
1350 withval="$with_target_subdir"
1351
1352fi;
1353
1354# Check whether --with-cross-host or --without-cross-host was given.
1355if test "${with_cross_host+set}" = set; then
1356 withval="$with_cross_host"
1357
1358fi;
1359
1360echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1361echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1362# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1363if test "${enable_version_specific_runtime_libs+set}" = set; then
1364 enableval="$enable_version_specific_runtime_libs"
1365 case "$enableval" in
1366 yes) version_specific_libs=yes ;;
1367 no) version_specific_libs=no ;;
1368 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1369echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1370 { (exit 1); exit 1; }; };;
1371 esac
1372else
1373 version_specific_libs=no
1374fi;
1375echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1376echo "${ECHO_T}$version_specific_libs" >&6
1377
1378# Check whether --enable-objc-gc or --disable-objc-gc was given.
1379if test "${enable_objc_gc+set}" = set; then
1380 enableval="$enable_objc_gc"
1381 case $enable_objc_gc in
1382 no) OBJC_BOEHM_GC='' ;;
1383 *) OBJC_BOEHM_GC=libobjc_gc.la ;;
1384esac
1385else
1386 OBJC_BOEHM_GC=''
1387fi;
1388
1389
1390# -----------
1391# Directories
1392# -----------
1393
88386050
NN
1394# When building with srcdir == objdir, links to the source files will
1395# be created in directories within the target_subdir. We have to
1396# adjust toplevel_srcdir accordingly, so that configure finds
1397# install-sh and other auxiliary files that live in the top-level
1398# source directory.
1399if test "${srcdir}" = "."; then
1400 if test -z "${with_target_subdir}"; then
1401 toprel=".."
1402 else
1403 if test "${with_target_subdir}" != "."; then
1404 toprel="${with_multisrctop}../.."
1405 else
1406 toprel="${with_multisrctop}.."
1407 fi
1408 fi
1409else
1410 toprel=".."
1411fi
1412ac_aux_dir=
1413for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1414 if test -f $ac_dir/install-sh; then
1415 ac_aux_dir=$ac_dir
1416 ac_install_sh="$ac_aux_dir/install-sh -c"
1417 break
1418 elif test -f $ac_dir/install.sh; then
1419 ac_aux_dir=$ac_dir
1420 ac_install_sh="$ac_aux_dir/install.sh -c"
1421 break
1422 elif test -f $ac_dir/shtool; then
1423 ac_aux_dir=$ac_dir
1424 ac_install_sh="$ac_aux_dir/shtool install -c"
1425 break
1426 fi
1427done
1428if test -z "$ac_aux_dir"; then
1429 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" >&5
1430echo "$as_me: error: cannot find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" >&2;}
1431 { (exit 1); exit 1; }; }
1432fi
1433ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1434ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1435ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1436
1437toplevel_srcdir=\${srcdir}/$toprel
1438
1439
1440# Make sure we can run config.sub.
1441$ac_config_sub sun4 >/dev/null 2>&1 ||
1442 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1443echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1444 { (exit 1); exit 1; }; }
1445
1446echo "$as_me:$LINENO: checking build system type" >&5
1447echo $ECHO_N "checking build system type... $ECHO_C" >&6
1448if test "${ac_cv_build+set}" = set; then
1449 echo $ECHO_N "(cached) $ECHO_C" >&6
1450else
1451 ac_cv_build_alias=$build_alias
1452test -z "$ac_cv_build_alias" &&
1453 ac_cv_build_alias=`$ac_config_guess`
1454test -z "$ac_cv_build_alias" &&
1455 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1456echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1457 { (exit 1); exit 1; }; }
1458ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1459 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1460echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1461 { (exit 1); exit 1; }; }
1462
1463fi
1464echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1465echo "${ECHO_T}$ac_cv_build" >&6
1466build=$ac_cv_build
1467build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1470
1471
1472echo "$as_me:$LINENO: checking host system type" >&5
1473echo $ECHO_N "checking host system type... $ECHO_C" >&6
1474if test "${ac_cv_host+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1476else
1477 ac_cv_host_alias=$host_alias
1478test -z "$ac_cv_host_alias" &&
1479 ac_cv_host_alias=$ac_cv_build_alias
1480ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1481 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1482echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1483 { (exit 1); exit 1; }; }
1484
1485fi
1486echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1487echo "${ECHO_T}$ac_cv_host" >&6
1488host=$ac_cv_host
1489host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1490host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1491host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1492
1493
1494echo "$as_me:$LINENO: checking target system type" >&5
1495echo $ECHO_N "checking target system type... $ECHO_C" >&6
1496if test "${ac_cv_target+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1498else
1499 ac_cv_target_alias=$target_alias
1500test "x$ac_cv_target_alias" = "x" &&
1501 ac_cv_target_alias=$ac_cv_host_alias
1502ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1503 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1504echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1505 { (exit 1); exit 1; }; }
1506
1507fi
1508echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1509echo "${ECHO_T}$ac_cv_target" >&6
1510target=$ac_cv_target
1511target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1512target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1513target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1514
1515
1516# The aliases save the names the user supplied, while $host etc.
1517# will get canonicalized.
1518test -n "$target_alias" &&
b150efee
FS
1519 test "$program_prefix$program_suffix$program_transform_name" = \
1520 NONENONEs,x,x, &&
1521 program_prefix=${target_alias}-
9c01f395
NN
1522 case ${build_alias} in
1523 "") build_noncanonical=${build} ;;
1524 *) build_noncanonical=${build_alias} ;;
1525esac
b150efee 1526
9c01f395
NN
1527 case ${host_alias} in
1528 "") host_noncanonical=${build_noncanonical} ;;
1529 *) host_noncanonical=${host_alias} ;;
1530esac
b150efee 1531
9c01f395
NN
1532 case ${target_alias} in
1533 "") target_noncanonical=${host_noncanonical} ;;
1534 *) target_noncanonical=${target_alias} ;;
1535esac
b150efee 1536
b150efee 1537
b150efee 1538
608e1e0c 1539# Export source directory.
b150efee
FS
1540# These need to be absolute paths, yet at the same time need to
1541# canonicalize only relative paths, because then amd will not unmount
1542# drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
b150efee 1543case $srcdir in
252dde64
NN
1544 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1545 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
b150efee
FS
1546esac
1547
1548
252dde64
NN
1549# Process the option "--enable-version-specific-runtime-libs"
1550gcc_version_trigger=${srcdir}/../gcc/version.c
1551gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
1552gcc_version=`echo ${gcc_version_full} | sed -e 's/\(^ *\) .*/\1/'`
88386050 1553
88386050 1554
608e1e0c 1555# Calculate toolexeclibdir
a42a57cb 1556# Also toolexecdir, though it's only used in toolexeclibdir
252dde64
NN
1557case ${version_specific_libs} in
1558 yes)
1559 # Need the gcc compiler version to know where to install libraries
1560 # and header files if --enable-version-specific-runtime-libs option
1561 # is selected.
a42a57cb 1562 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
608e1e0c 1563 toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
252dde64
NN
1564 ;;
1565 no)
1566 if test -n "$with_cross_host" &&
1567 test x"$with_cross_host" != x"no"; then
252dde64 1568 # Install a library built with a cross compiler in tooldir, not libdir.
a42a57cb 1569 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
608e1e0c
NN
1570 toolexeclibdir='$(toolexecdir)/lib'
1571 else
a42a57cb 1572 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
608e1e0c 1573 toolexeclibdir='$(libdir)'
252dde64
NN
1574 fi
1575 multi_os_directory=`$CC -print-multi-os-directory`
1576 case $multi_os_directory in
1577 .) ;; # Avoid trailing /.
608e1e0c 1578 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
252dde64
NN
1579 esac
1580 ;;
1581esac
71205e0b 1582
252dde64 1583
a42a57cb 1584
ff65de76
AP
1585# Figure out if we want to name the include directory and the
1586# library name changes differently.
7d34a5a9 1587includedirname=include
ff65de76
AP
1588libext=
1589case "${host}" in
1590 *-darwin*)
1591 # Darwin is the only target so far that needs a different include directory.
7d34a5a9 1592 includedirname=include-gnu-runtime
ff65de76
AP
1593 libext=-gnu
1594 ;;
1595esac
1596
1597
1598
252dde64
NN
1599# --------
1600# Programs
1601# --------
7c6b0e92 1602
b150efee 1603
db7f3c69
NN
1604
1605# We must force CC to /not/ be a precious variable; otherwise
1606# the wrong, non-multilib-adjusted value will be used in multilibs.
1607# As a side effect, we have to subst CFLAGS ourselves.
1608
1609
88386050
NN
1610ac_ext=c
1611ac_cpp='$CPP $CPPFLAGS'
1612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1614ac_compiler_gnu=$ac_cv_c_compiler_gnu
1615if test -n "$ac_tool_prefix"; then
1616 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1617set dummy ${ac_tool_prefix}gcc; ac_word=$2
1618echo "$as_me:$LINENO: checking for $ac_word" >&5
1619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620if test "${ac_cv_prog_CC+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1622else
1623 if test -n "$CC"; then
1624 ac_cv_prog_CC="$CC" # Let the user override the test.
1625else
1626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627for as_dir in $PATH
1628do
1629 IFS=$as_save_IFS
1630 test -z "$as_dir" && as_dir=.
1631 for ac_exec_ext in '' $ac_executable_extensions; do
1632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1633 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1635 break 2
1636 fi
1637done
1638done
b150efee 1639
88386050
NN
1640fi
1641fi
1642CC=$ac_cv_prog_CC
1643if test -n "$CC"; then
1644 echo "$as_me:$LINENO: result: $CC" >&5
1645echo "${ECHO_T}$CC" >&6
1646else
1647 echo "$as_me:$LINENO: result: no" >&5
1648echo "${ECHO_T}no" >&6
1649fi
b150efee 1650
88386050
NN
1651fi
1652if test -z "$ac_cv_prog_CC"; then
1653 ac_ct_CC=$CC
1654 # Extract the first word of "gcc", so it can be a program name with args.
1655set dummy gcc; ac_word=$2
1656echo "$as_me:$LINENO: checking for $ac_word" >&5
1657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1660else
1661 if test -n "$ac_ct_CC"; then
1662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1663else
1664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665for as_dir in $PATH
1666do
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_ac_ct_CC="gcc"
1672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673 break 2
1674 fi
1675done
1676done
b150efee 1677
88386050
NN
1678fi
1679fi
1680ac_ct_CC=$ac_cv_prog_ac_ct_CC
1681if test -n "$ac_ct_CC"; then
1682 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1683echo "${ECHO_T}$ac_ct_CC" >&6
1684else
1685 echo "$as_me:$LINENO: result: no" >&5
1686echo "${ECHO_T}no" >&6
1687fi
7c6b0e92 1688
88386050
NN
1689 CC=$ac_ct_CC
1690else
1691 CC="$ac_cv_prog_CC"
1692fi
7c6b0e92 1693
88386050
NN
1694if test -z "$CC"; then
1695 if test -n "$ac_tool_prefix"; then
1696 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1697set dummy ${ac_tool_prefix}cc; ac_word=$2
1698echo "$as_me:$LINENO: checking for $ac_word" >&5
1699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700if test "${ac_cv_prog_CC+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
bce1b489
BE
1702else
1703 if test -n "$CC"; then
1704 ac_cv_prog_CC="$CC" # Let the user override the test.
1705else
88386050
NN
1706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707for as_dir in $PATH
1708do
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_CC="${ac_tool_prefix}cc"
1714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 break 2
1716 fi
1717done
1718done
1719
bce1b489
BE
1720fi
1721fi
88386050 1722CC=$ac_cv_prog_CC
bce1b489 1723if test -n "$CC"; then
88386050
NN
1724 echo "$as_me:$LINENO: result: $CC" >&5
1725echo "${ECHO_T}$CC" >&6
1726else
1727 echo "$as_me:$LINENO: result: no" >&5
1728echo "${ECHO_T}no" >&6
1729fi
1730
1731fi
1732if test -z "$ac_cv_prog_CC"; then
1733 ac_ct_CC=$CC
1734 # Extract the first word of "cc", so it can be a program name with args.
1735set dummy cc; ac_word=$2
1736echo "$as_me:$LINENO: checking for $ac_word" >&5
1737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1739 echo $ECHO_N "(cached) $ECHO_C" >&6
1740else
1741 if test -n "$ac_ct_CC"; then
1742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1743else
1744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745for as_dir in $PATH
1746do
1747 IFS=$as_save_IFS
1748 test -z "$as_dir" && as_dir=.
1749 for ac_exec_ext in '' $ac_executable_extensions; do
1750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751 ac_cv_prog_ac_ct_CC="cc"
1752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753 break 2
1754 fi
1755done
1756done
1757
1758fi
1759fi
1760ac_ct_CC=$ac_cv_prog_ac_ct_CC
1761if test -n "$ac_ct_CC"; then
1762 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1763echo "${ECHO_T}$ac_ct_CC" >&6
bce1b489 1764else
88386050
NN
1765 echo "$as_me:$LINENO: result: no" >&5
1766echo "${ECHO_T}no" >&6
bce1b489
BE
1767fi
1768
88386050
NN
1769 CC=$ac_ct_CC
1770else
1771 CC="$ac_cv_prog_CC"
1772fi
1773
1774fi
03391b53
AO
1775if test -z "$CC"; then
1776 # Extract the first word of "cc", so it can be a program name with args.
bce1b489 1777set dummy cc; ac_word=$2
88386050
NN
1778echo "$as_me:$LINENO: checking for $ac_word" >&5
1779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1780if test "${ac_cv_prog_CC+set}" = set; then
1781 echo $ECHO_N "(cached) $ECHO_C" >&6
bce1b489
BE
1782else
1783 if test -n "$CC"; then
1784 ac_cv_prog_CC="$CC" # Let the user override the test.
1785else
bce1b489 1786 ac_prog_rejected=no
88386050
NN
1787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788for as_dir in $PATH
1789do
1790 IFS=$as_save_IFS
1791 test -z "$as_dir" && as_dir=.
1792 for ac_exec_ext in '' $ac_executable_extensions; do
1793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1795 ac_prog_rejected=yes
1796 continue
1797 fi
1798 ac_cv_prog_CC="cc"
1799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1800 break 2
1801 fi
1802done
1803done
1804
bce1b489
BE
1805if test $ac_prog_rejected = yes; then
1806 # We found a bogon in the path, so make sure we never use it.
1807 set dummy $ac_cv_prog_CC
1808 shift
88386050 1809 if test $# != 0; then
bce1b489
BE
1810 # We chose a different compiler from the bogus one.
1811 # However, it has the same basename, so the bogon will be chosen
1812 # first if we set CC to just the basename; use the full file name.
1813 shift
88386050 1814 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
bce1b489
BE
1815 fi
1816fi
1817fi
1818fi
88386050 1819CC=$ac_cv_prog_CC
bce1b489 1820if test -n "$CC"; then
88386050
NN
1821 echo "$as_me:$LINENO: result: $CC" >&5
1822echo "${ECHO_T}$CC" >&6
bce1b489 1823else
88386050
NN
1824 echo "$as_me:$LINENO: result: no" >&5
1825echo "${ECHO_T}no" >&6
bce1b489
BE
1826fi
1827
03391b53 1828fi
88386050
NN
1829if test -z "$CC"; then
1830 if test -n "$ac_tool_prefix"; then
1831 for ac_prog in cl
1832 do
1833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1834set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1835echo "$as_me:$LINENO: checking for $ac_word" >&5
1836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837if test "${ac_cv_prog_CC+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
bce1b489 1839else
88386050
NN
1840 if test -n "$CC"; then
1841 ac_cv_prog_CC="$CC" # Let the user override the test.
bce1b489 1842else
88386050
NN
1843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844for as_dir in $PATH
1845do
1846 IFS=$as_save_IFS
1847 test -z "$as_dir" && as_dir=.
1848 for ac_exec_ext in '' $ac_executable_extensions; do
1849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1850 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852 break 2
1853 fi
1854done
1855done
1856
bce1b489
BE
1857fi
1858fi
88386050
NN
1859CC=$ac_cv_prog_CC
1860if test -n "$CC"; then
1861 echo "$as_me:$LINENO: result: $CC" >&5
1862echo "${ECHO_T}$CC" >&6
bce1b489 1863else
88386050
NN
1864 echo "$as_me:$LINENO: result: no" >&5
1865echo "${ECHO_T}no" >&6
bce1b489 1866fi
bce1b489 1867
88386050
NN
1868 test -n "$CC" && break
1869 done
bce1b489 1870fi
88386050
NN
1871if test -z "$CC"; then
1872 ac_ct_CC=$CC
1873 for ac_prog in cl
1874do
1875 # Extract the first word of "$ac_prog", so it can be a program name with args.
1876set dummy $ac_prog; ac_word=$2
1877echo "$as_me:$LINENO: checking for $ac_word" >&5
1878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1879if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1881else
1882 if test -n "$ac_ct_CC"; then
1883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1884else
1885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886for as_dir in $PATH
1887do
1888 IFS=$as_save_IFS
1889 test -z "$as_dir" && as_dir=.
1890 for ac_exec_ext in '' $ac_executable_extensions; do
1891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1892 ac_cv_prog_ac_ct_CC="$ac_prog"
1893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 break 2
da4b1927 1895 fi
88386050
NN
1896done
1897done
1898
1899fi
1900fi
1901ac_ct_CC=$ac_cv_prog_ac_ct_CC
1902if test -n "$ac_ct_CC"; then
1903 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1904echo "${ECHO_T}$ac_ct_CC" >&6
1905else
1906 echo "$as_me:$LINENO: result: no" >&5
1907echo "${ECHO_T}no" >&6
1908fi
1909
1910 test -n "$ac_ct_CC" && break
1911done
1912
1913 CC=$ac_ct_CC
1914fi
1915
1916fi
1917
1918
1919test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1920See \`config.log' for more details." >&5
1921echo "$as_me: error: no acceptable C compiler found in \$PATH
1922See \`config.log' for more details." >&2;}
1923 { (exit 1); exit 1; }; }
1924
1925# Provide some information about the compiler.
1926echo "$as_me:$LINENO:" \
1927 "checking for C compiler version" >&5
1928ac_compiler=`set X $ac_compile; echo $2`
1929{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1930 (eval $ac_compiler --version </dev/null >&5) 2>&5
1931 ac_status=$?
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }
1934{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1935 (eval $ac_compiler -v </dev/null >&5) 2>&5
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }
1939{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1940 (eval $ac_compiler -V </dev/null >&5) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }
1944
1945cat >conftest.$ac_ext <<_ACEOF
1946/* confdefs.h. */
1947_ACEOF
1948cat confdefs.h >>conftest.$ac_ext
1949cat >>conftest.$ac_ext <<_ACEOF
1950/* end confdefs.h. */
1951
1952int
1953main ()
1954{
1955
1956 ;
1957 return 0;
1958}
1959_ACEOF
1960# FIXME: Cleanup?
1961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1962 (eval $ac_link) 2>&5
1963 ac_status=$?
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); }; then
1966 gcc_no_link=no
1967else
1968 gcc_no_link=yes
1969fi
1970
1971if test x$gcc_no_link = xyes; then
1972 # Setting cross_compile will disable run tests; it will
1973 # also disable AC_CHECK_FILE but that's generally
1974 # correct if we can't link.
1975 cross_compiling=yes
1976 EXEEXT=
1977else
1978 cat >conftest.$ac_ext <<_ACEOF
1979/* confdefs.h. */
1980_ACEOF
1981cat confdefs.h >>conftest.$ac_ext
1982cat >>conftest.$ac_ext <<_ACEOF
1983/* end confdefs.h. */
1984
1985int
1986main ()
1987{
1988
1989 ;
1990 return 0;
1991}
1992_ACEOF
1993ac_clean_files_save=$ac_clean_files
1994ac_clean_files="$ac_clean_files a.out a.exe b.out"
1995# Try to create an executable without -o first, disregard a.out.
1996# It will help us diagnose broken compilers, and finding out an intuition
1997# of exeext.
1998echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1999echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2000ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2001if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2002 (eval $ac_link_default) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; then
2006 # Find the output, starting from the most likely. This scheme is
2007# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2008# resort.
2009
2010# Be careful to initialize this variable, since it used to be cached.
2011# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2012ac_cv_exeext=
2013# b.out is created by i960 compilers.
2014for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2015do
2016 test -f "$ac_file" || continue
2017 case $ac_file in
2018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2019 ;;
2020 conftest.$ac_ext )
2021 # This is the source file.
2022 ;;
2023 [ab].out )
2024 # We found the default executable, but exeext='' is most
2025 # certainly right.
2026 break;;
2027 *.* )
2028 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2029 # FIXME: I believe we export ac_cv_exeext for Libtool,
2030 # but it would be cool to find out if it's true. Does anybody
2031 # maintain Libtool? --akim.
2032 export ac_cv_exeext
2033 break;;
2034 * )
2035 break;;
2036 esac
2037done
2038else
2039 echo "$as_me: failed program was:" >&5
2040sed 's/^/| /' conftest.$ac_ext >&5
2041
2042{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2043See \`config.log' for more details." >&5
2044echo "$as_me: error: C compiler cannot create executables
2045See \`config.log' for more details." >&2;}
2046 { (exit 77); exit 77; }; }
2047fi
2048
2049ac_exeext=$ac_cv_exeext
2050echo "$as_me:$LINENO: result: $ac_file" >&5
2051echo "${ECHO_T}$ac_file" >&6
2052
2053# Check the compiler produces executables we can run. If not, either
2054# the compiler is broken, or we cross compile.
2055echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2056echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2057# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2058# If not cross compiling, check that we can run a simple program.
2059if test "$cross_compiling" != yes; then
2060 if { ac_try='./$ac_file'
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 (eval $ac_try) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; }; then
2066 cross_compiling=no
2067 else
2068 if test "$cross_compiling" = maybe; then
2069 cross_compiling=yes
2070 else
2071 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2072If you meant to cross compile, use \`--host'.
2073See \`config.log' for more details." >&5
2074echo "$as_me: error: cannot run C compiled programs.
2075If you meant to cross compile, use \`--host'.
2076See \`config.log' for more details." >&2;}
2077 { (exit 1); exit 1; }; }
2078 fi
2079 fi
2080fi
2081echo "$as_me:$LINENO: result: yes" >&5
2082echo "${ECHO_T}yes" >&6
2083
2084rm -f a.out a.exe conftest$ac_cv_exeext b.out
2085ac_clean_files=$ac_clean_files_save
2086# Check the compiler produces executables we can run. If not, either
2087# the compiler is broken, or we cross compile.
2088echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2089echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2090echo "$as_me:$LINENO: result: $cross_compiling" >&5
2091echo "${ECHO_T}$cross_compiling" >&6
2092
2093echo "$as_me:$LINENO: checking for suffix of executables" >&5
2094echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2096 (eval $ac_link) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; then
2100 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2101# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2102# work properly (i.e., refer to `conftest.exe'), while it won't with
2103# `rm'.
2104for ac_file in conftest.exe conftest conftest.*; do
2105 test -f "$ac_file" || continue
2106 case $ac_file in
2107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2108 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2109 export ac_cv_exeext
2110 break;;
2111 * ) break;;
2112 esac
2113done
2114else
2115 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2116See \`config.log' for more details." >&5
2117echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2118See \`config.log' for more details." >&2;}
2119 { (exit 1); exit 1; }; }
2120fi
2121
2122rm -f conftest$ac_cv_exeext
2123echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2124echo "${ECHO_T}$ac_cv_exeext" >&6
2125
2126rm -f conftest.$ac_ext
2127EXEEXT=$ac_cv_exeext
2128ac_exeext=$EXEEXT
2129fi
2130echo "$as_me:$LINENO: checking for suffix of object files" >&5
2131echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2132if test "${ac_cv_objext+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2134else
2135 cat >conftest.$ac_ext <<_ACEOF
2136/* confdefs.h. */
2137_ACEOF
2138cat confdefs.h >>conftest.$ac_ext
2139cat >>conftest.$ac_ext <<_ACEOF
2140/* end confdefs.h. */
2141
2142int
2143main ()
2144{
2145
2146 ;
2147 return 0;
2148}
2149_ACEOF
2150rm -f conftest.o conftest.obj
2151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152 (eval $ac_compile) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; then
2156 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2157 case $ac_file in
2158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2159 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2160 break;;
2161 esac
2162done
2163else
2164 echo "$as_me: failed program was:" >&5
2165sed 's/^/| /' conftest.$ac_ext >&5
2166
2167{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2168See \`config.log' for more details." >&5
2169echo "$as_me: error: cannot compute suffix of object files: cannot compile
2170See \`config.log' for more details." >&2;}
2171 { (exit 1); exit 1; }; }
2172fi
2173
2174rm -f conftest.$ac_cv_objext conftest.$ac_ext
2175fi
2176echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2177echo "${ECHO_T}$ac_cv_objext" >&6
2178OBJEXT=$ac_cv_objext
2179ac_objext=$OBJEXT
2180echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2181echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2182if test "${ac_cv_c_compiler_gnu+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184else
2185 cat >conftest.$ac_ext <<_ACEOF
2186/* confdefs.h. */
2187_ACEOF
2188cat confdefs.h >>conftest.$ac_ext
2189cat >>conftest.$ac_ext <<_ACEOF
2190/* end confdefs.h. */
2191
2192int
2193main ()
2194{
2195#ifndef __GNUC__
2196 choke me
2197#endif
2198
2199 ;
2200 return 0;
2201}
2202_ACEOF
2203rm -f conftest.$ac_objext
2204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205 (eval $ac_compile) 2>conftest.er1
2206 ac_status=$?
2207 grep -v '^ *+' conftest.er1 >conftest.err
2208 rm -f conftest.er1
2209 cat conftest.err >&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); } &&
1506eac1 2212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
88386050
NN
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 (eval $ac_try) 2>&5
2215 ac_status=$?
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; } &&
2218 { ac_try='test -s conftest.$ac_objext'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 (eval $ac_try) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; }; then
2224 ac_compiler_gnu=yes
2225else
2226 echo "$as_me: failed program was:" >&5
2227sed 's/^/| /' conftest.$ac_ext >&5
2228
2229ac_compiler_gnu=no
2230fi
2231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2232ac_cv_c_compiler_gnu=$ac_compiler_gnu
2233
2234fi
2235echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2236echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2237GCC=`test $ac_compiler_gnu = yes && echo yes`
2238ac_test_CFLAGS=${CFLAGS+set}
2239ac_save_CFLAGS=$CFLAGS
2240CFLAGS="-g"
2241echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2242echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2243if test "${ac_cv_prog_cc_g+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2245else
2246 cat >conftest.$ac_ext <<_ACEOF
2247/* confdefs.h. */
2248_ACEOF
2249cat confdefs.h >>conftest.$ac_ext
2250cat >>conftest.$ac_ext <<_ACEOF
2251/* end confdefs.h. */
2252
2253int
2254main ()
2255{
2256
2257 ;
2258 return 0;
2259}
2260_ACEOF
2261rm -f conftest.$ac_objext
2262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263 (eval $ac_compile) 2>conftest.er1
2264 ac_status=$?
2265 grep -v '^ *+' conftest.er1 >conftest.err
2266 rm -f conftest.er1
2267 cat conftest.err >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } &&
1506eac1 2270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
88386050
NN
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 (eval $ac_try) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; } &&
2276 { ac_try='test -s conftest.$ac_objext'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; }; then
2282 ac_cv_prog_cc_g=yes
2283else
2284 echo "$as_me: failed program was:" >&5
2285sed 's/^/| /' conftest.$ac_ext >&5
2286
2287ac_cv_prog_cc_g=no
2288fi
2289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290fi
2291echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2292echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2293if test "$ac_test_CFLAGS" = set; then
2294 CFLAGS=$ac_save_CFLAGS
2295elif test $ac_cv_prog_cc_g = yes; then
2296 if test "$GCC" = yes; then
2297 CFLAGS="-g -O2"
2298 else
2299 CFLAGS="-g"
2300 fi
2301else
2302 if test "$GCC" = yes; then
2303 CFLAGS="-O2"
2304 else
2305 CFLAGS=
2306 fi
2307fi
2308echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2309echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2310if test "${ac_cv_prog_cc_stdc+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2312else
2313 ac_cv_prog_cc_stdc=no
2314ac_save_CC=$CC
2315cat >conftest.$ac_ext <<_ACEOF
2316/* confdefs.h. */
2317_ACEOF
2318cat confdefs.h >>conftest.$ac_ext
2319cat >>conftest.$ac_ext <<_ACEOF
2320/* end confdefs.h. */
2321#include <stdarg.h>
2322#include <stdio.h>
2323#include <sys/types.h>
2324#include <sys/stat.h>
2325/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2326struct buf { int x; };
2327FILE * (*rcsopen) (struct buf *, struct stat *, int);
2328static char *e (p, i)
2329 char **p;
2330 int i;
2331{
2332 return p[i];
2333}
2334static char *f (char * (*g) (char **, int), char **p, ...)
2335{
2336 char *s;
2337 va_list v;
2338 va_start (v,p);
2339 s = g (p, va_arg (v,int));
2340 va_end (v);
2341 return s;
2342}
2343
2344/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2345 function prototypes and stuff, but not '\xHH' hex character constants.
2346 These don't provoke an error unfortunately, instead are silently treated
2347 as 'x'. The following induces an error, until -std1 is added to get
2348 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2349 array size at least. It's necessary to write '\x00'==0 to get something
2350 that's true only with -std1. */
2351int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2352
2353int test (int i, double x);
2354struct s1 {int (*f) (int a);};
2355struct s2 {int (*f) (double a);};
2356int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2357int argc;
2358char **argv;
2359int
2360main ()
2361{
2362return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2363 ;
2364 return 0;
2365}
2366_ACEOF
2367# Don't try gcc -ansi; that turns off useful extensions and
2368# breaks some systems' header files.
2369# AIX -qlanglvl=ansi
2370# Ultrix and OSF/1 -std1
2371# HP-UX 10.20 and later -Ae
2372# HP-UX older versions -Aa -D_HPUX_SOURCE
2373# SVR4 -Xc -D__EXTENSIONS__
2374for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2375do
2376 CC="$ac_save_CC $ac_arg"
2377 rm -f conftest.$ac_objext
2378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379 (eval $ac_compile) 2>conftest.er1
2380 ac_status=$?
2381 grep -v '^ *+' conftest.er1 >conftest.err
2382 rm -f conftest.er1
2383 cat conftest.err >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); } &&
1506eac1 2386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
88386050
NN
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 (eval $ac_try) 2>&5
2389 ac_status=$?
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; } &&
2392 { ac_try='test -s conftest.$ac_objext'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 (eval $ac_try) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; }; then
2398 ac_cv_prog_cc_stdc=$ac_arg
2399break
2400else
2401 echo "$as_me: failed program was:" >&5
2402sed 's/^/| /' conftest.$ac_ext >&5
2403
2404fi
2405rm -f conftest.err conftest.$ac_objext
2406done
2407rm -f conftest.$ac_ext conftest.$ac_objext
2408CC=$ac_save_CC
2409
bce1b489
BE
2410fi
2411
88386050
NN
2412case "x$ac_cv_prog_cc_stdc" in
2413 x|xno)
2414 echo "$as_me:$LINENO: result: none needed" >&5
2415echo "${ECHO_T}none needed" >&6 ;;
2416 *)
2417 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2418echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2419 CC="$CC $ac_cv_prog_cc_stdc" ;;
2420esac
2421
2422# Some people use a C++ compiler to compile C. Since we use `exit',
2423# in C++ we need to declare it. In case someone uses the same compiler
2424# for both compiling C and C++ we need to have the C++ compiler decide
2425# the declaration of exit, since it's the most demanding environment.
2426cat >conftest.$ac_ext <<_ACEOF
2427#ifndef __cplusplus
2428 choke me
2429#endif
2430_ACEOF
2431rm -f conftest.$ac_objext
2432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433 (eval $ac_compile) 2>conftest.er1
2434 ac_status=$?
2435 grep -v '^ *+' conftest.er1 >conftest.err
2436 rm -f conftest.er1
2437 cat conftest.err >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); } &&
1506eac1 2440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
88386050
NN
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 (eval $ac_try) 2>&5
2443 ac_status=$?
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; } &&
2446 { ac_try='test -s conftest.$ac_objext'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 (eval $ac_try) 2>&5
2449 ac_status=$?
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; }; then
2452 for ac_declaration in \
2453 '' \
2454 'extern "C" void std::exit (int) throw (); using std::exit;' \
2455 'extern "C" void std::exit (int); using std::exit;' \
2456 'extern "C" void exit (int) throw ();' \
2457 'extern "C" void exit (int);' \
2458 'void exit (int);'
2459do
2460 cat >conftest.$ac_ext <<_ACEOF
2461/* confdefs.h. */
2462_ACEOF
2463cat confdefs.h >>conftest.$ac_ext
2464cat >>conftest.$ac_ext <<_ACEOF
2465/* end confdefs.h. */
2466$ac_declaration
2467#include <stdlib.h>
2468int
2469main ()
2470{
2471exit (42);
2472 ;
2473 return 0;
2474}
2475_ACEOF
2476rm -f conftest.$ac_objext
2477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478 (eval $ac_compile) 2>conftest.er1
2479 ac_status=$?
2480 grep -v '^ *+' conftest.er1 >conftest.err
2481 rm -f conftest.er1
2482 cat conftest.err >&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); } &&
1506eac1 2485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
88386050
NN
2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 (eval $ac_try) 2>&5
2488 ac_status=$?
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; } &&
2491 { ac_try='test -s conftest.$ac_objext'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 (eval $ac_try) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; }; then
2497 :
2498else
2499 echo "$as_me: failed program was:" >&5
2500sed 's/^/| /' conftest.$ac_ext >&5
2501
2502continue
2503fi
2504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2505 cat >conftest.$ac_ext <<_ACEOF
2506/* confdefs.h. */
2507_ACEOF
2508cat confdefs.h >>conftest.$ac_ext
2509cat >>conftest.$ac_ext <<_ACEOF
2510/* end confdefs.h. */
2511$ac_declaration
2512int
2513main ()
2514{
2515exit (42);
2516 ;
2517 return 0;
2518}
2519_ACEOF
2520rm -f conftest.$ac_objext
2521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522 (eval $ac_compile) 2>conftest.er1
2523 ac_status=$?
2524 grep -v '^ *+' conftest.er1 >conftest.err
2525 rm -f conftest.er1
2526 cat conftest.err >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
1506eac1 2529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
88386050
NN
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 (eval $ac_try) 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; } &&
2535 { ac_try='test -s conftest.$ac_objext'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 (eval $ac_try) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; }; then
2541 break
2542else
2543 echo "$as_me: failed program was:" >&5
2544sed 's/^/| /' conftest.$ac_ext >&5
2545
2546fi
2547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2548done
2549rm -f conftest*
2550if test -n "$ac_declaration"; then
2551 echo '#ifdef __cplusplus' >>confdefs.h
2552 echo $ac_declaration >>confdefs.h
2553 echo '#endif' >>confdefs.h
2554fi
03391b53 2555
9c01f395 2556else
88386050
NN
2557 echo "$as_me: failed program was:" >&5
2558sed 's/^/| /' conftest.$ac_ext >&5
2559
9c01f395 2560fi
88386050
NN
2561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2562ac_ext=c
2563ac_cpp='$CPP $CPPFLAGS'
2564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2566ac_compiler_gnu=$ac_cv_c_compiler_gnu
2567
9c01f395 2568
db7f3c69
NN
2569
2570
2571
88386050
NN
2572if test -n "$ac_tool_prefix"; then
2573 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
b150efee 2574set dummy ${ac_tool_prefix}as; ac_word=$2
88386050
NN
2575echo "$as_me:$LINENO: checking for $ac_word" >&5
2576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2577if test "${ac_cv_prog_AS+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
bce1b489 2579else
b150efee
FS
2580 if test -n "$AS"; then
2581 ac_cv_prog_AS="$AS" # Let the user override the test.
2582else
88386050
NN
2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2590 ac_cv_prog_AS="${ac_tool_prefix}as"
2591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 break 2
2593 fi
2594done
2595done
2596
b150efee
FS
2597fi
2598fi
88386050 2599AS=$ac_cv_prog_AS
b150efee 2600if test -n "$AS"; then
88386050
NN
2601 echo "$as_me:$LINENO: result: $AS" >&5
2602echo "${ECHO_T}$AS" >&6
b150efee 2603else
88386050
NN
2604 echo "$as_me:$LINENO: result: no" >&5
2605echo "${ECHO_T}no" >&6
2606fi
2607
b150efee 2608fi
88386050
NN
2609if test -z "$ac_cv_prog_AS"; then
2610 ac_ct_AS=$AS
2611 # Extract the first word of "as", so it can be a program name with args.
2612set dummy as; ac_word=$2
2613echo "$as_me:$LINENO: checking for $ac_word" >&5
2614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2615if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617else
2618 if test -n "$ac_ct_AS"; then
2619 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2620else
2621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622for as_dir in $PATH
2623do
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628 ac_cv_prog_ac_ct_AS="as"
2629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 break 2
2631 fi
2632done
2633done
b150efee 2634
88386050
NN
2635fi
2636fi
2637ac_ct_AS=$ac_cv_prog_ac_ct_AS
2638if test -n "$ac_ct_AS"; then
2639 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2640echo "${ECHO_T}$ac_ct_AS" >&6
2641else
2642 echo "$as_me:$LINENO: result: no" >&5
2643echo "${ECHO_T}no" >&6
2644fi
b150efee 2645
88386050
NN
2646 AS=$ac_ct_AS
2647else
2648 AS="$ac_cv_prog_AS"
2649fi
b150efee 2650
88386050
NN
2651if test -n "$ac_tool_prefix"; then
2652 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
b150efee 2653set dummy ${ac_tool_prefix}ar; ac_word=$2
88386050
NN
2654echo "$as_me:$LINENO: checking for $ac_word" >&5
2655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2656if test "${ac_cv_prog_AR+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
b150efee
FS
2658else
2659 if test -n "$AR"; then
2660 ac_cv_prog_AR="$AR" # Let the user override the test.
2661else
88386050
NN
2662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663for as_dir in $PATH
2664do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669 ac_cv_prog_AR="${ac_tool_prefix}ar"
2670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 break 2
2672 fi
2673done
2674done
2675
b150efee
FS
2676fi
2677fi
88386050 2678AR=$ac_cv_prog_AR
b150efee 2679if test -n "$AR"; then
88386050
NN
2680 echo "$as_me:$LINENO: result: $AR" >&5
2681echo "${ECHO_T}$AR" >&6
b150efee 2682else
88386050
NN
2683 echo "$as_me:$LINENO: result: no" >&5
2684echo "${ECHO_T}no" >&6
b150efee
FS
2685fi
2686
88386050
NN
2687fi
2688if test -z "$ac_cv_prog_AR"; then
2689 ac_ct_AR=$AR
2690 # Extract the first word of "ar", so it can be a program name with args.
2691set dummy ar; ac_word=$2
2692echo "$as_me:$LINENO: checking for $ac_word" >&5
2693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2694if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2696else
2697 if test -n "$ac_ct_AR"; then
2698 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2699else
2700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701for as_dir in $PATH
2702do
2703 IFS=$as_save_IFS
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2707 ac_cv_prog_ac_ct_AR="ar"
2708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 break 2
2710 fi
2711done
2712done
2713
2714fi
2715fi
2716ac_ct_AR=$ac_cv_prog_ac_ct_AR
2717if test -n "$ac_ct_AR"; then
2718 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2719echo "${ECHO_T}$ac_ct_AR" >&6
2720else
2721 echo "$as_me:$LINENO: result: no" >&5
2722echo "${ECHO_T}no" >&6
2723fi
b150efee 2724
88386050
NN
2725 AR=$ac_ct_AR
2726else
2727 AR="$ac_cv_prog_AR"
2728fi
b150efee 2729
88386050
NN
2730if test -n "$ac_tool_prefix"; then
2731 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
b150efee 2732set dummy ${ac_tool_prefix}ranlib; ac_word=$2
88386050
NN
2733echo "$as_me:$LINENO: checking for $ac_word" >&5
2734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2735if test "${ac_cv_prog_RANLIB+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
b150efee
FS
2737else
2738 if test -n "$RANLIB"; then
2739 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2740else
88386050
NN
2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742for as_dir in $PATH
2743do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752done
2753done
2754
b150efee
FS
2755fi
2756fi
88386050 2757RANLIB=$ac_cv_prog_RANLIB
b150efee 2758if test -n "$RANLIB"; then
88386050
NN
2759 echo "$as_me:$LINENO: result: $RANLIB" >&5
2760echo "${ECHO_T}$RANLIB" >&6
b150efee 2761else
88386050
NN
2762 echo "$as_me:$LINENO: result: no" >&5
2763echo "${ECHO_T}no" >&6
b150efee
FS
2764fi
2765
88386050 2766fi
b150efee 2767if test -z "$ac_cv_prog_RANLIB"; then
88386050 2768 ac_ct_RANLIB=$RANLIB
b150efee
FS
2769 # Extract the first word of "ranlib", so it can be a program name with args.
2770set dummy ranlib; ac_word=$2
88386050
NN
2771echo "$as_me:$LINENO: checking for $ac_word" >&5
2772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2773if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
b150efee 2775else
88386050
NN
2776 if test -n "$ac_ct_RANLIB"; then
2777 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
bce1b489 2778else
88386050
NN
2779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780for as_dir in $PATH
2781do
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786 ac_cv_prog_ac_ct_RANLIB="ranlib"
2787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 break 2
2789 fi
2790done
2791done
2792
2793 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bce1b489
BE
2794fi
2795fi
88386050
NN
2796ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2797if test -n "$ac_ct_RANLIB"; then
2798 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2799echo "${ECHO_T}$ac_ct_RANLIB" >&6
bce1b489 2800else
88386050
NN
2801 echo "$as_me:$LINENO: result: no" >&5
2802echo "${ECHO_T}no" >&6
bce1b489
BE
2803fi
2804
88386050 2805 RANLIB=$ac_ct_RANLIB
b150efee 2806else
88386050 2807 RANLIB="$ac_cv_prog_RANLIB"
b150efee
FS
2808fi
2809
9c01f395 2810# Find a good install program. We prefer a C program (faster),
bce1b489
BE
2811# so one script is as good as another. But avoid the broken or
2812# incompatible versions:
2813# SysV /etc/install, /usr/sbin/install
2814# SunOS /usr/etc/install
2815# IRIX /sbin/install
2816# AIX /bin/install
88386050 2817# AmigaOS /C/install, which installs bootblocks on floppy discs
bce1b489
BE
2818# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2819# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2820# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
88386050 2821# OS/2's system install, which has a completely different semantic
bce1b489 2822# ./install, which can be erroneously created by make from ./install.sh.
88386050
NN
2823echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2824echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bce1b489 2825if test -z "$INSTALL"; then
88386050
NN
2826if test "${ac_cv_path_install+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
bce1b489 2828else
88386050
NN
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830for as_dir in $PATH
2831do
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 # Account for people who put trailing slashes in PATH elements.
2835case $as_dir/ in
2836 ./ | .// | /cC/* | \
2837 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2838 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2839 /usr/ucb/* ) ;;
2840 *)
2841 # OSF1 and SCO ODT 3.0 have their own names for install.
2842 # Don't use installbsd from OSF since it installs stuff as root
2843 # by default.
2844 for ac_prog in ginstall scoinst install; do
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bce1b489 2847 if test $ac_prog = install &&
88386050 2848 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
bce1b489
BE
2849 # AIX install. It has an incompatible calling convention.
2850 :
88386050
NN
2851 elif test $ac_prog = install &&
2852 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2853 # program-specific install script used by HP pwplus--don't use.
2854 :
bce1b489 2855 else
88386050
NN
2856 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2857 break 3
bce1b489
BE
2858 fi
2859 fi
2860 done
88386050
NN
2861 done
2862 ;;
2863esac
2864done
2865
bce1b489
BE
2866
2867fi
2868 if test "${ac_cv_path_install+set}" = set; then
88386050 2869 INSTALL=$ac_cv_path_install
bce1b489
BE
2870 else
2871 # As a last resort, use the slow shell script. We don't cache a
2872 # path for INSTALL within a source directory, because that will
2873 # break other packages using the cache if that directory is
2874 # removed, or if the path is relative.
88386050 2875 INSTALL=$ac_install_sh
bce1b489
BE
2876 fi
2877fi
88386050
NN
2878echo "$as_me:$LINENO: result: $INSTALL" >&5
2879echo "${ECHO_T}$INSTALL" >&6
bce1b489
BE
2880
2881# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2882# It thinks the first close brace ends the variable substitution.
2883test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2884
88386050 2885test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
da4b1927 2886
bce1b489
BE
2887test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2888
03391b53 2889
3f35ff6f
AP
2890# Enable Win32 DLL on MS Windows - FIXME
2891
2892
03391b53
AO
2893# Check whether --enable-shared or --disable-shared was given.
2894if test "${enable_shared+set}" = set; then
2895 enableval="$enable_shared"
2896 p=${PACKAGE-default}
33456445 2897case $enableval in
03391b53
AO
2898yes) enable_shared=yes ;;
2899no) enable_shared=no ;;
2900*)
2901 enable_shared=no
2902 # Look at the argument we got. We use all the common list separators.
2903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2904 for pkg in $enableval; do
2905 if test "X$pkg" = "X$p"; then
2906 enable_shared=yes
2907 fi
2908 done
2909 IFS="$ac_save_ifs"
2910 ;;
2911esac
2912else
3f35ff6f 2913 enable_shared=yes
88386050 2914fi;
03391b53
AO
2915# Check whether --enable-static or --disable-static was given.
2916if test "${enable_static+set}" = set; then
2917 enableval="$enable_static"
2918 p=${PACKAGE-default}
33456445 2919case $enableval in
03391b53
AO
2920yes) enable_static=yes ;;
2921no) enable_static=no ;;
2922*)
2923 enable_static=no
2924 # Look at the argument we got. We use all the common list separators.
2925 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2926 for pkg in $enableval; do
2927 if test "X$pkg" = "X$p"; then
2928 enable_static=yes
2929 fi
2930 done
2931 IFS="$ac_save_ifs"
2932 ;;
2933esac
2934else
2935 enable_static=yes
88386050 2936fi;
03391b53
AO
2937# Check whether --enable-fast-install or --disable-fast-install was given.
2938if test "${enable_fast_install+set}" = set; then
2939 enableval="$enable_fast_install"
2940 p=${PACKAGE-default}
33456445 2941case $enableval in
03391b53
AO
2942yes) enable_fast_install=yes ;;
2943no) enable_fast_install=no ;;
2944*)
2945 enable_fast_install=no
2946 # Look at the argument we got. We use all the common list separators.
2947 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2948 for pkg in $enableval; do
2949 if test "X$pkg" = "X$p"; then
2950 enable_fast_install=yes
2951 fi
2952 done
2953 IFS="$ac_save_ifs"
2954 ;;
2955esac
2956else
2957 enable_fast_install=yes
88386050 2958fi;
03391b53 2959
03391b53
AO
2960# Check whether --with-gnu-ld or --without-gnu-ld was given.
2961if test "${with_gnu_ld+set}" = set; then
2962 withval="$with_gnu_ld"
2963 test "$withval" = no || with_gnu_ld=yes
2964else
2965 with_gnu_ld=no
88386050 2966fi;
03391b53 2967ac_prog=ld
33456445 2968if test "$GCC" = yes; then
03391b53 2969 # Check if gcc -print-prog-name=ld gives a path.
88386050
NN
2970 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2971echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
03391b53
AO
2972 case $host in
2973 *-*-mingw*)
2974 # gcc leaves a trailing carriage return which upsets mingw
2975 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2976 *)
2977 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2978 esac
33456445 2979 case $ac_prog in
03391b53
AO
2980 # Accept absolute paths.
2981 [\\/]* | [A-Za-z]:[\\/]*)
2982 re_direlt='/[^/][^/]*/\.\./'
2983 # Canonicalize the path of ld
2984 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2985 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2986 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2987 done
2988 test -z "$LD" && LD="$ac_prog"
2989 ;;
2990 "")
2991 # If it fails, then pretend we aren't using GCC.
2992 ac_prog=ld
2993 ;;
2994 *)
2995 # If it is relative, then search for the first ld in PATH.
2996 with_gnu_ld=unknown
2997 ;;
2998 esac
2999elif test "$with_gnu_ld" = yes; then
88386050
NN
3000 echo "$as_me:$LINENO: checking for GNU ld" >&5
3001echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
03391b53 3002else
88386050
NN
3003 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3004echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
03391b53 3005fi
88386050
NN
3006if test "${lt_cv_path_LD+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53
AO
3008else
3009 if test -z "$LD"; then
3010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3011 for ac_dir in $PATH; do
3012 test -z "$ac_dir" && ac_dir=.
3013 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
33456445 3014 lt_cv_path_LD="$ac_dir/$ac_prog"
03391b53
AO
3015 # Check to see if the program is GNU ld. I'd rather use --version,
3016 # but apparently some GNU ld's only accept -v.
3017 # Break only if it was the GNU/non-GNU ld that we prefer.
33456445 3018 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
03391b53
AO
3019 test "$with_gnu_ld" != no && break
3020 else
3021 test "$with_gnu_ld" != yes && break
3022 fi
3023 fi
3024 done
3025 IFS="$ac_save_ifs"
3026else
33456445 3027 lt_cv_path_LD="$LD" # Let the user override the test with a path.
03391b53
AO
3028fi
3029fi
3030
33456445 3031LD="$lt_cv_path_LD"
03391b53 3032if test -n "$LD"; then
88386050
NN
3033 echo "$as_me:$LINENO: result: $LD" >&5
3034echo "${ECHO_T}$LD" >&6
03391b53 3035else
88386050
NN
3036 echo "$as_me:$LINENO: result: no" >&5
3037echo "${ECHO_T}no" >&6
03391b53 3038fi
88386050
NN
3039test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3040echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3041 { (exit 1); exit 1; }; }
3042echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3043echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3044if test "${lt_cv_prog_gnu_ld+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53
AO
3046else
3047 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3048if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
33456445 3049 lt_cv_prog_gnu_ld=yes
03391b53 3050else
33456445 3051 lt_cv_prog_gnu_ld=no
03391b53
AO
3052fi
3053fi
88386050
NN
3054echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3055echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
33456445 3056with_gnu_ld=$lt_cv_prog_gnu_ld
03391b53
AO
3057
3058
88386050
NN
3059echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3060echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3061if test "${lt_cv_ld_reload_flag+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53
AO
3063else
3064 lt_cv_ld_reload_flag='-r'
3065fi
88386050
NN
3066echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3067echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
03391b53
AO
3068reload_flag=$lt_cv_ld_reload_flag
3069test -n "$reload_flag" && reload_flag=" $reload_flag"
3070
88386050
NN
3071echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3072echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3073if test "${lt_cv_path_NM+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53
AO
3075else
3076 if test -n "$NM"; then
3077 # Let the user override the test.
33456445 3078 lt_cv_path_NM="$NM"
03391b53
AO
3079else
3080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3081 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3082 test -z "$ac_dir" && ac_dir=.
3083 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3084 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3085 # Check to see if the nm accepts a BSD-compat flag.
3086 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3087 # nm: unknown option "B" ignored
3088 # Tru64's nm complains that /dev/null is an invalid object file
3089 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
33456445 3090 lt_cv_path_NM="$tmp_nm -B"
03391b53
AO
3091 break
3092 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
33456445 3093 lt_cv_path_NM="$tmp_nm -p"
03391b53
AO
3094 break
3095 else
33456445 3096 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
03391b53
AO
3097 continue # so that we can try to find one that supports BSD flags
3098 fi
3099 fi
3100 done
3101 IFS="$ac_save_ifs"
33456445 3102 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
03391b53
AO
3103fi
3104fi
3105
33456445 3106NM="$lt_cv_path_NM"
88386050
NN
3107echo "$as_me:$LINENO: result: $NM" >&5
3108echo "${ECHO_T}$NM" >&6
03391b53 3109
88386050
NN
3110echo "$as_me:$LINENO: checking whether ln -s works" >&5
3111echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3112LN_S=$as_ln_s
3113if test "$LN_S" = "ln -s"; then
3114 echo "$as_me:$LINENO: result: yes" >&5
3115echo "${ECHO_T}yes" >&6
1fcfac98 3116else
88386050
NN
3117 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3118echo "${ECHO_T}no, using $LN_S" >&6
1fcfac98
NN
3119fi
3120
88386050
NN
3121echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3122echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3123if test "${lt_cv_deplibs_check_method+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53
AO
3125else
3126 lt_cv_file_magic_cmd='$MAGIC_CMD'
3127lt_cv_file_magic_test_file=
3128lt_cv_deplibs_check_method='unknown'
3129# Need to set the preceding variable on all platforms that support
3130# interlibrary dependencies.
3131# 'none' -- dependencies not supported.
3132# `unknown' -- same as none, but documents that we really don't know.
3133# 'pass_all' -- all dependencies passed with no checks.
3134# 'test_compile' -- check by making test program.
3135# 'file_magic [regex]' -- check by looking for files in library path
3136# which responds to the $file_magic_cmd with a given egrep regex.
3137# If you have `file' or equivalent on your system and you're not sure
3138# whether `pass_all' will *always* work, you probably want this one.
3139
33456445
AO
3140case $host_os in
3141aix*)
03391b53
AO
3142 lt_cv_deplibs_check_method=pass_all
3143 ;;
3144
3145beos*)
3146 lt_cv_deplibs_check_method=pass_all
3147 ;;
3148
3149bsdi4*)
33456445
AO
3150 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3151 lt_cv_file_magic_cmd='/usr/bin/file -L'
03391b53
AO
3152 lt_cv_file_magic_test_file=/shlib/libc.so
3153 ;;
3154
3155cygwin* | mingw* |pw32*)
3156 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3157 lt_cv_file_magic_cmd='$OBJDUMP -f'
3158 ;;
3159
33456445 3160darwin* | rhapsody*)
9c01f395 3161 # this will be overwritten by pass_all, but leave it in just in case
33456445
AO
3162 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3163 lt_cv_file_magic_cmd='/usr/bin/file -L'
3164 case "$host_os" in
3165 rhapsody* | darwin1.012)
3166 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3167 ;;
3168 *) # Darwin 1.3 on
3169 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3170 ;;
3171 esac
9c01f395 3172 lt_cv_deplibs_check_method=pass_all
33456445
AO
3173 ;;
3174
6de9cd9a 3175freebsd* | kfreebsd*-gnu)
03391b53 3176 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
33456445 3177 case $host_cpu in
03391b53
AO
3178 i*86 )
3179 # Not sure whether the presence of OpenBSD here was a mistake.
3180 # Let's accept both of them until this is cleared up.
33456445
AO
3181 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3182 lt_cv_file_magic_cmd=/usr/bin/file
03391b53
AO
3183 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3184 ;;
3185 esac
3186 else
3187 lt_cv_deplibs_check_method=pass_all
3188 fi
3189 ;;
3190
3191gnu*)
3192 lt_cv_deplibs_check_method=pass_all
3193 ;;
3194
33456445 3195hpux10.20*|hpux11*)
f5cc59a7
AO
3196 case $host_cpu in
3197 hppa*)
3198 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3199 lt_cv_file_magic_cmd=/usr/bin/file
3200 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3201 ;;
3202 ia64*)
3203 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3204 lt_cv_file_magic_cmd=/usr/bin/file
3205 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3206 ;;
3207 esac
03391b53
AO
3208 ;;
3209
3210irix5* | irix6*)
33456445 3211 case $host_os in
03391b53
AO
3212 irix5*)
3213 # this will be overridden with pass_all, but let us keep it just in case
3214 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3215 ;;
3216 *)
33456445 3217 case $LD in
03391b53
AO
3218 *-32|*"-32 ") libmagic=32-bit;;
3219 *-n32|*"-n32 ") libmagic=N32;;
3220 *-64|*"-64 ") libmagic=64-bit;;
3221 *) libmagic=never-match;;
3222 esac
3223 # this will be overridden with pass_all, but let us keep it just in case
33456445
AO
3224 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3225 ;;
03391b53
AO
3226 esac
3227 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3228 lt_cv_deplibs_check_method=pass_all
3229 ;;
3230
3231# This must be Linux ELF.
3232linux-gnu*)
33456445 3233 case $host_cpu in
c779c42f 3234 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
03391b53
AO
3235 lt_cv_deplibs_check_method=pass_all ;;
3236 *)
3237 # glibc up to 2.1.1 does not perform some relocations on ARM
33456445
AO
3238 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3239 esac
03391b53
AO
3240 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3241 ;;
3242
6de9cd9a 3243netbsd* | knetbsd*-gnu)
33456445
AO
3244 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3245 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
03391b53 3246 else
33456445 3247 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
03391b53
AO
3248 fi
3249 ;;
3250
33456445
AO
3251newsos6)
3252 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3253 lt_cv_file_magic_cmd=/usr/bin/file
3254 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3255 ;;
3256
03391b53
AO
3257osf3* | osf4* | osf5*)
3258 # this will be overridden with pass_all, but let us keep it just in case
3259 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3260 lt_cv_file_magic_test_file=/shlib/libc.so
3261 lt_cv_deplibs_check_method=pass_all
3262 ;;
3263
3264sco3.2v5*)
3265 lt_cv_deplibs_check_method=pass_all
3266 ;;
3267
3268solaris*)
3269 lt_cv_deplibs_check_method=pass_all
3270 lt_cv_file_magic_test_file=/lib/libc.so
3271 ;;
3272
33456445
AO
3273sysv5uw[78]* | sysv4*uw2*)
3274 lt_cv_deplibs_check_method=pass_all
3275 ;;
3276
03391b53 3277sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
33456445 3278 case $host_vendor in
03391b53
AO
3279 ncr)
3280 lt_cv_deplibs_check_method=pass_all
3281 ;;
3282 motorola)
33456445
AO
3283 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]'
3284 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
03391b53
AO
3285 ;;
3286 esac
3287 ;;
3288esac
3289
3290fi
88386050
NN
3291echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3292echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
03391b53
AO
3293file_magic_cmd=$lt_cv_file_magic_cmd
3294deplibs_check_method=$lt_cv_deplibs_check_method
3295
9c01f395
NN
3296
3297
9c01f395 3298
9c01f395 3299
03391b53
AO
3300# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3301
3302# Only perform the check for file, if the check method requires it
33456445 3303case $deplibs_check_method in
03391b53
AO
3304file_magic*)
3305 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
88386050
NN
3306 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3307echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3308if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53 3310else
33456445 3311 case $MAGIC_CMD in
03391b53
AO
3312 /*)
3313 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3314 ;;
3315 ?:/*)
3316 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3317 ;;
3318 *)
3319 ac_save_MAGIC_CMD="$MAGIC_CMD"
3320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3321 ac_dummy="/usr/bin:$PATH"
3322 for ac_dir in $ac_dummy; do
3323 test -z "$ac_dir" && ac_dir=.
3324 if test -f $ac_dir/${ac_tool_prefix}file; then
3325 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3326 if test -n "$file_magic_test_file"; then
33456445 3327 case $deplibs_check_method in
03391b53
AO
3328 "file_magic "*)
3329 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3331 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3332 egrep "$file_magic_regex" > /dev/null; then
3333 :
3334 else
3335 cat <<EOF 1>&2
3336
3337*** Warning: the command libtool uses to detect shared libraries,
3338*** $file_magic_cmd, produces output that libtool cannot recognize.
3339*** The result is that libtool may fail to recognize shared libraries
3340*** as such. This will affect the creation of libtool libraries that
3341*** depend on shared libraries, but programs linked with such libtool
3342*** libraries will work regardless of this problem. Nevertheless, you
3343*** may want to report the problem to your system manager and/or to
3344*** bug-libtool@gnu.org
3345
3346EOF
3347 fi ;;
3348 esac
3349 fi
3350 break
3351 fi
3352 done
3353 IFS="$ac_save_ifs"
3354 MAGIC_CMD="$ac_save_MAGIC_CMD"
3355 ;;
3356esac
3357fi
3358
3359MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3360if test -n "$MAGIC_CMD"; then
88386050
NN
3361 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3362echo "${ECHO_T}$MAGIC_CMD" >&6
03391b53 3363else
88386050
NN
3364 echo "$as_me:$LINENO: result: no" >&5
3365echo "${ECHO_T}no" >&6
03391b53
AO
3366fi
3367
3368if test -z "$lt_cv_path_MAGIC_CMD"; then
3369 if test -n "$ac_tool_prefix"; then
88386050
NN
3370 echo "$as_me:$LINENO: checking for file" >&5
3371echo $ECHO_N "checking for file... $ECHO_C" >&6
3372if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53 3374else
33456445 3375 case $MAGIC_CMD in
03391b53
AO
3376 /*)
3377 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3378 ;;
3379 ?:/*)
3380 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3381 ;;
3382 *)
3383 ac_save_MAGIC_CMD="$MAGIC_CMD"
3384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3385 ac_dummy="/usr/bin:$PATH"
3386 for ac_dir in $ac_dummy; do
3387 test -z "$ac_dir" && ac_dir=.
3388 if test -f $ac_dir/file; then
3389 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3390 if test -n "$file_magic_test_file"; then
33456445 3391 case $deplibs_check_method in
03391b53
AO
3392 "file_magic "*)
3393 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3394 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3395 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3396 egrep "$file_magic_regex" > /dev/null; then
3397 :
3398 else
3399 cat <<EOF 1>&2
3400
3401*** Warning: the command libtool uses to detect shared libraries,
3402*** $file_magic_cmd, produces output that libtool cannot recognize.
3403*** The result is that libtool may fail to recognize shared libraries
3404*** as such. This will affect the creation of libtool libraries that
3405*** depend on shared libraries, but programs linked with such libtool
3406*** libraries will work regardless of this problem. Nevertheless, you
3407*** may want to report the problem to your system manager and/or to
3408*** bug-libtool@gnu.org
3409
3410EOF
3411 fi ;;
3412 esac
3413 fi
3414 break
3415 fi
3416 done
3417 IFS="$ac_save_ifs"
3418 MAGIC_CMD="$ac_save_MAGIC_CMD"
3419 ;;
3420esac
3421fi
3422
3423MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3424if test -n "$MAGIC_CMD"; then
88386050
NN
3425 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3426echo "${ECHO_T}$MAGIC_CMD" >&6
03391b53 3427else
88386050
NN
3428 echo "$as_me:$LINENO: result: no" >&5
3429echo "${ECHO_T}no" >&6
03391b53
AO
3430fi
3431
3432 else
3433 MAGIC_CMD=:
3434 fi
3435fi
3436
3437 fi
3438 ;;
3439esac
3440
88386050
NN
3441if test -n "$ac_tool_prefix"; then
3442 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
03391b53 3443set dummy ${ac_tool_prefix}ranlib; ac_word=$2
88386050
NN
3444echo "$as_me:$LINENO: checking for $ac_word" >&5
3445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3446if test "${ac_cv_prog_RANLIB+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53
AO
3448else
3449 if test -n "$RANLIB"; then
3450 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3451else
88386050
NN
3452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453for as_dir in $PATH
3454do
3455 IFS=$as_save_IFS
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 break 2
3462 fi
3463done
3464done
3465
03391b53
AO
3466fi
3467fi
88386050 3468RANLIB=$ac_cv_prog_RANLIB
03391b53 3469if test -n "$RANLIB"; then
88386050
NN
3470 echo "$as_me:$LINENO: result: $RANLIB" >&5
3471echo "${ECHO_T}$RANLIB" >&6
03391b53 3472else
88386050
NN
3473 echo "$as_me:$LINENO: result: no" >&5
3474echo "${ECHO_T}no" >&6
03391b53
AO
3475fi
3476
88386050 3477fi
03391b53 3478if test -z "$ac_cv_prog_RANLIB"; then
88386050 3479 ac_ct_RANLIB=$RANLIB
03391b53
AO
3480 # Extract the first word of "ranlib", so it can be a program name with args.
3481set dummy ranlib; ac_word=$2
88386050
NN
3482echo "$as_me:$LINENO: checking for $ac_word" >&5
3483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3484if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53 3486else
88386050
NN
3487 if test -n "$ac_ct_RANLIB"; then
3488 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
03391b53 3489else
88386050
NN
3490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491for as_dir in $PATH
3492do
3493 IFS=$as_save_IFS
3494 test -z "$as_dir" && as_dir=.
3495 for ac_exec_ext in '' $ac_executable_extensions; do
3496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3497 ac_cv_prog_ac_ct_RANLIB="ranlib"
3498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 break 2
3500 fi
3501done
3502done
3503
3504 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
03391b53
AO
3505fi
3506fi
88386050
NN
3507ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3508if test -n "$ac_ct_RANLIB"; then
3509 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3510echo "${ECHO_T}$ac_ct_RANLIB" >&6
03391b53 3511else
88386050
NN
3512 echo "$as_me:$LINENO: result: no" >&5
3513echo "${ECHO_T}no" >&6
03391b53
AO
3514fi
3515
88386050 3516 RANLIB=$ac_ct_RANLIB
03391b53 3517else
88386050 3518 RANLIB="$ac_cv_prog_RANLIB"
03391b53
AO
3519fi
3520
88386050
NN
3521if test -n "$ac_tool_prefix"; then
3522 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
03391b53 3523set dummy ${ac_tool_prefix}strip; ac_word=$2
88386050
NN
3524echo "$as_me:$LINENO: checking for $ac_word" >&5
3525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3526if test "${ac_cv_prog_STRIP+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53
AO
3528else
3529 if test -n "$STRIP"; then
3530 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3531else
88386050
NN
3532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533for as_dir in $PATH
3534do
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3539 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 break 2
3542 fi
3543done
3544done
3545
03391b53
AO
3546fi
3547fi
88386050 3548STRIP=$ac_cv_prog_STRIP
03391b53 3549if test -n "$STRIP"; then
88386050
NN
3550 echo "$as_me:$LINENO: result: $STRIP" >&5
3551echo "${ECHO_T}$STRIP" >&6
03391b53 3552else
88386050
NN
3553 echo "$as_me:$LINENO: result: no" >&5
3554echo "${ECHO_T}no" >&6
03391b53
AO
3555fi
3556
88386050 3557fi
03391b53 3558if test -z "$ac_cv_prog_STRIP"; then
88386050 3559 ac_ct_STRIP=$STRIP
03391b53
AO
3560 # Extract the first word of "strip", so it can be a program name with args.
3561set dummy strip; ac_word=$2
88386050
NN
3562echo "$as_me:$LINENO: checking for $ac_word" >&5
3563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3564if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53 3566else
88386050
NN
3567 if test -n "$ac_ct_STRIP"; then
3568 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
03391b53 3569else
88386050
NN
3570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571for as_dir in $PATH
3572do
3573 IFS=$as_save_IFS
3574 test -z "$as_dir" && as_dir=.
3575 for ac_exec_ext in '' $ac_executable_extensions; do
3576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3577 ac_cv_prog_ac_ct_STRIP="strip"
3578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 break 2
3580 fi
3581done
3582done
3583
3584 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
03391b53
AO
3585fi
3586fi
88386050
NN
3587ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3588if test -n "$ac_ct_STRIP"; then
3589 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3590echo "${ECHO_T}$ac_ct_STRIP" >&6
03391b53 3591else
88386050
NN
3592 echo "$as_me:$LINENO: result: no" >&5
3593echo "${ECHO_T}no" >&6
03391b53
AO
3594fi
3595
88386050 3596 STRIP=$ac_ct_STRIP
03391b53 3597else
88386050 3598 STRIP="$ac_cv_prog_STRIP"
03391b53
AO
3599fi
3600
3601
3602# Check for any special flags to pass to ltconfig.
3603libtool_flags="--cache-file=$cache_file"
3604test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3605test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3606test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
33456445
AO
3607test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3608test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
03391b53 3609
88386050 3610
03391b53
AO
3611# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3612if test "${enable_libtool_lock+set}" = set; then
3613 enableval="$enable_libtool_lock"
03391b53 3614
88386050 3615fi;
03391b53
AO
3616test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3617test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3618
88386050 3619
03391b53
AO
3620# Check whether --with-pic or --without-pic was given.
3621if test "${with_pic+set}" = set; then
3622 withval="$with_pic"
3623 pic_mode="$withval"
3624else
3625 pic_mode=default
88386050 3626fi;
03391b53
AO
3627test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3628test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3629
3630# Some flags need to be propagated to the compiler or linker for good
3631# libtool support.
33456445 3632case $host in
03391b53
AO
3633*-*-irix6*)
3634 # Find out which ABI we are using.
1506eac1 3635 echo '#line 3635 "configure"' > conftest.$ac_ext
88386050
NN
3636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3637 (eval $ac_compile) 2>&5
3638 ac_status=$?
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; then
3343fdd2
AO
3641 if test "$lt_cv_prog_gnu_ld" = yes; then
3642 case `/usr/bin/file conftest.$ac_objext` in
3643 *32-bit*)
3644 LD="${LD-ld} -melf32bsmip"
3645 ;;
3646 *N32*)
3647 LD="${LD-ld} -melf32bmipn32"
3648 ;;
3649 *64-bit*)
3650 LD="${LD-ld} -melf64bmip"
3651 ;;
3652 esac
3653 else
33456445 3654 case `/usr/bin/file conftest.$ac_objext` in
03391b53
AO
3655 *32-bit*)
3656 LD="${LD-ld} -32"
3657 ;;
3658 *N32*)
3659 LD="${LD-ld} -n32"
3660 ;;
3661 *64-bit*)
3662 LD="${LD-ld} -64"
3663 ;;
3664 esac
3343fdd2 3665 fi
03391b53
AO
3666 fi
3667 rm -rf conftest*
3668 ;;
3669
f5cc59a7
AO
3670ia64-*-hpux*)
3671 # Find out which ABI we are using.
3672 echo 'int i;' > conftest.$ac_ext
88386050
NN
3673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3674 (eval $ac_compile) 2>&5
3675 ac_status=$?
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; then
f5cc59a7
AO
3678 case "`/usr/bin/file conftest.o`" in
3679 *ELF-32*)
3680 HPUX_IA64_MODE="32"
3681 ;;
3682 *ELF-64*)
3683 HPUX_IA64_MODE="64"
3684 ;;
3685 esac
3686 fi
3687 rm -rf conftest*
3688 ;;
3689
c5e3e1ed
AO
3690x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3691 # Find out which ABI we are using.
3692 echo 'int i;' > conftest.$ac_ext
88386050
NN
3693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694 (eval $ac_compile) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; then
c5e3e1ed
AO
3698 case "`/usr/bin/file conftest.o`" in
3699 *32-bit*)
3700 case $host in
3701 x86_64-*linux*)
3702 LD="${LD-ld} -m elf_i386"
3703 ;;
e517f636 3704 ppc64-*linux*|powerpc64-*linux*)
c5e3e1ed
AO
3705 LD="${LD-ld} -m elf32ppclinux"
3706 ;;
3707 s390x-*linux*)
3708 LD="${LD-ld} -m elf_s390"
3709 ;;
3710 sparc64-*linux*)
3711 LD="${LD-ld} -m elf32_sparc"
3712 ;;
3713 esac
3714 ;;
3715 *64-bit*)
3716 case $host in
3717 x86_64-*linux*)
3718 LD="${LD-ld} -m elf_x86_64"
3719 ;;
3720 ppc*-*linux*|powerpc*-*linux*)
3721 LD="${LD-ld} -m elf64ppc"
3722 ;;
3723 s390*-*linux*)
3724 LD="${LD-ld} -m elf64_s390"
3725 ;;
3726 sparc*-*linux*)
3727 LD="${LD-ld} -m elf64_sparc"
3728 ;;
3729 esac
3730 ;;
3731 esac
3732 fi
3733 rm -rf conftest*
3734 ;;
3735
03391b53
AO
3736*-*-sco3.2v5*)
3737 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3738 SAVE_CFLAGS="$CFLAGS"
3739 CFLAGS="$CFLAGS -belf"
88386050
NN
3740 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3741echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3742if test "${lt_cv_cc_needs_belf+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53 3744else
03391b53 3745
03391b53 3746
88386050
NN
3747 ac_ext=c
3748ac_cpp='$CPP $CPPFLAGS'
3749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752
3753 if test x$gcc_no_link = xyes; then
3754 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3755echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3756 { (exit 1); exit 1; }; }
3757fi
3758cat >conftest.$ac_ext <<_ACEOF
3759/* confdefs.h. */
3760_ACEOF
3761cat confdefs.h >>conftest.$ac_ext
3762cat >>conftest.$ac_ext <<_ACEOF
3763/* end confdefs.h. */
3764
3765int
3766main ()
3767{
3768
3769 ;
3770 return 0;
3771}
3772_ACEOF
3773rm -f conftest.$ac_objext conftest$ac_exeext
3774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3775 (eval $ac_link) 2>conftest.er1
3776 ac_status=$?
3777 grep -v '^ *+' conftest.er1 >conftest.err
3778 rm -f conftest.er1
3779 cat conftest.err >&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } &&
1506eac1 3782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
88386050
NN
3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 (eval $ac_try) 2>&5
3785 ac_status=$?
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; } &&
3788 { ac_try='test -s conftest$ac_exeext'
3789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 (eval $ac_try) 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; }; then
03391b53
AO
3794 lt_cv_cc_needs_belf=yes
3795else
88386050
NN
3796 echo "$as_me: failed program was:" >&5
3797sed 's/^/| /' conftest.$ac_ext >&5
3798
3799lt_cv_cc_needs_belf=no
03391b53 3800fi
88386050
NN
3801rm -f conftest.err conftest.$ac_objext \
3802 conftest$ac_exeext conftest.$ac_ext
03391b53 3803 ac_ext=c
03391b53 3804ac_cpp='$CPP $CPPFLAGS'
88386050
NN
3805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3807ac_compiler_gnu=$ac_cv_c_compiler_gnu
03391b53
AO
3808
3809fi
88386050
NN
3810echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3811echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
03391b53
AO
3812 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3813 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3814 CFLAGS="$SAVE_CFLAGS"
3815 fi
3816 ;;
3817
b150efee 3818
b150efee
FS
3819esac
3820
3821
3822# Save cache, so that ltconfig can load it
88386050 3823cat >confcache <<\_ACEOF
b150efee
FS
3824# This file is a shell script that caches the results of configure
3825# tests run on this system so they can be shared between configure
88386050
NN
3826# scripts and configure runs, see configure's option --config-cache.
3827# It is not useful on other systems. If it contains results you don't
3828# want to keep, you may remove or edit it.
b150efee 3829#
88386050
NN
3830# config.status only pays attention to the cache file if you give it
3831# the --recheck option to rerun configure.
b150efee 3832#
88386050
NN
3833# `ac_cv_env_foo' variables (set or unset) will be overridden when
3834# loading this file, other *unset* `ac_cv_foo' will be assigned the
3835# following values.
3836
3837_ACEOF
3838
b150efee
FS
3839# The following way of writing the cache mishandles newlines in values,
3840# but we know of no workaround that is simple, portable, and efficient.
3841# So, don't put newlines in cache variables' values.
3842# Ultrix sh set writes to stderr and can't be redirected directly,
3843# and sets the high bit in the cache file unless we assign to the vars.
88386050
NN
3844{
3845 (set) 2>&1 |
3846 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3847 *ac_space=\ *)
3848 # `set' does not quote correctly, so add quotes (double-quote
3849 # substitution turns \\\\ into \\, and sed turns \\ into \).
3850 sed -n \
3851 "s/'/'\\\\''/g;
3852 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3853 ;;
3854 *)
3855 # `set' quotes correctly as required by POSIX, so do not add quotes.
3856 sed -n \
3857 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3858 ;;
3859 esac;
3860} |
3861 sed '
3862 t clear
3863 : clear
3864 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3865 t end
3866 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3867 : end' >>confcache
3868if diff $cache_file confcache >/dev/null 2>&1; then :; else
b150efee 3869 if test -w $cache_file; then
88386050
NN
3870 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3871 cat confcache >$cache_file
b150efee
FS
3872 else
3873 echo "not updating unwritable cache $cache_file"
3874 fi
3875fi
3876rm -f confcache
3877
b150efee
FS
3878# Actually configure libtool. ac_aux_dir is where install-sh is found.
3879AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3880MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3881LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3882AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3883objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3884deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3885${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3886$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
88386050
NN
3887|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3888echo "$as_me: error: libtool configure failed" >&2;}
3889 { (exit 1); exit 1; }; }
b150efee
FS
3890
3891# Reload cache, that may have been modified by ltconfig
3892if test -r "$cache_file"; then
88386050
NN
3893 # Some versions of bash will fail to source /dev/null (special
3894 # files actually), so we avoid doing that.
3895 if test -f "$cache_file"; then
3896 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3897echo "$as_me: loading cache $cache_file" >&6;}
3898 case $cache_file in
3899 [\\/]* | ?:[\\/]* ) . $cache_file;;
3900 *) . ./$cache_file;;
3901 esac
3902 fi
b150efee 3903else
88386050
NN
3904 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3905echo "$as_me: creating cache $cache_file" >&6;}
3906 >$cache_file
b150efee
FS
3907fi
3908
3909
3910# This can be used to rebuild libtool when needed
3911LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3912
3913# Always use our own libtool.
3914LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3915
3916# Redirect the config.log output again, so that the ltconfig log is not
3917# clobbered by the next message.
3918exec 5>>./config.log
3919
b150efee 3920
b150efee 3921
88386050
NN
3922
3923
3924
3925
3926echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3927echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3928set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3929if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
b150efee 3931else
88386050 3932 cat >conftest.make <<\_ACEOF
b150efee 3933all:
88386050
NN
3934 @echo 'ac_maketemp="$(MAKE)"'
3935_ACEOF
b150efee 3936# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
88386050 3937eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
b150efee
FS
3938if test -n "$ac_maketemp"; then
3939 eval ac_cv_prog_make_${ac_make}_set=yes
3940else
3941 eval ac_cv_prog_make_${ac_make}_set=no
3942fi
88386050 3943rm -f conftest.make
b150efee
FS
3944fi
3945if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
88386050
NN
3946 echo "$as_me:$LINENO: result: yes" >&5
3947echo "${ECHO_T}yes" >&6
b150efee
FS
3948 SET_MAKE=
3949else
88386050
NN
3950 echo "$as_me:$LINENO: result: no" >&5
3951echo "${ECHO_T}no" >&6
b150efee
FS
3952 SET_MAKE="MAKE=${MAKE-make}"
3953fi
3954
3955
252dde64
NN
3956# -------
3957# Headers
3958# -------
3959
b150efee 3960# Sanity check for the cross-compilation case:
88386050
NN
3961ac_ext=c
3962ac_cpp='$CPP $CPPFLAGS'
3963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965ac_compiler_gnu=$ac_cv_c_compiler_gnu
3966echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3967echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
b150efee
FS
3968# On Suns, sometimes $CPP names a directory.
3969if test -n "$CPP" && test -d "$CPP"; then
3970 CPP=
3971fi
3972if test -z "$CPP"; then
88386050
NN
3973 if test "${ac_cv_prog_CPP+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3975else
3976 # Double quotes because CPP needs to be expanded
3977 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3978 do
3979 ac_preproc_ok=false
3980for ac_c_preproc_warn_flag in '' yes
3981do
3982 # Use a header file that comes with gcc, so configuring glibc
3983 # with a fresh cross-compiler works.
3984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3985 # <limits.h> exists even on freestanding compilers.
b150efee 3986 # On the NeXT, cc -E runs the code through the compiler's parser,
88386050
NN
3987 # not just through cpp. "Syntax error" is here to catch this case.
3988 cat >conftest.$ac_ext <<_ACEOF
3989/* confdefs.h. */
3990_ACEOF
3991cat confdefs.h >>conftest.$ac_ext
3992cat >>conftest.$ac_ext <<_ACEOF
3993/* end confdefs.h. */
3994#ifdef __STDC__
3995# include <limits.h>
3996#else
3997# include <assert.h>
3998#endif
3999 Syntax error
4000_ACEOF
4001if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4003 ac_status=$?
4004 grep -v '^ *+' conftest.er1 >conftest.err
4005 rm -f conftest.er1
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } >/dev/null; then
4009 if test -s conftest.err; then
4010 ac_cpp_err=$ac_c_preproc_warn_flag
4011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4012 else
4013 ac_cpp_err=
4014 fi
b150efee 4015else
88386050
NN
4016 ac_cpp_err=yes
4017fi
4018if test -z "$ac_cpp_err"; then
b150efee
FS
4019 :
4020else
88386050
NN
4021 echo "$as_me: failed program was:" >&5
4022sed 's/^/| /' conftest.$ac_ext >&5
4023
4024 # Broken: fails on valid input.
4025continue
4026fi
4027rm -f conftest.err conftest.$ac_ext
4028
4029 # OK, works on sane cases. Now check whether non-existent headers
4030 # can be detected and how.
4031 cat >conftest.$ac_ext <<_ACEOF
4032/* confdefs.h. */
4033_ACEOF
4034cat confdefs.h >>conftest.$ac_ext
4035cat >>conftest.$ac_ext <<_ACEOF
4036/* end confdefs.h. */
4037#include <ac_nonexistent.h>
4038_ACEOF
4039if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4041 ac_status=$?
4042 grep -v '^ *+' conftest.er1 >conftest.err
4043 rm -f conftest.er1
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } >/dev/null; then
4047 if test -s conftest.err; then
4048 ac_cpp_err=$ac_c_preproc_warn_flag
4049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4050 else
4051 ac_cpp_err=
4052 fi
b150efee 4053else
88386050 4054 ac_cpp_err=yes
b150efee 4055fi
88386050
NN
4056if test -z "$ac_cpp_err"; then
4057 # Broken: success on invalid input.
4058continue
4059else
4060 echo "$as_me: failed program was:" >&5
4061sed 's/^/| /' conftest.$ac_ext >&5
4062
4063 # Passes both tests.
4064ac_preproc_ok=:
4065break
b150efee 4066fi
88386050
NN
4067rm -f conftest.err conftest.$ac_ext
4068
4069done
4070# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4071rm -f conftest.err conftest.$ac_ext
4072if $ac_preproc_ok; then
4073 break
b150efee 4074fi
88386050
NN
4075
4076 done
4077 ac_cv_prog_CPP=$CPP
4078
b150efee 4079fi
88386050 4080 CPP=$ac_cv_prog_CPP
b150efee 4081else
88386050 4082 ac_cv_prog_CPP=$CPP
b150efee 4083fi
88386050
NN
4084echo "$as_me:$LINENO: result: $CPP" >&5
4085echo "${ECHO_T}$CPP" >&6
4086ac_preproc_ok=false
4087for ac_c_preproc_warn_flag in '' yes
4088do
4089 # Use a header file that comes with gcc, so configuring glibc
4090 # with a fresh cross-compiler works.
4091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4092 # <limits.h> exists even on freestanding compilers.
4093 # On the NeXT, cc -E runs the code through the compiler's parser,
4094 # not just through cpp. "Syntax error" is here to catch this case.
4095 cat >conftest.$ac_ext <<_ACEOF
4096/* confdefs.h. */
4097_ACEOF
4098cat confdefs.h >>conftest.$ac_ext
4099cat >>conftest.$ac_ext <<_ACEOF
4100/* end confdefs.h. */
4101#ifdef __STDC__
4102# include <limits.h>
4103#else
4104# include <assert.h>
4105#endif
4106 Syntax error
4107_ACEOF
4108if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4110 ac_status=$?
4111 grep -v '^ *+' conftest.er1 >conftest.err
4112 rm -f conftest.er1
4113 cat conftest.err >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } >/dev/null; then
4116 if test -s conftest.err; then
4117 ac_cpp_err=$ac_c_preproc_warn_flag
4118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4119 else
4120 ac_cpp_err=
4121 fi
b150efee 4122else
88386050
NN
4123 ac_cpp_err=yes
4124fi
4125if test -z "$ac_cpp_err"; then
4126 :
b150efee 4127else
88386050
NN
4128 echo "$as_me: failed program was:" >&5
4129sed 's/^/| /' conftest.$ac_ext >&5
4130
4131 # Broken: fails on valid input.
4132continue
4133fi
4134rm -f conftest.err conftest.$ac_ext
4135
4136 # OK, works on sane cases. Now check whether non-existent headers
4137 # can be detected and how.
4138 cat >conftest.$ac_ext <<_ACEOF
4139/* confdefs.h. */
4140_ACEOF
4141cat confdefs.h >>conftest.$ac_ext
4142cat >>conftest.$ac_ext <<_ACEOF
4143/* end confdefs.h. */
4144#include <ac_nonexistent.h>
4145_ACEOF
4146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4148 ac_status=$?
4149 grep -v '^ *+' conftest.er1 >conftest.err
4150 rm -f conftest.er1
4151 cat conftest.err >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } >/dev/null; then
4154 if test -s conftest.err; then
4155 ac_cpp_err=$ac_c_preproc_warn_flag
4156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4157 else
4158 ac_cpp_err=
4159 fi
4160else
4161 ac_cpp_err=yes
b150efee 4162fi
88386050
NN
4163if test -z "$ac_cpp_err"; then
4164 # Broken: success on invalid input.
4165continue
4166else
4167 echo "$as_me: failed program was:" >&5
4168sed 's/^/| /' conftest.$ac_ext >&5
4169
4170 # Passes both tests.
4171ac_preproc_ok=:
4172break
b150efee 4173fi
88386050
NN
4174rm -f conftest.err conftest.$ac_ext
4175
4176done
4177# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4178rm -f conftest.err conftest.$ac_ext
4179if $ac_preproc_ok; then
b150efee
FS
4180 :
4181else
88386050
NN
4182 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4183See \`config.log' for more details." >&5
4184echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4185See \`config.log' for more details." >&2;}
4186 { (exit 1); exit 1; }; }
4187fi
4188
4189ac_ext=c
4190ac_cpp='$CPP $CPPFLAGS'
4191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194
4195
4196echo "$as_me:$LINENO: checking for egrep" >&5
4197echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4198if test "${ac_cv_prog_egrep+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200else
4201 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4202 then ac_cv_prog_egrep='grep -E'
4203 else ac_cv_prog_egrep='egrep'
4204 fi
b150efee 4205fi
88386050
NN
4206echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4207echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4208 EGREP=$ac_cv_prog_egrep
b150efee
FS
4209
4210
88386050
NN
4211echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4212echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4213if test "${ac_cv_header_stdc+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
b150efee 4215else
88386050
NN
4216 cat >conftest.$ac_ext <<_ACEOF
4217/* confdefs.h. */
4218_ACEOF
4219cat confdefs.h >>conftest.$ac_ext
4220cat >>conftest.$ac_ext <<_ACEOF
4221/* end confdefs.h. */
b150efee
FS
4222#include <stdlib.h>
4223#include <stdarg.h>
4224#include <string.h>
4225#include <float.h>
88386050
NN
4226
4227int
4228main ()
4229{
4230
4231 ;
4232 return 0;
4233}
4234_ACEOF
4235rm -f conftest.$ac_objext
4236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4237 (eval $ac_compile) 2>conftest.er1
4238 ac_status=$?
4239 grep -v '^ *+' conftest.er1 >conftest.err
4240 rm -f conftest.er1
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } &&
1506eac1 4244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
88386050
NN
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246 (eval $ac_try) 2>&5
4247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; } &&
4250 { ac_try='test -s conftest.$ac_objext'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 (eval $ac_try) 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; }; then
b150efee
FS
4256 ac_cv_header_stdc=yes
4257else
88386050
NN
4258 echo "$as_me: failed program was:" >&5
4259sed 's/^/| /' conftest.$ac_ext >&5
4260
4261ac_cv_header_stdc=no
b150efee 4262fi
88386050 4263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b150efee
FS
4264
4265if test $ac_cv_header_stdc = yes; then
4266 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
88386050
NN
4267 cat >conftest.$ac_ext <<_ACEOF
4268/* confdefs.h. */
4269_ACEOF
4270cat confdefs.h >>conftest.$ac_ext
4271cat >>conftest.$ac_ext <<_ACEOF
4272/* end confdefs.h. */
b150efee 4273#include <string.h>
88386050
NN
4274
4275_ACEOF
b150efee 4276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
88386050 4277 $EGREP "memchr" >/dev/null 2>&1; then
b150efee 4278 :
03391b53 4279else
b150efee 4280 ac_cv_header_stdc=no
03391b53 4281fi
b150efee
FS
4282rm -f conftest*
4283
03391b53
AO
4284fi
4285
b150efee
FS
4286if test $ac_cv_header_stdc = yes; then
4287 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
88386050
NN
4288 cat >conftest.$ac_ext <<_ACEOF
4289/* confdefs.h. */
4290_ACEOF
4291cat confdefs.h >>conftest.$ac_ext
4292cat >>conftest.$ac_ext <<_ACEOF
4293/* end confdefs.h. */
b150efee 4294#include <stdlib.h>
88386050
NN
4295
4296_ACEOF
b150efee 4297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
88386050 4298 $EGREP "free" >/dev/null 2>&1; then
b150efee 4299 :
03391b53 4300else
b150efee 4301 ac_cv_header_stdc=no
03391b53 4302fi
b150efee 4303rm -f conftest*
03391b53 4304
b150efee 4305fi
03391b53 4306
b150efee
FS
4307if test $ac_cv_header_stdc = yes; then
4308 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
88386050 4309 if test "$cross_compiling" = yes; then
b150efee 4310 :
03391b53 4311else
88386050
NN
4312 cat >conftest.$ac_ext <<_ACEOF
4313/* confdefs.h. */
4314_ACEOF
4315cat confdefs.h >>conftest.$ac_ext
4316cat >>conftest.$ac_ext <<_ACEOF
4317/* end confdefs.h. */
b150efee 4318#include <ctype.h>
88386050
NN
4319#if ((' ' & 0x0FF) == 0x020)
4320# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4321# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4322#else
4323# define ISLOWER(c) \
4324 (('a' <= (c) && (c) <= 'i') \
4325 || ('j' <= (c) && (c) <= 'r') \
4326 || ('s' <= (c) && (c) <= 'z'))
4327# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4328#endif
03391b53 4329
88386050
NN
4330#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4331int
4332main ()
4333{
4334 int i;
4335 for (i = 0; i < 256; i++)
4336 if (XOR (islower (i), ISLOWER (i))
4337 || toupper (i) != TOUPPER (i))
4338 exit(2);
4339 exit (0);
4340}
4341_ACEOF
4342rm -f conftest$ac_exeext
4343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4344 (eval $ac_link) 2>&5
4345 ac_status=$?
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349 (eval $ac_try) 2>&5
4350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); }; }; then
b150efee 4353 :
03391b53 4354else
88386050
NN
4355 echo "$as_me: program exited with status $ac_status" >&5
4356echo "$as_me: failed program was:" >&5
4357sed 's/^/| /' conftest.$ac_ext >&5
4358
4359( exit $ac_status )
4360ac_cv_header_stdc=no
03391b53 4361fi
88386050 4362rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
03391b53 4363fi
b150efee
FS
4364fi
4365fi
88386050
NN
4366echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4367echo "${ECHO_T}$ac_cv_header_stdc" >&6
b150efee 4368if test $ac_cv_header_stdc = yes; then
88386050
NN
4369
4370cat >>confdefs.h <<\_ACEOF
b150efee 4371#define STDC_HEADERS 1
88386050 4372_ACEOF
b150efee
FS
4373
4374fi
4375
88386050 4376# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b150efee 4377
88386050
NN
4378
4379
4380
4381
4382
4383
4384
4385
4386for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4387 inttypes.h stdint.h unistd.h
4388do
4389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4390echo "$as_me:$LINENO: checking for $ac_header" >&5
4391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4392if eval "test \"\${$as_ac_Header+set}\" = set"; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4394else
4395 cat >conftest.$ac_ext <<_ACEOF
4396/* confdefs.h. */
4397_ACEOF
4398cat confdefs.h >>conftest.$ac_ext
4399cat >>conftest.$ac_ext <<_ACEOF
4400/* end confdefs.h. */
4401$ac_includes_default
4402
4403#include <$ac_header>
4404_ACEOF
4405rm -f conftest.$ac_objext
4406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4407 (eval $ac_compile) 2>conftest.er1
4408 ac_status=$?
4409 grep -v '^ *+' conftest.er1 >conftest.err
4410 rm -f conftest.er1
4411 cat conftest.err >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
1506eac1 4414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
88386050
NN
4415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 (eval $ac_try) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; } &&
4420 { ac_try='test -s conftest.$ac_objext'
4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422 (eval $ac_try) 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
4426 eval "$as_ac_Header=yes"
4427else
4428 echo "$as_me: failed program was:" >&5
4429sed 's/^/| /' conftest.$ac_ext >&5
4430
4431eval "$as_ac_Header=no"
4432fi
4433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4434fi
4435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4436echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4437if test `eval echo '${'$as_ac_Header'}'` = yes; then
4438 cat >>confdefs.h <<_ACEOF
4439#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4440_ACEOF
4441
4442fi
4443
4444done
4445
4446
4447if test "${ac_cv_header_stdio_h+set}" = set; then
4448 echo "$as_me:$LINENO: checking for stdio.h" >&5
4449echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
4450if test "${ac_cv_header_stdio_h+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4452fi
4453echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
4454echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
4455else
4456 # Is the header compilable?
4457echo "$as_me:$LINENO: checking stdio.h usability" >&5
4458echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
4459cat >conftest.$ac_ext <<_ACEOF
4460/* confdefs.h. */
4461_ACEOF
4462cat confdefs.h >>conftest.$ac_ext
4463cat >>conftest.$ac_ext <<_ACEOF
4464/* end confdefs.h. */
4465$ac_includes_default
4466#include <stdio.h>
4467_ACEOF
4468rm -f conftest.$ac_objext
4469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4470 (eval $ac_compile) 2>conftest.er1
4471 ac_status=$?
4472 grep -v '^ *+' conftest.er1 >conftest.err
4473 rm -f conftest.er1
4474 cat conftest.err >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } &&
1506eac1 4477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
88386050
NN
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 (eval $ac_try) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; } &&
4483 { ac_try='test -s conftest.$ac_objext'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 (eval $ac_try) 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4489 ac_header_compiler=yes
4490else
4491 echo "$as_me: failed program was:" >&5
4492sed 's/^/| /' conftest.$ac_ext >&5
4493
4494ac_header_compiler=no
4495fi
4496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4497echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4498echo "${ECHO_T}$ac_header_compiler" >&6
4499
4500# Is the header present?
4501echo "$as_me:$LINENO: checking stdio.h presence" >&5
4502echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
4503cat >conftest.$ac_ext <<_ACEOF
4504/* confdefs.h. */
4505_ACEOF
4506cat confdefs.h >>conftest.$ac_ext
4507cat >>conftest.$ac_ext <<_ACEOF
4508/* end confdefs.h. */
4509#include <stdio.h>
4510_ACEOF
4511if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4513 ac_status=$?
4514 grep -v '^ *+' conftest.er1 >conftest.err
4515 rm -f conftest.er1
4516 cat conftest.err >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } >/dev/null; then
4519 if test -s conftest.err; then
4520 ac_cpp_err=$ac_c_preproc_warn_flag
4521 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4522 else
4523 ac_cpp_err=
4524 fi
03391b53 4525else
88386050
NN
4526 ac_cpp_err=yes
4527fi
4528if test -z "$ac_cpp_err"; then
4529 ac_header_preproc=yes
4530else
4531 echo "$as_me: failed program was:" >&5
4532sed 's/^/| /' conftest.$ac_ext >&5
4533
4534 ac_header_preproc=no
4535fi
4536rm -f conftest.err conftest.$ac_ext
4537echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4538echo "${ECHO_T}$ac_header_preproc" >&6
4539
4540# So? What about this header?
4541case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4542 yes:no: )
4543 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
4544echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4545 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
4546echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
4547 ac_header_preproc=yes
4548 ;;
4549 no:yes:* )
4550 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
4551echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
4552 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
4553echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
4554 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
4555echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
4556 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
4557echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
4558 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
4559echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
4560 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
4561echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
4562 (
4563 cat <<\_ASBOX
684c64bf
AP
4564## ----------------------------------------- ##
4565## Report this to the package-unused lists. ##
4566## ----------------------------------------- ##
88386050
NN
4567_ASBOX
4568 ) |
4569 sed "s/^/$as_me: WARNING: /" >&2
4570 ;;
4571esac
4572echo "$as_me:$LINENO: checking for stdio.h" >&5
4573echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
4574if test "${ac_cv_header_stdio_h+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4576else
4577 ac_cv_header_stdio_h=$ac_header_preproc
4578fi
4579echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
4580echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
4581
4582fi
4583if test $ac_cv_header_stdio_h = yes; then
4584 :
4585else
4586 { { echo "$as_me:$LINENO: error: Can't find stdio.h.
4587You must have a usable C system for the target already installed, at least
4588including headers and, preferably, the library, before you can configure
4589the Objective C runtime system. If necessary, install gcc now with
4590\`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&5
4591echo "$as_me: error: Can't find stdio.h.
4592You must have a usable C system for the target already installed, at least
4593including headers and, preferably, the library, before you can configure
4594the Objective C runtime system. If necessary, install gcc now with
4595\`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&2;}
4596 { (exit 1); exit 1; }; }
4597fi
4598
4599
4600
4601echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4602echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4603if test "${ac_cv_header_stdc+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4605else
4606 cat >conftest.$ac_ext <<_ACEOF
4607/* confdefs.h. */
4608_ACEOF
4609cat confdefs.h >>conftest.$ac_ext
4610cat >>conftest.$ac_ext <<_ACEOF
4611/* end confdefs.h. */
4612#include <stdlib.h>
4613#include <stdarg.h>
4614#include <string.h>
4615#include <float.h>
4616
4617int
4618main ()
4619{
4620
4621 ;
4622 return 0;
4623}
4624_ACEOF
4625rm -f conftest.$ac_objext
4626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4627 (eval $ac_compile) 2>conftest.er1
4628 ac_status=$?
4629 grep -v '^ *+' conftest.er1 >conftest.err
4630 rm -f conftest.er1
4631 cat conftest.err >&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } &&
1506eac1 4634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
88386050
NN
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 (eval $ac_try) 2>&5
4637 ac_status=$?
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; } &&
4640 { ac_try='test -s conftest.$ac_objext'
4641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 (eval $ac_try) 2>&5
4643 ac_status=$?
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4646 ac_cv_header_stdc=yes
4647else
4648 echo "$as_me: failed program was:" >&5
4649sed 's/^/| /' conftest.$ac_ext >&5
4650
4651ac_cv_header_stdc=no
4652fi
4653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4654
4655if test $ac_cv_header_stdc = yes; then
4656 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4657 cat >conftest.$ac_ext <<_ACEOF
4658/* confdefs.h. */
4659_ACEOF
4660cat confdefs.h >>conftest.$ac_ext
4661cat >>conftest.$ac_ext <<_ACEOF
4662/* end confdefs.h. */
4663#include <string.h>
4664
4665_ACEOF
4666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4667 $EGREP "memchr" >/dev/null 2>&1; then
4668 :
4669else
4670 ac_cv_header_stdc=no
03391b53
AO
4671fi
4672rm -f conftest*
88386050 4673
03391b53 4674fi
88386050
NN
4675
4676if test $ac_cv_header_stdc = yes; then
4677 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4678 cat >conftest.$ac_ext <<_ACEOF
4679/* confdefs.h. */
4680_ACEOF
4681cat confdefs.h >>conftest.$ac_ext
4682cat >>conftest.$ac_ext <<_ACEOF
4683/* end confdefs.h. */
4684#include <stdlib.h>
4685
4686_ACEOF
4687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4688 $EGREP "free" >/dev/null 2>&1; then
4689 :
4690else
4691 ac_cv_header_stdc=no
4692fi
4693rm -f conftest*
4694
4695fi
4696
4697if test $ac_cv_header_stdc = yes; then
4698 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4699 if test "$cross_compiling" = yes; then
4700 :
4701else
4702 cat >conftest.$ac_ext <<_ACEOF
4703/* confdefs.h. */
4704_ACEOF
4705cat confdefs.h >>conftest.$ac_ext
4706cat >>conftest.$ac_ext <<_ACEOF
4707/* end confdefs.h. */
4708#include <ctype.h>
4709#if ((' ' & 0x0FF) == 0x020)
4710# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4711# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4712#else
4713# define ISLOWER(c) \
4714 (('a' <= (c) && (c) <= 'i') \
4715 || ('j' <= (c) && (c) <= 'r') \
4716 || ('s' <= (c) && (c) <= 'z'))
4717# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4718#endif
4719
4720#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4721int
4722main ()
4723{
4724 int i;
4725 for (i = 0; i < 256; i++)
4726 if (XOR (islower (i), ISLOWER (i))
4727 || toupper (i) != TOUPPER (i))
4728 exit(2);
4729 exit (0);
4730}
4731_ACEOF
4732rm -f conftest$ac_exeext
4733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4734 (eval $ac_link) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 (eval $ac_try) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 :
4744else
4745 echo "$as_me: program exited with status $ac_status" >&5
4746echo "$as_me: failed program was:" >&5
4747sed 's/^/| /' conftest.$ac_ext >&5
4748
4749( exit $ac_status )
4750ac_cv_header_stdc=no
4751fi
4752rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4753fi
4754fi
4755fi
4756echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4757echo "${ECHO_T}$ac_cv_header_stdc" >&6
4758if test $ac_cv_header_stdc = yes; then
4759
4760cat >>confdefs.h <<\_ACEOF
4761#define STDC_HEADERS 1
4762_ACEOF
4763
4764fi
4765
4766
4767
4768for ac_header in sched.h
4769do
4770as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4771if eval "test \"\${$as_ac_Header+set}\" = set"; then
4772 echo "$as_me:$LINENO: checking for $ac_header" >&5
4773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4774if eval "test \"\${$as_ac_Header+set}\" = set"; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4776fi
4777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4779else
4780 # Is the header compilable?
4781echo "$as_me:$LINENO: checking $ac_header usability" >&5
4782echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4783cat >conftest.$ac_ext <<_ACEOF
4784/* confdefs.h. */
4785_ACEOF
4786cat confdefs.h >>conftest.$ac_ext
4787cat >>conftest.$ac_ext <<_ACEOF
4788/* end confdefs.h. */
4789$ac_includes_default
4790#include <$ac_header>
4791_ACEOF
4792rm -f conftest.$ac_objext
4793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4794 (eval $ac_compile) 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
1506eac1 4801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
88386050
NN
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 (eval $ac_try) 2>&5
4804 ac_status=$?
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; } &&
4807 { ac_try='test -s conftest.$ac_objext'
4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809 (eval $ac_try) 2>&5
4810 ac_status=$?
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; }; then
4813 ac_header_compiler=yes
4814else
4815 echo "$as_me: failed program was:" >&5
4816sed 's/^/| /' conftest.$ac_ext >&5
4817
4818ac_header_compiler=no
4819fi
4820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4821echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4822echo "${ECHO_T}$ac_header_compiler" >&6
4823
4824# Is the header present?
4825echo "$as_me:$LINENO: checking $ac_header presence" >&5
4826echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4827cat >conftest.$ac_ext <<_ACEOF
4828/* confdefs.h. */
4829_ACEOF
4830cat confdefs.h >>conftest.$ac_ext
4831cat >>conftest.$ac_ext <<_ACEOF
4832/* end confdefs.h. */
4833#include <$ac_header>
4834_ACEOF
4835if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4837 ac_status=$?
4838 grep -v '^ *+' conftest.er1 >conftest.err
4839 rm -f conftest.er1
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } >/dev/null; then
4843 if test -s conftest.err; then
4844 ac_cpp_err=$ac_c_preproc_warn_flag
4845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4846 else
4847 ac_cpp_err=
4848 fi
4849else
4850 ac_cpp_err=yes
4851fi
4852if test -z "$ac_cpp_err"; then
4853 ac_header_preproc=yes
4854else
4855 echo "$as_me: failed program was:" >&5
4856sed 's/^/| /' conftest.$ac_ext >&5
4857
4858 ac_header_preproc=no
4859fi
4860rm -f conftest.err conftest.$ac_ext
4861echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4862echo "${ECHO_T}$ac_header_preproc" >&6
4863
4864# So? What about this header?
4865case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4866 yes:no: )
4867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4868echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4870echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4871 ac_header_preproc=yes
4872 ;;
4873 no:yes:* )
4874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4875echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4877echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4879echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4881echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4883echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4885echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4886 (
4887 cat <<\_ASBOX
684c64bf
AP
4888## ----------------------------------------- ##
4889## Report this to the package-unused lists. ##
4890## ----------------------------------------- ##
88386050
NN
4891_ASBOX
4892 ) |
4893 sed "s/^/$as_me: WARNING: /" >&2
4894 ;;
4895esac
4896echo "$as_me:$LINENO: checking for $ac_header" >&5
4897echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4898if eval "test \"\${$as_ac_Header+set}\" = set"; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53 4900else
88386050 4901 eval "$as_ac_Header=\$ac_header_preproc"
03391b53 4902fi
88386050
NN
4903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4904echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4905
4906fi
4907if test `eval echo '${'$as_ac_Header'}'` = yes; then
4908 cat >>confdefs.h <<_ACEOF
4909#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4910_ACEOF
4911
4912fi
4913
b150efee 4914done
bce1b489 4915
03391b53 4916
252dde64
NN
4917# -----------
4918# Miscellanea
4919# -----------
4920
b150efee 4921# Determine CFLAGS for gthread.
b43e7294
NN
4922# FIXME: the current implementation is dependent on the 'r' variable
4923# passed down from the top level
88386050
NN
4924echo "$as_me:$LINENO: checking for gthread cflags" >&5
4925echo $ECHO_N "checking for gthread cflags... $ECHO_C" >&6
4926if test "${objc_cv_gthread_flags+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
03391b53 4928else
b150efee
FS
4929 if test -f "$r"/gcc/Makefile
4930then
4931 objc_cv_gthread_flags=`grep \^GTHREAD_FLAGS "$r"/gcc/Makefile | awk -F= '{ print $2 }'`
4932else
88386050
NN
4933 { { echo "$as_me:$LINENO: error: not found" >&5
4934echo "$as_me: error: not found" >&2;}
4935 { (exit 1); exit 1; }; }
b150efee 4936fi
03391b53 4937fi
88386050
NN
4938echo "$as_me:$LINENO: result: $objc_cv_gthread_flags" >&5
4939echo "${ECHO_T}$objc_cv_gthread_flags" >&6
b150efee 4940GTHREAD_FLAGS=$objc_cv_gthread_flags
03391b53 4941
c161c99b 4942
252dde64
NN
4943# ------
4944# Output
4945# ------
03391b53 4946
88386050 4947 ac_config_files="$ac_config_files Makefile"
252dde64
NN
4948
4949
88386050 4950 ac_config_commands="$ac_config_commands default"
252dde64
NN
4951
4952
88386050 4953cat >confcache <<\_ACEOF
bce1b489
BE
4954# This file is a shell script that caches the results of configure
4955# tests run on this system so they can be shared between configure
88386050
NN
4956# scripts and configure runs, see configure's option --config-cache.
4957# It is not useful on other systems. If it contains results you don't
4958# want to keep, you may remove or edit it.
bce1b489 4959#
88386050
NN
4960# config.status only pays attention to the cache file if you give it
4961# the --recheck option to rerun configure.
bce1b489 4962#
88386050
NN
4963# `ac_cv_env_foo' variables (set or unset) will be overridden when
4964# loading this file, other *unset* `ac_cv_foo' will be assigned the
4965# following values.
4966
4967_ACEOF
4968
bce1b489
BE
4969# The following way of writing the cache mishandles newlines in values,
4970# but we know of no workaround that is simple, portable, and efficient.
4971# So, don't put newlines in cache variables' values.
4972# Ultrix sh set writes to stderr and can't be redirected directly,
4973# and sets the high bit in the cache file unless we assign to the vars.
88386050
NN
4974{
4975 (set) 2>&1 |
4976 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4977 *ac_space=\ *)
4978 # `set' does not quote correctly, so add quotes (double-quote
4979 # substitution turns \\\\ into \\, and sed turns \\ into \).
4980 sed -n \
4981 "s/'/'\\\\''/g;
4982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4983 ;;
4984 *)
4985 # `set' quotes correctly as required by POSIX, so do not add quotes.
4986 sed -n \
4987 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4988 ;;
4989 esac;
4990} |
4991 sed '
4992 t clear
4993 : clear
4994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4995 t end
4996 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4997 : end' >>confcache
4998if diff $cache_file confcache >/dev/null 2>&1; then :; else
bce1b489 4999 if test -w $cache_file; then
88386050
NN
5000 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5001 cat confcache >$cache_file
bce1b489
BE
5002 else
5003 echo "not updating unwritable cache $cache_file"
5004 fi
5005fi
5006rm -f confcache
03391b53 5007
bce1b489
BE
5008test "x$prefix" = xNONE && prefix=$ac_default_prefix
5009# Let make expand exec_prefix.
5010test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5011
88386050
NN
5012# VPATH may cause trouble with some makes, so we remove $(srcdir),
5013# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5014# trailing colons and then remove the whole line if VPATH becomes empty
5015# (actually we leave an empty line to preserve line numbers).
bce1b489 5016if test "x$srcdir" = x.; then
88386050
NN
5017 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5018s/:*\$(srcdir):*/:/;
5019s/:*\${srcdir}:*/:/;
5020s/:*@srcdir@:*/:/;
5021s/^\([^=]*=[ ]*\):*/\1/;
5022s/:*$//;
5023s/^[^=]*=[ ]*$//;
5024}'
bce1b489
BE
5025fi
5026
608e1e0c
NN
5027# Transform confdefs.h into DEFS.
5028# Protect against shell expansion while executing Makefile rules.
5029# Protect against Makefile macro expansion.
5030#
5031# If the first sed substitution is executed (which looks for macros that
5032# take arguments), then we branch to the quote section. Otherwise,
5033# look for a macro that doesn't take arguments.
5034cat >confdef2opt.sed <<\_ACEOF
5035t clear
5036: clear
5037s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5038t quote
5039s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5040t quote
5041d
5042: quote
5043s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5044s,\[,\\&,g
5045s,\],\\&,g
5046s,\$,$$,g
5047p
5048_ACEOF
5049# We use echo to avoid assuming a particular line-breaking character.
5050# The extra dot is to prevent the shell from consuming trailing
5051# line-breaks from the sub-command output. A line-break within
5052# single-quotes doesn't work because, if this script is created in a
5053# platform that uses two characters for line-breaks (e.g., DOS), tr
5054# would break.
5055ac_LF_and_DOT=`echo; echo .`
5056DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5057rm -f confdef2opt.sed
5058
bce1b489 5059
88386050
NN
5060ac_libobjs=
5061ac_ltlibobjs=
5062for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5063 # 1. Remove the extension, and $U if already installed.
5064 ac_i=`echo "$ac_i" |
5065 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5066 # 2. Add them.
5067 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5068 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5069done
5070LIBOBJS=$ac_libobjs
03391b53 5071
88386050
NN
5072LTLIBOBJS=$ac_ltlibobjs
5073
5074
5075
5076: ${CONFIG_STATUS=./config.status}
5077ac_clean_files_save=$ac_clean_files
5078ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5079{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5080echo "$as_me: creating $CONFIG_STATUS" >&6;}
5081cat >$CONFIG_STATUS <<_ACEOF
5082#! $SHELL
5083# Generated by $as_me.
bce1b489 5084# Run this file to recreate the current configuration.
bce1b489 5085# Compiler output produced by configure, useful for debugging
88386050 5086# configure, is in config.log if it exists.
bce1b489 5087
88386050
NN
5088debug=false
5089ac_cs_recheck=false
5090ac_cs_silent=false
5091SHELL=\${CONFIG_SHELL-$SHELL}
5092_ACEOF
5093
5094cat >>$CONFIG_STATUS <<\_ACEOF
5095## --------------------- ##
5096## M4sh Initialization. ##
5097## --------------------- ##
5098
5099# Be Bourne compatible
5100if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5101 emulate sh
5102 NULLCMD=:
5103 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5104 # is contrary to our usage. Disable this feature.
5105 alias -g '${1+"$@"}'='"$@"'
5106elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5107 set -o posix
5108fi
5109DUALCASE=1; export DUALCASE # for MKS sh
5110
5111# Support unset when possible.
5112if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5113 as_unset=unset
5114else
5115 as_unset=false
5116fi
5117
5118
5119# Work around bugs in pre-3.0 UWIN ksh.
5120$as_unset ENV MAIL MAILPATH
5121PS1='$ '
5122PS2='> '
5123PS4='+ '
5124
5125# NLS nuisances.
5126for as_var in \
5127 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5128 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5129 LC_TELEPHONE LC_TIME
bce1b489 5130do
88386050
NN
5131 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5132 eval $as_var=C; export $as_var
5133 else
5134 $as_unset $as_var
5135 fi
bce1b489
BE
5136done
5137
88386050
NN
5138# Required to use basename.
5139if expr a : '\(a\)' >/dev/null 2>&1; then
5140 as_expr=expr
5141else
5142 as_expr=false
5143fi
162f5967 5144
88386050
NN
5145if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5146 as_basename=basename
5147else
5148 as_basename=false
5149fi
162f5967 5150
bce1b489 5151
88386050
NN
5152# Name of the executable.
5153as_me=`$as_basename "$0" ||
5154$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5155 X"$0" : 'X\(//\)$' \| \
5156 X"$0" : 'X\(/\)$' \| \
5157 . : '\(.\)' 2>/dev/null ||
5158echo X/"$0" |
5159 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5160 /^X\/\(\/\/\)$/{ s//\1/; q; }
5161 /^X\/\(\/\).*/{ s//\1/; q; }
5162 s/.*/./; q'`
5163
bce1b489 5164
88386050
NN
5165# PATH needs CR, and LINENO needs CR and PATH.
5166# Avoid depending upon Character Ranges.
5167as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5168as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5169as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5170as_cr_digits='0123456789'
5171as_cr_alnum=$as_cr_Letters$as_cr_digits
5172
5173# The user is always right.
5174if test "${PATH_SEPARATOR+set}" != set; then
5175 echo "#! /bin/sh" >conf$$.sh
5176 echo "exit 0" >>conf$$.sh
5177 chmod +x conf$$.sh
5178 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5179 PATH_SEPARATOR=';'
03391b53 5180 else
88386050
NN
5181 PATH_SEPARATOR=:
5182 fi
5183 rm -f conf$$.sh
5184fi
5185
5186
5187 as_lineno_1=$LINENO
5188 as_lineno_2=$LINENO
5189 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5190 test "x$as_lineno_1" != "x$as_lineno_2" &&
5191 test "x$as_lineno_3" = "x$as_lineno_2" || {
5192 # Find who we are. Look in the path if we contain no path at all
5193 # relative or not.
5194 case $0 in
5195 *[\\/]* ) as_myself=$0 ;;
5196 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197for as_dir in $PATH
5198do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5202done
5203
5204 ;;
5205 esac
5206 # We did not find ourselves, most probably we were run as `sh COMMAND'
5207 # in which case we are not to be found in the path.
5208 if test "x$as_myself" = x; then
5209 as_myself=$0
03391b53 5210 fi
88386050
NN
5211 if test ! -f "$as_myself"; then
5212 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5213echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5214 { (exit 1); exit 1; }; }
5215 fi
5216 case $CONFIG_SHELL in
5217 '')
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5220do
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for as_base in sh bash ksh sh5; do
5224 case $as_dir in
5225 /*)
5226 if ("$as_dir/$as_base" -c '
5227 as_lineno_1=$LINENO
5228 as_lineno_2=$LINENO
5229 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5230 test "x$as_lineno_1" != "x$as_lineno_2" &&
5231 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5232 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5233 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5234 CONFIG_SHELL=$as_dir/$as_base
5235 export CONFIG_SHELL
5236 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5237 fi;;
5238 esac
5239 done
5240done
5241;;
5242 esac
5243
5244 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5245 # uniformly replaced by the line number. The first 'sed' inserts a
5246 # line-number line before each line; the second 'sed' does the real
5247 # work. The second script uses 'N' to pair each line-number line
5248 # with the numbered line, and appends trailing '-' during
5249 # substitution so that $LINENO is not a special case at line end.
5250 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5251 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5252 sed '=' <$as_myself |
5253 sed '
5254 N
5255 s,$,-,
5256 : loop
5257 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5258 t loop
5259 s,-$,,
5260 s,^['$as_cr_digits']*\n,,
5261 ' >$as_me.lineno &&
5262 chmod +x $as_me.lineno ||
5263 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5264echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5265 { (exit 1); exit 1; }; }
5266
5267 # Don't try to exec as it changes $[0], causing all sort of problems
5268 # (the dirname of $[0] is not the place where we might find the
5269 # original and so on. Autoconf is especially sensible to this).
5270 . ./$as_me.lineno
5271 # Exit status is that of the last command.
5272 exit
5273}
5274
5275
5276case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5277 *c*,-n*) ECHO_N= ECHO_C='
5278' ECHO_T=' ' ;;
5279 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5280 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5281esac
5282
5283if expr a : '\(a\)' >/dev/null 2>&1; then
5284 as_expr=expr
5285else
5286 as_expr=false
5287fi
5288
5289rm -f conf$$ conf$$.exe conf$$.file
5290echo >conf$$.file
5291if ln -s conf$$.file conf$$ 2>/dev/null; then
5292 # We could just check for DJGPP; but this test a) works b) is more generic
5293 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5294 if test -f conf$$.exe; then
5295 # Don't use ln at all; we don't have any links
5296 as_ln_s='cp -p'
03391b53 5297 else
88386050 5298 as_ln_s='ln -s'
bce1b489 5299 fi
88386050
NN
5300elif ln conf$$.file conf$$ 2>/dev/null; then
5301 as_ln_s=ln
5302else
5303 as_ln_s='cp -p'
5304fi
5305rm -f conf$$ conf$$.exe conf$$.file
5306
5307if mkdir -p . 2>/dev/null; then
5308 as_mkdir_p=:
5309else
5310 test -d ./-p && rmdir ./-p
5311 as_mkdir_p=false
5312fi
5313
5314as_executable_p="test -f"
5315
5316# Sed expression to map a string onto a valid CPP name.
5317as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5318
5319# Sed expression to map a string onto a valid variable name.
5320as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5321
5322
5323# IFS
5324# We need space, tab and new line, in precisely that order.
5325as_nl='
5326'
5327IFS=" $as_nl"
5328
5329# CDPATH.
5330$as_unset CDPATH
5331
5332exec 6>&1
5333
5334# Open the log real soon, to keep \$[0] and so on meaningful, and to
5335# report actual input values of CONFIG_FILES etc. instead of their
5336# values after options handling. Logging --version etc. is OK.
5337exec 5>>config.log
5338{
5339 echo
5340 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5341## Running $as_me. ##
5342_ASBOX
5343} >&5
5344cat >&5 <<_CSEOF
5345
684c64bf 5346This file was extended by package-unused $as_me version-unused, which was
88386050
NN
5347generated by GNU Autoconf 2.59. Invocation command line was
5348
5349 CONFIG_FILES = $CONFIG_FILES
5350 CONFIG_HEADERS = $CONFIG_HEADERS
5351 CONFIG_LINKS = $CONFIG_LINKS
5352 CONFIG_COMMANDS = $CONFIG_COMMANDS
5353 $ $0 $@
5354
5355_CSEOF
5356echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5357echo >&5
5358_ACEOF
5359
5360# Files that config.status was made for.
5361if test -n "$ac_config_files"; then
5362 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5363fi
5364
5365if test -n "$ac_config_headers"; then
5366 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5367fi
5368
5369if test -n "$ac_config_links"; then
5370 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5371fi
5372
5373if test -n "$ac_config_commands"; then
5374 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5375fi
5376
5377cat >>$CONFIG_STATUS <<\_ACEOF
5378
5379ac_cs_usage="\
5380\`$as_me' instantiates files from templates according to the
5381current configuration.
5382
5383Usage: $0 [OPTIONS] [FILE]...
5384
5385 -h, --help print this help, then exit
5386 -V, --version print version number, then exit
5387 -q, --quiet do not print progress messages
5388 -d, --debug don't remove temporary files
5389 --recheck update $as_me by reconfiguring in the same conditions
5390 --file=FILE[:TEMPLATE]
5391 instantiate the configuration file FILE
88386050
NN
5392
5393Configuration files:
5394$config_files
5395
88386050
NN
5396Configuration commands:
5397$config_commands
5398
5399Report bugs to <bug-autoconf@gnu.org>."
5400_ACEOF
5401
5402cat >>$CONFIG_STATUS <<_ACEOF
5403ac_cs_version="\\
684c64bf 5404package-unused config.status version-unused
88386050
NN
5405configured by $0, generated by GNU Autoconf 2.59,
5406 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5407
5408Copyright (C) 2003 Free Software Foundation, Inc.
5409This config.status script is free software; the Free Software Foundation
5410gives unlimited permission to copy, distribute and modify it."
5411srcdir=$srcdir
5412INSTALL="$INSTALL"
5413_ACEOF
5414
5415cat >>$CONFIG_STATUS <<\_ACEOF
5416# If no file are specified by the user, then we need to provide default
5417# value. By we need to know if files were specified by the user.
5418ac_need_defaults=:
5419while test $# != 0
5420do
5421 case $1 in
5422 --*=*)
5423 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5424 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5425 ac_shift=:
5426 ;;
5427 -*)
5428 ac_option=$1
5429 ac_optarg=$2
5430 ac_shift=shift
5431 ;;
5432 *) # This is not an option, so the user has probably given explicit
5433 # arguments.
5434 ac_option=$1
5435 ac_need_defaults=false;;
5436 esac
5437
5438 case $ac_option in
5439 # Handling of the options.
5440_ACEOF
5441cat >>$CONFIG_STATUS <<\_ACEOF
5442 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5443 ac_cs_recheck=: ;;
5444 --version | --vers* | -V )
5445 echo "$ac_cs_version"; exit 0 ;;
5446 --he | --h)
5447 # Conflict between --help and --header
5448 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5449Try \`$0 --help' for more information." >&5
5450echo "$as_me: error: ambiguous option: $1
5451Try \`$0 --help' for more information." >&2;}
5452 { (exit 1); exit 1; }; };;
5453 --help | --hel | -h )
5454 echo "$ac_cs_usage"; exit 0 ;;
5455 --debug | --d* | -d )
5456 debug=: ;;
5457 --file | --fil | --fi | --f )
5458 $ac_shift
5459 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5460 ac_need_defaults=false;;
5461 --header | --heade | --head | --hea )
5462 $ac_shift
5463 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5464 ac_need_defaults=false;;
5465 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5466 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5467 ac_cs_silent=: ;;
5468
5469 # This is an error.
5470 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5471Try \`$0 --help' for more information." >&5
5472echo "$as_me: error: unrecognized option: $1
5473Try \`$0 --help' for more information." >&2;}
5474 { (exit 1); exit 1; }; } ;;
5475
5476 *) ac_config_targets="$ac_config_targets $1" ;;
5477
5478 esac
5479 shift
03391b53 5480done
88386050
NN
5481
5482ac_configure_extra_args=
5483
5484if $ac_cs_silent; then
5485 exec 6>/dev/null
5486 ac_configure_extra_args="$ac_configure_extra_args --silent"
03391b53 5487fi
bce1b489 5488
88386050
NN
5489_ACEOF
5490cat >>$CONFIG_STATUS <<_ACEOF
5491if \$ac_cs_recheck; then
5492 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5493 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5494fi
03391b53 5495
88386050
NN
5496_ACEOF
5497
5498cat >>$CONFIG_STATUS <<_ACEOF
5499#
5500# INIT-COMMANDS section.
5501#
5502
5503srcdir=${srcdir}
5504host=${host}
5505target=${target}
5506with_target_subdir=${with_target_subdir}
5507with_multisubdir=${with_multisubdir}
5508ac_configure_args="--enable-multilib ${ac_configure_args}"
5509toplevel_srcdir=${toplevel_srcdir}
5510CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5511ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
5512
5513
5514_ACEOF
5515
5516
5517
5518cat >>$CONFIG_STATUS <<\_ACEOF
5519for ac_config_target in $ac_config_targets
5520do
5521 case "$ac_config_target" in
5522 # Handling of arguments.
5523 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5524 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
88386050
NN
5525 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5526echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5527 { (exit 1); exit 1; }; };;
bce1b489 5528 esac
88386050 5529done
bce1b489 5530
88386050
NN
5531# If the user did not use the arguments to specify the items to instantiate,
5532# then the envvar interface is used. Set only those that are not.
5533# We use the long form for the default assignment because of an extremely
5534# bizarre bug on SunOS 4.1.3.
5535if $ac_need_defaults; then
5536 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
88386050
NN
5537 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5538fi
5539
5540# Have a temporary directory for convenience. Make it in the build tree
5541# simply because there is no reason to put it here, and in addition,
5542# creating and moving files from /tmp can sometimes cause problems.
5543# Create a temporary directory, and hook for its removal unless debugging.
5544$debug ||
5545{
5546 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5547 trap '{ (exit 1); exit 1; }' 1 2 13 15
5548}
5549
5550# Create a (secure) tmp directory for tmp files.
5551
5552{
5553 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5554 test -n "$tmp" && test -d "$tmp"
5555} ||
5556{
5557 tmp=./confstat$$-$RANDOM
5558 (umask 077 && mkdir $tmp)
5559} ||
5560{
5561 echo "$me: cannot create a temporary directory in ." >&2
5562 { (exit 1); exit 1; }
5563}
5564
5565_ACEOF
5566
5567cat >>$CONFIG_STATUS <<_ACEOF
bce1b489 5568
88386050
NN
5569#
5570# CONFIG_FILES section.
5571#
5572
5573# No need to generate the scripts if there are no CONFIG_FILES.
5574# This happens for instance when ./config.status config.h
5575if test -n "\$CONFIG_FILES"; then
5576 # Protect against being on the right side of a sed subst in config.status.
5577 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5578 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5579s,@SHELL@,$SHELL,;t t
5580s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5581s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5582s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5583s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5584s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5585s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5586s,@exec_prefix@,$exec_prefix,;t t
5587s,@prefix@,$prefix,;t t
5588s,@program_transform_name@,$program_transform_name,;t t
5589s,@bindir@,$bindir,;t t
5590s,@sbindir@,$sbindir,;t t
5591s,@libexecdir@,$libexecdir,;t t
5592s,@datadir@,$datadir,;t t
5593s,@sysconfdir@,$sysconfdir,;t t
5594s,@sharedstatedir@,$sharedstatedir,;t t
5595s,@localstatedir@,$localstatedir,;t t
5596s,@libdir@,$libdir,;t t
5597s,@includedir@,$includedir,;t t
5598s,@oldincludedir@,$oldincludedir,;t t
5599s,@infodir@,$infodir,;t t
5600s,@mandir@,$mandir,;t t
5601s,@build_alias@,$build_alias,;t t
5602s,@host_alias@,$host_alias,;t t
5603s,@target_alias@,$target_alias,;t t
5604s,@DEFS@,$DEFS,;t t
5605s,@ECHO_C@,$ECHO_C,;t t
5606s,@ECHO_N@,$ECHO_N,;t t
5607s,@ECHO_T@,$ECHO_T,;t t
5608s,@LIBS@,$LIBS,;t t
5609s,@VERSION@,$VERSION,;t t
252dde64 5610s,@OBJC_BOEHM_GC@,$OBJC_BOEHM_GC,;t t
88386050
NN
5611s,@toplevel_srcdir@,$toplevel_srcdir,;t t
5612s,@build@,$build,;t t
5613s,@build_cpu@,$build_cpu,;t t
5614s,@build_vendor@,$build_vendor,;t t
5615s,@build_os@,$build_os,;t t
5616s,@host@,$host,;t t
5617s,@host_cpu@,$host_cpu,;t t
5618s,@host_vendor@,$host_vendor,;t t
5619s,@host_os@,$host_os,;t t
5620s,@target@,$target,;t t
5621s,@target_cpu@,$target_cpu,;t t
5622s,@target_vendor@,$target_vendor,;t t
5623s,@target_os@,$target_os,;t t
5624s,@target_noncanonical@,$target_noncanonical,;t t
88386050 5625s,@glibcpp_srcdir@,$glibcpp_srcdir,;t t
252dde64 5626s,@gcc_version@,$gcc_version,;t t
a42a57cb 5627s,@toolexecdir@,$toolexecdir,;t t
608e1e0c 5628s,@toolexeclibdir@,$toolexeclibdir,;t t
7d34a5a9 5629s,@includedirname@,$includedirname,;t t
ff65de76 5630s,@libext@,$libext,;t t
88386050 5631s,@CC@,$CC,;t t
88386050
NN
5632s,@ac_ct_CC@,$ac_ct_CC,;t t
5633s,@EXEEXT@,$EXEEXT,;t t
5634s,@OBJEXT@,$OBJEXT,;t t
db7f3c69 5635s,@CFLAGS@,$CFLAGS,;t t
88386050
NN
5636s,@AS@,$AS,;t t
5637s,@ac_ct_AS@,$ac_ct_AS,;t t
5638s,@AR@,$AR,;t t
5639s,@ac_ct_AR@,$ac_ct_AR,;t t
5640s,@RANLIB@,$RANLIB,;t t
5641s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5642s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5643s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5644s,@INSTALL_DATA@,$INSTALL_DATA,;t t
88386050
NN
5645s,@LN_S@,$LN_S,;t t
5646s,@STRIP@,$STRIP,;t t
5647s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5648s,@LIBTOOL@,$LIBTOOL,;t t
5649s,@SET_MAKE@,$SET_MAKE,;t t
5650s,@CPP@,$CPP,;t t
db7f3c69 5651s,@CPPFLAGS@,$CPPFLAGS,;t t
88386050
NN
5652s,@EGREP@,$EGREP,;t t
5653s,@GTHREAD_FLAGS@,$GTHREAD_FLAGS,;t t
88386050
NN
5654s,@LIBOBJS@,$LIBOBJS,;t t
5655s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5656CEOF
5657
5658_ACEOF
5659
5660 cat >>$CONFIG_STATUS <<\_ACEOF
5661 # Split the substitutions into bite-sized pieces for seds with
5662 # small command number limits, like on Digital OSF/1 and HP-UX.
5663 ac_max_sed_lines=48
5664 ac_sed_frag=1 # Number of current file.
5665 ac_beg=1 # First line for current file.
5666 ac_end=$ac_max_sed_lines # Line after last line for current file.
5667 ac_more_lines=:
5668 ac_sed_cmds=
5669 while $ac_more_lines; do
5670 if test $ac_beg -gt 1; then
5671 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5672 else
5673 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5674 fi
5675 if test ! -s $tmp/subs.frag; then
5676 ac_more_lines=false
5677 else
5678 # The purpose of the label and of the branching condition is to
5679 # speed up the sed processing (if there are no `@' at all, there
5680 # is no need to browse any of the substitutions).
5681 # These are the two extra sed commands mentioned above.
5682 (echo ':t
5683 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5684 if test -z "$ac_sed_cmds"; then
5685 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5686 else
5687 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5688 fi
5689 ac_sed_frag=`expr $ac_sed_frag + 1`
5690 ac_beg=$ac_end
5691 ac_end=`expr $ac_end + $ac_max_sed_lines`
5692 fi
5693 done
5694 if test -z "$ac_sed_cmds"; then
5695 ac_sed_cmds=cat
bce1b489 5696 fi
88386050 5697fi # test -n "$CONFIG_FILES"
bce1b489 5698
88386050
NN
5699_ACEOF
5700cat >>$CONFIG_STATUS <<\_ACEOF
5701for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5702 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5703 case $ac_file in
5704 - | *:- | *:-:* ) # input from stdin
5705 cat >$tmp/stdin
5706 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5707 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5708 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5709 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5710 * ) ac_file_in=$ac_file.in ;;
bce1b489
BE
5711 esac
5712
88386050
NN
5713 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5714 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5715$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5716 X"$ac_file" : 'X\(//\)[^/]' \| \
5717 X"$ac_file" : 'X\(//\)$' \| \
5718 X"$ac_file" : 'X\(/\)' \| \
5719 . : '\(.\)' 2>/dev/null ||
5720echo X"$ac_file" |
5721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5723 /^X\(\/\/\)$/{ s//\1/; q; }
5724 /^X\(\/\).*/{ s//\1/; q; }
5725 s/.*/./; q'`
5726 { if $as_mkdir_p; then
5727 mkdir -p "$ac_dir"
5728 else
5729 as_dir="$ac_dir"
5730 as_dirs=
5731 while test ! -d "$as_dir"; do
5732 as_dirs="$as_dir $as_dirs"
5733 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5734$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5735 X"$as_dir" : 'X\(//\)[^/]' \| \
5736 X"$as_dir" : 'X\(//\)$' \| \
5737 X"$as_dir" : 'X\(/\)' \| \
5738 . : '\(.\)' 2>/dev/null ||
5739echo X"$as_dir" |
5740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5741 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5742 /^X\(\/\/\)$/{ s//\1/; q; }
5743 /^X\(\/\).*/{ s//\1/; q; }
5744 s/.*/./; q'`
5745 done
5746 test ! -n "$as_dirs" || mkdir $as_dirs
5747 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5748echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5749 { (exit 1); exit 1; }; }; }
5750
5751 ac_builddir=.
5752
5753if test "$ac_dir" != .; then
5754 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5755 # A "../" for each directory in $ac_dir_suffix.
5756 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5757else
5758 ac_dir_suffix= ac_top_builddir=
5759fi
5760
5761case $srcdir in
5762 .) # No --srcdir option. We are building in place.
5763 ac_srcdir=.
5764 if test -z "$ac_top_builddir"; then
5765 ac_top_srcdir=.
5766 else
5767 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5768 fi ;;
5769 [\\/]* | ?:[\\/]* ) # Absolute path.
5770 ac_srcdir=$srcdir$ac_dir_suffix;
5771 ac_top_srcdir=$srcdir ;;
5772 *) # Relative path.
5773 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5774 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5775esac
5776
5777# Do not use `cd foo && pwd` to compute absolute paths, because
5778# the directories may not exist.
5779case `pwd` in
5780.) ac_abs_builddir="$ac_dir";;
5781*)
5782 case "$ac_dir" in
5783 .) ac_abs_builddir=`pwd`;;
5784 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5785 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5786 esac;;
5787esac
5788case $ac_abs_builddir in
5789.) ac_abs_top_builddir=${ac_top_builddir}.;;
5790*)
5791 case ${ac_top_builddir}. in
5792 .) ac_abs_top_builddir=$ac_abs_builddir;;
5793 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5794 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5795 esac;;
5796esac
5797case $ac_abs_builddir in
5798.) ac_abs_srcdir=$ac_srcdir;;
5799*)
5800 case $ac_srcdir in
5801 .) ac_abs_srcdir=$ac_abs_builddir;;
5802 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5803 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5804 esac;;
5805esac
5806case $ac_abs_builddir in
5807.) ac_abs_top_srcdir=$ac_top_srcdir;;
5808*)
5809 case $ac_top_srcdir in
5810 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5811 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5812 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5813 esac;;
5814esac
5815
bce1b489 5816
88386050
NN
5817 case $INSTALL in
5818 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5819 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
03391b53 5820 esac
bce1b489 5821
88386050
NN
5822 # Let's still pretend it is `configure' which instantiates (i.e., don't
5823 # use $as_me), people would be surprised to read:
5824 # /* config.h. Generated by config.status. */
5825 if test x"$ac_file" = x-; then
5826 configure_input=
5827 else
5828 configure_input="$ac_file. "
5829 fi
5830 configure_input=$configure_input"Generated from `echo $ac_file_in |
5831 sed 's,.*/,,'` by configure."
5832
5833 # First look for the input files in the build tree, otherwise in the
5834 # src tree.
5835 ac_file_inputs=`IFS=:
5836 for f in $ac_file_in; do
5837 case $f in
5838 -) echo $tmp/stdin ;;
5839 [\\/$]*)
5840 # Absolute (can't be DOS-style, as IFS=:)
5841 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5842echo "$as_me: error: cannot find input file: $f" >&2;}
5843 { (exit 1); exit 1; }; }
5844 echo "$f";;
5845 *) # Relative
5846 if test -f "$f"; then
5847 # Build tree
5848 echo "$f"
5849 elif test -f "$srcdir/$f"; then
5850 # Source tree
5851 echo "$srcdir/$f"
5852 else
5853 # /dev/null tree
5854 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5855echo "$as_me: error: cannot find input file: $f" >&2;}
5856 { (exit 1); exit 1; }; }
5857 fi;;
5858 esac
5859 done` || { (exit 1); exit 1; }
1506eac1
NN
5860
5861 if test x"$ac_file" != x-; then
5862 { echo "$as_me:$LINENO: creating $ac_file" >&5
5863echo "$as_me: creating $ac_file" >&6;}
5864 rm -f "$ac_file"
5865 fi
88386050
NN
5866_ACEOF
5867cat >>$CONFIG_STATUS <<_ACEOF
5868 sed "$ac_vpsub
5869$extrasub
5870_ACEOF
5871cat >>$CONFIG_STATUS <<\_ACEOF
5872:t
5873/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5874s,@configure_input@,$configure_input,;t t
5875s,@srcdir@,$ac_srcdir,;t t
5876s,@abs_srcdir@,$ac_abs_srcdir,;t t
5877s,@top_srcdir@,$ac_top_srcdir,;t t
5878s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5879s,@builddir@,$ac_builddir,;t t
5880s,@abs_builddir@,$ac_abs_builddir,;t t
5881s,@top_builddir@,$ac_top_builddir,;t t
5882s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5883s,@INSTALL@,$ac_INSTALL,;t t
5884" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5885 rm -f $tmp/stdin
5886 if test x"$ac_file" != x-; then
5887 mv $tmp/out $ac_file
5888 else
5889 cat $tmp/out
5890 rm -f $tmp/out
5891 fi
5892
5893done
5894_ACEOF
5895cat >>$CONFIG_STATUS <<\_ACEOF
5896
88386050
NN
5897#
5898# CONFIG_COMMANDS section.
5899#
5900for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5901 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5902 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5903 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5904$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5905 X"$ac_dest" : 'X\(//\)[^/]' \| \
5906 X"$ac_dest" : 'X\(//\)$' \| \
5907 X"$ac_dest" : 'X\(/\)' \| \
5908 . : '\(.\)' 2>/dev/null ||
5909echo X"$ac_dest" |
5910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5911 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5912 /^X\(\/\/\)$/{ s//\1/; q; }
5913 /^X\(\/\).*/{ s//\1/; q; }
5914 s/.*/./; q'`
5915 { if $as_mkdir_p; then
5916 mkdir -p "$ac_dir"
5917 else
5918 as_dir="$ac_dir"
5919 as_dirs=
5920 while test ! -d "$as_dir"; do
5921 as_dirs="$as_dir $as_dirs"
5922 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5923$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5924 X"$as_dir" : 'X\(//\)[^/]' \| \
5925 X"$as_dir" : 'X\(//\)$' \| \
5926 X"$as_dir" : 'X\(/\)' \| \
5927 . : '\(.\)' 2>/dev/null ||
5928echo X"$as_dir" |
5929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5930 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5931 /^X\(\/\/\)$/{ s//\1/; q; }
5932 /^X\(\/\).*/{ s//\1/; q; }
5933 s/.*/./; q'`
5934 done
5935 test ! -n "$as_dirs" || mkdir $as_dirs
5936 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5937echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5938 { (exit 1); exit 1; }; }; }
162f5967 5939
88386050
NN
5940 ac_builddir=.
5941
5942if test "$ac_dir" != .; then
5943 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5944 # A "../" for each directory in $ac_dir_suffix.
5945 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5946else
5947 ac_dir_suffix= ac_top_builddir=
5948fi
5949
5950case $srcdir in
5951 .) # No --srcdir option. We are building in place.
5952 ac_srcdir=.
5953 if test -z "$ac_top_builddir"; then
5954 ac_top_srcdir=.
5955 else
5956 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5957 fi ;;
5958 [\\/]* | ?:[\\/]* ) # Absolute path.
5959 ac_srcdir=$srcdir$ac_dir_suffix;
5960 ac_top_srcdir=$srcdir ;;
5961 *) # Relative path.
5962 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5963 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5964esac
5965
5966# Do not use `cd foo && pwd` to compute absolute paths, because
5967# the directories may not exist.
5968case `pwd` in
5969.) ac_abs_builddir="$ac_dir";;
5970*)
5971 case "$ac_dir" in
5972 .) ac_abs_builddir=`pwd`;;
5973 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5974 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5975 esac;;
5976esac
5977case $ac_abs_builddir in
5978.) ac_abs_top_builddir=${ac_top_builddir}.;;
5979*)
5980 case ${ac_top_builddir}. in
5981 .) ac_abs_top_builddir=$ac_abs_builddir;;
5982 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5983 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5984 esac;;
5985esac
5986case $ac_abs_builddir in
5987.) ac_abs_srcdir=$ac_srcdir;;
5988*)
5989 case $ac_srcdir in
5990 .) ac_abs_srcdir=$ac_abs_builddir;;
5991 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5992 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5993 esac;;
5994esac
5995case $ac_abs_builddir in
5996.) ac_abs_top_srcdir=$ac_top_srcdir;;
5997*)
5998 case $ac_top_srcdir in
5999 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6000 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6001 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6002 esac;;
6003esac
6004
6005
6006 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6007echo "$as_me: executing $ac_dest commands" >&6;}
6008 case $ac_dest in
608e1e0c 6009 default ) if test -n "$CONFIG_FILES"; then
bce1b489
BE
6010 if test -n "${with_target_subdir}"; then
6011 # FIXME: We shouldn't need to set ac_file
6012 ac_file=Makefile
6706f116 6013 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
b150efee 6014 . ${toplevel_srcdir}/config-ml.in
bce1b489 6015 fi
88386050
NN
6016fi ;;
6017 esac
6018done
6019_ACEOF
6020
6021cat >>$CONFIG_STATUS <<\_ACEOF
6022
6023{ (exit 0); exit 0; }
6024_ACEOF
bce1b489 6025chmod +x $CONFIG_STATUS
88386050
NN
6026ac_clean_files=$ac_clean_files_save
6027
6028
6029# configure is writing to config.log, and then calls config.status.
6030# config.status does its own redirection, appending to config.log.
6031# Unfortunately, on DOS this fails, as config.log is still kept open
6032# by configure, so config.status won't be able to write to it; its
6033# output is simply discarded. So we exec the FD to /dev/null,
6034# effectively closing config.log, so it can be properly (re)opened and
6035# appended to by config.status. When coming back to configure, we
6036# need to make the FD available again.
6037if test "$no_create" != yes; then
6038 ac_cs_success=:
6039 ac_config_status_args=
6040 test "$silent" = yes &&
6041 ac_config_status_args="$ac_config_status_args --quiet"
6042 exec 5>/dev/null
6043 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6044 exec 5>>config.log
6045 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6046 # would make configure fail if this is the last instruction.
6047 $ac_cs_success || { (exit 1); exit 1; }
6048fi
bce1b489 6049