blob: cf41c4781f20517155d714cf3761d4d58a44c97b [file] [log] [blame]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003# Generated by GNU Autoconf 2.54.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004#
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.
mostang.com!davidma8db0b32003-02-08 10:10:59 +000039for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000040do
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
mostang.com!davidma8db0b32003-02-08 10:10:59 +000085 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
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000089 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
92 fi
mostang.com!davidma8db0b32003-02-08 10:10:59 +000093 rm -f conftest.sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000094fi
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
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000240# Find the correct PATH separator. Usually this is `:', but
241# DJGPP uses `;' like DOS.
242if test "X${PATH_SEPARATOR+set}" != Xset; then
243 UNAME=${UNAME-`uname 2>/dev/null`}
244 case X$UNAME in
245 *-DOS) lt_cv_sys_path_separator=';' ;;
246 *) lt_cv_sys_path_separator=':' ;;
247 esac
248 PATH_SEPARATOR=$lt_cv_sys_path_separator
249fi
250
251
252# Check that we are running under the correct shell.
253SHELL=${CONFIG_SHELL-/bin/sh}
254
255case X$ECHO in
256X*--fallback-echo)
257 # Remove one level of quotation (which was required for Make).
258 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
259 ;;
260esac
261
262echo=${ECHO-echo}
263if test "X$1" = X--no-reexec; then
264 # Discard the --no-reexec flag, and continue.
265 shift
266elif test "X$1" = X--fallback-echo; then
267 # Avoid inline document here, it may be left over
268 :
269elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
270 # Yippee, $echo works!
271 :
272else
273 # Restart under the correct shell.
274 exec $SHELL "$0" --no-reexec ${1+"$@"}
275fi
276
277if test "X$1" = X--fallback-echo; then
278 # used as fallback echo
279 shift
280 cat <<EOF
281
282EOF
283 exit 0
284fi
285
286# The HP-UX ksh and POSIX shell print the target directory to stdout
287# if CDPATH is set.
288if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
289
290if test -z "$ECHO"; then
291if test "X${echo_test_string+set}" != Xset; then
292# find a string as large as possible, as long as the shell can cope with it
293 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
294 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
295 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
296 echo_test_string="`eval $cmd`" &&
297 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298 then
299 break
300 fi
301 done
302fi
303
304if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
305 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
306 test "X$echo_testing_string" = "X$echo_test_string"; then
307 :
308else
309 # The Solaris, AIX, and Digital Unix default echo programs unquote
310 # backslashes. This makes it impossible to quote backslashes using
311 # echo "$something" | sed 's/\\/\\\\/g'
312 #
313 # So, first we look for a working echo in the user's PATH.
314
315 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
316 for dir in $PATH /usr/ucb; do
317 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
318 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
319 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
320 test "X$echo_testing_string" = "X$echo_test_string"; then
321 echo="$dir/echo"
322 break
323 fi
324 done
325 IFS="$save_ifs"
326
327 if test "X$echo" = Xecho; then
328 # We didn't find a better echo, so look for alternatives.
329 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
330 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
331 test "X$echo_testing_string" = "X$echo_test_string"; then
332 # This shell has a builtin print -r that does the trick.
333 echo='print -r'
334 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
335 test "X$CONFIG_SHELL" != X/bin/ksh; then
336 # If we have ksh, try running configure again with it.
337 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
338 export ORIGINAL_CONFIG_SHELL
339 CONFIG_SHELL=/bin/ksh
340 export CONFIG_SHELL
341 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
342 else
343 # Try using printf.
344 echo='printf %s\n'
345 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
346 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 # Cool, printf works
349 :
350 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
351 test "X$echo_testing_string" = 'X\t' &&
352 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
353 test "X$echo_testing_string" = "X$echo_test_string"; then
354 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
355 export CONFIG_SHELL
356 SHELL="$CONFIG_SHELL"
357 export SHELL
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
360 test "X$echo_testing_string" = 'X\t' &&
361 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
362 test "X$echo_testing_string" = "X$echo_test_string"; then
363 echo="$CONFIG_SHELL $0 --fallback-echo"
364 else
365 # maybe with a smaller string...
366 prev=:
367
368 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
369 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 then
371 break
372 fi
373 prev="$cmd"
374 done
375
376 if test "$prev" != 'sed 50q "$0"'; then
377 echo_test_string=`eval $prev`
378 export echo_test_string
379 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
380 else
381 # Oops. We lost completely, so just stick with echo.
382 echo=echo
383 fi
384 fi
385 fi
386 fi
387fi
388fi
389
390# Copy echo and quote the copy suitably for passing to libtool from
391# the Makefile, instead of quoting the original, which is used later.
392ECHO=$echo
393if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
394 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395fi
396
397
398
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000399# Name of the host.
400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401# so uname gets run too.
402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404exec 6>&1
405
406#
407# Initializations.
408#
409ac_default_prefix=/usr/local
410ac_config_libobj_dir=.
411cross_compiling=no
412subdirs=
413MFLAGS=
414MAKEFLAGS=
415SHELL=${CONFIG_SHELL-/bin/sh}
416
417# Maximum number of lines to put in a shell here document.
418# This variable seems obsolete. It should probably be removed, and
419# only ac_max_sed_lines should be used.
420: ${ac_max_here_lines=38}
421
422# Identity of this package.
423PACKAGE_NAME=
424PACKAGE_TARNAME=
425PACKAGE_VERSION=
426PACKAGE_STRING=
427PACKAGE_BUGREPORT=
428
429ac_unique_file="src/backtrace.c"
430# Factoring default headers for most tests.
431ac_includes_default="\
432#include <stdio.h>
433#if HAVE_SYS_TYPES_H
434# include <sys/types.h>
435#endif
436#if HAVE_SYS_STAT_H
437# include <sys/stat.h>
438#endif
439#if STDC_HEADERS
440# include <stdlib.h>
441# include <stddef.h>
442#else
443# if HAVE_STDLIB_H
444# include <stdlib.h>
445# endif
446#endif
447#if HAVE_STRING_H
448# if !STDC_HEADERS && HAVE_MEMORY_H
449# include <memory.h>
450# endif
451# include <string.h>
452#endif
453#if HAVE_STRINGS_H
454# include <strings.h>
455#endif
456#if HAVE_INTTYPES_H
457# include <inttypes.h>
458#else
459# if HAVE_STDINT_H
460# include <stdint.h>
461# endif
462#endif
463#if HAVE_UNISTD_H
464# include <unistd.h>
465#endif"
466
mostang.com!davidm6af90d02003-02-15 08:53:55 +0000467ac_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 LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL CCAS CCASFLAGS LIBOBJS REMOTE_ONLY_TRUE REMOTE_ONLY_FALSE ARCH_IA64_TRUE ARCH_IA64_FALSE ARCH_HPPA_TRUE ARCH_HPPA_FALSE ARCH_X86_TRUE ARCH_X86_FALSE OS_LINUX_TRUE OS_LINUX_FALSE arch ARCH LTLIBOBJS'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000468ac_subst_files=''
469
470# Initialize some variables set by options.
471ac_init_help=
472ac_init_version=false
473# The variables have the same names as the options, with
474# dashes changed to underlines.
475cache_file=/dev/null
476exec_prefix=NONE
477no_create=
478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
486verbose=
487x_includes=NONE
488x_libraries=NONE
489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
508ac_prev=
509for ac_option
510do
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
514 ac_prev=
515 continue
516 fi
517
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520 # Accept the important Cygnus configure options, so we can diagnose typos.
521
522 case $ac_option in
523
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 bindir=$ac_optarg ;;
528
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
533
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
540
541 --config-cache | -C)
542 cache_file=config.cache ;;
543
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 ac_prev=datadir ;;
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 | --da=*)
548 datadir=$ac_optarg ;;
549
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
558
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 case $ac_option in
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 *) ac_optarg=yes ;;
569 esac
570 eval "enable_$ac_feature='$ac_optarg'" ;;
571
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
580
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
583 with_gas=yes ;;
584
585 -help | --help | --hel | --he | -h)
586 ac_init_help=long ;;
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
591
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
596
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
603
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 ac_prev=infodir ;;
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
608
609 -libdir | --libdir | --libdi | --libd)
610 ac_prev=libdir ;;
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 libdir=$ac_optarg ;;
613
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
620
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
629
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 ac_prev=mandir ;;
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633 mandir=$ac_optarg ;;
634
635 -nfp | --nfp | --nf)
636 # Obsolete; use --without-fp.
637 with_fp=no ;;
638
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
641 no_create=yes ;;
642
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 no_recursion=yes ;;
646
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
655
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 ac_prev=prefix ;;
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 prefix=$ac_optarg ;;
660
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
667
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
674
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
691
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
694 silent=yes ;;
695
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 ac_prev=sbindir ;;
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 | --sbi=* | --sb=*)
700 sbindir=$ac_optarg ;;
701
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
705 | --sha | --sh)
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 | --sha=* | --sh=*)
711 sharedstatedir=$ac_optarg ;;
712
713 -site | --site | --sit)
714 ac_prev=site ;;
715 -site=* | --site=* | --sit=*)
716 site=$ac_optarg ;;
717
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 ac_prev=srcdir ;;
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 srcdir=$ac_optarg ;;
722
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
729
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
734
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 verbose=yes ;;
737
738 -version | --version | --versio | --versi | --vers | -V)
739 ac_init_version=: ;;
740
741 -with-* | --with-*)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 case $ac_option in
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 *) ac_optarg=yes ;;
751 esac
752 eval "with_$ac_package='$ac_optarg'" ;;
753
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
762
763 --x)
764 # Obsolete; use --with-x.
765 with_x=yes ;;
766
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
773
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
780
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
784 ;;
785
786 *=*)
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
794 export $ac_envvar ;;
795
796 *)
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 ;;
803
804 esac
805done
806
807if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
811fi
812
813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816 eval ac_val=$`echo $ac_var`
817 case $ac_val in
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
821 esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
850 cross_compiling=yes
851 fi
852fi
853
854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
858
859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
870echo X"$0" |
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
875 s/.*/./; q'`
876 srcdir=$ac_confdir
877 if test ! -r $srcdir/$ac_unique_file; then
878 srcdir=..
879 fi
880else
881 ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
887 else
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
890 fi
891fi
892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CC_set=${CC+set}
909ac_env_CC_value=$CC
910ac_cv_env_CC_set=${CC+set}
911ac_cv_env_CC_value=$CC
912ac_env_CFLAGS_set=${CFLAGS+set}
913ac_env_CFLAGS_value=$CFLAGS
914ac_cv_env_CFLAGS_set=${CFLAGS+set}
915ac_cv_env_CFLAGS_value=$CFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924ac_env_CPP_set=${CPP+set}
925ac_env_CPP_value=$CPP
926ac_cv_env_CPP_set=${CPP+set}
927ac_cv_env_CPP_value=$CPP
928
929#
930# Report the --help message.
931#
932if test "$ac_init_help" = "long"; then
933 # Omit some internal or obsolete options to make the list less imposing.
934 # This message is too long to be a string in the A/UX 3.1 sh.
935 cat <<_ACEOF
936\`configure' configures this package to adapt to many kinds of systems.
937
938Usage: $0 [OPTION]... [VAR=VALUE]...
939
940To assign environment variables (e.g., CC, CFLAGS...), specify them as
941VAR=VALUE. See below for descriptions of some of the useful variables.
942
943Defaults for the options are specified in brackets.
944
945Configuration:
946 -h, --help display this help and exit
947 --help=short display options specific to this package
948 --help=recursive display the short help of all the included packages
949 -V, --version display version information and exit
950 -q, --quiet, --silent do not print \`checking...' messages
951 --cache-file=FILE cache test results in FILE [disabled]
952 -C, --config-cache alias for \`--cache-file=config.cache'
953 -n, --no-create do not create output files
954 --srcdir=DIR find the sources in DIR [configure dir or \`..']
955
956_ACEOF
957
958 cat <<_ACEOF
959Installation directories:
960 --prefix=PREFIX install architecture-independent files in PREFIX
961 [$ac_default_prefix]
962 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
963 [PREFIX]
964
965By default, \`make install' will install all the files in
966\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
967an installation prefix other than \`$ac_default_prefix' using \`--prefix',
968for instance \`--prefix=\$HOME'.
969
970For better control, use the options below.
971
972Fine tuning of the installation directories:
973 --bindir=DIR user executables [EPREFIX/bin]
974 --sbindir=DIR system admin executables [EPREFIX/sbin]
975 --libexecdir=DIR program executables [EPREFIX/libexec]
976 --datadir=DIR read-only architecture-independent data [PREFIX/share]
977 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
978 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
979 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
980 --libdir=DIR object code libraries [EPREFIX/lib]
981 --includedir=DIR C header files [PREFIX/include]
982 --oldincludedir=DIR C header files for non-gcc [/usr/include]
983 --infodir=DIR info documentation [PREFIX/info]
984 --mandir=DIR man documentation [PREFIX/man]
985_ACEOF
986
987 cat <<\_ACEOF
988
989Program names:
990 --program-prefix=PREFIX prepend PREFIX to installed program names
991 --program-suffix=SUFFIX append SUFFIX to installed program names
992 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
993
994System types:
995 --build=BUILD configure for building on BUILD [guessed]
996 --host=HOST cross-compile to build programs to run on HOST [BUILD]
997 --target=TARGET configure for building compilers for TARGET [HOST]
998_ACEOF
999fi
1000
1001if test -n "$ac_init_help"; then
1002
1003 cat <<\_ACEOF
1004
1005Optional Features:
1006 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1007 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001008 --enable-maintainer-mode enable make rules and dependencies not useful
1009 (and sometimes confusing) to the casual installer
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001010 --disable-dependency-tracking Speeds up one-time builds
1011 --enable-dependency-tracking Do not reject slow dependency extractors
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001012 --enable-shared=PKGS build shared libraries default=yes
1013 --enable-static=PKGS build static libraries default=yes
1014 --enable-fast-install=PKGS optimize for fast installation default=yes
1015 --disable-libtool-lock avoid locking (might break parallel builds)
1016 --enable-debug turn on debug support (slows down execution)
1017
1018Optional Packages:
1019 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1020 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1021 --with-gnu-ld assume the C compiler uses GNU ld default=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00001022 --with-pic try to use only PIC/non-PIC objects default=use both
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001023
1024Some influential environment variables:
1025 CC C compiler command
1026 CFLAGS C compiler flags
1027 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1028 nonstandard directory <lib dir>
1029 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1030 headers in a nonstandard directory <include dir>
1031 CPP C preprocessor
1032
1033Use these variables to override the choices made by `configure' or to help
1034it to find libraries and programs with nonstandard names/locations.
1035
1036_ACEOF
1037fi
1038
1039if test "$ac_init_help" = "recursive"; then
1040 # If there are subdirs, report their specific --help.
1041 ac_popdir=`pwd`
1042 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1043 test -d $ac_dir || continue
1044 ac_builddir=.
1045
1046if test "$ac_dir" != .; then
1047 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1048 # A "../" for each directory in $ac_dir_suffix.
1049 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1050else
1051 ac_dir_suffix= ac_top_builddir=
1052fi
1053
1054case $srcdir in
1055 .) # No --srcdir option. We are building in place.
1056 ac_srcdir=.
1057 if test -z "$ac_top_builddir"; then
1058 ac_top_srcdir=.
1059 else
1060 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1061 fi ;;
1062 [\\/]* | ?:[\\/]* ) # Absolute path.
1063 ac_srcdir=$srcdir$ac_dir_suffix;
1064 ac_top_srcdir=$srcdir ;;
1065 *) # Relative path.
1066 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1067 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1068esac
1069# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1070# absolute.
1071ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1072ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1073ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1074ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1075
1076 cd $ac_dir
1077 # Check for guested configure; otherwise get Cygnus style configure.
1078 if test -f $ac_srcdir/configure.gnu; then
1079 echo
1080 $SHELL $ac_srcdir/configure.gnu --help=recursive
1081 elif test -f $ac_srcdir/configure; then
1082 echo
1083 $SHELL $ac_srcdir/configure --help=recursive
1084 elif test -f $ac_srcdir/configure.ac ||
1085 test -f $ac_srcdir/configure.in; then
1086 echo
1087 $ac_configure --help
1088 else
1089 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1090 fi
1091 cd $ac_popdir
1092 done
1093fi
1094
1095test -n "$ac_init_help" && exit 0
1096if $ac_init_version; then
1097 cat <<\_ACEOF
1098
1099Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1100Free Software Foundation, Inc.
1101This configure script is free software; the Free Software Foundation
1102gives unlimited permission to copy, distribute and modify it.
1103_ACEOF
1104 exit 0
1105fi
1106exec 5>config.log
1107cat >&5 <<_ACEOF
1108This file contains any messages produced by compilers while
1109running configure, to aid debugging if configure makes a mistake.
1110
1111It was created by $as_me, which was
mostang.com!davidma8db0b32003-02-08 10:10:59 +00001112generated by GNU Autoconf 2.54. Invocation command line was
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001113
1114 $ $0 $@
1115
1116_ACEOF
1117{
1118cat <<_ASUNAME
1119## --------- ##
1120## Platform. ##
1121## --------- ##
1122
1123hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1124uname -m = `(uname -m) 2>/dev/null || echo unknown`
1125uname -r = `(uname -r) 2>/dev/null || echo unknown`
1126uname -s = `(uname -s) 2>/dev/null || echo unknown`
1127uname -v = `(uname -v) 2>/dev/null || echo unknown`
1128
1129/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1130/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1131
1132/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1133/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1134/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1135hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1136/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1137/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1138/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1139
1140_ASUNAME
1141
1142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1143for as_dir in $PATH
1144do
1145 IFS=$as_save_IFS
1146 test -z "$as_dir" && as_dir=.
1147 echo "PATH: $as_dir"
1148done
1149
1150} >&5
1151
1152cat >&5 <<_ACEOF
1153
1154
1155## ----------- ##
1156## Core tests. ##
1157## ----------- ##
1158
1159_ACEOF
1160
1161
1162# Keep a trace of the command line.
1163# Strip out --no-create and --no-recursion so they do not pile up.
1164# Also quote any args containing shell meta-characters.
1165ac_configure_args=
1166ac_sep=
mostang.com!davidma8db0b32003-02-08 10:10:59 +00001167for ac_arg
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001168do
mostang.com!davidma8db0b32003-02-08 10:10:59 +00001169 case $ac_arg in
1170 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171 | --no-cr | --no-c | -n ) continue ;;
1172 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174 continue ;;
1175 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1176 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1177 esac
1178 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1179 # Get rid of the leading space.
1180 ac_sep=" "
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001181done
1182
1183# When interrupted or exit'd, cleanup temporary files, and complete
1184# config.log. We remove comments because anyway the quotes in there
1185# would cause problems or look ugly.
1186# WARNING: Be sure not to use single quotes in there, as some shells,
1187# such as our DU 5.0 friend, will then `close' the trap.
1188trap 'exit_status=$?
1189 # Save into config.log some information that might help in debugging.
1190 {
1191 echo
1192
1193 cat <<\_ASBOX
1194## ---------------- ##
1195## Cache variables. ##
1196## ---------------- ##
1197_ASBOX
1198 echo
1199 # The following way of writing the cache mishandles newlines in values,
1200{
1201 (set) 2>&1 |
1202 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1203 *ac_space=\ *)
1204 sed -n \
1205 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1207 ;;
1208 *)
1209 sed -n \
1210 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1211 ;;
1212 esac;
1213}
1214 echo
1215
1216 cat <<\_ASBOX
1217## ----------------- ##
1218## Output variables. ##
1219## ----------------- ##
1220_ASBOX
1221 echo
1222 for ac_var in $ac_subst_vars
1223 do
1224 eval ac_val=$`echo $ac_var`
1225 echo "$ac_var='"'"'$ac_val'"'"'"
1226 done | sort
1227 echo
1228
1229 if test -n "$ac_subst_files"; then
1230 cat <<\_ASBOX
1231## ------------- ##
1232## Output files. ##
1233## ------------- ##
1234_ASBOX
1235 echo
1236 for ac_var in $ac_subst_files
1237 do
1238 eval ac_val=$`echo $ac_var`
1239 echo "$ac_var='"'"'$ac_val'"'"'"
1240 done | sort
1241 echo
1242 fi
1243
1244 if test -s confdefs.h; then
1245 cat <<\_ASBOX
1246## ----------- ##
1247## confdefs.h. ##
1248## ----------- ##
1249_ASBOX
1250 echo
1251 sed "/^$/d" confdefs.h | sort
1252 echo
1253 fi
1254 test "$ac_signal" != 0 &&
1255 echo "$as_me: caught signal $ac_signal"
1256 echo "$as_me: exit $exit_status"
1257 } >&5
1258 rm -f core core.* *.core &&
1259 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1260 exit $exit_status
1261 ' 0
1262for ac_signal in 1 2 13 15; do
1263 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1264done
1265ac_signal=0
1266
1267# confdefs.h avoids OS command line length limits that DEFS can exceed.
1268rm -rf conftest* confdefs.h
1269# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1270echo >confdefs.h
1271
1272# Predefined preprocessor variables.
1273
1274cat >>confdefs.h <<_ACEOF
1275#define PACKAGE_NAME "$PACKAGE_NAME"
1276_ACEOF
1277
1278
1279cat >>confdefs.h <<_ACEOF
1280#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1281_ACEOF
1282
1283
1284cat >>confdefs.h <<_ACEOF
1285#define PACKAGE_VERSION "$PACKAGE_VERSION"
1286_ACEOF
1287
1288
1289cat >>confdefs.h <<_ACEOF
1290#define PACKAGE_STRING "$PACKAGE_STRING"
1291_ACEOF
1292
1293
1294cat >>confdefs.h <<_ACEOF
1295#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1296_ACEOF
1297
1298
1299# Let the site file select an alternate cache file if it wants to.
1300# Prefer explicitly selected file to automatically selected ones.
1301if test -z "$CONFIG_SITE"; then
1302 if test "x$prefix" != xNONE; then
1303 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1304 else
1305 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1306 fi
1307fi
1308for ac_site_file in $CONFIG_SITE; do
1309 if test -r "$ac_site_file"; then
1310 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1311echo "$as_me: loading site script $ac_site_file" >&6;}
1312 sed 's/^/| /' "$ac_site_file" >&5
1313 . "$ac_site_file"
1314 fi
1315done
1316
1317if test -r "$cache_file"; then
1318 # Some versions of bash will fail to source /dev/null (special
1319 # files actually), so we avoid doing that.
1320 if test -f "$cache_file"; then
1321 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1322echo "$as_me: loading cache $cache_file" >&6;}
1323 case $cache_file in
1324 [\\/]* | ?:[\\/]* ) . $cache_file;;
1325 *) . ./$cache_file;;
1326 esac
1327 fi
1328else
1329 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1330echo "$as_me: creating cache $cache_file" >&6;}
1331 >$cache_file
1332fi
1333
1334# Check that the precious variables saved in the cache have kept the same
1335# value.
1336ac_cache_corrupted=false
1337for ac_var in `(set) 2>&1 |
1338 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1339 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1340 eval ac_new_set=\$ac_env_${ac_var}_set
1341 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1342 eval ac_new_val="\$ac_env_${ac_var}_value"
1343 case $ac_old_set,$ac_new_set in
1344 set,)
1345 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1346echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1347 ac_cache_corrupted=: ;;
1348 ,set)
1349 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1350echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1351 ac_cache_corrupted=: ;;
1352 ,);;
1353 *)
1354 if test "x$ac_old_val" != "x$ac_new_val"; then
1355 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1356echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1357 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1358echo "$as_me: former value: $ac_old_val" >&2;}
1359 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1360echo "$as_me: current value: $ac_new_val" >&2;}
1361 ac_cache_corrupted=:
1362 fi;;
1363 esac
1364 # Pass precious variables to config.status.
1365 if test "$ac_new_set" = set; then
1366 case $ac_new_val in
1367 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1368 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1369 *) ac_arg=$ac_var=$ac_new_val ;;
1370 esac
1371 case " $ac_configure_args " in
1372 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1373 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1374 esac
1375 fi
1376done
1377if $ac_cache_corrupted; then
1378 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1379echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1380 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1381echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1382 { (exit 1); exit 1; }; }
1383fi
1384
1385ac_ext=c
1386ac_cpp='$CPP $CPPFLAGS'
1387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1389ac_compiler_gnu=$ac_cv_c_compiler_gnu
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409ac_aux_dir=
1410for ac_dir in aux $srcdir/aux; do
1411 if test -f $ac_dir/install-sh; then
1412 ac_aux_dir=$ac_dir
1413 ac_install_sh="$ac_aux_dir/install-sh -c"
1414 break
1415 elif test -f $ac_dir/install.sh; then
1416 ac_aux_dir=$ac_dir
1417 ac_install_sh="$ac_aux_dir/install.sh -c"
1418 break
1419 elif test -f $ac_dir/shtool; then
1420 ac_aux_dir=$ac_dir
1421 ac_install_sh="$ac_aux_dir/shtool install -c"
1422 break
1423 fi
1424done
1425if test -z "$ac_aux_dir"; then
1426 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&5
1427echo "$as_me: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&2;}
1428 { (exit 1); exit 1; }; }
1429fi
1430ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1431ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1432ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1433
1434# Make sure we can run config.sub.
1435$ac_config_sub sun4 >/dev/null 2>&1 ||
1436 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1437echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1438 { (exit 1); exit 1; }; }
1439
1440echo "$as_me:$LINENO: checking build system type" >&5
1441echo $ECHO_N "checking build system type... $ECHO_C" >&6
1442if test "${ac_cv_build+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1444else
1445 ac_cv_build_alias=$build_alias
1446test -z "$ac_cv_build_alias" &&
1447 ac_cv_build_alias=`$ac_config_guess`
1448test -z "$ac_cv_build_alias" &&
1449 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1450echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1451 { (exit 1); exit 1; }; }
1452ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1453 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1454echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1455 { (exit 1); exit 1; }; }
1456
1457fi
1458echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1459echo "${ECHO_T}$ac_cv_build" >&6
1460build=$ac_cv_build
1461build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1462build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1463build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1464
1465
1466echo "$as_me:$LINENO: checking host system type" >&5
1467echo $ECHO_N "checking host system type... $ECHO_C" >&6
1468if test "${ac_cv_host+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1470else
1471 ac_cv_host_alias=$host_alias
1472test -z "$ac_cv_host_alias" &&
1473 ac_cv_host_alias=$ac_cv_build_alias
1474ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1475 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1476echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1477 { (exit 1); exit 1; }; }
1478
1479fi
1480echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1481echo "${ECHO_T}$ac_cv_host" >&6
1482host=$ac_cv_host
1483host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1484host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1485host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1486
1487
1488echo "$as_me:$LINENO: checking target system type" >&5
1489echo $ECHO_N "checking target system type... $ECHO_C" >&6
1490if test "${ac_cv_target+set}" = set; then
1491 echo $ECHO_N "(cached) $ECHO_C" >&6
1492else
1493 ac_cv_target_alias=$target_alias
1494test "x$ac_cv_target_alias" = "x" &&
1495 ac_cv_target_alias=$ac_cv_host_alias
1496ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1497 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1498echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1499 { (exit 1); exit 1; }; }
1500
1501fi
1502echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1503echo "${ECHO_T}$ac_cv_target" >&6
1504target=$ac_cv_target
1505target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1506target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1507target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1508
1509
1510# The aliases save the names the user supplied, while $host etc.
1511# will get canonicalized.
1512test -n "$target_alias" &&
1513 test "$program_prefix$program_suffix$program_transform_name" = \
1514 NONENONEs,x,x, &&
1515 program_prefix=${target_alias}-
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001516am__api_version="1.6"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001517# Find a good install program. We prefer a C program (faster),
1518# so one script is as good as another. But avoid the broken or
1519# incompatible versions:
1520# SysV /etc/install, /usr/sbin/install
1521# SunOS /usr/etc/install
1522# IRIX /sbin/install
1523# AIX /bin/install
1524# AmigaOS /C/install, which installs bootblocks on floppy discs
1525# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1526# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1527# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1528# ./install, which can be erroneously created by make from ./install.sh.
1529echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1530echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1531if test -z "$INSTALL"; then
1532if test "${ac_cv_path_install+set}" = set; then
1533 echo $ECHO_N "(cached) $ECHO_C" >&6
1534else
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536for as_dir in $PATH
1537do
1538 IFS=$as_save_IFS
1539 test -z "$as_dir" && as_dir=.
1540 # Account for people who put trailing slashes in PATH elements.
1541case $as_dir/ in
1542 ./ | .// | /cC/* | \
1543 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1544 /usr/ucb/* ) ;;
1545 *)
1546 # OSF1 and SCO ODT 3.0 have their own names for install.
1547 # Don't use installbsd from OSF since it installs stuff as root
1548 # by default.
1549 for ac_prog in ginstall scoinst install; do
1550 for ac_exec_ext in '' $ac_executable_extensions; do
1551 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1552 if test $ac_prog = install &&
1553 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1554 # AIX install. It has an incompatible calling convention.
1555 :
1556 elif test $ac_prog = install &&
1557 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1558 # program-specific install script used by HP pwplus--don't use.
1559 :
1560 else
1561 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1562 break 3
1563 fi
1564 fi
1565 done
1566 done
1567 ;;
1568esac
1569done
1570
1571
1572fi
1573 if test "${ac_cv_path_install+set}" = set; then
1574 INSTALL=$ac_cv_path_install
1575 else
1576 # As a last resort, use the slow shell script. We don't cache a
1577 # path for INSTALL within a source directory, because that will
1578 # break other packages using the cache if that directory is
1579 # removed, or if the path is relative.
1580 INSTALL=$ac_install_sh
1581 fi
1582fi
1583echo "$as_me:$LINENO: result: $INSTALL" >&5
1584echo "${ECHO_T}$INSTALL" >&6
1585
1586# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1587# It thinks the first close brace ends the variable substitution.
1588test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1589
1590test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1591
1592test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1593
1594echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1595echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1596# Just in case
1597sleep 1
1598echo timestamp > conftest.file
1599# Do `set' in a subshell so we don't clobber the current shell's
1600# arguments. Must try -L first in case configure is actually a
1601# symlink; some systems play weird games with the mod time of symlinks
1602# (eg FreeBSD returns the mod time of the symlink's containing
1603# directory).
1604if (
1605 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1606 if test "$*" = "X"; then
1607 # -L didn't work.
1608 set X `ls -t $srcdir/configure conftest.file`
1609 fi
1610 rm -f conftest.file
1611 if test "$*" != "X $srcdir/configure conftest.file" \
1612 && test "$*" != "X conftest.file $srcdir/configure"; then
1613
1614 # If neither matched, then we have a broken ls. This can happen
1615 # if, for instance, CONFIG_SHELL is bash and it inherits a
1616 # broken ls alias from the environment. This has actually
1617 # happened. Such a system could not be considered "sane".
1618 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1619alias in your environment" >&5
1620echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1621alias in your environment" >&2;}
1622 { (exit 1); exit 1; }; }
1623 fi
1624
1625 test "$2" = conftest.file
1626 )
1627then
1628 # Ok.
1629 :
1630else
1631 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1632Check your system clock" >&5
1633echo "$as_me: error: newly created file is older than distributed files!
1634Check your system clock" >&2;}
1635 { (exit 1); exit 1; }; }
1636fi
1637echo "$as_me:$LINENO: result: yes" >&5
1638echo "${ECHO_T}yes" >&6
1639test "$program_prefix" != NONE &&
1640 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1641# Use a double $ so make ignores it.
1642test "$program_suffix" != NONE &&
1643 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1644# Double any \ or $. echo might interpret backslashes.
1645# By default was `s,x,x', remove it if useless.
1646cat <<\_ACEOF >conftest.sed
1647s/[\\$]/&&/g;s/;s,x,x,$//
1648_ACEOF
1649program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1650rm conftest.sed
1651
1652
1653# expand $ac_aux_dir to an absolute path
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001654am_aux_dir=`cd $ac_aux_dir && pwd`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001655
1656test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1657# Use eval to expand $SHELL
1658if eval "$MISSING --run true"; then
1659 am_missing_run="$MISSING --run "
1660else
1661 am_missing_run=
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001662 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1663echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001664fi
1665
1666for ac_prog in gawk mawk nawk awk
1667do
1668 # Extract the first word of "$ac_prog", so it can be a program name with args.
1669set dummy $ac_prog; ac_word=$2
1670echo "$as_me:$LINENO: checking for $ac_word" >&5
1671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1672if test "${ac_cv_prog_AWK+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1674else
1675 if test -n "$AWK"; then
1676 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1677else
1678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679for as_dir in $PATH
1680do
1681 IFS=$as_save_IFS
1682 test -z "$as_dir" && as_dir=.
1683 for ac_exec_ext in '' $ac_executable_extensions; do
1684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1685 ac_cv_prog_AWK="$ac_prog"
1686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1687 break 2
1688 fi
1689done
1690done
1691
1692fi
1693fi
1694AWK=$ac_cv_prog_AWK
1695if test -n "$AWK"; then
1696 echo "$as_me:$LINENO: result: $AWK" >&5
1697echo "${ECHO_T}$AWK" >&6
1698else
1699 echo "$as_me:$LINENO: result: no" >&5
1700echo "${ECHO_T}no" >&6
1701fi
1702
1703 test -n "$AWK" && break
1704done
1705
mostang.com!davidma8db0b32003-02-08 10:10:59 +00001706echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1707echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001708set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1709if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1711else
1712 cat >conftest.make <<\_ACEOF
1713all:
mostang.com!davidma8db0b32003-02-08 10:10:59 +00001714 @echo 'ac_maketemp="${MAKE}"'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001715_ACEOF
1716# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1717eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1718if test -n "$ac_maketemp"; then
1719 eval ac_cv_prog_make_${ac_make}_set=yes
1720else
1721 eval ac_cv_prog_make_${ac_make}_set=no
1722fi
1723rm -f conftest.make
1724fi
1725if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1726 echo "$as_me:$LINENO: result: yes" >&5
1727echo "${ECHO_T}yes" >&6
1728 SET_MAKE=
1729else
1730 echo "$as_me:$LINENO: result: no" >&5
1731echo "${ECHO_T}no" >&6
1732 SET_MAKE="MAKE=${MAKE-make}"
1733fi
1734
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001735 # test to see if srcdir already configured
1736if test "`cd $srcdir && pwd`" != "`pwd`" &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001737 test -f $srcdir/config.status; then
1738 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1739echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1740 { (exit 1); exit 1; }; }
1741fi
1742
1743# Define the identity of the package.
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001744 PACKAGE=libunwind
mostang.com!davidmc7aaa682003-03-19 19:25:18 +00001745 VERSION=0.91
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001746
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001747
1748cat >>confdefs.h <<_ACEOF
1749#define PACKAGE "$PACKAGE"
1750_ACEOF
1751
1752
1753cat >>confdefs.h <<_ACEOF
1754#define VERSION "$VERSION"
1755_ACEOF
1756
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001757# Some tools Automake needs.
1758
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001759ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001760
1761
1762AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1763
1764
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001765AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001766
1767
1768AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1769
1770
1771MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1772
1773
1774AMTAR=${AMTAR-"${am_missing_run}tar"}
1775
1776install_sh=${install_sh-"$am_aux_dir/install-sh"}
1777
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001778# Installed binaries are usually stripped using `strip' when the user
1779# run `make install-strip'. However `strip' might not be the right
1780# tool to use in cross-compilation environments, therefore Automake
1781# will honor the `STRIP' environment variable to overrule this program.
1782if test "$cross_compiling" != no; then
1783 if test -n "$ac_tool_prefix"; then
1784 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1785set dummy ${ac_tool_prefix}strip; ac_word=$2
1786echo "$as_me:$LINENO: checking for $ac_word" >&5
1787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788if test "${ac_cv_prog_STRIP+set}" = set; then
1789 echo $ECHO_N "(cached) $ECHO_C" >&6
1790else
1791 if test -n "$STRIP"; then
1792 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1793else
1794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795for as_dir in $PATH
1796do
1797 IFS=$as_save_IFS
1798 test -z "$as_dir" && as_dir=.
1799 for ac_exec_ext in '' $ac_executable_extensions; do
1800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803 break 2
1804 fi
1805done
1806done
1807
1808fi
1809fi
1810STRIP=$ac_cv_prog_STRIP
1811if test -n "$STRIP"; then
1812 echo "$as_me:$LINENO: result: $STRIP" >&5
1813echo "${ECHO_T}$STRIP" >&6
1814else
1815 echo "$as_me:$LINENO: result: no" >&5
1816echo "${ECHO_T}no" >&6
1817fi
1818
1819fi
1820if test -z "$ac_cv_prog_STRIP"; then
1821 ac_ct_STRIP=$STRIP
1822 # Extract the first word of "strip", so it can be a program name with args.
1823set dummy strip; ac_word=$2
1824echo "$as_me:$LINENO: checking for $ac_word" >&5
1825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1828else
1829 if test -n "$ac_ct_STRIP"; then
1830 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1831else
1832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833for as_dir in $PATH
1834do
1835 IFS=$as_save_IFS
1836 test -z "$as_dir" && as_dir=.
1837 for ac_exec_ext in '' $ac_executable_extensions; do
1838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839 ac_cv_prog_ac_ct_STRIP="strip"
1840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 break 2
1842 fi
1843done
1844done
1845
1846 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1847fi
1848fi
1849ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1850if test -n "$ac_ct_STRIP"; then
1851 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1852echo "${ECHO_T}$ac_ct_STRIP" >&6
1853else
1854 echo "$as_me:$LINENO: result: no" >&5
1855echo "${ECHO_T}no" >&6
1856fi
1857
1858 STRIP=$ac_ct_STRIP
1859else
1860 STRIP="$ac_cv_prog_STRIP"
1861fi
1862
1863fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001864INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1865
1866# We need awk for the "check" target. The system "awk" is bad on
1867# some platforms.
1868
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001869
1870
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001871echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1872echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1873 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1874if test "${enable_maintainer_mode+set}" = set; then
1875 enableval="$enable_maintainer_mode"
1876 USE_MAINTAINER_MODE=$enableval
1877else
1878 USE_MAINTAINER_MODE=no
1879fi;
1880 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1881echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1882
1883
1884if test $USE_MAINTAINER_MODE = yes; then
1885 MAINTAINER_MODE_TRUE=
1886 MAINTAINER_MODE_FALSE='#'
1887else
1888 MAINTAINER_MODE_TRUE='#'
1889 MAINTAINER_MODE_FALSE=
1890fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001891
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001892 MAINT=$MAINTAINER_MODE_TRUE
1893
1894
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001895# Add the stamp file to the list of files AC keeps track of,
1896# along with our hook.
1897 ac_config_headers="$ac_config_headers include/config.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001898
1899
1900
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001901
1902ac_ext=c
1903ac_cpp='$CPP $CPPFLAGS'
1904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1906ac_compiler_gnu=$ac_cv_c_compiler_gnu
1907if test -n "$ac_tool_prefix"; then
1908 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1909set dummy ${ac_tool_prefix}gcc; 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
1918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919for as_dir in $PATH
1920do
1921 IFS=$as_save_IFS
1922 test -z "$as_dir" && as_dir=.
1923 for ac_exec_ext in '' $ac_executable_extensions; do
1924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927 break 2
1928 fi
1929done
1930done
1931
1932fi
1933fi
1934CC=$ac_cv_prog_CC
1935if test -n "$CC"; then
1936 echo "$as_me:$LINENO: result: $CC" >&5
1937echo "${ECHO_T}$CC" >&6
1938else
1939 echo "$as_me:$LINENO: result: no" >&5
1940echo "${ECHO_T}no" >&6
1941fi
1942
1943fi
1944if test -z "$ac_cv_prog_CC"; then
1945 ac_ct_CC=$CC
1946 # Extract the first word of "gcc", so it can be a program name with args.
1947set dummy gcc; ac_word=$2
1948echo "$as_me:$LINENO: checking for $ac_word" >&5
1949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1950if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1951 echo $ECHO_N "(cached) $ECHO_C" >&6
1952else
1953 if test -n "$ac_ct_CC"; then
1954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1955else
1956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957for as_dir in $PATH
1958do
1959 IFS=$as_save_IFS
1960 test -z "$as_dir" && as_dir=.
1961 for ac_exec_ext in '' $ac_executable_extensions; do
1962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963 ac_cv_prog_ac_ct_CC="gcc"
1964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965 break 2
1966 fi
1967done
1968done
1969
1970fi
1971fi
1972ac_ct_CC=$ac_cv_prog_ac_ct_CC
1973if test -n "$ac_ct_CC"; then
1974 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1975echo "${ECHO_T}$ac_ct_CC" >&6
1976else
1977 echo "$as_me:$LINENO: result: no" >&5
1978echo "${ECHO_T}no" >&6
1979fi
1980
1981 CC=$ac_ct_CC
1982else
1983 CC="$ac_cv_prog_CC"
1984fi
1985
1986if test -z "$CC"; then
1987 if test -n "$ac_tool_prefix"; then
1988 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1989set dummy ${ac_tool_prefix}cc; ac_word=$2
1990echo "$as_me:$LINENO: checking for $ac_word" >&5
1991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992if test "${ac_cv_prog_CC+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1994else
1995 if test -n "$CC"; then
1996 ac_cv_prog_CC="$CC" # Let the user override the test.
1997else
1998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999for as_dir in $PATH
2000do
2001 IFS=$as_save_IFS
2002 test -z "$as_dir" && as_dir=.
2003 for ac_exec_ext in '' $ac_executable_extensions; do
2004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2005 ac_cv_prog_CC="${ac_tool_prefix}cc"
2006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007 break 2
2008 fi
2009done
2010done
2011
2012fi
2013fi
2014CC=$ac_cv_prog_CC
2015if test -n "$CC"; then
2016 echo "$as_me:$LINENO: result: $CC" >&5
2017echo "${ECHO_T}$CC" >&6
2018else
2019 echo "$as_me:$LINENO: result: no" >&5
2020echo "${ECHO_T}no" >&6
2021fi
2022
2023fi
2024if test -z "$ac_cv_prog_CC"; then
2025 ac_ct_CC=$CC
2026 # Extract the first word of "cc", so it can be a program name with args.
2027set dummy cc; ac_word=$2
2028echo "$as_me:$LINENO: checking for $ac_word" >&5
2029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032else
2033 if test -n "$ac_ct_CC"; then
2034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2035else
2036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037for as_dir in $PATH
2038do
2039 IFS=$as_save_IFS
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043 ac_cv_prog_ac_ct_CC="cc"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 break 2
2046 fi
2047done
2048done
2049
2050fi
2051fi
2052ac_ct_CC=$ac_cv_prog_ac_ct_CC
2053if test -n "$ac_ct_CC"; then
2054 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2055echo "${ECHO_T}$ac_ct_CC" >&6
2056else
2057 echo "$as_me:$LINENO: result: no" >&5
2058echo "${ECHO_T}no" >&6
2059fi
2060
2061 CC=$ac_ct_CC
2062else
2063 CC="$ac_cv_prog_CC"
2064fi
2065
2066fi
2067if test -z "$CC"; then
2068 # Extract the first word of "cc", so it can be a program name with args.
2069set dummy cc; ac_word=$2
2070echo "$as_me:$LINENO: checking for $ac_word" >&5
2071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072if test "${ac_cv_prog_CC+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074else
2075 if test -n "$CC"; then
2076 ac_cv_prog_CC="$CC" # Let the user override the test.
2077else
2078 ac_prog_rejected=no
2079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080for as_dir in $PATH
2081do
2082 IFS=$as_save_IFS
2083 test -z "$as_dir" && as_dir=.
2084 for ac_exec_ext in '' $ac_executable_extensions; do
2085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2086 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2087 ac_prog_rejected=yes
2088 continue
2089 fi
2090 ac_cv_prog_CC="cc"
2091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092 break 2
2093 fi
2094done
2095done
2096
2097if test $ac_prog_rejected = yes; then
2098 # We found a bogon in the path, so make sure we never use it.
2099 set dummy $ac_cv_prog_CC
2100 shift
2101 if test $# != 0; then
2102 # We chose a different compiler from the bogus one.
2103 # However, it has the same basename, so the bogon will be chosen
2104 # first if we set CC to just the basename; use the full file name.
2105 shift
2106 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2107 fi
2108fi
2109fi
2110fi
2111CC=$ac_cv_prog_CC
2112if test -n "$CC"; then
2113 echo "$as_me:$LINENO: result: $CC" >&5
2114echo "${ECHO_T}$CC" >&6
2115else
2116 echo "$as_me:$LINENO: result: no" >&5
2117echo "${ECHO_T}no" >&6
2118fi
2119
2120fi
2121if test -z "$CC"; then
2122 if test -n "$ac_tool_prefix"; then
2123 for ac_prog in cl
2124 do
2125 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2126set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2127echo "$as_me:$LINENO: checking for $ac_word" >&5
2128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2129if test "${ac_cv_prog_CC+set}" = set; then
2130 echo $ECHO_N "(cached) $ECHO_C" >&6
2131else
2132 if test -n "$CC"; then
2133 ac_cv_prog_CC="$CC" # Let the user override the test.
2134else
2135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136for as_dir in $PATH
2137do
2138 IFS=$as_save_IFS
2139 test -z "$as_dir" && as_dir=.
2140 for ac_exec_ext in '' $ac_executable_extensions; do
2141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2142 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2144 break 2
2145 fi
2146done
2147done
2148
2149fi
2150fi
2151CC=$ac_cv_prog_CC
2152if test -n "$CC"; then
2153 echo "$as_me:$LINENO: result: $CC" >&5
2154echo "${ECHO_T}$CC" >&6
2155else
2156 echo "$as_me:$LINENO: result: no" >&5
2157echo "${ECHO_T}no" >&6
2158fi
2159
2160 test -n "$CC" && break
2161 done
2162fi
2163if test -z "$CC"; then
2164 ac_ct_CC=$CC
2165 for ac_prog in cl
2166do
2167 # Extract the first word of "$ac_prog", so it can be a program name with args.
2168set dummy $ac_prog; ac_word=$2
2169echo "$as_me:$LINENO: checking for $ac_word" >&5
2170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2171if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2173else
2174 if test -n "$ac_ct_CC"; then
2175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2176else
2177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178for as_dir in $PATH
2179do
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184 ac_cv_prog_ac_ct_CC="$ac_prog"
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186 break 2
2187 fi
2188done
2189done
2190
2191fi
2192fi
2193ac_ct_CC=$ac_cv_prog_ac_ct_CC
2194if test -n "$ac_ct_CC"; then
2195 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2196echo "${ECHO_T}$ac_ct_CC" >&6
2197else
2198 echo "$as_me:$LINENO: result: no" >&5
2199echo "${ECHO_T}no" >&6
2200fi
2201
2202 test -n "$ac_ct_CC" && break
2203done
2204
2205 CC=$ac_ct_CC
2206fi
2207
2208fi
2209
2210
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002211test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2212echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002213 { (exit 1); exit 1; }; }
2214
2215# Provide some information about the compiler.
2216echo "$as_me:$LINENO:" \
2217 "checking for C compiler version" >&5
2218ac_compiler=`set X $ac_compile; echo $2`
2219{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2220 (eval $ac_compiler --version </dev/null >&5) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }
2224{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2225 (eval $ac_compiler -v </dev/null >&5) 2>&5
2226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }
2229{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2230 (eval $ac_compiler -V </dev/null >&5) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }
2234
2235cat >conftest.$ac_ext <<_ACEOF
2236#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002237#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002238
2239int
2240main ()
2241{
2242
2243 ;
2244 return 0;
2245}
2246_ACEOF
2247ac_clean_files_save=$ac_clean_files
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002248ac_clean_files="$ac_clean_files a.out a.exe"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002249# Try to create an executable without -o first, disregard a.out.
2250# It will help us diagnose broken compilers, and finding out an intuition
2251# of exeext.
2252echo "$as_me:$LINENO: checking for C compiler default output" >&5
2253echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2254ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2255if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2256 (eval $ac_link_default) 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; then
2260 # Find the output, starting from the most likely. This scheme is
2261# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2262# resort.
2263
2264# Be careful to initialize this variable, since it used to be cached.
2265# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2266ac_cv_exeext=
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002267for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002268 test -f "$ac_file" || continue
2269 case $ac_file in
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2271 a.out ) # We found the default executable, but exeext='' is most
2272 # certainly right.
2273 break;;
2274 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2275 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2276 export ac_cv_exeext
2277 break;;
2278 * ) break;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002279 esac
2280done
2281else
2282 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002283cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002284{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002285check \`config.log' for details." >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002286echo "$as_me: error: C compiler cannot create executables
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002287check \`config.log' for details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002288 { (exit 77); exit 77; }; }
2289fi
2290
2291ac_exeext=$ac_cv_exeext
2292echo "$as_me:$LINENO: result: $ac_file" >&5
2293echo "${ECHO_T}$ac_file" >&6
2294
2295# Check the compiler produces executables we can run. If not, either
2296# the compiler is broken, or we cross compile.
2297echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2298echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2299# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2300# If not cross compiling, check that we can run a simple program.
2301if test "$cross_compiling" != yes; then
2302 if { ac_try='./$ac_file'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 (eval $ac_try) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2308 cross_compiling=no
2309 else
2310 if test "$cross_compiling" = maybe; then
2311 cross_compiling=yes
2312 else
2313 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002314If you meant to cross compile, use \`--host'." >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002315echo "$as_me: error: cannot run C compiled programs.
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002316If you meant to cross compile, use \`--host'." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002317 { (exit 1); exit 1; }; }
2318 fi
2319 fi
2320fi
2321echo "$as_me:$LINENO: result: yes" >&5
2322echo "${ECHO_T}yes" >&6
2323
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002324rm -f a.out a.exe conftest$ac_cv_exeext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002325ac_clean_files=$ac_clean_files_save
2326# Check the compiler produces executables we can run. If not, either
2327# the compiler is broken, or we cross compile.
2328echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2329echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2330echo "$as_me:$LINENO: result: $cross_compiling" >&5
2331echo "${ECHO_T}$cross_compiling" >&6
2332
2333echo "$as_me:$LINENO: checking for suffix of executables" >&5
2334echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2336 (eval $ac_link) 2>&5
2337 ac_status=$?
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; then
2340 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2341# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2342# work properly (i.e., refer to `conftest.exe'), while it won't with
2343# `rm'.
2344for ac_file in conftest.exe conftest conftest.*; do
2345 test -f "$ac_file" || continue
2346 case $ac_file in
2347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2348 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2349 export ac_cv_exeext
2350 break;;
2351 * ) break;;
2352 esac
2353done
2354else
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002355 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2356echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002357 { (exit 1); exit 1; }; }
2358fi
2359
2360rm -f conftest$ac_cv_exeext
2361echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2362echo "${ECHO_T}$ac_cv_exeext" >&6
2363
2364rm -f conftest.$ac_ext
2365EXEEXT=$ac_cv_exeext
2366ac_exeext=$EXEEXT
2367echo "$as_me:$LINENO: checking for suffix of object files" >&5
2368echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2369if test "${ac_cv_objext+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371else
2372 cat >conftest.$ac_ext <<_ACEOF
2373#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002374#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002375
2376int
2377main ()
2378{
2379
2380 ;
2381 return 0;
2382}
2383_ACEOF
2384rm -f conftest.o conftest.obj
2385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2386 (eval $ac_compile) 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; then
2390 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2391 case $ac_file in
2392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2393 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2394 break;;
2395 esac
2396done
2397else
2398 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002399cat conftest.$ac_ext >&5
2400{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2401echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002402 { (exit 1); exit 1; }; }
2403fi
2404
2405rm -f conftest.$ac_cv_objext conftest.$ac_ext
2406fi
2407echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2408echo "${ECHO_T}$ac_cv_objext" >&6
2409OBJEXT=$ac_cv_objext
2410ac_objext=$OBJEXT
2411echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2412echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2413if test "${ac_cv_c_compiler_gnu+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2415else
2416 cat >conftest.$ac_ext <<_ACEOF
2417#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002418#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002419
2420int
2421main ()
2422{
2423#ifndef __GNUC__
2424 choke me
2425#endif
2426
2427 ;
2428 return 0;
2429}
2430_ACEOF
2431rm -f conftest.$ac_objext
2432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433 (eval $ac_compile) 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } &&
2437 { ac_try='test -s conftest.$ac_objext'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 (eval $ac_try) 2>&5
2440 ac_status=$?
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2443 ac_compiler_gnu=yes
2444else
2445 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002446cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002447ac_compiler_gnu=no
2448fi
2449rm -f conftest.$ac_objext conftest.$ac_ext
2450ac_cv_c_compiler_gnu=$ac_compiler_gnu
2451
2452fi
2453echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2454echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2455GCC=`test $ac_compiler_gnu = yes && echo yes`
2456ac_test_CFLAGS=${CFLAGS+set}
2457ac_save_CFLAGS=$CFLAGS
2458CFLAGS="-g"
2459echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2460echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2461if test "${ac_cv_prog_cc_g+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2463else
2464 cat >conftest.$ac_ext <<_ACEOF
2465#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002466#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002467
2468int
2469main ()
2470{
2471
2472 ;
2473 return 0;
2474}
2475_ACEOF
2476rm -f conftest.$ac_objext
2477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478 (eval $ac_compile) 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } &&
2482 { ac_try='test -s conftest.$ac_objext'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 (eval $ac_try) 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2488 ac_cv_prog_cc_g=yes
2489else
2490 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002491cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002492ac_cv_prog_cc_g=no
2493fi
2494rm -f conftest.$ac_objext conftest.$ac_ext
2495fi
2496echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2497echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2498if test "$ac_test_CFLAGS" = set; then
2499 CFLAGS=$ac_save_CFLAGS
2500elif test $ac_cv_prog_cc_g = yes; then
2501 if test "$GCC" = yes; then
2502 CFLAGS="-g -O2"
2503 else
2504 CFLAGS="-g"
2505 fi
2506else
2507 if test "$GCC" = yes; then
2508 CFLAGS="-O2"
2509 else
2510 CFLAGS=
2511 fi
2512fi
2513echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2514echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2515if test "${ac_cv_prog_cc_stdc+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2517else
2518 ac_cv_prog_cc_stdc=no
2519ac_save_CC=$CC
2520cat >conftest.$ac_ext <<_ACEOF
2521#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002522#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002523#include <stdarg.h>
2524#include <stdio.h>
2525#include <sys/types.h>
2526#include <sys/stat.h>
2527/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2528struct buf { int x; };
2529FILE * (*rcsopen) (struct buf *, struct stat *, int);
2530static char *e (p, i)
2531 char **p;
2532 int i;
2533{
2534 return p[i];
2535}
2536static char *f (char * (*g) (char **, int), char **p, ...)
2537{
2538 char *s;
2539 va_list v;
2540 va_start (v,p);
2541 s = g (p, va_arg (v,int));
2542 va_end (v);
2543 return s;
2544}
2545int test (int i, double x);
2546struct s1 {int (*f) (int a);};
2547struct s2 {int (*f) (double a);};
2548int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2549int argc;
2550char **argv;
2551int
2552main ()
2553{
2554return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2555 ;
2556 return 0;
2557}
2558_ACEOF
2559# Don't try gcc -ansi; that turns off useful extensions and
2560# breaks some systems' header files.
2561# AIX -qlanglvl=ansi
2562# Ultrix and OSF/1 -std1
2563# HP-UX 10.20 and later -Ae
2564# HP-UX older versions -Aa -D_HPUX_SOURCE
2565# SVR4 -Xc -D__EXTENSIONS__
2566for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2567do
2568 CC="$ac_save_CC $ac_arg"
2569 rm -f conftest.$ac_objext
2570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2571 (eval $ac_compile) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } &&
2575 { ac_try='test -s conftest.$ac_objext'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 (eval $ac_try) 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2581 ac_cv_prog_cc_stdc=$ac_arg
2582break
2583else
2584 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002585cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002586fi
2587rm -f conftest.$ac_objext
2588done
2589rm -f conftest.$ac_ext conftest.$ac_objext
2590CC=$ac_save_CC
2591
2592fi
2593
2594case "x$ac_cv_prog_cc_stdc" in
2595 x|xno)
2596 echo "$as_me:$LINENO: result: none needed" >&5
2597echo "${ECHO_T}none needed" >&6 ;;
2598 *)
2599 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2600echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2601 CC="$CC $ac_cv_prog_cc_stdc" ;;
2602esac
2603
2604# Some people use a C++ compiler to compile C. Since we use `exit',
2605# in C++ we need to declare it. In case someone uses the same compiler
2606# for both compiling C and C++ we need to have the C++ compiler decide
2607# the declaration of exit, since it's the most demanding environment.
2608cat >conftest.$ac_ext <<_ACEOF
2609#ifndef __cplusplus
2610 choke me
2611#endif
2612_ACEOF
2613rm -f conftest.$ac_objext
2614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615 (eval $ac_compile) 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -s conftest.$ac_objext'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 (eval $ac_try) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2625 for ac_declaration in \
2626 ''\
2627 '#include <stdlib.h>' \
2628 'extern "C" void std::exit (int) throw (); using std::exit;' \
2629 'extern "C" void std::exit (int); using std::exit;' \
2630 'extern "C" void exit (int) throw ();' \
2631 'extern "C" void exit (int);' \
2632 'void exit (int);'
2633do
2634 cat >conftest.$ac_ext <<_ACEOF
2635#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002636#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002637#include <stdlib.h>
2638$ac_declaration
2639int
2640main ()
2641{
2642exit (42);
2643 ;
2644 return 0;
2645}
2646_ACEOF
2647rm -f conftest.$ac_objext
2648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -s conftest.$ac_objext'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 (eval $ac_try) 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; }; then
2659 :
2660else
2661 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002662cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002663continue
2664fi
2665rm -f conftest.$ac_objext conftest.$ac_ext
2666 cat >conftest.$ac_ext <<_ACEOF
2667#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002668#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002669$ac_declaration
2670int
2671main ()
2672{
2673exit (42);
2674 ;
2675 return 0;
2676}
2677_ACEOF
2678rm -f conftest.$ac_objext
2679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680 (eval $ac_compile) 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); } &&
2684 { ac_try='test -s conftest.$ac_objext'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 (eval $ac_try) 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; }; then
2690 break
2691else
2692 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002693cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002694fi
2695rm -f conftest.$ac_objext conftest.$ac_ext
2696done
2697rm -f conftest*
2698if test -n "$ac_declaration"; then
2699 echo '#ifdef __cplusplus' >>confdefs.h
2700 echo $ac_declaration >>confdefs.h
2701 echo '#endif' >>confdefs.h
2702fi
2703
2704else
2705 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002706cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002707fi
2708rm -f conftest.$ac_objext conftest.$ac_ext
2709ac_ext=c
2710ac_cpp='$CPP $CPPFLAGS'
2711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713ac_compiler_gnu=$ac_cv_c_compiler_gnu
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002714rm -f .deps 2>/dev/null
2715mkdir .deps 2>/dev/null
2716if test -d .deps; then
2717 DEPDIR=.deps
2718else
2719 # MS-DOS does not allow filenames that begin with a dot.
2720 DEPDIR=_deps
2721fi
2722rmdir .deps 2>/dev/null
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002723
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002724
2725 ac_config_commands="$ac_config_commands depfiles"
2726
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002727
2728am_make=${MAKE-make}
2729cat > confinc << 'END'
2730doit:
2731 @echo done
2732END
2733# If we don't find an include directive, just comment out the code.
2734echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2735echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002736am__include="#"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002737am__quote=
2738_am_result=none
2739# First try GNU make style include.
2740echo "include confinc" > confmf
2741# We grep out `Entering directory' and `Leaving directory'
2742# messages which can occur if `w' ends up in MAKEFLAGS.
2743# In particular we don't look at `^make:' because GNU make might
2744# be invoked under some other name (usually "gmake"), in which
2745# case it prints its new name instead of `make'.
2746if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2747 am__include=include
2748 am__quote=
2749 _am_result=GNU
2750fi
2751# Now try BSD make style include.
2752if test "$am__include" = "#"; then
2753 echo '.include "confinc"' > confmf
2754 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2755 am__include=.include
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002756 am__quote="\""
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002757 _am_result=BSD
2758 fi
2759fi
2760
2761
2762echo "$as_me:$LINENO: result: $_am_result" >&5
2763echo "${ECHO_T}$_am_result" >&6
2764rm -f confinc confmf
2765
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002766# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2767if test "${enable_dependency_tracking+set}" = set; then
2768 enableval="$enable_dependency_tracking"
2769
2770fi;
2771if test "x$enable_dependency_tracking" != xno; then
2772 am_depcomp="$ac_aux_dir/depcomp"
2773 AMDEPBACKSLASH='\'
2774fi
2775
2776
2777if test "x$enable_dependency_tracking" != xno; then
2778 AMDEP_TRUE=
2779 AMDEP_FALSE='#'
2780else
2781 AMDEP_TRUE='#'
2782 AMDEP_FALSE=
2783fi
2784
2785
2786
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002787
2788depcc="$CC" am_compiler_list=
2789
2790echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2791echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2792if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2794else
2795 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2796 # We make a subdir and do the tests there. Otherwise we can end up
2797 # making bogus files that we don't know about and never remove. For
2798 # instance it was reported that on HP-UX the gcc test will end up
2799 # making a dummy file named `D' -- because `-MD' means `put the output
2800 # in D'.
2801 mkdir conftest.dir
2802 # Copy depcomp to subdir because otherwise we won't find it if we're
2803 # using a relative directory.
2804 cp "$am_depcomp" conftest.dir
2805 cd conftest.dir
2806
2807 am_cv_CC_dependencies_compiler_type=none
2808 if test "$am_compiler_list" = ""; then
2809 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2810 fi
2811 for depmode in $am_compiler_list; do
2812 # We need to recreate these files for each test, as the compiler may
2813 # overwrite some of them when testing with obscure command lines.
2814 # This happens at least with the AIX C compiler.
2815 echo '#include "conftest.h"' > conftest.c
2816 echo 'int i;' > conftest.h
2817 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2818
2819 case $depmode in
2820 nosideeffect)
2821 # after this tag, mechanisms are not by side-effect, so they'll
2822 # only be used when explicitly requested
2823 if test "x$enable_dependency_tracking" = xyes; then
2824 continue
2825 else
2826 break
2827 fi
2828 ;;
2829 none) break ;;
2830 esac
2831 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2832 # mode. It turns out that the SunPro C++ compiler does not properly
2833 # handle `-M -o', and we need to detect this.
2834 if depmode=$depmode \
2835 source=conftest.c object=conftest.o \
2836 depfile=conftest.Po tmpdepfile=conftest.TPo \
2837 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2838 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2839 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2840 am_cv_CC_dependencies_compiler_type=$depmode
2841 break
2842 fi
2843 done
2844
2845 cd ..
2846 rm -rf conftest.dir
2847else
2848 am_cv_CC_dependencies_compiler_type=none
2849fi
2850
2851fi
2852echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2853echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002854CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002855
2856
2857# Find a good install program. We prefer a C program (faster),
2858# so one script is as good as another. But avoid the broken or
2859# incompatible versions:
2860# SysV /etc/install, /usr/sbin/install
2861# SunOS /usr/etc/install
2862# IRIX /sbin/install
2863# AIX /bin/install
2864# AmigaOS /C/install, which installs bootblocks on floppy discs
2865# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2866# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2867# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2868# ./install, which can be erroneously created by make from ./install.sh.
2869echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2870echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2871if test -z "$INSTALL"; then
2872if test "${ac_cv_path_install+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2874else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876for as_dir in $PATH
2877do
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 # Account for people who put trailing slashes in PATH elements.
2881case $as_dir/ in
2882 ./ | .// | /cC/* | \
2883 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2884 /usr/ucb/* ) ;;
2885 *)
2886 # OSF1 and SCO ODT 3.0 have their own names for install.
2887 # Don't use installbsd from OSF since it installs stuff as root
2888 # by default.
2889 for ac_prog in ginstall scoinst install; do
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2892 if test $ac_prog = install &&
2893 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2894 # AIX install. It has an incompatible calling convention.
2895 :
2896 elif test $ac_prog = install &&
2897 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2898 # program-specific install script used by HP pwplus--don't use.
2899 :
2900 else
2901 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2902 break 3
2903 fi
2904 fi
2905 done
2906 done
2907 ;;
2908esac
2909done
2910
2911
2912fi
2913 if test "${ac_cv_path_install+set}" = set; then
2914 INSTALL=$ac_cv_path_install
2915 else
2916 # As a last resort, use the slow shell script. We don't cache a
2917 # path for INSTALL within a source directory, because that will
2918 # break other packages using the cache if that directory is
2919 # removed, or if the path is relative.
2920 INSTALL=$ac_install_sh
2921 fi
2922fi
2923echo "$as_me:$LINENO: result: $INSTALL" >&5
2924echo "${ECHO_T}$INSTALL" >&6
2925
2926# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2927# It thinks the first close brace ends the variable substitution.
2928test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2929
2930test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2931
2932test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2933
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002934echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2935echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002936set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2937if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2939else
2940 cat >conftest.make <<\_ACEOF
2941all:
mostang.com!davidma8db0b32003-02-08 10:10:59 +00002942 @echo 'ac_maketemp="${MAKE}"'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002943_ACEOF
2944# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2945eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2946if test -n "$ac_maketemp"; then
2947 eval ac_cv_prog_make_${ac_make}_set=yes
2948else
2949 eval ac_cv_prog_make_${ac_make}_set=no
2950fi
2951rm -f conftest.make
2952fi
2953if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2954 echo "$as_me:$LINENO: result: yes" >&5
2955echo "${ECHO_T}yes" >&6
2956 SET_MAKE=
2957else
2958 echo "$as_me:$LINENO: result: no" >&5
2959echo "${ECHO_T}no" >&6
2960 SET_MAKE="MAKE=${MAKE-make}"
2961fi
2962
2963# Check whether --enable-shared or --disable-shared was given.
2964if test "${enable_shared+set}" = set; then
2965 enableval="$enable_shared"
2966 p=${PACKAGE-default}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00002967case $enableval in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002968yes) enable_shared=yes ;;
2969no) enable_shared=no ;;
2970*)
2971 enable_shared=no
2972 # Look at the argument we got. We use all the common list separators.
2973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2974 for pkg in $enableval; do
2975 if test "X$pkg" = "X$p"; then
2976 enable_shared=yes
2977 fi
2978 done
2979 IFS="$ac_save_ifs"
2980 ;;
2981esac
2982else
2983 enable_shared=yes
2984fi;
2985# Check whether --enable-static or --disable-static was given.
2986if test "${enable_static+set}" = set; then
2987 enableval="$enable_static"
2988 p=${PACKAGE-default}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00002989case $enableval in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002990yes) enable_static=yes ;;
2991no) enable_static=no ;;
2992*)
2993 enable_static=no
2994 # Look at the argument we got. We use all the common list separators.
2995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2996 for pkg in $enableval; do
2997 if test "X$pkg" = "X$p"; then
2998 enable_static=yes
2999 fi
3000 done
3001 IFS="$ac_save_ifs"
3002 ;;
3003esac
3004else
3005 enable_static=yes
3006fi;
3007# Check whether --enable-fast-install or --disable-fast-install was given.
3008if test "${enable_fast_install+set}" = set; then
3009 enableval="$enable_fast_install"
3010 p=${PACKAGE-default}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003011case $enableval in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003012yes) enable_fast_install=yes ;;
3013no) enable_fast_install=no ;;
3014*)
3015 enable_fast_install=no
3016 # Look at the argument we got. We use all the common list separators.
3017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3018 for pkg in $enableval; do
3019 if test "X$pkg" = "X$p"; then
3020 enable_fast_install=yes
3021 fi
3022 done
3023 IFS="$ac_save_ifs"
3024 ;;
3025esac
3026else
3027 enable_fast_install=yes
3028fi;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003029# Find the correct PATH separator. Usually this is `:', but
3030# DJGPP uses `;' like DOS.
3031if test "X${PATH_SEPARATOR+set}" != Xset; then
3032 UNAME=${UNAME-`uname 2>/dev/null`}
3033 case X$UNAME in
3034 *-DOS) lt_cv_sys_path_separator=';' ;;
3035 *) lt_cv_sys_path_separator=':' ;;
3036 esac
3037 PATH_SEPARATOR=$lt_cv_sys_path_separator
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003038fi
3039
3040
3041# Check whether --with-gnu-ld or --without-gnu-ld was given.
3042if test "${with_gnu_ld+set}" = set; then
3043 withval="$with_gnu_ld"
3044 test "$withval" = no || with_gnu_ld=yes
3045else
3046 with_gnu_ld=no
3047fi;
3048ac_prog=ld
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003049if test "$GCC" = yes; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003050 # Check if gcc -print-prog-name=ld gives a path.
3051 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3052echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003053 case $host in
3054 *-*-mingw*)
3055 # gcc leaves a trailing carriage return which upsets mingw
3056 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3057 *)
3058 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3059 esac
3060 case $ac_prog in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003061 # Accept absolute paths.
3062 [\\/]* | [A-Za-z]:[\\/]*)
3063 re_direlt='/[^/][^/]*/\.\./'
3064 # Canonicalize the path of ld
3065 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3066 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3067 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3068 done
3069 test -z "$LD" && LD="$ac_prog"
3070 ;;
3071 "")
3072 # If it fails, then pretend we aren't using GCC.
3073 ac_prog=ld
3074 ;;
3075 *)
3076 # If it is relative, then search for the first ld in PATH.
3077 with_gnu_ld=unknown
3078 ;;
3079 esac
3080elif test "$with_gnu_ld" = yes; then
3081 echo "$as_me:$LINENO: checking for GNU ld" >&5
3082echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3083else
3084 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3085echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3086fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003087if test "${lt_cv_path_LD+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003088 echo $ECHO_N "(cached) $ECHO_C" >&6
3089else
3090 if test -z "$LD"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003092 for ac_dir in $PATH; do
3093 test -z "$ac_dir" && ac_dir=.
3094 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003095 lt_cv_path_LD="$ac_dir/$ac_prog"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003096 # Check to see if the program is GNU ld. I'd rather use --version,
3097 # but apparently some GNU ld's only accept -v.
3098 # Break only if it was the GNU/non-GNU ld that we prefer.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003099 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003100 test "$with_gnu_ld" != no && break
3101 else
3102 test "$with_gnu_ld" != yes && break
3103 fi
3104 fi
3105 done
3106 IFS="$ac_save_ifs"
3107else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003108 lt_cv_path_LD="$LD" # Let the user override the test with a path.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003109fi
3110fi
3111
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003112LD="$lt_cv_path_LD"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003113if test -n "$LD"; then
3114 echo "$as_me:$LINENO: result: $LD" >&5
3115echo "${ECHO_T}$LD" >&6
3116else
3117 echo "$as_me:$LINENO: result: no" >&5
3118echo "${ECHO_T}no" >&6
3119fi
3120test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3121echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3122 { (exit 1); exit 1; }; }
3123echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3124echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003125if test "${lt_cv_prog_gnu_ld+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127else
3128 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3129if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003130 lt_cv_prog_gnu_ld=yes
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003131else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003132 lt_cv_prog_gnu_ld=no
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003133fi
3134fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003135echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3136echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3137with_gnu_ld=$lt_cv_prog_gnu_ld
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003138
3139
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003140echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3141echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3142if test "${lt_cv_ld_reload_flag+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3144else
3145 lt_cv_ld_reload_flag='-r'
3146fi
3147echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3148echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3149reload_flag=$lt_cv_ld_reload_flag
3150test -n "$reload_flag" && reload_flag=" $reload_flag"
3151
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003152echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3153echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003154if test "${lt_cv_path_NM+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003155 echo $ECHO_N "(cached) $ECHO_C" >&6
3156else
3157 if test -n "$NM"; then
3158 # Let the user override the test.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003159 lt_cv_path_NM="$NM"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003160else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003161 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003162 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3163 test -z "$ac_dir" && ac_dir=.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003164 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3165 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003166 # Check to see if the nm accepts a BSD-compat flag.
3167 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3168 # nm: unknown option "B" ignored
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003169 # Tru64's nm complains that /dev/null is an invalid object file
3170 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3171 lt_cv_path_NM="$tmp_nm -B"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003172 break
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003173 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3174 lt_cv_path_NM="$tmp_nm -p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003175 break
3176 else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003177 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003178 continue # so that we can try to find one that supports BSD flags
3179 fi
3180 fi
3181 done
3182 IFS="$ac_save_ifs"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003183 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003184fi
3185fi
3186
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003187NM="$lt_cv_path_NM"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003188echo "$as_me:$LINENO: result: $NM" >&5
3189echo "${ECHO_T}$NM" >&6
3190
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003191echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3192echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3193if test "${lt_cv_path_SED+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195else
3196 # Loop through the user's path and test for sed and gsed.
3197# Then use that list of sed's as ones to test for truncation.
3198as_executable_p="test -f"
3199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200for as_dir in $PATH
3201do
3202 IFS=$as_save_IFS
3203 test -z "$as_dir" && as_dir=.
3204 for ac_prog in sed gsed; do
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3207 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3208 fi
3209 done
3210 done
3211done
3212
3213 # Create a temporary directory, and hook for its removal unless debugging.
3214$debug ||
3215{
3216 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3217 trap '{ (exit 1); exit 1; }' 1 2 13 15
3218}
3219
3220# Create a (secure) tmp directory for tmp files.
3221: ${TMPDIR=/tmp}
3222{
3223 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3224 test -n "$tmp" && test -d "$tmp"
3225} ||
3226{
3227 tmp=$TMPDIR/sed$$-$RANDOM
3228 (umask 077 && mkdir $tmp)
3229} ||
3230{
3231 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3232 { (exit 1); exit 1; }
3233}
3234 _max=0
3235 _count=0
3236 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3237 # along with /bin/sed that truncates output.
3238 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3239 test ! -f ${_sed} && break
3240 cat /dev/null > "$tmp/sed.in"
3241 _count=0
3242 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3243 # Check for GNU sed and select it if it is found.
3244 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3245 lt_cv_path_SED=${_sed}
3246 break
3247 fi
3248 while true; do
3249 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3250 mv "$tmp/sed.tmp" "$tmp/sed.in"
3251 cp "$tmp/sed.in" "$tmp/sed.nl"
3252 echo >>"$tmp/sed.nl"
3253 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3254 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3255 # 40000 chars as input seems more than enough
3256 test $_count -gt 10 && break
3257 _count=`expr $_count + 1`
3258 if test $_count -gt $_max; then
3259 _max=$_count
3260 lt_cv_path_SED=$_sed
3261 fi
3262 done
3263 done
3264 rm -rf "$tmp"
3265
3266fi
3267
3268if test "X$SED" != "X"; then
3269 lt_cv_path_SED=$SED
3270else
3271 SED=$lt_cv_path_SED
3272fi
3273echo "$as_me:$LINENO: result: $SED" >&5
3274echo "${ECHO_T}$SED" >&6
3275
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003276echo "$as_me:$LINENO: checking whether ln -s works" >&5
3277echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3278LN_S=$as_ln_s
3279if test "$LN_S" = "ln -s"; then
3280 echo "$as_me:$LINENO: result: yes" >&5
3281echo "${ECHO_T}yes" >&6
3282else
3283 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3284echo "${ECHO_T}no, using $LN_S" >&6
3285fi
3286
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003287echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3288echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3289if test "${lt_cv_deplibs_check_method+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291else
3292 lt_cv_file_magic_cmd='$MAGIC_CMD'
3293lt_cv_file_magic_test_file=
3294lt_cv_deplibs_check_method='unknown'
3295# Need to set the preceding variable on all platforms that support
3296# interlibrary dependencies.
3297# 'none' -- dependencies not supported.
3298# `unknown' -- same as none, but documents that we really don't know.
3299# 'pass_all' -- all dependencies passed with no checks.
3300# 'test_compile' -- check by making test program.
3301# 'file_magic [[regex]]' -- check by looking for files in library path
3302# which responds to the $file_magic_cmd with a given egrep regex.
3303# If you have `file' or equivalent on your system and you're not sure
3304# whether `pass_all' will *always* work, you probably want this one.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003305
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003306case $host_os in
3307aix4* | aix5*)
3308 lt_cv_deplibs_check_method=pass_all
3309 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003310
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003311beos*)
3312 lt_cv_deplibs_check_method=pass_all
3313 ;;
3314
3315bsdi4*)
3316 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3317 lt_cv_file_magic_cmd='/usr/bin/file -L'
3318 lt_cv_file_magic_test_file=/shlib/libc.so
3319 ;;
3320
3321cygwin* | mingw* | pw32*)
3322 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3323 lt_cv_file_magic_cmd='$OBJDUMP -f'
3324 ;;
3325
3326darwin* | rhapsody*)
3327 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3328 lt_cv_file_magic_cmd='/usr/bin/file -L'
3329 case "$host_os" in
3330 rhapsody* | darwin1.[012])
3331 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3332 ;;
3333 *) # Darwin 1.3 on
3334 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3335 ;;
3336 esac
3337 ;;
3338
3339freebsd*)
3340 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3341 case $host_cpu in
3342 i*86 )
3343 # Not sure whether the presence of OpenBSD here was a mistake.
3344 # Let's accept both of them until this is cleared up.
3345 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3346 lt_cv_file_magic_cmd=/usr/bin/file
3347 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3348 ;;
3349 esac
3350 else
3351 lt_cv_deplibs_check_method=pass_all
3352 fi
3353 ;;
3354
3355gnu*)
3356 lt_cv_deplibs_check_method=pass_all
3357 ;;
3358
3359hpux10.20*|hpux11*)
3360 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3361 lt_cv_file_magic_cmd=/usr/bin/file
3362 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3363 ;;
3364
3365irix5* | irix6* | nonstopux*)
3366 case $host_os in
3367 irix5* | nonstopux*)
3368 # this will be overridden with pass_all, but let us keep it just in case
3369 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3370 ;;
3371 *)
3372 case $LD in
3373 *-32|*"-32 ") libmagic=32-bit;;
3374 *-n32|*"-n32 ") libmagic=N32;;
3375 *-64|*"-64 ") libmagic=64-bit;;
3376 *) libmagic=never-match;;
3377 esac
3378 # this will be overridden with pass_all, but let us keep it just in case
3379 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3380 ;;
3381 esac
3382 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3383 lt_cv_deplibs_check_method=pass_all
3384 ;;
3385
3386# This must be Linux ELF.
3387linux-gnu*)
3388 case $host_cpu in
3389 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3390 lt_cv_deplibs_check_method=pass_all ;;
3391 *)
3392 # glibc up to 2.1.1 does not perform some relocations on ARM
3393 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3394 esac
3395 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3396 ;;
3397
3398netbsd*)
3399 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3400 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3401 else
3402 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3403 fi
3404 ;;
3405
3406newos6*)
3407 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3408 lt_cv_file_magic_cmd=/usr/bin/file
3409 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3410 ;;
3411
3412openbsd*)
3413 lt_cv_file_magic_cmd=/usr/bin/file
3414 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3415 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3416 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3417 else
3418 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3419 fi
3420 ;;
3421
3422osf3* | osf4* | osf5*)
3423 # this will be overridden with pass_all, but let us keep it just in case
3424 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3425 lt_cv_file_magic_test_file=/shlib/libc.so
3426 lt_cv_deplibs_check_method=pass_all
3427 ;;
3428
3429sco3.2v5*)
3430 lt_cv_deplibs_check_method=pass_all
3431 ;;
3432
3433solaris*)
3434 lt_cv_deplibs_check_method=pass_all
3435 lt_cv_file_magic_test_file=/lib/libc.so
3436 ;;
3437
3438sysv5uw[78]* | sysv4*uw2*)
3439 lt_cv_deplibs_check_method=pass_all
3440 ;;
3441
3442sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3443 case $host_vendor in
3444 motorola)
3445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3446 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3447 ;;
3448 ncr)
3449 lt_cv_deplibs_check_method=pass_all
3450 ;;
3451 sequent)
3452 lt_cv_file_magic_cmd='/bin/file'
3453 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3454 ;;
3455 sni)
3456 lt_cv_file_magic_cmd='/bin/file'
3457 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3458 lt_cv_file_magic_test_file=/lib/libc.so
3459 ;;
3460 siemens)
3461 lt_cv_deplibs_check_method=pass_all
3462 ;;
3463 esac
3464 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003465esac
3466
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003467fi
3468echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3469echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3470file_magic_cmd=$lt_cv_file_magic_cmd
3471deplibs_check_method=$lt_cv_deplibs_check_method
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003472
3473
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003474
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003475
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003476
3477
3478
3479
3480# Check for command to grab the raw symbol name followed by C symbol from nm.
3481echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3482echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3483if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3485else
3486
3487# These are sane defaults that work on at least a few old systems.
3488# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3489
3490# Character class describing NM global symbol codes.
3491symcode='[BCDEGRST]'
3492
3493# Regexp to match symbols that can be accessed directly from C.
3494sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3495
3496# Transform the above into a raw symbol and a C symbol.
3497symxfrm='\1 \2\3 \3'
3498
3499# Transform an extracted symbol line into a proper C declaration
3500lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3501
3502# Transform an extracted symbol line into symbol name and symbol address
3503lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3504
3505# Define system-specific variables.
3506case $host_os in
3507aix*)
3508 symcode='[BCDT]'
3509 ;;
3510cygwin* | mingw* | pw32*)
3511 symcode='[ABCDGISTW]'
3512 ;;
3513hpux*) # Its linker distinguishes data from code symbols
3514 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3515 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3516 ;;
3517irix* | nonstopux*)
3518 symcode='[BCDEGRST]'
3519 ;;
3520osf*)
3521 symcode='[BCDEGQRST]'
3522 ;;
3523solaris* | sysv5*)
3524 symcode='[BDT]'
3525 ;;
3526sysv4)
3527 symcode='[DFNSTU]'
3528 ;;
3529esac
3530
3531# Handle CRLF in mingw tool chain
3532opt_cr=
3533case $host_os in
3534mingw*)
3535 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3536 ;;
3537esac
3538
3539# If we're using GNU nm, then use its standard symbol codes.
3540if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3541 symcode='[ABCDGISTW]'
3542fi
3543
3544# Try without a prefix undercore, then with it.
3545for ac_symprfx in "" "_"; do
3546
3547 # Write the raw and C identifiers.
3548lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3549
3550 # Check to see that the pipe works correctly.
3551 pipe_works=no
3552 rm -f conftest*
3553 cat > conftest.$ac_ext <<EOF
3554#ifdef __cplusplus
3555extern "C" {
3556#endif
3557char nm_test_var;
3558void nm_test_func(){}
3559#ifdef __cplusplus
3560}
3561#endif
3562int main(){nm_test_var='a';nm_test_func();return(0);}
3563EOF
3564
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003570 # Now try to grab the symbols.
3571 nlist=conftest.nm
3572 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3573 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3574 ac_status=$?
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } && test -s "$nlist"; then
3577 # Try sorting and uniquifying the output.
3578 if sort "$nlist" | uniq > "$nlist"T; then
3579 mv -f "$nlist"T "$nlist"
3580 else
3581 rm -f "$nlist"T
3582 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003583
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003584 # Make sure that we snagged all the symbols we need.
3585 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3586 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3587 cat <<EOF > conftest.$ac_ext
3588#ifdef __cplusplus
3589extern "C" {
3590#endif
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003591
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003592EOF
3593 # Now generate the symbol file.
3594 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003595
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003596 cat <<EOF >> conftest.$ac_ext
3597#if defined (__STDC__) && __STDC__
3598# define lt_ptr void *
3599#else
3600# define lt_ptr char *
3601# define const
3602#endif
3603
3604/* The mapping between symbol names and symbols. */
3605const struct {
3606 const char *name;
3607 lt_ptr address;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003608}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003609lt_preloaded_symbols[] =
3610{
3611EOF
3612 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3613 cat <<\EOF >> conftest.$ac_ext
3614 {0, (lt_ptr) 0}
3615};
3616
3617#ifdef __cplusplus
3618}
3619#endif
3620EOF
3621 # Now try linking the two files.
3622 mv conftest.$ac_objext conftstm.$ac_objext
3623 save_LIBS="$LIBS"
3624 save_CFLAGS="$CFLAGS"
3625 LIBS="conftstm.$ac_objext"
3626 CFLAGS="$CFLAGS$no_builtin_flag"
3627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003628 (eval $ac_link) 2>&5
3629 ac_status=$?
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003631 (exit $ac_status); } && test -s conftest$ac_exeext; then
3632 pipe_works=yes
3633 fi
3634 LIBS="$save_LIBS"
3635 CFLAGS="$save_CFLAGS"
3636 else
3637 echo "cannot find nm_test_func in $nlist" >&5
3638 fi
3639 else
3640 echo "cannot find nm_test_var in $nlist" >&5
3641 fi
3642 else
3643 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3644 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003645 else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003646 echo "$progname: failed program was:" >&5
3647 cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003648 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003649 rm -f conftest* conftst*
3650
3651 # Do not use the global_symbol_pipe unless it works.
3652 if test "$pipe_works" = yes; then
3653 break
3654 else
3655 lt_cv_sys_global_symbol_pipe=
3656 fi
3657done
3658
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003659fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003660
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003661global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3662if test -z "$lt_cv_sys_global_symbol_pipe"; then
3663 global_symbol_to_cdecl=
3664 global_symbol_to_c_name_address=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003665else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003666 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3667 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003668fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003669if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3670then
3671 echo "$as_me:$LINENO: result: failed" >&5
3672echo "${ECHO_T}failed" >&6
3673else
3674 echo "$as_me:$LINENO: result: ok" >&5
3675echo "${ECHO_T}ok" >&6
3676fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003677
3678ac_ext=c
3679ac_cpp='$CPP $CPPFLAGS'
3680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682ac_compiler_gnu=$ac_cv_c_compiler_gnu
3683echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3684echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3685# On Suns, sometimes $CPP names a directory.
3686if test -n "$CPP" && test -d "$CPP"; then
3687 CPP=
3688fi
3689if test -z "$CPP"; then
3690 if test "${ac_cv_prog_CPP+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3692else
3693 # Double quotes because CPP needs to be expanded
3694 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3695 do
3696 ac_preproc_ok=false
3697for ac_c_preproc_warn_flag in '' yes
3698do
3699 # Use a header file that comes with gcc, so configuring glibc
3700 # with a fresh cross-compiler works.
3701 # On the NeXT, cc -E runs the code through the compiler's parser,
3702 # not just through cpp. "Syntax error" is here to catch this case.
3703 cat >conftest.$ac_ext <<_ACEOF
3704#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003705#include "confdefs.h"
3706#include <assert.h>
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003707 Syntax error
3708_ACEOF
3709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3711 ac_status=$?
3712 grep -v '^ *+' conftest.er1 >conftest.err
3713 rm -f conftest.er1
3714 cat conftest.err >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } >/dev/null; then
3717 if test -s conftest.err; then
3718 ac_cpp_err=$ac_c_preproc_warn_flag
3719 else
3720 ac_cpp_err=
3721 fi
3722else
3723 ac_cpp_err=yes
3724fi
3725if test -z "$ac_cpp_err"; then
3726 :
3727else
3728 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003729 cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003730 # Broken: fails on valid input.
3731continue
3732fi
3733rm -f conftest.err conftest.$ac_ext
3734
3735 # OK, works on sane cases. Now check whether non-existent headers
3736 # can be detected and how.
3737 cat >conftest.$ac_ext <<_ACEOF
3738#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003739#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003740#include <ac_nonexistent.h>
3741_ACEOF
3742if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3744 ac_status=$?
3745 grep -v '^ *+' conftest.er1 >conftest.err
3746 rm -f conftest.er1
3747 cat conftest.err >&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } >/dev/null; then
3750 if test -s conftest.err; then
3751 ac_cpp_err=$ac_c_preproc_warn_flag
3752 else
3753 ac_cpp_err=
3754 fi
3755else
3756 ac_cpp_err=yes
3757fi
3758if test -z "$ac_cpp_err"; then
3759 # Broken: success on invalid input.
3760continue
3761else
3762 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003763 cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003764 # Passes both tests.
3765ac_preproc_ok=:
3766break
3767fi
3768rm -f conftest.err conftest.$ac_ext
3769
3770done
3771# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3772rm -f conftest.err conftest.$ac_ext
3773if $ac_preproc_ok; then
3774 break
3775fi
3776
3777 done
3778 ac_cv_prog_CPP=$CPP
3779
3780fi
3781 CPP=$ac_cv_prog_CPP
3782else
3783 ac_cv_prog_CPP=$CPP
3784fi
3785echo "$as_me:$LINENO: result: $CPP" >&5
3786echo "${ECHO_T}$CPP" >&6
3787ac_preproc_ok=false
3788for ac_c_preproc_warn_flag in '' yes
3789do
3790 # Use a header file that comes with gcc, so configuring glibc
3791 # with a fresh cross-compiler works.
3792 # On the NeXT, cc -E runs the code through the compiler's parser,
3793 # not just through cpp. "Syntax error" is here to catch this case.
3794 cat >conftest.$ac_ext <<_ACEOF
3795#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003796#include "confdefs.h"
3797#include <assert.h>
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003798 Syntax error
3799_ACEOF
3800if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3802 ac_status=$?
3803 grep -v '^ *+' conftest.er1 >conftest.err
3804 rm -f conftest.er1
3805 cat conftest.err >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } >/dev/null; then
3808 if test -s conftest.err; then
3809 ac_cpp_err=$ac_c_preproc_warn_flag
3810 else
3811 ac_cpp_err=
3812 fi
3813else
3814 ac_cpp_err=yes
3815fi
3816if test -z "$ac_cpp_err"; then
3817 :
3818else
3819 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003820 cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003821 # Broken: fails on valid input.
3822continue
3823fi
3824rm -f conftest.err conftest.$ac_ext
3825
3826 # OK, works on sane cases. Now check whether non-existent headers
3827 # can be detected and how.
3828 cat >conftest.$ac_ext <<_ACEOF
3829#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003830#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003831#include <ac_nonexistent.h>
3832_ACEOF
3833if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } >/dev/null; then
3841 if test -s conftest.err; then
3842 ac_cpp_err=$ac_c_preproc_warn_flag
3843 else
3844 ac_cpp_err=
3845 fi
3846else
3847 ac_cpp_err=yes
3848fi
3849if test -z "$ac_cpp_err"; then
3850 # Broken: success on invalid input.
3851continue
3852else
3853 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003854 cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003855 # Passes both tests.
3856ac_preproc_ok=:
3857break
3858fi
3859rm -f conftest.err conftest.$ac_ext
3860
3861done
3862# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3863rm -f conftest.err conftest.$ac_ext
3864if $ac_preproc_ok; then
3865 :
3866else
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003867 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3868echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003869 { (exit 1); exit 1; }; }
3870fi
3871
3872ac_ext=c
3873ac_cpp='$CPP $CPPFLAGS'
3874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876ac_compiler_gnu=$ac_cv_c_compiler_gnu
3877
3878
3879echo "$as_me:$LINENO: checking for egrep" >&5
3880echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3881if test "${ac_cv_prog_egrep+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883else
3884 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3885 then ac_cv_prog_egrep='grep -E'
3886 else ac_cv_prog_egrep='egrep'
3887 fi
3888fi
3889echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3890echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3891 EGREP=$ac_cv_prog_egrep
3892
3893
3894echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3895echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3896if test "${ac_cv_header_stdc+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898else
3899 cat >conftest.$ac_ext <<_ACEOF
3900#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003901#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003902#include <stdlib.h>
3903#include <stdarg.h>
3904#include <string.h>
3905#include <float.h>
3906
3907_ACEOF
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003908if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003910 ac_status=$?
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003915 (exit $ac_status); } >/dev/null; then
3916 if test -s conftest.err; then
3917 ac_cpp_err=$ac_c_preproc_warn_flag
3918 else
3919 ac_cpp_err=
3920 fi
3921else
3922 ac_cpp_err=yes
3923fi
3924if test -z "$ac_cpp_err"; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003925 ac_cv_header_stdc=yes
3926else
3927 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003928 cat conftest.$ac_ext >&5
3929 ac_cv_header_stdc=no
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003930fi
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003931rm -f conftest.err conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003932
3933if test $ac_cv_header_stdc = yes; then
3934 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3935 cat >conftest.$ac_ext <<_ACEOF
3936#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003937#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003938#include <string.h>
3939
3940_ACEOF
3941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3942 $EGREP "memchr" >/dev/null 2>&1; then
3943 :
3944else
3945 ac_cv_header_stdc=no
3946fi
3947rm -f conftest*
3948
3949fi
3950
3951if test $ac_cv_header_stdc = yes; then
3952 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3953 cat >conftest.$ac_ext <<_ACEOF
3954#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003955#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003956#include <stdlib.h>
3957
3958_ACEOF
3959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3960 $EGREP "free" >/dev/null 2>&1; then
3961 :
3962else
3963 ac_cv_header_stdc=no
3964fi
3965rm -f conftest*
3966
3967fi
3968
3969if test $ac_cv_header_stdc = yes; then
3970 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3971 if test "$cross_compiling" = yes; then
3972 :
3973else
3974 cat >conftest.$ac_ext <<_ACEOF
3975#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003976#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003977#include <ctype.h>
3978#if ((' ' & 0x0FF) == 0x020)
3979# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3980# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3981#else
mostang.com!davidma8db0b32003-02-08 10:10:59 +00003982# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003983 || ('j' <= (c) && (c) <= 'r') \
3984 || ('s' <= (c) && (c) <= 'z'))
3985# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3986#endif
3987
3988#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3989int
3990main ()
3991{
3992 int i;
3993 for (i = 0; i < 256; i++)
3994 if (XOR (islower (i), ISLOWER (i))
3995 || toupper (i) != TOUPPER (i))
3996 exit(2);
3997 exit (0);
3998}
3999_ACEOF
4000rm -f conftest$ac_exeext
4001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4002 (eval $ac_link) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4011 :
4012else
4013 echo "$as_me: program exited with status $ac_status" >&5
4014echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004015cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004016( exit $ac_status )
4017ac_cv_header_stdc=no
4018fi
4019rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4020fi
4021fi
4022fi
4023echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4024echo "${ECHO_T}$ac_cv_header_stdc" >&6
4025if test $ac_cv_header_stdc = yes; then
4026
4027cat >>confdefs.h <<\_ACEOF
4028#define STDC_HEADERS 1
4029_ACEOF
4030
4031fi
4032
4033# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4044 inttypes.h stdint.h unistd.h
4045do
4046as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4047echo "$as_me:$LINENO: checking for $ac_header" >&5
4048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4049if eval "test \"\${$as_ac_Header+set}\" = set"; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051else
4052 cat >conftest.$ac_ext <<_ACEOF
4053#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004054#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004055$ac_includes_default
4056
4057#include <$ac_header>
4058_ACEOF
4059rm -f conftest.$ac_objext
4060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -s conftest.$ac_objext'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 (eval $ac_try) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4071 eval "$as_ac_Header=yes"
4072else
4073 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004074cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004075eval "$as_ac_Header=no"
4076fi
4077rm -f conftest.$ac_objext conftest.$ac_ext
4078fi
4079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4081if test `eval echo '${'$as_ac_Header'}'` = yes; then
4082 cat >>confdefs.h <<_ACEOF
4083#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4084_ACEOF
4085
4086fi
4087
4088done
4089
4090
4091
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004092for ac_header in dlfcn.h
4093do
4094as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4095if eval "test \"\${$as_ac_Header+set}\" = set"; then
4096 echo "$as_me:$LINENO: checking for $ac_header" >&5
4097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4098if eval "test \"\${$as_ac_Header+set}\" = set"; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4100fi
4101echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4102echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4103else
4104 # Is the header compilable?
4105echo "$as_me:$LINENO: checking $ac_header usability" >&5
4106echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4107cat >conftest.$ac_ext <<_ACEOF
4108#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004109#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004110$ac_includes_default
4111#include <$ac_header>
4112_ACEOF
4113rm -f conftest.$ac_objext
4114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4115 (eval $ac_compile) 2>&5
4116 ac_status=$?
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } &&
4119 { ac_try='test -s conftest.$ac_objext'
4120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 (eval $ac_try) 2>&5
4122 ac_status=$?
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; }; then
4125 ac_header_compiler=yes
4126else
4127 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004128cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004129ac_header_compiler=no
4130fi
4131rm -f conftest.$ac_objext conftest.$ac_ext
4132echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4133echo "${ECHO_T}$ac_header_compiler" >&6
4134
4135# Is the header present?
4136echo "$as_me:$LINENO: checking $ac_header presence" >&5
4137echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4138cat >conftest.$ac_ext <<_ACEOF
4139#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004140#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004141#include <$ac_header>
4142_ACEOF
4143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4145 ac_status=$?
4146 grep -v '^ *+' conftest.er1 >conftest.err
4147 rm -f conftest.er1
4148 cat conftest.err >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } >/dev/null; then
4151 if test -s conftest.err; then
4152 ac_cpp_err=$ac_c_preproc_warn_flag
4153 else
4154 ac_cpp_err=
4155 fi
4156else
4157 ac_cpp_err=yes
4158fi
4159if test -z "$ac_cpp_err"; then
4160 ac_header_preproc=yes
4161else
4162 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004163 cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004164 ac_header_preproc=no
4165fi
4166rm -f conftest.err conftest.$ac_ext
4167echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4168echo "${ECHO_T}$ac_header_preproc" >&6
4169
4170# So? What about this header?
4171case $ac_header_compiler:$ac_header_preproc in
4172 yes:no )
4173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4174echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004176echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004177 no:yes )
4178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4179echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4181echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004183echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004184esac
4185echo "$as_me:$LINENO: checking for $ac_header" >&5
4186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4187if eval "test \"\${$as_ac_Header+set}\" = set"; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4189else
4190 eval "$as_ac_Header=$ac_header_preproc"
4191fi
4192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4193echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4194
4195fi
4196if test `eval echo '${'$as_ac_Header'}'` = yes; then
4197 cat >>confdefs.h <<_ACEOF
4198#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4199_ACEOF
4200
4201fi
4202
4203done
4204
4205
4206
4207
4208
4209
4210# Only perform the check for file, if the check method requires it
4211case $deplibs_check_method in
4212file_magic*)
4213 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4214 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4215echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4216if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218else
4219 case $MAGIC_CMD in
4220 /*)
4221 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4222 ;;
4223 ?:/*)
4224 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4225 ;;
4226 *)
4227 ac_save_MAGIC_CMD="$MAGIC_CMD"
4228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4229 ac_dummy="/usr/bin:$PATH"
4230 for ac_dir in $ac_dummy; do
4231 test -z "$ac_dir" && ac_dir=.
4232 if test -f $ac_dir/${ac_tool_prefix}file; then
4233 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4234 if test -n "$file_magic_test_file"; then
4235 case $deplibs_check_method in
4236 "file_magic "*)
4237 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4238 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4239 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4240 egrep "$file_magic_regex" > /dev/null; then
4241 :
4242 else
4243 cat <<EOF 1>&2
4244
4245*** Warning: the command libtool uses to detect shared libraries,
4246*** $file_magic_cmd, produces output that libtool cannot recognize.
4247*** The result is that libtool may fail to recognize shared libraries
4248*** as such. This will affect the creation of libtool libraries that
4249*** depend on shared libraries, but programs linked with such libtool
4250*** libraries will work regardless of this problem. Nevertheless, you
4251*** may want to report the problem to your system manager and/or to
4252*** bug-libtool@gnu.org
4253
4254EOF
4255 fi ;;
4256 esac
4257 fi
4258 break
4259 fi
4260 done
4261 IFS="$ac_save_ifs"
4262 MAGIC_CMD="$ac_save_MAGIC_CMD"
4263 ;;
4264esac
4265fi
4266
4267MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4268if test -n "$MAGIC_CMD"; then
4269 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4270echo "${ECHO_T}$MAGIC_CMD" >&6
4271else
4272 echo "$as_me:$LINENO: result: no" >&5
4273echo "${ECHO_T}no" >&6
4274fi
4275
4276if test -z "$lt_cv_path_MAGIC_CMD"; then
4277 if test -n "$ac_tool_prefix"; then
4278 echo "$as_me:$LINENO: checking for file" >&5
4279echo $ECHO_N "checking for file... $ECHO_C" >&6
4280if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4282else
4283 case $MAGIC_CMD in
4284 /*)
4285 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4286 ;;
4287 ?:/*)
4288 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4289 ;;
4290 *)
4291 ac_save_MAGIC_CMD="$MAGIC_CMD"
4292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4293 ac_dummy="/usr/bin:$PATH"
4294 for ac_dir in $ac_dummy; do
4295 test -z "$ac_dir" && ac_dir=.
4296 if test -f $ac_dir/file; then
4297 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4298 if test -n "$file_magic_test_file"; then
4299 case $deplibs_check_method in
4300 "file_magic "*)
4301 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4302 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4303 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4304 egrep "$file_magic_regex" > /dev/null; then
4305 :
4306 else
4307 cat <<EOF 1>&2
4308
4309*** Warning: the command libtool uses to detect shared libraries,
4310*** $file_magic_cmd, produces output that libtool cannot recognize.
4311*** The result is that libtool may fail to recognize shared libraries
4312*** as such. This will affect the creation of libtool libraries that
4313*** depend on shared libraries, but programs linked with such libtool
4314*** libraries will work regardless of this problem. Nevertheless, you
4315*** may want to report the problem to your system manager and/or to
4316*** bug-libtool@gnu.org
4317
4318EOF
4319 fi ;;
4320 esac
4321 fi
4322 break
4323 fi
4324 done
4325 IFS="$ac_save_ifs"
4326 MAGIC_CMD="$ac_save_MAGIC_CMD"
4327 ;;
4328esac
4329fi
4330
4331MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4332if test -n "$MAGIC_CMD"; then
4333 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4334echo "${ECHO_T}$MAGIC_CMD" >&6
4335else
4336 echo "$as_me:$LINENO: result: no" >&5
4337echo "${ECHO_T}no" >&6
4338fi
4339
4340 else
4341 MAGIC_CMD=:
4342 fi
4343fi
4344
4345 fi
4346 ;;
4347esac
4348
4349if test -n "$ac_tool_prefix"; then
4350 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4351set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4352echo "$as_me:$LINENO: checking for $ac_word" >&5
4353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4354if test "${ac_cv_prog_RANLIB+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356else
4357 if test -n "$RANLIB"; then
4358 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4359else
4360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361for as_dir in $PATH
4362do
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4367 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4370 fi
4371done
4372done
4373
4374fi
4375fi
4376RANLIB=$ac_cv_prog_RANLIB
4377if test -n "$RANLIB"; then
4378 echo "$as_me:$LINENO: result: $RANLIB" >&5
4379echo "${ECHO_T}$RANLIB" >&6
4380else
4381 echo "$as_me:$LINENO: result: no" >&5
4382echo "${ECHO_T}no" >&6
4383fi
4384
4385fi
4386if test -z "$ac_cv_prog_RANLIB"; then
4387 ac_ct_RANLIB=$RANLIB
4388 # Extract the first word of "ranlib", so it can be a program name with args.
4389set dummy ranlib; ac_word=$2
4390echo "$as_me:$LINENO: checking for $ac_word" >&5
4391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4392if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4394else
4395 if test -n "$ac_ct_RANLIB"; then
4396 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4397else
4398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399for as_dir in $PATH
4400do
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4405 ac_cv_prog_ac_ct_RANLIB="ranlib"
4406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 break 2
4408 fi
4409done
4410done
4411
4412 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4413fi
4414fi
4415ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4416if test -n "$ac_ct_RANLIB"; then
4417 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4418echo "${ECHO_T}$ac_ct_RANLIB" >&6
4419else
4420 echo "$as_me:$LINENO: result: no" >&5
4421echo "${ECHO_T}no" >&6
4422fi
4423
4424 RANLIB=$ac_ct_RANLIB
4425else
4426 RANLIB="$ac_cv_prog_RANLIB"
4427fi
4428
4429if test -n "$ac_tool_prefix"; then
4430 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4431set dummy ${ac_tool_prefix}strip; ac_word=$2
4432echo "$as_me:$LINENO: checking for $ac_word" >&5
4433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4434if test "${ac_cv_prog_STRIP+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436else
4437 if test -n "$STRIP"; then
4438 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4439else
4440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441for as_dir in $PATH
4442do
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4447 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 break 2
4450 fi
4451done
4452done
4453
4454fi
4455fi
4456STRIP=$ac_cv_prog_STRIP
4457if test -n "$STRIP"; then
4458 echo "$as_me:$LINENO: result: $STRIP" >&5
4459echo "${ECHO_T}$STRIP" >&6
4460else
4461 echo "$as_me:$LINENO: result: no" >&5
4462echo "${ECHO_T}no" >&6
4463fi
4464
4465fi
4466if test -z "$ac_cv_prog_STRIP"; then
4467 ac_ct_STRIP=$STRIP
4468 # Extract the first word of "strip", so it can be a program name with args.
4469set dummy strip; ac_word=$2
4470echo "$as_me:$LINENO: checking for $ac_word" >&5
4471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4474else
4475 if test -n "$ac_ct_STRIP"; then
4476 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4477else
4478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479for as_dir in $PATH
4480do
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485 ac_cv_prog_ac_ct_STRIP="strip"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 break 2
4488 fi
4489done
4490done
4491
4492 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4493fi
4494fi
4495ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4496if test -n "$ac_ct_STRIP"; then
4497 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4498echo "${ECHO_T}$ac_ct_STRIP" >&6
4499else
4500 echo "$as_me:$LINENO: result: no" >&5
4501echo "${ECHO_T}no" >&6
4502fi
4503
4504 STRIP=$ac_ct_STRIP
4505else
4506 STRIP="$ac_cv_prog_STRIP"
4507fi
4508
4509
4510enable_dlopen=no
4511enable_win32_dll=no
4512
4513# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4514if test "${enable_libtool_lock+set}" = set; then
4515 enableval="$enable_libtool_lock"
4516
4517fi;
4518test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4519
4520# Some flags need to be propagated to the compiler or linker for good
4521# libtool support.
4522case $host in
4523*-*-irix6*)
4524 # Find out which ABI we are using.
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004525 echo '#line 4525 "configure"' > conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4527 (eval $ac_compile) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; then
4531 case `/usr/bin/file conftest.$ac_objext` in
4532 *32-bit*)
4533 LD="${LD-ld} -32"
4534 ;;
4535 *N32*)
4536 LD="${LD-ld} -n32"
4537 ;;
4538 *64-bit*)
4539 LD="${LD-ld} -64"
4540 ;;
4541 esac
4542 fi
4543 rm -rf conftest*
4544 ;;
4545
4546*-*-sco3.2v5*)
4547 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4548 SAVE_CFLAGS="$CFLAGS"
4549 CFLAGS="$CFLAGS -belf"
4550 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4551echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4552if test "${lt_cv_cc_needs_belf+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554else
4555
4556
4557 ac_ext=c
4558ac_cpp='$CPP $CPPFLAGS'
4559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561ac_compiler_gnu=$ac_cv_c_compiler_gnu
4562
4563 cat >conftest.$ac_ext <<_ACEOF
4564#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004565#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004566
4567int
4568main ()
4569{
4570
4571 ;
4572 return 0;
4573}
4574_ACEOF
4575rm -f conftest.$ac_objext conftest$ac_exeext
4576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4577 (eval $ac_link) 2>&5
4578 ac_status=$?
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); } &&
4581 { ac_try='test -s conftest$ac_exeext'
4582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 (eval $ac_try) 2>&5
4584 ac_status=$?
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }; then
4587 lt_cv_cc_needs_belf=yes
4588else
4589 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004590cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004591lt_cv_cc_needs_belf=no
4592fi
4593rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4594 ac_ext=c
4595ac_cpp='$CPP $CPPFLAGS'
4596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598ac_compiler_gnu=$ac_cv_c_compiler_gnu
4599
4600fi
4601echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4602echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4603 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4604 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4605 CFLAGS="$SAVE_CFLAGS"
4606 fi
4607 ;;
4608
4609
4610esac
4611
4612# Sed substitution that helps us do robust quoting. It backslashifies
4613# metacharacters that are still active within double-quoted strings.
4614Xsed='sed -e s/^X//'
4615sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4616
4617# Same as above, but do not quote variable references.
4618double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4619
4620# Sed substitution to delay expansion of an escaped shell variable in a
4621# double_quote_subst'ed string.
4622delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4623
4624# Constants:
4625rm="rm -f"
4626
4627# Global variables:
4628default_ofile=libtool
4629can_build_shared=yes
4630
4631# All known linkers require a `.a' archive for static linking (except M$VC,
4632# which needs '.lib').
4633libext=a
4634ltmain="$ac_aux_dir/ltmain.sh"
4635ofile="$default_ofile"
4636with_gnu_ld="$lt_cv_prog_gnu_ld"
4637need_locks="$enable_libtool_lock"
4638
4639old_CC="$CC"
4640old_CFLAGS="$CFLAGS"
4641
4642# Set sane defaults for various variables
4643test -z "$AR" && AR=ar
4644test -z "$AR_FLAGS" && AR_FLAGS=cru
4645test -z "$AS" && AS=as
4646test -z "$CC" && CC=cc
4647test -z "$DLLTOOL" && DLLTOOL=dlltool
4648test -z "$LD" && LD=ld
4649test -z "$LN_S" && LN_S="ln -s"
4650test -z "$MAGIC_CMD" && MAGIC_CMD=file
4651test -z "$NM" && NM=nm
4652test -z "$OBJDUMP" && OBJDUMP=objdump
4653test -z "$RANLIB" && RANLIB=:
4654test -z "$STRIP" && STRIP=:
4655test -z "$ac_objext" && ac_objext=o
4656
4657if test x"$host" != x"$build"; then
4658 ac_tool_prefix=${host_alias}-
4659else
4660 ac_tool_prefix=
4661fi
4662
4663# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4664case $host_os in
4665linux-gnu*) ;;
4666linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4667esac
4668
4669case $host_os in
4670aix3*)
4671 # AIX sometimes has problems with the GCC collect2 program. For some
4672 # reason, if we set the COLLECT_NAMES environment variable, the problems
4673 # vanish in a puff of smoke.
4674 if test "X${COLLECT_NAMES+set}" != Xset; then
4675 COLLECT_NAMES=
4676 export COLLECT_NAMES
4677 fi
4678 ;;
4679esac
4680
4681# Determine commands to create old-style static archives.
4682old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4683old_postinstall_cmds='chmod 644 $oldlib'
4684old_postuninstall_cmds=
4685
4686if test -n "$RANLIB"; then
4687 case $host_os in
4688 openbsd*)
4689 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4690 ;;
4691 *)
4692 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4693 ;;
4694 esac
4695 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4696fi
4697
4698# Allow CC to be a program name with arguments.
4699set dummy $CC
4700compiler="$2"
4701
4702echo "$as_me:$LINENO: checking for objdir" >&5
4703echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4704rm -f .libs 2>/dev/null
4705mkdir .libs 2>/dev/null
4706if test -d .libs; then
4707 objdir=.libs
4708else
4709 # MS-DOS does not allow filenames that begin with a dot.
4710 objdir=_libs
4711fi
4712rmdir .libs 2>/dev/null
4713echo "$as_me:$LINENO: result: $objdir" >&5
4714echo "${ECHO_T}$objdir" >&6
4715
4716
4717
4718# Check whether --with-pic or --without-pic was given.
4719if test "${with_pic+set}" = set; then
4720 withval="$with_pic"
4721 pic_mode="$withval"
4722else
4723 pic_mode=default
4724fi;
4725test -z "$pic_mode" && pic_mode=default
4726
4727# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4728# in isolation, and that seeing it set (from the cache) indicates that
4729# the associated values are set (in the cache) correctly too.
4730echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4731echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4732if test "${lt_cv_prog_cc_pic+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4734else
4735 lt_cv_prog_cc_pic=
4736 lt_cv_prog_cc_shlib=
4737 lt_cv_prog_cc_wl=
4738 lt_cv_prog_cc_static=
4739 lt_cv_prog_cc_no_builtin=
4740 lt_cv_prog_cc_can_build_shared=$can_build_shared
4741
4742 if test "$GCC" = yes; then
4743 lt_cv_prog_cc_wl='-Wl,'
4744 lt_cv_prog_cc_static='-static'
4745
4746 case $host_os in
4747 aix*)
4748 # Below there is a dirty hack to force normal static linking with -ldl
4749 # The problem is because libdl dynamically linked with both libc and
4750 # libC (AIX C++ library), which obviously doesn't included in libraries
4751 # list by gcc. This cause undefined symbols with -static flags.
4752 # This hack allows C programs to be linked with "-static -ldl", but
4753 # not sure about C++ programs.
4754 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4755 ;;
4756 amigaos*)
4757 # FIXME: we need at least 68020 code to build shared libraries, but
4758 # adding the `-m68020' flag to GCC prevents building anything better,
4759 # like `-m68040'.
4760 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4761 ;;
4762 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4763 # PIC is the default for these OSes.
4764 ;;
4765 darwin* | rhapsody*)
4766 # PIC is the default on this platform
4767 # Common symbols not allowed in MH_DYLIB files
4768 lt_cv_prog_cc_pic='-fno-common'
4769 ;;
4770 cygwin* | mingw* | pw32* | os2*)
4771 # This hack is so that the source file can tell whether it is being
4772 # built for inclusion in a dll (and should export symbols for example).
4773 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4774 ;;
4775 sysv4*MP*)
4776 if test -d /usr/nec; then
4777 lt_cv_prog_cc_pic=-Kconform_pic
4778 fi
4779 ;;
4780 *)
4781 lt_cv_prog_cc_pic='-fPIC'
4782 ;;
4783 esac
4784 else
4785 # PORTME Check for PIC flags for the system compiler.
4786 case $host_os in
4787 aix3* | aix4* | aix5*)
4788 lt_cv_prog_cc_wl='-Wl,'
4789 # All AIX code is PIC.
4790 if test "$host_cpu" = ia64; then
4791 # AIX 5 now supports IA64 processor
4792 lt_cv_prog_cc_static='-Bstatic'
4793 else
4794 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4795 fi
4796 ;;
4797
4798 hpux9* | hpux10* | hpux11*)
4799 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4800 lt_cv_prog_cc_wl='-Wl,'
4801 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4802 lt_cv_prog_cc_pic='+Z'
4803 ;;
4804
4805 irix5* | irix6* | nonstopux*)
4806 lt_cv_prog_cc_wl='-Wl,'
4807 lt_cv_prog_cc_static='-non_shared'
4808 # PIC (with -KPIC) is the default.
4809 ;;
4810
4811 cygwin* | mingw* | pw32* | os2*)
4812 # This hack is so that the source file can tell whether it is being
4813 # built for inclusion in a dll (and should export symbols for example).
4814 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4815 ;;
4816
4817 newsos6)
4818 lt_cv_prog_cc_pic='-KPIC'
4819 lt_cv_prog_cc_static='-Bstatic'
4820 ;;
4821
4822 osf3* | osf4* | osf5*)
4823 # All OSF/1 code is PIC.
4824 lt_cv_prog_cc_wl='-Wl,'
4825 lt_cv_prog_cc_static='-non_shared'
4826 ;;
4827
4828 sco3.2v5*)
4829 lt_cv_prog_cc_pic='-Kpic'
4830 lt_cv_prog_cc_static='-dn'
4831 lt_cv_prog_cc_shlib='-belf'
4832 ;;
4833
4834 solaris*)
4835 lt_cv_prog_cc_pic='-KPIC'
4836 lt_cv_prog_cc_static='-Bstatic'
4837 lt_cv_prog_cc_wl='-Wl,'
4838 ;;
4839
4840 sunos4*)
4841 lt_cv_prog_cc_pic='-PIC'
4842 lt_cv_prog_cc_static='-Bstatic'
4843 lt_cv_prog_cc_wl='-Qoption ld '
4844 ;;
4845
4846 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4847 lt_cv_prog_cc_pic='-KPIC'
4848 lt_cv_prog_cc_static='-Bstatic'
4849 lt_cv_prog_cc_wl='-Wl,'
4850 ;;
4851
4852 uts4*)
4853 lt_cv_prog_cc_pic='-pic'
4854 lt_cv_prog_cc_static='-Bstatic'
4855 ;;
4856
4857 sysv4*MP*)
4858 if test -d /usr/nec ;then
4859 lt_cv_prog_cc_pic='-Kconform_pic'
4860 lt_cv_prog_cc_static='-Bstatic'
4861 fi
4862 ;;
4863
4864 *)
4865 lt_cv_prog_cc_can_build_shared=no
4866 ;;
4867 esac
4868 fi
4869
4870fi
4871
4872if test -z "$lt_cv_prog_cc_pic"; then
4873 echo "$as_me:$LINENO: result: none" >&5
4874echo "${ECHO_T}none" >&6
4875else
4876 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4877echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4878
4879 # Check to make sure the pic_flag actually works.
4880 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4881echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4882 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4884else
4885 save_CFLAGS="$CFLAGS"
4886 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4887 cat >conftest.$ac_ext <<_ACEOF
4888#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004889#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004890
4891int
4892main ()
4893{
4894
4895 ;
4896 return 0;
4897}
4898_ACEOF
4899rm -f conftest.$ac_objext
4900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4901 (eval $ac_compile) 2>&5
4902 ac_status=$?
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } &&
4905 { ac_try='test -s conftest.$ac_objext'
4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 (eval $ac_try) 2>&5
4908 ac_status=$?
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; }; then
4911 case $host_os in
4912 hpux9* | hpux10* | hpux11*)
4913 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4914 # they create non-PIC objects. So, if there were any warnings, we
4915 # assume that PIC is not supported.
4916 if test -s conftest.err; then
4917 lt_cv_prog_cc_pic_works=no
4918 else
4919 lt_cv_prog_cc_pic_works=yes
4920 fi
4921 ;;
4922 *)
4923 lt_cv_prog_cc_pic_works=yes
4924 ;;
4925 esac
4926
4927else
4928 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004929cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004930 lt_cv_prog_cc_pic_works=no
4931
4932fi
4933rm -f conftest.$ac_objext conftest.$ac_ext
4934 CFLAGS="$save_CFLAGS"
4935
4936fi
4937
4938
4939 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4940 lt_cv_prog_cc_pic=
4941 lt_cv_prog_cc_can_build_shared=no
4942 else
4943 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4944 fi
4945
4946 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4947echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4948fi
4949
4950# Check for any special shared library compilation flags.
4951if test -n "$lt_cv_prog_cc_shlib"; then
4952 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4953echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4954 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4955 else
4956 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4957echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4958 lt_cv_prog_cc_can_build_shared=no
4959 fi
4960fi
4961
4962echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4963echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4964if test "${lt_cv_prog_cc_static_works+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4966else
4967 lt_cv_prog_cc_static_works=no
4968 save_LDFLAGS="$LDFLAGS"
4969 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4970 cat >conftest.$ac_ext <<_ACEOF
4971#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004972#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004973
4974int
4975main ()
4976{
4977
4978 ;
4979 return 0;
4980}
4981_ACEOF
4982rm -f conftest.$ac_objext conftest$ac_exeext
4983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4984 (eval $ac_link) 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } &&
4988 { ac_try='test -s conftest$ac_exeext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 (eval $ac_try) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4994 lt_cv_prog_cc_static_works=yes
4995else
4996 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00004997cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004998fi
4999rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5000 LDFLAGS="$save_LDFLAGS"
5001
5002fi
5003
5004
5005# Belt *and* braces to stop my trousers falling down:
5006test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5007echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5008echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5009
5010pic_flag="$lt_cv_prog_cc_pic"
5011special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5012wl="$lt_cv_prog_cc_wl"
5013link_static_flag="$lt_cv_prog_cc_static"
5014no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5015can_build_shared="$lt_cv_prog_cc_can_build_shared"
5016
5017
5018# Check to see if options -o and -c are simultaneously supported by compiler
5019echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5020echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5021if test "${lt_cv_compiler_c_o+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023else
5024
5025$rm -r conftest 2>/dev/null
5026mkdir conftest
5027cd conftest
5028echo "int some_variable = 0;" > conftest.$ac_ext
5029mkdir out
5030# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5031# that will create temporary files in the current directory regardless of
5032# the output directory. Thus, making CWD read-only will cause this test
5033# to fail, enabling locking or at least warning the user not to do parallel
5034# builds.
5035chmod -w .
5036save_CFLAGS="$CFLAGS"
5037CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5038compiler_c_o=no
mostang.com!davidma8db0b32003-02-08 10:10:59 +00005039if { (eval echo configure:5039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005040 # The compiler can only warn and ignore the option if not recognized
5041 # So say no if there are warnings
5042 if test -s out/conftest.err; then
5043 lt_cv_compiler_c_o=no
5044 else
5045 lt_cv_compiler_c_o=yes
5046 fi
5047else
5048 # Append any errors to the config.log.
5049 cat out/conftest.err 1>&5
5050 lt_cv_compiler_c_o=no
5051fi
5052CFLAGS="$save_CFLAGS"
5053chmod u+w .
5054$rm conftest* out/*
5055rmdir out
5056cd ..
5057rmdir conftest
5058$rm -r conftest 2>/dev/null
5059
5060fi
5061
5062compiler_c_o=$lt_cv_compiler_c_o
5063echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5064echo "${ECHO_T}$compiler_c_o" >&6
5065
5066if test x"$compiler_c_o" = x"yes"; then
5067 # Check to see if we can write to a .lo
5068 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5069echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5070 if test "${lt_cv_compiler_o_lo+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5072else
5073
5074 lt_cv_compiler_o_lo=no
5075 save_CFLAGS="$CFLAGS"
5076 CFLAGS="$CFLAGS -c -o conftest.lo"
5077 save_objext="$ac_objext"
5078 ac_objext=lo
5079 cat >conftest.$ac_ext <<_ACEOF
5080#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00005081#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005082
5083int
5084main ()
5085{
5086int some_variable = 0;
5087 ;
5088 return 0;
5089}
5090_ACEOF
5091rm -f conftest.$ac_objext
5092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5093 (eval $ac_compile) 2>&5
5094 ac_status=$?
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } &&
5097 { ac_try='test -s conftest.$ac_objext'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 (eval $ac_try) 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; }; then
5103 # The compiler can only warn and ignore the option if not recognized
5104 # So say no if there are warnings
5105 if test -s conftest.err; then
5106 lt_cv_compiler_o_lo=no
5107 else
5108 lt_cv_compiler_o_lo=yes
5109 fi
5110
5111else
5112 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00005113cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005114fi
5115rm -f conftest.$ac_objext conftest.$ac_ext
5116 ac_objext="$save_objext"
5117 CFLAGS="$save_CFLAGS"
5118
5119fi
5120
5121 compiler_o_lo=$lt_cv_compiler_o_lo
5122 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5123echo "${ECHO_T}$compiler_o_lo" >&6
5124else
5125 compiler_o_lo=no
5126fi
5127
5128# Check to see if we can do hard links to lock some files if needed
5129hard_links="nottested"
5130if test "$compiler_c_o" = no && test "$need_locks" != no; then
5131 # do not overwrite the value of need_locks provided by the user
5132 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5133echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5134 hard_links=yes
5135 $rm conftest*
5136 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5137 touch conftest.a
5138 ln conftest.a conftest.b 2>&5 || hard_links=no
5139 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5140 echo "$as_me:$LINENO: result: $hard_links" >&5
5141echo "${ECHO_T}$hard_links" >&6
5142 if test "$hard_links" = no; then
5143 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5144echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5145 need_locks=warn
5146 fi
5147else
5148 need_locks=no
5149fi
5150
5151if test "$GCC" = yes; then
5152 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5153 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5154echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5155 echo "int some_variable = 0;" > conftest.$ac_ext
5156 save_CFLAGS="$CFLAGS"
5157 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5158 compiler_rtti_exceptions=no
5159 cat >conftest.$ac_ext <<_ACEOF
5160#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00005161#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005162
5163int
5164main ()
5165{
5166int some_variable = 0;
5167 ;
5168 return 0;
5169}
5170_ACEOF
5171rm -f conftest.$ac_objext
5172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5173 (eval $ac_compile) 2>&5
5174 ac_status=$?
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } &&
5177 { ac_try='test -s conftest.$ac_objext'
5178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179 (eval $ac_try) 2>&5
5180 ac_status=$?
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); }; }; then
5183 # The compiler can only warn and ignore the option if not recognized
5184 # So say no if there are warnings
5185 if test -s conftest.err; then
5186 compiler_rtti_exceptions=no
5187 else
5188 compiler_rtti_exceptions=yes
5189 fi
5190
5191else
5192 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00005193cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005194fi
5195rm -f conftest.$ac_objext conftest.$ac_ext
5196 CFLAGS="$save_CFLAGS"
5197 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5198echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5199
5200 if test "$compiler_rtti_exceptions" = "yes"; then
5201 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5202 else
5203 no_builtin_flag=' -fno-builtin'
5204 fi
5205fi
5206
5207# See if the linker supports building shared libraries.
5208echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5209echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5210
5211allow_undefined_flag=
5212no_undefined_flag=
5213need_lib_prefix=unknown
5214need_version=unknown
5215# when you set need_version to no, make sure it does not cause -set_version
5216# flags to be left without arguments
5217archive_cmds=
5218archive_expsym_cmds=
5219old_archive_from_new_cmds=
5220old_archive_from_expsyms_cmds=
5221export_dynamic_flag_spec=
5222whole_archive_flag_spec=
5223thread_safe_flag_spec=
5224hardcode_into_libs=no
5225hardcode_libdir_flag_spec=
5226hardcode_libdir_separator=
5227hardcode_direct=no
5228hardcode_minus_L=no
5229hardcode_shlibpath_var=unsupported
5230runpath_var=
5231link_all_deplibs=unknown
5232always_export_symbols=no
5233export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5234# include_expsyms should be a list of space-separated symbols to be *always*
5235# included in the symbol list
5236include_expsyms=
5237# exclude_expsyms can be an egrep regular expression of symbols to exclude
5238# it will be wrapped by ` (' and `)$', so one must not match beginning or
5239# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5240# as well as any symbol that contains `d'.
5241exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5242# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5243# platforms (ab)use it in PIC code, but their linkers get confused if
5244# the symbol is explicitly referenced. Since portable code cannot
5245# rely on this symbol name, it's probably fine to never include it in
5246# preloaded symbol tables.
5247extract_expsyms_cmds=
5248
5249case $host_os in
5250cygwin* | mingw* | pw32*)
5251 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5252 # When not using gcc, we currently assume that we are using
5253 # Microsoft Visual C++.
5254 if test "$GCC" != yes; then
5255 with_gnu_ld=no
5256 fi
5257 ;;
5258openbsd*)
5259 with_gnu_ld=no
5260 ;;
5261esac
5262
5263ld_shlibs=yes
5264if test "$with_gnu_ld" = yes; then
5265 # If archive_cmds runs LD, not CC, wlarc should be empty
5266 wlarc='${wl}'
5267
5268 # See if GNU ld supports shared libraries.
5269 case $host_os in
5270 aix3* | aix4* | aix5*)
5271 # On AIX, the GNU linker is very broken
5272 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5273 ld_shlibs=no
5274 cat <<EOF 1>&2
5275
5276*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5277*** to be unable to reliably create shared libraries on AIX.
5278*** Therefore, libtool is disabling shared libraries support. If you
5279*** really care for shared libraries, you may want to modify your PATH
5280*** so that a non-GNU linker is found, and then restart.
5281
5282EOF
5283 ;;
5284
5285 amigaos*)
5286 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5287 hardcode_libdir_flag_spec='-L$libdir'
5288 hardcode_minus_L=yes
5289
5290 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5291 # that the semantics of dynamic libraries on AmigaOS, at least up
5292 # to version 4, is to share data among multiple programs linked
5293 # with the same dynamic library. Since this doesn't match the
5294 # behavior of shared libraries on other platforms, we can use
5295 # them.
5296 ld_shlibs=no
5297 ;;
5298
5299 beos*)
5300 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5301 allow_undefined_flag=unsupported
5302 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5303 # support --undefined. This deserves some investigation. FIXME
5304 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5305 else
5306 ld_shlibs=no
5307 fi
5308 ;;
5309
5310 cygwin* | mingw* | pw32*)
5311 # hardcode_libdir_flag_spec is actually meaningless, as there is
5312 # no search path for DLLs.
5313 hardcode_libdir_flag_spec='-L$libdir'
5314 allow_undefined_flag=unsupported
5315 always_export_symbols=yes
5316
5317 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5318 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5319 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5320 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5321 else $CC -o impgen impgen.c ; fi)~
5322 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5323
5324 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5325
5326 # cygwin and mingw dlls have different entry points and sets of symbols
5327 # to exclude.
5328 # FIXME: what about values for MSVC?
5329 dll_entry=__cygwin_dll_entry@12
5330 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5331 case $host_os in
5332 mingw*)
5333 # mingw values
5334 dll_entry=_DllMainCRTStartup@12
5335 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5336 ;;
5337 esac
5338
5339 # mingw and cygwin differ, and it's simplest to just exclude the union
5340 # of the two symbol sets.
5341 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5342
5343 # recent cygwin and mingw systems supply a stub DllMain which the user
5344 # can override, but on older systems we have to supply one (in ltdll.c)
5345 if test "x$lt_cv_need_dllmain" = "xyes"; then
5346 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5347 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5348 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5349 else
5350 ltdll_obj=
5351 ltdll_cmds=
5352 fi
5353
5354 # Extract the symbol export list from an `--export-all' def file,
5355 # then regenerate the def file from the symbol export list, so that
5356 # the compiled dll only exports the symbol export list.
5357 # Be careful not to strip the DATA tag left be newer dlltools.
5358 export_symbols_cmds="$ltdll_cmds"'
5359 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5360 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5361
5362 # If the export-symbols file already is a .def file (1st line
5363 # is EXPORTS), use it as is.
5364 # If DATA tags from a recent dlltool are present, honour them!
5365 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5366 cp $export_symbols $output_objdir/$soname-def;
5367 else
5368 echo EXPORTS > $output_objdir/$soname-def;
5369 _lt_hint=1;
5370 cat $export_symbols | while read symbol; do
5371 set dummy \$symbol;
5372 case \$# in
5373 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5374 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5375 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5376 esac;
5377 _lt_hint=`expr 1 + \$_lt_hint`;
5378 done;
5379 fi~
5380 '"$ltdll_cmds"'
5381 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5382 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5383 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5384 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5385 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5386 ;;
5387
5388 netbsd*)
5389 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5390 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5391 wlarc=
5392 else
5393 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5394 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5395 fi
5396 ;;
5397
5398 solaris* | sysv5*)
5399 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5400 ld_shlibs=no
5401 cat <<EOF 1>&2
5402
5403*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5404*** create shared libraries on Solaris systems. Therefore, libtool
5405*** is disabling shared libraries support. We urge you to upgrade GNU
5406*** binutils to release 2.9.1 or newer. Another option is to modify
5407*** your PATH or compiler configuration so that the native linker is
5408*** used, and then restart.
5409
5410EOF
5411 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5413 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5414 else
5415 ld_shlibs=no
5416 fi
5417 ;;
5418
5419 sunos4*)
5420 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5421 wlarc=
5422 hardcode_direct=yes
5423 hardcode_shlibpath_var=no
5424 ;;
5425
5426 *)
5427 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5428 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5429 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5430 else
5431 ld_shlibs=no
5432 fi
5433 ;;
5434 esac
5435
5436 if test "$ld_shlibs" = yes; then
5437 runpath_var=LD_RUN_PATH
5438 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5439 export_dynamic_flag_spec='${wl}--export-dynamic'
5440 case $host_os in
5441 cygwin* | mingw* | pw32*)
5442 # dlltool doesn't understand --whole-archive et. al.
5443 whole_archive_flag_spec=
5444 ;;
5445 *)
5446 # ancient GNU ld didn't support --whole-archive et. al.
5447 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5448 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5449 else
5450 whole_archive_flag_spec=
5451 fi
5452 ;;
5453 esac
5454 fi
5455else
5456 # PORTME fill in a description of your system's linker (not GNU ld)
5457 case $host_os in
5458 aix3*)
5459 allow_undefined_flag=unsupported
5460 always_export_symbols=yes
5461 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5462 # Note: this linker hardcodes the directories in LIBPATH if there
5463 # are no directories specified by -L.
5464 hardcode_minus_L=yes
5465 if test "$GCC" = yes && test -z "$link_static_flag"; then
5466 # Neither direct hardcoding nor static linking is supported with a
5467 # broken collect2.
5468 hardcode_direct=unsupported
5469 fi
5470 ;;
5471
5472 aix4* | aix5*)
5473 if test "$host_cpu" = ia64; then
5474 # On IA64, the linker does run time linking by default, so we don't
5475 # have to do anything special.
5476 aix_use_runtimelinking=no
5477 exp_sym_flag='-Bexport'
5478 no_entry_flag=""
5479 else
5480 aix_use_runtimelinking=no
5481
5482 # Test if we are trying to use run time linking or normal
5483 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5484 # need to do runtime linking.
5485 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5486 for ld_flag in $LDFLAGS; do
5487 case $ld_flag in
5488 *-brtl*)
5489 aix_use_runtimelinking=yes
5490 break
5491 ;;
5492 esac
5493 done
5494 esac
5495
5496 exp_sym_flag='-bexport'
5497 no_entry_flag='-bnoentry'
5498 fi
5499
5500 # When large executables or shared objects are built, AIX ld can
5501 # have problems creating the table of contents. If linking a library
5502 # or program results in "error TOC overflow" add -mminimal-toc to
5503 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5504 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5505
5506 hardcode_direct=yes
5507 archive_cmds=''
5508 hardcode_libdir_separator=':'
5509 if test "$GCC" = yes; then
5510 case $host_os in aix4.[012]|aix4.[012].*)
5511 collect2name=`${CC} -print-prog-name=collect2`
5512 if test -f "$collect2name" && \
5513 strings "$collect2name" | grep resolve_lib_name >/dev/null
5514 then
5515 # We have reworked collect2
5516 hardcode_direct=yes
5517 else
5518 # We have old collect2
5519 hardcode_direct=unsupported
5520 # It fails to find uninstalled libraries when the uninstalled
5521 # path is not listed in the libpath. Setting hardcode_minus_L
5522 # to unsupported forces relinking
5523 hardcode_minus_L=yes
5524 hardcode_libdir_flag_spec='-L$libdir'
5525 hardcode_libdir_separator=
5526 fi
5527 esac
5528
5529 shared_flag='-shared'
5530 else
5531 # not using gcc
5532 if test "$host_cpu" = ia64; then
5533 shared_flag='${wl}-G'
5534 else
5535 if test "$aix_use_runtimelinking" = yes; then
5536 shared_flag='${wl}-G'
5537 else
5538 shared_flag='${wl}-bM:SRE'
5539 fi
5540 fi
5541 fi
5542
5543 # It seems that -bexpall can do strange things, so it is better to
5544 # generate a list of symbols to export.
5545 always_export_symbols=yes
5546 if test "$aix_use_runtimelinking" = yes; then
5547 # Warning - without using the other runtime loading flags (-brtl),
5548 # -berok will link without error, but may produce a broken library.
5549 allow_undefined_flag='-berok'
5550 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5551 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5552 else
5553 if test "$host_cpu" = ia64; then
5554 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5555 allow_undefined_flag="-z nodefs"
5556 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5557 else
5558 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5559 # Warning - without using the other run time loading flags,
5560 # -berok will link without error, but may produce a broken library.
5561 allow_undefined_flag='${wl}-berok'
5562 # This is a bit strange, but is similar to how AIX traditionally builds
5563 # it's shared libraries.
5564 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5565 fi
5566 fi
5567 ;;
5568
5569 amigaos*)
5570 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5571 hardcode_libdir_flag_spec='-L$libdir'
5572 hardcode_minus_L=yes
5573 # see comment about different semantics on the GNU ld section
5574 ld_shlibs=no
5575 ;;
5576
5577 cygwin* | mingw* | pw32*)
5578 # When not using gcc, we currently assume that we are using
5579 # Microsoft Visual C++.
5580 # hardcode_libdir_flag_spec is actually meaningless, as there is
5581 # no search path for DLLs.
5582 hardcode_libdir_flag_spec=' '
5583 allow_undefined_flag=unsupported
5584 # Tell ltmain to make .lib files, not .a files.
5585 libext=lib
5586 # FIXME: Setting linknames here is a bad hack.
5587 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5588 # The linker will automatically build a .lib file if we build a DLL.
5589 old_archive_from_new_cmds='true'
5590 # FIXME: Should let the user specify the lib program.
5591 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5592 fix_srcfile_path='`cygpath -w "$srcfile"`'
5593 ;;
5594
5595 darwin* | rhapsody*)
5596 case "$host_os" in
5597 rhapsody* | darwin1.[012])
5598 allow_undefined_flag='-undefined suppress'
5599 ;;
5600 *) # Darwin 1.3 on
5601 allow_undefined_flag='-flat_namespace -undefined suppress'
5602 ;;
5603 esac
5604 # FIXME: Relying on posixy $() will cause problems for
5605 # cross-compilation, but unfortunately the echo tests do not
5606 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5607 # `"' quotes if we put them in here... so don't!
5608 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5609 # We need to add '_' to the symbols in $export_symbols first
5610 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5611 hardcode_direct=yes
5612 hardcode_shlibpath_var=no
5613 whole_archive_flag_spec='-all_load $convenience'
5614 ;;
5615
5616 freebsd1*)
5617 ld_shlibs=no
5618 ;;
5619
5620 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5621 # support. Future versions do this automatically, but an explicit c++rt0.o
5622 # does not break anything, and helps significantly (at the cost of a little
5623 # extra space).
5624 freebsd2.2*)
5625 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5626 hardcode_libdir_flag_spec='-R$libdir'
5627 hardcode_direct=yes
5628 hardcode_shlibpath_var=no
5629 ;;
5630
5631 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5632 freebsd2*)
5633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5634 hardcode_direct=yes
5635 hardcode_minus_L=yes
5636 hardcode_shlibpath_var=no
5637 ;;
5638
5639 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5640 freebsd*)
5641 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5642 hardcode_libdir_flag_spec='-R$libdir'
5643 hardcode_direct=yes
5644 hardcode_shlibpath_var=no
5645 ;;
5646
5647 hpux9* | hpux10* | hpux11*)
5648 case $host_os in
5649 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
5650 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5651 esac
5652 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5653 hardcode_libdir_separator=:
5654 hardcode_direct=yes
5655 hardcode_minus_L=yes # Not in the search PATH, but as the default
5656 # location of the library.
5657 export_dynamic_flag_spec='${wl}-E'
5658 ;;
5659
5660 irix5* | irix6* | nonstopux*)
5661 if test "$GCC" = yes; then
5662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5663 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5664 else
5665 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5666 hardcode_libdir_flag_spec='-rpath $libdir'
5667 fi
5668 hardcode_libdir_separator=:
5669 link_all_deplibs=yes
5670 ;;
5671
5672 netbsd*)
5673 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5674 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5675 else
5676 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5677 fi
5678 hardcode_libdir_flag_spec='-R$libdir'
5679 hardcode_direct=yes
5680 hardcode_shlibpath_var=no
5681 ;;
5682
5683 newsos6)
5684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5685 hardcode_direct=yes
5686 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5687 hardcode_libdir_separator=:
5688 hardcode_shlibpath_var=no
5689 ;;
5690
5691 openbsd*)
5692 hardcode_direct=yes
5693 hardcode_shlibpath_var=no
5694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5695 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5696 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5697 export_dynamic_flag_spec='${wl}-E'
5698 else
5699 case "$host_os" in
5700 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5702 hardcode_libdir_flag_spec='-R$libdir'
5703 ;;
5704 *)
5705 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5706 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5707 ;;
5708 esac
5709 fi
5710 ;;
5711
5712 os2*)
5713 hardcode_libdir_flag_spec='-L$libdir'
5714 hardcode_minus_L=yes
5715 allow_undefined_flag=unsupported
5716 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5717 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5718 ;;
5719
5720 osf3*)
5721 if test "$GCC" = yes; then
5722 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5723 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5724 else
5725 allow_undefined_flag=' -expect_unresolved \*'
5726 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5727 fi
5728 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5729 hardcode_libdir_separator=:
5730 ;;
5731
5732 osf4* | osf5*) # as osf3* with the addition of -msym flag
5733 if test "$GCC" = yes; then
5734 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5735 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5737 else
5738 allow_undefined_flag=' -expect_unresolved \*'
5739 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5740 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5741 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5742
5743 #Both c and cxx compiler support -rpath directly
5744 hardcode_libdir_flag_spec='-rpath $libdir'
5745 fi
5746 hardcode_libdir_separator=:
5747 ;;
5748
5749 sco3.2v5*)
5750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5751 hardcode_shlibpath_var=no
5752 runpath_var=LD_RUN_PATH
5753 hardcode_runpath_var=yes
5754 export_dynamic_flag_spec='${wl}-Bexport'
5755 ;;
5756
5757 solaris*)
5758 # gcc --version < 3.0 without binutils cannot create self contained
5759 # shared libraries reliably, requiring libgcc.a to resolve some of
5760 # the object symbols generated in some cases. Libraries that use
5761 # assert need libgcc.a to resolve __eprintf, for example. Linking
5762 # a copy of libgcc.a into every shared library to guarantee resolving
5763 # such symbols causes other problems: According to Tim Van Holder
5764 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5765 # (to the application) exception stack for one thing.
5766 no_undefined_flag=' -z defs'
5767 if test "$GCC" = yes; then
5768 case `$CC --version 2>/dev/null` in
5769 [12].*)
5770 cat <<EOF 1>&2
5771
5772*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5773*** create self contained shared libraries on Solaris systems, without
5774*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5775*** -no-undefined support, which will at least allow you to build shared
5776*** libraries. However, you may find that when you link such libraries
5777*** into an application without using GCC, you have to manually add
5778*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5779*** upgrade to a newer version of GCC. Another option is to rebuild your
5780*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5781
5782EOF
5783 no_undefined_flag=
5784 ;;
5785 esac
5786 fi
5787 # $CC -shared without GNU ld will not create a library from C++
5788 # object files and a static libstdc++, better avoid it by now
5789 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5790 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5791 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5792 hardcode_libdir_flag_spec='-R$libdir'
5793 hardcode_shlibpath_var=no
5794 case $host_os in
5795 solaris2.[0-5] | solaris2.[0-5].*) ;;
5796 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5797 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5798 esac
5799 link_all_deplibs=yes
5800 ;;
5801
5802 sunos4*)
5803 if test "x$host_vendor" = xsequent; then
5804 # Use $CC to link under sequent, because it throws in some extra .o
5805 # files that make .init and .fini sections work.
5806 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5807 else
5808 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5809 fi
5810 hardcode_libdir_flag_spec='-L$libdir'
5811 hardcode_direct=yes
5812 hardcode_minus_L=yes
5813 hardcode_shlibpath_var=no
5814 ;;
5815
5816 sysv4)
5817 case $host_vendor in
5818 sni)
5819 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5820 hardcode_direct=yes # is this really true???
5821 ;;
5822 siemens)
5823 ## LD is ld it makes a PLAMLIB
5824 ## CC just makes a GrossModule.
5825 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5826 reload_cmds='$CC -r -o $output$reload_objs'
5827 hardcode_direct=no
5828 ;;
5829 motorola)
5830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5831 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5832 ;;
5833 esac
5834 runpath_var='LD_RUN_PATH'
5835 hardcode_shlibpath_var=no
5836 ;;
5837
5838 sysv4.3*)
5839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5840 hardcode_shlibpath_var=no
5841 export_dynamic_flag_spec='-Bexport'
5842 ;;
5843
5844 sysv5*)
5845 no_undefined_flag=' -z text'
5846 # $CC -shared without GNU ld will not create a library from C++
5847 # object files and a static libstdc++, better avoid it by now
5848 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5849 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5850 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5851 hardcode_libdir_flag_spec=
5852 hardcode_shlibpath_var=no
5853 runpath_var='LD_RUN_PATH'
5854 ;;
5855
5856 uts4*)
5857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5858 hardcode_libdir_flag_spec='-L$libdir'
5859 hardcode_shlibpath_var=no
5860 ;;
5861
5862 dgux*)
5863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5864 hardcode_libdir_flag_spec='-L$libdir'
5865 hardcode_shlibpath_var=no
5866 ;;
5867
5868 sysv4*MP*)
5869 if test -d /usr/nec; then
5870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5871 hardcode_shlibpath_var=no
5872 runpath_var=LD_RUN_PATH
5873 hardcode_runpath_var=yes
5874 ld_shlibs=yes
5875 fi
5876 ;;
5877
5878 sysv4.2uw2*)
5879 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5880 hardcode_direct=yes
5881 hardcode_minus_L=no
5882 hardcode_shlibpath_var=no
5883 hardcode_runpath_var=yes
5884 runpath_var=LD_RUN_PATH
5885 ;;
5886
5887 sysv5uw7* | unixware7*)
5888 no_undefined_flag='${wl}-z ${wl}text'
5889 if test "$GCC" = yes; then
5890 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5891 else
5892 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5893 fi
5894 runpath_var='LD_RUN_PATH'
5895 hardcode_shlibpath_var=no
5896 ;;
5897
5898 *)
5899 ld_shlibs=no
5900 ;;
5901 esac
5902fi
5903echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5904echo "${ECHO_T}$ld_shlibs" >&6
5905test "$ld_shlibs" = no && can_build_shared=no
5906
5907# Check hardcoding attributes.
5908echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5909echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5910hardcode_action=
5911if test -n "$hardcode_libdir_flag_spec" || \
5912 test -n "$runpath_var"; then
5913
5914 # We can hardcode non-existant directories.
5915 if test "$hardcode_direct" != no &&
5916 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5917 # have to relink, otherwise we might link with an installed library
5918 # when we should be linking with a yet-to-be-installed one
5919 ## test "$hardcode_shlibpath_var" != no &&
5920 test "$hardcode_minus_L" != no; then
5921 # Linking always hardcodes the temporary library directory.
5922 hardcode_action=relink
5923 else
5924 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5925 hardcode_action=immediate
5926 fi
5927else
5928 # We cannot hardcode anything, or else we can only hardcode existing
5929 # directories.
5930 hardcode_action=unsupported
5931fi
5932echo "$as_me:$LINENO: result: $hardcode_action" >&5
5933echo "${ECHO_T}$hardcode_action" >&6
5934
5935striplib=
5936old_striplib=
5937echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5938echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5939if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5940 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5941 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5942 echo "$as_me:$LINENO: result: yes" >&5
5943echo "${ECHO_T}yes" >&6
5944else
5945 echo "$as_me:$LINENO: result: no" >&5
5946echo "${ECHO_T}no" >&6
5947fi
5948
5949reload_cmds='$LD$reload_flag -o $output$reload_objs'
5950test -z "$deplibs_check_method" && deplibs_check_method=unknown
5951
5952# PORTME Fill in your ld.so characteristics
5953echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5954echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5955library_names_spec=
5956libname_spec='lib$name'
5957soname_spec=
5958postinstall_cmds=
5959postuninstall_cmds=
5960finish_cmds=
5961finish_eval=
5962shlibpath_var=
5963shlibpath_overrides_runpath=unknown
5964version_type=none
5965dynamic_linker="$host_os ld.so"
5966sys_lib_dlsearch_path_spec="/lib /usr/lib"
5967sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5968
5969case $host_os in
5970aix3*)
5971 version_type=linux
5972 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5973 shlibpath_var=LIBPATH
5974
5975 # AIX has no versioning support, so we append a major version to the name.
5976 soname_spec='${libname}${release}.so$major'
5977 ;;
5978
5979aix4* | aix5*)
5980 version_type=linux
5981 need_lib_prefix=no
5982 need_version=no
5983 hardcode_into_libs=yes
5984 if test "$host_cpu" = ia64; then
5985 # AIX 5 supports IA64
5986 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5987 shlibpath_var=LD_LIBRARY_PATH
5988 else
5989 # With GCC up to 2.95.x, collect2 would create an import file
5990 # for dependence libraries. The import file would start with
5991 # the line `#! .'. This would cause the generated library to
5992 # depend on `.', always an invalid library. This was fixed in
5993 # development snapshots of GCC prior to 3.0.
5994 case $host_os in
5995 aix4 | aix4.[01] | aix4.[01].*)
5996 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5997 echo ' yes '
5998 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5999 :
6000 else
6001 can_build_shared=no
6002 fi
6003 ;;
6004 esac
6005 # AIX (on Power*) has no versioning support, so currently we can
6006 # not hardcode correct soname into executable. Probably we can
6007 # add versioning support to collect2, so additional links can
6008 # be useful in future.
6009 if test "$aix_use_runtimelinking" = yes; then
6010 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6011 # instead of lib<name>.a to let people know that these are not
6012 # typical AIX shared libraries.
6013 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6014 else
6015 # We preserve .a as extension for shared libraries through AIX4.2
6016 # and later when we are not doing run time linking.
6017 library_names_spec='${libname}${release}.a $libname.a'
6018 soname_spec='${libname}${release}.so$major'
6019 fi
6020 shlibpath_var=LIBPATH
6021 fi
6022 hardcode_into_libs=yes
6023 ;;
6024
6025amigaos*)
6026 library_names_spec='$libname.ixlibrary $libname.a'
6027 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6028 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6029 ;;
6030
6031beos*)
6032 library_names_spec='${libname}.so'
6033 dynamic_linker="$host_os ld.so"
6034 shlibpath_var=LIBRARY_PATH
6035 ;;
6036
6037bsdi4*)
6038 version_type=linux
6039 need_version=no
6040 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6041 soname_spec='${libname}${release}.so$major'
6042 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6043 shlibpath_var=LD_LIBRARY_PATH
6044 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6045 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6046 export_dynamic_flag_spec=-rdynamic
6047 # the default ld.so.conf also contains /usr/contrib/lib and
6048 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6049 # libtool to hard-code these into programs
6050 ;;
6051
6052cygwin* | mingw* | pw32*)
6053 version_type=windows
6054 need_version=no
6055 need_lib_prefix=no
6056 case $GCC,$host_os in
6057 yes,cygwin*)
6058 library_names_spec='$libname.dll.a'
6059 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6060 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6061 dldir=$destdir/`dirname \$dlpath`~
6062 test -d \$dldir || mkdir -p \$dldir~
6063 $install_prog .libs/$dlname \$dldir/$dlname'
6064 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6065 dlpath=$dir/\$dldll~
6066 $rm \$dlpath'
6067 ;;
6068 yes,mingw*)
6069 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6070 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6071 ;;
6072 yes,pw32*)
6073 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6074 ;;
6075 *)
6076 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6077 ;;
6078 esac
6079 dynamic_linker='Win32 ld.exe'
6080 # FIXME: first we should search . and the directory the executable is in
6081 shlibpath_var=PATH
6082 ;;
6083
6084darwin* | rhapsody*)
6085 dynamic_linker="$host_os dyld"
6086 version_type=darwin
6087 need_lib_prefix=no
6088 need_version=no
6089 # FIXME: Relying on posixy $() will cause problems for
6090 # cross-compilation, but unfortunately the echo tests do not
6091 # yet detect zsh echo's removal of \ escapes.
6092 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6093 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6094 shlibpath_overrides_runpath=yes
6095 shlibpath_var=DYLD_LIBRARY_PATH
6096 ;;
6097
6098freebsd1*)
6099 dynamic_linker=no
6100 ;;
6101
6102freebsd*-gnu*)
6103 version_type=linux
6104 need_lib_prefix=no
6105 need_version=no
6106 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6107 soname_spec='${libname}${release}.so$major'
6108 shlibpath_var=LD_LIBRARY_PATH
6109 shlibpath_overrides_runpath=no
6110 hardcode_into_libs=yes
6111 dynamic_linker='GNU/FreeBSD ld.so'
6112 ;;
6113
6114freebsd*)
6115 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6116 version_type=freebsd-$objformat
6117 case $version_type in
6118 freebsd-elf*)
6119 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6120 need_version=no
6121 need_lib_prefix=no
6122 ;;
6123 freebsd-*)
6124 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6125 need_version=yes
6126 ;;
6127 esac
6128 shlibpath_var=LD_LIBRARY_PATH
6129 case $host_os in
6130 freebsd2*)
6131 shlibpath_overrides_runpath=yes
6132 ;;
6133 *)
6134 shlibpath_overrides_runpath=no
6135 hardcode_into_libs=yes
6136 ;;
6137 esac
6138 ;;
6139
6140gnu*)
6141 version_type=linux
6142 need_lib_prefix=no
6143 need_version=no
6144 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6145 soname_spec='${libname}${release}.so$major'
6146 shlibpath_var=LD_LIBRARY_PATH
6147 hardcode_into_libs=yes
6148 ;;
6149
6150hpux9* | hpux10* | hpux11*)
6151 # Give a soname corresponding to the major version so that dld.sl refuses to
6152 # link against other versions.
6153 dynamic_linker="$host_os dld.sl"
6154 version_type=sunos
6155 need_lib_prefix=no
6156 need_version=no
6157 shlibpath_var=SHLIB_PATH
6158 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6159 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6160 soname_spec='${libname}${release}.sl$major'
6161 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6162 postinstall_cmds='chmod 555 $lib'
6163 ;;
6164
6165irix5* | irix6* | nonstopux*)
6166 case $host_os in
6167 nonstopux*) version_type=nonstopux ;;
6168 *) version_type=irix ;;
6169 esac
6170 need_lib_prefix=no
6171 need_version=no
6172 soname_spec='${libname}${release}.so$major'
6173 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6174 case $host_os in
6175 irix5* | nonstopux*)
6176 libsuff= shlibsuff=
6177 ;;
6178 *)
6179 case $LD in # libtool.m4 will add one of these switches to LD
6180 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6181 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6182 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6183 *) libsuff= shlibsuff= libmagic=never-match;;
6184 esac
6185 ;;
6186 esac
6187 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6188 shlibpath_overrides_runpath=no
6189 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6190 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6191 ;;
6192
6193# No shared lib support for Linux oldld, aout, or coff.
6194linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6195 dynamic_linker=no
6196 ;;
6197
6198# This must be Linux ELF.
6199linux-gnu*)
6200 version_type=linux
6201 need_lib_prefix=no
6202 need_version=no
6203 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6204 soname_spec='${libname}${release}.so$major'
6205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6206 shlibpath_var=LD_LIBRARY_PATH
6207 shlibpath_overrides_runpath=no
6208 # This implies no fast_install, which is unacceptable.
6209 # Some rework will be needed to allow for fast_install
6210 # before this can be enabled.
6211 hardcode_into_libs=yes
6212
6213 # We used to test for /lib/ld.so.1 and disable shared libraries on
6214 # powerpc, because MkLinux only supported shared libraries with the
6215 # GNU dynamic linker. Since this was broken with cross compilers,
6216 # most powerpc-linux boxes support dynamic linking these days and
6217 # people can always --disable-shared, the test was removed, and we
6218 # assume the GNU/Linux dynamic linker is in use.
6219 dynamic_linker='GNU/Linux ld.so'
6220 ;;
6221
6222netbsd*)
6223 version_type=sunos
6224 need_lib_prefix=no
6225 need_version=no
6226 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6227 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6229 dynamic_linker='NetBSD (a.out) ld.so'
6230 else
6231 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6232 soname_spec='${libname}${release}.so$major'
6233 dynamic_linker='NetBSD ld.elf_so'
6234 fi
6235 shlibpath_var=LD_LIBRARY_PATH
6236 shlibpath_overrides_runpath=yes
6237 hardcode_into_libs=yes
6238 ;;
6239
6240newsos6)
6241 version_type=linux
6242 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6243 shlibpath_var=LD_LIBRARY_PATH
6244 shlibpath_overrides_runpath=yes
6245 ;;
6246
6247openbsd*)
6248 version_type=sunos
6249 need_lib_prefix=no
6250 need_version=no
6251 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6252 case "$host_os" in
6253 openbsd2.[89] | openbsd2.[89].*)
6254 shlibpath_overrides_runpath=no
6255 ;;
6256 *)
6257 shlibpath_overrides_runpath=yes
6258 ;;
6259 esac
6260 else
6261 shlibpath_overrides_runpath=yes
6262 fi
6263 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6265 shlibpath_var=LD_LIBRARY_PATH
6266 ;;
6267
6268os2*)
6269 libname_spec='$name'
6270 need_lib_prefix=no
6271 library_names_spec='$libname.dll $libname.a'
6272 dynamic_linker='OS/2 ld.exe'
6273 shlibpath_var=LIBPATH
6274 ;;
6275
6276osf3* | osf4* | osf5*)
6277 version_type=osf
6278 need_version=no
6279 need_lib_prefix=no
6280 soname_spec='${libname}${release}.so$major'
6281 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6282 shlibpath_var=LD_LIBRARY_PATH
6283 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6284 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6285 hardcode_into_libs=yes
6286 ;;
6287
6288sco3.2v5*)
6289 version_type=osf
6290 soname_spec='${libname}${release}.so$major'
6291 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6292 shlibpath_var=LD_LIBRARY_PATH
6293 ;;
6294
6295solaris*)
6296 version_type=linux
6297 need_lib_prefix=no
6298 need_version=no
6299 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6300 soname_spec='${libname}${release}.so$major'
6301 shlibpath_var=LD_LIBRARY_PATH
6302 shlibpath_overrides_runpath=yes
6303 hardcode_into_libs=yes
6304 # ldd complains unless libraries are executable
6305 postinstall_cmds='chmod +x $lib'
6306 ;;
6307
6308sunos4*)
6309 version_type=sunos
6310 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6311 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6312 shlibpath_var=LD_LIBRARY_PATH
6313 shlibpath_overrides_runpath=yes
6314 if test "$with_gnu_ld" = yes; then
6315 need_lib_prefix=no
6316 fi
6317 need_version=yes
6318 ;;
6319
6320sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6321 version_type=linux
6322 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6323 soname_spec='${libname}${release}.so$major'
6324 shlibpath_var=LD_LIBRARY_PATH
6325 case $host_vendor in
6326 sni)
6327 shlibpath_overrides_runpath=no
6328 need_lib_prefix=no
6329 export_dynamic_flag_spec='${wl}-Blargedynsym'
6330 runpath_var=LD_RUN_PATH
6331 ;;
6332 siemens)
6333 need_lib_prefix=no
6334 ;;
6335 motorola)
6336 need_lib_prefix=no
6337 need_version=no
6338 shlibpath_overrides_runpath=no
6339 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6340 ;;
6341 esac
6342 ;;
6343
6344uts4*)
6345 version_type=linux
6346 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6347 soname_spec='${libname}${release}.so$major'
6348 shlibpath_var=LD_LIBRARY_PATH
6349 ;;
6350
6351dgux*)
6352 version_type=linux
6353 need_lib_prefix=no
6354 need_version=no
6355 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6356 soname_spec='${libname}${release}.so$major'
6357 shlibpath_var=LD_LIBRARY_PATH
6358 ;;
6359
6360sysv4*MP*)
6361 if test -d /usr/nec ;then
6362 version_type=linux
6363 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6364 soname_spec='$libname.so.$major'
6365 shlibpath_var=LD_LIBRARY_PATH
6366 fi
6367 ;;
6368
6369*)
6370 dynamic_linker=no
6371 ;;
6372esac
6373echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6374echo "${ECHO_T}$dynamic_linker" >&6
6375test "$dynamic_linker" = no && can_build_shared=no
6376
6377# Report the final consequences.
6378echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6379echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6380echo "$as_me:$LINENO: result: $can_build_shared" >&5
6381echo "${ECHO_T}$can_build_shared" >&6
6382
6383echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6384echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6385test "$can_build_shared" = "no" && enable_shared=no
6386
6387# On AIX, shared libraries and static libraries use the same namespace, and
6388# are all built from PIC.
6389case "$host_os" in
6390aix3*)
6391 test "$enable_shared" = yes && enable_static=no
6392 if test -n "$RANLIB"; then
6393 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6394 postinstall_cmds='$RANLIB $lib'
6395 fi
6396 ;;
6397
6398aix4*)
6399 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6400 test "$enable_shared" = yes && enable_static=no
6401 fi
6402 ;;
6403esac
6404echo "$as_me:$LINENO: result: $enable_shared" >&5
6405echo "${ECHO_T}$enable_shared" >&6
6406
6407echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6408echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6409# Make sure either enable_shared or enable_static is yes.
6410test "$enable_shared" = yes || enable_static=yes
6411echo "$as_me:$LINENO: result: $enable_static" >&5
6412echo "${ECHO_T}$enable_static" >&6
6413
6414if test "$hardcode_action" = relink; then
6415 # Fast installation is not supported
6416 enable_fast_install=no
6417elif test "$shlibpath_overrides_runpath" = yes ||
6418 test "$enable_shared" = no; then
6419 # Fast installation is not necessary
6420 enable_fast_install=needless
6421fi
6422
6423variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6424if test "$GCC" = yes; then
6425 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6426fi
6427
6428if test "x$enable_dlopen" != xyes; then
6429 enable_dlopen=unknown
6430 enable_dlopen_self=unknown
6431 enable_dlopen_self_static=unknown
6432else
6433 lt_cv_dlopen=no
6434 lt_cv_dlopen_libs=
6435
6436 case $host_os in
6437 beos*)
6438 lt_cv_dlopen="load_add_on"
6439 lt_cv_dlopen_libs=
6440 lt_cv_dlopen_self=yes
6441 ;;
6442
6443 cygwin* | mingw* | pw32*)
6444 lt_cv_dlopen="LoadLibrary"
6445 lt_cv_dlopen_libs=
6446 ;;
6447
6448 *)
6449 echo "$as_me:$LINENO: checking for shl_load" >&5
6450echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6451if test "${ac_cv_func_shl_load+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6453else
6454 cat >conftest.$ac_ext <<_ACEOF
6455#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006456#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006457/* System header to define __stub macros and hopefully few prototypes,
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006458 which can conflict with char shl_load (); below. */
6459#include <assert.h>
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006460/* Override any gcc2 internal prototype to avoid an error. */
6461#ifdef __cplusplus
6462extern "C"
6463#endif
6464/* We use char because int might match the return type of a gcc2
6465 builtin and then its argument prototype would still apply. */
6466char shl_load ();
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006467char (*f) ();
6468
6469int
6470main ()
6471{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006472/* The GNU C library defines this for functions which it implements
6473 to always fail with ENOSYS. Some functions are actually named
6474 something starting with __ and the normal name is an alias. */
6475#if defined (__stub_shl_load) || defined (__stub___shl_load)
6476choke me
6477#else
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006478f = shl_load;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006479#endif
6480
6481 ;
6482 return 0;
6483}
6484_ACEOF
6485rm -f conftest.$ac_objext conftest$ac_exeext
6486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6487 (eval $ac_link) 2>&5
6488 ac_status=$?
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } &&
6491 { ac_try='test -s conftest$ac_exeext'
6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 (eval $ac_try) 2>&5
6494 ac_status=$?
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; }; then
6497 ac_cv_func_shl_load=yes
6498else
6499 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006500cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006501ac_cv_func_shl_load=no
6502fi
6503rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6504fi
6505echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6506echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6507if test $ac_cv_func_shl_load = yes; then
6508 lt_cv_dlopen="shl_load"
6509else
6510 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6511echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6512if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6514else
6515 ac_check_lib_save_LIBS=$LIBS
6516LIBS="-ldld $LIBS"
6517cat >conftest.$ac_ext <<_ACEOF
6518#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006519#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006520
6521/* Override any gcc2 internal prototype to avoid an error. */
6522#ifdef __cplusplus
6523extern "C"
6524#endif
6525/* We use char because int might match the return type of a gcc2
6526 builtin and then its argument prototype would still apply. */
6527char shl_load ();
6528int
6529main ()
6530{
6531shl_load ();
6532 ;
6533 return 0;
6534}
6535_ACEOF
6536rm -f conftest.$ac_objext conftest$ac_exeext
6537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6538 (eval $ac_link) 2>&5
6539 ac_status=$?
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); } &&
6542 { ac_try='test -s conftest$ac_exeext'
6543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544 (eval $ac_try) 2>&5
6545 ac_status=$?
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); }; }; then
6548 ac_cv_lib_dld_shl_load=yes
6549else
6550 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006551cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006552ac_cv_lib_dld_shl_load=no
6553fi
6554rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6555LIBS=$ac_check_lib_save_LIBS
6556fi
6557echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6558echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6559if test $ac_cv_lib_dld_shl_load = yes; then
6560 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6561else
6562 echo "$as_me:$LINENO: checking for dlopen" >&5
6563echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6564if test "${ac_cv_func_dlopen+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566else
6567 cat >conftest.$ac_ext <<_ACEOF
6568#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006569#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006570/* System header to define __stub macros and hopefully few prototypes,
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006571 which can conflict with char dlopen (); below. */
6572#include <assert.h>
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006573/* Override any gcc2 internal prototype to avoid an error. */
6574#ifdef __cplusplus
6575extern "C"
6576#endif
6577/* We use char because int might match the return type of a gcc2
6578 builtin and then its argument prototype would still apply. */
6579char dlopen ();
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006580char (*f) ();
6581
6582int
6583main ()
6584{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006585/* The GNU C library defines this for functions which it implements
6586 to always fail with ENOSYS. Some functions are actually named
6587 something starting with __ and the normal name is an alias. */
6588#if defined (__stub_dlopen) || defined (__stub___dlopen)
6589choke me
6590#else
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006591f = dlopen;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006592#endif
6593
6594 ;
6595 return 0;
6596}
6597_ACEOF
6598rm -f conftest.$ac_objext conftest$ac_exeext
6599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6600 (eval $ac_link) 2>&5
6601 ac_status=$?
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -s conftest$ac_exeext'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 (eval $ac_try) 2>&5
6607 ac_status=$?
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; }; then
6610 ac_cv_func_dlopen=yes
6611else
6612 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006613cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006614ac_cv_func_dlopen=no
6615fi
6616rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6617fi
6618echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6619echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6620if test $ac_cv_func_dlopen = yes; then
6621 lt_cv_dlopen="dlopen"
6622else
6623 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6624echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6625if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627else
6628 ac_check_lib_save_LIBS=$LIBS
6629LIBS="-ldl $LIBS"
6630cat >conftest.$ac_ext <<_ACEOF
6631#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006632#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006633
6634/* Override any gcc2 internal prototype to avoid an error. */
6635#ifdef __cplusplus
6636extern "C"
6637#endif
6638/* We use char because int might match the return type of a gcc2
6639 builtin and then its argument prototype would still apply. */
6640char dlopen ();
6641int
6642main ()
6643{
6644dlopen ();
6645 ;
6646 return 0;
6647}
6648_ACEOF
6649rm -f conftest.$ac_objext conftest$ac_exeext
6650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6651 (eval $ac_link) 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } &&
6655 { ac_try='test -s conftest$ac_exeext'
6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 (eval $ac_try) 2>&5
6658 ac_status=$?
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6661 ac_cv_lib_dl_dlopen=yes
6662else
6663 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006664cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006665ac_cv_lib_dl_dlopen=no
6666fi
6667rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6668LIBS=$ac_check_lib_save_LIBS
6669fi
6670echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6671echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6672if test $ac_cv_lib_dl_dlopen = yes; then
6673 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6674else
6675 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6676echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6677if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6679else
6680 ac_check_lib_save_LIBS=$LIBS
6681LIBS="-lsvld $LIBS"
6682cat >conftest.$ac_ext <<_ACEOF
6683#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006684#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006685
6686/* Override any gcc2 internal prototype to avoid an error. */
6687#ifdef __cplusplus
6688extern "C"
6689#endif
6690/* We use char because int might match the return type of a gcc2
6691 builtin and then its argument prototype would still apply. */
6692char dlopen ();
6693int
6694main ()
6695{
6696dlopen ();
6697 ;
6698 return 0;
6699}
6700_ACEOF
6701rm -f conftest.$ac_objext conftest$ac_exeext
6702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703 (eval $ac_link) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } &&
6707 { ac_try='test -s conftest$ac_exeext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 (eval $ac_try) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_cv_lib_svld_dlopen=yes
6714else
6715 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006716cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006717ac_cv_lib_svld_dlopen=no
6718fi
6719rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6720LIBS=$ac_check_lib_save_LIBS
6721fi
6722echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6723echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6724if test $ac_cv_lib_svld_dlopen = yes; then
6725 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6726else
6727 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6728echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6729if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6731else
6732 ac_check_lib_save_LIBS=$LIBS
6733LIBS="-ldld $LIBS"
6734cat >conftest.$ac_ext <<_ACEOF
6735#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006736#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006737
6738/* Override any gcc2 internal prototype to avoid an error. */
6739#ifdef __cplusplus
6740extern "C"
6741#endif
6742/* We use char because int might match the return type of a gcc2
6743 builtin and then its argument prototype would still apply. */
6744char dld_link ();
6745int
6746main ()
6747{
6748dld_link ();
6749 ;
6750 return 0;
6751}
6752_ACEOF
6753rm -f conftest.$ac_objext conftest$ac_exeext
6754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6755 (eval $ac_link) 2>&5
6756 ac_status=$?
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); } &&
6759 { ac_try='test -s conftest$ac_exeext'
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 (eval $ac_try) 2>&5
6762 ac_status=$?
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; }; then
6765 ac_cv_lib_dld_dld_link=yes
6766else
6767 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006768cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006769ac_cv_lib_dld_dld_link=no
6770fi
6771rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6772LIBS=$ac_check_lib_save_LIBS
6773fi
6774echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6775echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6776if test $ac_cv_lib_dld_dld_link = yes; then
6777 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6778fi
6779
6780
6781fi
6782
6783
6784fi
6785
6786
6787fi
6788
6789
6790fi
6791
6792
6793fi
6794
6795 ;;
6796 esac
6797
6798 if test "x$lt_cv_dlopen" != xno; then
6799 enable_dlopen=yes
6800 else
6801 enable_dlopen=no
6802 fi
6803
6804 case $lt_cv_dlopen in
6805 dlopen)
6806 save_CPPFLAGS="$CPPFLAGS"
6807 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6808
6809 save_LDFLAGS="$LDFLAGS"
6810 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6811
6812 save_LIBS="$LIBS"
6813 LIBS="$lt_cv_dlopen_libs $LIBS"
6814
6815 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6816echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6817if test "${lt_cv_dlopen_self+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819else
6820 if test "$cross_compiling" = yes; then :
6821 lt_cv_dlopen_self=cross
6822else
6823 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6824 lt_status=$lt_dlunknown
6825 cat > conftest.$ac_ext <<EOF
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006826#line 6826 "configure"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006827#include "confdefs.h"
6828
6829#if HAVE_DLFCN_H
6830#include <dlfcn.h>
6831#endif
6832
6833#include <stdio.h>
6834
6835#ifdef RTLD_GLOBAL
6836# define LT_DLGLOBAL RTLD_GLOBAL
6837#else
6838# ifdef DL_GLOBAL
6839# define LT_DLGLOBAL DL_GLOBAL
6840# else
6841# define LT_DLGLOBAL 0
6842# endif
6843#endif
6844
6845/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6846 find out it does not work in some platform. */
6847#ifndef LT_DLLAZY_OR_NOW
6848# ifdef RTLD_LAZY
6849# define LT_DLLAZY_OR_NOW RTLD_LAZY
6850# else
6851# ifdef DL_LAZY
6852# define LT_DLLAZY_OR_NOW DL_LAZY
6853# else
6854# ifdef RTLD_NOW
6855# define LT_DLLAZY_OR_NOW RTLD_NOW
6856# else
6857# ifdef DL_NOW
6858# define LT_DLLAZY_OR_NOW DL_NOW
6859# else
6860# define LT_DLLAZY_OR_NOW 0
6861# endif
6862# endif
6863# endif
6864# endif
6865#endif
6866
6867#ifdef __cplusplus
6868extern "C" void exit (int);
6869#endif
6870
6871void fnord() { int i=42;}
6872int main ()
6873{
6874 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6875 int status = $lt_dlunknown;
6876
6877 if (self)
6878 {
6879 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6880 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6881 /* dlclose (self); */
6882 }
6883
6884 exit (status);
6885}
6886EOF
6887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6888 (eval $ac_link) 2>&5
6889 ac_status=$?
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6892 (./conftest; exit; ) 2>/dev/null
6893 lt_status=$?
6894 case x$lt_status in
6895 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6896 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6897 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6898 esac
6899 else :
6900 # compilation failed
6901 lt_cv_dlopen_self=no
6902 fi
6903fi
6904rm -fr conftest*
6905
6906
6907fi
6908echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6909echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6910
6911 if test "x$lt_cv_dlopen_self" = xyes; then
6912 LDFLAGS="$LDFLAGS $link_static_flag"
6913 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6914echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6915if test "${lt_cv_dlopen_self_static+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6917else
6918 if test "$cross_compiling" = yes; then :
6919 lt_cv_dlopen_self_static=cross
6920else
6921 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6922 lt_status=$lt_dlunknown
6923 cat > conftest.$ac_ext <<EOF
mostang.com!davidma8db0b32003-02-08 10:10:59 +00006924#line 6924 "configure"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006925#include "confdefs.h"
6926
6927#if HAVE_DLFCN_H
6928#include <dlfcn.h>
6929#endif
6930
6931#include <stdio.h>
6932
6933#ifdef RTLD_GLOBAL
6934# define LT_DLGLOBAL RTLD_GLOBAL
6935#else
6936# ifdef DL_GLOBAL
6937# define LT_DLGLOBAL DL_GLOBAL
6938# else
6939# define LT_DLGLOBAL 0
6940# endif
6941#endif
6942
6943/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6944 find out it does not work in some platform. */
6945#ifndef LT_DLLAZY_OR_NOW
6946# ifdef RTLD_LAZY
6947# define LT_DLLAZY_OR_NOW RTLD_LAZY
6948# else
6949# ifdef DL_LAZY
6950# define LT_DLLAZY_OR_NOW DL_LAZY
6951# else
6952# ifdef RTLD_NOW
6953# define LT_DLLAZY_OR_NOW RTLD_NOW
6954# else
6955# ifdef DL_NOW
6956# define LT_DLLAZY_OR_NOW DL_NOW
6957# else
6958# define LT_DLLAZY_OR_NOW 0
6959# endif
6960# endif
6961# endif
6962# endif
6963#endif
6964
6965#ifdef __cplusplus
6966extern "C" void exit (int);
6967#endif
6968
6969void fnord() { int i=42;}
6970int main ()
6971{
6972 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6973 int status = $lt_dlunknown;
6974
6975 if (self)
6976 {
6977 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6978 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6979 /* dlclose (self); */
6980 }
6981
6982 exit (status);
6983}
6984EOF
6985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6986 (eval $ac_link) 2>&5
6987 ac_status=$?
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6990 (./conftest; exit; ) 2>/dev/null
6991 lt_status=$?
6992 case x$lt_status in
6993 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6994 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6995 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6996 esac
6997 else :
6998 # compilation failed
6999 lt_cv_dlopen_self_static=no
7000 fi
7001fi
7002rm -fr conftest*
7003
7004
7005fi
7006echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7007echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7008 fi
7009
7010 CPPFLAGS="$save_CPPFLAGS"
7011 LDFLAGS="$save_LDFLAGS"
7012 LIBS="$save_LIBS"
7013 ;;
7014 esac
7015
7016 case $lt_cv_dlopen_self in
7017 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7018 *) enable_dlopen_self=unknown ;;
7019 esac
7020
7021 case $lt_cv_dlopen_self_static in
7022 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7023 *) enable_dlopen_self_static=unknown ;;
7024 esac
7025fi
7026
7027
7028if test "$enable_shared" = yes && test "$GCC" = yes; then
7029 case $archive_cmds in
7030 *'~'*)
7031 # FIXME: we may have to deal with multi-command sequences.
7032 ;;
7033 '$CC '*)
7034 # Test whether the compiler implicitly links with -lc since on some
7035 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7036 # to ld, don't add -lc before -lgcc.
7037 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7038echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7039 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7041else
7042 $rm conftest*
7043 echo 'static int dummy;' > conftest.$ac_ext
7044
7045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7046 (eval $ac_compile) 2>&5
7047 ac_status=$?
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; then
7050 soname=conftest
7051 lib=conftest
7052 libobjs=conftest.$ac_objext
7053 deplibs=
7054 wl=$lt_cv_prog_cc_wl
7055 compiler_flags=-v
7056 linker_flags=-v
7057 verstring=
7058 output_objdir=.
7059 libname=conftest
7060 save_allow_undefined_flag=$allow_undefined_flag
7061 allow_undefined_flag=
7062 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7063 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7064 ac_status=$?
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); }
7067 then
7068 lt_cv_archive_cmds_need_lc=no
7069 else
7070 lt_cv_archive_cmds_need_lc=yes
7071 fi
7072 allow_undefined_flag=$save_allow_undefined_flag
7073 else
7074 cat conftest.err 1>&5
7075 fi
7076fi
7077
7078 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7079echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7080 ;;
7081 esac
7082fi
7083need_lc=${lt_cv_archive_cmds_need_lc-yes}
7084
7085# The second clause should only fire when bootstrapping the
7086# libtool distribution, otherwise you forgot to ship ltmain.sh
7087# with your package, and you will get complaints that there are
7088# no rules to generate ltmain.sh.
7089if test -f "$ltmain"; then
7090 :
7091else
7092 # If there is no Makefile yet, we rely on a make rule to execute
7093 # `config.status --recheck' to rerun these tests and create the
7094 # libtool script then.
7095 test -f Makefile && make "$ltmain"
7096fi
7097
7098if test -f "$ltmain"; then
7099 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7100 $rm -f "${ofile}T"
7101
7102 echo creating $ofile
7103
7104 # Now quote all the things that may contain metacharacters while being
7105 # careful not to overquote the AC_SUBSTed values. We take copies of the
7106 # variables and quote the copies for generation of the libtool script.
7107 for var in echo old_CC old_CFLAGS SED \
7108 AR AR_FLAGS CC LD LN_S NM SHELL \
7109 reload_flag reload_cmds wl \
7110 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7111 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7112 library_names_spec soname_spec \
7113 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7114 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7115 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7116 old_striplib striplib file_magic_cmd export_symbols_cmds \
7117 deplibs_check_method allow_undefined_flag no_undefined_flag \
7118 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7119 global_symbol_to_c_name_address \
7120 hardcode_libdir_flag_spec hardcode_libdir_separator \
7121 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7122 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7123
7124 case $var in
7125 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7126 old_postinstall_cmds | old_postuninstall_cmds | \
7127 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7128 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7129 postinstall_cmds | postuninstall_cmds | \
7130 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7131 # Double-quote double-evaled strings.
7132 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7133 ;;
7134 *)
7135 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7136 ;;
7137 esac
7138 done
7139
7140 cat <<__EOF__ > "${ofile}T"
7141#! $SHELL
7142
7143# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7144# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7145# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7146#
7147# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7148# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7149#
7150# This program is free software; you can redistribute it and/or modify
7151# it under the terms of the GNU General Public License as published by
7152# the Free Software Foundation; either version 2 of the License, or
7153# (at your option) any later version.
7154#
7155# This program is distributed in the hope that it will be useful, but
7156# WITHOUT ANY WARRANTY; without even the implied warranty of
7157# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7158# General Public License for more details.
7159#
7160# You should have received a copy of the GNU General Public License
7161# along with this program; if not, write to the Free Software
7162# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7163#
7164# As a special exception to the GNU General Public License, if you
7165# distribute this file as part of a program that contains a
7166# configuration script generated by Autoconf, you may include it under
7167# the same distribution terms that you use for the rest of that program.
7168
7169# A sed that does not truncate output.
7170SED=$lt_SED
7171
7172# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7173Xsed="${SED} -e s/^X//"
7174
7175# The HP-UX ksh and POSIX shell print the target directory to stdout
7176# if CDPATH is set.
7177if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7178
7179# ### BEGIN LIBTOOL CONFIG
7180
7181# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7182
7183# Shell to use when invoking shell scripts.
7184SHELL=$lt_SHELL
7185
7186# Whether or not to build shared libraries.
7187build_libtool_libs=$enable_shared
7188
7189# Whether or not to build static libraries.
7190build_old_libs=$enable_static
7191
7192# Whether or not to add -lc for building shared libraries.
7193build_libtool_need_lc=$need_lc
7194
7195# Whether or not to optimize for fast installation.
7196fast_install=$enable_fast_install
7197
7198# The host system.
7199host_alias=$host_alias
7200host=$host
7201
7202# An echo program that does not interpret backslashes.
7203echo=$lt_echo
7204
7205# The archiver.
7206AR=$lt_AR
7207AR_FLAGS=$lt_AR_FLAGS
7208
7209# The default C compiler.
7210CC=$lt_CC
7211
7212# Is the compiler the GNU C compiler?
7213with_gcc=$GCC
7214
7215# The linker used to build libraries.
7216LD=$lt_LD
7217
7218# Whether we need hard or soft links.
7219LN_S=$lt_LN_S
7220
7221# A BSD-compatible nm program.
7222NM=$lt_NM
7223
7224# A symbol stripping program
7225STRIP=$STRIP
7226
7227# Used to examine libraries when file_magic_cmd begins "file"
7228MAGIC_CMD=$MAGIC_CMD
7229
7230# Used on cygwin: DLL creation program.
7231DLLTOOL="$DLLTOOL"
7232
7233# Used on cygwin: object dumper.
7234OBJDUMP="$OBJDUMP"
7235
7236# Used on cygwin: assembler.
7237AS="$AS"
7238
7239# The name of the directory that contains temporary libtool files.
7240objdir=$objdir
7241
7242# How to create reloadable object files.
7243reload_flag=$lt_reload_flag
7244reload_cmds=$lt_reload_cmds
7245
7246# How to pass a linker flag through the compiler.
7247wl=$lt_wl
7248
7249# Object file suffix (normally "o").
7250objext="$ac_objext"
7251
7252# Old archive suffix (normally "a").
7253libext="$libext"
7254
7255# Executable file suffix (normally "").
7256exeext="$exeext"
7257
7258# Additional compiler flags for building library objects.
7259pic_flag=$lt_pic_flag
7260pic_mode=$pic_mode
7261
7262# Does compiler simultaneously support -c and -o options?
7263compiler_c_o=$lt_compiler_c_o
7264
7265# Can we write directly to a .lo ?
7266compiler_o_lo=$lt_compiler_o_lo
7267
7268# Must we lock files when doing compilation ?
7269need_locks=$lt_need_locks
7270
7271# Do we need the lib prefix for modules?
7272need_lib_prefix=$need_lib_prefix
7273
7274# Do we need a version for libraries?
7275need_version=$need_version
7276
7277# Whether dlopen is supported.
7278dlopen_support=$enable_dlopen
7279
7280# Whether dlopen of programs is supported.
7281dlopen_self=$enable_dlopen_self
7282
7283# Whether dlopen of statically linked programs is supported.
7284dlopen_self_static=$enable_dlopen_self_static
7285
7286# Compiler flag to prevent dynamic linking.
7287link_static_flag=$lt_link_static_flag
7288
7289# Compiler flag to turn off builtin functions.
7290no_builtin_flag=$lt_no_builtin_flag
7291
7292# Compiler flag to allow reflexive dlopens.
7293export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7294
7295# Compiler flag to generate shared objects directly from archives.
7296whole_archive_flag_spec=$lt_whole_archive_flag_spec
7297
7298# Compiler flag to generate thread-safe objects.
7299thread_safe_flag_spec=$lt_thread_safe_flag_spec
7300
7301# Library versioning type.
7302version_type=$version_type
7303
7304# Format of library name prefix.
7305libname_spec=$lt_libname_spec
7306
7307# List of archive names. First name is the real one, the rest are links.
7308# The last name is the one that the linker finds with -lNAME.
7309library_names_spec=$lt_library_names_spec
7310
7311# The coded name of the library, if different from the real name.
7312soname_spec=$lt_soname_spec
7313
7314# Commands used to build and install an old-style archive.
7315RANLIB=$lt_RANLIB
7316old_archive_cmds=$lt_old_archive_cmds
7317old_postinstall_cmds=$lt_old_postinstall_cmds
7318old_postuninstall_cmds=$lt_old_postuninstall_cmds
7319
7320# Create an old-style archive from a shared archive.
7321old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7322
7323# Create a temporary old-style archive to link instead of a shared archive.
7324old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7325
7326# Commands used to build and install a shared archive.
7327archive_cmds=$lt_archive_cmds
7328archive_expsym_cmds=$lt_archive_expsym_cmds
7329postinstall_cmds=$lt_postinstall_cmds
7330postuninstall_cmds=$lt_postuninstall_cmds
7331
7332# Commands to strip libraries.
7333old_striplib=$lt_old_striplib
7334striplib=$lt_striplib
7335
7336# Method to check whether dependent libraries are shared objects.
7337deplibs_check_method=$lt_deplibs_check_method
7338
7339# Command to use when deplibs_check_method == file_magic.
7340file_magic_cmd=$lt_file_magic_cmd
7341
7342# Flag that allows shared libraries with undefined symbols to be built.
7343allow_undefined_flag=$lt_allow_undefined_flag
7344
7345# Flag that forces no undefined symbols.
7346no_undefined_flag=$lt_no_undefined_flag
7347
7348# Commands used to finish a libtool library installation in a directory.
7349finish_cmds=$lt_finish_cmds
7350
7351# Same as above, but a single script fragment to be evaled but not shown.
7352finish_eval=$lt_finish_eval
7353
7354# Take the output of nm and produce a listing of raw symbols and C names.
7355global_symbol_pipe=$lt_global_symbol_pipe
7356
7357# Transform the output of nm in a proper C declaration
7358global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7359
7360# Transform the output of nm in a C name address pair
7361global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7362
7363# This is the shared library runtime path variable.
7364runpath_var=$runpath_var
7365
7366# This is the shared library path variable.
7367shlibpath_var=$shlibpath_var
7368
7369# Is shlibpath searched before the hard-coded library search path?
7370shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7371
7372# How to hardcode a shared library path into an executable.
7373hardcode_action=$hardcode_action
7374
7375# Whether we should hardcode library paths into libraries.
7376hardcode_into_libs=$hardcode_into_libs
7377
7378# Flag to hardcode \$libdir into a binary during linking.
7379# This must work even if \$libdir does not exist.
7380hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7381
7382# Whether we need a single -rpath flag with a separated argument.
7383hardcode_libdir_separator=$lt_hardcode_libdir_separator
7384
7385# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7386# resulting binary.
7387hardcode_direct=$hardcode_direct
7388
7389# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7390# resulting binary.
7391hardcode_minus_L=$hardcode_minus_L
7392
7393# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7394# the resulting binary.
7395hardcode_shlibpath_var=$hardcode_shlibpath_var
7396
7397# Variables whose values should be saved in libtool wrapper scripts and
7398# restored at relink time.
7399variables_saved_for_relink="$variables_saved_for_relink"
7400
7401# Whether libtool must link a program against all its dependency libraries.
7402link_all_deplibs=$link_all_deplibs
7403
7404# Compile-time system search path for libraries
7405sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7406
7407# Run-time system search path for libraries
7408sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7409
7410# Fix the shell variable \$srcfile for the compiler.
7411fix_srcfile_path="$fix_srcfile_path"
7412
7413# Set to yes if exported symbols are required.
7414always_export_symbols=$always_export_symbols
7415
7416# The commands to list exported symbols.
7417export_symbols_cmds=$lt_export_symbols_cmds
7418
7419# The commands to extract the exported symbol list from a shared archive.
7420extract_expsyms_cmds=$lt_extract_expsyms_cmds
7421
7422# Symbols that should not be listed in the preloaded symbols.
7423exclude_expsyms=$lt_exclude_expsyms
7424
7425# Symbols that must always be exported.
7426include_expsyms=$lt_include_expsyms
7427
7428# ### END LIBTOOL CONFIG
7429
7430__EOF__
7431
7432 case $host_os in
7433 aix3*)
7434 cat <<\EOF >> "${ofile}T"
7435
7436# AIX sometimes has problems with the GCC collect2 program. For some
7437# reason, if we set the COLLECT_NAMES environment variable, the problems
7438# vanish in a puff of smoke.
7439if test "X${COLLECT_NAMES+set}" != Xset; then
7440 COLLECT_NAMES=
7441 export COLLECT_NAMES
7442fi
7443EOF
7444 ;;
7445 esac
7446
7447 case $host_os in
7448 cygwin* | mingw* | pw32* | os2*)
7449 cat <<'EOF' >> "${ofile}T"
7450 # This is a source program that is used to create dlls on Windows
7451 # Don't remove nor modify the starting and closing comments
7452# /* ltdll.c starts here */
7453# #define WIN32_LEAN_AND_MEAN
7454# #include <windows.h>
7455# #undef WIN32_LEAN_AND_MEAN
7456# #include <stdio.h>
7457#
7458# #ifndef __CYGWIN__
7459# # ifdef __CYGWIN32__
7460# # define __CYGWIN__ __CYGWIN32__
7461# # endif
7462# #endif
7463#
7464# #ifdef __cplusplus
7465# extern "C" {
7466# #endif
7467# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7468# #ifdef __cplusplus
7469# }
7470# #endif
7471#
7472# #ifdef __CYGWIN__
7473# #include <cygwin/cygwin_dll.h>
7474# DECLARE_CYGWIN_DLL( DllMain );
7475# #endif
7476# HINSTANCE __hDllInstance_base;
7477#
7478# BOOL APIENTRY
7479# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7480# {
7481# __hDllInstance_base = hInst;
7482# return TRUE;
7483# }
7484# /* ltdll.c ends here */
7485 # This is a source program that is used to create import libraries
7486 # on Windows for dlls which lack them. Don't remove nor modify the
7487 # starting and closing comments
7488# /* impgen.c starts here */
7489# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7490#
7491# This file is part of GNU libtool.
7492#
7493# This program is free software; you can redistribute it and/or modify
7494# it under the terms of the GNU General Public License as published by
7495# the Free Software Foundation; either version 2 of the License, or
7496# (at your option) any later version.
7497#
7498# This program is distributed in the hope that it will be useful,
7499# but WITHOUT ANY WARRANTY; without even the implied warranty of
7500# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7501# GNU General Public License for more details.
7502#
7503# You should have received a copy of the GNU General Public License
7504# along with this program; if not, write to the Free Software
7505# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7506# */
7507#
7508# #include <stdio.h> /* for printf() */
7509# #include <unistd.h> /* for open(), lseek(), read() */
7510# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7511# #include <string.h> /* for strdup() */
7512#
7513# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7514# #ifndef O_BINARY
7515# #define O_BINARY 0
7516# #endif
7517#
7518# static unsigned int
7519# pe_get16 (fd, offset)
7520# int fd;
7521# int offset;
7522# {
7523# unsigned char b[2];
7524# lseek (fd, offset, SEEK_SET);
7525# read (fd, b, 2);
7526# return b[0] + (b[1]<<8);
7527# }
7528#
7529# static unsigned int
7530# pe_get32 (fd, offset)
7531# int fd;
7532# int offset;
7533# {
7534# unsigned char b[4];
7535# lseek (fd, offset, SEEK_SET);
7536# read (fd, b, 4);
7537# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7538# }
7539#
7540# static unsigned int
7541# pe_as32 (ptr)
7542# void *ptr;
7543# {
7544# unsigned char *b = ptr;
7545# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7546# }
7547#
7548# int
7549# main (argc, argv)
7550# int argc;
7551# char *argv[];
7552# {
7553# int dll;
7554# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7555# unsigned long export_rva, export_size, nsections, secptr, expptr;
7556# unsigned long name_rvas, nexp;
7557# unsigned char *expdata, *erva;
7558# char *filename, *dll_name;
7559#
7560# filename = argv[1];
7561#
7562# dll = open(filename, O_RDONLY|O_BINARY);
7563# if (dll < 1)
7564# return 1;
7565#
7566# dll_name = filename;
7567#
7568# for (i=0; filename[i]; i++)
7569# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7570# dll_name = filename + i +1;
7571#
7572# pe_header_offset = pe_get32 (dll, 0x3c);
7573# opthdr_ofs = pe_header_offset + 4 + 20;
7574# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7575#
7576# if (num_entries < 1) /* no exports */
7577# return 1;
7578#
7579# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7580# export_size = pe_get32 (dll, opthdr_ofs + 100);
7581# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7582# secptr = (pe_header_offset + 4 + 20 +
7583# pe_get16 (dll, pe_header_offset + 4 + 16));
7584#
7585# expptr = 0;
7586# for (i = 0; i < nsections; i++)
7587# {
7588# char sname[8];
7589# unsigned long secptr1 = secptr + 40 * i;
7590# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7591# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7592# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7593# lseek(dll, secptr1, SEEK_SET);
7594# read(dll, sname, 8);
7595# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7596# {
7597# expptr = fptr + (export_rva - vaddr);
7598# if (export_rva + export_size > vaddr + vsize)
7599# export_size = vsize - (export_rva - vaddr);
7600# break;
7601# }
7602# }
7603#
7604# expdata = (unsigned char*)malloc(export_size);
7605# lseek (dll, expptr, SEEK_SET);
7606# read (dll, expdata, export_size);
7607# erva = expdata - export_rva;
7608#
7609# nexp = pe_as32 (expdata+24);
7610# name_rvas = pe_as32 (expdata+32);
7611#
7612# printf ("EXPORTS\n");
7613# for (i = 0; i<nexp; i++)
7614# {
7615# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7616# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7617# }
7618#
7619# return 0;
7620# }
7621# /* impgen.c ends here */
7622
7623EOF
7624 ;;
7625 esac
7626
7627 # We use sed instead of cat because bash on DJGPP gets confused if
7628 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7629 # text mode, it properly converts lines to CR/LF. This bash problem
7630 # is reportedly fixed, but why not run on old versions too?
7631 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7632
7633 mv -f "${ofile}T" "$ofile" || \
7634 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7635 chmod +x "$ofile"
7636fi
7637
7638
7639
7640
7641
7642# This can be used to rebuild libtool when needed
7643LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7644
7645# Always use our own libtool.
7646LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7647
7648# Prevent multiple expansion
7649
7650
mostang.com!davidm6af90d02003-02-15 08:53:55 +00007651# By default we simply use the C compiler to build assembly code.
7652
7653: ${CCAS='$(CC)'}
7654# Set ASFLAGS if not already set.
7655: ${CCASFLAGS='$(CFLAGS)'}
7656
7657
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007658
7659
7660echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7661echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7662if test "${ac_cv_header_stdc+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7664else
7665 cat >conftest.$ac_ext <<_ACEOF
7666#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007667#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007668#include <stdlib.h>
7669#include <stdarg.h>
7670#include <string.h>
7671#include <float.h>
7672
7673_ACEOF
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007674if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007676 ac_status=$?
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007677 grep -v '^ *+' conftest.er1 >conftest.err
7678 rm -f conftest.er1
7679 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007681 (exit $ac_status); } >/dev/null; then
7682 if test -s conftest.err; then
7683 ac_cpp_err=$ac_c_preproc_warn_flag
7684 else
7685 ac_cpp_err=
7686 fi
7687else
7688 ac_cpp_err=yes
7689fi
7690if test -z "$ac_cpp_err"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007691 ac_cv_header_stdc=yes
7692else
7693 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007694 cat conftest.$ac_ext >&5
7695 ac_cv_header_stdc=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007696fi
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007697rm -f conftest.err conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007698
7699if test $ac_cv_header_stdc = yes; then
7700 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7701 cat >conftest.$ac_ext <<_ACEOF
7702#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007703#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007704#include <string.h>
7705
7706_ACEOF
7707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7708 $EGREP "memchr" >/dev/null 2>&1; then
7709 :
7710else
7711 ac_cv_header_stdc=no
7712fi
7713rm -f conftest*
7714
7715fi
7716
7717if test $ac_cv_header_stdc = yes; then
7718 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7719 cat >conftest.$ac_ext <<_ACEOF
7720#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007721#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007722#include <stdlib.h>
7723
7724_ACEOF
7725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7726 $EGREP "free" >/dev/null 2>&1; then
7727 :
7728else
7729 ac_cv_header_stdc=no
7730fi
7731rm -f conftest*
7732
7733fi
7734
7735if test $ac_cv_header_stdc = yes; then
7736 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7737 if test "$cross_compiling" = yes; then
7738 :
7739else
7740 cat >conftest.$ac_ext <<_ACEOF
7741#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007742#include "confdefs.h"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007743#include <ctype.h>
7744#if ((' ' & 0x0FF) == 0x020)
7745# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7746# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7747#else
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007748# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007749 || ('j' <= (c) && (c) <= 'r') \
7750 || ('s' <= (c) && (c) <= 'z'))
7751# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7752#endif
7753
7754#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7755int
7756main ()
7757{
7758 int i;
7759 for (i = 0; i < 256; i++)
7760 if (XOR (islower (i), ISLOWER (i))
7761 || toupper (i) != TOUPPER (i))
7762 exit(2);
7763 exit (0);
7764}
7765_ACEOF
7766rm -f conftest$ac_exeext
7767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7768 (eval $ac_link) 2>&5
7769 ac_status=$?
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773 (eval $ac_try) 2>&5
7774 ac_status=$?
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; }; then
7777 :
7778else
7779 echo "$as_me: program exited with status $ac_status" >&5
7780echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007781cat conftest.$ac_ext >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007782( exit $ac_status )
7783ac_cv_header_stdc=no
7784fi
7785rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7786fi
7787fi
7788fi
7789echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7790echo "${ECHO_T}$ac_cv_header_stdc" >&6
7791if test $ac_cv_header_stdc = yes; then
7792
7793cat >>confdefs.h <<\_ACEOF
7794#define STDC_HEADERS 1
7795_ACEOF
7796
7797fi
7798
7799
mostang.com!davidm6af90d02003-02-15 08:53:55 +00007800
mostang.com!davidmc7aaa682003-03-19 19:25:18 +00007801
7802
7803
7804for ac_header in asm/ptrace_offsets.h endian.h execinfo.h ia64intrin.h \
7805 unistd.h
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00007806do
7807as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7808if eval "test \"\${$as_ac_Header+set}\" = set"; then
7809 echo "$as_me:$LINENO: checking for $ac_header" >&5
7810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7811if eval "test \"\${$as_ac_Header+set}\" = set"; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7813fi
7814echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7815echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7816else
7817 # Is the header compilable?
7818echo "$as_me:$LINENO: checking $ac_header usability" >&5
7819echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7820cat >conftest.$ac_ext <<_ACEOF
7821#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007822#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00007823$ac_includes_default
7824#include <$ac_header>
7825_ACEOF
7826rm -f conftest.$ac_objext
7827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7828 (eval $ac_compile) 2>&5
7829 ac_status=$?
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } &&
7832 { ac_try='test -s conftest.$ac_objext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 (eval $ac_try) 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 ac_header_compiler=yes
7839else
7840 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007841cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00007842ac_header_compiler=no
7843fi
7844rm -f conftest.$ac_objext conftest.$ac_ext
7845echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7846echo "${ECHO_T}$ac_header_compiler" >&6
7847
7848# Is the header present?
7849echo "$as_me:$LINENO: checking $ac_header presence" >&5
7850echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7851cat >conftest.$ac_ext <<_ACEOF
7852#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007853#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00007854#include <$ac_header>
7855_ACEOF
7856if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7858 ac_status=$?
7859 grep -v '^ *+' conftest.er1 >conftest.err
7860 rm -f conftest.er1
7861 cat conftest.err >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } >/dev/null; then
7864 if test -s conftest.err; then
7865 ac_cpp_err=$ac_c_preproc_warn_flag
7866 else
7867 ac_cpp_err=
7868 fi
7869else
7870 ac_cpp_err=yes
7871fi
7872if test -z "$ac_cpp_err"; then
7873 ac_header_preproc=yes
7874else
7875 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007876 cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00007877 ac_header_preproc=no
7878fi
7879rm -f conftest.err conftest.$ac_ext
7880echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7881echo "${ECHO_T}$ac_header_preproc" >&6
7882
7883# So? What about this header?
7884case $ac_header_compiler:$ac_header_preproc in
7885 yes:no )
7886 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7887echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007889echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00007890 no:yes )
7891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7892echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7894echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007896echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00007897esac
7898echo "$as_me:$LINENO: checking for $ac_header" >&5
7899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7900if eval "test \"\${$as_ac_Header+set}\" = set"; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
7902else
7903 eval "$as_ac_Header=$ac_header_preproc"
7904fi
7905echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7906echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7907
7908fi
7909if test `eval echo '${'$as_ac_Header'}'` = yes; then
7910 cat >>confdefs.h <<_ACEOF
7911#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7912_ACEOF
7913
7914fi
7915
7916done
7917
7918
7919echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7920echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7921if test "${ac_cv_c_const+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7923else
7924 cat >conftest.$ac_ext <<_ACEOF
7925#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007926#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00007927
7928int
7929main ()
7930{
7931/* FIXME: Include the comments suggested by Paul. */
7932#ifndef __cplusplus
7933 /* Ultrix mips cc rejects this. */
7934 typedef int charset[2];
7935 const charset x;
7936 /* SunOS 4.1.1 cc rejects this. */
7937 char const *const *ccp;
7938 char **p;
7939 /* NEC SVR4.0.2 mips cc rejects this. */
7940 struct point {int x, y;};
7941 static struct point const zero = {0,0};
7942 /* AIX XL C 1.02.0.0 rejects this.
7943 It does not let you subtract one const X* pointer from another in
7944 an arm of an if-expression whose if-part is not a constant
7945 expression */
7946 const char *g = "string";
7947 ccp = &g + (g ? g-g : 0);
7948 /* HPUX 7.0 cc rejects these. */
7949 ++ccp;
7950 p = (char**) ccp;
7951 ccp = (char const *const *) p;
7952 { /* SCO 3.2v4 cc rejects this. */
7953 char *t;
7954 char const *s = 0 ? (char *) 0 : (char const *) 0;
7955
7956 *t++ = 0;
7957 }
7958 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7959 int x[] = {25, 17};
7960 const int *foo = &x[0];
7961 ++foo;
7962 }
7963 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7964 typedef const int *iptr;
7965 iptr p = 0;
7966 ++p;
7967 }
7968 { /* AIX XL C 1.02.0.0 rejects this saying
7969 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7970 struct s { int j; const int *ap[3]; };
7971 struct s *b; b->j = 5;
7972 }
7973 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7974 const int foo = 10;
7975 }
7976#endif
7977
7978 ;
7979 return 0;
7980}
7981_ACEOF
7982rm -f conftest.$ac_objext
7983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7984 (eval $ac_compile) 2>&5
7985 ac_status=$?
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } &&
7988 { ac_try='test -s conftest.$ac_objext'
7989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990 (eval $ac_try) 2>&5
7991 ac_status=$?
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); }; }; then
7994 ac_cv_c_const=yes
7995else
7996 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00007997cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00007998ac_cv_c_const=no
7999fi
8000rm -f conftest.$ac_objext conftest.$ac_ext
8001fi
8002echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8003echo "${ECHO_T}$ac_cv_c_const" >&6
8004if test $ac_cv_c_const = no; then
8005
8006cat >>confdefs.h <<\_ACEOF
8007#define const
8008_ACEOF
8009
8010fi
8011
8012echo "$as_me:$LINENO: checking for inline" >&5
8013echo $ECHO_N "checking for inline... $ECHO_C" >&6
8014if test "${ac_cv_c_inline+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8016else
8017 ac_cv_c_inline=no
8018for ac_kw in inline __inline__ __inline; do
8019 cat >conftest.$ac_ext <<_ACEOF
8020#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008021#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008022#ifndef __cplusplus
8023typedef int foo_t;
8024static $ac_kw foo_t static_foo () {return 0; }
8025$ac_kw foo_t foo () {return 0; }
8026#endif
8027
8028_ACEOF
8029rm -f conftest.$ac_objext
8030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8031 (eval $ac_compile) 2>&5
8032 ac_status=$?
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try='test -s conftest.$ac_objext'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 (eval $ac_try) 2>&5
8038 ac_status=$?
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; }; then
8041 ac_cv_c_inline=$ac_kw; break
8042else
8043 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008044cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008045fi
8046rm -f conftest.$ac_objext conftest.$ac_ext
8047done
8048
8049fi
8050echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8051echo "${ECHO_T}$ac_cv_c_inline" >&6
8052case $ac_cv_c_inline in
8053 inline | yes) ;;
8054 no)
8055cat >>confdefs.h <<\_ACEOF
8056#define inline
8057_ACEOF
8058 ;;
8059 *) cat >>confdefs.h <<_ACEOF
8060#define inline $ac_cv_c_inline
8061_ACEOF
8062 ;;
8063esac
8064
mostang.com!davidmc7aaa682003-03-19 19:25:18 +00008065echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8066echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8067if test "${ac_cv_type_signal+set}" = set; then
8068 echo $ECHO_N "(cached) $ECHO_C" >&6
8069else
8070 cat >conftest.$ac_ext <<_ACEOF
8071#line $LINENO "configure"
8072#include "confdefs.h"
8073#include <sys/types.h>
8074#include <signal.h>
8075#ifdef signal
8076# undef signal
8077#endif
8078#ifdef __cplusplus
8079extern "C" void (*signal (int, void (*)(int)))(int);
8080#else
8081void (*signal ()) ();
8082#endif
8083
8084int
8085main ()
8086{
8087int i;
8088 ;
8089 return 0;
8090}
8091_ACEOF
8092rm -f conftest.$ac_objext
8093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8094 (eval $ac_compile) 2>&5
8095 ac_status=$?
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } &&
8098 { ac_try='test -s conftest.$ac_objext'
8099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100 (eval $ac_try) 2>&5
8101 ac_status=$?
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); }; }; then
8104 ac_cv_type_signal=void
8105else
8106 echo "$as_me: failed program was:" >&5
8107cat conftest.$ac_ext >&5
8108ac_cv_type_signal=int
8109fi
8110rm -f conftest.$ac_objext conftest.$ac_ext
8111fi
8112echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8113echo "${ECHO_T}$ac_cv_type_signal" >&6
8114
8115cat >>confdefs.h <<_ACEOF
8116#define RETSIGTYPE $ac_cv_type_signal
8117_ACEOF
8118
8119
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008120echo "$as_me:$LINENO: checking for size_t" >&5
8121echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8122if test "${ac_cv_type_size_t+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8124else
8125 cat >conftest.$ac_ext <<_ACEOF
8126#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008127#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008128$ac_includes_default
8129int
8130main ()
8131{
8132if ((size_t *) 0)
8133 return 0;
8134if (sizeof (size_t))
8135 return 0;
8136 ;
8137 return 0;
8138}
8139_ACEOF
8140rm -f conftest.$ac_objext
8141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8142 (eval $ac_compile) 2>&5
8143 ac_status=$?
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } &&
8146 { ac_try='test -s conftest.$ac_objext'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 (eval $ac_try) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_cv_type_size_t=yes
8153else
8154 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008155cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008156ac_cv_type_size_t=no
8157fi
8158rm -f conftest.$ac_objext conftest.$ac_ext
8159fi
8160echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8161echo "${ECHO_T}$ac_cv_type_size_t" >&6
8162if test $ac_cv_type_size_t = yes; then
8163 :
8164else
8165
8166cat >>confdefs.h <<_ACEOF
8167#define size_t unsigned
8168_ACEOF
8169
8170fi
8171
8172
mostang.com!davidmc7aaa682003-03-19 19:25:18 +00008173echo "$as_me:$LINENO: checking for sighandler_t" >&5
8174echo $ECHO_N "checking for sighandler_t... $ECHO_C" >&6
8175if test "${ac_cv_type_sighandler_t+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8177else
8178 cat >conftest.$ac_ext <<_ACEOF
8179#line $LINENO "configure"
8180#include "confdefs.h"
8181$ac_includes_default
8182int
8183main ()
8184{
8185if ((sighandler_t *) 0)
8186 return 0;
8187if (sizeof (sighandler_t))
8188 return 0;
8189 ;
8190 return 0;
8191}
8192_ACEOF
8193rm -f conftest.$ac_objext
8194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8195 (eval $ac_compile) 2>&5
8196 ac_status=$?
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } &&
8199 { ac_try='test -s conftest.$ac_objext'
8200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201 (eval $ac_try) 2>&5
8202 ac_status=$?
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; }; then
8205 ac_cv_type_sighandler_t=yes
8206else
8207 echo "$as_me: failed program was:" >&5
8208cat conftest.$ac_ext >&5
8209ac_cv_type_sighandler_t=no
8210fi
8211rm -f conftest.$ac_objext conftest.$ac_ext
8212fi
8213echo "$as_me:$LINENO: result: $ac_cv_type_sighandler_t" >&5
8214echo "${ECHO_T}$ac_cv_type_sighandler_t" >&6
8215
8216
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008217echo "$as_me:$LINENO: checking for working memcmp" >&5
8218echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
8219if test "${ac_cv_func_memcmp_working+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8221else
8222 if test "$cross_compiling" = yes; then
8223 ac_cv_func_memcmp_working=no
8224else
8225 cat >conftest.$ac_ext <<_ACEOF
8226#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008227#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008228
8229int
8230main ()
8231{
8232
8233 /* Some versions of memcmp are not 8-bit clean. */
8234 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8235 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8236 exit (1);
8237
8238 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8239 or more and with at least one buffer not starting on a 4-byte boundary.
8240 William Lewis provided this test program. */
8241 {
8242 char foo[21];
8243 char bar[21];
8244 int i;
8245 for (i = 0; i < 4; i++)
8246 {
8247 char *a = foo + i;
8248 char *b = bar + i;
8249 strcpy (a, "--------01111111");
8250 strcpy (b, "--------10000000");
8251 if (memcmp (a, b, 16) >= 0)
8252 exit (1);
8253 }
8254 exit (0);
8255 }
8256
8257 ;
8258 return 0;
8259}
8260_ACEOF
8261rm -f conftest$ac_exeext
8262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8263 (eval $ac_link) 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268 (eval $ac_try) 2>&5
8269 ac_status=$?
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; }; then
8272 ac_cv_func_memcmp_working=yes
8273else
8274 echo "$as_me: program exited with status $ac_status" >&5
8275echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008276cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008277( exit $ac_status )
8278ac_cv_func_memcmp_working=no
8279fi
8280rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8281fi
8282fi
8283echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8284echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8285test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8286
8287echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8288echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8289if test "${ac_cv_type_signal+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8291else
8292 cat >conftest.$ac_ext <<_ACEOF
8293#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008294#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008295#include <sys/types.h>
8296#include <signal.h>
8297#ifdef signal
8298# undef signal
8299#endif
8300#ifdef __cplusplus
8301extern "C" void (*signal (int, void (*)(int)))(int);
8302#else
8303void (*signal ()) ();
8304#endif
8305
8306int
8307main ()
8308{
8309int i;
8310 ;
8311 return 0;
8312}
8313_ACEOF
8314rm -f conftest.$ac_objext
8315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8316 (eval $ac_compile) 2>&5
8317 ac_status=$?
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } &&
8320 { ac_try='test -s conftest.$ac_objext'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 (eval $ac_try) 2>&5
8323 ac_status=$?
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; }; then
8326 ac_cv_type_signal=void
8327else
8328 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008329cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008330ac_cv_type_signal=int
8331fi
8332rm -f conftest.$ac_objext conftest.$ac_ext
8333fi
8334echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8335echo "${ECHO_T}$ac_cv_type_signal" >&6
8336
8337cat >>confdefs.h <<_ACEOF
8338#define RETSIGTYPE $ac_cv_type_signal
8339_ACEOF
8340
8341
8342
mostang.com!davidmc7aaa682003-03-19 19:25:18 +00008343
8344
8345
8346for ac_func in dl_iterate_phdr dlmodinfo getunwind ttrace
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008347do
8348as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8349echo "$as_me:$LINENO: checking for $ac_func" >&5
8350echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8351if eval "test \"\${$as_ac_var+set}\" = set"; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8353else
8354 cat >conftest.$ac_ext <<_ACEOF
8355#line $LINENO "configure"
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008356#include "confdefs.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008357/* System header to define __stub macros and hopefully few prototypes,
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008358 which can conflict with char $ac_func (); below. */
8359#include <assert.h>
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008360/* Override any gcc2 internal prototype to avoid an error. */
8361#ifdef __cplusplus
8362extern "C"
8363#endif
8364/* We use char because int might match the return type of a gcc2
8365 builtin and then its argument prototype would still apply. */
8366char $ac_func ();
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008367char (*f) ();
8368
8369int
8370main ()
8371{
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008372/* The GNU C library defines this for functions which it implements
8373 to always fail with ENOSYS. Some functions are actually named
8374 something starting with __ and the normal name is an alias. */
8375#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8376choke me
8377#else
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008378f = $ac_func;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008379#endif
8380
8381 ;
8382 return 0;
8383}
8384_ACEOF
8385rm -f conftest.$ac_objext conftest$ac_exeext
8386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8387 (eval $ac_link) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try='test -s conftest$ac_exeext'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; }; then
8397 eval "$as_ac_var=yes"
8398else
8399 echo "$as_me: failed program was:" >&5
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008400cat conftest.$ac_ext >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008401eval "$as_ac_var=no"
8402fi
8403rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8404fi
8405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8406echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8407if test `eval echo '${'$as_ac_var'}'` = yes; then
8408 cat >>confdefs.h <<_ACEOF
8409#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8410_ACEOF
8411
8412fi
8413done
8414
8415
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008416get_arch() {
8417 case "$1" in
8418 i?86) echo x86;;
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +00008419 hppa*) echo hppa;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008420 *) echo $1;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008421 esac
8422}
8423
8424build_arch=`get_arch $build_cpu`
8425target_arch=`get_arch $target_cpu`
8426
8427
8428
8429if test x$target_arch != x$build_arch; then
8430 REMOTE_ONLY_TRUE=
8431 REMOTE_ONLY_FALSE='#'
8432else
8433 REMOTE_ONLY_TRUE='#'
8434 REMOTE_ONLY_FALSE=
8435fi
8436
8437
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008438
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008439if test x$target_arch = xia64; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008440 ARCH_IA64_TRUE=
8441 ARCH_IA64_FALSE='#'
8442else
8443 ARCH_IA64_TRUE='#'
8444 ARCH_IA64_FALSE=
8445fi
8446
8447
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008448
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008449if test x$target_arch = xhppa; then
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +00008450 ARCH_HPPA_TRUE=
8451 ARCH_HPPA_FALSE='#'
8452else
8453 ARCH_HPPA_TRUE='#'
8454 ARCH_HPPA_FALSE=
8455fi
8456
8457
8458
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008459if test x$target_arch = xx86; then
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008460 ARCH_X86_TRUE=
8461 ARCH_X86_FALSE='#'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008462else
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008463 ARCH_X86_TRUE='#'
8464 ARCH_X86_FALSE=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008465fi
8466
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008467
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008468
8469if expr x$target_os : xlinux >/dev/null; then
8470 OS_LINUX_TRUE=
8471 OS_LINUX_FALSE='#'
8472else
8473 OS_LINUX_TRUE='#'
8474 OS_LINUX_FALSE=
8475fi
8476
8477
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008478if test x$target_arch != x$build_arch; then
8479 CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008480fi
mostang.com!davidm51e4d342002-12-12 09:17:41 +00008481 ac_config_links="$ac_config_links include/libunwind.h:include/libunwind-$target_arch.h include/tdep.h:include/tdep-$target_arch.h"
8482
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008483
8484# Check whether --enable-debug or --disable-debug was given.
8485if test "${enable_debug+set}" = set; then
8486 enableval="$enable_debug"
8487 enable_debug=yes
8488fi;
8489
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +00008490if test "x$use__thread" != xno; then
8491 echo "$as_me:$LINENO: checking for __thread" >&5
8492echo $ECHO_N "checking for __thread... $ECHO_C" >&6
8493if test "${libc_cv_gcc___thread+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8495else
8496 cat > conftest.c <<\EOF
8497 __thread int a = 42;
8498EOF
8499 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 (eval $ac_try) 2>&5
8502 ac_status=$?
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; }; then
8505 libc_cv_gcc___thread=yes
8506 else
8507 libc_cv_gcc___thread=no
8508 fi
8509 rm -f conftest*
8510fi
8511echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
8512echo "${ECHO_T}$libc_cv_gcc___thread" >&6
8513 if test "$libc_cv_gcc___thread" = yes; then
mostang.com!davidm57f5fae2002-12-03 08:19:58 +00008514
8515cat >>confdefs.h <<\_ACEOF
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +00008516#define HAVE___THREAD 1
8517_ACEOF
8518
8519 fi
8520else
8521 libc_cv_gcc___thread=no
8522fi
8523
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008524CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008525if test x$enable_debug = xyes; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008526 CPPFLAGS="${CPPFLAGS} -DDEBUG"
8527else
8528 CPPFLAGS="${CPPFLAGS} -DNDEBUG"
8529fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008530
8531if test x$GCC = xyes; then
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008532 CFLAGS="${CFLAGS} -Wall -Wsign-compare"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008533fi
8534
mostang.com!davidm6af90d02003-02-15 08:53:55 +00008535CCASFLAGS="${CCASFLAGS} ${CPPFLAGS}"
8536
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008537arch="$target_arch"
8538ARCH=`echo $target_arch | tr a-z A-Z`
8539
8540
8541
mostang.com!davidmf648f6f2003-01-17 07:48:52 +00008542
8543 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile doc/Makefile doc/common.tex"
8544
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008545cat >confcache <<\_ACEOF
8546# This file is a shell script that caches the results of configure
8547# tests run on this system so they can be shared between configure
8548# scripts and configure runs, see configure's option --config-cache.
8549# It is not useful on other systems. If it contains results you don't
8550# want to keep, you may remove or edit it.
8551#
8552# config.status only pays attention to the cache file if you give it
8553# the --recheck option to rerun configure.
8554#
8555# `ac_cv_env_foo' variables (set or unset) will be overridden when
8556# loading this file, other *unset* `ac_cv_foo' will be assigned the
8557# following values.
8558
8559_ACEOF
8560
8561# The following way of writing the cache mishandles newlines in values,
8562# but we know of no workaround that is simple, portable, and efficient.
8563# So, don't put newlines in cache variables' values.
8564# Ultrix sh set writes to stderr and can't be redirected directly,
8565# and sets the high bit in the cache file unless we assign to the vars.
8566{
8567 (set) 2>&1 |
8568 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8569 *ac_space=\ *)
8570 # `set' does not quote correctly, so add quotes (double-quote
8571 # substitution turns \\\\ into \\, and sed turns \\ into \).
8572 sed -n \
8573 "s/'/'\\\\''/g;
8574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8575 ;;
8576 *)
8577 # `set' quotes correctly as required by POSIX, so do not add quotes.
8578 sed -n \
8579 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8580 ;;
8581 esac;
8582} |
8583 sed '
8584 t clear
8585 : clear
8586 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8587 t end
8588 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8589 : end' >>confcache
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008590if cmp -s $cache_file confcache; then :; else
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008591 if test -w $cache_file; then
8592 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8593 cat confcache >$cache_file
8594 else
8595 echo "not updating unwritable cache $cache_file"
8596 fi
8597fi
8598rm -f confcache
8599
8600test "x$prefix" = xNONE && prefix=$ac_default_prefix
8601# Let make expand exec_prefix.
8602test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8603
8604# VPATH may cause trouble with some makes, so we remove $(srcdir),
8605# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8606# trailing colons and then remove the whole line if VPATH becomes empty
8607# (actually we leave an empty line to preserve line numbers).
8608if test "x$srcdir" = x.; then
8609 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8610s/:*\$(srcdir):*/:/;
8611s/:*\${srcdir}:*/:/;
8612s/:*@srcdir@:*/:/;
8613s/^\([^=]*=[ ]*\):*/\1/;
8614s/:*$//;
8615s/^[^=]*=[ ]*$//;
8616}'
8617fi
8618
8619DEFS=-DHAVE_CONFIG_H
8620
8621ac_libobjs=
8622ac_ltlibobjs=
8623for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8624 # 1. Remove the extension, and $U if already installed.
8625 ac_i=`echo "$ac_i" |
8626 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8627 # 2. Add them.
8628 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8629 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8630done
8631LIBOBJS=$ac_libobjs
8632
8633LTLIBOBJS=$ac_ltlibobjs
8634
8635
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008636if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8637 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8638Usually this means the macro was only invoked conditionally." >&5
8639echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8640Usually this means the macro was only invoked conditionally." >&2;}
8641 { (exit 1); exit 1; }; }
8642fi
8643if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8644 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8645Usually this means the macro was only invoked conditionally." >&5
8646echo "$as_me: error: conditional \"AMDEP\" was never defined.
8647Usually this means the macro was only invoked conditionally." >&2;}
8648 { (exit 1); exit 1; }; }
8649fi
8650if test -z "${REMOTE_ONLY_TRUE}" && test -z "${REMOTE_ONLY_FALSE}"; then
8651 { { echo "$as_me:$LINENO: error: conditional \"REMOTE_ONLY\" was never defined.
8652Usually this means the macro was only invoked conditionally." >&5
8653echo "$as_me: error: conditional \"REMOTE_ONLY\" was never defined.
8654Usually this means the macro was only invoked conditionally." >&2;}
8655 { (exit 1); exit 1; }; }
8656fi
8657if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
8658 { { echo "$as_me:$LINENO: error: conditional \"ARCH_IA64\" was never defined.
8659Usually this means the macro was only invoked conditionally." >&5
8660echo "$as_me: error: conditional \"ARCH_IA64\" was never defined.
8661Usually this means the macro was only invoked conditionally." >&2;}
8662 { (exit 1); exit 1; }; }
8663fi
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +00008664if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
8665 { { echo "$as_me:$LINENO: error: conditional \"ARCH_HPPA\" was never defined.
8666Usually this means the macro was only invoked conditionally." >&5
8667echo "$as_me: error: conditional \"ARCH_HPPA\" was never defined.
8668Usually this means the macro was only invoked conditionally." >&2;}
8669 { (exit 1); exit 1; }; }
8670fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00008671if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
8672 { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
8673Usually this means the macro was only invoked conditionally." >&5
8674echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
8675Usually this means the macro was only invoked conditionally." >&2;}
8676 { (exit 1); exit 1; }; }
8677fi
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008678if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
8679 { { echo "$as_me:$LINENO: error: conditional \"OS_LINUX\" was never defined.
8680Usually this means the macro was only invoked conditionally." >&5
8681echo "$as_me: error: conditional \"OS_LINUX\" was never defined.
8682Usually this means the macro was only invoked conditionally." >&2;}
8683 { (exit 1); exit 1; }; }
8684fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008685
8686: ${CONFIG_STATUS=./config.status}
8687ac_clean_files_save=$ac_clean_files
8688ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8689{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8690echo "$as_me: creating $CONFIG_STATUS" >&6;}
8691cat >$CONFIG_STATUS <<_ACEOF
8692#! $SHELL
8693# Generated by $as_me.
8694# Run this file to recreate the current configuration.
8695# Compiler output produced by configure, useful for debugging
8696# configure, is in config.log if it exists.
8697
8698debug=false
8699SHELL=\${CONFIG_SHELL-$SHELL}
8700_ACEOF
8701
8702cat >>$CONFIG_STATUS <<\_ACEOF
8703## --------------------- ##
8704## M4sh Initialization. ##
8705## --------------------- ##
8706
8707# Be Bourne compatible
8708if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8709 emulate sh
8710 NULLCMD=:
8711 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8712 # is contrary to our usage. Disable this feature.
8713 alias -g '${1+"$@"}'='"$@"'
8714elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8715 set -o posix
8716fi
8717
8718# Support unset when possible.
8719if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8720 as_unset=unset
8721else
8722 as_unset=false
8723fi
8724
8725
8726# Work around bugs in pre-3.0 UWIN ksh.
8727$as_unset ENV MAIL MAILPATH
8728PS1='$ '
8729PS2='> '
8730PS4='+ '
8731
8732# NLS nuisances.
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008733for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008734do
8735 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
8736 eval $as_var=C; export $as_var
8737 else
8738 $as_unset $as_var
8739 fi
8740done
8741
8742# Required to use basename.
8743if expr a : '\(a\)' >/dev/null 2>&1; then
8744 as_expr=expr
8745else
8746 as_expr=false
8747fi
8748
8749if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8750 as_basename=basename
8751else
8752 as_basename=false
8753fi
8754
8755
8756# Name of the executable.
8757as_me=`$as_basename "$0" ||
8758$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8759 X"$0" : 'X\(//\)$' \| \
8760 X"$0" : 'X\(/\)$' \| \
8761 . : '\(.\)' 2>/dev/null ||
8762echo X/"$0" |
8763 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8764 /^X\/\(\/\/\)$/{ s//\1/; q; }
8765 /^X\/\(\/\).*/{ s//\1/; q; }
8766 s/.*/./; q'`
8767
8768
8769# PATH needs CR, and LINENO needs CR and PATH.
8770# Avoid depending upon Character Ranges.
8771as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8772as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8773as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8774as_cr_digits='0123456789'
8775as_cr_alnum=$as_cr_Letters$as_cr_digits
8776
8777# The user is always right.
8778if test "${PATH_SEPARATOR+set}" != set; then
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008779 echo "#! /bin/sh" >conftest.sh
8780 echo "exit 0" >>conftest.sh
8781 chmod +x conftest.sh
8782 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008783 PATH_SEPARATOR=';'
8784 else
8785 PATH_SEPARATOR=:
8786 fi
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008787 rm -f conftest.sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008788fi
8789
8790
8791 as_lineno_1=$LINENO
8792 as_lineno_2=$LINENO
8793 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8794 test "x$as_lineno_1" != "x$as_lineno_2" &&
8795 test "x$as_lineno_3" = "x$as_lineno_2" || {
8796 # Find who we are. Look in the path if we contain no path at all
8797 # relative or not.
8798 case $0 in
8799 *[\\/]* ) as_myself=$0 ;;
8800 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801for as_dir in $PATH
8802do
8803 IFS=$as_save_IFS
8804 test -z "$as_dir" && as_dir=.
8805 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8806done
8807
8808 ;;
8809 esac
8810 # We did not find ourselves, most probably we were run as `sh COMMAND'
8811 # in which case we are not to be found in the path.
8812 if test "x$as_myself" = x; then
8813 as_myself=$0
8814 fi
8815 if test ! -f "$as_myself"; then
8816 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8817echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8818 { (exit 1); exit 1; }; }
8819 fi
8820 case $CONFIG_SHELL in
8821 '')
8822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8823for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8824do
8825 IFS=$as_save_IFS
8826 test -z "$as_dir" && as_dir=.
8827 for as_base in sh bash ksh sh5; do
8828 case $as_dir in
8829 /*)
8830 if ("$as_dir/$as_base" -c '
8831 as_lineno_1=$LINENO
8832 as_lineno_2=$LINENO
8833 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8834 test "x$as_lineno_1" != "x$as_lineno_2" &&
8835 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8836 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8837 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8838 CONFIG_SHELL=$as_dir/$as_base
8839 export CONFIG_SHELL
8840 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8841 fi;;
8842 esac
8843 done
8844done
8845;;
8846 esac
8847
8848 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8849 # uniformly replaced by the line number. The first 'sed' inserts a
8850 # line-number line before each line; the second 'sed' does the real
8851 # work. The second script uses 'N' to pair each line-number line
8852 # with the numbered line, and appends trailing '-' during
8853 # substitution so that $LINENO is not a special case at line end.
8854 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8855 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8856 sed '=' <$as_myself |
8857 sed '
8858 N
8859 s,$,-,
8860 : loop
8861 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8862 t loop
8863 s,-$,,
8864 s,^['$as_cr_digits']*\n,,
8865 ' >$as_me.lineno &&
8866 chmod +x $as_me.lineno ||
8867 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8868echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8869 { (exit 1); exit 1; }; }
8870
8871 # Don't try to exec as it changes $[0], causing all sort of problems
8872 # (the dirname of $[0] is not the place where we might find the
8873 # original and so on. Autoconf is especially sensible to this).
8874 . ./$as_me.lineno
8875 # Exit status is that of the last command.
8876 exit
8877}
8878
8879
8880case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8881 *c*,-n*) ECHO_N= ECHO_C='
8882' ECHO_T=' ' ;;
8883 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8884 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8885esac
8886
8887if expr a : '\(a\)' >/dev/null 2>&1; then
8888 as_expr=expr
8889else
8890 as_expr=false
8891fi
8892
8893rm -f conf$$ conf$$.exe conf$$.file
8894echo >conf$$.file
8895if ln -s conf$$.file conf$$ 2>/dev/null; then
8896 # We could just check for DJGPP; but this test a) works b) is more generic
8897 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8898 if test -f conf$$.exe; then
8899 # Don't use ln at all; we don't have any links
8900 as_ln_s='cp -p'
8901 else
8902 as_ln_s='ln -s'
8903 fi
8904elif ln conf$$.file conf$$ 2>/dev/null; then
8905 as_ln_s=ln
8906else
8907 as_ln_s='cp -p'
8908fi
8909rm -f conf$$ conf$$.exe conf$$.file
8910
8911if mkdir -p . 2>/dev/null; then
8912 as_mkdir_p=:
8913else
8914 as_mkdir_p=false
8915fi
8916
8917as_executable_p="test -f"
8918
8919# Sed expression to map a string onto a valid CPP name.
8920as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8921
8922# Sed expression to map a string onto a valid variable name.
8923as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8924
8925
8926# IFS
8927# We need space, tab and new line, in precisely that order.
8928as_nl='
8929'
8930IFS=" $as_nl"
8931
8932# CDPATH.
8933$as_unset CDPATH
8934
8935exec 6>&1
8936
8937# Open the log real soon, to keep \$[0] and so on meaningful, and to
8938# report actual input values of CONFIG_FILES etc. instead of their
8939# values after options handling. Logging --version etc. is OK.
8940exec 5>>config.log
8941{
8942 echo
8943 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8944## Running $as_me. ##
8945_ASBOX
8946} >&5
8947cat >&5 <<_CSEOF
8948
8949This file was extended by $as_me, which was
mostang.com!davidma8db0b32003-02-08 10:10:59 +00008950generated by GNU Autoconf 2.54. Invocation command line was
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008951
8952 CONFIG_FILES = $CONFIG_FILES
8953 CONFIG_HEADERS = $CONFIG_HEADERS
8954 CONFIG_LINKS = $CONFIG_LINKS
8955 CONFIG_COMMANDS = $CONFIG_COMMANDS
8956 $ $0 $@
8957
8958_CSEOF
8959echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8960echo >&5
8961_ACEOF
8962
8963# Files that config.status was made for.
8964if test -n "$ac_config_files"; then
8965 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8966fi
8967
8968if test -n "$ac_config_headers"; then
8969 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8970fi
8971
8972if test -n "$ac_config_links"; then
8973 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8974fi
8975
8976if test -n "$ac_config_commands"; then
8977 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8978fi
8979
8980cat >>$CONFIG_STATUS <<\_ACEOF
8981
8982ac_cs_usage="\
8983\`$as_me' instantiates files from templates according to the
8984current configuration.
8985
8986Usage: $0 [OPTIONS] [FILE]...
8987
8988 -h, --help print this help, then exit
8989 -V, --version print version number, then exit
8990 -d, --debug don't remove temporary files
8991 --recheck update $as_me by reconfiguring in the same conditions
8992 --file=FILE[:TEMPLATE]
8993 instantiate the configuration file FILE
8994 --header=FILE[:TEMPLATE]
8995 instantiate the configuration header FILE
8996
8997Configuration files:
8998$config_files
8999
9000Configuration headers:
9001$config_headers
9002
9003Configuration links:
9004$config_links
9005
9006Configuration commands:
9007$config_commands
9008
9009Report bugs to <bug-autoconf@gnu.org>."
9010_ACEOF
9011
9012cat >>$CONFIG_STATUS <<_ACEOF
9013ac_cs_version="\\
9014config.status
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009015configured by $0, generated by GNU Autoconf 2.54,
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009016 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9017
9018Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9019Free Software Foundation, Inc.
9020This config.status script is free software; the Free Software Foundation
9021gives unlimited permission to copy, distribute and modify it."
9022srcdir=$srcdir
9023INSTALL="$INSTALL"
9024_ACEOF
9025
9026cat >>$CONFIG_STATUS <<\_ACEOF
9027# If no file are specified by the user, then we need to provide default
9028# value. By we need to know if files were specified by the user.
9029ac_need_defaults=:
9030while test $# != 0
9031do
9032 case $1 in
9033 --*=*)
9034 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9035 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9036 ac_shift=:
9037 ;;
9038 -*)
9039 ac_option=$1
9040 ac_optarg=$2
9041 ac_shift=shift
9042 ;;
9043 *) # This is not an option, so the user has probably given explicit
9044 # arguments.
9045 ac_option=$1
9046 ac_need_defaults=false;;
9047 esac
9048
9049 case $ac_option in
9050 # Handling of the options.
9051_ACEOF
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009052cat >>$CONFIG_STATUS <<_ACEOF
hp.com!davidma69cf3d2003-01-28 03:40:06 +00009053 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009054 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9055 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9056_ACEOF
9057cat >>$CONFIG_STATUS <<\_ACEOF
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009058 --version | --vers* | -V )
9059 echo "$ac_cs_version"; exit 0 ;;
9060 --he | --h)
9061 # Conflict between --help and --header
9062 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9063Try \`$0 --help' for more information." >&5
9064echo "$as_me: error: ambiguous option: $1
9065Try \`$0 --help' for more information." >&2;}
9066 { (exit 1); exit 1; }; };;
9067 --help | --hel | -h )
9068 echo "$ac_cs_usage"; exit 0 ;;
9069 --debug | --d* | -d )
9070 debug=: ;;
9071 --file | --fil | --fi | --f )
9072 $ac_shift
9073 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9074 ac_need_defaults=false;;
9075 --header | --heade | --head | --hea )
9076 $ac_shift
9077 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9078 ac_need_defaults=false;;
9079
9080 # This is an error.
9081 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9082Try \`$0 --help' for more information." >&5
9083echo "$as_me: error: unrecognized option: $1
9084Try \`$0 --help' for more information." >&2;}
9085 { (exit 1); exit 1; }; } ;;
9086
9087 *) ac_config_targets="$ac_config_targets $1" ;;
9088
9089 esac
9090 shift
9091done
9092
9093_ACEOF
9094
9095cat >>$CONFIG_STATUS <<_ACEOF
9096#
9097# INIT-COMMANDS section.
9098#
9099
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009100AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009101
9102_ACEOF
9103
9104
9105
9106cat >>$CONFIG_STATUS <<\_ACEOF
9107for ac_config_target in $ac_config_targets
9108do
9109 case "$ac_config_target" in
9110 # Handling of arguments.
9111 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9112 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9113 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9114 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
mostang.com!davidmf648f6f2003-01-17 07:48:52 +00009115 "doc/common.tex" ) CONFIG_FILES="$CONFIG_FILES doc/common.tex" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009116 "include/libunwind.h" ) CONFIG_LINKS="$CONFIG_LINKS include/libunwind.h:include/libunwind-$target_arch.h" ;;
mostang.com!davidm51e4d342002-12-12 09:17:41 +00009117 "include/tdep.h" ) CONFIG_LINKS="$CONFIG_LINKS include/tdep.h:include/tdep-$target_arch.h" ;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009118 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009119 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
9120 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9121echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9122 { (exit 1); exit 1; }; };;
9123 esac
9124done
9125
9126# If the user did not use the arguments to specify the items to instantiate,
9127# then the envvar interface is used. Set only those that are not.
9128# We use the long form for the default assignment because of an extremely
9129# bizarre bug on SunOS 4.1.3.
9130if $ac_need_defaults; then
9131 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9132 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9133 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
9134 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9135fi
9136
9137# Create a temporary directory, and hook for its removal unless debugging.
9138$debug ||
9139{
9140 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9141 trap '{ (exit 1); exit 1; }' 1 2 13 15
9142}
9143
9144# Create a (secure) tmp directory for tmp files.
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009145: ${TMPDIR=/tmp}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009146{
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009147 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009148 test -n "$tmp" && test -d "$tmp"
9149} ||
9150{
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009151 tmp=$TMPDIR/cs$$-$RANDOM
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009152 (umask 077 && mkdir $tmp)
9153} ||
9154{
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009155 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009156 { (exit 1); exit 1; }
9157}
9158
9159_ACEOF
9160
9161cat >>$CONFIG_STATUS <<_ACEOF
9162
9163#
9164# CONFIG_FILES section.
9165#
9166
9167# No need to generate the scripts if there are no CONFIG_FILES.
9168# This happens for instance when ./config.status config.h
9169if test -n "\$CONFIG_FILES"; then
9170 # Protect against being on the right side of a sed subst in config.status.
9171 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9172 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9173s,@SHELL@,$SHELL,;t t
9174s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9175s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9176s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9177s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9178s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9179s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9180s,@exec_prefix@,$exec_prefix,;t t
9181s,@prefix@,$prefix,;t t
9182s,@program_transform_name@,$program_transform_name,;t t
9183s,@bindir@,$bindir,;t t
9184s,@sbindir@,$sbindir,;t t
9185s,@libexecdir@,$libexecdir,;t t
9186s,@datadir@,$datadir,;t t
9187s,@sysconfdir@,$sysconfdir,;t t
9188s,@sharedstatedir@,$sharedstatedir,;t t
9189s,@localstatedir@,$localstatedir,;t t
9190s,@libdir@,$libdir,;t t
9191s,@includedir@,$includedir,;t t
9192s,@oldincludedir@,$oldincludedir,;t t
9193s,@infodir@,$infodir,;t t
9194s,@mandir@,$mandir,;t t
9195s,@build_alias@,$build_alias,;t t
9196s,@host_alias@,$host_alias,;t t
9197s,@target_alias@,$target_alias,;t t
9198s,@DEFS@,$DEFS,;t t
9199s,@ECHO_C@,$ECHO_C,;t t
9200s,@ECHO_N@,$ECHO_N,;t t
9201s,@ECHO_T@,$ECHO_T,;t t
9202s,@LIBS@,$LIBS,;t t
9203s,@build@,$build,;t t
9204s,@build_cpu@,$build_cpu,;t t
9205s,@build_vendor@,$build_vendor,;t t
9206s,@build_os@,$build_os,;t t
9207s,@host@,$host,;t t
9208s,@host_cpu@,$host_cpu,;t t
9209s,@host_vendor@,$host_vendor,;t t
9210s,@host_os@,$host_os,;t t
9211s,@target@,$target,;t t
9212s,@target_cpu@,$target_cpu,;t t
9213s,@target_vendor@,$target_vendor,;t t
9214s,@target_os@,$target_os,;t t
9215s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9216s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9217s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9218s,@PACKAGE@,$PACKAGE,;t t
9219s,@VERSION@,$VERSION,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009220s,@ACLOCAL@,$ACLOCAL,;t t
9221s,@AUTOCONF@,$AUTOCONF,;t t
9222s,@AUTOMAKE@,$AUTOMAKE,;t t
9223s,@AUTOHEADER@,$AUTOHEADER,;t t
9224s,@MAKEINFO@,$MAKEINFO,;t t
9225s,@AMTAR@,$AMTAR,;t t
9226s,@install_sh@,$install_sh,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009227s,@STRIP@,$STRIP,;t t
9228s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009229s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9230s,@AWK@,$AWK,;t t
9231s,@SET_MAKE@,$SET_MAKE,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009232s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9233s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9234s,@MAINT@,$MAINT,;t t
9235s,@CC@,$CC,;t t
9236s,@CFLAGS@,$CFLAGS,;t t
9237s,@LDFLAGS@,$LDFLAGS,;t t
9238s,@CPPFLAGS@,$CPPFLAGS,;t t
9239s,@ac_ct_CC@,$ac_ct_CC,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009240s,@EXEEXT@,$EXEEXT,;t t
9241s,@OBJEXT@,$OBJEXT,;t t
9242s,@DEPDIR@,$DEPDIR,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009243s,@am__include@,$am__include,;t t
9244s,@am__quote@,$am__quote,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009245s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9246s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9247s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009248s,@CCDEPMODE@,$CCDEPMODE,;t t
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009249s,@LN_S@,$LN_S,;t t
9250s,@ECHO@,$ECHO,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009251s,@RANLIB@,$RANLIB,;t t
9252s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009253s,@CPP@,$CPP,;t t
9254s,@EGREP@,$EGREP,;t t
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009255s,@LIBTOOL@,$LIBTOOL,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009256s,@CCAS@,$CCAS,;t t
9257s,@CCASFLAGS@,$CCASFLAGS,;t t
mostang.com!davidm6af90d02003-02-15 08:53:55 +00009258s,@LIBOBJS@,$LIBOBJS,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009259s,@REMOTE_ONLY_TRUE@,$REMOTE_ONLY_TRUE,;t t
9260s,@REMOTE_ONLY_FALSE@,$REMOTE_ONLY_FALSE,;t t
9261s,@ARCH_IA64_TRUE@,$ARCH_IA64_TRUE,;t t
9262s,@ARCH_IA64_FALSE@,$ARCH_IA64_FALSE,;t t
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +00009263s,@ARCH_HPPA_TRUE@,$ARCH_HPPA_TRUE,;t t
9264s,@ARCH_HPPA_FALSE@,$ARCH_HPPA_FALSE,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009265s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t
9266s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009267s,@OS_LINUX_TRUE@,$OS_LINUX_TRUE,;t t
9268s,@OS_LINUX_FALSE@,$OS_LINUX_FALSE,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009269s,@arch@,$arch,;t t
9270s,@ARCH@,$ARCH,;t t
9271s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9272CEOF
9273
9274_ACEOF
9275
9276 cat >>$CONFIG_STATUS <<\_ACEOF
9277 # Split the substitutions into bite-sized pieces for seds with
9278 # small command number limits, like on Digital OSF/1 and HP-UX.
9279 ac_max_sed_lines=48
9280 ac_sed_frag=1 # Number of current file.
9281 ac_beg=1 # First line for current file.
9282 ac_end=$ac_max_sed_lines # Line after last line for current file.
9283 ac_more_lines=:
9284 ac_sed_cmds=
9285 while $ac_more_lines; do
9286 if test $ac_beg -gt 1; then
9287 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9288 else
9289 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9290 fi
9291 if test ! -s $tmp/subs.frag; then
9292 ac_more_lines=false
9293 else
9294 # The purpose of the label and of the branching condition is to
9295 # speed up the sed processing (if there are no `@' at all, there
9296 # is no need to browse any of the substitutions).
9297 # These are the two extra sed commands mentioned above.
9298 (echo ':t
9299 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9300 if test -z "$ac_sed_cmds"; then
9301 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9302 else
9303 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9304 fi
9305 ac_sed_frag=`expr $ac_sed_frag + 1`
9306 ac_beg=$ac_end
9307 ac_end=`expr $ac_end + $ac_max_sed_lines`
9308 fi
9309 done
9310 if test -z "$ac_sed_cmds"; then
9311 ac_sed_cmds=cat
9312 fi
9313fi # test -n "$CONFIG_FILES"
9314
9315_ACEOF
9316cat >>$CONFIG_STATUS <<\_ACEOF
9317for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9318 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9319 case $ac_file in
9320 - | *:- | *:-:* ) # input from stdin
9321 cat >$tmp/stdin
9322 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9323 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9324 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9325 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9326 * ) ac_file_in=$ac_file.in ;;
9327 esac
9328
9329 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9330 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9331$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9332 X"$ac_file" : 'X\(//\)[^/]' \| \
9333 X"$ac_file" : 'X\(//\)$' \| \
9334 X"$ac_file" : 'X\(/\)' \| \
9335 . : '\(.\)' 2>/dev/null ||
9336echo X"$ac_file" |
9337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9338 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9339 /^X\(\/\/\)$/{ s//\1/; q; }
9340 /^X\(\/\).*/{ s//\1/; q; }
9341 s/.*/./; q'`
9342 { if $as_mkdir_p; then
9343 mkdir -p "$ac_dir"
9344 else
9345 as_dir="$ac_dir"
9346 as_dirs=
9347 while test ! -d "$as_dir"; do
9348 as_dirs="$as_dir $as_dirs"
9349 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9350$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9351 X"$as_dir" : 'X\(//\)[^/]' \| \
9352 X"$as_dir" : 'X\(//\)$' \| \
9353 X"$as_dir" : 'X\(/\)' \| \
9354 . : '\(.\)' 2>/dev/null ||
9355echo X"$as_dir" |
9356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9357 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9358 /^X\(\/\/\)$/{ s//\1/; q; }
9359 /^X\(\/\).*/{ s//\1/; q; }
9360 s/.*/./; q'`
9361 done
9362 test ! -n "$as_dirs" || mkdir $as_dirs
9363 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9364echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9365 { (exit 1); exit 1; }; }; }
9366
9367 ac_builddir=.
9368
9369if test "$ac_dir" != .; then
9370 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9371 # A "../" for each directory in $ac_dir_suffix.
9372 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9373else
9374 ac_dir_suffix= ac_top_builddir=
9375fi
9376
9377case $srcdir in
9378 .) # No --srcdir option. We are building in place.
9379 ac_srcdir=.
9380 if test -z "$ac_top_builddir"; then
9381 ac_top_srcdir=.
9382 else
9383 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9384 fi ;;
9385 [\\/]* | ?:[\\/]* ) # Absolute path.
9386 ac_srcdir=$srcdir$ac_dir_suffix;
9387 ac_top_srcdir=$srcdir ;;
9388 *) # Relative path.
9389 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9390 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9391esac
9392# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9393# absolute.
9394ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9395ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9396ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9397ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9398
9399
9400 case $INSTALL in
9401 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9402 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9403 esac
9404
9405 if test x"$ac_file" != x-; then
9406 { echo "$as_me:$LINENO: creating $ac_file" >&5
9407echo "$as_me: creating $ac_file" >&6;}
9408 rm -f "$ac_file"
9409 fi
9410 # Let's still pretend it is `configure' which instantiates (i.e., don't
9411 # use $as_me), people would be surprised to read:
9412 # /* config.h. Generated by config.status. */
9413 if test x"$ac_file" = x-; then
9414 configure_input=
9415 else
9416 configure_input="$ac_file. "
9417 fi
9418 configure_input=$configure_input"Generated from `echo $ac_file_in |
9419 sed 's,.*/,,'` by configure."
9420
9421 # First look for the input files in the build tree, otherwise in the
9422 # src tree.
9423 ac_file_inputs=`IFS=:
9424 for f in $ac_file_in; do
9425 case $f in
9426 -) echo $tmp/stdin ;;
9427 [\\/$]*)
9428 # Absolute (can't be DOS-style, as IFS=:)
9429 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9430echo "$as_me: error: cannot find input file: $f" >&2;}
9431 { (exit 1); exit 1; }; }
9432 echo $f;;
9433 *) # Relative
9434 if test -f "$f"; then
9435 # Build tree
9436 echo $f
9437 elif test -f "$srcdir/$f"; then
9438 # Source tree
9439 echo $srcdir/$f
9440 else
9441 # /dev/null tree
9442 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9443echo "$as_me: error: cannot find input file: $f" >&2;}
9444 { (exit 1); exit 1; }; }
9445 fi;;
9446 esac
9447 done` || { (exit 1); exit 1; }
9448_ACEOF
9449cat >>$CONFIG_STATUS <<_ACEOF
9450 sed "$ac_vpsub
9451$extrasub
9452_ACEOF
9453cat >>$CONFIG_STATUS <<\_ACEOF
9454:t
9455/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9456s,@configure_input@,$configure_input,;t t
9457s,@srcdir@,$ac_srcdir,;t t
9458s,@abs_srcdir@,$ac_abs_srcdir,;t t
9459s,@top_srcdir@,$ac_top_srcdir,;t t
9460s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9461s,@builddir@,$ac_builddir,;t t
9462s,@abs_builddir@,$ac_abs_builddir,;t t
9463s,@top_builddir@,$ac_top_builddir,;t t
9464s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9465s,@INSTALL@,$ac_INSTALL,;t t
9466" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9467 rm -f $tmp/stdin
9468 if test x"$ac_file" != x-; then
9469 mv $tmp/out $ac_file
9470 else
9471 cat $tmp/out
9472 rm -f $tmp/out
9473 fi
9474
9475done
9476_ACEOF
9477cat >>$CONFIG_STATUS <<\_ACEOF
9478
9479#
9480# CONFIG_HEADER section.
9481#
9482
9483# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9484# NAME is the cpp macro being defined and VALUE is the value it is being given.
9485#
9486# ac_d sets the value in "#define NAME VALUE" lines.
9487ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9488ac_dB='[ ].*$,\1#\2'
9489ac_dC=' '
9490ac_dD=',;t'
9491# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9492ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9493ac_uB='$,\1#\2define\3'
9494ac_uC=' '
9495ac_uD=',;t'
9496
9497for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9498 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9499 case $ac_file in
9500 - | *:- | *:-:* ) # input from stdin
9501 cat >$tmp/stdin
9502 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9503 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9504 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9505 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9506 * ) ac_file_in=$ac_file.in ;;
9507 esac
9508
9509 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9510echo "$as_me: creating $ac_file" >&6;}
9511
9512 # First look for the input files in the build tree, otherwise in the
9513 # src tree.
9514 ac_file_inputs=`IFS=:
9515 for f in $ac_file_in; do
9516 case $f in
9517 -) echo $tmp/stdin ;;
9518 [\\/$]*)
9519 # Absolute (can't be DOS-style, as IFS=:)
9520 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9521echo "$as_me: error: cannot find input file: $f" >&2;}
9522 { (exit 1); exit 1; }; }
9523 echo $f;;
9524 *) # Relative
9525 if test -f "$f"; then
9526 # Build tree
9527 echo $f
9528 elif test -f "$srcdir/$f"; then
9529 # Source tree
9530 echo $srcdir/$f
9531 else
9532 # /dev/null tree
9533 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9534echo "$as_me: error: cannot find input file: $f" >&2;}
9535 { (exit 1); exit 1; }; }
9536 fi;;
9537 esac
9538 done` || { (exit 1); exit 1; }
9539 # Remove the trailing spaces.
9540 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9541
9542_ACEOF
9543
9544# Transform confdefs.h into two sed scripts, `conftest.defines' and
9545# `conftest.undefs', that substitutes the proper values into
9546# config.h.in to produce config.h. The first handles `#define'
9547# templates, and the second `#undef' templates.
9548# And first: Protect against being on the right side of a sed subst in
9549# config.status. Protect against being in an unquoted here document
9550# in config.status.
9551rm -f conftest.defines conftest.undefs
9552# Using a here document instead of a string reduces the quoting nightmare.
9553# Putting comments in sed scripts is not portable.
9554#
9555# `end' is used to avoid that the second main sed command (meant for
9556# 0-ary CPP macros) applies to n-ary macro definitions.
9557# See the Autoconf documentation for `clear'.
9558cat >confdef2sed.sed <<\_ACEOF
9559s/[\\&,]/\\&/g
9560s,[\\$`],\\&,g
9561t clear
9562: clear
9563s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9564t end
9565s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9566: end
9567_ACEOF
9568# If some macros were called several times there might be several times
9569# the same #defines, which is useless. Nevertheless, we may not want to
9570# sort them, since we want the *last* AC-DEFINE to be honored.
9571uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9572sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9573rm -f confdef2sed.sed
9574
9575# This sed command replaces #undef with comments. This is necessary, for
9576# example, in the case of _POSIX_SOURCE, which is predefined and required
9577# on some systems where configure will not decide to define it.
9578cat >>conftest.undefs <<\_ACEOF
9579s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9580_ACEOF
9581
9582# Break up conftest.defines because some shells have a limit on the size
9583# of here documents, and old seds have small limits too (100 cmds).
9584echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9585echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9586echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9587echo ' :' >>$CONFIG_STATUS
9588rm -f conftest.tail
9589while grep . conftest.defines >/dev/null
9590do
9591 # Write a limited-size here document to $tmp/defines.sed.
9592 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9593 # Speed up: don't consider the non `#define' lines.
9594 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9595 # Work around the forget-to-reset-the-flag bug.
9596 echo 't clr' >>$CONFIG_STATUS
9597 echo ': clr' >>$CONFIG_STATUS
9598 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9599 echo 'CEOF
9600 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9601 rm -f $tmp/in
9602 mv $tmp/out $tmp/in
9603' >>$CONFIG_STATUS
9604 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9605 rm -f conftest.defines
9606 mv conftest.tail conftest.defines
9607done
9608rm -f conftest.defines
9609echo ' fi # grep' >>$CONFIG_STATUS
9610echo >>$CONFIG_STATUS
9611
9612# Break up conftest.undefs because some shells have a limit on the size
9613# of here documents, and old seds have small limits too (100 cmds).
9614echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9615rm -f conftest.tail
9616while grep . conftest.undefs >/dev/null
9617do
9618 # Write a limited-size here document to $tmp/undefs.sed.
9619 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9620 # Speed up: don't consider the non `#undef'
9621 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9622 # Work around the forget-to-reset-the-flag bug.
9623 echo 't clr' >>$CONFIG_STATUS
9624 echo ': clr' >>$CONFIG_STATUS
9625 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9626 echo 'CEOF
9627 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9628 rm -f $tmp/in
9629 mv $tmp/out $tmp/in
9630' >>$CONFIG_STATUS
9631 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9632 rm -f conftest.undefs
9633 mv conftest.tail conftest.undefs
9634done
9635rm -f conftest.undefs
9636
9637cat >>$CONFIG_STATUS <<\_ACEOF
9638 # Let's still pretend it is `configure' which instantiates (i.e., don't
9639 # use $as_me), people would be surprised to read:
9640 # /* config.h. Generated by config.status. */
9641 if test x"$ac_file" = x-; then
9642 echo "/* Generated by configure. */" >$tmp/config.h
9643 else
9644 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9645 fi
9646 cat $tmp/in >>$tmp/config.h
9647 rm -f $tmp/in
9648 if test x"$ac_file" != x-; then
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009649 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009650 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9651echo "$as_me: $ac_file is unchanged" >&6;}
9652 else
9653 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9654$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9655 X"$ac_file" : 'X\(//\)[^/]' \| \
9656 X"$ac_file" : 'X\(//\)$' \| \
9657 X"$ac_file" : 'X\(/\)' \| \
9658 . : '\(.\)' 2>/dev/null ||
9659echo X"$ac_file" |
9660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9661 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9662 /^X\(\/\/\)$/{ s//\1/; q; }
9663 /^X\(\/\).*/{ s//\1/; q; }
9664 s/.*/./; q'`
9665 { if $as_mkdir_p; then
9666 mkdir -p "$ac_dir"
9667 else
9668 as_dir="$ac_dir"
9669 as_dirs=
9670 while test ! -d "$as_dir"; do
9671 as_dirs="$as_dir $as_dirs"
9672 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9673$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9674 X"$as_dir" : 'X\(//\)[^/]' \| \
9675 X"$as_dir" : 'X\(//\)$' \| \
9676 X"$as_dir" : 'X\(/\)' \| \
9677 . : '\(.\)' 2>/dev/null ||
9678echo X"$as_dir" |
9679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9681 /^X\(\/\/\)$/{ s//\1/; q; }
9682 /^X\(\/\).*/{ s//\1/; q; }
9683 s/.*/./; q'`
9684 done
9685 test ! -n "$as_dirs" || mkdir $as_dirs
9686 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9687echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9688 { (exit 1); exit 1; }; }; }
9689
9690 rm -f $ac_file
9691 mv $tmp/config.h $ac_file
9692 fi
9693 else
9694 cat $tmp/config.h
9695 rm -f $tmp/config.h
9696 fi
9697 # Run the commands associated with the file.
9698 case $ac_file in
9699 include/config.h ) # update the timestamp
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009700echo 'timestamp for include/config.h' >"include/stamp-h1"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009701 ;;
9702 esac
9703done
9704_ACEOF
9705cat >>$CONFIG_STATUS <<\_ACEOF
9706
9707#
9708# CONFIG_LINKS section.
9709#
9710
9711for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
9712 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9713 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9714
9715 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
9716echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
9717
9718 if test ! -r $srcdir/$ac_source; then
9719 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9720echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9721 { (exit 1); exit 1; }; }
9722 fi
9723 rm -f $ac_dest
9724
9725 # Make relative symlinks.
9726 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
9727$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9728 X"$ac_dest" : 'X\(//\)[^/]' \| \
9729 X"$ac_dest" : 'X\(//\)$' \| \
9730 X"$ac_dest" : 'X\(/\)' \| \
9731 . : '\(.\)' 2>/dev/null ||
9732echo X"$ac_dest" |
9733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9734 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9735 /^X\(\/\/\)$/{ s//\1/; q; }
9736 /^X\(\/\).*/{ s//\1/; q; }
9737 s/.*/./; q'`
9738 { if $as_mkdir_p; then
9739 mkdir -p "$ac_dest_dir"
9740 else
9741 as_dir="$ac_dest_dir"
9742 as_dirs=
9743 while test ! -d "$as_dir"; do
9744 as_dirs="$as_dir $as_dirs"
9745 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9746$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9747 X"$as_dir" : 'X\(//\)[^/]' \| \
9748 X"$as_dir" : 'X\(//\)$' \| \
9749 X"$as_dir" : 'X\(/\)' \| \
9750 . : '\(.\)' 2>/dev/null ||
9751echo X"$as_dir" |
9752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9753 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9754 /^X\(\/\/\)$/{ s//\1/; q; }
9755 /^X\(\/\).*/{ s//\1/; q; }
9756 s/.*/./; q'`
9757 done
9758 test ! -n "$as_dirs" || mkdir $as_dirs
9759 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
9760echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
9761 { (exit 1); exit 1; }; }; }
9762
9763 ac_builddir=.
9764
9765if test "$ac_dest_dir" != .; then
9766 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
9767 # A "../" for each directory in $ac_dir_suffix.
9768 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9769else
9770 ac_dir_suffix= ac_top_builddir=
9771fi
9772
9773case $srcdir in
9774 .) # No --srcdir option. We are building in place.
9775 ac_srcdir=.
9776 if test -z "$ac_top_builddir"; then
9777 ac_top_srcdir=.
9778 else
9779 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9780 fi ;;
9781 [\\/]* | ?:[\\/]* ) # Absolute path.
9782 ac_srcdir=$srcdir$ac_dir_suffix;
9783 ac_top_srcdir=$srcdir ;;
9784 *) # Relative path.
9785 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9786 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9787esac
9788# Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
9789# absolute.
9790ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
9791ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
9792ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
9793ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
9794
9795
9796 case $srcdir in
9797 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
9798 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
9799 esac
9800
9801 # Try a symlink, then a hard link, then a copy.
9802 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9803 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
9804 cp -p $srcdir/$ac_source $ac_dest ||
9805 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
9806echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
9807 { (exit 1); exit 1; }; }
9808done
9809_ACEOF
9810cat >>$CONFIG_STATUS <<\_ACEOF
9811
9812#
9813# CONFIG_COMMANDS section.
9814#
9815for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9816 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9817 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9818 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9819$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9820 X"$ac_dest" : 'X\(//\)[^/]' \| \
9821 X"$ac_dest" : 'X\(//\)$' \| \
9822 X"$ac_dest" : 'X\(/\)' \| \
9823 . : '\(.\)' 2>/dev/null ||
9824echo X"$ac_dest" |
9825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9827 /^X\(\/\/\)$/{ s//\1/; q; }
9828 /^X\(\/\).*/{ s//\1/; q; }
9829 s/.*/./; q'`
9830 ac_builddir=.
9831
9832if test "$ac_dir" != .; then
9833 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9834 # A "../" for each directory in $ac_dir_suffix.
9835 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9836else
9837 ac_dir_suffix= ac_top_builddir=
9838fi
9839
9840case $srcdir in
9841 .) # No --srcdir option. We are building in place.
9842 ac_srcdir=.
9843 if test -z "$ac_top_builddir"; then
9844 ac_top_srcdir=.
9845 else
9846 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9847 fi ;;
9848 [\\/]* | ?:[\\/]* ) # Absolute path.
9849 ac_srcdir=$srcdir$ac_dir_suffix;
9850 ac_top_srcdir=$srcdir ;;
9851 *) # Relative path.
9852 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9853 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9854esac
9855# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9856# absolute.
9857ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9858ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9859ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9860ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9861
9862
9863 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9864echo "$as_me: executing $ac_dest commands" >&6;}
9865 case $ac_dest in
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009866 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9867 # Strip MF so we end up with the name of the file.
9868 mf=`echo "$mf" | sed -e 's/:.*$//'`
9869 # Check whether this is an Automake generated Makefile or not.
9870 # We used to match only the files named `Makefile.in', but
9871 # some people rename them; so instead we look at the file content.
9872 # Grep'ing the first line is not enough: some people post-process
9873 # each Makefile.in and add a new line on top of each file to say so.
9874 # So let's grep whole file.
9875 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9876 dirpart=`(dirname "$mf") 2>/dev/null ||
9877$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9878 X"$mf" : 'X\(//\)[^/]' \| \
9879 X"$mf" : 'X\(//\)$' \| \
9880 X"$mf" : 'X\(/\)' \| \
9881 . : '\(.\)' 2>/dev/null ||
9882echo X"$mf" |
9883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9885 /^X\(\/\/\)$/{ s//\1/; q; }
9886 /^X\(\/\).*/{ s//\1/; q; }
9887 s/.*/./; q'`
9888 else
9889 continue
9890 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009891 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9892 # Extract the definition of DEP_FILES from the Makefile without
9893 # running `make'.
9894 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9895 test -z "$DEPDIR" && continue
9896 # When using ansi2knr, U may be empty or an underscore; expand it
9897 U=`sed -n -e '/^U = / s///p' < "$mf"`
9898 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9899 # We invoke sed twice because it is the simplest approach to
9900 # changing $(DEPDIR) to its actual value in the expansion.
9901 for file in `sed -n -e '
9902 /^DEP_FILES = .*\\\\$/ {
9903 s/^DEP_FILES = //
9904 :loop
9905 s/\\\\$//
9906 p
9907 n
9908 /\\\\$/ b loop
9909 p
9910 }
9911 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9912 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9913 # Make sure the directory exists.
9914 test -f "$dirpart/$file" && continue
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00009915 fdir=`(dirname "$file") 2>/dev/null ||
9916$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9917 X"$file" : 'X\(//\)[^/]' \| \
9918 X"$file" : 'X\(//\)$' \| \
9919 X"$file" : 'X\(/\)' \| \
9920 . : '\(.\)' 2>/dev/null ||
9921echo X"$file" |
9922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9923 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9924 /^X\(\/\/\)$/{ s//\1/; q; }
9925 /^X\(\/\).*/{ s//\1/; q; }
9926 s/.*/./; q'`
9927 { if $as_mkdir_p; then
9928 mkdir -p $dirpart/$fdir
9929 else
9930 as_dir=$dirpart/$fdir
9931 as_dirs=
9932 while test ! -d "$as_dir"; do
9933 as_dirs="$as_dir $as_dirs"
9934 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9935$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9936 X"$as_dir" : 'X\(//\)[^/]' \| \
9937 X"$as_dir" : 'X\(//\)$' \| \
9938 X"$as_dir" : 'X\(/\)' \| \
9939 . : '\(.\)' 2>/dev/null ||
9940echo X"$as_dir" |
9941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9942 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9943 /^X\(\/\/\)$/{ s//\1/; q; }
9944 /^X\(\/\).*/{ s//\1/; q; }
9945 s/.*/./; q'`
9946 done
9947 test ! -n "$as_dirs" || mkdir $as_dirs
9948 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9949echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9950 { (exit 1); exit 1; }; }; }
9951
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009952 # echo "creating $dirpart/$file"
9953 echo '# dummy' > "$dirpart/$file"
9954 done
9955done
9956 ;;
9957 esac
9958done
9959_ACEOF
9960
9961cat >>$CONFIG_STATUS <<\_ACEOF
9962
9963{ (exit 0); exit 0; }
9964_ACEOF
9965chmod +x $CONFIG_STATUS
9966ac_clean_files=$ac_clean_files_save
9967
9968
9969# configure is writing to config.log, and then calls config.status.
9970# config.status does its own redirection, appending to config.log.
9971# Unfortunately, on DOS this fails, as config.log is still kept open
9972# by configure, so config.status won't be able to write to it; its
9973# output is simply discarded. So we exec the FD to /dev/null,
9974# effectively closing config.log, so it can be properly (re)opened and
9975# appended to by config.status. When coming back to configure, we
9976# need to make the FD available again.
9977if test "$no_create" != yes; then
9978 ac_cs_success=:
9979 exec 5>/dev/null
mostang.com!davidma8db0b32003-02-08 10:10:59 +00009980 $SHELL $CONFIG_STATUS || ac_cs_success=false
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009981 exec 5>>config.log
9982 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9983 # would make configure fail if this is the last instruction.
9984 $ac_cs_success || { (exit 1); exit 1; }
9985fi
9986