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