blob: 1159ec7e7a420403f03b7a907358df64a9b3c2c0 [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!davidmc325d9c2004-01-24 06:45:18 +00003# Generated by GNU Autoconf 2.59 for libunwind 0.96.
hp.com!davidmb1d369a2003-11-26 18:59:24 +00004#
5# Report bugs to <libunwind@linux.hpl.hp.com>.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00006#
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007# Copyright (C) 2003 Free Software Foundation, Inc.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000024DUALCASE=1; export DUALCASE # for MKS sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000025
26# Support unset when possible.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000027if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000028 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
hp.com!davidm01b02dd2003-09-24 21:51:53 +000041for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000045do
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000046 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000047 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
hp.com!davidm01b02dd2003-09-24 21:51:53 +000090 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000094 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
hp.com!davidm01b02dd2003-09-24 21:51:53 +000098 rm -f conf$$.sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000099fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +0000223 test -d ./-p && rmdir ./-p
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +0000230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000231
232# Sed expression to map a string onto a valid variable name.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +0000233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000265 # Yippee, $echo works!
266 :
267else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000276$*
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000277EOF
278 exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000311 for dir in $PATH /usr/ucb; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000312 IFS="$lt_save_ifs"
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000321 IFS="$lt_save_ifs"
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete. It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
hp.com!davidmb1d369a2003-11-26 18:59:24 +0000424PACKAGE_NAME='libunwind'
425PACKAGE_TARNAME='libunwind'
mostang.com!davidm046362a2003-12-05 06:42:28 +0000426PACKAGE_VERSION='0.96'
427PACKAGE_STRING='libunwind 0.96'
hp.com!davidmb1d369a2003-11-26 18:59:24 +0000428PACKAGE_BUGREPORT='libunwind@linux.hpl.hp.com'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000429
430ac_unique_file="src/backtrace.c"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445# include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450# include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461# include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000468ac_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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 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 OS_HPUX_TRUE OS_HPUX_FALSE arch ARCH LTLIBOBJS'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806done
807
808if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +0000827 localstatedir libdir includedir oldincludedir infodir mandir
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000828do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +0000867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000871echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881else
882 ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
mostang.com!davidm4f17bce2003-03-28 07:43:22 +0000925ac_env_CXX_set=${CXX+set}
926ac_env_CXX_value=$CXX
927ac_cv_env_CXX_set=${CXX+set}
928ac_cv_env_CXX_value=$CXX
929ac_env_CXXFLAGS_set=${CXXFLAGS+set}
930ac_env_CXXFLAGS_value=$CXXFLAGS
931ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
932ac_cv_env_CXXFLAGS_value=$CXXFLAGS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000933ac_env_CPP_set=${CPP+set}
934ac_env_CPP_value=$CPP
935ac_cv_env_CPP_set=${CPP+set}
936ac_cv_env_CPP_value=$CPP
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +0000957\`configure' configures libunwind 0.96 to adapt to many kinds of systems.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE. See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979 cat <<_ACEOF
980Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
mostang.com!davidmc325d9c2004-01-24 06:45:18 +0000982 [$ac_default_prefix]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
mostang.com!davidmc325d9c2004-01-24 06:45:18 +0000984 [PREFIX]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006_ACEOF
1007
1008 cat <<\_ACEOF
1009
1010Program names:
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014
1015System types:
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018 --target=TARGET configure for building compilers for TARGET [HOST]
1019_ACEOF
1020fi
1021
1022if test -n "$ac_init_help"; then
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001023 case $ac_init_help in
mostang.com!davidm046362a2003-12-05 06:42:28 +00001024 short | recursive ) echo "Configuration of libunwind 0.96:";;
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001025 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001026 cat <<\_ACEOF
1027
1028Optional Features:
1029 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1030 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001031 --enable-maintainer-mode enable make rules and dependencies not useful
1032 (and sometimes confusing) to the casual installer
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001033 --disable-dependency-tracking Speeds up one-time builds
1034 --enable-dependency-tracking Do not reject slow dependency extractors
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001035 --enable-shared[=PKGS]
1036 build shared libraries [default=yes]
1037 --enable-static[=PKGS]
1038 build static libraries [default=yes]
1039 --enable-fast-install[=PKGS]
1040 optimize for fast installation [default=yes]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001041 --disable-libtool-lock avoid locking (might break parallel builds)
1042 --enable-debug turn on debug support (slows down execution)
1043
1044Optional Packages:
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1048 --with-pic try to use only PIC/non-PIC objects [default=use
1049 both]
1050 --with-tags[=TAGS]
1051 include additional configurations [automatic]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001052
1053Some influential environment variables:
1054 CC C compiler command
1055 CFLAGS C compiler flags
1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1057 nonstandard directory <lib dir>
1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059 headers in a nonstandard directory <include dir>
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00001060 CXX C++ compiler command
1061 CXXFLAGS C++ compiler flags
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001062 CPP C preprocessor
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001063 CXXCPP C++ preprocessor
1064 F77 Fortran 77 compiler command
1065 FFLAGS Fortran 77 compiler flags
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001066
1067Use these variables to override the choices made by `configure' or to help
1068it to find libraries and programs with nonstandard names/locations.
1069
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001070Report bugs to <libunwind@linux.hpl.hp.com>.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001071_ACEOF
1072fi
1073
1074if test "$ac_init_help" = "recursive"; then
1075 # If there are subdirs, report their specific --help.
1076 ac_popdir=`pwd`
1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078 test -d $ac_dir || continue
1079 ac_builddir=.
1080
1081if test "$ac_dir" != .; then
1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1083 # A "../" for each directory in $ac_dir_suffix.
1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1085else
1086 ac_dir_suffix= ac_top_builddir=
1087fi
1088
1089case $srcdir in
1090 .) # No --srcdir option. We are building in place.
1091 ac_srcdir=.
1092 if test -z "$ac_top_builddir"; then
1093 ac_top_srcdir=.
1094 else
1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1096 fi ;;
1097 [\\/]* | ?:[\\/]* ) # Absolute path.
1098 ac_srcdir=$srcdir$ac_dir_suffix;
1099 ac_top_srcdir=$srcdir ;;
1100 *) # Relative path.
1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1103esac
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001104
1105# Do not use `cd foo && pwd` to compute absolute paths, because
1106# the directories may not exist.
1107case `pwd` in
1108.) ac_abs_builddir="$ac_dir";;
1109*)
1110 case "$ac_dir" in
1111 .) ac_abs_builddir=`pwd`;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1114 esac;;
1115esac
1116case $ac_abs_builddir in
1117.) ac_abs_top_builddir=${ac_top_builddir}.;;
1118*)
1119 case ${ac_top_builddir}. in
1120 .) ac_abs_top_builddir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1123 esac;;
1124esac
1125case $ac_abs_builddir in
1126.) ac_abs_srcdir=$ac_srcdir;;
1127*)
1128 case $ac_srcdir in
1129 .) ac_abs_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1132 esac;;
1133esac
1134case $ac_abs_builddir in
1135.) ac_abs_top_srcdir=$ac_top_srcdir;;
1136*)
1137 case $ac_top_srcdir in
1138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1141 esac;;
1142esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001143
1144 cd $ac_dir
1145 # Check for guested configure; otherwise get Cygnus style configure.
1146 if test -f $ac_srcdir/configure.gnu; then
1147 echo
1148 $SHELL $ac_srcdir/configure.gnu --help=recursive
1149 elif test -f $ac_srcdir/configure; then
1150 echo
1151 $SHELL $ac_srcdir/configure --help=recursive
1152 elif test -f $ac_srcdir/configure.ac ||
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001153 test -f $ac_srcdir/configure.in; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001154 echo
1155 $ac_configure --help
1156 else
1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001159 cd "$ac_popdir"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001160 done
1161fi
1162
1163test -n "$ac_init_help" && exit 0
1164if $ac_init_version; then
1165 cat <<\_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00001166libunwind configure 0.96
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001167generated by GNU Autoconf 2.59
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001168
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001169Copyright (C) 2003 Free Software Foundation, Inc.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001170This configure script is free software; the Free Software Foundation
1171gives unlimited permission to copy, distribute and modify it.
1172_ACEOF
1173 exit 0
1174fi
1175exec 5>config.log
1176cat >&5 <<_ACEOF
1177This file contains any messages produced by compilers while
1178running configure, to aid debugging if configure makes a mistake.
1179
mostang.com!davidm046362a2003-12-05 06:42:28 +00001180It was created by libunwind $as_me 0.96, which was
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001181generated by GNU Autoconf 2.59. Invocation command line was
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001182
1183 $ $0 $@
1184
1185_ACEOF
1186{
1187cat <<_ASUNAME
1188## --------- ##
1189## Platform. ##
1190## --------- ##
1191
1192hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197
1198/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1200
1201/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1202/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1203/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1205/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1206/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1207/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1208
1209_ASUNAME
1210
1211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1212for as_dir in $PATH
1213do
1214 IFS=$as_save_IFS
1215 test -z "$as_dir" && as_dir=.
1216 echo "PATH: $as_dir"
1217done
1218
1219} >&5
1220
1221cat >&5 <<_ACEOF
1222
1223
1224## ----------- ##
1225## Core tests. ##
1226## ----------- ##
1227
1228_ACEOF
1229
1230
1231# Keep a trace of the command line.
1232# Strip out --no-create and --no-recursion so they do not pile up.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001233# Strip out --silent because we don't want to record it for future runs.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001234# Also quote any args containing shell meta-characters.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001235# Make two passes to allow for proper duplicate-argument suppression.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001236ac_configure_args=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001237ac_configure_args0=
1238ac_configure_args1=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001239ac_sep=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001240ac_must_keep_next=false
1241for ac_pass in 1 2
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001242do
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001243 for ac_arg
1244 do
1245 case $ac_arg in
1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1249 continue ;;
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1252 esac
1253 case $ac_pass in
1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255 2)
1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257 if test $ac_must_keep_next = true; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001258 ac_must_keep_next=false # Got value, back to normal.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001259 else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001260 case $ac_arg in
1261 *=* | --config-cache | -C | -disable-* | --disable-* \
1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264 | -with-* | --with-* | -without-* | --without-* | --x)
1265 case "$ac_configure_args0 " in
1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1267 esac
1268 ;;
1269 -* ) ac_must_keep_next=true ;;
1270 esac
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001271 fi
1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273 # Get rid of the leading space.
1274 ac_sep=" "
1275 ;;
1276 esac
1277 done
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001278done
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001279$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001281
1282# When interrupted or exit'd, cleanup temporary files, and complete
1283# config.log. We remove comments because anyway the quotes in there
1284# would cause problems or look ugly.
1285# WARNING: Be sure not to use single quotes in there, as some shells,
1286# such as our DU 5.0 friend, will then `close' the trap.
1287trap 'exit_status=$?
1288 # Save into config.log some information that might help in debugging.
1289 {
1290 echo
1291
1292 cat <<\_ASBOX
1293## ---------------- ##
1294## Cache variables. ##
1295## ---------------- ##
1296_ASBOX
1297 echo
1298 # The following way of writing the cache mishandles newlines in values,
1299{
1300 (set) 2>&1 |
1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302 *ac_space=\ *)
1303 sed -n \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001306 ;;
1307 *)
1308 sed -n \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001310 ;;
1311 esac;
1312}
1313 echo
1314
1315 cat <<\_ASBOX
1316## ----------------- ##
1317## Output variables. ##
1318## ----------------- ##
1319_ASBOX
1320 echo
1321 for ac_var in $ac_subst_vars
1322 do
1323 eval ac_val=$`echo $ac_var`
1324 echo "$ac_var='"'"'$ac_val'"'"'"
1325 done | sort
1326 echo
1327
1328 if test -n "$ac_subst_files"; then
1329 cat <<\_ASBOX
1330## ------------- ##
1331## Output files. ##
1332## ------------- ##
1333_ASBOX
1334 echo
1335 for ac_var in $ac_subst_files
1336 do
1337 eval ac_val=$`echo $ac_var`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001338 echo "$ac_var='"'"'$ac_val'"'"'"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001339 done | sort
1340 echo
1341 fi
1342
1343 if test -s confdefs.h; then
1344 cat <<\_ASBOX
1345## ----------- ##
1346## confdefs.h. ##
1347## ----------- ##
1348_ASBOX
1349 echo
1350 sed "/^$/d" confdefs.h | sort
1351 echo
1352 fi
1353 test "$ac_signal" != 0 &&
1354 echo "$as_me: caught signal $ac_signal"
1355 echo "$as_me: exit $exit_status"
1356 } >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001357 rm -f core *.core &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001358 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1359 exit $exit_status
1360 ' 0
1361for ac_signal in 1 2 13 15; do
1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1363done
1364ac_signal=0
1365
1366# confdefs.h avoids OS command line length limits that DEFS can exceed.
1367rm -rf conftest* confdefs.h
1368# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369echo >confdefs.h
1370
1371# Predefined preprocessor variables.
1372
1373cat >>confdefs.h <<_ACEOF
1374#define PACKAGE_NAME "$PACKAGE_NAME"
1375_ACEOF
1376
1377
1378cat >>confdefs.h <<_ACEOF
1379#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1380_ACEOF
1381
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_VERSION "$PACKAGE_VERSION"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_STRING "$PACKAGE_STRING"
1390_ACEOF
1391
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1395_ACEOF
1396
1397
1398# Let the site file select an alternate cache file if it wants to.
1399# Prefer explicitly selected file to automatically selected ones.
1400if test -z "$CONFIG_SITE"; then
1401 if test "x$prefix" != xNONE; then
1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1403 else
1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405 fi
1406fi
1407for ac_site_file in $CONFIG_SITE; do
1408 if test -r "$ac_site_file"; then
1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410echo "$as_me: loading site script $ac_site_file" >&6;}
1411 sed 's/^/| /' "$ac_site_file" >&5
1412 . "$ac_site_file"
1413 fi
1414done
1415
1416if test -r "$cache_file"; then
1417 # Some versions of bash will fail to source /dev/null (special
1418 # files actually), so we avoid doing that.
1419 if test -f "$cache_file"; then
1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421echo "$as_me: loading cache $cache_file" >&6;}
1422 case $cache_file in
1423 [\\/]* | ?:[\\/]* ) . $cache_file;;
1424 *) . ./$cache_file;;
1425 esac
1426 fi
1427else
1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429echo "$as_me: creating cache $cache_file" >&6;}
1430 >$cache_file
1431fi
1432
1433# Check that the precious variables saved in the cache have kept the same
1434# value.
1435ac_cache_corrupted=false
1436for ac_var in `(set) 2>&1 |
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439 eval ac_new_set=\$ac_env_${ac_var}_set
1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441 eval ac_new_val="\$ac_env_${ac_var}_value"
1442 case $ac_old_set,$ac_new_set in
1443 set,)
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1447 ,set)
1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450 ac_cache_corrupted=: ;;
1451 ,);;
1452 *)
1453 if test "x$ac_old_val" != "x$ac_new_val"; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001454 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001455echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001456 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001457echo "$as_me: former value: $ac_old_val" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001458 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001459echo "$as_me: current value: $ac_new_val" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001460 ac_cache_corrupted=:
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001461 fi;;
1462 esac
1463 # Pass precious variables to config.status.
1464 if test "$ac_new_set" = set; then
1465 case $ac_new_val in
1466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468 *) ac_arg=$ac_var=$ac_new_val ;;
1469 esac
1470 case " $ac_configure_args " in
1471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1472 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1473 esac
1474 fi
1475done
1476if $ac_cache_corrupted; then
1477 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1478echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1479 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1480echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1481 { (exit 1); exit 1; }; }
1482fi
1483
1484ac_ext=c
1485ac_cpp='$CPP $CPPFLAGS'
1486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488ac_compiler_gnu=$ac_cv_c_compiler_gnu
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001508
1509
1510
1511
1512
1513
1514
1515
1516
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001517ac_aux_dir=
1518for ac_dir in aux $srcdir/aux; do
1519 if test -f $ac_dir/install-sh; then
1520 ac_aux_dir=$ac_dir
1521 ac_install_sh="$ac_aux_dir/install-sh -c"
1522 break
1523 elif test -f $ac_dir/install.sh; then
1524 ac_aux_dir=$ac_dir
1525 ac_install_sh="$ac_aux_dir/install.sh -c"
1526 break
1527 elif test -f $ac_dir/shtool; then
1528 ac_aux_dir=$ac_dir
1529 ac_install_sh="$ac_aux_dir/shtool install -c"
1530 break
1531 fi
1532done
1533if test -z "$ac_aux_dir"; then
1534 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&5
1535echo "$as_me: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&2;}
1536 { (exit 1); exit 1; }; }
1537fi
1538ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1539ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1540ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1541
1542# Make sure we can run config.sub.
1543$ac_config_sub sun4 >/dev/null 2>&1 ||
1544 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1545echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1546 { (exit 1); exit 1; }; }
1547
1548echo "$as_me:$LINENO: checking build system type" >&5
1549echo $ECHO_N "checking build system type... $ECHO_C" >&6
1550if test "${ac_cv_build+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1552else
1553 ac_cv_build_alias=$build_alias
1554test -z "$ac_cv_build_alias" &&
1555 ac_cv_build_alias=`$ac_config_guess`
1556test -z "$ac_cv_build_alias" &&
1557 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1558echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1559 { (exit 1); exit 1; }; }
1560ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1561 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1562echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1563 { (exit 1); exit 1; }; }
1564
1565fi
1566echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1567echo "${ECHO_T}$ac_cv_build" >&6
1568build=$ac_cv_build
1569build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1572
1573
1574echo "$as_me:$LINENO: checking host system type" >&5
1575echo $ECHO_N "checking host system type... $ECHO_C" >&6
1576if test "${ac_cv_host+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578else
1579 ac_cv_host_alias=$host_alias
1580test -z "$ac_cv_host_alias" &&
1581 ac_cv_host_alias=$ac_cv_build_alias
1582ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1583 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1584echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1585 { (exit 1); exit 1; }; }
1586
1587fi
1588echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1589echo "${ECHO_T}$ac_cv_host" >&6
1590host=$ac_cv_host
1591host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1592host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1593host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1594
1595
1596echo "$as_me:$LINENO: checking target system type" >&5
1597echo $ECHO_N "checking target system type... $ECHO_C" >&6
1598if test "${ac_cv_target+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1600else
1601 ac_cv_target_alias=$target_alias
1602test "x$ac_cv_target_alias" = "x" &&
1603 ac_cv_target_alias=$ac_cv_host_alias
1604ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1605 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1606echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1607 { (exit 1); exit 1; }; }
1608
1609fi
1610echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1611echo "${ECHO_T}$ac_cv_target" >&6
1612target=$ac_cv_target
1613target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1614target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1615target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1616
1617
1618# The aliases save the names the user supplied, while $host etc.
1619# will get canonicalized.
1620test -n "$target_alias" &&
1621 test "$program_prefix$program_suffix$program_transform_name" = \
1622 NONENONEs,x,x, &&
1623 program_prefix=${target_alias}-
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001624am__api_version="1.6"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001625# Find a good install program. We prefer a C program (faster),
1626# so one script is as good as another. But avoid the broken or
1627# incompatible versions:
1628# SysV /etc/install, /usr/sbin/install
1629# SunOS /usr/etc/install
1630# IRIX /sbin/install
1631# AIX /bin/install
1632# AmigaOS /C/install, which installs bootblocks on floppy discs
1633# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1634# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1635# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001636# OS/2's system install, which has a completely different semantic
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001637# ./install, which can be erroneously created by make from ./install.sh.
1638echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1639echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1640if test -z "$INSTALL"; then
1641if test "${ac_cv_path_install+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1643else
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645for as_dir in $PATH
1646do
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 # Account for people who put trailing slashes in PATH elements.
1650case $as_dir/ in
1651 ./ | .// | /cC/* | \
1652 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001653 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001654 /usr/ucb/* ) ;;
1655 *)
1656 # OSF1 and SCO ODT 3.0 have their own names for install.
1657 # Don't use installbsd from OSF since it installs stuff as root
1658 # by default.
1659 for ac_prog in ginstall scoinst install; do
1660 for ac_exec_ext in '' $ac_executable_extensions; do
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001661 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1662 if test $ac_prog = install &&
1663 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1664 # AIX install. It has an incompatible calling convention.
1665 :
1666 elif test $ac_prog = install &&
1667 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1668 # program-specific install script used by HP pwplus--don't use.
1669 :
1670 else
1671 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1672 break 3
1673 fi
1674 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001675 done
1676 done
1677 ;;
1678esac
1679done
1680
1681
1682fi
1683 if test "${ac_cv_path_install+set}" = set; then
1684 INSTALL=$ac_cv_path_install
1685 else
1686 # As a last resort, use the slow shell script. We don't cache a
1687 # path for INSTALL within a source directory, because that will
1688 # break other packages using the cache if that directory is
1689 # removed, or if the path is relative.
1690 INSTALL=$ac_install_sh
1691 fi
1692fi
1693echo "$as_me:$LINENO: result: $INSTALL" >&5
1694echo "${ECHO_T}$INSTALL" >&6
1695
1696# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1697# It thinks the first close brace ends the variable substitution.
1698test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1699
1700test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1701
1702test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1703
1704echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1705echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1706# Just in case
1707sleep 1
1708echo timestamp > conftest.file
1709# Do `set' in a subshell so we don't clobber the current shell's
1710# arguments. Must try -L first in case configure is actually a
1711# symlink; some systems play weird games with the mod time of symlinks
1712# (eg FreeBSD returns the mod time of the symlink's containing
1713# directory).
1714if (
1715 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1716 if test "$*" = "X"; then
1717 # -L didn't work.
1718 set X `ls -t $srcdir/configure conftest.file`
1719 fi
1720 rm -f conftest.file
1721 if test "$*" != "X $srcdir/configure conftest.file" \
1722 && test "$*" != "X conftest.file $srcdir/configure"; then
1723
1724 # If neither matched, then we have a broken ls. This can happen
1725 # if, for instance, CONFIG_SHELL is bash and it inherits a
1726 # broken ls alias from the environment. This has actually
1727 # happened. Such a system could not be considered "sane".
1728 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1729alias in your environment" >&5
1730echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1731alias in your environment" >&2;}
1732 { (exit 1); exit 1; }; }
1733 fi
1734
1735 test "$2" = conftest.file
1736 )
1737then
1738 # Ok.
1739 :
1740else
1741 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1742Check your system clock" >&5
1743echo "$as_me: error: newly created file is older than distributed files!
1744Check your system clock" >&2;}
1745 { (exit 1); exit 1; }; }
1746fi
1747echo "$as_me:$LINENO: result: yes" >&5
1748echo "${ECHO_T}yes" >&6
1749test "$program_prefix" != NONE &&
1750 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1751# Use a double $ so make ignores it.
1752test "$program_suffix" != NONE &&
1753 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1754# Double any \ or $. echo might interpret backslashes.
1755# By default was `s,x,x', remove it if useless.
1756cat <<\_ACEOF >conftest.sed
1757s/[\\$]/&&/g;s/;s,x,x,$//
1758_ACEOF
1759program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1760rm conftest.sed
1761
1762
1763# expand $ac_aux_dir to an absolute path
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001764am_aux_dir=`cd $ac_aux_dir && pwd`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001765
1766test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1767# Use eval to expand $SHELL
1768if eval "$MISSING --run true"; then
1769 am_missing_run="$MISSING --run "
1770else
1771 am_missing_run=
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001772 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1773echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001774fi
1775
1776for ac_prog in gawk mawk nawk awk
1777do
1778 # Extract the first word of "$ac_prog", so it can be a program name with args.
1779set dummy $ac_prog; ac_word=$2
1780echo "$as_me:$LINENO: checking for $ac_word" >&5
1781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1782if test "${ac_cv_prog_AWK+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1784else
1785 if test -n "$AWK"; then
1786 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1787else
1788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789for as_dir in $PATH
1790do
1791 IFS=$as_save_IFS
1792 test -z "$as_dir" && as_dir=.
1793 for ac_exec_ext in '' $ac_executable_extensions; do
1794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1795 ac_cv_prog_AWK="$ac_prog"
1796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1797 break 2
1798 fi
1799done
1800done
1801
1802fi
1803fi
1804AWK=$ac_cv_prog_AWK
1805if test -n "$AWK"; then
1806 echo "$as_me:$LINENO: result: $AWK" >&5
1807echo "${ECHO_T}$AWK" >&6
1808else
1809 echo "$as_me:$LINENO: result: no" >&5
1810echo "${ECHO_T}no" >&6
1811fi
1812
1813 test -n "$AWK" && break
1814done
1815
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001816echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1817echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001818set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001819if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1821else
1822 cat >conftest.make <<\_ACEOF
1823all:
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001824 @echo 'ac_maketemp="$(MAKE)"'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001825_ACEOF
1826# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1827eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1828if test -n "$ac_maketemp"; then
1829 eval ac_cv_prog_make_${ac_make}_set=yes
1830else
1831 eval ac_cv_prog_make_${ac_make}_set=no
1832fi
1833rm -f conftest.make
1834fi
1835if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1836 echo "$as_me:$LINENO: result: yes" >&5
1837echo "${ECHO_T}yes" >&6
1838 SET_MAKE=
1839else
1840 echo "$as_me:$LINENO: result: no" >&5
1841echo "${ECHO_T}no" >&6
1842 SET_MAKE="MAKE=${MAKE-make}"
1843fi
1844
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001845 # test to see if srcdir already configured
1846if test "`cd $srcdir && pwd`" != "`pwd`" &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001847 test -f $srcdir/config.status; then
1848 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1849echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1850 { (exit 1); exit 1; }; }
1851fi
1852
1853# Define the identity of the package.
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001854 PACKAGE=libunwind
mostang.com!davidm046362a2003-12-05 06:42:28 +00001855 VERSION=0.96
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001856
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001857
1858cat >>confdefs.h <<_ACEOF
1859#define PACKAGE "$PACKAGE"
1860_ACEOF
1861
1862
1863cat >>confdefs.h <<_ACEOF
1864#define VERSION "$VERSION"
1865_ACEOF
1866
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001867# Some tools Automake needs.
1868
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001869ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001870
1871
1872AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1873
1874
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001875AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001876
1877
1878AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1879
1880
1881MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1882
1883
1884AMTAR=${AMTAR-"${am_missing_run}tar"}
1885
1886install_sh=${install_sh-"$am_aux_dir/install-sh"}
1887
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001888# Installed binaries are usually stripped using `strip' when the user
1889# run `make install-strip'. However `strip' might not be the right
1890# tool to use in cross-compilation environments, therefore Automake
1891# will honor the `STRIP' environment variable to overrule this program.
1892if test "$cross_compiling" != no; then
1893 if test -n "$ac_tool_prefix"; then
1894 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1895set dummy ${ac_tool_prefix}strip; ac_word=$2
1896echo "$as_me:$LINENO: checking for $ac_word" >&5
1897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898if test "${ac_cv_prog_STRIP+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1900else
1901 if test -n "$STRIP"; then
1902 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1903else
1904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905for as_dir in $PATH
1906do
1907 IFS=$as_save_IFS
1908 test -z "$as_dir" && as_dir=.
1909 for ac_exec_ext in '' $ac_executable_extensions; do
1910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 break 2
1914 fi
1915done
1916done
1917
1918fi
1919fi
1920STRIP=$ac_cv_prog_STRIP
1921if test -n "$STRIP"; then
1922 echo "$as_me:$LINENO: result: $STRIP" >&5
1923echo "${ECHO_T}$STRIP" >&6
1924else
1925 echo "$as_me:$LINENO: result: no" >&5
1926echo "${ECHO_T}no" >&6
1927fi
1928
1929fi
1930if test -z "$ac_cv_prog_STRIP"; then
1931 ac_ct_STRIP=$STRIP
1932 # Extract the first word of "strip", so it can be a program name with args.
1933set dummy strip; ac_word=$2
1934echo "$as_me:$LINENO: checking for $ac_word" >&5
1935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1938else
1939 if test -n "$ac_ct_STRIP"; then
1940 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1941else
1942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943for as_dir in $PATH
1944do
1945 IFS=$as_save_IFS
1946 test -z "$as_dir" && as_dir=.
1947 for ac_exec_ext in '' $ac_executable_extensions; do
1948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949 ac_cv_prog_ac_ct_STRIP="strip"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 break 2
1952 fi
1953done
1954done
1955
1956 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1957fi
1958fi
1959ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1960if test -n "$ac_ct_STRIP"; then
1961 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1962echo "${ECHO_T}$ac_ct_STRIP" >&6
1963else
1964 echo "$as_me:$LINENO: result: no" >&5
1965echo "${ECHO_T}no" >&6
1966fi
1967
1968 STRIP=$ac_ct_STRIP
1969else
1970 STRIP="$ac_cv_prog_STRIP"
1971fi
1972
1973fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001974INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1975
1976# We need awk for the "check" target. The system "awk" is bad on
1977# some platforms.
1978
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001979
1980
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001981echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1982echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1983 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1984if test "${enable_maintainer_mode+set}" = set; then
1985 enableval="$enable_maintainer_mode"
1986 USE_MAINTAINER_MODE=$enableval
1987else
1988 USE_MAINTAINER_MODE=no
1989fi;
1990 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1991echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1992
1993
1994if test $USE_MAINTAINER_MODE = yes; then
1995 MAINTAINER_MODE_TRUE=
1996 MAINTAINER_MODE_FALSE='#'
1997else
1998 MAINTAINER_MODE_TRUE='#'
1999 MAINTAINER_MODE_FALSE=
2000fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002001
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002002 MAINT=$MAINTAINER_MODE_TRUE
2003
2004
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002005# Add the stamp file to the list of files AC keeps track of,
2006# along with our hook.
2007 ac_config_headers="$ac_config_headers include/config.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002008
2009
2010
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002011
2012ac_ext=c
2013ac_cpp='$CPP $CPPFLAGS'
2014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2016ac_compiler_gnu=$ac_cv_c_compiler_gnu
2017if test -n "$ac_tool_prefix"; then
2018 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2019set dummy ${ac_tool_prefix}gcc; ac_word=$2
2020echo "$as_me:$LINENO: checking for $ac_word" >&5
2021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2022if test "${ac_cv_prog_CC+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2024else
2025 if test -n "$CC"; then
2026 ac_cv_prog_CC="$CC" # Let the user override the test.
2027else
2028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029for as_dir in $PATH
2030do
2031 IFS=$as_save_IFS
2032 test -z "$as_dir" && as_dir=.
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2035 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037 break 2
2038 fi
2039done
2040done
2041
2042fi
2043fi
2044CC=$ac_cv_prog_CC
2045if test -n "$CC"; then
2046 echo "$as_me:$LINENO: result: $CC" >&5
2047echo "${ECHO_T}$CC" >&6
2048else
2049 echo "$as_me:$LINENO: result: no" >&5
2050echo "${ECHO_T}no" >&6
2051fi
2052
2053fi
2054if test -z "$ac_cv_prog_CC"; then
2055 ac_ct_CC=$CC
2056 # Extract the first word of "gcc", so it can be a program name with args.
2057set dummy gcc; ac_word=$2
2058echo "$as_me:$LINENO: checking for $ac_word" >&5
2059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2062else
2063 if test -n "$ac_ct_CC"; then
2064 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2065else
2066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067for as_dir in $PATH
2068do
2069 IFS=$as_save_IFS
2070 test -z "$as_dir" && as_dir=.
2071 for ac_exec_ext in '' $ac_executable_extensions; do
2072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073 ac_cv_prog_ac_ct_CC="gcc"
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 break 2
2076 fi
2077done
2078done
2079
2080fi
2081fi
2082ac_ct_CC=$ac_cv_prog_ac_ct_CC
2083if test -n "$ac_ct_CC"; then
2084 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2085echo "${ECHO_T}$ac_ct_CC" >&6
2086else
2087 echo "$as_me:$LINENO: result: no" >&5
2088echo "${ECHO_T}no" >&6
2089fi
2090
2091 CC=$ac_ct_CC
2092else
2093 CC="$ac_cv_prog_CC"
2094fi
2095
2096if test -z "$CC"; then
2097 if test -n "$ac_tool_prefix"; then
2098 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2099set dummy ${ac_tool_prefix}cc; ac_word=$2
2100echo "$as_me:$LINENO: checking for $ac_word" >&5
2101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102if test "${ac_cv_prog_CC+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2104else
2105 if test -n "$CC"; then
2106 ac_cv_prog_CC="$CC" # Let the user override the test.
2107else
2108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109for as_dir in $PATH
2110do
2111 IFS=$as_save_IFS
2112 test -z "$as_dir" && as_dir=.
2113 for ac_exec_ext in '' $ac_executable_extensions; do
2114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2115 ac_cv_prog_CC="${ac_tool_prefix}cc"
2116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117 break 2
2118 fi
2119done
2120done
2121
2122fi
2123fi
2124CC=$ac_cv_prog_CC
2125if test -n "$CC"; then
2126 echo "$as_me:$LINENO: result: $CC" >&5
2127echo "${ECHO_T}$CC" >&6
2128else
2129 echo "$as_me:$LINENO: result: no" >&5
2130echo "${ECHO_T}no" >&6
2131fi
2132
2133fi
2134if test -z "$ac_cv_prog_CC"; then
2135 ac_ct_CC=$CC
2136 # Extract the first word of "cc", so it can be a program name with args.
2137set dummy cc; ac_word=$2
2138echo "$as_me:$LINENO: checking for $ac_word" >&5
2139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2140if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2142else
2143 if test -n "$ac_ct_CC"; then
2144 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2145else
2146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147for as_dir in $PATH
2148do
2149 IFS=$as_save_IFS
2150 test -z "$as_dir" && as_dir=.
2151 for ac_exec_ext in '' $ac_executable_extensions; do
2152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2153 ac_cv_prog_ac_ct_CC="cc"
2154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155 break 2
2156 fi
2157done
2158done
2159
2160fi
2161fi
2162ac_ct_CC=$ac_cv_prog_ac_ct_CC
2163if test -n "$ac_ct_CC"; then
2164 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2165echo "${ECHO_T}$ac_ct_CC" >&6
2166else
2167 echo "$as_me:$LINENO: result: no" >&5
2168echo "${ECHO_T}no" >&6
2169fi
2170
2171 CC=$ac_ct_CC
2172else
2173 CC="$ac_cv_prog_CC"
2174fi
2175
2176fi
2177if test -z "$CC"; then
2178 # Extract the first word of "cc", so it can be a program name with args.
2179set dummy cc; ac_word=$2
2180echo "$as_me:$LINENO: checking for $ac_word" >&5
2181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2182if test "${ac_cv_prog_CC+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184else
2185 if test -n "$CC"; then
2186 ac_cv_prog_CC="$CC" # Let the user override the test.
2187else
2188 ac_prog_rejected=no
2189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190for as_dir in $PATH
2191do
2192 IFS=$as_save_IFS
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
2195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2196 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2197 ac_prog_rejected=yes
2198 continue
2199 fi
2200 ac_cv_prog_CC="cc"
2201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202 break 2
2203 fi
2204done
2205done
2206
2207if test $ac_prog_rejected = yes; then
2208 # We found a bogon in the path, so make sure we never use it.
2209 set dummy $ac_cv_prog_CC
2210 shift
2211 if test $# != 0; then
2212 # We chose a different compiler from the bogus one.
2213 # However, it has the same basename, so the bogon will be chosen
2214 # first if we set CC to just the basename; use the full file name.
2215 shift
2216 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2217 fi
2218fi
2219fi
2220fi
2221CC=$ac_cv_prog_CC
2222if test -n "$CC"; then
2223 echo "$as_me:$LINENO: result: $CC" >&5
2224echo "${ECHO_T}$CC" >&6
2225else
2226 echo "$as_me:$LINENO: result: no" >&5
2227echo "${ECHO_T}no" >&6
2228fi
2229
2230fi
2231if test -z "$CC"; then
2232 if test -n "$ac_tool_prefix"; then
2233 for ac_prog in cl
2234 do
2235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2236set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2237echo "$as_me:$LINENO: checking for $ac_word" >&5
2238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2239if test "${ac_cv_prog_CC+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2241else
2242 if test -n "$CC"; then
2243 ac_cv_prog_CC="$CC" # Let the user override the test.
2244else
2245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246for as_dir in $PATH
2247do
2248 IFS=$as_save_IFS
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2252 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254 break 2
2255 fi
2256done
2257done
2258
2259fi
2260fi
2261CC=$ac_cv_prog_CC
2262if test -n "$CC"; then
2263 echo "$as_me:$LINENO: result: $CC" >&5
2264echo "${ECHO_T}$CC" >&6
2265else
2266 echo "$as_me:$LINENO: result: no" >&5
2267echo "${ECHO_T}no" >&6
2268fi
2269
2270 test -n "$CC" && break
2271 done
2272fi
2273if test -z "$CC"; then
2274 ac_ct_CC=$CC
2275 for ac_prog in cl
2276do
2277 # Extract the first word of "$ac_prog", so it can be a program name with args.
2278set dummy $ac_prog; ac_word=$2
2279echo "$as_me:$LINENO: checking for $ac_word" >&5
2280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2281if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2283else
2284 if test -n "$ac_ct_CC"; then
2285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2286else
2287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288for as_dir in $PATH
2289do
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 for ac_exec_ext in '' $ac_executable_extensions; do
2293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2294 ac_cv_prog_ac_ct_CC="$ac_prog"
2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296 break 2
2297 fi
2298done
2299done
2300
2301fi
2302fi
2303ac_ct_CC=$ac_cv_prog_ac_ct_CC
2304if test -n "$ac_ct_CC"; then
2305 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2306echo "${ECHO_T}$ac_ct_CC" >&6
2307else
2308 echo "$as_me:$LINENO: result: no" >&5
2309echo "${ECHO_T}no" >&6
2310fi
2311
2312 test -n "$ac_ct_CC" && break
2313done
2314
2315 CC=$ac_ct_CC
2316fi
2317
2318fi
2319
2320
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002321test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2322See \`config.log' for more details." >&5
2323echo "$as_me: error: no acceptable C compiler found in \$PATH
2324See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002325 { (exit 1); exit 1; }; }
2326
2327# Provide some information about the compiler.
2328echo "$as_me:$LINENO:" \
2329 "checking for C compiler version" >&5
2330ac_compiler=`set X $ac_compile; echo $2`
2331{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2332 (eval $ac_compiler --version </dev/null >&5) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }
2336{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2337 (eval $ac_compiler -v </dev/null >&5) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }
2341{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2342 (eval $ac_compiler -V </dev/null >&5) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }
2346
2347cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002348/* confdefs.h. */
2349_ACEOF
2350cat confdefs.h >>conftest.$ac_ext
2351cat >>conftest.$ac_ext <<_ACEOF
2352/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002353
2354int
2355main ()
2356{
2357
2358 ;
2359 return 0;
2360}
2361_ACEOF
2362ac_clean_files_save=$ac_clean_files
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002363ac_clean_files="$ac_clean_files a.out a.exe b.out"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002364# Try to create an executable without -o first, disregard a.out.
2365# It will help us diagnose broken compilers, and finding out an intuition
2366# of exeext.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002367echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2368echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002369ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2370if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2371 (eval $ac_link_default) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; then
2375 # Find the output, starting from the most likely. This scheme is
2376# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2377# resort.
2378
2379# Be careful to initialize this variable, since it used to be cached.
2380# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2381ac_cv_exeext=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002382# b.out is created by i960 compilers.
2383for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2384do
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002385 test -f "$ac_file" || continue
2386 case $ac_file in
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002388 ;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002389 conftest.$ac_ext )
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002390 # This is the source file.
2391 ;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002392 [ab].out )
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002393 # We found the default executable, but exeext='' is most
2394 # certainly right.
2395 break;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002396 *.* )
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002397 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2398 # FIXME: I believe we export ac_cv_exeext for Libtool,
2399 # but it would be cool to find out if it's true. Does anybody
2400 # maintain Libtool? --akim.
2401 export ac_cv_exeext
2402 break;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002403 * )
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002404 break;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002405 esac
2406done
2407else
2408 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002409sed 's/^/| /' conftest.$ac_ext >&5
2410
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002411{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002412See \`config.log' for more details." >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002413echo "$as_me: error: C compiler cannot create executables
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002414See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002415 { (exit 77); exit 77; }; }
2416fi
2417
2418ac_exeext=$ac_cv_exeext
2419echo "$as_me:$LINENO: result: $ac_file" >&5
2420echo "${ECHO_T}$ac_file" >&6
2421
2422# Check the compiler produces executables we can run. If not, either
2423# the compiler is broken, or we cross compile.
2424echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2425echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2426# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2427# If not cross compiling, check that we can run a simple program.
2428if test "$cross_compiling" != yes; then
2429 if { ac_try='./$ac_file'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 (eval $ac_try) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2435 cross_compiling=no
2436 else
2437 if test "$cross_compiling" = maybe; then
2438 cross_compiling=yes
2439 else
2440 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002441If you meant to cross compile, use \`--host'.
2442See \`config.log' for more details." >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002443echo "$as_me: error: cannot run C compiled programs.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002444If you meant to cross compile, use \`--host'.
2445See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002446 { (exit 1); exit 1; }; }
2447 fi
2448 fi
2449fi
2450echo "$as_me:$LINENO: result: yes" >&5
2451echo "${ECHO_T}yes" >&6
2452
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002453rm -f a.out a.exe conftest$ac_cv_exeext b.out
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002454ac_clean_files=$ac_clean_files_save
2455# Check the compiler produces executables we can run. If not, either
2456# the compiler is broken, or we cross compile.
2457echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2458echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2459echo "$as_me:$LINENO: result: $cross_compiling" >&5
2460echo "${ECHO_T}$cross_compiling" >&6
2461
2462echo "$as_me:$LINENO: checking for suffix of executables" >&5
2463echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2465 (eval $ac_link) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; then
2469 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2470# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2471# work properly (i.e., refer to `conftest.exe'), while it won't with
2472# `rm'.
2473for ac_file in conftest.exe conftest conftest.*; do
2474 test -f "$ac_file" || continue
2475 case $ac_file in
2476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2477 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002478 export ac_cv_exeext
2479 break;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002480 * ) break;;
2481 esac
2482done
2483else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002484 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2485See \`config.log' for more details." >&5
2486echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2487See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002488 { (exit 1); exit 1; }; }
2489fi
2490
2491rm -f conftest$ac_cv_exeext
2492echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2493echo "${ECHO_T}$ac_cv_exeext" >&6
2494
2495rm -f conftest.$ac_ext
2496EXEEXT=$ac_cv_exeext
2497ac_exeext=$EXEEXT
2498echo "$as_me:$LINENO: checking for suffix of object files" >&5
2499echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2500if test "${ac_cv_objext+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2502else
2503 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002504/* confdefs.h. */
2505_ACEOF
2506cat confdefs.h >>conftest.$ac_ext
2507cat >>conftest.$ac_ext <<_ACEOF
2508/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002509
2510int
2511main ()
2512{
2513
2514 ;
2515 return 0;
2516}
2517_ACEOF
2518rm -f conftest.o conftest.obj
2519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520 (eval $ac_compile) 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; then
2524 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2525 case $ac_file in
2526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2527 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2528 break;;
2529 esac
2530done
2531else
2532 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002533sed 's/^/| /' conftest.$ac_ext >&5
2534
2535{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2536See \`config.log' for more details." >&5
2537echo "$as_me: error: cannot compute suffix of object files: cannot compile
2538See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002539 { (exit 1); exit 1; }; }
2540fi
2541
2542rm -f conftest.$ac_cv_objext conftest.$ac_ext
2543fi
2544echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2545echo "${ECHO_T}$ac_cv_objext" >&6
2546OBJEXT=$ac_cv_objext
2547ac_objext=$OBJEXT
2548echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2549echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2550if test "${ac_cv_c_compiler_gnu+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2552else
2553 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002554/* confdefs.h. */
2555_ACEOF
2556cat confdefs.h >>conftest.$ac_ext
2557cat >>conftest.$ac_ext <<_ACEOF
2558/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002559
2560int
2561main ()
2562{
2563#ifndef __GNUC__
2564 choke me
2565#endif
2566
2567 ;
2568 return 0;
2569}
2570_ACEOF
2571rm -f conftest.$ac_objext
2572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002573 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002574 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002575 grep -v '^ *+' conftest.er1 >conftest.err
2576 rm -f conftest.er1
2577 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 (eval $ac_try) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; } &&
2586 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 (eval $ac_try) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2592 ac_compiler_gnu=yes
2593else
2594 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002595sed 's/^/| /' conftest.$ac_ext >&5
2596
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002597ac_compiler_gnu=no
2598fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002600ac_cv_c_compiler_gnu=$ac_compiler_gnu
2601
2602fi
2603echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2604echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2605GCC=`test $ac_compiler_gnu = yes && echo yes`
2606ac_test_CFLAGS=${CFLAGS+set}
2607ac_save_CFLAGS=$CFLAGS
2608CFLAGS="-g"
2609echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2610echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2611if test "${ac_cv_prog_cc_g+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2613else
2614 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002615/* confdefs.h. */
2616_ACEOF
2617cat confdefs.h >>conftest.$ac_ext
2618cat >>conftest.$ac_ext <<_ACEOF
2619/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002620
2621int
2622main ()
2623{
2624
2625 ;
2626 return 0;
2627}
2628_ACEOF
2629rm -f conftest.$ac_objext
2630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002631 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002632 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002633 grep -v '^ *+' conftest.er1 >conftest.err
2634 rm -f conftest.er1
2635 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 (eval $ac_try) 2>&5
2641 ac_status=$?
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; } &&
2644 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; }; then
2650 ac_cv_prog_cc_g=yes
2651else
2652 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002653sed 's/^/| /' conftest.$ac_ext >&5
2654
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002655ac_cv_prog_cc_g=no
2656fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002658fi
2659echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2660echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2661if test "$ac_test_CFLAGS" = set; then
2662 CFLAGS=$ac_save_CFLAGS
2663elif test $ac_cv_prog_cc_g = yes; then
2664 if test "$GCC" = yes; then
2665 CFLAGS="-g -O2"
2666 else
2667 CFLAGS="-g"
2668 fi
2669else
2670 if test "$GCC" = yes; then
2671 CFLAGS="-O2"
2672 else
2673 CFLAGS=
2674 fi
2675fi
2676echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2677echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2678if test "${ac_cv_prog_cc_stdc+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680else
2681 ac_cv_prog_cc_stdc=no
2682ac_save_CC=$CC
2683cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002684/* confdefs.h. */
2685_ACEOF
2686cat confdefs.h >>conftest.$ac_ext
2687cat >>conftest.$ac_ext <<_ACEOF
2688/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002689#include <stdarg.h>
2690#include <stdio.h>
2691#include <sys/types.h>
2692#include <sys/stat.h>
2693/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2694struct buf { int x; };
2695FILE * (*rcsopen) (struct buf *, struct stat *, int);
2696static char *e (p, i)
2697 char **p;
2698 int i;
2699{
2700 return p[i];
2701}
2702static char *f (char * (*g) (char **, int), char **p, ...)
2703{
2704 char *s;
2705 va_list v;
2706 va_start (v,p);
2707 s = g (p, va_arg (v,int));
2708 va_end (v);
2709 return s;
2710}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002711
2712/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2713 function prototypes and stuff, but not '\xHH' hex character constants.
2714 These don't provoke an error unfortunately, instead are silently treated
2715 as 'x'. The following induces an error, until -std1 is added to get
2716 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2717 array size at least. It's necessary to write '\x00'==0 to get something
2718 that's true only with -std1. */
2719int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2720
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002721int test (int i, double x);
2722struct s1 {int (*f) (int a);};
2723struct s2 {int (*f) (double a);};
2724int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2725int argc;
2726char **argv;
2727int
2728main ()
2729{
2730return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2731 ;
2732 return 0;
2733}
2734_ACEOF
2735# Don't try gcc -ansi; that turns off useful extensions and
2736# breaks some systems' header files.
2737# AIX -qlanglvl=ansi
2738# Ultrix and OSF/1 -std1
2739# HP-UX 10.20 and later -Ae
2740# HP-UX older versions -Aa -D_HPUX_SOURCE
2741# SVR4 -Xc -D__EXTENSIONS__
2742for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2743do
2744 CC="$ac_save_CC $ac_arg"
2745 rm -f conftest.$ac_objext
2746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002747 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002748 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002749 grep -v '^ *+' conftest.er1 >conftest.err
2750 rm -f conftest.er1
2751 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 (eval $ac_try) 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; } &&
2760 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 (eval $ac_try) 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2766 ac_cv_prog_cc_stdc=$ac_arg
2767break
2768else
2769 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002770sed 's/^/| /' conftest.$ac_ext >&5
2771
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002772fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002773rm -f conftest.err conftest.$ac_objext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002774done
2775rm -f conftest.$ac_ext conftest.$ac_objext
2776CC=$ac_save_CC
2777
2778fi
2779
2780case "x$ac_cv_prog_cc_stdc" in
2781 x|xno)
2782 echo "$as_me:$LINENO: result: none needed" >&5
2783echo "${ECHO_T}none needed" >&6 ;;
2784 *)
2785 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2786echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2787 CC="$CC $ac_cv_prog_cc_stdc" ;;
2788esac
2789
2790# Some people use a C++ compiler to compile C. Since we use `exit',
2791# in C++ we need to declare it. In case someone uses the same compiler
2792# for both compiling C and C++ we need to have the C++ compiler decide
2793# the declaration of exit, since it's the most demanding environment.
2794cat >conftest.$ac_ext <<_ACEOF
2795#ifndef __cplusplus
2796 choke me
2797#endif
2798_ACEOF
2799rm -f conftest.$ac_objext
2800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002801 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002802 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002803 grep -v '^ *+' conftest.er1 >conftest.err
2804 rm -f conftest.er1
2805 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810 (eval $ac_try) 2>&5
2811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; } &&
2814 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816 (eval $ac_try) 2>&5
2817 ac_status=$?
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }; }; then
2820 for ac_declaration in \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002821 '' \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002822 'extern "C" void std::exit (int) throw (); using std::exit;' \
2823 'extern "C" void std::exit (int); using std::exit;' \
2824 'extern "C" void exit (int) throw ();' \
2825 'extern "C" void exit (int);' \
2826 'void exit (int);'
2827do
2828 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002829/* confdefs.h. */
2830_ACEOF
2831cat confdefs.h >>conftest.$ac_ext
2832cat >>conftest.$ac_ext <<_ACEOF
2833/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002834$ac_declaration
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002835#include <stdlib.h>
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002836int
2837main ()
2838{
2839exit (42);
2840 ;
2841 return 0;
2842}
2843_ACEOF
2844rm -f conftest.$ac_objext
2845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002846 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002847 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002848 grep -v '^ *+' conftest.er1 >conftest.err
2849 rm -f conftest.er1
2850 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 (eval $ac_try) 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; } &&
2859 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 (eval $ac_try) 2>&5
2862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2865 :
2866else
2867 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002868sed 's/^/| /' conftest.$ac_ext >&5
2869
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002870continue
2871fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002873 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002874/* confdefs.h. */
2875_ACEOF
2876cat confdefs.h >>conftest.$ac_ext
2877cat >>conftest.$ac_ext <<_ACEOF
2878/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002879$ac_declaration
2880int
2881main ()
2882{
2883exit (42);
2884 ;
2885 return 0;
2886}
2887_ACEOF
2888rm -f conftest.$ac_objext
2889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002890 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002891 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002892 grep -v '^ *+' conftest.er1 >conftest.err
2893 rm -f conftest.er1
2894 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899 (eval $ac_try) 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; } &&
2903 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905 (eval $ac_try) 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; }; then
2909 break
2910else
2911 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002912sed 's/^/| /' conftest.$ac_ext >&5
2913
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002914fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002916done
2917rm -f conftest*
2918if test -n "$ac_declaration"; then
2919 echo '#ifdef __cplusplus' >>confdefs.h
2920 echo $ac_declaration >>confdefs.h
2921 echo '#endif' >>confdefs.h
2922fi
2923
2924else
2925 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002926sed 's/^/| /' conftest.$ac_ext >&5
2927
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002928fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002930ac_ext=c
2931ac_cpp='$CPP $CPPFLAGS'
2932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934ac_compiler_gnu=$ac_cv_c_compiler_gnu
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002935rm -f .deps 2>/dev/null
2936mkdir .deps 2>/dev/null
2937if test -d .deps; then
2938 DEPDIR=.deps
2939else
2940 # MS-DOS does not allow filenames that begin with a dot.
2941 DEPDIR=_deps
2942fi
2943rmdir .deps 2>/dev/null
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002944
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002945
2946 ac_config_commands="$ac_config_commands depfiles"
2947
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002948
2949am_make=${MAKE-make}
2950cat > confinc << 'END'
2951doit:
2952 @echo done
2953END
2954# If we don't find an include directive, just comment out the code.
2955echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2956echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002957am__include="#"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002958am__quote=
2959_am_result=none
2960# First try GNU make style include.
2961echo "include confinc" > confmf
2962# We grep out `Entering directory' and `Leaving directory'
2963# messages which can occur if `w' ends up in MAKEFLAGS.
2964# In particular we don't look at `^make:' because GNU make might
2965# be invoked under some other name (usually "gmake"), in which
2966# case it prints its new name instead of `make'.
2967if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2968 am__include=include
2969 am__quote=
2970 _am_result=GNU
2971fi
2972# Now try BSD make style include.
2973if test "$am__include" = "#"; then
2974 echo '.include "confinc"' > confmf
2975 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2976 am__include=.include
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002977 am__quote="\""
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002978 _am_result=BSD
2979 fi
2980fi
2981
2982
2983echo "$as_me:$LINENO: result: $_am_result" >&5
2984echo "${ECHO_T}$_am_result" >&6
2985rm -f confinc confmf
2986
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002987# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2988if test "${enable_dependency_tracking+set}" = set; then
2989 enableval="$enable_dependency_tracking"
2990
2991fi;
2992if test "x$enable_dependency_tracking" != xno; then
2993 am_depcomp="$ac_aux_dir/depcomp"
2994 AMDEPBACKSLASH='\'
2995fi
2996
2997
2998if test "x$enable_dependency_tracking" != xno; then
2999 AMDEP_TRUE=
3000 AMDEP_FALSE='#'
3001else
3002 AMDEP_TRUE='#'
3003 AMDEP_FALSE=
3004fi
3005
3006
3007
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003008
3009depcc="$CC" am_compiler_list=
3010
3011echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3012echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3013if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3015else
3016 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3017 # We make a subdir and do the tests there. Otherwise we can end up
3018 # making bogus files that we don't know about and never remove. For
3019 # instance it was reported that on HP-UX the gcc test will end up
3020 # making a dummy file named `D' -- because `-MD' means `put the output
3021 # in D'.
3022 mkdir conftest.dir
3023 # Copy depcomp to subdir because otherwise we won't find it if we're
3024 # using a relative directory.
3025 cp "$am_depcomp" conftest.dir
3026 cd conftest.dir
3027
3028 am_cv_CC_dependencies_compiler_type=none
3029 if test "$am_compiler_list" = ""; then
3030 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3031 fi
3032 for depmode in $am_compiler_list; do
3033 # We need to recreate these files for each test, as the compiler may
3034 # overwrite some of them when testing with obscure command lines.
3035 # This happens at least with the AIX C compiler.
3036 echo '#include "conftest.h"' > conftest.c
3037 echo 'int i;' > conftest.h
3038 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3039
3040 case $depmode in
3041 nosideeffect)
3042 # after this tag, mechanisms are not by side-effect, so they'll
3043 # only be used when explicitly requested
3044 if test "x$enable_dependency_tracking" = xyes; then
3045 continue
3046 else
3047 break
3048 fi
3049 ;;
3050 none) break ;;
3051 esac
3052 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3053 # mode. It turns out that the SunPro C++ compiler does not properly
3054 # handle `-M -o', and we need to detect this.
3055 if depmode=$depmode \
3056 source=conftest.c object=conftest.o \
3057 depfile=conftest.Po tmpdepfile=conftest.TPo \
3058 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3059 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3060 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3061 am_cv_CC_dependencies_compiler_type=$depmode
3062 break
3063 fi
3064 done
3065
3066 cd ..
3067 rm -rf conftest.dir
3068else
3069 am_cv_CC_dependencies_compiler_type=none
3070fi
3071
3072fi
3073echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3074echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00003075CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003076
3077
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003078ac_ext=cc
3079ac_cpp='$CXXCPP $CPPFLAGS'
3080ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3083if test -n "$ac_tool_prefix"; then
3084 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3085 do
3086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3087set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3088echo "$as_me:$LINENO: checking for $ac_word" >&5
3089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3090if test "${ac_cv_prog_CXX+set}" = set; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
3092else
3093 if test -n "$CXX"; then
3094 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3095else
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH
3098do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3106 fi
3107done
3108done
3109
3110fi
3111fi
3112CXX=$ac_cv_prog_CXX
3113if test -n "$CXX"; then
3114 echo "$as_me:$LINENO: result: $CXX" >&5
3115echo "${ECHO_T}$CXX" >&6
3116else
3117 echo "$as_me:$LINENO: result: no" >&5
3118echo "${ECHO_T}no" >&6
3119fi
3120
3121 test -n "$CXX" && break
3122 done
3123fi
3124if test -z "$CXX"; then
3125 ac_ct_CXX=$CXX
3126 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3127do
3128 # Extract the first word of "$ac_prog", so it can be a program name with args.
3129set dummy $ac_prog; ac_word=$2
3130echo "$as_me:$LINENO: checking for $ac_word" >&5
3131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3132if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134else
3135 if test -n "$ac_ct_CXX"; then
3136 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3137else
3138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139for as_dir in $PATH
3140do
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3145 ac_cv_prog_ac_ct_CXX="$ac_prog"
3146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 break 2
3148 fi
3149done
3150done
3151
3152fi
3153fi
3154ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3155if test -n "$ac_ct_CXX"; then
3156 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3157echo "${ECHO_T}$ac_ct_CXX" >&6
3158else
3159 echo "$as_me:$LINENO: result: no" >&5
3160echo "${ECHO_T}no" >&6
3161fi
3162
3163 test -n "$ac_ct_CXX" && break
3164done
3165test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3166
3167 CXX=$ac_ct_CXX
3168fi
3169
3170
3171# Provide some information about the compiler.
3172echo "$as_me:$LINENO:" \
3173 "checking for C++ compiler version" >&5
3174ac_compiler=`set X $ac_compile; echo $2`
3175{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3176 (eval $ac_compiler --version </dev/null >&5) 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }
3180{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3181 (eval $ac_compiler -v </dev/null >&5) 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }
3185{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3186 (eval $ac_compiler -V </dev/null >&5) 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }
3190
3191echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3192echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3193if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195else
3196 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003197/* confdefs.h. */
3198_ACEOF
3199cat confdefs.h >>conftest.$ac_ext
3200cat >>conftest.$ac_ext <<_ACEOF
3201/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003202
3203int
3204main ()
3205{
3206#ifndef __GNUC__
3207 choke me
3208#endif
3209
3210 ;
3211 return 0;
3212}
3213_ACEOF
3214rm -f conftest.$ac_objext
3215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003216 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003217 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003218 grep -v '^ *+' conftest.er1 >conftest.err
3219 rm -f conftest.er1
3220 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225 (eval $ac_try) 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; } &&
3229 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231 (eval $ac_try) 2>&5
3232 ac_status=$?
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; }; then
3235 ac_compiler_gnu=yes
3236else
3237 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003238sed 's/^/| /' conftest.$ac_ext >&5
3239
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003240ac_compiler_gnu=no
3241fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003243ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3244
3245fi
3246echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3247echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3248GXX=`test $ac_compiler_gnu = yes && echo yes`
3249ac_test_CXXFLAGS=${CXXFLAGS+set}
3250ac_save_CXXFLAGS=$CXXFLAGS
3251CXXFLAGS="-g"
3252echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3253echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3254if test "${ac_cv_prog_cxx_g+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256else
3257 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003258/* confdefs.h. */
3259_ACEOF
3260cat confdefs.h >>conftest.$ac_ext
3261cat >>conftest.$ac_ext <<_ACEOF
3262/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003263
3264int
3265main ()
3266{
3267
3268 ;
3269 return 0;
3270}
3271_ACEOF
3272rm -f conftest.$ac_objext
3273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003274 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003275 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003276 grep -v '^ *+' conftest.er1 >conftest.err
3277 rm -f conftest.er1
3278 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283 (eval $ac_try) 2>&5
3284 ac_status=$?
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; } &&
3287 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 ac_cv_prog_cxx_g=yes
3294else
3295 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003296sed 's/^/| /' conftest.$ac_ext >&5
3297
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003298ac_cv_prog_cxx_g=no
3299fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003301fi
3302echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3303echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3304if test "$ac_test_CXXFLAGS" = set; then
3305 CXXFLAGS=$ac_save_CXXFLAGS
3306elif test $ac_cv_prog_cxx_g = yes; then
3307 if test "$GXX" = yes; then
3308 CXXFLAGS="-g -O2"
3309 else
3310 CXXFLAGS="-g"
3311 fi
3312else
3313 if test "$GXX" = yes; then
3314 CXXFLAGS="-O2"
3315 else
3316 CXXFLAGS=
3317 fi
3318fi
3319for ac_declaration in \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003320 '' \
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003321 'extern "C" void std::exit (int) throw (); using std::exit;' \
3322 'extern "C" void std::exit (int); using std::exit;' \
3323 'extern "C" void exit (int) throw ();' \
3324 'extern "C" void exit (int);' \
3325 'void exit (int);'
3326do
3327 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003328/* confdefs.h. */
3329_ACEOF
3330cat confdefs.h >>conftest.$ac_ext
3331cat >>conftest.$ac_ext <<_ACEOF
3332/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003333$ac_declaration
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003334#include <stdlib.h>
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003335int
3336main ()
3337{
3338exit (42);
3339 ;
3340 return 0;
3341}
3342_ACEOF
3343rm -f conftest.$ac_objext
3344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003345 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003346 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003347 grep -v '^ *+' conftest.er1 >conftest.err
3348 rm -f conftest.er1
3349 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; } &&
3358 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 (eval $ac_try) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 :
3365else
3366 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003367sed 's/^/| /' conftest.$ac_ext >&5
3368
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003369continue
3370fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003372 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003373/* confdefs.h. */
3374_ACEOF
3375cat confdefs.h >>conftest.$ac_ext
3376cat >>conftest.$ac_ext <<_ACEOF
3377/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003378$ac_declaration
3379int
3380main ()
3381{
3382exit (42);
3383 ;
3384 return 0;
3385}
3386_ACEOF
3387rm -f conftest.$ac_objext
3388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003389 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003390 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003391 grep -v '^ *+' conftest.er1 >conftest.err
3392 rm -f conftest.er1
3393 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003396 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 (eval $ac_try) 2>&5
3399 ac_status=$?
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }; } &&
3402 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 (eval $ac_try) 2>&5
3405 ac_status=$?
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); }; }; then
3408 break
3409else
3410 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003411sed 's/^/| /' conftest.$ac_ext >&5
3412
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003413fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003415done
3416rm -f conftest*
3417if test -n "$ac_declaration"; then
3418 echo '#ifdef __cplusplus' >>confdefs.h
3419 echo $ac_declaration >>confdefs.h
3420 echo '#endif' >>confdefs.h
3421fi
3422
3423ac_ext=c
3424ac_cpp='$CPP $CPPFLAGS'
3425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428
3429depcc="$CXX" am_compiler_list=
3430
3431echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3432echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3433if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3435else
3436 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3437 # We make a subdir and do the tests there. Otherwise we can end up
3438 # making bogus files that we don't know about and never remove. For
3439 # instance it was reported that on HP-UX the gcc test will end up
3440 # making a dummy file named `D' -- because `-MD' means `put the output
3441 # in D'.
3442 mkdir conftest.dir
3443 # Copy depcomp to subdir because otherwise we won't find it if we're
3444 # using a relative directory.
3445 cp "$am_depcomp" conftest.dir
3446 cd conftest.dir
3447
3448 am_cv_CXX_dependencies_compiler_type=none
3449 if test "$am_compiler_list" = ""; then
3450 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3451 fi
3452 for depmode in $am_compiler_list; do
3453 # We need to recreate these files for each test, as the compiler may
3454 # overwrite some of them when testing with obscure command lines.
3455 # This happens at least with the AIX C compiler.
3456 echo '#include "conftest.h"' > conftest.c
3457 echo 'int i;' > conftest.h
3458 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3459
3460 case $depmode in
3461 nosideeffect)
3462 # after this tag, mechanisms are not by side-effect, so they'll
3463 # only be used when explicitly requested
3464 if test "x$enable_dependency_tracking" = xyes; then
3465 continue
3466 else
3467 break
3468 fi
3469 ;;
3470 none) break ;;
3471 esac
3472 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3473 # mode. It turns out that the SunPro C++ compiler does not properly
3474 # handle `-M -o', and we need to detect this.
3475 if depmode=$depmode \
3476 source=conftest.c object=conftest.o \
3477 depfile=conftest.Po tmpdepfile=conftest.TPo \
3478 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3479 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3480 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3481 am_cv_CXX_dependencies_compiler_type=$depmode
3482 break
3483 fi
3484 done
3485
3486 cd ..
3487 rm -rf conftest.dir
3488else
3489 am_cv_CXX_dependencies_compiler_type=none
3490fi
3491
3492fi
3493echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3494echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3495CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3496
3497
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003498# Find a good install program. We prefer a C program (faster),
3499# so one script is as good as another. But avoid the broken or
3500# incompatible versions:
3501# SysV /etc/install, /usr/sbin/install
3502# SunOS /usr/etc/install
3503# IRIX /sbin/install
3504# AIX /bin/install
3505# AmigaOS /C/install, which installs bootblocks on floppy discs
3506# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3507# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3508# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003509# OS/2's system install, which has a completely different semantic
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003510# ./install, which can be erroneously created by make from ./install.sh.
3511echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3512echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3513if test -z "$INSTALL"; then
3514if test "${ac_cv_path_install+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3516else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518for as_dir in $PATH
3519do
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 # Account for people who put trailing slashes in PATH elements.
3523case $as_dir/ in
3524 ./ | .// | /cC/* | \
3525 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003526 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003527 /usr/ucb/* ) ;;
3528 *)
3529 # OSF1 and SCO ODT 3.0 have their own names for install.
3530 # Don't use installbsd from OSF since it installs stuff as root
3531 # by default.
3532 for ac_prog in ginstall scoinst install; do
3533 for ac_exec_ext in '' $ac_executable_extensions; do
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003534 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3535 if test $ac_prog = install &&
3536 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3537 # AIX install. It has an incompatible calling convention.
3538 :
3539 elif test $ac_prog = install &&
3540 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3541 # program-specific install script used by HP pwplus--don't use.
3542 :
3543 else
3544 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3545 break 3
3546 fi
3547 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003548 done
3549 done
3550 ;;
3551esac
3552done
3553
3554
3555fi
3556 if test "${ac_cv_path_install+set}" = set; then
3557 INSTALL=$ac_cv_path_install
3558 else
3559 # As a last resort, use the slow shell script. We don't cache a
3560 # path for INSTALL within a source directory, because that will
3561 # break other packages using the cache if that directory is
3562 # removed, or if the path is relative.
3563 INSTALL=$ac_install_sh
3564 fi
3565fi
3566echo "$as_me:$LINENO: result: $INSTALL" >&5
3567echo "${ECHO_T}$INSTALL" >&6
3568
3569# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3570# It thinks the first close brace ends the variable substitution.
3571test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3572
3573test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3574
3575test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3576
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003577echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3578echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003579set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003580if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3582else
3583 cat >conftest.make <<\_ACEOF
3584all:
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003585 @echo 'ac_maketemp="$(MAKE)"'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003586_ACEOF
3587# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3588eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3589if test -n "$ac_maketemp"; then
3590 eval ac_cv_prog_make_${ac_make}_set=yes
3591else
3592 eval ac_cv_prog_make_${ac_make}_set=no
3593fi
3594rm -f conftest.make
3595fi
3596if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3597 echo "$as_me:$LINENO: result: yes" >&5
3598echo "${ECHO_T}yes" >&6
3599 SET_MAKE=
3600else
3601 echo "$as_me:$LINENO: result: no" >&5
3602echo "${ECHO_T}no" >&6
3603 SET_MAKE="MAKE=${MAKE-make}"
3604fi
3605
3606# Check whether --enable-shared or --disable-shared was given.
3607if test "${enable_shared+set}" = set; then
3608 enableval="$enable_shared"
3609 p=${PACKAGE-default}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003610 case $enableval in
3611 yes) enable_shared=yes ;;
3612 no) enable_shared=no ;;
3613 *)
3614 enable_shared=no
3615 # Look at the argument we got. We use all the common list separators.
3616 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3617 for pkg in $enableval; do
3618 IFS="$lt_save_ifs"
3619 if test "X$pkg" = "X$p"; then
3620 enable_shared=yes
3621 fi
3622 done
3623 IFS="$lt_save_ifs"
3624 ;;
3625 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003626else
3627 enable_shared=yes
3628fi;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003629
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003630# Check whether --enable-static or --disable-static was given.
3631if test "${enable_static+set}" = set; then
3632 enableval="$enable_static"
3633 p=${PACKAGE-default}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003634 case $enableval in
3635 yes) enable_static=yes ;;
3636 no) enable_static=no ;;
3637 *)
3638 enable_static=no
3639 # Look at the argument we got. We use all the common list separators.
3640 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3641 for pkg in $enableval; do
3642 IFS="$lt_save_ifs"
3643 if test "X$pkg" = "X$p"; then
3644 enable_static=yes
3645 fi
3646 done
3647 IFS="$lt_save_ifs"
3648 ;;
3649 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003650else
3651 enable_static=yes
3652fi;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003653
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003654# Check whether --enable-fast-install or --disable-fast-install was given.
3655if test "${enable_fast_install+set}" = set; then
3656 enableval="$enable_fast_install"
3657 p=${PACKAGE-default}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003658 case $enableval in
3659 yes) enable_fast_install=yes ;;
3660 no) enable_fast_install=no ;;
3661 *)
3662 enable_fast_install=no
3663 # Look at the argument we got. We use all the common list separators.
3664 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3665 for pkg in $enableval; do
3666 IFS="$lt_save_ifs"
3667 if test "X$pkg" = "X$p"; then
3668 enable_fast_install=yes
3669 fi
3670 done
3671 IFS="$lt_save_ifs"
3672 ;;
3673 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003674else
3675 enable_fast_install=yes
3676fi;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003677
3678echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3679echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3680if test "${lt_cv_path_SED+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3682else
3683 # Loop through the user's path and test for sed and gsed.
3684# Then use that list of sed's as ones to test for truncation.
3685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686for as_dir in $PATH
3687do
3688 IFS=$as_save_IFS
3689 test -z "$as_dir" && as_dir=.
3690 for lt_ac_prog in sed gsed; do
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3693 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3694 fi
3695 done
3696 done
3697done
3698lt_ac_max=0
3699lt_ac_count=0
3700# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3701# along with /bin/sed that truncates output.
3702for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3703 test ! -f $lt_ac_sed && break
3704 cat /dev/null > conftest.in
3705 lt_ac_count=0
3706 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3707 # Check for GNU sed and select it if it is found.
3708 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3709 lt_cv_path_SED=$lt_ac_sed
3710 break
3711 fi
3712 while true; do
3713 cat conftest.in conftest.in >conftest.tmp
3714 mv conftest.tmp conftest.in
3715 cp conftest.in conftest.nl
3716 echo >>conftest.nl
3717 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3718 cmp -s conftest.out conftest.nl || break
3719 # 10000 chars as input seems more than enough
3720 test $lt_ac_count -gt 10 && break
3721 lt_ac_count=`expr $lt_ac_count + 1`
3722 if test $lt_ac_count -gt $lt_ac_max; then
3723 lt_ac_max=$lt_ac_count
3724 lt_cv_path_SED=$lt_ac_sed
3725 fi
3726 done
3727done
3728SED=$lt_cv_path_SED
3729
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003730fi
3731
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003732echo "$as_me:$LINENO: result: $SED" >&5
3733echo "${ECHO_T}$SED" >&6
3734
3735echo "$as_me:$LINENO: checking for egrep" >&5
3736echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3737if test "${ac_cv_prog_egrep+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3741 then ac_cv_prog_egrep='grep -E'
3742 else ac_cv_prog_egrep='egrep'
3743 fi
3744fi
3745echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3746echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3747 EGREP=$ac_cv_prog_egrep
3748
3749
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003750
3751# Check whether --with-gnu-ld or --without-gnu-ld was given.
3752if test "${with_gnu_ld+set}" = set; then
3753 withval="$with_gnu_ld"
3754 test "$withval" = no || with_gnu_ld=yes
3755else
3756 with_gnu_ld=no
3757fi;
3758ac_prog=ld
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003759if test "$GCC" = yes; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003760 # Check if gcc -print-prog-name=ld gives a path.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003761 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3762echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003763 case $host in
3764 *-*-mingw*)
3765 # gcc leaves a trailing carriage return which upsets mingw
3766 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3767 *)
3768 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3769 esac
3770 case $ac_prog in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003771 # Accept absolute paths.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003772 [\\/]* | ?:[\\/]*)
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003773 re_direlt='/[^/][^/]*/\.\./'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003774 # Canonicalize the pathname of ld
3775 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003776 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003777 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003778 done
3779 test -z "$LD" && LD="$ac_prog"
3780 ;;
3781 "")
3782 # If it fails, then pretend we aren't using GCC.
3783 ac_prog=ld
3784 ;;
3785 *)
3786 # If it is relative, then search for the first ld in PATH.
3787 with_gnu_ld=unknown
3788 ;;
3789 esac
3790elif test "$with_gnu_ld" = yes; then
3791 echo "$as_me:$LINENO: checking for GNU ld" >&5
3792echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3793else
3794 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3795echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3796fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003797if test "${lt_cv_path_LD+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799else
3800 if test -z "$LD"; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003801 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003802 for ac_dir in $PATH; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003803 IFS="$lt_save_ifs"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003804 test -z "$ac_dir" && ac_dir=.
3805 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003806 lt_cv_path_LD="$ac_dir/$ac_prog"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003807 # Check to see if the program is GNU ld. I'd rather use --version,
3808 # but apparently some GNU ld's only accept -v.
3809 # Break only if it was the GNU/non-GNU ld that we prefer.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003810 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3811 *GNU* | *'with BFD'*)
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003812 test "$with_gnu_ld" != no && break
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003813 ;;
3814 *)
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003815 test "$with_gnu_ld" != yes && break
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003816 ;;
3817 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003818 fi
3819 done
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003820 IFS="$lt_save_ifs"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003821else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003822 lt_cv_path_LD="$LD" # Let the user override the test with a path.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003823fi
3824fi
3825
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003826LD="$lt_cv_path_LD"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003827if test -n "$LD"; then
3828 echo "$as_me:$LINENO: result: $LD" >&5
3829echo "${ECHO_T}$LD" >&6
3830else
3831 echo "$as_me:$LINENO: result: no" >&5
3832echo "${ECHO_T}no" >&6
3833fi
3834test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3835echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3836 { (exit 1); exit 1; }; }
3837echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3838echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003839if test "${lt_cv_prog_gnu_ld+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003840 echo $ECHO_N "(cached) $ECHO_C" >&6
3841else
3842 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003843case `$LD -v 2>&1 </dev/null` in
3844*GNU* | *'with BFD'*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003845 lt_cv_prog_gnu_ld=yes
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003846 ;;
3847*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003848 lt_cv_prog_gnu_ld=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003849 ;;
3850esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003851fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003852echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3853echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3854with_gnu_ld=$lt_cv_prog_gnu_ld
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003855
3856
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003857echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3858echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3859if test "${lt_cv_ld_reload_flag+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861else
3862 lt_cv_ld_reload_flag='-r'
3863fi
3864echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3865echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3866reload_flag=$lt_cv_ld_reload_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003867case $reload_flag in
3868"" | " "*) ;;
3869*) reload_flag=" $reload_flag" ;;
3870esac
3871reload_cmds='$LD$reload_flag -o $output$reload_objs'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003872
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003873echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3874echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003875if test "${lt_cv_path_NM+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877else
3878 if test -n "$NM"; then
3879 # Let the user override the test.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003880 lt_cv_path_NM="$NM"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003881else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003883 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003884 IFS="$lt_save_ifs"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003885 test -z "$ac_dir" && ac_dir=.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003886 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3887 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003888 # Check to see if the nm accepts a BSD-compat flag.
3889 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3890 # nm: unknown option "B" ignored
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003891 # Tru64's nm complains that /dev/null is an invalid object file
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003892 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3893 */dev/null* | *'Invalid file or object type'*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003894 lt_cv_path_NM="$tmp_nm -B"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003895 break
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003896 ;;
3897 *)
3898 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3899 */dev/null*)
3900 lt_cv_path_NM="$tmp_nm -p"
3901 break
3902 ;;
3903 *)
3904 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3905 continue # so that we can try to find one that supports BSD flags
3906 ;;
3907 esac
3908 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003909 fi
3910 done
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003911 IFS="$lt_save_ifs"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003912 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003913fi
3914fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003915echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3916echo "${ECHO_T}$lt_cv_path_NM" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003917NM="$lt_cv_path_NM"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003918
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003919echo "$as_me:$LINENO: checking whether ln -s works" >&5
3920echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3921LN_S=$as_ln_s
3922if test "$LN_S" = "ln -s"; then
3923 echo "$as_me:$LINENO: result: yes" >&5
3924echo "${ECHO_T}yes" >&6
3925else
3926 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3927echo "${ECHO_T}no, using $LN_S" >&6
3928fi
3929
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003930echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3931echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3932if test "${lt_cv_deplibs_check_method+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3934else
3935 lt_cv_file_magic_cmd='$MAGIC_CMD'
3936lt_cv_file_magic_test_file=
3937lt_cv_deplibs_check_method='unknown'
3938# Need to set the preceding variable on all platforms that support
3939# interlibrary dependencies.
3940# 'none' -- dependencies not supported.
3941# `unknown' -- same as none, but documents that we really don't know.
3942# 'pass_all' -- all dependencies passed with no checks.
3943# 'test_compile' -- check by making test program.
3944# 'file_magic [[regex]]' -- check by looking for files in library path
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003945# which responds to the $file_magic_cmd with a given extended regex.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003946# If you have `file' or equivalent on your system and you're not sure
3947# whether `pass_all' will *always* work, you probably want this one.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003948
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003949case $host_os in
3950aix4* | aix5*)
3951 lt_cv_deplibs_check_method=pass_all
3952 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003953
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003954beos*)
3955 lt_cv_deplibs_check_method=pass_all
3956 ;;
3957
3958bsdi4*)
3959 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3960 lt_cv_file_magic_cmd='/usr/bin/file -L'
3961 lt_cv_file_magic_test_file=/shlib/libc.so
3962 ;;
3963
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003964cygwin*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003965 # win32_libid is a shell function defined in ltmain.sh
3966 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3967 lt_cv_file_magic_cmd='win32_libid'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003968 ;;
3969
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003970mingw* | pw32*)
3971 # Base MSYS/MinGW do not provide the 'file' command needed by
3972 # win32_libid shell function, so use a weaker test based on 'objdump'.
3973 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3974 lt_cv_file_magic_cmd='$OBJDUMP -f'
3975 ;;
3976
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003977darwin* | rhapsody*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003978 lt_cv_deplibs_check_method=pass_all
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003979 ;;
3980
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003981freebsd* | kfreebsd*-gnu)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003982 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3983 case $host_cpu in
3984 i*86 )
3985 # Not sure whether the presence of OpenBSD here was a mistake.
3986 # Let's accept both of them until this is cleared up.
3987 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3988 lt_cv_file_magic_cmd=/usr/bin/file
3989 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3990 ;;
3991 esac
3992 else
3993 lt_cv_deplibs_check_method=pass_all
3994 fi
3995 ;;
3996
3997gnu*)
3998 lt_cv_deplibs_check_method=pass_all
3999 ;;
4000
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004001hpux10.20* | hpux11*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004002 lt_cv_file_magic_cmd=/usr/bin/file
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004003 case "$host_cpu" in
4004 ia64*)
4005 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4006 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4007 ;;
4008 hppa*64*)
4009 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4010 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4011 ;;
4012 *)
4013 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4014 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4015 ;;
4016 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004017 ;;
4018
4019irix5* | irix6* | nonstopux*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004020 case $LD in
4021 *-32|*"-32 ") libmagic=32-bit;;
4022 *-n32|*"-n32 ") libmagic=N32;;
4023 *-64|*"-64 ") libmagic=64-bit;;
4024 *) libmagic=never-match;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004025 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004026 lt_cv_deplibs_check_method=pass_all
4027 ;;
4028
4029# This must be Linux ELF.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004030linux*)
4031 lt_cv_deplibs_check_method=pass_all
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004032 ;;
4033
4034netbsd*)
4035 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004037 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004039 fi
4040 ;;
4041
4042newos6*)
4043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4044 lt_cv_file_magic_cmd=/usr/bin/file
4045 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4046 ;;
4047
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004048nto-qnx*)
4049 lt_cv_deplibs_check_method=unknown
4050 ;;
4051
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004052openbsd*)
4053 lt_cv_file_magic_cmd=/usr/bin/file
4054 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4055 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4056 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4057 else
4058 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4059 fi
4060 ;;
4061
4062osf3* | osf4* | osf5*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004063 lt_cv_deplibs_check_method=pass_all
4064 ;;
4065
4066sco3.2v5*)
4067 lt_cv_deplibs_check_method=pass_all
4068 ;;
4069
4070solaris*)
4071 lt_cv_deplibs_check_method=pass_all
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004072 ;;
4073
4074sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4075 case $host_vendor in
4076 motorola)
4077 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]'
4078 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4079 ;;
4080 ncr)
4081 lt_cv_deplibs_check_method=pass_all
4082 ;;
4083 sequent)
4084 lt_cv_file_magic_cmd='/bin/file'
4085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4086 ;;
4087 sni)
4088 lt_cv_file_magic_cmd='/bin/file'
4089 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4090 lt_cv_file_magic_test_file=/lib/libc.so
4091 ;;
4092 siemens)
4093 lt_cv_deplibs_check_method=pass_all
4094 ;;
4095 esac
4096 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004097
4098sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4099 lt_cv_deplibs_check_method=pass_all
4100 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004101esac
4102
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004103fi
4104echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4105echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4106file_magic_cmd=$lt_cv_file_magic_cmd
4107deplibs_check_method=$lt_cv_deplibs_check_method
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004108test -z "$deplibs_check_method" && deplibs_check_method=unknown
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004109
4110
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004111
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004112
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004113# If no C compiler was specified, use CC.
4114LTCC=${LTCC-"$CC"}
4115
4116# Allow CC to be a program name with arguments.
4117compiler=$CC
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004118
4119
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004120# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4121if test "${enable_libtool_lock+set}" = set; then
4122 enableval="$enable_libtool_lock"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004123
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004124fi;
4125test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004126
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004127# Some flags need to be propagated to the compiler or linker for good
4128# libtool support.
4129case $host in
4130ia64-*-hpux*)
4131 # Find out which ABI we are using.
4132 echo 'int i;' > conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134 (eval $ac_compile) 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004138 case `/usr/bin/file conftest.$ac_objext` in
4139 *ELF-32*)
4140 HPUX_IA64_MODE="32"
4141 ;;
4142 *ELF-64*)
4143 HPUX_IA64_MODE="64"
4144 ;;
4145 esac
4146 fi
4147 rm -rf conftest*
4148 ;;
4149*-*-irix6*)
4150 # Find out which ABI we are using.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004151 echo '#line 4151 "configure"' > conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4153 (eval $ac_compile) 2>&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004156 (exit $ac_status); }; then
4157 if test "$lt_cv_prog_gnu_ld" = yes; then
4158 case `/usr/bin/file conftest.$ac_objext` in
4159 *32-bit*)
4160 LD="${LD-ld} -melf32bsmip"
4161 ;;
4162 *N32*)
4163 LD="${LD-ld} -melf32bmipn32"
4164 ;;
4165 *64-bit*)
4166 LD="${LD-ld} -melf64bmip"
4167 ;;
4168 esac
4169 else
4170 case `/usr/bin/file conftest.$ac_objext` in
4171 *32-bit*)
4172 LD="${LD-ld} -32"
4173 ;;
4174 *N32*)
4175 LD="${LD-ld} -n32"
4176 ;;
4177 *64-bit*)
4178 LD="${LD-ld} -64"
4179 ;;
4180 esac
4181 fi
4182 fi
4183 rm -rf conftest*
4184 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004185
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004186x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4187 # Find out which ABI we are using.
4188 echo 'int i;' > conftest.$ac_ext
4189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4190 (eval $ac_compile) 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; then
4194 case "`/usr/bin/file conftest.o`" in
4195 *32-bit*)
4196 case $host in
4197 x86_64-*linux*)
4198 LD="${LD-ld} -m elf_i386"
4199 ;;
4200 ppc64-*linux*|powerpc64-*linux*)
4201 LD="${LD-ld} -m elf32ppclinux"
4202 ;;
4203 s390x-*linux*)
4204 LD="${LD-ld} -m elf_s390"
4205 ;;
4206 sparc64-*linux*)
4207 LD="${LD-ld} -m elf32_sparc"
4208 ;;
4209 esac
4210 ;;
4211 *64-bit*)
4212 case $host in
4213 x86_64-*linux*)
4214 LD="${LD-ld} -m elf_x86_64"
4215 ;;
4216 ppc*-*linux*|powerpc*-*linux*)
4217 LD="${LD-ld} -m elf64ppc"
4218 ;;
4219 s390*-*linux*)
4220 LD="${LD-ld} -m elf64_s390"
4221 ;;
4222 sparc*-*linux*)
4223 LD="${LD-ld} -m elf64_sparc"
4224 ;;
4225 esac
4226 ;;
4227 esac
4228 fi
4229 rm -rf conftest*
4230 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004231
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004232*-*-sco3.2v5*)
4233 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4234 SAVE_CFLAGS="$CFLAGS"
4235 CFLAGS="$CFLAGS -belf"
4236 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4237echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4238if test "${lt_cv_cc_needs_belf+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240else
4241 ac_ext=c
4242ac_cpp='$CPP $CPPFLAGS'
4243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245ac_compiler_gnu=$ac_cv_c_compiler_gnu
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004246
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004247 cat >conftest.$ac_ext <<_ACEOF
4248/* confdefs.h. */
4249_ACEOF
4250cat confdefs.h >>conftest.$ac_ext
4251cat >>conftest.$ac_ext <<_ACEOF
4252/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004253
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004254int
4255main ()
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004256{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004257
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004258 ;
4259 return 0;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004260}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004261_ACEOF
4262rm -f conftest.$ac_objext conftest$ac_exeext
4263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004264 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004265 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004266 grep -v '^ *+' conftest.er1 >conftest.err
4267 rm -f conftest.er1
4268 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 (eval $ac_try) 2>&5
4274 ac_status=$?
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; } &&
4277 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 (eval $ac_try) 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 lt_cv_cc_needs_belf=yes
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004284else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004285 echo "$as_me: failed program was:" >&5
4286sed 's/^/| /' conftest.$ac_ext >&5
4287
4288lt_cv_cc_needs_belf=no
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004289fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004290rm -f conftest.err conftest.$ac_objext \
4291 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004292 ac_ext=c
4293ac_cpp='$CPP $CPPFLAGS'
4294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004298fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004299echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4300echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4301 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4302 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4303 CFLAGS="$SAVE_CFLAGS"
4304 fi
4305 ;;
4306
4307esac
4308
4309need_locks="$enable_libtool_lock"
4310
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004311
4312ac_ext=c
4313ac_cpp='$CPP $CPPFLAGS'
4314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4318echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4319# On Suns, sometimes $CPP names a directory.
4320if test -n "$CPP" && test -d "$CPP"; then
4321 CPP=
4322fi
4323if test -z "$CPP"; then
4324 if test "${ac_cv_prog_CPP+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4326else
4327 # Double quotes because CPP needs to be expanded
4328 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4329 do
4330 ac_preproc_ok=false
4331for ac_c_preproc_warn_flag in '' yes
4332do
4333 # Use a header file that comes with gcc, so configuring glibc
4334 # with a fresh cross-compiler works.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336 # <limits.h> exists even on freestanding compilers.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004337 # On the NeXT, cc -E runs the code through the compiler's parser,
4338 # not just through cpp. "Syntax error" is here to catch this case.
4339 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004340/* confdefs.h. */
4341_ACEOF
4342cat confdefs.h >>conftest.$ac_ext
4343cat >>conftest.$ac_ext <<_ACEOF
4344/* end confdefs.h. */
4345#ifdef __STDC__
4346# include <limits.h>
4347#else
4348# include <assert.h>
4349#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004350 Syntax error
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004351_ACEOF
4352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4354 ac_status=$?
4355 grep -v '^ *+' conftest.er1 >conftest.err
4356 rm -f conftest.er1
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } >/dev/null; then
4360 if test -s conftest.err; then
4361 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004363 else
4364 ac_cpp_err=
4365 fi
4366else
4367 ac_cpp_err=yes
4368fi
4369if test -z "$ac_cpp_err"; then
4370 :
4371else
4372 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004373sed 's/^/| /' conftest.$ac_ext >&5
4374
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004375 # Broken: fails on valid input.
4376continue
4377fi
4378rm -f conftest.err conftest.$ac_ext
4379
4380 # OK, works on sane cases. Now check whether non-existent headers
4381 # can be detected and how.
4382 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004383/* confdefs.h. */
4384_ACEOF
4385cat confdefs.h >>conftest.$ac_ext
4386cat >>conftest.$ac_ext <<_ACEOF
4387/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004388#include <ac_nonexistent.h>
4389_ACEOF
4390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4392 ac_status=$?
4393 grep -v '^ *+' conftest.er1 >conftest.err
4394 rm -f conftest.er1
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } >/dev/null; then
4398 if test -s conftest.err; then
4399 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004401 else
4402 ac_cpp_err=
4403 fi
4404else
4405 ac_cpp_err=yes
4406fi
4407if test -z "$ac_cpp_err"; then
4408 # Broken: success on invalid input.
4409continue
4410else
4411 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004412sed 's/^/| /' conftest.$ac_ext >&5
4413
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004414 # Passes both tests.
4415ac_preproc_ok=:
4416break
4417fi
4418rm -f conftest.err conftest.$ac_ext
4419
4420done
4421# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4422rm -f conftest.err conftest.$ac_ext
4423if $ac_preproc_ok; then
4424 break
4425fi
4426
4427 done
4428 ac_cv_prog_CPP=$CPP
4429
4430fi
4431 CPP=$ac_cv_prog_CPP
4432else
4433 ac_cv_prog_CPP=$CPP
4434fi
4435echo "$as_me:$LINENO: result: $CPP" >&5
4436echo "${ECHO_T}$CPP" >&6
4437ac_preproc_ok=false
4438for ac_c_preproc_warn_flag in '' yes
4439do
4440 # Use a header file that comes with gcc, so configuring glibc
4441 # with a fresh cross-compiler works.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4443 # <limits.h> exists even on freestanding compilers.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004444 # On the NeXT, cc -E runs the code through the compiler's parser,
4445 # not just through cpp. "Syntax error" is here to catch this case.
4446 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004447/* confdefs.h. */
4448_ACEOF
4449cat confdefs.h >>conftest.$ac_ext
4450cat >>conftest.$ac_ext <<_ACEOF
4451/* end confdefs.h. */
4452#ifdef __STDC__
4453# include <limits.h>
4454#else
4455# include <assert.h>
4456#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004457 Syntax error
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004458_ACEOF
4459if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4461 ac_status=$?
4462 grep -v '^ *+' conftest.er1 >conftest.err
4463 rm -f conftest.er1
4464 cat conftest.err >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } >/dev/null; then
4467 if test -s conftest.err; then
4468 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004470 else
4471 ac_cpp_err=
4472 fi
4473else
4474 ac_cpp_err=yes
4475fi
4476if test -z "$ac_cpp_err"; then
4477 :
4478else
4479 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004480sed 's/^/| /' conftest.$ac_ext >&5
4481
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004482 # Broken: fails on valid input.
4483continue
4484fi
4485rm -f conftest.err conftest.$ac_ext
4486
4487 # OK, works on sane cases. Now check whether non-existent headers
4488 # can be detected and how.
4489 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004490/* confdefs.h. */
4491_ACEOF
4492cat confdefs.h >>conftest.$ac_ext
4493cat >>conftest.$ac_ext <<_ACEOF
4494/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004495#include <ac_nonexistent.h>
4496_ACEOF
4497if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4499 ac_status=$?
4500 grep -v '^ *+' conftest.er1 >conftest.err
4501 rm -f conftest.er1
4502 cat conftest.err >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } >/dev/null; then
4505 if test -s conftest.err; then
4506 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004508 else
4509 ac_cpp_err=
4510 fi
4511else
4512 ac_cpp_err=yes
4513fi
4514if test -z "$ac_cpp_err"; then
4515 # Broken: success on invalid input.
4516continue
4517else
4518 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004519sed 's/^/| /' conftest.$ac_ext >&5
4520
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004521 # Passes both tests.
4522ac_preproc_ok=:
4523break
4524fi
4525rm -f conftest.err conftest.$ac_ext
4526
4527done
4528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4529rm -f conftest.err conftest.$ac_ext
4530if $ac_preproc_ok; then
4531 :
4532else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004533 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4534See \`config.log' for more details." >&5
4535echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4536See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004537 { (exit 1); exit 1; }; }
4538fi
4539
4540ac_ext=c
4541ac_cpp='$CPP $CPPFLAGS'
4542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545
4546
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004547echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4548echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4549if test "${ac_cv_header_stdc+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4551else
4552 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004553/* confdefs.h. */
4554_ACEOF
4555cat confdefs.h >>conftest.$ac_ext
4556cat >>conftest.$ac_ext <<_ACEOF
4557/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004558#include <stdlib.h>
4559#include <stdarg.h>
4560#include <string.h>
4561#include <float.h>
4562
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004563int
4564main ()
4565{
4566
4567 ;
4568 return 0;
4569}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004570_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004571rm -f conftest.$ac_objext
4572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004573 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004574 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004575 grep -v '^ *+' conftest.er1 >conftest.err
4576 rm -f conftest.er1
4577 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004579 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 (eval $ac_try) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; } &&
4586 { ac_try='test -s conftest.$ac_objext'
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 (eval $ac_try) 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004592 ac_cv_header_stdc=yes
4593else
4594 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004595sed 's/^/| /' conftest.$ac_ext >&5
4596
4597ac_cv_header_stdc=no
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004598fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004600
4601if test $ac_cv_header_stdc = yes; then
4602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4603 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004604/* confdefs.h. */
4605_ACEOF
4606cat confdefs.h >>conftest.$ac_ext
4607cat >>conftest.$ac_ext <<_ACEOF
4608/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004609#include <string.h>
4610
4611_ACEOF
4612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613 $EGREP "memchr" >/dev/null 2>&1; then
4614 :
4615else
4616 ac_cv_header_stdc=no
4617fi
4618rm -f conftest*
4619
4620fi
4621
4622if test $ac_cv_header_stdc = yes; then
4623 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4624 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004625/* confdefs.h. */
4626_ACEOF
4627cat confdefs.h >>conftest.$ac_ext
4628cat >>conftest.$ac_ext <<_ACEOF
4629/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004630#include <stdlib.h>
4631
4632_ACEOF
4633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4634 $EGREP "free" >/dev/null 2>&1; then
4635 :
4636else
4637 ac_cv_header_stdc=no
4638fi
4639rm -f conftest*
4640
4641fi
4642
4643if test $ac_cv_header_stdc = yes; then
4644 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4645 if test "$cross_compiling" = yes; then
4646 :
4647else
4648 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004649/* confdefs.h. */
4650_ACEOF
4651cat confdefs.h >>conftest.$ac_ext
4652cat >>conftest.$ac_ext <<_ACEOF
4653/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004654#include <ctype.h>
4655#if ((' ' & 0x0FF) == 0x020)
4656# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4657# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4658#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004659# define ISLOWER(c) \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004660 (('a' <= (c) && (c) <= 'i') \
4661 || ('j' <= (c) && (c) <= 'r') \
4662 || ('s' <= (c) && (c) <= 'z'))
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004663# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4664#endif
4665
4666#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4667int
4668main ()
4669{
4670 int i;
4671 for (i = 0; i < 256; i++)
4672 if (XOR (islower (i), ISLOWER (i))
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004673 || toupper (i) != TOUPPER (i))
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004674 exit(2);
4675 exit (0);
4676}
4677_ACEOF
4678rm -f conftest$ac_exeext
4679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4680 (eval $ac_link) 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 (eval $ac_try) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }; then
4689 :
4690else
4691 echo "$as_me: program exited with status $ac_status" >&5
4692echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004693sed 's/^/| /' conftest.$ac_ext >&5
4694
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004695( exit $ac_status )
4696ac_cv_header_stdc=no
4697fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004698rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004699fi
4700fi
4701fi
4702echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4703echo "${ECHO_T}$ac_cv_header_stdc" >&6
4704if test $ac_cv_header_stdc = yes; then
4705
4706cat >>confdefs.h <<\_ACEOF
4707#define STDC_HEADERS 1
4708_ACEOF
4709
4710fi
4711
4712# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004723 inttypes.h stdint.h unistd.h
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004724do
4725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4726echo "$as_me:$LINENO: checking for $ac_header" >&5
4727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4728if eval "test \"\${$as_ac_Header+set}\" = set"; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4730else
4731 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004732/* confdefs.h. */
4733_ACEOF
4734cat confdefs.h >>conftest.$ac_ext
4735cat >>conftest.$ac_ext <<_ACEOF
4736/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004737$ac_includes_default
4738
4739#include <$ac_header>
4740_ACEOF
4741rm -f conftest.$ac_objext
4742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004743 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004744 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004745 grep -v '^ *+' conftest.er1 >conftest.err
4746 rm -f conftest.er1
4747 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 (eval $ac_try) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; } &&
4756 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 (eval $ac_try) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; }; then
4762 eval "$as_ac_Header=yes"
4763else
4764 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004765sed 's/^/| /' conftest.$ac_ext >&5
4766
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004767eval "$as_ac_Header=no"
4768fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004770fi
4771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4773if test `eval echo '${'$as_ac_Header'}'` = yes; then
4774 cat >>confdefs.h <<_ACEOF
4775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4776_ACEOF
4777
4778fi
4779
4780done
4781
4782
4783
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004784for ac_header in dlfcn.h
4785do
4786as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4787if eval "test \"\${$as_ac_Header+set}\" = set"; then
4788 echo "$as_me:$LINENO: checking for $ac_header" >&5
4789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4790if eval "test \"\${$as_ac_Header+set}\" = set"; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4792fi
4793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4794echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4795else
4796 # Is the header compilable?
4797echo "$as_me:$LINENO: checking $ac_header usability" >&5
4798echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4799cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004800/* confdefs.h. */
4801_ACEOF
4802cat confdefs.h >>conftest.$ac_ext
4803cat >>conftest.$ac_ext <<_ACEOF
4804/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004805$ac_includes_default
4806#include <$ac_header>
4807_ACEOF
4808rm -f conftest.$ac_objext
4809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004810 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004811 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004812 grep -v '^ *+' conftest.er1 >conftest.err
4813 rm -f conftest.er1
4814 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 (eval $ac_try) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; } &&
4823 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 ac_header_compiler=yes
4830else
4831 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004832sed 's/^/| /' conftest.$ac_ext >&5
4833
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004834ac_header_compiler=no
4835fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004837echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4838echo "${ECHO_T}$ac_header_compiler" >&6
4839
4840# Is the header present?
4841echo "$as_me:$LINENO: checking $ac_header presence" >&5
4842echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4843cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004844/* confdefs.h. */
4845_ACEOF
4846cat confdefs.h >>conftest.$ac_ext
4847cat >>conftest.$ac_ext <<_ACEOF
4848/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004849#include <$ac_header>
4850_ACEOF
4851if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4853 ac_status=$?
4854 grep -v '^ *+' conftest.er1 >conftest.err
4855 rm -f conftest.er1
4856 cat conftest.err >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } >/dev/null; then
4859 if test -s conftest.err; then
4860 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004862 else
4863 ac_cpp_err=
4864 fi
4865else
4866 ac_cpp_err=yes
4867fi
4868if test -z "$ac_cpp_err"; then
4869 ac_header_preproc=yes
4870else
4871 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004872sed 's/^/| /' conftest.$ac_ext >&5
4873
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004874 ac_header_preproc=no
4875fi
4876rm -f conftest.err conftest.$ac_ext
4877echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4878echo "${ECHO_T}$ac_header_preproc" >&6
4879
4880# So? What about this header?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004881case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4882 yes:no: )
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4884echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4886echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4887 ac_header_preproc=yes
mostang.com!davidm046362a2003-12-05 06:42:28 +00004888 ;;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004889 no:yes:* )
mostang.com!davidm046362a2003-12-05 06:42:28 +00004890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4891echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4893echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4895echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4897echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +00004898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4901echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +00004902 (
4903 cat <<\_ASBOX
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004904## ----------------------------------------- ##
4905## Report this to libunwind@linux.hpl.hp.com ##
4906## ----------------------------------------- ##
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004907_ASBOX
4908 ) |
4909 sed "s/^/$as_me: WARNING: /" >&2
4910 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004911esac
4912echo "$as_me:$LINENO: checking for $ac_header" >&5
4913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4914if eval "test \"\${$as_ac_Header+set}\" = set"; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4916else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004917 eval "$as_ac_Header=\$ac_header_preproc"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004918fi
4919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4920echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4921
4922fi
4923if test `eval echo '${'$as_ac_Header'}'` = yes; then
4924 cat >>confdefs.h <<_ACEOF
4925#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4926_ACEOF
4927
4928fi
4929
4930done
4931
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004932ac_ext=cc
4933ac_cpp='$CXXCPP $CPPFLAGS'
4934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4937echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4938echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4939if test -z "$CXXCPP"; then
4940 if test "${ac_cv_prog_CXXCPP+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004943 # Double quotes because CXXCPP needs to be expanded
4944 for CXXCPP in "$CXX -E" "/lib/cpp"
4945 do
4946 ac_preproc_ok=false
4947for ac_cxx_preproc_warn_flag in '' yes
4948do
4949 # Use a header file that comes with gcc, so configuring glibc
4950 # with a fresh cross-compiler works.
4951 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4952 # <limits.h> exists even on freestanding compilers.
4953 # On the NeXT, cc -E runs the code through the compiler's parser,
4954 # not just through cpp. "Syntax error" is here to catch this case.
4955 cat >conftest.$ac_ext <<_ACEOF
4956/* confdefs.h. */
4957_ACEOF
4958cat confdefs.h >>conftest.$ac_ext
4959cat >>conftest.$ac_ext <<_ACEOF
4960/* end confdefs.h. */
4961#ifdef __STDC__
4962# include <limits.h>
4963#else
4964# include <assert.h>
4965#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004966 Syntax error
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004967_ACEOF
4968if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4970 ac_status=$?
4971 grep -v '^ *+' conftest.er1 >conftest.err
4972 rm -f conftest.er1
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } >/dev/null; then
4976 if test -s conftest.err; then
4977 ac_cpp_err=$ac_cxx_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004978 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004979 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004980 ac_cpp_err=
4981 fi
4982else
4983 ac_cpp_err=yes
4984fi
4985if test -z "$ac_cpp_err"; then
4986 :
4987else
4988 echo "$as_me: failed program was:" >&5
4989sed 's/^/| /' conftest.$ac_ext >&5
4990
4991 # Broken: fails on valid input.
4992continue
4993fi
4994rm -f conftest.err conftest.$ac_ext
4995
4996 # OK, works on sane cases. Now check whether non-existent headers
4997 # can be detected and how.
4998 cat >conftest.$ac_ext <<_ACEOF
4999/* confdefs.h. */
5000_ACEOF
5001cat confdefs.h >>conftest.$ac_ext
5002cat >>conftest.$ac_ext <<_ACEOF
5003/* end confdefs.h. */
5004#include <ac_nonexistent.h>
5005_ACEOF
5006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5008 ac_status=$?
5009 grep -v '^ *+' conftest.er1 >conftest.err
5010 rm -f conftest.er1
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } >/dev/null; then
5014 if test -s conftest.err; then
5015 ac_cpp_err=$ac_cxx_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005016 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005017 else
5018 ac_cpp_err=
5019 fi
5020else
5021 ac_cpp_err=yes
5022fi
5023if test -z "$ac_cpp_err"; then
5024 # Broken: success on invalid input.
5025continue
5026else
5027 echo "$as_me: failed program was:" >&5
5028sed 's/^/| /' conftest.$ac_ext >&5
5029
5030 # Passes both tests.
5031ac_preproc_ok=:
5032break
5033fi
5034rm -f conftest.err conftest.$ac_ext
5035
5036done
5037# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5038rm -f conftest.err conftest.$ac_ext
5039if $ac_preproc_ok; then
5040 break
5041fi
5042
5043 done
5044 ac_cv_prog_CXXCPP=$CXXCPP
5045
5046fi
5047 CXXCPP=$ac_cv_prog_CXXCPP
5048else
5049 ac_cv_prog_CXXCPP=$CXXCPP
5050fi
5051echo "$as_me:$LINENO: result: $CXXCPP" >&5
5052echo "${ECHO_T}$CXXCPP" >&6
5053ac_preproc_ok=false
5054for ac_cxx_preproc_warn_flag in '' yes
5055do
5056 # Use a header file that comes with gcc, so configuring glibc
5057 # with a fresh cross-compiler works.
5058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5059 # <limits.h> exists even on freestanding compilers.
5060 # On the NeXT, cc -E runs the code through the compiler's parser,
5061 # not just through cpp. "Syntax error" is here to catch this case.
5062 cat >conftest.$ac_ext <<_ACEOF
5063/* confdefs.h. */
5064_ACEOF
5065cat confdefs.h >>conftest.$ac_ext
5066cat >>conftest.$ac_ext <<_ACEOF
5067/* end confdefs.h. */
5068#ifdef __STDC__
5069# include <limits.h>
5070#else
5071# include <assert.h>
5072#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005073 Syntax error
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005074_ACEOF
5075if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } >/dev/null; then
5083 if test -s conftest.err; then
5084 ac_cpp_err=$ac_cxx_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005085 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005086 else
5087 ac_cpp_err=
5088 fi
5089else
5090 ac_cpp_err=yes
5091fi
5092if test -z "$ac_cpp_err"; then
5093 :
5094else
5095 echo "$as_me: failed program was:" >&5
5096sed 's/^/| /' conftest.$ac_ext >&5
5097
5098 # Broken: fails on valid input.
5099continue
5100fi
5101rm -f conftest.err conftest.$ac_ext
5102
5103 # OK, works on sane cases. Now check whether non-existent headers
5104 # can be detected and how.
5105 cat >conftest.$ac_ext <<_ACEOF
5106/* confdefs.h. */
5107_ACEOF
5108cat confdefs.h >>conftest.$ac_ext
5109cat >>conftest.$ac_ext <<_ACEOF
5110/* end confdefs.h. */
5111#include <ac_nonexistent.h>
5112_ACEOF
5113if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5115 ac_status=$?
5116 grep -v '^ *+' conftest.er1 >conftest.err
5117 rm -f conftest.er1
5118 cat conftest.err >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } >/dev/null; then
5121 if test -s conftest.err; then
5122 ac_cpp_err=$ac_cxx_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005123 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005124 else
5125 ac_cpp_err=
5126 fi
5127else
5128 ac_cpp_err=yes
5129fi
5130if test -z "$ac_cpp_err"; then
5131 # Broken: success on invalid input.
5132continue
5133else
5134 echo "$as_me: failed program was:" >&5
5135sed 's/^/| /' conftest.$ac_ext >&5
5136
5137 # Passes both tests.
5138ac_preproc_ok=:
5139break
5140fi
5141rm -f conftest.err conftest.$ac_ext
5142
5143done
5144# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5145rm -f conftest.err conftest.$ac_ext
5146if $ac_preproc_ok; then
5147 :
5148else
5149 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5150See \`config.log' for more details." >&5
5151echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5152See \`config.log' for more details." >&2;}
5153 { (exit 1); exit 1; }; }
5154fi
5155
5156ac_ext=cc
5157ac_cpp='$CXXCPP $CPPFLAGS'
5158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5161
5162
5163ac_ext=f
5164ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5165ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5166ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5167if test -n "$ac_tool_prefix"; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005168 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005169 do
5170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5171set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5172echo "$as_me:$LINENO: checking for $ac_word" >&5
5173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5174if test "${ac_cv_prog_F77+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5176else
5177 if test -n "$F77"; then
5178 ac_cv_prog_F77="$F77" # Let the user override the test.
5179else
5180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181for as_dir in $PATH
5182do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5190 fi
5191done
5192done
5193
5194fi
5195fi
5196F77=$ac_cv_prog_F77
5197if test -n "$F77"; then
5198 echo "$as_me:$LINENO: result: $F77" >&5
5199echo "${ECHO_T}$F77" >&6
5200else
5201 echo "$as_me:$LINENO: result: no" >&5
5202echo "${ECHO_T}no" >&6
5203fi
5204
5205 test -n "$F77" && break
5206 done
5207fi
5208if test -z "$F77"; then
5209 ac_ct_F77=$F77
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005210 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005211do
5212 # Extract the first word of "$ac_prog", so it can be a program name with args.
5213set dummy $ac_prog; ac_word=$2
5214echo "$as_me:$LINENO: checking for $ac_word" >&5
5215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5216if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5218else
5219 if test -n "$ac_ct_F77"; then
5220 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5221else
5222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223for as_dir in $PATH
5224do
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5229 ac_cv_prog_ac_ct_F77="$ac_prog"
5230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5232 fi
5233done
5234done
5235
5236fi
5237fi
5238ac_ct_F77=$ac_cv_prog_ac_ct_F77
5239if test -n "$ac_ct_F77"; then
5240 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5241echo "${ECHO_T}$ac_ct_F77" >&6
5242else
5243 echo "$as_me:$LINENO: result: no" >&5
5244echo "${ECHO_T}no" >&6
5245fi
5246
5247 test -n "$ac_ct_F77" && break
5248done
5249
5250 F77=$ac_ct_F77
5251fi
5252
5253
5254# Provide some information about the compiler.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005255echo "$as_me:5255:" \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005256 "checking for Fortran 77 compiler version" >&5
5257ac_compiler=`set X $ac_compile; echo $2`
5258{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5259 (eval $ac_compiler --version </dev/null >&5) 2>&5
5260 ac_status=$?
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }
5263{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5264 (eval $ac_compiler -v </dev/null >&5) 2>&5
5265 ac_status=$?
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }
5268{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5269 (eval $ac_compiler -V </dev/null >&5) 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005273rm -f a.out
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005274
5275# If we don't use `.F' as extension, the preprocessor is not run on the
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005276# input file. (Note that this only needs to work for GNU compilers.)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005277ac_save_ext=$ac_ext
5278ac_ext=F
5279echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5280echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5281if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283else
5284 cat >conftest.$ac_ext <<_ACEOF
5285 program main
5286#ifndef __GNUC__
5287 choke me
5288#endif
5289
5290 end
5291_ACEOF
5292rm -f conftest.$ac_objext
5293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005294 (eval $ac_compile) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005295 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005296 grep -v '^ *+' conftest.er1 >conftest.err
5297 rm -f conftest.er1
5298 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005301 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 (eval $ac_try) 2>&5
5304 ac_status=$?
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; } &&
5307 { ac_try='test -s conftest.$ac_objext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 (eval $ac_try) 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 ac_compiler_gnu=yes
5314else
5315 echo "$as_me: failed program was:" >&5
5316sed 's/^/| /' conftest.$ac_ext >&5
5317
5318ac_compiler_gnu=no
5319fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005321ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5322
5323fi
5324echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5325echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5326ac_ext=$ac_save_ext
5327ac_test_FFLAGS=${FFLAGS+set}
5328ac_save_FFLAGS=$FFLAGS
5329FFLAGS=
5330echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5331echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5332if test "${ac_cv_prog_f77_g+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5334else
5335 FFLAGS=-g
5336cat >conftest.$ac_ext <<_ACEOF
5337 program main
5338
5339 end
5340_ACEOF
5341rm -f conftest.$ac_objext
5342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005343 (eval $ac_compile) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005344 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005345 grep -v '^ *+' conftest.er1 >conftest.err
5346 rm -f conftest.er1
5347 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005350 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 (eval $ac_try) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; } &&
5356 { ac_try='test -s conftest.$ac_objext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 (eval $ac_try) 2>&5
5359 ac_status=$?
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5362 ac_cv_prog_f77_g=yes
5363else
5364 echo "$as_me: failed program was:" >&5
5365sed 's/^/| /' conftest.$ac_ext >&5
5366
5367ac_cv_prog_f77_g=no
5368fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005370
5371fi
5372echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5373echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5374if test "$ac_test_FFLAGS" = set; then
5375 FFLAGS=$ac_save_FFLAGS
5376elif test $ac_cv_prog_f77_g = yes; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005377 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005378 FFLAGS="-g -O2"
5379 else
5380 FFLAGS="-g"
5381 fi
5382else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005383 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005384 FFLAGS="-O2"
5385 else
5386 FFLAGS=
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005387 fi
5388fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005389
5390G77=`test $ac_compiler_gnu = yes && echo yes`
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005391ac_ext=c
5392ac_cpp='$CPP $CPPFLAGS'
5393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395ac_compiler_gnu=$ac_cv_c_compiler_gnu
5396
5397
5398
5399# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5400
5401# find the maximum length of command line arguments
5402echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5403echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5404if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5406else
5407 i=0
5408 testring="ABCD"
5409
5410 case $build_os in
5411 msdosdjgpp*)
5412 # On DJGPP, this test can blow up pretty badly due to problems in libc
5413 # (any single argument exceeding 2000 bytes causes a buffer overrun
5414 # during glob expansion). Even if it were fixed, the result of this
5415 # check would be larger than it should be.
5416 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5417 ;;
5418
5419 gnu*)
5420 # Under GNU Hurd, this test is not required because there is
5421 # no limit to the length of command line arguments.
5422 # Libtool will interpret -1 as no limit whatsoever
5423 lt_cv_sys_max_cmd_len=-1;
5424 ;;
5425
5426 cygwin* | mingw*)
5427 # On Win9x/ME, this test blows up -- it succeeds, but takes
5428 # about 5 minutes as the teststring grows exponentially.
5429 # Worse, since 9x/ME are not pre-emptively multitasking,
5430 # you end up with a "frozen" computer, even though with patience
5431 # the test eventually succeeds (with a max line length of 256k).
5432 # Instead, let's just punt: use the minimum linelength reported by
5433 # all of the supported platforms: 8192 (on NT/2K/XP).
5434 lt_cv_sys_max_cmd_len=8192;
5435 ;;
5436
5437 amigaos*)
5438 # On AmigaOS with pdksh, this test takes hours, literally.
5439 # So we just punt and use a minimum line length of 8192.
5440 lt_cv_sys_max_cmd_len=8192;
5441 ;;
5442
5443 *)
5444 # If test is not a shell built-in, we'll probably end up computing a
5445 # maximum length that is only half of the actual maximum length, but
5446 # we can't tell.
5447 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5448 = "XX$testring") >/dev/null 2>&1 &&
5449 new_result=`expr "X$testring" : ".*" 2>&1` &&
5450 lt_cv_sys_max_cmd_len=$new_result &&
5451 test $i != 17 # 1/2 MB should be enough
5452 do
5453 i=`expr $i + 1`
5454 testring=$testring$testring
5455 done
5456 testring=
5457 # Add a significant safety factor because C++ compilers can tack on massive
5458 # amounts of additional arguments before passing them to the linker.
5459 # It appears as though 1/2 is a usable value.
5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5461 ;;
5462 esac
5463
5464fi
5465
5466if test -n $lt_cv_sys_max_cmd_len ; then
5467 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5468echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5469else
5470 echo "$as_me:$LINENO: result: none" >&5
5471echo "${ECHO_T}none" >&6
5472fi
5473
5474
5475
5476
5477# Check for command to grab the raw symbol name followed by C symbol from nm.
5478echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5479echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5480if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482else
5483
5484# These are sane defaults that work on at least a few old systems.
5485# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5486
5487# Character class describing NM global symbol codes.
5488symcode='[BCDEGRST]'
5489
5490# Regexp to match symbols that can be accessed directly from C.
5491sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5492
5493# Transform the above into a raw symbol and a C symbol.
5494symxfrm='\1 \2\3 \3'
5495
5496# Transform an extracted symbol line into a proper C declaration
5497lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5498
5499# Transform an extracted symbol line into symbol name and symbol address
5500lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5501
5502# Define system-specific variables.
5503case $host_os in
5504aix*)
5505 symcode='[BCDT]'
5506 ;;
5507cygwin* | mingw* | pw32*)
5508 symcode='[ABCDGISTW]'
5509 ;;
5510hpux*) # Its linker distinguishes data from code symbols
5511 if test "$host_cpu" = ia64; then
5512 symcode='[ABCDEGRST]'
5513 fi
5514 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5515 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5516 ;;
5517irix* | nonstopux*)
5518 symcode='[BCDEGRST]'
5519 ;;
5520osf*)
5521 symcode='[BCDEGQRST]'
5522 ;;
5523solaris* | sysv5*)
5524 symcode='[BDRT]'
5525 ;;
5526sysv4)
5527 symcode='[DFNSTU]'
5528 ;;
5529esac
5530
5531# Handle CRLF in mingw tool chain
5532opt_cr=
5533case $build_os in
5534mingw*)
5535 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5536 ;;
5537esac
5538
5539# If we're using GNU nm, then use its standard symbol codes.
5540case `$NM -V 2>&1` in
5541*GNU* | *'with BFD'*)
5542 symcode='[ABCDGIRSTW]' ;;
5543esac
5544
5545# Try without a prefix undercore, then with it.
5546for ac_symprfx in "" "_"; do
5547
5548 # Write the raw and C identifiers.
5549 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5550
5551 # Check to see that the pipe works correctly.
5552 pipe_works=no
5553
5554 rm -f conftest*
5555 cat > conftest.$ac_ext <<EOF
5556#ifdef __cplusplus
5557extern "C" {
5558#endif
5559char nm_test_var;
5560void nm_test_func(){}
5561#ifdef __cplusplus
5562}
5563#endif
5564int main(){nm_test_var='a';nm_test_func();return(0);}
5565EOF
5566
5567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5568 (eval $ac_compile) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; then
5572 # Now try to grab the symbols.
5573 nlist=conftest.nm
5574 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5575 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } && test -s "$nlist"; then
5579 # Try sorting and uniquifying the output.
5580 if sort "$nlist" | uniq > "$nlist"T; then
5581 mv -f "$nlist"T "$nlist"
5582 else
5583 rm -f "$nlist"T
5584 fi
5585
5586 # Make sure that we snagged all the symbols we need.
5587 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5588 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5589 cat <<EOF > conftest.$ac_ext
5590#ifdef __cplusplus
5591extern "C" {
5592#endif
5593
5594EOF
5595 # Now generate the symbol file.
5596 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5597
5598 cat <<EOF >> conftest.$ac_ext
5599#if defined (__STDC__) && __STDC__
5600# define lt_ptr_t void *
5601#else
5602# define lt_ptr_t char *
5603# define const
5604#endif
5605
5606/* The mapping between symbol names and symbols. */
5607const struct {
5608 const char *name;
5609 lt_ptr_t address;
5610}
5611lt_preloaded_symbols[] =
5612{
5613EOF
5614 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5615 cat <<\EOF >> conftest.$ac_ext
5616 {0, (lt_ptr_t) 0}
5617};
5618
5619#ifdef __cplusplus
5620}
5621#endif
5622EOF
5623 # Now try linking the two files.
5624 mv conftest.$ac_objext conftstm.$ac_objext
5625 lt_save_LIBS="$LIBS"
5626 lt_save_CFLAGS="$CFLAGS"
5627 LIBS="conftstm.$ac_objext"
5628 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5630 (eval $ac_link) 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5634 pipe_works=yes
5635 fi
5636 LIBS="$lt_save_LIBS"
5637 CFLAGS="$lt_save_CFLAGS"
5638 else
5639 echo "cannot find nm_test_func in $nlist" >&5
5640 fi
5641 else
5642 echo "cannot find nm_test_var in $nlist" >&5
5643 fi
5644 else
5645 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5646 fi
5647 else
5648 echo "$progname: failed program was:" >&5
5649 cat conftest.$ac_ext >&5
5650 fi
5651 rm -f conftest* conftst*
5652
5653 # Do not use the global_symbol_pipe unless it works.
5654 if test "$pipe_works" = yes; then
5655 break
5656 else
5657 lt_cv_sys_global_symbol_pipe=
5658 fi
5659done
5660
5661fi
5662
5663if test -z "$lt_cv_sys_global_symbol_pipe"; then
5664 lt_cv_sys_global_symbol_to_cdecl=
5665fi
5666if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5667 echo "$as_me:$LINENO: result: failed" >&5
5668echo "${ECHO_T}failed" >&6
5669else
5670 echo "$as_me:$LINENO: result: ok" >&5
5671echo "${ECHO_T}ok" >&6
5672fi
5673
5674echo "$as_me:$LINENO: checking for objdir" >&5
5675echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5676if test "${lt_cv_objdir+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5678else
5679 rm -f .libs 2>/dev/null
5680mkdir .libs 2>/dev/null
5681if test -d .libs; then
5682 lt_cv_objdir=.libs
5683else
5684 # MS-DOS does not allow filenames that begin with a dot.
5685 lt_cv_objdir=_libs
5686fi
5687rmdir .libs 2>/dev/null
5688fi
5689echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5690echo "${ECHO_T}$lt_cv_objdir" >&6
5691objdir=$lt_cv_objdir
5692
5693
5694
5695
5696
5697case $host_os in
5698aix3*)
5699 # AIX sometimes has problems with the GCC collect2 program. For some
5700 # reason, if we set the COLLECT_NAMES environment variable, the problems
5701 # vanish in a puff of smoke.
5702 if test "X${COLLECT_NAMES+set}" != Xset; then
5703 COLLECT_NAMES=
5704 export COLLECT_NAMES
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005705 fi
5706 ;;
5707esac
5708
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005709# Sed substitution that helps us do robust quoting. It backslashifies
5710# metacharacters that are still active within double-quoted strings.
5711Xsed='sed -e s/^X//'
5712sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5713
5714# Same as above, but do not quote variable references.
5715double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5716
5717# Sed substitution to delay expansion of an escaped shell variable in a
5718# double_quote_subst'ed string.
5719delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5720
5721# Sed substitution to avoid accidental globbing in evaled expressions
5722no_glob_subst='s/\*/\\\*/g'
5723
5724# Constants:
5725rm="rm -f"
5726
5727# Global variables:
5728default_ofile=libtool
5729can_build_shared=yes
5730
5731# All known linkers require a `.a' archive for static linking (except M$VC,
5732# which needs '.lib').
5733libext=a
5734ltmain="$ac_aux_dir/ltmain.sh"
5735ofile="$default_ofile"
5736with_gnu_ld="$lt_cv_prog_gnu_ld"
5737
5738if test -n "$ac_tool_prefix"; then
5739 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5740set dummy ${ac_tool_prefix}ar; ac_word=$2
5741echo "$as_me:$LINENO: checking for $ac_word" >&5
5742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5743if test "${ac_cv_prog_AR+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5745else
5746 if test -n "$AR"; then
5747 ac_cv_prog_AR="$AR" # Let the user override the test.
5748else
5749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750for as_dir in $PATH
5751do
5752 IFS=$as_save_IFS
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_AR="${ac_tool_prefix}ar"
5757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 break 2
5759 fi
5760done
5761done
5762
5763fi
5764fi
5765AR=$ac_cv_prog_AR
5766if test -n "$AR"; then
5767 echo "$as_me:$LINENO: result: $AR" >&5
5768echo "${ECHO_T}$AR" >&6
5769else
5770 echo "$as_me:$LINENO: result: no" >&5
5771echo "${ECHO_T}no" >&6
5772fi
5773
5774fi
5775if test -z "$ac_cv_prog_AR"; then
5776 ac_ct_AR=$AR
5777 # Extract the first word of "ar", so it can be a program name with args.
5778set dummy ar; ac_word=$2
5779echo "$as_me:$LINENO: checking for $ac_word" >&5
5780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5781if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5783else
5784 if test -n "$ac_ct_AR"; then
5785 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5786else
5787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788for as_dir in $PATH
5789do
5790 IFS=$as_save_IFS
5791 test -z "$as_dir" && as_dir=.
5792 for ac_exec_ext in '' $ac_executable_extensions; do
5793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794 ac_cv_prog_ac_ct_AR="ar"
5795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5796 break 2
5797 fi
5798done
5799done
5800
5801 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5802fi
5803fi
5804ac_ct_AR=$ac_cv_prog_ac_ct_AR
5805if test -n "$ac_ct_AR"; then
5806 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5807echo "${ECHO_T}$ac_ct_AR" >&6
5808else
5809 echo "$as_me:$LINENO: result: no" >&5
5810echo "${ECHO_T}no" >&6
5811fi
5812
5813 AR=$ac_ct_AR
5814else
5815 AR="$ac_cv_prog_AR"
5816fi
5817
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005818if test -n "$ac_tool_prefix"; then
5819 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5820set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5821echo "$as_me:$LINENO: checking for $ac_word" >&5
5822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5823if test "${ac_cv_prog_RANLIB+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5825else
5826 if test -n "$RANLIB"; then
5827 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5828else
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5836 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 break 2
5839 fi
5840done
5841done
5842
5843fi
5844fi
5845RANLIB=$ac_cv_prog_RANLIB
5846if test -n "$RANLIB"; then
5847 echo "$as_me:$LINENO: result: $RANLIB" >&5
5848echo "${ECHO_T}$RANLIB" >&6
5849else
5850 echo "$as_me:$LINENO: result: no" >&5
5851echo "${ECHO_T}no" >&6
5852fi
5853
5854fi
5855if test -z "$ac_cv_prog_RANLIB"; then
5856 ac_ct_RANLIB=$RANLIB
5857 # Extract the first word of "ranlib", so it can be a program name with args.
5858set dummy ranlib; ac_word=$2
5859echo "$as_me:$LINENO: checking for $ac_word" >&5
5860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5861if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5863else
5864 if test -n "$ac_ct_RANLIB"; then
5865 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5866else
5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874 ac_cv_prog_ac_ct_RANLIB="ranlib"
5875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 break 2
5877 fi
5878done
5879done
5880
5881 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5882fi
5883fi
5884ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5885if test -n "$ac_ct_RANLIB"; then
5886 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5887echo "${ECHO_T}$ac_ct_RANLIB" >&6
5888else
5889 echo "$as_me:$LINENO: result: no" >&5
5890echo "${ECHO_T}no" >&6
5891fi
5892
5893 RANLIB=$ac_ct_RANLIB
5894else
5895 RANLIB="$ac_cv_prog_RANLIB"
5896fi
5897
5898if test -n "$ac_tool_prefix"; then
5899 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5900set dummy ${ac_tool_prefix}strip; ac_word=$2
5901echo "$as_me:$LINENO: checking for $ac_word" >&5
5902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5903if test "${ac_cv_prog_STRIP+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5905else
5906 if test -n "$STRIP"; then
5907 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5908else
5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910for as_dir in $PATH
5911do
5912 IFS=$as_save_IFS
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 break 2
5919 fi
5920done
5921done
5922
5923fi
5924fi
5925STRIP=$ac_cv_prog_STRIP
5926if test -n "$STRIP"; then
5927 echo "$as_me:$LINENO: result: $STRIP" >&5
5928echo "${ECHO_T}$STRIP" >&6
5929else
5930 echo "$as_me:$LINENO: result: no" >&5
5931echo "${ECHO_T}no" >&6
5932fi
5933
5934fi
5935if test -z "$ac_cv_prog_STRIP"; then
5936 ac_ct_STRIP=$STRIP
5937 # Extract the first word of "strip", so it can be a program name with args.
5938set dummy strip; ac_word=$2
5939echo "$as_me:$LINENO: checking for $ac_word" >&5
5940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5941if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5943else
5944 if test -n "$ac_ct_STRIP"; then
5945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5946else
5947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948for as_dir in $PATH
5949do
5950 IFS=$as_save_IFS
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954 ac_cv_prog_ac_ct_STRIP="strip"
5955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 break 2
5957 fi
5958done
5959done
5960
5961 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5962fi
5963fi
5964ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5965if test -n "$ac_ct_STRIP"; then
5966 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5967echo "${ECHO_T}$ac_ct_STRIP" >&6
5968else
5969 echo "$as_me:$LINENO: result: no" >&5
5970echo "${ECHO_T}no" >&6
5971fi
5972
5973 STRIP=$ac_ct_STRIP
5974else
5975 STRIP="$ac_cv_prog_STRIP"
5976fi
5977
5978
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005979old_CC="$CC"
5980old_CFLAGS="$CFLAGS"
5981
5982# Set sane defaults for various variables
5983test -z "$AR" && AR=ar
5984test -z "$AR_FLAGS" && AR_FLAGS=cru
5985test -z "$AS" && AS=as
5986test -z "$CC" && CC=cc
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005987test -z "$LTCC" && LTCC=$CC
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005988test -z "$DLLTOOL" && DLLTOOL=dlltool
5989test -z "$LD" && LD=ld
5990test -z "$LN_S" && LN_S="ln -s"
5991test -z "$MAGIC_CMD" && MAGIC_CMD=file
5992test -z "$NM" && NM=nm
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005993test -z "$SED" && SED=sed
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005994test -z "$OBJDUMP" && OBJDUMP=objdump
5995test -z "$RANLIB" && RANLIB=:
5996test -z "$STRIP" && STRIP=:
5997test -z "$ac_objext" && ac_objext=o
5998
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005999# Determine commands to create old-style static archives.
6000old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6001old_postinstall_cmds='chmod 644 $oldlib'
6002old_postuninstall_cmds=
6003
6004if test -n "$RANLIB"; then
6005 case $host_os in
6006 openbsd*)
6007 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6008 ;;
6009 *)
6010 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6011 ;;
6012 esac
6013 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6014fi
6015
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006016# Only perform the check for file, if the check method requires it
6017case $deplibs_check_method in
6018file_magic*)
6019 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6020 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6021echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6022if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006024else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006025 case $MAGIC_CMD in
6026[\\/*] | ?:[\\/]*)
6027 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6028 ;;
6029*)
6030 lt_save_MAGIC_CMD="$MAGIC_CMD"
6031 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6032 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6033 for ac_dir in $ac_dummy; do
6034 IFS="$lt_save_ifs"
6035 test -z "$ac_dir" && ac_dir=.
6036 if test -f $ac_dir/${ac_tool_prefix}file; then
6037 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6038 if test -n "$file_magic_test_file"; then
6039 case $deplibs_check_method in
6040 "file_magic "*)
6041 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6043 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6044 $EGREP "$file_magic_regex" > /dev/null; then
6045 :
6046 else
6047 cat <<EOF 1>&2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006048
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006049*** Warning: the command libtool uses to detect shared libraries,
6050*** $file_magic_cmd, produces output that libtool cannot recognize.
6051*** The result is that libtool may fail to recognize shared libraries
6052*** as such. This will affect the creation of libtool libraries that
6053*** depend on shared libraries, but programs linked with such libtool
6054*** libraries will work regardless of this problem. Nevertheless, you
6055*** may want to report the problem to your system manager and/or to
6056*** bug-libtool@gnu.org
6057
6058EOF
6059 fi ;;
6060 esac
6061 fi
6062 break
6063 fi
6064 done
6065 IFS="$lt_save_ifs"
6066 MAGIC_CMD="$lt_save_MAGIC_CMD"
6067 ;;
6068esac
6069fi
6070
6071MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6072if test -n "$MAGIC_CMD"; then
6073 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6074echo "${ECHO_T}$MAGIC_CMD" >&6
6075else
6076 echo "$as_me:$LINENO: result: no" >&5
6077echo "${ECHO_T}no" >&6
6078fi
6079
6080if test -z "$lt_cv_path_MAGIC_CMD"; then
6081 if test -n "$ac_tool_prefix"; then
6082 echo "$as_me:$LINENO: checking for file" >&5
6083echo $ECHO_N "checking for file... $ECHO_C" >&6
6084if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6086else
6087 case $MAGIC_CMD in
6088[\\/*] | ?:[\\/]*)
6089 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6090 ;;
6091*)
6092 lt_save_MAGIC_CMD="$MAGIC_CMD"
6093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6094 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6095 for ac_dir in $ac_dummy; do
6096 IFS="$lt_save_ifs"
6097 test -z "$ac_dir" && ac_dir=.
6098 if test -f $ac_dir/file; then
6099 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6100 if test -n "$file_magic_test_file"; then
6101 case $deplibs_check_method in
6102 "file_magic "*)
6103 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6104 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6105 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6106 $EGREP "$file_magic_regex" > /dev/null; then
6107 :
6108 else
6109 cat <<EOF 1>&2
6110
6111*** Warning: the command libtool uses to detect shared libraries,
6112*** $file_magic_cmd, produces output that libtool cannot recognize.
6113*** The result is that libtool may fail to recognize shared libraries
6114*** as such. This will affect the creation of libtool libraries that
6115*** depend on shared libraries, but programs linked with such libtool
6116*** libraries will work regardless of this problem. Nevertheless, you
6117*** may want to report the problem to your system manager and/or to
6118*** bug-libtool@gnu.org
6119
6120EOF
6121 fi ;;
6122 esac
6123 fi
6124 break
6125 fi
6126 done
6127 IFS="$lt_save_ifs"
6128 MAGIC_CMD="$lt_save_MAGIC_CMD"
6129 ;;
6130esac
6131fi
6132
6133MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6134if test -n "$MAGIC_CMD"; then
6135 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6136echo "${ECHO_T}$MAGIC_CMD" >&6
6137else
6138 echo "$as_me:$LINENO: result: no" >&5
6139echo "${ECHO_T}no" >&6
6140fi
6141
6142 else
6143 MAGIC_CMD=:
6144 fi
6145fi
6146
6147 fi
6148 ;;
6149esac
6150
6151enable_dlopen=no
6152enable_win32_dll=no
6153
6154# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6155if test "${enable_libtool_lock+set}" = set; then
6156 enableval="$enable_libtool_lock"
6157
6158fi;
6159test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006160
6161
6162# Check whether --with-pic or --without-pic was given.
6163if test "${with_pic+set}" = set; then
6164 withval="$with_pic"
6165 pic_mode="$withval"
6166else
6167 pic_mode=default
6168fi;
6169test -z "$pic_mode" && pic_mode=default
6170
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006171# Use C for the default configuration in the libtool script
6172tagname=
6173lt_save_CC="$CC"
6174ac_ext=c
6175ac_cpp='$CPP $CPPFLAGS'
6176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178ac_compiler_gnu=$ac_cv_c_compiler_gnu
6179
6180
6181# Source file extension for C test sources.
6182ac_ext=c
6183
6184# Object file extension for compiled C test sources.
6185objext=o
6186objext=$objext
6187
6188# Code to be used in simple compile tests
6189lt_simple_compile_test_code="int some_variable = 0;\n"
6190
6191# Code to be used in simple link tests
6192lt_simple_link_test_code='int main(){return(0);}\n'
6193
6194
6195# If no C compiler was specified, use CC.
6196LTCC=${LTCC-"$CC"}
6197
6198# Allow CC to be a program name with arguments.
6199compiler=$CC
6200
6201
6202#
6203# Check for any special shared library compilation flags.
6204#
6205lt_prog_cc_shlib=
6206if test "$GCC" = no; then
6207 case $host_os in
6208 sco3.2v5*)
6209 lt_prog_cc_shlib='-belf'
6210 ;;
6211 esac
6212fi
6213if test -n "$lt_prog_cc_shlib"; then
6214 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6215echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6216 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6217 else
6218 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6219echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6220 lt_cv_prog_cc_can_build_shared=no
6221 fi
6222fi
6223
6224
6225#
6226# Check to make sure the static flag actually works.
6227#
6228echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6229echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6230if test "${lt_prog_compiler_static_works+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006233 lt_prog_compiler_static_works=no
6234 save_LDFLAGS="$LDFLAGS"
6235 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6236 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6237 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6238 # The compiler can only warn and ignore the option if not recognized
6239 # So say no if there are warnings
6240 if test -s conftest.err; then
6241 # Append any errors to the config.log.
6242 cat conftest.err 1>&5
6243 else
6244 lt_prog_compiler_static_works=yes
6245 fi
6246 fi
6247 $rm conftest*
6248 LDFLAGS="$save_LDFLAGS"
6249
6250fi
6251echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6252echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6253
6254if test x"$lt_prog_compiler_static_works" = xyes; then
6255 :
6256else
6257 lt_prog_compiler_static=
6258fi
6259
6260
6261
6262
6263lt_prog_compiler_no_builtin_flag=
6264
6265if test "$GCC" = yes; then
6266 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6267
6268
6269echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6270echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6271if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6273else
6274 lt_cv_prog_compiler_rtti_exceptions=no
6275 ac_outfile=conftest.$ac_objext
6276 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6277 lt_compiler_flag="-fno-rtti -fno-exceptions"
6278 # Insert the option either (1) after the last *FLAGS variable, or
6279 # (2) before a word containing "conftest.", or (3) at the end.
6280 # Note that $ac_compile itself does not contain backslashes and begins
6281 # with a dollar sign (not a hyphen), so the echo should work correctly.
6282 # The option is referenced via a variable to avoid confusing sed.
6283 lt_compile=`echo "$ac_compile" | $SED \
6284 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6286 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006287 (eval echo "\"\$as_me:6287: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006288 (eval "$lt_compile" 2>conftest.err)
6289 ac_status=$?
6290 cat conftest.err >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006291 echo "$as_me:6291: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006292 if (exit $ac_status) && test -s "$ac_outfile"; then
6293 # The compiler can only warn and ignore the option if not recognized
6294 # So say no if there are warnings
6295 if test ! -s conftest.err; then
6296 lt_cv_prog_compiler_rtti_exceptions=yes
6297 fi
6298 fi
6299 $rm conftest*
6300
6301fi
6302echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6303echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6304
6305if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6306 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6307else
6308 :
6309fi
6310
6311fi
6312
6313lt_prog_compiler_wl=
6314lt_prog_compiler_pic=
6315lt_prog_compiler_static=
6316
6317echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6318echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006319
6320 if test "$GCC" = yes; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006321 lt_prog_compiler_wl='-Wl,'
6322 lt_prog_compiler_static='-static'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006323
6324 case $host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006325 aix*)
6326 # All AIX code is PIC.
6327 if test "$host_cpu" = ia64; then
6328 # AIX 5 now supports IA64 processor
6329 lt_prog_compiler_static='-Bstatic'
6330 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006331 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006332
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006333 amigaos*)
6334 # FIXME: we need at least 68020 code to build shared libraries, but
6335 # adding the `-m68020' flag to GCC prevents building anything better,
6336 # like `-m68040'.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006337 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006338 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006339
6340 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006341 # PIC is the default for these OSes.
6342 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006343
6344 mingw* | pw32* | os2*)
6345 # This hack is so that the source file can tell whether it is being
6346 # built for inclusion in a dll (and should export symbols for example).
6347 lt_prog_compiler_pic='-DDLL_EXPORT'
6348 ;;
6349
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006350 darwin* | rhapsody*)
6351 # PIC is the default on this platform
6352 # Common symbols not allowed in MH_DYLIB files
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006353 lt_prog_compiler_pic='-fno-common'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006354 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006355
6356 msdosdjgpp*)
6357 # Just because we use GCC doesn't mean we suddenly get shared libraries
6358 # on systems that don't support them.
6359 lt_prog_compiler_can_build_shared=no
6360 enable_shared=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006361 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006362
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006363 sysv4*MP*)
6364 if test -d /usr/nec; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006365 lt_prog_compiler_pic=-Kconform_pic
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006366 fi
6367 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006368
6369 hpux*)
6370 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6371 # not for PA HP-UX.
6372 case "$host_cpu" in
6373 hppa*64*|ia64*)
6374 # +Z the default
6375 ;;
6376 *)
6377 lt_prog_compiler_pic='-fPIC'
6378 ;;
6379 esac
6380 ;;
6381
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006382 *)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006383 lt_prog_compiler_pic='-fPIC'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006384 ;;
6385 esac
6386 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006387 # PORTME Check for flag to pass linker flags through the system compiler.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006388 case $host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006389 aix*)
6390 lt_prog_compiler_wl='-Wl,'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006391 if test "$host_cpu" = ia64; then
6392 # AIX 5 now supports IA64 processor
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006393 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006394 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006395 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006396 fi
6397 ;;
6398
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006399 mingw* | pw32* | os2*)
6400 # This hack is so that the source file can tell whether it is being
6401 # built for inclusion in a dll (and should export symbols for example).
6402 lt_prog_compiler_pic='-DDLL_EXPORT'
6403 ;;
6404
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006405 hpux9* | hpux10* | hpux11*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006406 lt_prog_compiler_wl='-Wl,'
6407 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6408 # not for PA HP-UX.
6409 case "$host_cpu" in
6410 hppa*64*|ia64*)
6411 # +Z the default
6412 ;;
6413 *)
6414 lt_prog_compiler_pic='+Z'
6415 ;;
6416 esac
6417 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6418 lt_prog_compiler_static='${wl}-a ${wl}archive'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006419 ;;
6420
6421 irix5* | irix6* | nonstopux*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006422 lt_prog_compiler_wl='-Wl,'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006423 # PIC (with -KPIC) is the default.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006424 lt_prog_compiler_static='-non_shared'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006425 ;;
6426
6427 newsos6)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006428 lt_prog_compiler_pic='-KPIC'
6429 lt_prog_compiler_static='-Bstatic'
6430 ;;
6431
6432 linux*)
6433 case $CC in
6434 icc* | ecc*)
6435 lt_prog_compiler_wl='-Wl,'
6436 lt_prog_compiler_pic='-KPIC'
6437 lt_prog_compiler_static='-static'
6438 ;;
6439 ccc*)
6440 lt_prog_compiler_wl='-Wl,'
6441 # All Alpha code is PIC.
6442 lt_prog_compiler_static='-non_shared'
6443 ;;
6444 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006445 ;;
6446
6447 osf3* | osf4* | osf5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006448 lt_prog_compiler_wl='-Wl,'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006449 # All OSF/1 code is PIC.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006450 lt_prog_compiler_static='-non_shared'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006451 ;;
6452
6453 sco3.2v5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006454 lt_prog_compiler_pic='-Kpic'
6455 lt_prog_compiler_static='-dn'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006456 ;;
6457
6458 solaris*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006459 lt_prog_compiler_wl='-Wl,'
6460 lt_prog_compiler_pic='-KPIC'
6461 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006462 ;;
6463
6464 sunos4*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006465 lt_prog_compiler_wl='-Qoption ld '
6466 lt_prog_compiler_pic='-PIC'
6467 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006468 ;;
6469
6470 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006471 lt_prog_compiler_wl='-Wl,'
6472 lt_prog_compiler_pic='-KPIC'
6473 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006474 ;;
6475
6476 sysv4*MP*)
6477 if test -d /usr/nec ;then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006478 lt_prog_compiler_pic='-Kconform_pic'
6479 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006480 fi
6481 ;;
6482
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006483 uts4*)
6484 lt_prog_compiler_pic='-pic'
6485 lt_prog_compiler_static='-Bstatic'
6486 ;;
6487
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006488 *)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006489 lt_prog_compiler_can_build_shared=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006490 ;;
6491 esac
6492 fi
6493
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006494echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6495echo "${ECHO_T}$lt_prog_compiler_pic" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006496
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006497#
6498# Check to make sure the PIC flag actually works.
6499#
6500if test -n "$lt_prog_compiler_pic"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006501
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006502echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6503echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6504if test "${lt_prog_compiler_pic_works+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006507 lt_prog_compiler_pic_works=no
6508 ac_outfile=conftest.$ac_objext
6509 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6510 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6511 # Insert the option either (1) after the last *FLAGS variable, or
6512 # (2) before a word containing "conftest.", or (3) at the end.
6513 # Note that $ac_compile itself does not contain backslashes and begins
6514 # with a dollar sign (not a hyphen), so the echo should work correctly.
6515 # The option is referenced via a variable to avoid confusing sed.
6516 lt_compile=`echo "$ac_compile" | $SED \
6517 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6519 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006520 (eval echo "\"\$as_me:6520: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006521 (eval "$lt_compile" 2>conftest.err)
6522 ac_status=$?
6523 cat conftest.err >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006524 echo "$as_me:6524: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006525 if (exit $ac_status) && test -s "$ac_outfile"; then
6526 # The compiler can only warn and ignore the option if not recognized
6527 # So say no if there are warnings
6528 if test ! -s conftest.err; then
6529 lt_prog_compiler_pic_works=yes
6530 fi
6531 fi
6532 $rm conftest*
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006533
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006534fi
6535echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6536echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006537
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006538if test x"$lt_prog_compiler_pic_works" = xyes; then
6539 case $lt_prog_compiler_pic in
6540 "" | " "*) ;;
6541 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6542 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006543else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006544 lt_prog_compiler_pic=
6545 lt_prog_compiler_can_build_shared=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006546fi
6547
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006548fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006549case "$host_os" in
6550 # For platforms which do not support PIC, -DPIC is meaningless:
6551 *djgpp*)
6552 lt_prog_compiler_pic=
6553 ;;
6554 *)
6555 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6556 ;;
6557esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006558
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006559echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6560echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006561if test "${lt_cv_prog_compiler_c_o+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006562 echo $ECHO_N "(cached) $ECHO_C" >&6
6563else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006564 lt_cv_prog_compiler_c_o=no
6565 $rm -r conftest 2>/dev/null
6566 mkdir conftest
6567 cd conftest
6568 mkdir out
6569 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006570
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006571 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6572 # that will create temporary files in the current directory regardless of
6573 # the output directory. Thus, making CWD read-only will cause this test
6574 # to fail, enabling locking or at least warning the user not to do parallel
6575 # builds.
6576 chmod -w .
6577
6578 lt_compiler_flag="-o out/conftest2.$ac_objext"
6579 # Insert the option either (1) after the last *FLAGS variable, or
6580 # (2) before a word containing "conftest.", or (3) at the end.
6581 # Note that $ac_compile itself does not contain backslashes and begins
6582 # with a dollar sign (not a hyphen), so the echo should work correctly.
6583 lt_compile=`echo "$ac_compile" | $SED \
6584 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6586 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006587 (eval echo "\"\$as_me:6587: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006588 (eval "$lt_compile" 2>out/conftest.err)
6589 ac_status=$?
6590 cat out/conftest.err >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006591 echo "$as_me:6591: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006592 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6593 then
6594 # The compiler can only warn and ignore the option if not recognized
6595 # So say no if there are warnings
6596 if test ! -s out/conftest.err; then
6597 lt_cv_prog_compiler_c_o=yes
6598 fi
6599 fi
6600 chmod u+w .
6601 $rm conftest*
6602 # SGI C++ compiler will create directory out/ii_files/ for
6603 # template instantiation
6604 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6605 $rm out/* && rmdir out
6606 cd ..
6607 rmdir conftest
6608 $rm conftest*
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006609
6610fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006611echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6612echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006613
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006614
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006615hard_links="nottested"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006616if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006617 # do not overwrite the value of need_locks provided by the user
6618 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6619echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6620 hard_links=yes
6621 $rm conftest*
6622 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6623 touch conftest.a
6624 ln conftest.a conftest.b 2>&5 || hard_links=no
6625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6626 echo "$as_me:$LINENO: result: $hard_links" >&5
6627echo "${ECHO_T}$hard_links" >&6
6628 if test "$hard_links" = no; then
6629 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6630echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6631 need_locks=warn
6632 fi
6633else
6634 need_locks=no
6635fi
6636
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006637echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6638echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006639
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006640 runpath_var=
6641 allow_undefined_flag=
6642 enable_shared_with_static_runtimes=no
6643 archive_cmds=
6644 archive_expsym_cmds=
6645 old_archive_From_new_cmds=
6646 old_archive_from_expsyms_cmds=
6647 export_dynamic_flag_spec=
6648 whole_archive_flag_spec=
6649 thread_safe_flag_spec=
6650 hardcode_libdir_flag_spec=
6651 hardcode_libdir_flag_spec_ld=
6652 hardcode_libdir_separator=
6653 hardcode_direct=no
6654 hardcode_minus_L=no
6655 hardcode_shlibpath_var=unsupported
6656 link_all_deplibs=unknown
6657 hardcode_automatic=no
6658 module_cmds=
6659 module_expsym_cmds=
6660 always_export_symbols=no
6661 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6662 # include_expsyms should be a list of space-separated symbols to be *always*
6663 # included in the symbol list
6664 include_expsyms=
6665 # exclude_expsyms can be an extended regexp of symbols to exclude
6666 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6667 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6668 # as well as any symbol that contains `d'.
6669 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6670 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6671 # platforms (ab)use it in PIC code, but their linkers get confused if
6672 # the symbol is explicitly referenced. Since portable code cannot
6673 # rely on this symbol name, it's probably fine to never include it in
6674 # preloaded symbol tables.
6675 extract_expsyms_cmds=
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006676
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006677 case $host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006678 cygwin* | mingw* | pw32*)
6679 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6680 # When not using gcc, we currently assume that we are using
6681 # Microsoft Visual C++.
6682 if test "$GCC" != yes; then
6683 with_gnu_ld=no
6684 fi
6685 ;;
6686 openbsd*)
6687 with_gnu_ld=no
6688 ;;
6689 esac
6690
6691 ld_shlibs=yes
6692 if test "$with_gnu_ld" = yes; then
6693 # If archive_cmds runs LD, not CC, wlarc should be empty
6694 wlarc='${wl}'
6695
6696 # See if GNU ld supports shared libraries.
6697 case $host_os in
6698 aix3* | aix4* | aix5*)
6699 # On AIX/PPC, the GNU linker is very broken
6700 if test "$host_cpu" != ia64; then
6701 ld_shlibs=no
6702 cat <<EOF 1>&2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006703
6704*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6705*** to be unable to reliably create shared libraries on AIX.
6706*** Therefore, libtool is disabling shared libraries support. If you
6707*** really care for shared libraries, you may want to modify your PATH
6708*** so that a non-GNU linker is found, and then restart.
6709
6710EOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006711 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006712 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006713
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006714 amigaos*)
6715 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)'
6716 hardcode_libdir_flag_spec='-L$libdir'
6717 hardcode_minus_L=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006718
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006719 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6720 # that the semantics of dynamic libraries on AmigaOS, at least up
6721 # to version 4, is to share data among multiple programs linked
6722 # with the same dynamic library. Since this doesn't match the
6723 # behavior of shared libraries on other platforms, we can't use
6724 # them.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006725 ld_shlibs=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006726 ;;
6727
6728 beos*)
6729 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6730 allow_undefined_flag=unsupported
6731 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6732 # support --undefined. This deserves some investigation. FIXME
6733 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6734 else
6735 ld_shlibs=no
6736 fi
6737 ;;
6738
6739 cygwin* | mingw* | pw32*)
6740 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6741 # as there is no search path for DLLs.
6742 hardcode_libdir_flag_spec='-L$libdir'
6743 allow_undefined_flag=unsupported
6744 always_export_symbols=no
6745 enable_shared_with_static_runtimes=yes
6746 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6747
6748 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6749 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6750 # If the export-symbols file already is a .def file (1st line
6751 # is EXPORTS), use it as is; otherwise, prepend...
6752 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6753 cp $export_symbols $output_objdir/$soname.def;
6754 else
6755 echo EXPORTS > $output_objdir/$soname.def;
6756 cat $export_symbols >> $output_objdir/$soname.def;
6757 fi~
6758 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6759 else
6760 ld_shlibs=no
6761 fi
6762 ;;
6763
6764 netbsd*)
6765 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6766 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6767 wlarc=
6768 else
6769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6770 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6771 fi
6772 ;;
6773
6774 solaris* | sysv5*)
6775 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6776 ld_shlibs=no
6777 cat <<EOF 1>&2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006778
6779*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6780*** create shared libraries on Solaris systems. Therefore, libtool
6781*** is disabling shared libraries support. We urge you to upgrade GNU
6782*** binutils to release 2.9.1 or newer. Another option is to modify
6783*** your PATH or compiler configuration so that the native linker is
6784*** used, and then restart.
6785
6786EOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006787 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6789 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006790 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006791 ld_shlibs=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006792 fi
6793 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006794
6795 sunos4*)
6796 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6797 wlarc=
6798 hardcode_direct=yes
6799 hardcode_shlibpath_var=no
6800 ;;
6801
6802 linux*)
6803 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6804 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6805 archive_cmds="$tmp_archive_cmds"
6806 supports_anon_versioning=no
6807 case `$LD -v 2>/dev/null` in
6808 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6809 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6810 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6811 *\ 2.11.*) ;; # other 2.11 versions
6812 *) supports_anon_versioning=yes ;;
6813 esac
6814 if test $supports_anon_versioning = yes; then
6815 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6816cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6817$echo "local: *; };" >> $output_objdir/$libname.ver~
6818 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6819 else
6820 archive_expsym_cmds="$tmp_archive_cmds"
6821 fi
6822 else
6823 ld_shlibs=no
6824 fi
6825 ;;
6826
6827 *)
6828 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6830 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6831 else
6832 ld_shlibs=no
6833 fi
6834 ;;
6835 esac
6836
6837 if test "$ld_shlibs" = yes; then
6838 runpath_var=LD_RUN_PATH
6839 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6840 export_dynamic_flag_spec='${wl}--export-dynamic'
6841 # ancient GNU ld didn't support --whole-archive et. al.
6842 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6843 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6844 else
6845 whole_archive_flag_spec=
6846 fi
6847 fi
6848 else
6849 # PORTME fill in a description of your system's linker (not GNU ld)
6850 case $host_os in
6851 aix3*)
6852 allow_undefined_flag=unsupported
6853 always_export_symbols=yes
6854 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'
6855 # Note: this linker hardcodes the directories in LIBPATH if there
6856 # are no directories specified by -L.
6857 hardcode_minus_L=yes
6858 if test "$GCC" = yes && test -z "$link_static_flag"; then
6859 # Neither direct hardcoding nor static linking is supported with a
6860 # broken collect2.
6861 hardcode_direct=unsupported
6862 fi
6863 ;;
6864
6865 aix4* | aix5*)
6866 if test "$host_cpu" = ia64; then
6867 # On IA64, the linker does run time linking by default, so we don't
6868 # have to do anything special.
6869 aix_use_runtimelinking=no
6870 exp_sym_flag='-Bexport'
6871 no_entry_flag=""
6872 else
6873 # If we're using GNU nm, then we don't want the "-C" option.
6874 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6875 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6876 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6877 else
6878 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6879 fi
6880 aix_use_runtimelinking=no
6881
6882 # Test if we are trying to use run time linking or normal
6883 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6884 # need to do runtime linking.
6885 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6886 for ld_flag in $LDFLAGS; do
6887 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6888 aix_use_runtimelinking=yes
6889 break
6890 fi
6891 done
6892 esac
6893
6894 exp_sym_flag='-bexport'
6895 no_entry_flag='-bnoentry'
6896 fi
6897
6898 # When large executables or shared objects are built, AIX ld can
6899 # have problems creating the table of contents. If linking a library
6900 # or program results in "error TOC overflow" add -mminimal-toc to
6901 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6902 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6903
6904 archive_cmds=''
6905 hardcode_direct=yes
6906 hardcode_libdir_separator=':'
6907 link_all_deplibs=yes
6908
6909 if test "$GCC" = yes; then
6910 case $host_os in aix4.012|aix4.012.*)
6911 # We only want to do this on AIX 4.2 and lower, the check
6912 # below for broken collect2 doesn't work under 4.3+
6913 collect2name=`${CC} -print-prog-name=collect2`
6914 if test -f "$collect2name" && \
6915 strings "$collect2name" | grep resolve_lib_name >/dev/null
6916 then
6917 # We have reworked collect2
6918 hardcode_direct=yes
6919 else
6920 # We have old collect2
6921 hardcode_direct=unsupported
6922 # It fails to find uninstalled libraries when the uninstalled
6923 # path is not listed in the libpath. Setting hardcode_minus_L
6924 # to unsupported forces relinking
6925 hardcode_minus_L=yes
6926 hardcode_libdir_flag_spec='-L$libdir'
6927 hardcode_libdir_separator=
6928 fi
6929 esac
6930 shared_flag='-shared'
6931 else
6932 # not using gcc
6933 if test "$host_cpu" = ia64; then
6934 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6935 # chokes on -Wl,-G. The following line is correct:
6936 shared_flag='-G'
6937 else
6938 if test "$aix_use_runtimelinking" = yes; then
6939 shared_flag='${wl}-G'
6940 else
6941 shared_flag='${wl}-bM:SRE'
6942 fi
6943 fi
6944 fi
6945
6946 # It seems that -bexpall does not export symbols beginning with
6947 # underscore (_), so it is better to generate a list of symbols to export.
6948 always_export_symbols=yes
6949 if test "$aix_use_runtimelinking" = yes; then
6950 # Warning - without using the other runtime loading flags (-brtl),
6951 # -berok will link without error, but may produce a broken library.
6952 allow_undefined_flag='-berok'
6953 # Determine the default libpath from the value encoded in an empty executable.
6954 cat >conftest.$ac_ext <<_ACEOF
6955/* confdefs.h. */
6956_ACEOF
6957cat confdefs.h >>conftest.$ac_ext
6958cat >>conftest.$ac_ext <<_ACEOF
6959/* end confdefs.h. */
6960
6961int
6962main ()
6963{
6964
6965 ;
6966 return 0;
6967}
6968_ACEOF
6969rm -f conftest.$ac_objext conftest$ac_exeext
6970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006971 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006972 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006973 grep -v '^ *+' conftest.er1 >conftest.err
6974 rm -f conftest.er1
6975 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 (eval $ac_try) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; } &&
6984 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 (eval $ac_try) 2>&5
6987 ac_status=$?
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; }; then
6990
6991aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6992}'`
6993# Check for a 64-bit object if we didn't find anything.
6994if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6995}'`; fi
6996else
6997 echo "$as_me: failed program was:" >&5
6998sed 's/^/| /' conftest.$ac_ext >&5
6999
7000fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007001rm -f conftest.err conftest.$ac_objext \
7002 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007003if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7004
7005 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7006 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"
7007 else
7008 if test "$host_cpu" = ia64; then
7009 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7010 allow_undefined_flag="-z nodefs"
7011 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7012 else
7013 # Determine the default libpath from the value encoded in an empty executable.
7014 cat >conftest.$ac_ext <<_ACEOF
7015/* confdefs.h. */
7016_ACEOF
7017cat confdefs.h >>conftest.$ac_ext
7018cat >>conftest.$ac_ext <<_ACEOF
7019/* end confdefs.h. */
7020
7021int
7022main ()
7023{
7024
7025 ;
7026 return 0;
7027}
7028_ACEOF
7029rm -f conftest.$ac_objext conftest$ac_exeext
7030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007031 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007032 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007033 grep -v '^ *+' conftest.er1 >conftest.err
7034 rm -f conftest.er1
7035 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 (eval $ac_try) 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; } &&
7044 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046 (eval $ac_try) 2>&5
7047 ac_status=$?
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; }; then
7050
7051aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7052}'`
7053# Check for a 64-bit object if we didn't find anything.
7054if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7055}'`; fi
7056else
7057 echo "$as_me: failed program was:" >&5
7058sed 's/^/| /' conftest.$ac_ext >&5
7059
7060fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007061rm -f conftest.err conftest.$ac_objext \
7062 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007063if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7064
7065 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7066 # Warning - without using the other run time loading flags,
7067 # -berok will link without error, but may produce a broken library.
7068 no_undefined_flag=' ${wl}-bernotok'
7069 allow_undefined_flag=' ${wl}-berok'
7070 # -bexpall does not export symbols beginning with underscore (_)
7071 always_export_symbols=yes
7072 # Exported symbols can be pulled into shared objects from archives
7073 whole_archive_flag_spec=' '
7074 archive_cmds_need_lc=yes
7075 # This is similar to how AIX traditionally builds it's shared libraries.
7076 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7077 fi
7078 fi
7079 ;;
7080
7081 amigaos*)
7082 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)'
7083 hardcode_libdir_flag_spec='-L$libdir'
7084 hardcode_minus_L=yes
7085 # see comment about different semantics on the GNU ld section
7086 ld_shlibs=no
7087 ;;
7088
7089 bsdi4*)
7090 export_dynamic_flag_spec=-rdynamic
7091 ;;
7092
7093 cygwin* | mingw* | pw32*)
7094 # When not using gcc, we currently assume that we are using
7095 # Microsoft Visual C++.
7096 # hardcode_libdir_flag_spec is actually meaningless, as there is
7097 # no search path for DLLs.
7098 hardcode_libdir_flag_spec=' '
7099 allow_undefined_flag=unsupported
7100 # Tell ltmain to make .lib files, not .a files.
7101 libext=lib
7102 # Tell ltmain to make .dll files, not .so files.
7103 shrext=".dll"
7104 # FIXME: Setting linknames here is a bad hack.
7105 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7106 # The linker will automatically build a .lib file if we build a DLL.
7107 old_archive_From_new_cmds='true'
7108 # FIXME: Should let the user specify the lib program.
7109 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7110 fix_srcfile_path='`cygpath -w "$srcfile"`'
7111 enable_shared_with_static_runtimes=yes
7112 ;;
7113
7114 darwin* | rhapsody*)
7115 if test "$GXX" = yes ; then
7116 archive_cmds_need_lc=no
7117 case "$host_os" in
7118 rhapsody* | darwin1.[012])
7119 allow_undefined_flag='-undefined suppress'
7120 ;;
7121 *) # Darwin 1.3 on
7122 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7123 allow_undefined_flag='-flat_namespace -undefined suppress'
7124 else
7125 case ${MACOSX_DEPLOYMENT_TARGET} in
7126 10.[012])
7127 allow_undefined_flag='-flat_namespace -undefined suppress'
7128 ;;
7129 10.*)
7130 allow_undefined_flag='-undefined dynamic_lookup'
7131 ;;
7132 esac
7133 fi
7134 ;;
7135 esac
7136 lt_int_apple_cc_single_mod=no
7137 output_verbose_link_cmd='echo'
7138 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7139 lt_int_apple_cc_single_mod=yes
7140 fi
7141 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7142 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7143 else
7144 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7145 fi
7146 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7147 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7148 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7149 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7150 else
7151 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7152 fi
7153 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7154 hardcode_direct=no
7155 hardcode_automatic=yes
7156 hardcode_shlibpath_var=unsupported
7157 whole_archive_flag_spec='-all_load $convenience'
7158 link_all_deplibs=yes
7159 else
7160 ld_shlibs=no
7161 fi
7162 ;;
7163
7164 dgux*)
7165 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7166 hardcode_libdir_flag_spec='-L$libdir'
7167 hardcode_shlibpath_var=no
7168 ;;
7169
7170 freebsd1*)
7171 ld_shlibs=no
7172 ;;
7173
7174 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7175 # support. Future versions do this automatically, but an explicit c++rt0.o
7176 # does not break anything, and helps significantly (at the cost of a little
7177 # extra space).
7178 freebsd2.2*)
7179 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7180 hardcode_libdir_flag_spec='-R$libdir'
7181 hardcode_direct=yes
7182 hardcode_shlibpath_var=no
7183 ;;
7184
7185 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7186 freebsd2*)
7187 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7188 hardcode_direct=yes
7189 hardcode_minus_L=yes
7190 hardcode_shlibpath_var=no
7191 ;;
7192
7193 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7194 freebsd* | kfreebsd*-gnu)
7195 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7196 hardcode_libdir_flag_spec='-R$libdir'
7197 hardcode_direct=yes
7198 hardcode_shlibpath_var=no
7199 ;;
7200
7201 hpux9*)
7202 if test "$GCC" = yes; then
7203 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7204 else
7205 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'
7206 fi
7207 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7208 hardcode_libdir_separator=:
7209 hardcode_direct=yes
7210
7211 # hardcode_minus_L: Not really in the search PATH,
7212 # but as the default location of the library.
7213 hardcode_minus_L=yes
7214 export_dynamic_flag_spec='${wl}-E'
7215 ;;
7216
7217 hpux10* | hpux11*)
7218 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7219 case "$host_cpu" in
7220 hppa*64*|ia64*)
7221 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7222 ;;
7223 *)
7224 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7225 ;;
7226 esac
7227 else
7228 case "$host_cpu" in
7229 hppa*64*|ia64*)
7230 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7231 ;;
7232 *)
7233 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7234 ;;
7235 esac
7236 fi
7237 if test "$with_gnu_ld" = no; then
7238 case "$host_cpu" in
7239 hppa*64*)
7240 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7241 hardcode_libdir_flag_spec_ld='+b $libdir'
7242 hardcode_libdir_separator=:
7243 hardcode_direct=no
7244 hardcode_shlibpath_var=no
7245 ;;
7246 ia64*)
7247 hardcode_libdir_flag_spec='-L$libdir'
7248 hardcode_direct=no
7249 hardcode_shlibpath_var=no
7250
7251 # hardcode_minus_L: Not really in the search PATH,
7252 # but as the default location of the library.
7253 hardcode_minus_L=yes
7254 ;;
7255 *)
7256 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7257 hardcode_libdir_separator=:
7258 hardcode_direct=yes
7259 export_dynamic_flag_spec='${wl}-E'
7260
7261 # hardcode_minus_L: Not really in the search PATH,
7262 # but as the default location of the library.
7263 hardcode_minus_L=yes
7264 ;;
7265 esac
7266 fi
7267 ;;
7268
7269 irix5* | irix6* | nonstopux*)
7270 if test "$GCC" = yes; then
7271 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'
7272 else
7273 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'
7274 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7275 fi
7276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7277 hardcode_libdir_separator=:
7278 link_all_deplibs=yes
7279 ;;
7280
7281 netbsd*)
7282 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7284 else
7285 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7286 fi
7287 hardcode_libdir_flag_spec='-R$libdir'
7288 hardcode_direct=yes
7289 hardcode_shlibpath_var=no
7290 ;;
7291
7292 newsos6)
7293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7294 hardcode_direct=yes
7295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7296 hardcode_libdir_separator=:
7297 hardcode_shlibpath_var=no
7298 ;;
7299
7300 openbsd*)
7301 hardcode_direct=yes
7302 hardcode_shlibpath_var=no
7303 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7304 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7305 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7306 export_dynamic_flag_spec='${wl}-E'
7307 else
7308 case $host_os in
7309 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7310 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7311 hardcode_libdir_flag_spec='-R$libdir'
7312 ;;
7313 *)
7314 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7315 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7316 ;;
7317 esac
7318 fi
7319 ;;
7320
7321 os2*)
7322 hardcode_libdir_flag_spec='-L$libdir'
7323 hardcode_minus_L=yes
7324 allow_undefined_flag=unsupported
7325 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'
7326 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7327 ;;
7328
7329 osf3*)
7330 if test "$GCC" = yes; then
7331 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7332 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'
7333 else
7334 allow_undefined_flag=' -expect_unresolved \*'
7335 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'
7336 fi
7337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7338 hardcode_libdir_separator=:
7339 ;;
7340
7341 osf4* | osf5*) # as osf3* with the addition of -msym flag
7342 if test "$GCC" = yes; then
7343 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7344 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'
7345 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7346 else
7347 allow_undefined_flag=' -expect_unresolved \*'
7348 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'
7349 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7350 $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'
7351
7352 # Both c and cxx compiler support -rpath directly
7353 hardcode_libdir_flag_spec='-rpath $libdir'
7354 fi
7355 hardcode_libdir_separator=:
7356 ;;
7357
7358 sco3.2v5*)
7359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7360 hardcode_shlibpath_var=no
7361 export_dynamic_flag_spec='${wl}-Bexport'
7362 runpath_var=LD_RUN_PATH
7363 hardcode_runpath_var=yes
7364 ;;
7365
7366 solaris*)
7367 no_undefined_flag=' -z text'
7368 if test "$GCC" = yes; then
7369 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7370 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7371 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7372 else
7373 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7374 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7375 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7376 fi
7377 hardcode_libdir_flag_spec='-R$libdir'
7378 hardcode_shlibpath_var=no
7379 case $host_os in
7380 solaris2.[0-5] | solaris2.[0-5].*) ;;
7381 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7382 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7383 esac
7384 link_all_deplibs=yes
7385 ;;
7386
7387 sunos4*)
7388 if test "x$host_vendor" = xsequent; then
7389 # Use $CC to link under sequent, because it throws in some extra .o
7390 # files that make .init and .fini sections work.
7391 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7392 else
7393 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7394 fi
7395 hardcode_libdir_flag_spec='-L$libdir'
7396 hardcode_direct=yes
7397 hardcode_minus_L=yes
7398 hardcode_shlibpath_var=no
7399 ;;
7400
7401 sysv4)
7402 case $host_vendor in
7403 sni)
7404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7405 hardcode_direct=yes # is this really true???
7406 ;;
7407 siemens)
7408 ## LD is ld it makes a PLAMLIB
7409 ## CC just makes a GrossModule.
7410 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7411 reload_cmds='$CC -r -o $output$reload_objs'
7412 hardcode_direct=no
7413 ;;
7414 motorola)
7415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7416 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7417 ;;
7418 esac
7419 runpath_var='LD_RUN_PATH'
7420 hardcode_shlibpath_var=no
7421 ;;
7422
7423 sysv4.3*)
7424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7425 hardcode_shlibpath_var=no
7426 export_dynamic_flag_spec='-Bexport'
7427 ;;
7428
7429 sysv4*MP*)
7430 if test -d /usr/nec; then
7431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7432 hardcode_shlibpath_var=no
7433 runpath_var=LD_RUN_PATH
7434 hardcode_runpath_var=yes
7435 ld_shlibs=yes
7436 fi
7437 ;;
7438
7439 sysv4.2uw2*)
7440 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7441 hardcode_direct=yes
7442 hardcode_minus_L=no
7443 hardcode_shlibpath_var=no
7444 hardcode_runpath_var=yes
7445 runpath_var=LD_RUN_PATH
7446 ;;
7447
7448 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7449 no_undefined_flag='${wl}-z ${wl}text'
7450 if test "$GCC" = yes; then
7451 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7452 else
7453 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7454 fi
7455 runpath_var='LD_RUN_PATH'
7456 hardcode_shlibpath_var=no
7457 ;;
7458
7459 sysv5*)
7460 no_undefined_flag=' -z text'
7461 # $CC -shared without GNU ld will not create a library from C++
7462 # object files and a static libstdc++, better avoid it by now
7463 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7464 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7465 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7466 hardcode_libdir_flag_spec=
7467 hardcode_shlibpath_var=no
7468 runpath_var='LD_RUN_PATH'
7469 ;;
7470
7471 uts4*)
7472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7473 hardcode_libdir_flag_spec='-L$libdir'
7474 hardcode_shlibpath_var=no
7475 ;;
7476
7477 *)
7478 ld_shlibs=no
7479 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007480 esac
7481 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007482
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007483echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7484echo "${ECHO_T}$ld_shlibs" >&6
7485test "$ld_shlibs" = no && can_build_shared=no
7486
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007487variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7488if test "$GCC" = yes; then
7489 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7490fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007491
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007492#
7493# Do we need to explicitly link libc?
7494#
7495case "x$archive_cmds_need_lc" in
7496x|xyes)
7497 # Assume -lc should be added
7498 archive_cmds_need_lc=yes
7499
7500 if test "$enable_shared" = yes && test "$GCC" = yes; then
7501 case $archive_cmds in
7502 *'~'*)
7503 # FIXME: we may have to deal with multi-command sequences.
7504 ;;
7505 '$CC '*)
7506 # Test whether the compiler implicitly links with -lc since on some
7507 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7508 # to ld, don't add -lc before -lgcc.
7509 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7510echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7511 $rm conftest*
7512 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7513
7514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7515 (eval $ac_compile) 2>&5
7516 ac_status=$?
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } 2>conftest.err; then
7519 soname=conftest
7520 lib=conftest
7521 libobjs=conftest.$ac_objext
7522 deplibs=
7523 wl=$lt_prog_compiler_wl
7524 compiler_flags=-v
7525 linker_flags=-v
7526 verstring=
7527 output_objdir=.
7528 libname=conftest
7529 lt_save_allow_undefined_flag=$allow_undefined_flag
7530 allow_undefined_flag=
7531 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7532 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7533 ac_status=$?
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); }
7536 then
7537 archive_cmds_need_lc=no
7538 else
7539 archive_cmds_need_lc=yes
7540 fi
7541 allow_undefined_flag=$lt_save_allow_undefined_flag
7542 else
7543 cat conftest.err 1>&5
7544 fi
7545 $rm conftest*
7546 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7547echo "${ECHO_T}$archive_cmds_need_lc" >&6
7548 ;;
7549 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007550 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007551 ;;
7552esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007553
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007554echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7555echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7556library_names_spec=
7557libname_spec='lib$name'
7558soname_spec=
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007559shrext=".so"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007560postinstall_cmds=
7561postuninstall_cmds=
7562finish_cmds=
7563finish_eval=
7564shlibpath_var=
7565shlibpath_overrides_runpath=unknown
7566version_type=none
7567dynamic_linker="$host_os ld.so"
7568sys_lib_dlsearch_path_spec="/lib /usr/lib"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007569if test "$GCC" = yes; then
7570 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7571 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7572 # if the path contains ";" then we assume it to be the separator
7573 # otherwise default to the standard path separator (i.e. ":") - it is
7574 # assumed that no part of a normal pathname contains ";" but that should
7575 # okay in the real world where ";" in dirpaths is itself problematic.
7576 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7577 else
7578 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7579 fi
7580else
7581 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7582fi
7583need_lib_prefix=unknown
7584hardcode_into_libs=no
7585
7586# when you set need_version to no, make sure it does not cause -set_version
7587# flags to be left without arguments
7588need_version=unknown
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007589
7590case $host_os in
7591aix3*)
7592 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007594 shlibpath_var=LIBPATH
7595
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007596 # AIX 3 has no versioning support, so we append a major version to the name.
7597 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007598 ;;
7599
7600aix4* | aix5*)
7601 version_type=linux
7602 need_lib_prefix=no
7603 need_version=no
7604 hardcode_into_libs=yes
7605 if test "$host_cpu" = ia64; then
7606 # AIX 5 supports IA64
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007607 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007608 shlibpath_var=LD_LIBRARY_PATH
7609 else
7610 # With GCC up to 2.95.x, collect2 would create an import file
7611 # for dependence libraries. The import file would start with
7612 # the line `#! .'. This would cause the generated library to
7613 # depend on `.', always an invalid library. This was fixed in
7614 # development snapshots of GCC prior to 3.0.
7615 case $host_os in
7616 aix4 | aix4.[01] | aix4.[01].*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007617 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7618 echo ' yes '
7619 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7620 :
7621 else
7622 can_build_shared=no
7623 fi
7624 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007625 esac
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007626 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7627 # soname into executable. Probably we can add versioning support to
7628 # collect2, so additional links can be useful in future.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007629 if test "$aix_use_runtimelinking" = yes; then
7630 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7631 # instead of lib<name>.a to let people know that these are not
7632 # typical AIX shared libraries.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007634 else
7635 # We preserve .a as extension for shared libraries through AIX4.2
7636 # and later when we are not doing run time linking.
7637 library_names_spec='${libname}${release}.a $libname.a'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007638 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007639 fi
7640 shlibpath_var=LIBPATH
7641 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007642 ;;
7643
7644amigaos*)
7645 library_names_spec='$libname.ixlibrary $libname.a'
7646 # Create ${libname}_ixlibrary.a entries in /sys/libs.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007647 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'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007648 ;;
7649
7650beos*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007651 library_names_spec='${libname}${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007652 dynamic_linker="$host_os ld.so"
7653 shlibpath_var=LIBRARY_PATH
7654 ;;
7655
7656bsdi4*)
7657 version_type=linux
7658 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7660 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007661 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7662 shlibpath_var=LD_LIBRARY_PATH
7663 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7664 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007665 # the default ld.so.conf also contains /usr/contrib/lib and
7666 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7667 # libtool to hard-code these into programs
7668 ;;
7669
7670cygwin* | mingw* | pw32*)
7671 version_type=windows
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007672 shrext=".dll"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007673 need_version=no
7674 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007675
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007676 case $GCC,$host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007677 yes,cygwin* | yes,mingw* | yes,pw32*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007678 library_names_spec='$libname.dll.a'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007679 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7680 postinstall_cmds='base_file=`basename \${file}`~
7681 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007682 dldir=$destdir/`dirname \$dlpath`~
7683 test -d \$dldir || mkdir -p \$dldir~
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007684 $install_prog $dir/$dlname \$dldir/$dlname'
7685 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007686 dlpath=$dir/\$dldll~
7687 $rm \$dlpath'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007688 shlibpath_overrides_runpath=yes
7689
7690 case $host_os in
7691 cygwin*)
7692 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7693 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7694 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7695 ;;
7696 mingw*)
7697 # MinGW DLLs use traditional 'lib' prefix
7698 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7699 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7700 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7701 # It is most probably a Windows format PATH printed by
7702 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7703 # path with ; separators, and with drive letters. We can handle the
7704 # drive letters (cygwin fileutils understands them), so leave them,
7705 # especially as we might pass files found there to a mingw objdump,
7706 # which wouldn't understand a cygwinified path. Ahh.
7707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7708 else
7709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7710 fi
7711 ;;
7712 pw32*)
7713 # pw32 DLLs use 'pw' prefix rather than 'lib'
7714 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7715 ;;
7716 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007717 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007718
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007719 *)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007720 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007721 ;;
7722 esac
7723 dynamic_linker='Win32 ld.exe'
7724 # FIXME: first we should search . and the directory the executable is in
7725 shlibpath_var=PATH
7726 ;;
7727
7728darwin* | rhapsody*)
7729 dynamic_linker="$host_os dyld"
7730 version_type=darwin
7731 need_lib_prefix=no
7732 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007733 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7734 soname_spec='${libname}${release}${major}$shared_ext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007735 shlibpath_overrides_runpath=yes
7736 shlibpath_var=DYLD_LIBRARY_PATH
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007737 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7738 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7739 if test "$GCC" = yes; then
7740 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7741 else
7742 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7743 fi
7744 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7745 ;;
7746
7747dgux*)
7748 version_type=linux
7749 need_lib_prefix=no
7750 need_version=no
7751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7752 soname_spec='${libname}${release}${shared_ext}$major'
7753 shlibpath_var=LD_LIBRARY_PATH
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007754 ;;
7755
7756freebsd1*)
7757 dynamic_linker=no
7758 ;;
7759
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007760kfreebsd*-gnu)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007761 version_type=linux
7762 need_lib_prefix=no
7763 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7765 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007766 shlibpath_var=LD_LIBRARY_PATH
7767 shlibpath_overrides_runpath=no
7768 hardcode_into_libs=yes
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007769 dynamic_linker='GNU ld.so'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007770 ;;
7771
7772freebsd*)
7773 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7774 version_type=freebsd-$objformat
7775 case $version_type in
7776 freebsd-elf*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007778 need_version=no
7779 need_lib_prefix=no
7780 ;;
7781 freebsd-*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007783 need_version=yes
7784 ;;
7785 esac
7786 shlibpath_var=LD_LIBRARY_PATH
7787 case $host_os in
7788 freebsd2*)
7789 shlibpath_overrides_runpath=yes
7790 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007791 freebsd3.01* | freebsdelf3.01*)
7792 shlibpath_overrides_runpath=yes
7793 hardcode_into_libs=yes
7794 ;;
7795 *) # from 3.2 on
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007796 shlibpath_overrides_runpath=no
7797 hardcode_into_libs=yes
7798 ;;
7799 esac
7800 ;;
7801
7802gnu*)
7803 version_type=linux
7804 need_lib_prefix=no
7805 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7807 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007808 shlibpath_var=LD_LIBRARY_PATH
7809 hardcode_into_libs=yes
7810 ;;
7811
7812hpux9* | hpux10* | hpux11*)
7813 # Give a soname corresponding to the major version so that dld.sl refuses to
7814 # link against other versions.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007815 version_type=sunos
7816 need_lib_prefix=no
7817 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007818 case "$host_cpu" in
7819 ia64*)
7820 shrext='.so'
7821 hardcode_into_libs=yes
7822 dynamic_linker="$host_os dld.so"
7823 shlibpath_var=LD_LIBRARY_PATH
7824 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7826 soname_spec='${libname}${release}${shared_ext}$major'
7827 if test "X$HPUX_IA64_MODE" = X32; then
7828 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7829 else
7830 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7831 fi
7832 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7833 ;;
7834 hppa*64*)
7835 shrext='.sl'
7836 hardcode_into_libs=yes
7837 dynamic_linker="$host_os dld.sl"
7838 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7841 soname_spec='${libname}${release}${shared_ext}$major'
7842 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7844 ;;
7845 *)
7846 shrext='.sl'
7847 dynamic_linker="$host_os dld.sl"
7848 shlibpath_var=SHLIB_PATH
7849 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7851 soname_spec='${libname}${release}${shared_ext}$major'
7852 ;;
7853 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007854 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7855 postinstall_cmds='chmod 555 $lib'
7856 ;;
7857
7858irix5* | irix6* | nonstopux*)
7859 case $host_os in
7860 nonstopux*) version_type=nonstopux ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007861 *)
7862 if test "$lt_cv_prog_gnu_ld" = yes; then
7863 version_type=linux
7864 else
7865 version_type=irix
7866 fi ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007867 esac
7868 need_lib_prefix=no
7869 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007870 soname_spec='${libname}${release}${shared_ext}$major'
7871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007872 case $host_os in
7873 irix5* | nonstopux*)
7874 libsuff= shlibsuff=
7875 ;;
7876 *)
7877 case $LD in # libtool.m4 will add one of these switches to LD
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007878 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7879 libsuff= shlibsuff= libmagic=32-bit;;
7880 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7881 libsuff=32 shlibsuff=N32 libmagic=N32;;
7882 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7883 libsuff=64 shlibsuff=64 libmagic=64-bit;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007884 *) libsuff= shlibsuff= libmagic=never-match;;
7885 esac
7886 ;;
7887 esac
7888 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7889 shlibpath_overrides_runpath=no
7890 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7891 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007892 hardcode_into_libs=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007893 ;;
7894
7895# No shared lib support for Linux oldld, aout, or coff.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007896linux*oldld* | linux*aout* | linux*coff*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007897 dynamic_linker=no
7898 ;;
7899
7900# This must be Linux ELF.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007901linux*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007902 version_type=linux
7903 need_lib_prefix=no
7904 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7906 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7908 shlibpath_var=LD_LIBRARY_PATH
7909 shlibpath_overrides_runpath=no
7910 # This implies no fast_install, which is unacceptable.
7911 # Some rework will be needed to allow for fast_install
7912 # before this can be enabled.
7913 hardcode_into_libs=yes
7914
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007915 # Append ld.so.conf contents to the search path
7916 if test -f /etc/ld.so.conf; then
7917 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7918 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7919 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007920
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007921 # We used to test for /lib/ld.so.1 and disable shared libraries on
7922 # powerpc, because MkLinux only supported shared libraries with the
7923 # GNU dynamic linker. Since this was broken with cross compilers,
7924 # most powerpc-linux boxes support dynamic linking these days and
7925 # people can always --disable-shared, the test was removed, and we
7926 # assume the GNU/Linux dynamic linker is in use.
7927 dynamic_linker='GNU/Linux ld.so'
7928 ;;
7929
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007930knetbsd*-gnu)
7931 version_type=linux
7932 need_lib_prefix=no
7933 need_version=no
7934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7935 soname_spec='${libname}${release}${shared_ext}$major'
7936 shlibpath_var=LD_LIBRARY_PATH
7937 shlibpath_overrides_runpath=no
7938 hardcode_into_libs=yes
7939 dynamic_linker='GNU ld.so'
7940 ;;
7941
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007942netbsd*)
7943 version_type=sunos
7944 need_lib_prefix=no
7945 need_version=no
7946 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7949 dynamic_linker='NetBSD (a.out) ld.so'
7950 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7952 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007953 dynamic_linker='NetBSD ld.elf_so'
7954 fi
7955 shlibpath_var=LD_LIBRARY_PATH
7956 shlibpath_overrides_runpath=yes
7957 hardcode_into_libs=yes
7958 ;;
7959
7960newsos6)
7961 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7963 shlibpath_var=LD_LIBRARY_PATH
7964 shlibpath_overrides_runpath=yes
7965 ;;
7966
7967nto-qnx*)
7968 version_type=linux
7969 need_lib_prefix=no
7970 need_version=no
7971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7972 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007973 shlibpath_var=LD_LIBRARY_PATH
7974 shlibpath_overrides_runpath=yes
7975 ;;
7976
7977openbsd*)
7978 version_type=sunos
7979 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007980 need_version=yes
7981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7983 shlibpath_var=LD_LIBRARY_PATH
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007984 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007985 case $host_os in
7986 openbsd2.[89] | openbsd2.[89].*)
7987 shlibpath_overrides_runpath=no
7988 ;;
7989 *)
7990 shlibpath_overrides_runpath=yes
7991 ;;
7992 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007993 else
7994 shlibpath_overrides_runpath=yes
7995 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007996 ;;
7997
7998os2*)
7999 libname_spec='$name'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008000 shrext=".dll"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008001 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008002 library_names_spec='$libname${shared_ext} $libname.a'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008003 dynamic_linker='OS/2 ld.exe'
8004 shlibpath_var=LIBPATH
8005 ;;
8006
8007osf3* | osf4* | osf5*)
8008 version_type=osf
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008009 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008010 need_version=no
8011 soname_spec='${libname}${release}${shared_ext}$major'
8012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008013 shlibpath_var=LD_LIBRARY_PATH
8014 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8015 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008016 ;;
8017
8018sco3.2v5*)
8019 version_type=osf
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008020 soname_spec='${libname}${release}${shared_ext}$major'
8021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008022 shlibpath_var=LD_LIBRARY_PATH
8023 ;;
8024
8025solaris*)
8026 version_type=linux
8027 need_lib_prefix=no
8028 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8030 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008031 shlibpath_var=LD_LIBRARY_PATH
8032 shlibpath_overrides_runpath=yes
8033 hardcode_into_libs=yes
8034 # ldd complains unless libraries are executable
8035 postinstall_cmds='chmod +x $lib'
8036 ;;
8037
8038sunos4*)
8039 version_type=sunos
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008041 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8042 shlibpath_var=LD_LIBRARY_PATH
8043 shlibpath_overrides_runpath=yes
8044 if test "$with_gnu_ld" = yes; then
8045 need_lib_prefix=no
8046 fi
8047 need_version=yes
8048 ;;
8049
8050sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8051 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8053 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008054 shlibpath_var=LD_LIBRARY_PATH
8055 case $host_vendor in
8056 sni)
8057 shlibpath_overrides_runpath=no
8058 need_lib_prefix=no
8059 export_dynamic_flag_spec='${wl}-Blargedynsym'
8060 runpath_var=LD_RUN_PATH
8061 ;;
8062 siemens)
8063 need_lib_prefix=no
8064 ;;
8065 motorola)
8066 need_lib_prefix=no
8067 need_version=no
8068 shlibpath_overrides_runpath=no
8069 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8070 ;;
8071 esac
8072 ;;
8073
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008074sysv4*MP*)
8075 if test -d /usr/nec ;then
8076 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008077 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8078 soname_spec='$libname${shared_ext}.$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008079 shlibpath_var=LD_LIBRARY_PATH
8080 fi
8081 ;;
8082
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008083uts4*)
8084 version_type=linux
8085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8086 soname_spec='${libname}${release}${shared_ext}$major'
8087 shlibpath_var=LD_LIBRARY_PATH
8088 ;;
8089
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008090*)
8091 dynamic_linker=no
8092 ;;
8093esac
8094echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8095echo "${ECHO_T}$dynamic_linker" >&6
8096test "$dynamic_linker" = no && can_build_shared=no
8097
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008098echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8099echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8100hardcode_action=
8101if test -n "$hardcode_libdir_flag_spec" || \
8102 test -n "$runpath_var " || \
8103 test "X$hardcode_automatic"="Xyes" ; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008104
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008105 # We can hardcode non-existant directories.
8106 if test "$hardcode_direct" != no &&
8107 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8108 # have to relink, otherwise we might link with an installed library
8109 # when we should be linking with a yet-to-be-installed one
8110 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8111 test "$hardcode_minus_L" != no; then
8112 # Linking always hardcodes the temporary library directory.
8113 hardcode_action=relink
8114 else
8115 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8116 hardcode_action=immediate
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008117 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008118else
8119 # We cannot hardcode anything, or else we can only hardcode existing
8120 # directories.
8121 hardcode_action=unsupported
8122fi
8123echo "$as_me:$LINENO: result: $hardcode_action" >&5
8124echo "${ECHO_T}$hardcode_action" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008125
8126if test "$hardcode_action" = relink; then
8127 # Fast installation is not supported
8128 enable_fast_install=no
8129elif test "$shlibpath_overrides_runpath" = yes ||
8130 test "$enable_shared" = no; then
8131 # Fast installation is not necessary
8132 enable_fast_install=needless
8133fi
8134
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008135striplib=
8136old_striplib=
8137echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8138echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8139if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8140 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8141 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8142 echo "$as_me:$LINENO: result: yes" >&5
8143echo "${ECHO_T}yes" >&6
8144else
8145# FIXME - insert some real tests, host_os isn't really good enough
8146 case $host_os in
8147 darwin*)
8148 if test -n "$STRIP" ; then
8149 striplib="$STRIP -x"
8150 echo "$as_me:$LINENO: result: yes" >&5
8151echo "${ECHO_T}yes" >&6
8152 else
8153 echo "$as_me:$LINENO: result: no" >&5
8154echo "${ECHO_T}no" >&6
8155fi
8156 ;;
8157 *)
8158 echo "$as_me:$LINENO: result: no" >&5
8159echo "${ECHO_T}no" >&6
8160 ;;
8161 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008162fi
8163
8164if test "x$enable_dlopen" != xyes; then
8165 enable_dlopen=unknown
8166 enable_dlopen_self=unknown
8167 enable_dlopen_self_static=unknown
8168else
8169 lt_cv_dlopen=no
8170 lt_cv_dlopen_libs=
8171
8172 case $host_os in
8173 beos*)
8174 lt_cv_dlopen="load_add_on"
8175 lt_cv_dlopen_libs=
8176 lt_cv_dlopen_self=yes
8177 ;;
8178
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008179 mingw* | pw32*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008180 lt_cv_dlopen="LoadLibrary"
8181 lt_cv_dlopen_libs=
8182 ;;
8183
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008184 cygwin*)
8185 lt_cv_dlopen="dlopen"
8186 lt_cv_dlopen_libs=
8187 ;;
8188
8189 darwin*)
8190 # if libdl is installed we need to link against it
8191 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8192echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8193if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8195else
8196 ac_check_lib_save_LIBS=$LIBS
8197LIBS="-ldl $LIBS"
8198cat >conftest.$ac_ext <<_ACEOF
8199/* confdefs.h. */
8200_ACEOF
8201cat confdefs.h >>conftest.$ac_ext
8202cat >>conftest.$ac_ext <<_ACEOF
8203/* end confdefs.h. */
8204
8205/* Override any gcc2 internal prototype to avoid an error. */
8206#ifdef __cplusplus
8207extern "C"
8208#endif
8209/* We use char because int might match the return type of a gcc2
8210 builtin and then its argument prototype would still apply. */
8211char dlopen ();
8212int
8213main ()
8214{
8215dlopen ();
8216 ;
8217 return 0;
8218}
8219_ACEOF
8220rm -f conftest.$ac_objext conftest$ac_exeext
8221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008222 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008223 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008224 grep -v '^ *+' conftest.er1 >conftest.err
8225 rm -f conftest.er1
8226 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231 (eval $ac_try) 2>&5
8232 ac_status=$?
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; } &&
8235 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237 (eval $ac_try) 2>&5
8238 ac_status=$?
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; }; then
8241 ac_cv_lib_dl_dlopen=yes
8242else
8243 echo "$as_me: failed program was:" >&5
8244sed 's/^/| /' conftest.$ac_ext >&5
8245
8246ac_cv_lib_dl_dlopen=no
8247fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008248rm -f conftest.err conftest.$ac_objext \
8249 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008250LIBS=$ac_check_lib_save_LIBS
8251fi
8252echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8253echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8254if test $ac_cv_lib_dl_dlopen = yes; then
8255 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8256else
8257
8258 lt_cv_dlopen="dyld"
8259 lt_cv_dlopen_libs=
8260 lt_cv_dlopen_self=yes
8261
8262fi
8263
8264 ;;
8265
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008266 *)
8267 echo "$as_me:$LINENO: checking for shl_load" >&5
8268echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8269if test "${ac_cv_func_shl_load+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8271else
8272 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008273/* confdefs.h. */
8274_ACEOF
8275cat confdefs.h >>conftest.$ac_ext
8276cat >>conftest.$ac_ext <<_ACEOF
8277/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008278/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8280#define shl_load innocuous_shl_load
8281
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008282/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008283 which can conflict with char shl_load (); below.
8284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8285 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008286
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008287#ifdef __STDC__
8288# include <limits.h>
8289#else
8290# include <assert.h>
8291#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008292
8293#undef shl_load
8294
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008295/* Override any gcc2 internal prototype to avoid an error. */
8296#ifdef __cplusplus
8297extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008298{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008299#endif
8300/* We use char because int might match the return type of a gcc2
8301 builtin and then its argument prototype would still apply. */
8302char shl_load ();
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008303/* The GNU C library defines this for functions which it implements
8304 to always fail with ENOSYS. Some functions are actually named
8305 something starting with __ and the normal name is an alias. */
8306#if defined (__stub_shl_load) || defined (__stub___shl_load)
8307choke me
8308#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008309char (*f) () = shl_load;
8310#endif
8311#ifdef __cplusplus
8312}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008313#endif
8314
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008315int
8316main ()
8317{
8318return f != shl_load;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008319 ;
8320 return 0;
8321}
8322_ACEOF
8323rm -f conftest.$ac_objext conftest$ac_exeext
8324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008325 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008326 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008327 grep -v '^ *+' conftest.er1 >conftest.err
8328 rm -f conftest.er1
8329 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 (eval $ac_try) 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; } &&
8338 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 (eval $ac_try) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8344 ac_cv_func_shl_load=yes
8345else
8346 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008347sed 's/^/| /' conftest.$ac_ext >&5
8348
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008349ac_cv_func_shl_load=no
8350fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008351rm -f conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008353fi
8354echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8355echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8356if test $ac_cv_func_shl_load = yes; then
8357 lt_cv_dlopen="shl_load"
8358else
8359 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8360echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8361if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8363else
8364 ac_check_lib_save_LIBS=$LIBS
8365LIBS="-ldld $LIBS"
8366cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008367/* confdefs.h. */
8368_ACEOF
8369cat confdefs.h >>conftest.$ac_ext
8370cat >>conftest.$ac_ext <<_ACEOF
8371/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008372
8373/* Override any gcc2 internal prototype to avoid an error. */
8374#ifdef __cplusplus
8375extern "C"
8376#endif
8377/* We use char because int might match the return type of a gcc2
8378 builtin and then its argument prototype would still apply. */
8379char shl_load ();
8380int
8381main ()
8382{
8383shl_load ();
8384 ;
8385 return 0;
8386}
8387_ACEOF
8388rm -f conftest.$ac_objext conftest$ac_exeext
8389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008390 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008391 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008392 grep -v '^ *+' conftest.er1 >conftest.err
8393 rm -f conftest.er1
8394 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 (eval $ac_try) 2>&5
8400 ac_status=$?
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; } &&
8403 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 (eval $ac_try) 2>&5
8406 ac_status=$?
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; }; then
8409 ac_cv_lib_dld_shl_load=yes
8410else
8411 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008412sed 's/^/| /' conftest.$ac_ext >&5
8413
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008414ac_cv_lib_dld_shl_load=no
8415fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008416rm -f conftest.err conftest.$ac_objext \
8417 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008418LIBS=$ac_check_lib_save_LIBS
8419fi
8420echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8421echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8422if test $ac_cv_lib_dld_shl_load = yes; then
8423 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8424else
8425 echo "$as_me:$LINENO: checking for dlopen" >&5
8426echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8427if test "${ac_cv_func_dlopen+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8429else
8430 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008431/* confdefs.h. */
8432_ACEOF
8433cat confdefs.h >>conftest.$ac_ext
8434cat >>conftest.$ac_ext <<_ACEOF
8435/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008436/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8438#define dlopen innocuous_dlopen
8439
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008440/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008441 which can conflict with char dlopen (); below.
8442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8443 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008444
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008445#ifdef __STDC__
8446# include <limits.h>
8447#else
8448# include <assert.h>
8449#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008450
8451#undef dlopen
8452
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008453/* Override any gcc2 internal prototype to avoid an error. */
8454#ifdef __cplusplus
8455extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008456{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008457#endif
8458/* We use char because int might match the return type of a gcc2
8459 builtin and then its argument prototype would still apply. */
8460char dlopen ();
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008461/* The GNU C library defines this for functions which it implements
8462 to always fail with ENOSYS. Some functions are actually named
8463 something starting with __ and the normal name is an alias. */
8464#if defined (__stub_dlopen) || defined (__stub___dlopen)
8465choke me
8466#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008467char (*f) () = dlopen;
8468#endif
8469#ifdef __cplusplus
8470}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008471#endif
8472
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008473int
8474main ()
8475{
8476return f != dlopen;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008477 ;
8478 return 0;
8479}
8480_ACEOF
8481rm -f conftest.$ac_objext conftest$ac_exeext
8482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008483 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008484 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008485 grep -v '^ *+' conftest.er1 >conftest.err
8486 rm -f conftest.er1
8487 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 (eval $ac_try) 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 (eval $ac_try) 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; }; then
8502 ac_cv_func_dlopen=yes
8503else
8504 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008505sed 's/^/| /' conftest.$ac_ext >&5
8506
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008507ac_cv_func_dlopen=no
8508fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008509rm -f conftest.err conftest.$ac_objext \
8510 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008511fi
8512echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8513echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8514if test $ac_cv_func_dlopen = yes; then
8515 lt_cv_dlopen="dlopen"
8516else
8517 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8518echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8519if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8520 echo $ECHO_N "(cached) $ECHO_C" >&6
8521else
8522 ac_check_lib_save_LIBS=$LIBS
8523LIBS="-ldl $LIBS"
8524cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008525/* confdefs.h. */
8526_ACEOF
8527cat confdefs.h >>conftest.$ac_ext
8528cat >>conftest.$ac_ext <<_ACEOF
8529/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008530
8531/* Override any gcc2 internal prototype to avoid an error. */
8532#ifdef __cplusplus
8533extern "C"
8534#endif
8535/* We use char because int might match the return type of a gcc2
8536 builtin and then its argument prototype would still apply. */
8537char dlopen ();
8538int
8539main ()
8540{
8541dlopen ();
8542 ;
8543 return 0;
8544}
8545_ACEOF
8546rm -f conftest.$ac_objext conftest$ac_exeext
8547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008548 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008549 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008550 grep -v '^ *+' conftest.er1 >conftest.err
8551 rm -f conftest.er1
8552 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557 (eval $ac_try) 2>&5
8558 ac_status=$?
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; } &&
8561 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563 (eval $ac_try) 2>&5
8564 ac_status=$?
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 ac_cv_lib_dl_dlopen=yes
8568else
8569 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008570sed 's/^/| /' conftest.$ac_ext >&5
8571
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008572ac_cv_lib_dl_dlopen=no
8573fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008574rm -f conftest.err conftest.$ac_objext \
8575 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008576LIBS=$ac_check_lib_save_LIBS
8577fi
8578echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8579echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8580if test $ac_cv_lib_dl_dlopen = yes; then
8581 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8582else
8583 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8584echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8585if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8587else
8588 ac_check_lib_save_LIBS=$LIBS
8589LIBS="-lsvld $LIBS"
8590cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008591/* confdefs.h. */
8592_ACEOF
8593cat confdefs.h >>conftest.$ac_ext
8594cat >>conftest.$ac_ext <<_ACEOF
8595/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008596
8597/* Override any gcc2 internal prototype to avoid an error. */
8598#ifdef __cplusplus
8599extern "C"
8600#endif
8601/* We use char because int might match the return type of a gcc2
8602 builtin and then its argument prototype would still apply. */
8603char dlopen ();
8604int
8605main ()
8606{
8607dlopen ();
8608 ;
8609 return 0;
8610}
8611_ACEOF
8612rm -f conftest.$ac_objext conftest$ac_exeext
8613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008614 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008615 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008616 grep -v '^ *+' conftest.er1 >conftest.err
8617 rm -f conftest.er1
8618 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 (eval $ac_try) 2>&5
8624 ac_status=$?
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; } &&
8627 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 (eval $ac_try) 2>&5
8630 ac_status=$?
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; }; then
8633 ac_cv_lib_svld_dlopen=yes
8634else
8635 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008636sed 's/^/| /' conftest.$ac_ext >&5
8637
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008638ac_cv_lib_svld_dlopen=no
8639fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008640rm -f conftest.err conftest.$ac_objext \
8641 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008642LIBS=$ac_check_lib_save_LIBS
8643fi
8644echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8645echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8646if test $ac_cv_lib_svld_dlopen = yes; then
8647 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8648else
8649 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8650echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8651if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8653else
8654 ac_check_lib_save_LIBS=$LIBS
8655LIBS="-ldld $LIBS"
8656cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008657/* confdefs.h. */
8658_ACEOF
8659cat confdefs.h >>conftest.$ac_ext
8660cat >>conftest.$ac_ext <<_ACEOF
8661/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008662
8663/* Override any gcc2 internal prototype to avoid an error. */
8664#ifdef __cplusplus
8665extern "C"
8666#endif
8667/* We use char because int might match the return type of a gcc2
8668 builtin and then its argument prototype would still apply. */
8669char dld_link ();
8670int
8671main ()
8672{
8673dld_link ();
8674 ;
8675 return 0;
8676}
8677_ACEOF
8678rm -f conftest.$ac_objext conftest$ac_exeext
8679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008680 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008681 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008682 grep -v '^ *+' conftest.er1 >conftest.err
8683 rm -f conftest.er1
8684 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 (eval $ac_try) 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; } &&
8693 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695 (eval $ac_try) 2>&5
8696 ac_status=$?
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8699 ac_cv_lib_dld_dld_link=yes
8700else
8701 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008702sed 's/^/| /' conftest.$ac_ext >&5
8703
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008704ac_cv_lib_dld_dld_link=no
8705fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008706rm -f conftest.err conftest.$ac_objext \
8707 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008708LIBS=$ac_check_lib_save_LIBS
8709fi
8710echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8711echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8712if test $ac_cv_lib_dld_dld_link = yes; then
8713 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8714fi
8715
8716
8717fi
8718
8719
8720fi
8721
8722
8723fi
8724
8725
8726fi
8727
8728
8729fi
8730
8731 ;;
8732 esac
8733
8734 if test "x$lt_cv_dlopen" != xno; then
8735 enable_dlopen=yes
8736 else
8737 enable_dlopen=no
8738 fi
8739
8740 case $lt_cv_dlopen in
8741 dlopen)
8742 save_CPPFLAGS="$CPPFLAGS"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008743 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008744
8745 save_LDFLAGS="$LDFLAGS"
8746 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8747
8748 save_LIBS="$LIBS"
8749 LIBS="$lt_cv_dlopen_libs $LIBS"
8750
8751 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8752echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8753if test "${lt_cv_dlopen_self+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8755else
8756 if test "$cross_compiling" = yes; then :
8757 lt_cv_dlopen_self=cross
8758else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008759 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008760 lt_status=$lt_dlunknown
8761 cat > conftest.$ac_ext <<EOF
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008762#line 8762 "configure"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008763#include "confdefs.h"
8764
8765#if HAVE_DLFCN_H
8766#include <dlfcn.h>
8767#endif
8768
8769#include <stdio.h>
8770
8771#ifdef RTLD_GLOBAL
8772# define LT_DLGLOBAL RTLD_GLOBAL
8773#else
8774# ifdef DL_GLOBAL
8775# define LT_DLGLOBAL DL_GLOBAL
8776# else
8777# define LT_DLGLOBAL 0
8778# endif
8779#endif
8780
8781/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8782 find out it does not work in some platform. */
8783#ifndef LT_DLLAZY_OR_NOW
8784# ifdef RTLD_LAZY
8785# define LT_DLLAZY_OR_NOW RTLD_LAZY
8786# else
8787# ifdef DL_LAZY
8788# define LT_DLLAZY_OR_NOW DL_LAZY
8789# else
8790# ifdef RTLD_NOW
8791# define LT_DLLAZY_OR_NOW RTLD_NOW
8792# else
8793# ifdef DL_NOW
8794# define LT_DLLAZY_OR_NOW DL_NOW
8795# else
8796# define LT_DLLAZY_OR_NOW 0
8797# endif
8798# endif
8799# endif
8800# endif
8801#endif
8802
8803#ifdef __cplusplus
8804extern "C" void exit (int);
8805#endif
8806
8807void fnord() { int i=42;}
8808int main ()
8809{
8810 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8811 int status = $lt_dlunknown;
8812
8813 if (self)
8814 {
8815 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8816 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8817 /* dlclose (self); */
8818 }
8819
8820 exit (status);
8821}
8822EOF
8823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824 (eval $ac_link) 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8828 (./conftest; exit; ) 2>/dev/null
8829 lt_status=$?
8830 case x$lt_status in
8831 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8832 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8833 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8834 esac
8835 else :
8836 # compilation failed
8837 lt_cv_dlopen_self=no
8838 fi
8839fi
8840rm -fr conftest*
8841
8842
8843fi
8844echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8845echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8846
8847 if test "x$lt_cv_dlopen_self" = xyes; then
8848 LDFLAGS="$LDFLAGS $link_static_flag"
8849 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8850echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8851if test "${lt_cv_dlopen_self_static+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8853else
8854 if test "$cross_compiling" = yes; then :
8855 lt_cv_dlopen_self_static=cross
8856else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008857 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008858 lt_status=$lt_dlunknown
8859 cat > conftest.$ac_ext <<EOF
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008860#line 8860 "configure"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008861#include "confdefs.h"
8862
8863#if HAVE_DLFCN_H
8864#include <dlfcn.h>
8865#endif
8866
8867#include <stdio.h>
8868
8869#ifdef RTLD_GLOBAL
8870# define LT_DLGLOBAL RTLD_GLOBAL
8871#else
8872# ifdef DL_GLOBAL
8873# define LT_DLGLOBAL DL_GLOBAL
8874# else
8875# define LT_DLGLOBAL 0
8876# endif
8877#endif
8878
8879/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8880 find out it does not work in some platform. */
8881#ifndef LT_DLLAZY_OR_NOW
8882# ifdef RTLD_LAZY
8883# define LT_DLLAZY_OR_NOW RTLD_LAZY
8884# else
8885# ifdef DL_LAZY
8886# define LT_DLLAZY_OR_NOW DL_LAZY
8887# else
8888# ifdef RTLD_NOW
8889# define LT_DLLAZY_OR_NOW RTLD_NOW
8890# else
8891# ifdef DL_NOW
8892# define LT_DLLAZY_OR_NOW DL_NOW
8893# else
8894# define LT_DLLAZY_OR_NOW 0
8895# endif
8896# endif
8897# endif
8898# endif
8899#endif
8900
8901#ifdef __cplusplus
8902extern "C" void exit (int);
8903#endif
8904
8905void fnord() { int i=42;}
8906int main ()
8907{
8908 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8909 int status = $lt_dlunknown;
8910
8911 if (self)
8912 {
8913 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8914 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8915 /* dlclose (self); */
8916 }
8917
8918 exit (status);
8919}
8920EOF
8921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922 (eval $ac_link) 2>&5
8923 ac_status=$?
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8926 (./conftest; exit; ) 2>/dev/null
8927 lt_status=$?
8928 case x$lt_status in
8929 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8930 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8931 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8932 esac
8933 else :
8934 # compilation failed
8935 lt_cv_dlopen_self_static=no
8936 fi
8937fi
8938rm -fr conftest*
8939
8940
8941fi
8942echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8943echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8944 fi
8945
8946 CPPFLAGS="$save_CPPFLAGS"
8947 LDFLAGS="$save_LDFLAGS"
8948 LIBS="$save_LIBS"
8949 ;;
8950 esac
8951
8952 case $lt_cv_dlopen_self in
8953 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8954 *) enable_dlopen_self=unknown ;;
8955 esac
8956
8957 case $lt_cv_dlopen_self_static in
8958 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8959 *) enable_dlopen_self_static=unknown ;;
8960 esac
8961fi
8962
8963
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008964# Report which librarie types wil actually be built
8965echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8966echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8967echo "$as_me:$LINENO: result: $can_build_shared" >&5
8968echo "${ECHO_T}$can_build_shared" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008969
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008970echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8971echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8972test "$can_build_shared" = "no" && enable_shared=no
8973
8974# On AIX, shared libraries and static libraries use the same namespace, and
8975# are all built from PIC.
8976case "$host_os" in
8977aix3*)
8978 test "$enable_shared" = yes && enable_static=no
8979 if test -n "$RANLIB"; then
8980 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8981 postinstall_cmds='$RANLIB $lib'
8982 fi
8983 ;;
8984
8985aix4*)
8986 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8987 test "$enable_shared" = yes && enable_static=no
8988 fi
8989 ;;
8990 darwin* | rhapsody*)
8991 if test "$GCC" = yes; then
8992 archive_cmds_need_lc=no
8993 case "$host_os" in
8994 rhapsody* | darwin1.[012])
8995 allow_undefined_flag='-undefined suppress'
8996 ;;
8997 *) # Darwin 1.3 on
8998 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8999 allow_undefined_flag='-flat_namespace -undefined suppress'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009000 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009001 case ${MACOSX_DEPLOYMENT_TARGET} in
9002 10.[012])
9003 allow_undefined_flag='-flat_namespace -undefined suppress'
9004 ;;
9005 10.*)
9006 allow_undefined_flag='-undefined dynamic_lookup'
9007 ;;
9008 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009009 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009010 ;;
9011 esac
9012 output_verbose_link_cmd='echo'
9013 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9014 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9015 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9016 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9017 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9018 hardcode_direct=no
9019 hardcode_automatic=yes
9020 hardcode_shlibpath_var=unsupported
9021 whole_archive_flag_spec='-all_load $convenience'
9022 link_all_deplibs=yes
9023 else
9024 ld_shlibs=no
9025 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009026 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009027esac
9028echo "$as_me:$LINENO: result: $enable_shared" >&5
9029echo "${ECHO_T}$enable_shared" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009030
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009031echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9032echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9033# Make sure either enable_shared or enable_static is yes.
9034test "$enable_shared" = yes || enable_static=yes
9035echo "$as_me:$LINENO: result: $enable_static" >&5
9036echo "${ECHO_T}$enable_static" >&6
9037
9038# The else clause should only fire when bootstrapping the
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009039# libtool distribution, otherwise you forgot to ship ltmain.sh
9040# with your package, and you will get complaints that there are
9041# no rules to generate ltmain.sh.
9042if test -f "$ltmain"; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009043 # See if we are running on zsh, and set the options which allow our commands through
9044 # without removal of \ escapes.
9045 if test -n "${ZSH_VERSION+set}" ; then
9046 setopt NO_GLOB_SUBST
9047 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009048 # Now quote all the things that may contain metacharacters while being
9049 # careful not to overquote the AC_SUBSTed values. We take copies of the
9050 # variables and quote the copies for generation of the libtool script.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009051 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9052 SED SHELL STRIP \
9053 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9054 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9055 deplibs_check_method reload_flag reload_cmds need_locks \
9056 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9057 lt_cv_sys_global_symbol_to_c_name_address \
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009058 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009059 old_postinstall_cmds old_postuninstall_cmds \
9060 compiler \
9061 CC \
9062 LD \
9063 lt_prog_compiler_wl \
9064 lt_prog_compiler_pic \
9065 lt_prog_compiler_static \
9066 lt_prog_compiler_no_builtin_flag \
9067 export_dynamic_flag_spec \
9068 thread_safe_flag_spec \
9069 whole_archive_flag_spec \
9070 enable_shared_with_static_runtimes \
9071 old_archive_cmds \
9072 old_archive_from_new_cmds \
9073 predep_objects \
9074 postdep_objects \
9075 predeps \
9076 postdeps \
9077 compiler_lib_search_path \
9078 archive_cmds \
9079 archive_expsym_cmds \
9080 postinstall_cmds \
9081 postuninstall_cmds \
9082 old_archive_from_expsyms_cmds \
9083 allow_undefined_flag \
9084 no_undefined_flag \
9085 export_symbols_cmds \
9086 hardcode_libdir_flag_spec \
9087 hardcode_libdir_flag_spec_ld \
9088 hardcode_libdir_separator \
9089 hardcode_automatic \
9090 module_cmds \
9091 module_expsym_cmds \
9092 lt_cv_prog_compiler_c_o \
9093 exclude_expsyms \
9094 include_expsyms; do
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009095
9096 case $var in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009097 old_archive_cmds | \
9098 old_archive_from_new_cmds | \
9099 archive_cmds | \
9100 archive_expsym_cmds | \
9101 module_cmds | \
9102 module_expsym_cmds | \
9103 old_archive_from_expsyms_cmds | \
9104 export_symbols_cmds | \
9105 extract_expsyms_cmds | reload_cmds | finish_cmds | \
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009106 postinstall_cmds | postuninstall_cmds | \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009107 old_postinstall_cmds | old_postuninstall_cmds | \
9108 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009109 # Double-quote double-evaled strings.
9110 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9111 ;;
9112 *)
9113 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9114 ;;
9115 esac
9116 done
9117
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009118 case $lt_echo in
9119 *'\$0 --fallback-echo"')
9120 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9121 ;;
9122 esac
9123
9124cfgfile="${ofile}T"
9125 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9126 $rm -f "$cfgfile"
9127 { echo "$as_me:$LINENO: creating $ofile" >&5
9128echo "$as_me: creating $ofile" >&6;}
9129
9130 cat <<__EOF__ >> "$cfgfile"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009131#! $SHELL
9132
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009133# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009134# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9135# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9136#
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009137# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9138# Free Software Foundation, Inc.
9139#
9140# This file is part of GNU Libtool:
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009141# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9142#
9143# This program is free software; you can redistribute it and/or modify
9144# it under the terms of the GNU General Public License as published by
9145# the Free Software Foundation; either version 2 of the License, or
9146# (at your option) any later version.
9147#
9148# This program is distributed in the hope that it will be useful, but
9149# WITHOUT ANY WARRANTY; without even the implied warranty of
9150# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9151# General Public License for more details.
9152#
9153# You should have received a copy of the GNU General Public License
9154# along with this program; if not, write to the Free Software
9155# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9156#
9157# As a special exception to the GNU General Public License, if you
9158# distribute this file as part of a program that contains a
9159# configuration script generated by Autoconf, you may include it under
9160# the same distribution terms that you use for the rest of that program.
9161
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009162# A sed program that does not truncate output.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009163SED=$lt_SED
9164
9165# Sed that helps us avoid accidentally triggering echo(1) options like -n.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009166Xsed="$SED -e s/^X//"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009167
9168# The HP-UX ksh and POSIX shell print the target directory to stdout
9169# if CDPATH is set.
9170if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9171
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009172# The names of the tagged configurations supported by this script.
9173available_tags=
9174
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009175# ### BEGIN LIBTOOL CONFIG
9176
9177# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9178
9179# Shell to use when invoking shell scripts.
9180SHELL=$lt_SHELL
9181
9182# Whether or not to build shared libraries.
9183build_libtool_libs=$enable_shared
9184
9185# Whether or not to build static libraries.
9186build_old_libs=$enable_static
9187
9188# Whether or not to add -lc for building shared libraries.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009189build_libtool_need_lc=$archive_cmds_need_lc
9190
9191# Whether or not to disallow shared libs when runtime libs are static
9192allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009193
9194# Whether or not to optimize for fast installation.
9195fast_install=$enable_fast_install
9196
9197# The host system.
9198host_alias=$host_alias
9199host=$host
9200
9201# An echo program that does not interpret backslashes.
9202echo=$lt_echo
9203
9204# The archiver.
9205AR=$lt_AR
9206AR_FLAGS=$lt_AR_FLAGS
9207
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009208# A C compiler.
9209LTCC=$lt_LTCC
9210
9211# A language-specific compiler.
9212CC=$lt_compiler
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009213
9214# Is the compiler the GNU C compiler?
9215with_gcc=$GCC
9216
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009217# An ERE matcher.
9218EGREP=$lt_EGREP
9219
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009220# The linker used to build libraries.
9221LD=$lt_LD
9222
9223# Whether we need hard or soft links.
9224LN_S=$lt_LN_S
9225
9226# A BSD-compatible nm program.
9227NM=$lt_NM
9228
9229# A symbol stripping program
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009230STRIP=$lt_STRIP
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009231
9232# Used to examine libraries when file_magic_cmd begins "file"
9233MAGIC_CMD=$MAGIC_CMD
9234
9235# Used on cygwin: DLL creation program.
9236DLLTOOL="$DLLTOOL"
9237
9238# Used on cygwin: object dumper.
9239OBJDUMP="$OBJDUMP"
9240
9241# Used on cygwin: assembler.
9242AS="$AS"
9243
9244# The name of the directory that contains temporary libtool files.
9245objdir=$objdir
9246
9247# How to create reloadable object files.
9248reload_flag=$lt_reload_flag
9249reload_cmds=$lt_reload_cmds
9250
9251# How to pass a linker flag through the compiler.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009252wl=$lt_lt_prog_compiler_wl
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009253
9254# Object file suffix (normally "o").
9255objext="$ac_objext"
9256
9257# Old archive suffix (normally "a").
9258libext="$libext"
9259
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009260# Shared library suffix (normally ".so").
9261shrext='$shrext'
9262
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009263# Executable file suffix (normally "").
9264exeext="$exeext"
9265
9266# Additional compiler flags for building library objects.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009267pic_flag=$lt_lt_prog_compiler_pic
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009268pic_mode=$pic_mode
9269
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009270# What is the maximum length of a command?
9271max_cmd_len=$lt_cv_sys_max_cmd_len
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009272
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009273# Does compiler simultaneously support -c and -o options?
9274compiler_c_o=$lt_lt_cv_prog_compiler_c_o
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009275
9276# Must we lock files when doing compilation ?
9277need_locks=$lt_need_locks
9278
9279# Do we need the lib prefix for modules?
9280need_lib_prefix=$need_lib_prefix
9281
9282# Do we need a version for libraries?
9283need_version=$need_version
9284
9285# Whether dlopen is supported.
9286dlopen_support=$enable_dlopen
9287
9288# Whether dlopen of programs is supported.
9289dlopen_self=$enable_dlopen_self
9290
9291# Whether dlopen of statically linked programs is supported.
9292dlopen_self_static=$enable_dlopen_self_static
9293
9294# Compiler flag to prevent dynamic linking.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009295link_static_flag=$lt_lt_prog_compiler_static
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009296
9297# Compiler flag to turn off builtin functions.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009298no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009299
9300# Compiler flag to allow reflexive dlopens.
9301export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9302
9303# Compiler flag to generate shared objects directly from archives.
9304whole_archive_flag_spec=$lt_whole_archive_flag_spec
9305
9306# Compiler flag to generate thread-safe objects.
9307thread_safe_flag_spec=$lt_thread_safe_flag_spec
9308
9309# Library versioning type.
9310version_type=$version_type
9311
9312# Format of library name prefix.
9313libname_spec=$lt_libname_spec
9314
9315# List of archive names. First name is the real one, the rest are links.
9316# The last name is the one that the linker finds with -lNAME.
9317library_names_spec=$lt_library_names_spec
9318
9319# The coded name of the library, if different from the real name.
9320soname_spec=$lt_soname_spec
9321
9322# Commands used to build and install an old-style archive.
9323RANLIB=$lt_RANLIB
9324old_archive_cmds=$lt_old_archive_cmds
9325old_postinstall_cmds=$lt_old_postinstall_cmds
9326old_postuninstall_cmds=$lt_old_postuninstall_cmds
9327
9328# Create an old-style archive from a shared archive.
9329old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9330
9331# Create a temporary old-style archive to link instead of a shared archive.
9332old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9333
9334# Commands used to build and install a shared archive.
9335archive_cmds=$lt_archive_cmds
9336archive_expsym_cmds=$lt_archive_expsym_cmds
9337postinstall_cmds=$lt_postinstall_cmds
9338postuninstall_cmds=$lt_postuninstall_cmds
9339
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009340# Commands used to build a loadable module (assumed same as above if empty)
9341module_cmds=$lt_module_cmds
9342module_expsym_cmds=$lt_module_expsym_cmds
9343
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009344# Commands to strip libraries.
9345old_striplib=$lt_old_striplib
9346striplib=$lt_striplib
9347
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009348# Dependencies to place before the objects being linked to create a
9349# shared library.
9350predep_objects=$lt_predep_objects
9351
9352# Dependencies to place after the objects being linked to create a
9353# shared library.
9354postdep_objects=$lt_postdep_objects
9355
9356# Dependencies to place before the objects being linked to create a
9357# shared library.
9358predeps=$lt_predeps
9359
9360# Dependencies to place after the objects being linked to create a
9361# shared library.
9362postdeps=$lt_postdeps
9363
9364# The library search path used internally by the compiler when linking
9365# a shared library.
9366compiler_lib_search_path=$lt_compiler_lib_search_path
9367
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009368# Method to check whether dependent libraries are shared objects.
9369deplibs_check_method=$lt_deplibs_check_method
9370
9371# Command to use when deplibs_check_method == file_magic.
9372file_magic_cmd=$lt_file_magic_cmd
9373
9374# Flag that allows shared libraries with undefined symbols to be built.
9375allow_undefined_flag=$lt_allow_undefined_flag
9376
9377# Flag that forces no undefined symbols.
9378no_undefined_flag=$lt_no_undefined_flag
9379
9380# Commands used to finish a libtool library installation in a directory.
9381finish_cmds=$lt_finish_cmds
9382
9383# Same as above, but a single script fragment to be evaled but not shown.
9384finish_eval=$lt_finish_eval
9385
9386# Take the output of nm and produce a listing of raw symbols and C names.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009387global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009388
9389# Transform the output of nm in a proper C declaration
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009390global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009391
9392# Transform the output of nm in a C name address pair
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009393global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009394
9395# This is the shared library runtime path variable.
9396runpath_var=$runpath_var
9397
9398# This is the shared library path variable.
9399shlibpath_var=$shlibpath_var
9400
9401# Is shlibpath searched before the hard-coded library search path?
9402shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9403
9404# How to hardcode a shared library path into an executable.
9405hardcode_action=$hardcode_action
9406
9407# Whether we should hardcode library paths into libraries.
9408hardcode_into_libs=$hardcode_into_libs
9409
9410# Flag to hardcode \$libdir into a binary during linking.
9411# This must work even if \$libdir does not exist.
9412hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9413
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009414# If ld is used when linking, flag to hardcode \$libdir into
9415# a binary during linking. This must work even if \$libdir does
9416# not exist.
9417hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9418
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009419# Whether we need a single -rpath flag with a separated argument.
9420hardcode_libdir_separator=$lt_hardcode_libdir_separator
9421
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009422# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009423# resulting binary.
9424hardcode_direct=$hardcode_direct
9425
9426# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9427# resulting binary.
9428hardcode_minus_L=$hardcode_minus_L
9429
9430# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9431# the resulting binary.
9432hardcode_shlibpath_var=$hardcode_shlibpath_var
9433
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009434# Set to yes if building a shared library automatically hardcodes DIR into the library
9435# and all subsequent libraries and executables linked against it.
9436hardcode_automatic=$hardcode_automatic
9437
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009438# Variables whose values should be saved in libtool wrapper scripts and
9439# restored at relink time.
9440variables_saved_for_relink="$variables_saved_for_relink"
9441
9442# Whether libtool must link a program against all its dependency libraries.
9443link_all_deplibs=$link_all_deplibs
9444
9445# Compile-time system search path for libraries
9446sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9447
9448# Run-time system search path for libraries
9449sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9450
9451# Fix the shell variable \$srcfile for the compiler.
9452fix_srcfile_path="$fix_srcfile_path"
9453
9454# Set to yes if exported symbols are required.
9455always_export_symbols=$always_export_symbols
9456
9457# The commands to list exported symbols.
9458export_symbols_cmds=$lt_export_symbols_cmds
9459
9460# The commands to extract the exported symbol list from a shared archive.
9461extract_expsyms_cmds=$lt_extract_expsyms_cmds
9462
9463# Symbols that should not be listed in the preloaded symbols.
9464exclude_expsyms=$lt_exclude_expsyms
9465
9466# Symbols that must always be exported.
9467include_expsyms=$lt_include_expsyms
9468
9469# ### END LIBTOOL CONFIG
9470
9471__EOF__
9472
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009473
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009474 case $host_os in
9475 aix3*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009476 cat <<\EOF >> "$cfgfile"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009477
9478# AIX sometimes has problems with the GCC collect2 program. For some
9479# reason, if we set the COLLECT_NAMES environment variable, the problems
9480# vanish in a puff of smoke.
9481if test "X${COLLECT_NAMES+set}" != Xset; then
9482 COLLECT_NAMES=
9483 export COLLECT_NAMES
9484fi
9485EOF
9486 ;;
9487 esac
9488
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009489 # We use sed instead of cat because bash on DJGPP gets confused if
9490 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9491 # text mode, it properly converts lines to CR/LF. This bash problem
9492 # is reportedly fixed, but why not run on old versions too?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009493 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009494
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009495 mv -f "$cfgfile" "$ofile" || \
9496 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009497 chmod +x "$ofile"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009498
9499else
9500 # If there is no Makefile yet, we rely on a make rule to execute
9501 # `config.status --recheck' to rerun these tests and create the
9502 # libtool script then.
9503 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9504 if test -f "$ltmain_in"; then
9505 test -f Makefile && make "$ltmain"
9506 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009507fi
9508
9509
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009510ac_ext=c
9511ac_cpp='$CPP $CPPFLAGS'
9512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9514ac_compiler_gnu=$ac_cv_c_compiler_gnu
9515
9516CC="$lt_save_CC"
9517
9518
9519# Check whether --with-tags or --without-tags was given.
9520if test "${with_tags+set}" = set; then
9521 withval="$with_tags"
9522 tagnames="$withval"
9523fi;
9524
9525if test -f "$ltmain" && test -n "$tagnames"; then
9526 if test ! -f "${ofile}"; then
9527 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9528echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9529 fi
9530
9531 if test -z "$LTCC"; then
9532 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9533 if test -z "$LTCC"; then
9534 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9535echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9536 else
9537 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9538echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9539 fi
9540 fi
9541
9542 # Extract list of available tagged configurations in $ofile.
9543 # Note that this assumes the entire list is on one line.
9544 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9545
9546 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9547 for tagname in $tagnames; do
9548 IFS="$lt_save_ifs"
9549 # Check whether tagname contains only valid characters
9550 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9551 "") ;;
9552 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9553echo "$as_me: error: invalid tag name: $tagname" >&2;}
9554 { (exit 1); exit 1; }; }
9555 ;;
9556 esac
9557
9558 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9559 then
9560 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9561echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9562 { (exit 1); exit 1; }; }
9563 fi
9564
9565 # Update the list of available tags.
9566 if test -n "$tagname"; then
9567 echo appending configuration tag \"$tagname\" to $ofile
9568
9569 case $tagname in
9570 CXX)
9571 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9572 ac_ext=cc
9573ac_cpp='$CXXCPP $CPPFLAGS'
9574ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9575ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9576ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9577
9578
9579
9580
9581archive_cmds_need_lc_CXX=no
9582allow_undefined_flag_CXX=
9583always_export_symbols_CXX=no
9584archive_expsym_cmds_CXX=
9585export_dynamic_flag_spec_CXX=
9586hardcode_direct_CXX=no
9587hardcode_libdir_flag_spec_CXX=
9588hardcode_libdir_flag_spec_ld_CXX=
9589hardcode_libdir_separator_CXX=
9590hardcode_minus_L_CXX=no
9591hardcode_automatic_CXX=no
9592module_cmds_CXX=
9593module_expsym_cmds_CXX=
9594link_all_deplibs_CXX=unknown
9595old_archive_cmds_CXX=$old_archive_cmds
9596no_undefined_flag_CXX=
9597whole_archive_flag_spec_CXX=
9598enable_shared_with_static_runtimes_CXX=no
9599
9600# Dependencies to place before and after the object being linked:
9601predep_objects_CXX=
9602postdep_objects_CXX=
9603predeps_CXX=
9604postdeps_CXX=
9605compiler_lib_search_path_CXX=
9606
9607# Source file extension for C++ test sources.
9608ac_ext=cc
9609
9610# Object file extension for compiled C++ test sources.
9611objext=o
9612objext_CXX=$objext
9613
9614# Code to be used in simple compile tests
9615lt_simple_compile_test_code="int some_variable = 0;\n"
9616
9617# Code to be used in simple link tests
9618lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9619
9620# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9621
9622# If no C compiler was specified, use CC.
9623LTCC=${LTCC-"$CC"}
9624
9625# Allow CC to be a program name with arguments.
9626compiler=$CC
9627
9628
9629# Allow CC to be a program name with arguments.
9630lt_save_CC=$CC
9631lt_save_LD=$LD
9632lt_save_GCC=$GCC
9633GCC=$GXX
9634lt_save_with_gnu_ld=$with_gnu_ld
9635lt_save_path_LD=$lt_cv_path_LD
9636if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9637 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9638else
9639 unset lt_cv_prog_gnu_ld
9640fi
9641if test -n "${lt_cv_path_LDCXX+set}"; then
9642 lt_cv_path_LD=$lt_cv_path_LDCXX
9643else
9644 unset lt_cv_path_LD
9645fi
9646test -z "${LDCXX+set}" || LD=$LDCXX
9647CC=${CXX-"c++"}
9648compiler=$CC
9649compiler_CXX=$CC
9650cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9651
9652# We don't want -fno-exception wen compiling C++ code, so set the
9653# no_builtin_flag separately
9654if test "$GXX" = yes; then
9655 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9656else
9657 lt_prog_compiler_no_builtin_flag_CXX=
9658fi
9659
9660if test "$GXX" = yes; then
9661 # Set up default GNU C++ configuration
9662
9663
9664# Check whether --with-gnu-ld or --without-gnu-ld was given.
9665if test "${with_gnu_ld+set}" = set; then
9666 withval="$with_gnu_ld"
9667 test "$withval" = no || with_gnu_ld=yes
9668else
9669 with_gnu_ld=no
9670fi;
9671ac_prog=ld
9672if test "$GCC" = yes; then
9673 # Check if gcc -print-prog-name=ld gives a path.
9674 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9675echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9676 case $host in
9677 *-*-mingw*)
9678 # gcc leaves a trailing carriage return which upsets mingw
9679 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9680 *)
9681 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9682 esac
9683 case $ac_prog in
9684 # Accept absolute paths.
9685 [\\/]* | ?:[\\/]*)
9686 re_direlt='/[^/][^/]*/\.\./'
9687 # Canonicalize the pathname of ld
9688 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9689 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9690 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9691 done
9692 test -z "$LD" && LD="$ac_prog"
9693 ;;
9694 "")
9695 # If it fails, then pretend we aren't using GCC.
9696 ac_prog=ld
9697 ;;
9698 *)
9699 # If it is relative, then search for the first ld in PATH.
9700 with_gnu_ld=unknown
9701 ;;
9702 esac
9703elif test "$with_gnu_ld" = yes; then
9704 echo "$as_me:$LINENO: checking for GNU ld" >&5
9705echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9706else
9707 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9708echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9709fi
9710if test "${lt_cv_path_LD+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9712else
9713 if test -z "$LD"; then
9714 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9715 for ac_dir in $PATH; do
9716 IFS="$lt_save_ifs"
9717 test -z "$ac_dir" && ac_dir=.
9718 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9719 lt_cv_path_LD="$ac_dir/$ac_prog"
9720 # Check to see if the program is GNU ld. I'd rather use --version,
9721 # but apparently some GNU ld's only accept -v.
9722 # Break only if it was the GNU/non-GNU ld that we prefer.
9723 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9724 *GNU* | *'with BFD'*)
9725 test "$with_gnu_ld" != no && break
9726 ;;
9727 *)
9728 test "$with_gnu_ld" != yes && break
9729 ;;
9730 esac
9731 fi
9732 done
9733 IFS="$lt_save_ifs"
9734else
9735 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9736fi
9737fi
9738
9739LD="$lt_cv_path_LD"
9740if test -n "$LD"; then
9741 echo "$as_me:$LINENO: result: $LD" >&5
9742echo "${ECHO_T}$LD" >&6
9743else
9744 echo "$as_me:$LINENO: result: no" >&5
9745echo "${ECHO_T}no" >&6
9746fi
9747test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9748echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9749 { (exit 1); exit 1; }; }
9750echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9751echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9752if test "${lt_cv_prog_gnu_ld+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9754else
9755 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9756case `$LD -v 2>&1 </dev/null` in
9757*GNU* | *'with BFD'*)
9758 lt_cv_prog_gnu_ld=yes
9759 ;;
9760*)
9761 lt_cv_prog_gnu_ld=no
9762 ;;
9763esac
9764fi
9765echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9766echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9767with_gnu_ld=$lt_cv_prog_gnu_ld
9768
9769
9770
9771 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9772 # archiving commands below assume that GNU ld is being used.
9773 if test "$with_gnu_ld" = yes; then
9774 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9775 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9776
9777 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9778 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9779
9780 # If archive_cmds runs LD, not CC, wlarc should be empty
9781 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9782 # investigate it a little bit more. (MM)
9783 wlarc='${wl}'
9784
9785 # ancient GNU ld didn't support --whole-archive et. al.
9786 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9787 grep 'no-whole-archive' > /dev/null; then
9788 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9789 else
9790 whole_archive_flag_spec_CXX=
9791 fi
9792 else
9793 with_gnu_ld=no
9794 wlarc=
9795
9796 # A generic and very simple default shared library creation
9797 # command for GNU C++ for the case where it uses the native
9798 # linker, instead of GNU ld. If possible, this setting should
9799 # overridden to take advantage of the native linker features on
9800 # the platform it is being used on.
9801 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9802 fi
9803
9804 # Commands to make compiler produce verbose output that lists
9805 # what "hidden" libraries, object files and flags are used when
9806 # linking a shared library.
9807 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9808
9809else
9810 GXX=no
9811 with_gnu_ld=no
9812 wlarc=
9813fi
9814
9815# PORTME: fill in a description of your system's C++ link characteristics
9816echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9817echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9818ld_shlibs_CXX=yes
9819case $host_os in
9820 aix3*)
9821 # FIXME: insert proper C++ library support
9822 ld_shlibs_CXX=no
9823 ;;
9824 aix4* | aix5*)
9825 if test "$host_cpu" = ia64; then
9826 # On IA64, the linker does run time linking by default, so we don't
9827 # have to do anything special.
9828 aix_use_runtimelinking=no
9829 exp_sym_flag='-Bexport'
9830 no_entry_flag=""
9831 else
9832 aix_use_runtimelinking=no
9833
9834 # Test if we are trying to use run time linking or normal
9835 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9836 # need to do runtime linking.
9837 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9838 for ld_flag in $LDFLAGS; do
9839 case $ld_flag in
9840 *-brtl*)
9841 aix_use_runtimelinking=yes
9842 break
9843 ;;
9844 esac
9845 done
9846 esac
9847
9848 exp_sym_flag='-bexport'
9849 no_entry_flag='-bnoentry'
9850 fi
9851
9852 # When large executables or shared objects are built, AIX ld can
9853 # have problems creating the table of contents. If linking a library
9854 # or program results in "error TOC overflow" add -mminimal-toc to
9855 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9856 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9857
9858 archive_cmds_CXX=''
9859 hardcode_direct_CXX=yes
9860 hardcode_libdir_separator_CXX=':'
9861 link_all_deplibs_CXX=yes
9862
9863 if test "$GXX" = yes; then
9864 case $host_os in aix4.012|aix4.012.*)
9865 # We only want to do this on AIX 4.2 and lower, the check
9866 # below for broken collect2 doesn't work under 4.3+
9867 collect2name=`${CC} -print-prog-name=collect2`
9868 if test -f "$collect2name" && \
9869 strings "$collect2name" | grep resolve_lib_name >/dev/null
9870 then
9871 # We have reworked collect2
9872 hardcode_direct_CXX=yes
9873 else
9874 # We have old collect2
9875 hardcode_direct_CXX=unsupported
9876 # It fails to find uninstalled libraries when the uninstalled
9877 # path is not listed in the libpath. Setting hardcode_minus_L
9878 # to unsupported forces relinking
9879 hardcode_minus_L_CXX=yes
9880 hardcode_libdir_flag_spec_CXX='-L$libdir'
9881 hardcode_libdir_separator_CXX=
9882 fi
9883 esac
9884 shared_flag='-shared'
9885 else
9886 # not using gcc
9887 if test "$host_cpu" = ia64; then
9888 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9889 # chokes on -Wl,-G. The following line is correct:
9890 shared_flag='-G'
9891 else
9892 if test "$aix_use_runtimelinking" = yes; then
9893 shared_flag='${wl}-G'
9894 else
9895 shared_flag='${wl}-bM:SRE'
9896 fi
9897 fi
9898 fi
9899
9900 # It seems that -bexpall does not export symbols beginning with
9901 # underscore (_), so it is better to generate a list of symbols to export.
9902 always_export_symbols_CXX=yes
9903 if test "$aix_use_runtimelinking" = yes; then
9904 # Warning - without using the other runtime loading flags (-brtl),
9905 # -berok will link without error, but may produce a broken library.
9906 allow_undefined_flag_CXX='-berok'
9907 # Determine the default libpath from the value encoded in an empty executable.
9908 cat >conftest.$ac_ext <<_ACEOF
9909/* confdefs.h. */
9910_ACEOF
9911cat confdefs.h >>conftest.$ac_ext
9912cat >>conftest.$ac_ext <<_ACEOF
9913/* end confdefs.h. */
9914
9915int
9916main ()
9917{
9918
9919 ;
9920 return 0;
9921}
9922_ACEOF
9923rm -f conftest.$ac_objext conftest$ac_exeext
9924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00009925 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009926 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00009927 grep -v '^ *+' conftest.er1 >conftest.err
9928 rm -f conftest.er1
9929 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00009932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 (eval $ac_try) 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; } &&
9938 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 (eval $ac_try) 2>&5
9941 ac_status=$?
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; }; then
9944
9945aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9946}'`
9947# Check for a 64-bit object if we didn't find anything.
9948if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9949}'`; fi
9950else
9951 echo "$as_me: failed program was:" >&5
9952sed 's/^/| /' conftest.$ac_ext >&5
9953
9954fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00009955rm -f conftest.err conftest.$ac_objext \
9956 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009957if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9958
9959 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9960
9961 archive_expsym_cmds_CXX="\$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"
9962 else
9963 if test "$host_cpu" = ia64; then
9964 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9965 allow_undefined_flag_CXX="-z nodefs"
9966 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9967 else
9968 # Determine the default libpath from the value encoded in an empty executable.
9969 cat >conftest.$ac_ext <<_ACEOF
9970/* confdefs.h. */
9971_ACEOF
9972cat confdefs.h >>conftest.$ac_ext
9973cat >>conftest.$ac_ext <<_ACEOF
9974/* end confdefs.h. */
9975
9976int
9977main ()
9978{
9979
9980 ;
9981 return 0;
9982}
9983_ACEOF
9984rm -f conftest.$ac_objext conftest$ac_exeext
9985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00009986 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009987 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00009988 grep -v '^ *+' conftest.er1 >conftest.err
9989 rm -f conftest.er1
9990 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00009993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 (eval $ac_try) 2>&5
9996 ac_status=$?
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; } &&
9999 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 (eval $ac_try) 2>&5
10002 ac_status=$?
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; }; then
10005
10006aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10007}'`
10008# Check for a 64-bit object if we didn't find anything.
10009if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10010}'`; fi
10011else
10012 echo "$as_me: failed program was:" >&5
10013sed 's/^/| /' conftest.$ac_ext >&5
10014
10015fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000010016rm -f conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010018if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10019
10020 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10021 # Warning - without using the other run time loading flags,
10022 # -berok will link without error, but may produce a broken library.
10023 no_undefined_flag_CXX=' ${wl}-bernotok'
10024 allow_undefined_flag_CXX=' ${wl}-berok'
10025 # -bexpall does not export symbols beginning with underscore (_)
10026 always_export_symbols_CXX=yes
10027 # Exported symbols can be pulled into shared objects from archives
10028 whole_archive_flag_spec_CXX=' '
10029 archive_cmds_need_lc_CXX=yes
10030 # This is similar to how AIX traditionally builds it's shared libraries.
10031 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10032 fi
10033 fi
10034 ;;
10035 chorus*)
10036 case $cc_basename in
10037 *)
10038 # FIXME: insert proper C++ library support
10039 ld_shlibs_CXX=no
10040 ;;
10041 esac
10042 ;;
10043
10044 cygwin* | mingw* | pw32*)
10045 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10046 # as there is no search path for DLLs.
10047 hardcode_libdir_flag_spec_CXX='-L$libdir'
10048 allow_undefined_flag_CXX=unsupported
10049 always_export_symbols_CXX=no
10050 enable_shared_with_static_runtimes_CXX=yes
10051
10052 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10053 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10054 # If the export-symbols file already is a .def file (1st line
10055 # is EXPORTS), use it as is; otherwise, prepend...
10056 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10057 cp $export_symbols $output_objdir/$soname.def;
10058 else
10059 echo EXPORTS > $output_objdir/$soname.def;
10060 cat $export_symbols >> $output_objdir/$soname.def;
10061 fi~
10062 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10063 else
10064 ld_shlibs_CXX=no
10065 fi
10066 ;;
10067
10068 darwin* | rhapsody*)
10069 if test "$GXX" = yes; then
10070 archive_cmds_need_lc_CXX=no
10071 case "$host_os" in
10072 rhapsody* | darwin1.[012])
10073 allow_undefined_flag_CXX='-undefined suppress'
10074 ;;
10075 *) # Darwin 1.3 on
10076 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10077 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10078 else
10079 case ${MACOSX_DEPLOYMENT_TARGET} in
10080 10.[012])
10081 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10082 ;;
10083 10.*)
10084 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10085 ;;
10086 esac
10087 fi
10088 ;;
10089 esac
10090 lt_int_apple_cc_single_mod=no
10091 output_verbose_link_cmd='echo'
10092 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10093 lt_int_apple_cc_single_mod=yes
10094 fi
10095 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10096 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10097 else
10098 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10099 fi
10100 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10101
10102 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10103 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10104 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10105 else
10106 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10107 fi
10108 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10109 hardcode_direct_CXX=no
10110 hardcode_automatic_CXX=yes
10111 hardcode_shlibpath_var_CXX=unsupported
10112 whole_archive_flag_spec_CXX='-all_load $convenience'
10113 link_all_deplibs_CXX=yes
10114 else
10115 ld_shlibs_CXX=no
10116 fi
10117 ;;
10118
10119 dgux*)
10120 case $cc_basename in
10121 ec++)
10122 # FIXME: insert proper C++ library support
10123 ld_shlibs_CXX=no
10124 ;;
10125 ghcx)
10126 # Green Hills C++ Compiler
10127 # FIXME: insert proper C++ library support
10128 ld_shlibs_CXX=no
10129 ;;
10130 *)
10131 # FIXME: insert proper C++ library support
10132 ld_shlibs_CXX=no
10133 ;;
10134 esac
10135 ;;
10136 freebsd12*)
10137 # C++ shared libraries reported to be fairly broken before switch to ELF
10138 ld_shlibs_CXX=no
10139 ;;
10140 freebsd-elf*)
10141 archive_cmds_need_lc_CXX=no
10142 ;;
10143 freebsd* | kfreebsd*-gnu)
10144 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10145 # conventions
10146 ld_shlibs_CXX=yes
10147 ;;
10148 gnu*)
10149 ;;
10150 hpux9*)
10151 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10152 hardcode_libdir_separator_CXX=:
10153 export_dynamic_flag_spec_CXX='${wl}-E'
10154 hardcode_direct_CXX=yes
10155 hardcode_minus_L_CXX=yes # Not in the search PATH,
10156 # but as the default
10157 # location of the library.
10158
10159 case $cc_basename in
10160 CC)
10161 # FIXME: insert proper C++ library support
10162 ld_shlibs_CXX=no
10163 ;;
10164 aCC)
10165 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10166 # Commands to make compiler produce verbose output that lists
10167 # what "hidden" libraries, object files and flags are used when
10168 # linking a shared library.
10169 #
10170 # There doesn't appear to be a way to prevent this compiler from
10171 # explicitly linking system object files so we need to strip them
10172 # from the output so that they don't get included in the library
10173 # dependencies.
10174 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10175 ;;
10176 *)
10177 if test "$GXX" = yes; then
10178 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10179 else
10180 # FIXME: insert proper C++ library support
10181 ld_shlibs_CXX=no
10182 fi
10183 ;;
10184 esac
10185 ;;
10186 hpux10*|hpux11*)
10187 if test $with_gnu_ld = no; then
10188 case "$host_cpu" in
10189 hppa*64*)
10190 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10191 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10192 hardcode_libdir_separator_CXX=:
10193 ;;
10194 ia64*)
10195 hardcode_libdir_flag_spec_CXX='-L$libdir'
10196 ;;
10197 *)
10198 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10199 hardcode_libdir_separator_CXX=:
10200 export_dynamic_flag_spec_CXX='${wl}-E'
10201 ;;
10202 esac
10203 fi
10204 case "$host_cpu" in
10205 hppa*64*)
10206 hardcode_direct_CXX=no
10207 hardcode_shlibpath_var_CXX=no
10208 ;;
10209 ia64*)
10210 hardcode_direct_CXX=no
10211 hardcode_shlibpath_var_CXX=no
10212 hardcode_minus_L_CXX=yes # Not in the search PATH,
10213 # but as the default
10214 # location of the library.
10215 ;;
10216 *)
10217 hardcode_direct_CXX=yes
10218 hardcode_minus_L_CXX=yes # Not in the search PATH,
10219 # but as the default
10220 # location of the library.
10221 ;;
10222 esac
10223
10224 case $cc_basename in
10225 CC)
10226 # FIXME: insert proper C++ library support
10227 ld_shlibs_CXX=no
10228 ;;
10229 aCC)
10230 case "$host_cpu" in
10231 hppa*64*|ia64*)
10232 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10233 ;;
10234 *)
10235 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10236 ;;
10237 esac
10238 # Commands to make compiler produce verbose output that lists
10239 # what "hidden" libraries, object files and flags are used when
10240 # linking a shared library.
10241 #
10242 # There doesn't appear to be a way to prevent this compiler from
10243 # explicitly linking system object files so we need to strip them
10244 # from the output so that they don't get included in the library
10245 # dependencies.
10246 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10247 ;;
10248 *)
10249 if test "$GXX" = yes; then
10250 if test $with_gnu_ld = no; then
10251 case "$host_cpu" in
10252 ia64*|hppa*64*)
10253 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10254 ;;
10255 *)
10256 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10257 ;;
10258 esac
10259 fi
10260 else
10261 # FIXME: insert proper C++ library support
10262 ld_shlibs_CXX=no
10263 fi
10264 ;;
10265 esac
10266 ;;
10267 irix5* | irix6*)
10268 case $cc_basename in
10269 CC)
10270 # SGI C++
10271 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10272
10273 # Archives containing C++ object files must be created using
10274 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10275 # necessary to make sure instantiated templates are included
10276 # in the archive.
10277 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10278 ;;
10279 *)
10280 if test "$GXX" = yes; then
10281 if test "$with_gnu_ld" = no; then
10282 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10283 else
10284 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10285 fi
10286 fi
10287 link_all_deplibs_CXX=yes
10288 ;;
10289 esac
10290 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10291 hardcode_libdir_separator_CXX=:
10292 ;;
10293 linux*)
10294 case $cc_basename in
10295 KCC)
10296 # Kuck and Associates, Inc. (KAI) C++ Compiler
10297
10298 # KCC will only create a shared library if the output file
10299 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10300 # to its proper name (with version) after linking.
10301 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10302 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10303 # Commands to make compiler produce verbose output that lists
10304 # what "hidden" libraries, object files and flags are used when
10305 # linking a shared library.
10306 #
10307 # There doesn't appear to be a way to prevent this compiler from
10308 # explicitly linking system object files so we need to strip them
10309 # from the output so that they don't get included in the library
10310 # dependencies.
10311 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10312
10313 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10314 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10315
10316 # Archives containing C++ object files must be created using
10317 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10318 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10319 ;;
10320 icpc)
10321 # Intel C++
10322 with_gnu_ld=yes
10323 archive_cmds_need_lc_CXX=no
10324 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10325 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10326 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10327 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10328 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10329 ;;
10330 cxx)
10331 # Compaq C++
10332 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10333 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10334
10335 runpath_var=LD_RUN_PATH
10336 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10337 hardcode_libdir_separator_CXX=:
10338
10339 # Commands to make compiler produce verbose output that lists
10340 # what "hidden" libraries, object files and flags are used when
10341 # linking a shared library.
10342 #
10343 # There doesn't appear to be a way to prevent this compiler from
10344 # explicitly linking system object files so we need to strip them
10345 # from the output so that they don't get included in the library
10346 # dependencies.
10347 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10348 ;;
10349 esac
10350 ;;
10351 lynxos*)
10352 # FIXME: insert proper C++ library support
10353 ld_shlibs_CXX=no
10354 ;;
10355 m88k*)
10356 # FIXME: insert proper C++ library support
10357 ld_shlibs_CXX=no
10358 ;;
10359 mvs*)
10360 case $cc_basename in
10361 cxx)
10362 # FIXME: insert proper C++ library support
10363 ld_shlibs_CXX=no
10364 ;;
10365 *)
10366 # FIXME: insert proper C++ library support
10367 ld_shlibs_CXX=no
10368 ;;
10369 esac
10370 ;;
10371 netbsd*)
10372 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10373 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10374 wlarc=
10375 hardcode_libdir_flag_spec_CXX='-R$libdir'
10376 hardcode_direct_CXX=yes
10377 hardcode_shlibpath_var_CXX=no
10378 fi
10379 # Workaround some broken pre-1.5 toolchains
10380 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10381 ;;
10382 osf3*)
10383 case $cc_basename in
10384 KCC)
10385 # Kuck and Associates, Inc. (KAI) C++ Compiler
10386
10387 # KCC will only create a shared library if the output file
10388 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10389 # to its proper name (with version) after linking.
10390 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10391
10392 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10393 hardcode_libdir_separator_CXX=:
10394
10395 # Archives containing C++ object files must be created using
10396 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10397 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10398
10399 ;;
10400 RCC)
10401 # Rational C++ 2.4.1
10402 # FIXME: insert proper C++ library support
10403 ld_shlibs_CXX=no
10404 ;;
10405 cxx)
10406 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10407 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10408
10409 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10410 hardcode_libdir_separator_CXX=:
10411
10412 # Commands to make compiler produce verbose output that lists
10413 # what "hidden" libraries, object files and flags are used when
10414 # linking a shared library.
10415 #
10416 # There doesn't appear to be a way to prevent this compiler from
10417 # explicitly linking system object files so we need to strip them
10418 # from the output so that they don't get included in the library
10419 # dependencies.
10420 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10421 ;;
10422 *)
10423 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10424 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10425 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10426
10427 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10428 hardcode_libdir_separator_CXX=:
10429
10430 # Commands to make compiler produce verbose output that lists
10431 # what "hidden" libraries, object files and flags are used when
10432 # linking a shared library.
10433 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10434
10435 else
10436 # FIXME: insert proper C++ library support
10437 ld_shlibs_CXX=no
10438 fi
10439 ;;
10440 esac
10441 ;;
10442 osf4* | osf5*)
10443 case $cc_basename in
10444 KCC)
10445 # Kuck and Associates, Inc. (KAI) C++ Compiler
10446
10447 # KCC will only create a shared library if the output file
10448 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10449 # to its proper name (with version) after linking.
10450 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10451
10452 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10453 hardcode_libdir_separator_CXX=:
10454
10455 # Archives containing C++ object files must be created using
10456 # the KAI C++ compiler.
10457 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10458 ;;
10459 RCC)
10460 # Rational C++ 2.4.1
10461 # FIXME: insert proper C++ library support
10462 ld_shlibs_CXX=no
10463 ;;
10464 cxx)
10465 allow_undefined_flag_CXX=' -expect_unresolved \*'
10466 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10467 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10468 echo "-hidden">> $lib.exp~
10469 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10470 $rm $lib.exp'
10471
10472 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10473 hardcode_libdir_separator_CXX=:
10474
10475 # Commands to make compiler produce verbose output that lists
10476 # what "hidden" libraries, object files and flags are used when
10477 # linking a shared library.
10478 #
10479 # There doesn't appear to be a way to prevent this compiler from
10480 # explicitly linking system object files so we need to strip them
10481 # from the output so that they don't get included in the library
10482 # dependencies.
10483 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10484 ;;
10485 *)
10486 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10487 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10488 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10489
10490 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10491 hardcode_libdir_separator_CXX=:
10492
10493 # Commands to make compiler produce verbose output that lists
10494 # what "hidden" libraries, object files and flags are used when
10495 # linking a shared library.
10496 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10497
10498 else
10499 # FIXME: insert proper C++ library support
10500 ld_shlibs_CXX=no
10501 fi
10502 ;;
10503 esac
10504 ;;
10505 psos*)
10506 # FIXME: insert proper C++ library support
10507 ld_shlibs_CXX=no
10508 ;;
10509 sco*)
10510 archive_cmds_need_lc_CXX=no
10511 case $cc_basename in
10512 CC)
10513 # FIXME: insert proper C++ library support
10514 ld_shlibs_CXX=no
10515 ;;
10516 *)
10517 # FIXME: insert proper C++ library support
10518 ld_shlibs_CXX=no
10519 ;;
10520 esac
10521 ;;
10522 sunos4*)
10523 case $cc_basename in
10524 CC)
10525 # Sun C++ 4.x
10526 # FIXME: insert proper C++ library support
10527 ld_shlibs_CXX=no
10528 ;;
10529 lcc)
10530 # Lucid
10531 # FIXME: insert proper C++ library support
10532 ld_shlibs_CXX=no
10533 ;;
10534 *)
10535 # FIXME: insert proper C++ library support
10536 ld_shlibs_CXX=no
10537 ;;
10538 esac
10539 ;;
10540 solaris*)
10541 case $cc_basename in
10542 CC)
10543 # Sun C++ 4.2, 5.x and Centerline C++
10544 no_undefined_flag_CXX=' -zdefs'
10545 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10546 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10547 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10548
10549 hardcode_libdir_flag_spec_CXX='-R$libdir'
10550 hardcode_shlibpath_var_CXX=no
10551 case $host_os in
10552 solaris2.0-5 | solaris2.0-5.*) ;;
10553 *)
10554 # The C++ compiler is used as linker so we must use $wl
10555 # flag to pass the commands to the underlying system
10556 # linker.
10557 # Supported since Solaris 2.6 (maybe 2.5.1?)
10558 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10559 ;;
10560 esac
10561 link_all_deplibs_CXX=yes
10562
10563 # Commands to make compiler produce verbose output that lists
10564 # what "hidden" libraries, object files and flags are used when
10565 # linking a shared library.
10566 #
10567 # There doesn't appear to be a way to prevent this compiler from
10568 # explicitly linking system object files so we need to strip them
10569 # from the output so that they don't get included in the library
10570 # dependencies.
10571 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10572
10573 # Archives containing C++ object files must be created using
10574 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10575 # necessary to make sure instantiated templates are included
10576 # in the archive.
10577 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10578 ;;
10579 gcx)
10580 # Green Hills C++ Compiler
10581 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10582
10583 # The C++ compiler must be used to create the archive.
10584 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10585 ;;
10586 *)
10587 # GNU C++ compiler with Solaris linker
10588 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10589 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10590 if $CC --version | grep -v '^2\.7' > /dev/null; then
10591 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10592 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10593 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10594
10595 # Commands to make compiler produce verbose output that lists
10596 # what "hidden" libraries, object files and flags are used when
10597 # linking a shared library.
10598 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10599 else
10600 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10601 # platform.
10602 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10603 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10604 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10605
10606 # Commands to make compiler produce verbose output that lists
10607 # what "hidden" libraries, object files and flags are used when
10608 # linking a shared library.
10609 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10610 fi
10611
10612 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10613 fi
10614 ;;
10615 esac
10616 ;;
10617 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10618 archive_cmds_need_lc_CXX=no
10619 ;;
10620 tandem*)
10621 case $cc_basename in
10622 NCC)
10623 # NonStop-UX NCC 3.20
10624 # FIXME: insert proper C++ library support
10625 ld_shlibs_CXX=no
10626 ;;
10627 *)
10628 # FIXME: insert proper C++ library support
10629 ld_shlibs_CXX=no
10630 ;;
10631 esac
10632 ;;
10633 vxworks*)
10634 # FIXME: insert proper C++ library support
10635 ld_shlibs_CXX=no
10636 ;;
10637 *)
10638 # FIXME: insert proper C++ library support
10639 ld_shlibs_CXX=no
10640 ;;
10641esac
10642echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10643echo "${ECHO_T}$ld_shlibs_CXX" >&6
10644test "$ld_shlibs_CXX" = no && can_build_shared=no
10645
10646GCC_CXX="$GXX"
10647LD_CXX="$LD"
10648
10649
10650cat > conftest.$ac_ext <<EOF
10651class Foo
10652{
10653public:
10654 Foo (void) { a = 0; }
10655private:
10656 int a;
10657};
10658EOF
10659
10660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10661 (eval $ac_compile) 2>&5
10662 ac_status=$?
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); }; then
10665 # Parse the compiler output and extract the necessary
10666 # objects, libraries and library flags.
10667
10668 # Sentinel used to keep track of whether or not we are before
10669 # the conftest object file.
10670 pre_test_object_deps_done=no
10671
10672 # The `*' in the case matches for architectures that use `case' in
10673 # $output_verbose_cmd can trigger glob expansion during the loop
10674 # eval without this substitution.
10675 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10676
10677 for p in `eval $output_verbose_link_cmd`; do
10678 case $p in
10679
10680 -L* | -R* | -l*)
10681 # Some compilers place space between "-{L,R}" and the path.
10682 # Remove the space.
10683 if test $p = "-L" \
10684 || test $p = "-R"; then
10685 prev=$p
10686 continue
10687 else
10688 prev=
10689 fi
10690
10691 if test "$pre_test_object_deps_done" = no; then
10692 case $p in
10693 -L* | -R*)
10694 # Internal compiler library paths should come after those
10695 # provided the user. The postdeps already come after the
10696 # user supplied libs so there is no need to process them.
10697 if test -z "$compiler_lib_search_path_CXX"; then
10698 compiler_lib_search_path_CXX="${prev}${p}"
10699 else
10700 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10701 fi
10702 ;;
10703 # The "-l" case would never come before the object being
10704 # linked, so don't bother handling this case.
10705 esac
10706 else
10707 if test -z "$postdeps_CXX"; then
10708 postdeps_CXX="${prev}${p}"
10709 else
10710 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10711 fi
10712 fi
10713 ;;
10714
10715 *.$objext)
10716 # This assumes that the test object file only shows up
10717 # once in the compiler output.
10718 if test "$p" = "conftest.$objext"; then
10719 pre_test_object_deps_done=yes
10720 continue
10721 fi
10722
10723 if test "$pre_test_object_deps_done" = no; then
10724 if test -z "$predep_objects_CXX"; then
10725 predep_objects_CXX="$p"
10726 else
10727 predep_objects_CXX="$predep_objects_CXX $p"
10728 fi
10729 else
10730 if test -z "$postdep_objects_CXX"; then
10731 postdep_objects_CXX="$p"
10732 else
10733 postdep_objects_CXX="$postdep_objects_CXX $p"
10734 fi
10735 fi
10736 ;;
10737
10738 *) ;; # Ignore the rest.
10739
10740 esac
10741 done
10742
10743 # Clean up.
10744 rm -f a.out a.exe
10745else
10746 echo "libtool.m4: error: problem compiling CXX test program"
10747fi
10748
10749$rm -f confest.$objext
10750
10751case " $postdeps_CXX " in
10752*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10753esac
10754
10755lt_prog_compiler_wl_CXX=
10756lt_prog_compiler_pic_CXX=
10757lt_prog_compiler_static_CXX=
10758
10759echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10760echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10761
10762 # C++ specific cases for pic, static, wl, etc.
10763 if test "$GXX" = yes; then
10764 lt_prog_compiler_wl_CXX='-Wl,'
10765 lt_prog_compiler_static_CXX='-static'
10766
10767 case $host_os in
10768 aix*)
10769 # All AIX code is PIC.
10770 if test "$host_cpu" = ia64; then
10771 # AIX 5 now supports IA64 processor
10772 lt_prog_compiler_static_CXX='-Bstatic'
10773 fi
10774 ;;
10775 amigaos*)
10776 # FIXME: we need at least 68020 code to build shared libraries, but
10777 # adding the `-m68020' flag to GCC prevents building anything better,
10778 # like `-m68040'.
10779 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10780 ;;
10781 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10782 # PIC is the default for these OSes.
10783 ;;
10784 mingw* | os2* | pw32*)
10785 # This hack is so that the source file can tell whether it is being
10786 # built for inclusion in a dll (and should export symbols for example).
10787 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10788 ;;
10789 darwin* | rhapsody*)
10790 # PIC is the default on this platform
10791 # Common symbols not allowed in MH_DYLIB files
10792 lt_prog_compiler_pic_CXX='-fno-common'
10793 ;;
10794 *djgpp*)
10795 # DJGPP does not support shared libraries at all
10796 lt_prog_compiler_pic_CXX=
10797 ;;
10798 sysv4*MP*)
10799 if test -d /usr/nec; then
10800 lt_prog_compiler_pic_CXX=-Kconform_pic
10801 fi
10802 ;;
10803 hpux*)
10804 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10805 # not for PA HP-UX.
10806 case "$host_cpu" in
10807 hppa*64*|ia64*)
10808 ;;
10809 *)
10810 lt_prog_compiler_pic_CXX='-fPIC'
10811 ;;
10812 esac
10813 ;;
10814 *)
10815 lt_prog_compiler_pic_CXX='-fPIC'
10816 ;;
10817 esac
10818 else
10819 case $host_os in
10820 aix4* | aix5*)
10821 # All AIX code is PIC.
10822 if test "$host_cpu" = ia64; then
10823 # AIX 5 now supports IA64 processor
10824 lt_prog_compiler_static_CXX='-Bstatic'
10825 else
10826 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10827 fi
10828 ;;
10829 chorus*)
10830 case $cc_basename in
10831 cxch68)
10832 # Green Hills C++ Compiler
10833 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10834 ;;
10835 esac
10836 ;;
10837 dgux*)
10838 case $cc_basename in
10839 ec++)
10840 lt_prog_compiler_pic_CXX='-KPIC'
10841 ;;
10842 ghcx)
10843 # Green Hills C++ Compiler
10844 lt_prog_compiler_pic_CXX='-pic'
10845 ;;
10846 *)
10847 ;;
10848 esac
10849 ;;
10850 freebsd* | kfreebsd*-gnu)
10851 # FreeBSD uses GNU C++
10852 ;;
10853 hpux9* | hpux10* | hpux11*)
10854 case $cc_basename in
10855 CC)
10856 lt_prog_compiler_wl_CXX='-Wl,'
10857 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10858 if test "$host_cpu" != ia64; then
10859 lt_prog_compiler_pic_CXX='+Z'
10860 fi
10861 ;;
10862 aCC)
10863 lt_prog_compiler_wl_CXX='-Wl,'
10864 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10865 case "$host_cpu" in
10866 hppa*64*|ia64*)
10867 # +Z the default
10868 ;;
10869 *)
10870 lt_prog_compiler_pic_CXX='+Z'
10871 ;;
10872 esac
10873 ;;
10874 *)
10875 ;;
10876 esac
10877 ;;
10878 irix5* | irix6* | nonstopux*)
10879 case $cc_basename in
10880 CC)
10881 lt_prog_compiler_wl_CXX='-Wl,'
10882 lt_prog_compiler_static_CXX='-non_shared'
10883 # CC pic flag -KPIC is the default.
10884 ;;
10885 *)
10886 ;;
10887 esac
10888 ;;
10889 linux*)
10890 case $cc_basename in
10891 KCC)
10892 # KAI C++ Compiler
10893 lt_prog_compiler_wl_CXX='--backend -Wl,'
10894 lt_prog_compiler_pic_CXX='-fPIC'
10895 ;;
10896 icpc)
10897 # Intel C++
10898 lt_prog_compiler_wl_CXX='-Wl,'
10899 lt_prog_compiler_pic_CXX='-KPIC'
10900 lt_prog_compiler_static_CXX='-static'
10901 ;;
10902 cxx)
10903 # Compaq C++
10904 # Make sure the PIC flag is empty. It appears that all Alpha
10905 # Linux and Compaq Tru64 Unix objects are PIC.
10906 lt_prog_compiler_pic_CXX=
10907 lt_prog_compiler_static_CXX='-non_shared'
10908 ;;
10909 *)
10910 ;;
10911 esac
10912 ;;
10913 lynxos*)
10914 ;;
10915 m88k*)
10916 ;;
10917 mvs*)
10918 case $cc_basename in
10919 cxx)
10920 lt_prog_compiler_pic_CXX='-W c,exportall'
10921 ;;
10922 *)
10923 ;;
10924 esac
10925 ;;
10926 netbsd*)
10927 ;;
10928 osf3* | osf4* | osf5*)
10929 case $cc_basename in
10930 KCC)
10931 lt_prog_compiler_wl_CXX='--backend -Wl,'
10932 ;;
10933 RCC)
10934 # Rational C++ 2.4.1
10935 lt_prog_compiler_pic_CXX='-pic'
10936 ;;
10937 cxx)
10938 # Digital/Compaq C++
10939 lt_prog_compiler_wl_CXX='-Wl,'
10940 # Make sure the PIC flag is empty. It appears that all Alpha
10941 # Linux and Compaq Tru64 Unix objects are PIC.
10942 lt_prog_compiler_pic_CXX=
10943 lt_prog_compiler_static_CXX='-non_shared'
10944 ;;
10945 *)
10946 ;;
10947 esac
10948 ;;
10949 psos*)
10950 ;;
10951 sco*)
10952 case $cc_basename in
10953 CC)
10954 lt_prog_compiler_pic_CXX='-fPIC'
10955 ;;
10956 *)
10957 ;;
10958 esac
10959 ;;
10960 solaris*)
10961 case $cc_basename in
10962 CC)
10963 # Sun C++ 4.2, 5.x and Centerline C++
10964 lt_prog_compiler_pic_CXX='-KPIC'
10965 lt_prog_compiler_static_CXX='-Bstatic'
10966 lt_prog_compiler_wl_CXX='-Qoption ld '
10967 ;;
10968 gcx)
10969 # Green Hills C++ Compiler
10970 lt_prog_compiler_pic_CXX='-PIC'
10971 ;;
10972 *)
10973 ;;
10974 esac
10975 ;;
10976 sunos4*)
10977 case $cc_basename in
10978 CC)
10979 # Sun C++ 4.x
10980 lt_prog_compiler_pic_CXX='-pic'
10981 lt_prog_compiler_static_CXX='-Bstatic'
10982 ;;
10983 lcc)
10984 # Lucid
10985 lt_prog_compiler_pic_CXX='-pic'
10986 ;;
10987 *)
10988 ;;
10989 esac
10990 ;;
10991 tandem*)
10992 case $cc_basename in
10993 NCC)
10994 # NonStop-UX NCC 3.20
10995 lt_prog_compiler_pic_CXX='-KPIC'
10996 ;;
10997 *)
10998 ;;
10999 esac
11000 ;;
11001 unixware*)
11002 ;;
11003 vxworks*)
11004 ;;
11005 *)
11006 lt_prog_compiler_can_build_shared_CXX=no
11007 ;;
11008 esac
11009 fi
11010
11011echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11012echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11013
11014#
11015# Check to make sure the PIC flag actually works.
11016#
11017if test -n "$lt_prog_compiler_pic_CXX"; then
11018
11019echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11020echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11021if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11022 echo $ECHO_N "(cached) $ECHO_C" >&6
11023else
11024 lt_prog_compiler_pic_works_CXX=no
11025 ac_outfile=conftest.$ac_objext
11026 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11027 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11028 # Insert the option either (1) after the last *FLAGS variable, or
11029 # (2) before a word containing "conftest.", or (3) at the end.
11030 # Note that $ac_compile itself does not contain backslashes and begins
11031 # with a dollar sign (not a hyphen), so the echo should work correctly.
11032 # The option is referenced via a variable to avoid confusing sed.
11033 lt_compile=`echo "$ac_compile" | $SED \
11034 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11036 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011037 (eval echo "\"\$as_me:11037: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011038 (eval "$lt_compile" 2>conftest.err)
11039 ac_status=$?
11040 cat conftest.err >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011041 echo "$as_me:11041: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011042 if (exit $ac_status) && test -s "$ac_outfile"; then
11043 # The compiler can only warn and ignore the option if not recognized
11044 # So say no if there are warnings
11045 if test ! -s conftest.err; then
11046 lt_prog_compiler_pic_works_CXX=yes
11047 fi
11048 fi
11049 $rm conftest*
11050
11051fi
11052echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11053echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11054
11055if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11056 case $lt_prog_compiler_pic_CXX in
11057 "" | " "*) ;;
11058 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11059 esac
11060else
11061 lt_prog_compiler_pic_CXX=
11062 lt_prog_compiler_can_build_shared_CXX=no
11063fi
11064
11065fi
11066case "$host_os" in
11067 # For platforms which do not support PIC, -DPIC is meaningless:
11068 *djgpp*)
11069 lt_prog_compiler_pic_CXX=
11070 ;;
11071 *)
11072 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11073 ;;
11074esac
11075
11076echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11077echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11078if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11080else
11081 lt_cv_prog_compiler_c_o_CXX=no
11082 $rm -r conftest 2>/dev/null
11083 mkdir conftest
11084 cd conftest
11085 mkdir out
11086 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11087
11088 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11089 # that will create temporary files in the current directory regardless of
11090 # the output directory. Thus, making CWD read-only will cause this test
11091 # to fail, enabling locking or at least warning the user not to do parallel
11092 # builds.
11093 chmod -w .
11094
11095 lt_compiler_flag="-o out/conftest2.$ac_objext"
11096 # Insert the option either (1) after the last *FLAGS variable, or
11097 # (2) before a word containing "conftest.", or (3) at the end.
11098 # Note that $ac_compile itself does not contain backslashes and begins
11099 # with a dollar sign (not a hyphen), so the echo should work correctly.
11100 lt_compile=`echo "$ac_compile" | $SED \
11101 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11103 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011104 (eval echo "\"\$as_me:11104: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011105 (eval "$lt_compile" 2>out/conftest.err)
11106 ac_status=$?
11107 cat out/conftest.err >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011108 echo "$as_me:11108: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011109 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11110 then
11111 # The compiler can only warn and ignore the option if not recognized
11112 # So say no if there are warnings
11113 if test ! -s out/conftest.err; then
11114 lt_cv_prog_compiler_c_o_CXX=yes
11115 fi
11116 fi
11117 chmod u+w .
11118 $rm conftest*
11119 # SGI C++ compiler will create directory out/ii_files/ for
11120 # template instantiation
11121 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11122 $rm out/* && rmdir out
11123 cd ..
11124 rmdir conftest
11125 $rm conftest*
11126
11127fi
11128echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11129echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11130
11131
11132hard_links="nottested"
11133if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11134 # do not overwrite the value of need_locks provided by the user
11135 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11136echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11137 hard_links=yes
11138 $rm conftest*
11139 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11140 touch conftest.a
11141 ln conftest.a conftest.b 2>&5 || hard_links=no
11142 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11143 echo "$as_me:$LINENO: result: $hard_links" >&5
11144echo "${ECHO_T}$hard_links" >&6
11145 if test "$hard_links" = no; then
11146 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11147echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11148 need_locks=warn
11149 fi
11150else
11151 need_locks=no
11152fi
11153
11154echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11155echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11156
11157 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11158 case $host_os in
11159 aix4* | aix5*)
11160 # If we're using GNU nm, then we don't want the "-C" option.
11161 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11162 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11163 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11164 else
11165 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11166 fi
11167 ;;
11168 pw32*)
11169 export_symbols_cmds_CXX="$ltdll_cmds"
11170 ;;
11171 cygwin* | mingw*)
11172 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11173 ;;
11174 *)
11175 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11176 ;;
11177 esac
11178
11179echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11180echo "${ECHO_T}$ld_shlibs_CXX" >&6
11181test "$ld_shlibs_CXX" = no && can_build_shared=no
11182
11183variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11184if test "$GCC" = yes; then
11185 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11186fi
11187
11188#
11189# Do we need to explicitly link libc?
11190#
11191case "x$archive_cmds_need_lc_CXX" in
11192x|xyes)
11193 # Assume -lc should be added
11194 archive_cmds_need_lc_CXX=yes
11195
11196 if test "$enable_shared" = yes && test "$GCC" = yes; then
11197 case $archive_cmds_CXX in
11198 *'~'*)
11199 # FIXME: we may have to deal with multi-command sequences.
11200 ;;
11201 '$CC '*)
11202 # Test whether the compiler implicitly links with -lc since on some
11203 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11204 # to ld, don't add -lc before -lgcc.
11205 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11206echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11207 $rm conftest*
11208 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11209
11210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11211 (eval $ac_compile) 2>&5
11212 ac_status=$?
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } 2>conftest.err; then
11215 soname=conftest
11216 lib=conftest
11217 libobjs=conftest.$ac_objext
11218 deplibs=
11219 wl=$lt_prog_compiler_wl_CXX
11220 compiler_flags=-v
11221 linker_flags=-v
11222 verstring=
11223 output_objdir=.
11224 libname=conftest
11225 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11226 allow_undefined_flag_CXX=
11227 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11228 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11229 ac_status=$?
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); }
11232 then
11233 archive_cmds_need_lc_CXX=no
11234 else
11235 archive_cmds_need_lc_CXX=yes
11236 fi
11237 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11238 else
11239 cat conftest.err 1>&5
11240 fi
11241 $rm conftest*
11242 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11243echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11244 ;;
11245 esac
11246 fi
11247 ;;
11248esac
11249
11250echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11251echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11252library_names_spec=
11253libname_spec='lib$name'
11254soname_spec=
11255shrext=".so"
11256postinstall_cmds=
11257postuninstall_cmds=
11258finish_cmds=
11259finish_eval=
11260shlibpath_var=
11261shlibpath_overrides_runpath=unknown
11262version_type=none
11263dynamic_linker="$host_os ld.so"
11264sys_lib_dlsearch_path_spec="/lib /usr/lib"
11265if test "$GCC" = yes; then
11266 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11267 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11268 # if the path contains ";" then we assume it to be the separator
11269 # otherwise default to the standard path separator (i.e. ":") - it is
11270 # assumed that no part of a normal pathname contains ";" but that should
11271 # okay in the real world where ";" in dirpaths is itself problematic.
11272 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11273 else
11274 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11275 fi
11276else
11277 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11278fi
11279need_lib_prefix=unknown
11280hardcode_into_libs=no
11281
11282# when you set need_version to no, make sure it does not cause -set_version
11283# flags to be left without arguments
11284need_version=unknown
11285
11286case $host_os in
11287aix3*)
11288 version_type=linux
11289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11290 shlibpath_var=LIBPATH
11291
11292 # AIX 3 has no versioning support, so we append a major version to the name.
11293 soname_spec='${libname}${release}${shared_ext}$major'
11294 ;;
11295
11296aix4* | aix5*)
11297 version_type=linux
11298 need_lib_prefix=no
11299 need_version=no
11300 hardcode_into_libs=yes
11301 if test "$host_cpu" = ia64; then
11302 # AIX 5 supports IA64
11303 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11304 shlibpath_var=LD_LIBRARY_PATH
11305 else
11306 # With GCC up to 2.95.x, collect2 would create an import file
11307 # for dependence libraries. The import file would start with
11308 # the line `#! .'. This would cause the generated library to
11309 # depend on `.', always an invalid library. This was fixed in
11310 # development snapshots of GCC prior to 3.0.
11311 case $host_os in
11312 aix4 | aix4.[01] | aix4.[01].*)
11313 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11314 echo ' yes '
11315 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11316 :
11317 else
11318 can_build_shared=no
11319 fi
11320 ;;
11321 esac
11322 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11323 # soname into executable. Probably we can add versioning support to
11324 # collect2, so additional links can be useful in future.
11325 if test "$aix_use_runtimelinking" = yes; then
11326 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11327 # instead of lib<name>.a to let people know that these are not
11328 # typical AIX shared libraries.
11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11330 else
11331 # We preserve .a as extension for shared libraries through AIX4.2
11332 # and later when we are not doing run time linking.
11333 library_names_spec='${libname}${release}.a $libname.a'
11334 soname_spec='${libname}${release}${shared_ext}$major'
11335 fi
11336 shlibpath_var=LIBPATH
11337 fi
11338 ;;
11339
11340amigaos*)
11341 library_names_spec='$libname.ixlibrary $libname.a'
11342 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11343 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'
11344 ;;
11345
11346beos*)
11347 library_names_spec='${libname}${shared_ext}'
11348 dynamic_linker="$host_os ld.so"
11349 shlibpath_var=LIBRARY_PATH
11350 ;;
11351
11352bsdi4*)
11353 version_type=linux
11354 need_version=no
11355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11356 soname_spec='${libname}${release}${shared_ext}$major'
11357 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11358 shlibpath_var=LD_LIBRARY_PATH
11359 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11360 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11361 # the default ld.so.conf also contains /usr/contrib/lib and
11362 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11363 # libtool to hard-code these into programs
11364 ;;
11365
11366cygwin* | mingw* | pw32*)
11367 version_type=windows
11368 shrext=".dll"
11369 need_version=no
11370 need_lib_prefix=no
11371
11372 case $GCC,$host_os in
11373 yes,cygwin* | yes,mingw* | yes,pw32*)
11374 library_names_spec='$libname.dll.a'
11375 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11376 postinstall_cmds='base_file=`basename \${file}`~
11377 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11378 dldir=$destdir/`dirname \$dlpath`~
11379 test -d \$dldir || mkdir -p \$dldir~
11380 $install_prog $dir/$dlname \$dldir/$dlname'
11381 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11382 dlpath=$dir/\$dldll~
11383 $rm \$dlpath'
11384 shlibpath_overrides_runpath=yes
11385
11386 case $host_os in
11387 cygwin*)
11388 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11389 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11390 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11391 ;;
11392 mingw*)
11393 # MinGW DLLs use traditional 'lib' prefix
11394 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11395 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11396 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11397 # It is most probably a Windows format PATH printed by
11398 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11399 # path with ; separators, and with drive letters. We can handle the
11400 # drive letters (cygwin fileutils understands them), so leave them,
11401 # especially as we might pass files found there to a mingw objdump,
11402 # which wouldn't understand a cygwinified path. Ahh.
11403 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11404 else
11405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11406 fi
11407 ;;
11408 pw32*)
11409 # pw32 DLLs use 'pw' prefix rather than 'lib'
11410 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11411 ;;
11412 esac
11413 ;;
11414
11415 *)
11416 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11417 ;;
11418 esac
11419 dynamic_linker='Win32 ld.exe'
11420 # FIXME: first we should search . and the directory the executable is in
11421 shlibpath_var=PATH
11422 ;;
11423
11424darwin* | rhapsody*)
11425 dynamic_linker="$host_os dyld"
11426 version_type=darwin
11427 need_lib_prefix=no
11428 need_version=no
11429 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11430 soname_spec='${libname}${release}${major}$shared_ext'
11431 shlibpath_overrides_runpath=yes
11432 shlibpath_var=DYLD_LIBRARY_PATH
11433 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11434 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11435 if test "$GCC" = yes; then
11436 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11437 else
11438 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11439 fi
11440 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11441 ;;
11442
11443dgux*)
11444 version_type=linux
11445 need_lib_prefix=no
11446 need_version=no
11447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11448 soname_spec='${libname}${release}${shared_ext}$major'
11449 shlibpath_var=LD_LIBRARY_PATH
11450 ;;
11451
11452freebsd1*)
11453 dynamic_linker=no
11454 ;;
11455
11456kfreebsd*-gnu)
11457 version_type=linux
11458 need_lib_prefix=no
11459 need_version=no
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11461 soname_spec='${libname}${release}${shared_ext}$major'
11462 shlibpath_var=LD_LIBRARY_PATH
11463 shlibpath_overrides_runpath=no
11464 hardcode_into_libs=yes
11465 dynamic_linker='GNU ld.so'
11466 ;;
11467
11468freebsd*)
11469 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11470 version_type=freebsd-$objformat
11471 case $version_type in
11472 freebsd-elf*)
11473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11474 need_version=no
11475 need_lib_prefix=no
11476 ;;
11477 freebsd-*)
11478 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11479 need_version=yes
11480 ;;
11481 esac
11482 shlibpath_var=LD_LIBRARY_PATH
11483 case $host_os in
11484 freebsd2*)
11485 shlibpath_overrides_runpath=yes
11486 ;;
11487 freebsd3.01* | freebsdelf3.01*)
11488 shlibpath_overrides_runpath=yes
11489 hardcode_into_libs=yes
11490 ;;
11491 *) # from 3.2 on
11492 shlibpath_overrides_runpath=no
11493 hardcode_into_libs=yes
11494 ;;
11495 esac
11496 ;;
11497
11498gnu*)
11499 version_type=linux
11500 need_lib_prefix=no
11501 need_version=no
11502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11503 soname_spec='${libname}${release}${shared_ext}$major'
11504 shlibpath_var=LD_LIBRARY_PATH
11505 hardcode_into_libs=yes
11506 ;;
11507
11508hpux9* | hpux10* | hpux11*)
11509 # Give a soname corresponding to the major version so that dld.sl refuses to
11510 # link against other versions.
11511 version_type=sunos
11512 need_lib_prefix=no
11513 need_version=no
11514 case "$host_cpu" in
11515 ia64*)
11516 shrext='.so'
11517 hardcode_into_libs=yes
11518 dynamic_linker="$host_os dld.so"
11519 shlibpath_var=LD_LIBRARY_PATH
11520 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522 soname_spec='${libname}${release}${shared_ext}$major'
11523 if test "X$HPUX_IA64_MODE" = X32; then
11524 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11525 else
11526 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11527 fi
11528 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11529 ;;
11530 hppa*64*)
11531 shrext='.sl'
11532 hardcode_into_libs=yes
11533 dynamic_linker="$host_os dld.sl"
11534 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11535 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11537 soname_spec='${libname}${release}${shared_ext}$major'
11538 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11540 ;;
11541 *)
11542 shrext='.sl'
11543 dynamic_linker="$host_os dld.sl"
11544 shlibpath_var=SHLIB_PATH
11545 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 ;;
11549 esac
11550 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11551 postinstall_cmds='chmod 555 $lib'
11552 ;;
11553
11554irix5* | irix6* | nonstopux*)
11555 case $host_os in
11556 nonstopux*) version_type=nonstopux ;;
11557 *)
11558 if test "$lt_cv_prog_gnu_ld" = yes; then
11559 version_type=linux
11560 else
11561 version_type=irix
11562 fi ;;
11563 esac
11564 need_lib_prefix=no
11565 need_version=no
11566 soname_spec='${libname}${release}${shared_ext}$major'
11567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11568 case $host_os in
11569 irix5* | nonstopux*)
11570 libsuff= shlibsuff=
11571 ;;
11572 *)
11573 case $LD in # libtool.m4 will add one of these switches to LD
11574 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11575 libsuff= shlibsuff= libmagic=32-bit;;
11576 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11577 libsuff=32 shlibsuff=N32 libmagic=N32;;
11578 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11579 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11580 *) libsuff= shlibsuff= libmagic=never-match;;
11581 esac
11582 ;;
11583 esac
11584 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11585 shlibpath_overrides_runpath=no
11586 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11587 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11588 hardcode_into_libs=yes
11589 ;;
11590
11591# No shared lib support for Linux oldld, aout, or coff.
11592linux*oldld* | linux*aout* | linux*coff*)
11593 dynamic_linker=no
11594 ;;
11595
11596# This must be Linux ELF.
11597linux*)
11598 version_type=linux
11599 need_lib_prefix=no
11600 need_version=no
11601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11602 soname_spec='${libname}${release}${shared_ext}$major'
11603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11604 shlibpath_var=LD_LIBRARY_PATH
11605 shlibpath_overrides_runpath=no
11606 # This implies no fast_install, which is unacceptable.
11607 # Some rework will be needed to allow for fast_install
11608 # before this can be enabled.
11609 hardcode_into_libs=yes
11610
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011611 # Append ld.so.conf contents to the search path
11612 if test -f /etc/ld.so.conf; then
11613 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11614 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11615 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011616
11617 # We used to test for /lib/ld.so.1 and disable shared libraries on
11618 # powerpc, because MkLinux only supported shared libraries with the
11619 # GNU dynamic linker. Since this was broken with cross compilers,
11620 # most powerpc-linux boxes support dynamic linking these days and
11621 # people can always --disable-shared, the test was removed, and we
11622 # assume the GNU/Linux dynamic linker is in use.
11623 dynamic_linker='GNU/Linux ld.so'
11624 ;;
11625
11626knetbsd*-gnu)
11627 version_type=linux
11628 need_lib_prefix=no
11629 need_version=no
11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11631 soname_spec='${libname}${release}${shared_ext}$major'
11632 shlibpath_var=LD_LIBRARY_PATH
11633 shlibpath_overrides_runpath=no
11634 hardcode_into_libs=yes
11635 dynamic_linker='GNU ld.so'
11636 ;;
11637
11638netbsd*)
11639 version_type=sunos
11640 need_lib_prefix=no
11641 need_version=no
11642 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11645 dynamic_linker='NetBSD (a.out) ld.so'
11646 else
11647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11648 soname_spec='${libname}${release}${shared_ext}$major'
11649 dynamic_linker='NetBSD ld.elf_so'
11650 fi
11651 shlibpath_var=LD_LIBRARY_PATH
11652 shlibpath_overrides_runpath=yes
11653 hardcode_into_libs=yes
11654 ;;
11655
11656newsos6)
11657 version_type=linux
11658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11659 shlibpath_var=LD_LIBRARY_PATH
11660 shlibpath_overrides_runpath=yes
11661 ;;
11662
11663nto-qnx*)
11664 version_type=linux
11665 need_lib_prefix=no
11666 need_version=no
11667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11668 soname_spec='${libname}${release}${shared_ext}$major'
11669 shlibpath_var=LD_LIBRARY_PATH
11670 shlibpath_overrides_runpath=yes
11671 ;;
11672
11673openbsd*)
11674 version_type=sunos
11675 need_lib_prefix=no
11676 need_version=yes
11677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11679 shlibpath_var=LD_LIBRARY_PATH
11680 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11681 case $host_os in
11682 openbsd2.[89] | openbsd2.[89].*)
11683 shlibpath_overrides_runpath=no
11684 ;;
11685 *)
11686 shlibpath_overrides_runpath=yes
11687 ;;
11688 esac
11689 else
11690 shlibpath_overrides_runpath=yes
11691 fi
11692 ;;
11693
11694os2*)
11695 libname_spec='$name'
11696 shrext=".dll"
11697 need_lib_prefix=no
11698 library_names_spec='$libname${shared_ext} $libname.a'
11699 dynamic_linker='OS/2 ld.exe'
11700 shlibpath_var=LIBPATH
11701 ;;
11702
11703osf3* | osf4* | osf5*)
11704 version_type=osf
11705 need_lib_prefix=no
11706 need_version=no
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11709 shlibpath_var=LD_LIBRARY_PATH
11710 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11711 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11712 ;;
11713
11714sco3.2v5*)
11715 version_type=osf
11716 soname_spec='${libname}${release}${shared_ext}$major'
11717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11718 shlibpath_var=LD_LIBRARY_PATH
11719 ;;
11720
11721solaris*)
11722 version_type=linux
11723 need_lib_prefix=no
11724 need_version=no
11725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11726 soname_spec='${libname}${release}${shared_ext}$major'
11727 shlibpath_var=LD_LIBRARY_PATH
11728 shlibpath_overrides_runpath=yes
11729 hardcode_into_libs=yes
11730 # ldd complains unless libraries are executable
11731 postinstall_cmds='chmod +x $lib'
11732 ;;
11733
11734sunos4*)
11735 version_type=sunos
11736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11737 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11738 shlibpath_var=LD_LIBRARY_PATH
11739 shlibpath_overrides_runpath=yes
11740 if test "$with_gnu_ld" = yes; then
11741 need_lib_prefix=no
11742 fi
11743 need_version=yes
11744 ;;
11745
11746sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11747 version_type=linux
11748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11749 soname_spec='${libname}${release}${shared_ext}$major'
11750 shlibpath_var=LD_LIBRARY_PATH
11751 case $host_vendor in
11752 sni)
11753 shlibpath_overrides_runpath=no
11754 need_lib_prefix=no
11755 export_dynamic_flag_spec='${wl}-Blargedynsym'
11756 runpath_var=LD_RUN_PATH
11757 ;;
11758 siemens)
11759 need_lib_prefix=no
11760 ;;
11761 motorola)
11762 need_lib_prefix=no
11763 need_version=no
11764 shlibpath_overrides_runpath=no
11765 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11766 ;;
11767 esac
11768 ;;
11769
11770sysv4*MP*)
11771 if test -d /usr/nec ;then
11772 version_type=linux
11773 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11774 soname_spec='$libname${shared_ext}.$major'
11775 shlibpath_var=LD_LIBRARY_PATH
11776 fi
11777 ;;
11778
11779uts4*)
11780 version_type=linux
11781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11782 soname_spec='${libname}${release}${shared_ext}$major'
11783 shlibpath_var=LD_LIBRARY_PATH
11784 ;;
11785
11786*)
11787 dynamic_linker=no
11788 ;;
11789esac
11790echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11791echo "${ECHO_T}$dynamic_linker" >&6
11792test "$dynamic_linker" = no && can_build_shared=no
11793
11794echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11795echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11796hardcode_action_CXX=
11797if test -n "$hardcode_libdir_flag_spec_CXX" || \
11798 test -n "$runpath_var CXX" || \
11799 test "X$hardcode_automatic_CXX"="Xyes" ; then
11800
11801 # We can hardcode non-existant directories.
11802 if test "$hardcode_direct_CXX" != no &&
11803 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11804 # have to relink, otherwise we might link with an installed library
11805 # when we should be linking with a yet-to-be-installed one
11806 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11807 test "$hardcode_minus_L_CXX" != no; then
11808 # Linking always hardcodes the temporary library directory.
11809 hardcode_action_CXX=relink
11810 else
11811 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11812 hardcode_action_CXX=immediate
11813 fi
11814else
11815 # We cannot hardcode anything, or else we can only hardcode existing
11816 # directories.
11817 hardcode_action_CXX=unsupported
11818fi
11819echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11820echo "${ECHO_T}$hardcode_action_CXX" >&6
11821
11822if test "$hardcode_action_CXX" = relink; then
11823 # Fast installation is not supported
11824 enable_fast_install=no
11825elif test "$shlibpath_overrides_runpath" = yes ||
11826 test "$enable_shared" = no; then
11827 # Fast installation is not necessary
11828 enable_fast_install=needless
11829fi
11830
11831striplib=
11832old_striplib=
11833echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11834echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11835if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11836 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11837 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11838 echo "$as_me:$LINENO: result: yes" >&5
11839echo "${ECHO_T}yes" >&6
11840else
11841# FIXME - insert some real tests, host_os isn't really good enough
11842 case $host_os in
11843 darwin*)
11844 if test -n "$STRIP" ; then
11845 striplib="$STRIP -x"
11846 echo "$as_me:$LINENO: result: yes" >&5
11847echo "${ECHO_T}yes" >&6
11848 else
11849 echo "$as_me:$LINENO: result: no" >&5
11850echo "${ECHO_T}no" >&6
11851fi
11852 ;;
11853 *)
11854 echo "$as_me:$LINENO: result: no" >&5
11855echo "${ECHO_T}no" >&6
11856 ;;
11857 esac
11858fi
11859
11860if test "x$enable_dlopen" != xyes; then
11861 enable_dlopen=unknown
11862 enable_dlopen_self=unknown
11863 enable_dlopen_self_static=unknown
11864else
11865 lt_cv_dlopen=no
11866 lt_cv_dlopen_libs=
11867
11868 case $host_os in
11869 beos*)
11870 lt_cv_dlopen="load_add_on"
11871 lt_cv_dlopen_libs=
11872 lt_cv_dlopen_self=yes
11873 ;;
11874
11875 mingw* | pw32*)
11876 lt_cv_dlopen="LoadLibrary"
11877 lt_cv_dlopen_libs=
11878 ;;
11879
11880 cygwin*)
11881 lt_cv_dlopen="dlopen"
11882 lt_cv_dlopen_libs=
11883 ;;
11884
11885 darwin*)
11886 # if libdl is installed we need to link against it
11887 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11888echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11889if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
11891else
11892 ac_check_lib_save_LIBS=$LIBS
11893LIBS="-ldl $LIBS"
11894cat >conftest.$ac_ext <<_ACEOF
11895/* confdefs.h. */
11896_ACEOF
11897cat confdefs.h >>conftest.$ac_ext
11898cat >>conftest.$ac_ext <<_ACEOF
11899/* end confdefs.h. */
11900
11901/* Override any gcc2 internal prototype to avoid an error. */
11902#ifdef __cplusplus
11903extern "C"
11904#endif
11905/* We use char because int might match the return type of a gcc2
11906 builtin and then its argument prototype would still apply. */
11907char dlopen ();
11908int
11909main ()
11910{
11911dlopen ();
11912 ;
11913 return 0;
11914}
11915_ACEOF
11916rm -f conftest.$ac_objext conftest$ac_exeext
11917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011918 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011919 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011920 grep -v '^ *+' conftest.er1 >conftest.err
11921 rm -f conftest.er1
11922 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011925 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11928 ac_status=$?
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; } &&
11931 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933 (eval $ac_try) 2>&5
11934 ac_status=$?
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; }; then
11937 ac_cv_lib_dl_dlopen=yes
11938else
11939 echo "$as_me: failed program was:" >&5
11940sed 's/^/| /' conftest.$ac_ext >&5
11941
11942ac_cv_lib_dl_dlopen=no
11943fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011944rm -f conftest.err conftest.$ac_objext \
11945 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011946LIBS=$ac_check_lib_save_LIBS
11947fi
11948echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11949echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11950if test $ac_cv_lib_dl_dlopen = yes; then
11951 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11952else
11953
11954 lt_cv_dlopen="dyld"
11955 lt_cv_dlopen_libs=
11956 lt_cv_dlopen_self=yes
11957
11958fi
11959
11960 ;;
11961
11962 *)
11963 echo "$as_me:$LINENO: checking for shl_load" >&5
11964echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11965if test "${ac_cv_func_shl_load+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11967else
11968 cat >conftest.$ac_ext <<_ACEOF
11969/* confdefs.h. */
11970_ACEOF
11971cat confdefs.h >>conftest.$ac_ext
11972cat >>conftest.$ac_ext <<_ACEOF
11973/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011974/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11976#define shl_load innocuous_shl_load
11977
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011978/* System header to define __stub macros and hopefully few prototypes,
11979 which can conflict with char shl_load (); below.
11980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11981 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011982
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011983#ifdef __STDC__
11984# include <limits.h>
11985#else
11986# include <assert.h>
11987#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011988
11989#undef shl_load
11990
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011991/* Override any gcc2 internal prototype to avoid an error. */
11992#ifdef __cplusplus
11993extern "C"
11994{
11995#endif
11996/* We use char because int might match the return type of a gcc2
11997 builtin and then its argument prototype would still apply. */
11998char shl_load ();
11999/* The GNU C library defines this for functions which it implements
12000 to always fail with ENOSYS. Some functions are actually named
12001 something starting with __ and the normal name is an alias. */
12002#if defined (__stub_shl_load) || defined (__stub___shl_load)
12003choke me
12004#else
12005char (*f) () = shl_load;
12006#endif
12007#ifdef __cplusplus
12008}
12009#endif
12010
12011int
12012main ()
12013{
12014return f != shl_load;
12015 ;
12016 return 0;
12017}
12018_ACEOF
12019rm -f conftest.$ac_objext conftest$ac_exeext
12020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012021 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012022 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012023 grep -v '^ *+' conftest.er1 >conftest.err
12024 rm -f conftest.er1
12025 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; } &&
12034 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12037 ac_status=$?
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; }; then
12040 ac_cv_func_shl_load=yes
12041else
12042 echo "$as_me: failed program was:" >&5
12043sed 's/^/| /' conftest.$ac_ext >&5
12044
12045ac_cv_func_shl_load=no
12046fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012047rm -f conftest.err conftest.$ac_objext \
12048 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012049fi
12050echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12051echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12052if test $ac_cv_func_shl_load = yes; then
12053 lt_cv_dlopen="shl_load"
12054else
12055 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12056echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12057if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12058 echo $ECHO_N "(cached) $ECHO_C" >&6
12059else
12060 ac_check_lib_save_LIBS=$LIBS
12061LIBS="-ldld $LIBS"
12062cat >conftest.$ac_ext <<_ACEOF
12063/* confdefs.h. */
12064_ACEOF
12065cat confdefs.h >>conftest.$ac_ext
12066cat >>conftest.$ac_ext <<_ACEOF
12067/* end confdefs.h. */
12068
12069/* Override any gcc2 internal prototype to avoid an error. */
12070#ifdef __cplusplus
12071extern "C"
12072#endif
12073/* We use char because int might match the return type of a gcc2
12074 builtin and then its argument prototype would still apply. */
12075char shl_load ();
12076int
12077main ()
12078{
12079shl_load ();
12080 ;
12081 return 0;
12082}
12083_ACEOF
12084rm -f conftest.$ac_objext conftest$ac_exeext
12085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012086 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012087 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012088 grep -v '^ *+' conftest.er1 >conftest.err
12089 rm -f conftest.er1
12090 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012093 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095 (eval $ac_try) 2>&5
12096 ac_status=$?
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; } &&
12099 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12101 (eval $ac_try) 2>&5
12102 ac_status=$?
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; }; then
12105 ac_cv_lib_dld_shl_load=yes
12106else
12107 echo "$as_me: failed program was:" >&5
12108sed 's/^/| /' conftest.$ac_ext >&5
12109
12110ac_cv_lib_dld_shl_load=no
12111fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012112rm -f conftest.err conftest.$ac_objext \
12113 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012114LIBS=$ac_check_lib_save_LIBS
12115fi
12116echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12117echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12118if test $ac_cv_lib_dld_shl_load = yes; then
12119 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12120else
12121 echo "$as_me:$LINENO: checking for dlopen" >&5
12122echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12123if test "${ac_cv_func_dlopen+set}" = set; then
12124 echo $ECHO_N "(cached) $ECHO_C" >&6
12125else
12126 cat >conftest.$ac_ext <<_ACEOF
12127/* confdefs.h. */
12128_ACEOF
12129cat confdefs.h >>conftest.$ac_ext
12130cat >>conftest.$ac_ext <<_ACEOF
12131/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012132/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12134#define dlopen innocuous_dlopen
12135
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012136/* System header to define __stub macros and hopefully few prototypes,
12137 which can conflict with char dlopen (); below.
12138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12139 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012140
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012141#ifdef __STDC__
12142# include <limits.h>
12143#else
12144# include <assert.h>
12145#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012146
12147#undef dlopen
12148
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012149/* Override any gcc2 internal prototype to avoid an error. */
12150#ifdef __cplusplus
12151extern "C"
12152{
12153#endif
12154/* We use char because int might match the return type of a gcc2
12155 builtin and then its argument prototype would still apply. */
12156char dlopen ();
12157/* The GNU C library defines this for functions which it implements
12158 to always fail with ENOSYS. Some functions are actually named
12159 something starting with __ and the normal name is an alias. */
12160#if defined (__stub_dlopen) || defined (__stub___dlopen)
12161choke me
12162#else
12163char (*f) () = dlopen;
12164#endif
12165#ifdef __cplusplus
12166}
12167#endif
12168
12169int
12170main ()
12171{
12172return f != dlopen;
12173 ;
12174 return 0;
12175}
12176_ACEOF
12177rm -f conftest.$ac_objext conftest$ac_exeext
12178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012179 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012180 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012181 grep -v '^ *+' conftest.er1 >conftest.err
12182 rm -f conftest.er1
12183 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; } &&
12192 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194 (eval $ac_try) 2>&5
12195 ac_status=$?
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; }; then
12198 ac_cv_func_dlopen=yes
12199else
12200 echo "$as_me: failed program was:" >&5
12201sed 's/^/| /' conftest.$ac_ext >&5
12202
12203ac_cv_func_dlopen=no
12204fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012205rm -f conftest.err conftest.$ac_objext \
12206 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012207fi
12208echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12209echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12210if test $ac_cv_func_dlopen = yes; then
12211 lt_cv_dlopen="dlopen"
12212else
12213 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12214echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12215if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12216 echo $ECHO_N "(cached) $ECHO_C" >&6
12217else
12218 ac_check_lib_save_LIBS=$LIBS
12219LIBS="-ldl $LIBS"
12220cat >conftest.$ac_ext <<_ACEOF
12221/* confdefs.h. */
12222_ACEOF
12223cat confdefs.h >>conftest.$ac_ext
12224cat >>conftest.$ac_ext <<_ACEOF
12225/* end confdefs.h. */
12226
12227/* Override any gcc2 internal prototype to avoid an error. */
12228#ifdef __cplusplus
12229extern "C"
12230#endif
12231/* We use char because int might match the return type of a gcc2
12232 builtin and then its argument prototype would still apply. */
12233char dlopen ();
12234int
12235main ()
12236{
12237dlopen ();
12238 ;
12239 return 0;
12240}
12241_ACEOF
12242rm -f conftest.$ac_objext conftest$ac_exeext
12243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012244 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012245 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012246 grep -v '^ *+' conftest.er1 >conftest.err
12247 rm -f conftest.er1
12248 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12254 ac_status=$?
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; }; then
12263 ac_cv_lib_dl_dlopen=yes
12264else
12265 echo "$as_me: failed program was:" >&5
12266sed 's/^/| /' conftest.$ac_ext >&5
12267
12268ac_cv_lib_dl_dlopen=no
12269fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012270rm -f conftest.err conftest.$ac_objext \
12271 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012272LIBS=$ac_check_lib_save_LIBS
12273fi
12274echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12275echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12276if test $ac_cv_lib_dl_dlopen = yes; then
12277 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12278else
12279 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12280echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12281if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12283else
12284 ac_check_lib_save_LIBS=$LIBS
12285LIBS="-lsvld $LIBS"
12286cat >conftest.$ac_ext <<_ACEOF
12287/* confdefs.h. */
12288_ACEOF
12289cat confdefs.h >>conftest.$ac_ext
12290cat >>conftest.$ac_ext <<_ACEOF
12291/* end confdefs.h. */
12292
12293/* Override any gcc2 internal prototype to avoid an error. */
12294#ifdef __cplusplus
12295extern "C"
12296#endif
12297/* We use char because int might match the return type of a gcc2
12298 builtin and then its argument prototype would still apply. */
12299char dlopen ();
12300int
12301main ()
12302{
12303dlopen ();
12304 ;
12305 return 0;
12306}
12307_ACEOF
12308rm -f conftest.$ac_objext conftest$ac_exeext
12309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012310 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012311 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012312 grep -v '^ *+' conftest.er1 >conftest.err
12313 rm -f conftest.er1
12314 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12319 (eval $ac_try) 2>&5
12320 ac_status=$?
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; } &&
12323 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; }; then
12329 ac_cv_lib_svld_dlopen=yes
12330else
12331 echo "$as_me: failed program was:" >&5
12332sed 's/^/| /' conftest.$ac_ext >&5
12333
12334ac_cv_lib_svld_dlopen=no
12335fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012336rm -f conftest.err conftest.$ac_objext \
12337 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012338LIBS=$ac_check_lib_save_LIBS
12339fi
12340echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12341echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12342if test $ac_cv_lib_svld_dlopen = yes; then
12343 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12344else
12345 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12346echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12347if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12349else
12350 ac_check_lib_save_LIBS=$LIBS
12351LIBS="-ldld $LIBS"
12352cat >conftest.$ac_ext <<_ACEOF
12353/* confdefs.h. */
12354_ACEOF
12355cat confdefs.h >>conftest.$ac_ext
12356cat >>conftest.$ac_ext <<_ACEOF
12357/* end confdefs.h. */
12358
12359/* Override any gcc2 internal prototype to avoid an error. */
12360#ifdef __cplusplus
12361extern "C"
12362#endif
12363/* We use char because int might match the return type of a gcc2
12364 builtin and then its argument prototype would still apply. */
12365char dld_link ();
12366int
12367main ()
12368{
12369dld_link ();
12370 ;
12371 return 0;
12372}
12373_ACEOF
12374rm -f conftest.$ac_objext conftest$ac_exeext
12375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012376 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012377 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012378 grep -v '^ *+' conftest.er1 >conftest.err
12379 rm -f conftest.er1
12380 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385 (eval $ac_try) 2>&5
12386 ac_status=$?
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; } &&
12389 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391 (eval $ac_try) 2>&5
12392 ac_status=$?
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; }; then
12395 ac_cv_lib_dld_dld_link=yes
12396else
12397 echo "$as_me: failed program was:" >&5
12398sed 's/^/| /' conftest.$ac_ext >&5
12399
12400ac_cv_lib_dld_dld_link=no
12401fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012402rm -f conftest.err conftest.$ac_objext \
12403 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012404LIBS=$ac_check_lib_save_LIBS
12405fi
12406echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12407echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12408if test $ac_cv_lib_dld_dld_link = yes; then
12409 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12410fi
12411
12412
12413fi
12414
12415
12416fi
12417
12418
12419fi
12420
12421
12422fi
12423
12424
12425fi
12426
12427 ;;
12428 esac
12429
12430 if test "x$lt_cv_dlopen" != xno; then
12431 enable_dlopen=yes
12432 else
12433 enable_dlopen=no
12434 fi
12435
12436 case $lt_cv_dlopen in
12437 dlopen)
12438 save_CPPFLAGS="$CPPFLAGS"
12439 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12440
12441 save_LDFLAGS="$LDFLAGS"
12442 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12443
12444 save_LIBS="$LIBS"
12445 LIBS="$lt_cv_dlopen_libs $LIBS"
12446
12447 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12448echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12449if test "${lt_cv_dlopen_self+set}" = set; then
12450 echo $ECHO_N "(cached) $ECHO_C" >&6
12451else
12452 if test "$cross_compiling" = yes; then :
12453 lt_cv_dlopen_self=cross
12454else
12455 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12456 lt_status=$lt_dlunknown
12457 cat > conftest.$ac_ext <<EOF
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012458#line 12458 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012459#include "confdefs.h"
12460
12461#if HAVE_DLFCN_H
12462#include <dlfcn.h>
12463#endif
12464
12465#include <stdio.h>
12466
12467#ifdef RTLD_GLOBAL
12468# define LT_DLGLOBAL RTLD_GLOBAL
12469#else
12470# ifdef DL_GLOBAL
12471# define LT_DLGLOBAL DL_GLOBAL
12472# else
12473# define LT_DLGLOBAL 0
12474# endif
12475#endif
12476
12477/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12478 find out it does not work in some platform. */
12479#ifndef LT_DLLAZY_OR_NOW
12480# ifdef RTLD_LAZY
12481# define LT_DLLAZY_OR_NOW RTLD_LAZY
12482# else
12483# ifdef DL_LAZY
12484# define LT_DLLAZY_OR_NOW DL_LAZY
12485# else
12486# ifdef RTLD_NOW
12487# define LT_DLLAZY_OR_NOW RTLD_NOW
12488# else
12489# ifdef DL_NOW
12490# define LT_DLLAZY_OR_NOW DL_NOW
12491# else
12492# define LT_DLLAZY_OR_NOW 0
12493# endif
12494# endif
12495# endif
12496# endif
12497#endif
12498
12499#ifdef __cplusplus
12500extern "C" void exit (int);
12501#endif
12502
12503void fnord() { int i=42;}
12504int main ()
12505{
12506 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12507 int status = $lt_dlunknown;
12508
12509 if (self)
12510 {
12511 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12512 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12513 /* dlclose (self); */
12514 }
12515
12516 exit (status);
12517}
12518EOF
12519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12520 (eval $ac_link) 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12524 (./conftest; exit; ) 2>/dev/null
12525 lt_status=$?
12526 case x$lt_status in
12527 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12528 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12529 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12530 esac
12531 else :
12532 # compilation failed
12533 lt_cv_dlopen_self=no
12534 fi
12535fi
12536rm -fr conftest*
12537
12538
12539fi
12540echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12541echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12542
12543 if test "x$lt_cv_dlopen_self" = xyes; then
12544 LDFLAGS="$LDFLAGS $link_static_flag"
12545 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12546echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12547if test "${lt_cv_dlopen_self_static+set}" = set; then
12548 echo $ECHO_N "(cached) $ECHO_C" >&6
12549else
12550 if test "$cross_compiling" = yes; then :
12551 lt_cv_dlopen_self_static=cross
12552else
12553 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12554 lt_status=$lt_dlunknown
12555 cat > conftest.$ac_ext <<EOF
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012556#line 12556 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012557#include "confdefs.h"
12558
12559#if HAVE_DLFCN_H
12560#include <dlfcn.h>
12561#endif
12562
12563#include <stdio.h>
12564
12565#ifdef RTLD_GLOBAL
12566# define LT_DLGLOBAL RTLD_GLOBAL
12567#else
12568# ifdef DL_GLOBAL
12569# define LT_DLGLOBAL DL_GLOBAL
12570# else
12571# define LT_DLGLOBAL 0
12572# endif
12573#endif
12574
12575/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12576 find out it does not work in some platform. */
12577#ifndef LT_DLLAZY_OR_NOW
12578# ifdef RTLD_LAZY
12579# define LT_DLLAZY_OR_NOW RTLD_LAZY
12580# else
12581# ifdef DL_LAZY
12582# define LT_DLLAZY_OR_NOW DL_LAZY
12583# else
12584# ifdef RTLD_NOW
12585# define LT_DLLAZY_OR_NOW RTLD_NOW
12586# else
12587# ifdef DL_NOW
12588# define LT_DLLAZY_OR_NOW DL_NOW
12589# else
12590# define LT_DLLAZY_OR_NOW 0
12591# endif
12592# endif
12593# endif
12594# endif
12595#endif
12596
12597#ifdef __cplusplus
12598extern "C" void exit (int);
12599#endif
12600
12601void fnord() { int i=42;}
12602int main ()
12603{
12604 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12605 int status = $lt_dlunknown;
12606
12607 if (self)
12608 {
12609 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12610 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12611 /* dlclose (self); */
12612 }
12613
12614 exit (status);
12615}
12616EOF
12617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12618 (eval $ac_link) 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12622 (./conftest; exit; ) 2>/dev/null
12623 lt_status=$?
12624 case x$lt_status in
12625 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12626 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12627 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12628 esac
12629 else :
12630 # compilation failed
12631 lt_cv_dlopen_self_static=no
12632 fi
12633fi
12634rm -fr conftest*
12635
12636
12637fi
12638echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12639echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12640 fi
12641
12642 CPPFLAGS="$save_CPPFLAGS"
12643 LDFLAGS="$save_LDFLAGS"
12644 LIBS="$save_LIBS"
12645 ;;
12646 esac
12647
12648 case $lt_cv_dlopen_self in
12649 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12650 *) enable_dlopen_self=unknown ;;
12651 esac
12652
12653 case $lt_cv_dlopen_self_static in
12654 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12655 *) enable_dlopen_self_static=unknown ;;
12656 esac
12657fi
12658
12659
12660# The else clause should only fire when bootstrapping the
12661# libtool distribution, otherwise you forgot to ship ltmain.sh
12662# with your package, and you will get complaints that there are
12663# no rules to generate ltmain.sh.
12664if test -f "$ltmain"; then
12665 # See if we are running on zsh, and set the options which allow our commands through
12666 # without removal of \ escapes.
12667 if test -n "${ZSH_VERSION+set}" ; then
12668 setopt NO_GLOB_SUBST
12669 fi
12670 # Now quote all the things that may contain metacharacters while being
12671 # careful not to overquote the AC_SUBSTed values. We take copies of the
12672 # variables and quote the copies for generation of the libtool script.
12673 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12674 SED SHELL STRIP \
12675 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12676 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12677 deplibs_check_method reload_flag reload_cmds need_locks \
12678 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12679 lt_cv_sys_global_symbol_to_c_name_address \
12680 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12681 old_postinstall_cmds old_postuninstall_cmds \
12682 compiler_CXX \
12683 CC_CXX \
12684 LD_CXX \
12685 lt_prog_compiler_wl_CXX \
12686 lt_prog_compiler_pic_CXX \
12687 lt_prog_compiler_static_CXX \
12688 lt_prog_compiler_no_builtin_flag_CXX \
12689 export_dynamic_flag_spec_CXX \
12690 thread_safe_flag_spec_CXX \
12691 whole_archive_flag_spec_CXX \
12692 enable_shared_with_static_runtimes_CXX \
12693 old_archive_cmds_CXX \
12694 old_archive_from_new_cmds_CXX \
12695 predep_objects_CXX \
12696 postdep_objects_CXX \
12697 predeps_CXX \
12698 postdeps_CXX \
12699 compiler_lib_search_path_CXX \
12700 archive_cmds_CXX \
12701 archive_expsym_cmds_CXX \
12702 postinstall_cmds_CXX \
12703 postuninstall_cmds_CXX \
12704 old_archive_from_expsyms_cmds_CXX \
12705 allow_undefined_flag_CXX \
12706 no_undefined_flag_CXX \
12707 export_symbols_cmds_CXX \
12708 hardcode_libdir_flag_spec_CXX \
12709 hardcode_libdir_flag_spec_ld_CXX \
12710 hardcode_libdir_separator_CXX \
12711 hardcode_automatic_CXX \
12712 module_cmds_CXX \
12713 module_expsym_cmds_CXX \
12714 lt_cv_prog_compiler_c_o_CXX \
12715 exclude_expsyms_CXX \
12716 include_expsyms_CXX; do
12717
12718 case $var in
12719 old_archive_cmds_CXX | \
12720 old_archive_from_new_cmds_CXX | \
12721 archive_cmds_CXX | \
12722 archive_expsym_cmds_CXX | \
12723 module_cmds_CXX | \
12724 module_expsym_cmds_CXX | \
12725 old_archive_from_expsyms_cmds_CXX | \
12726 export_symbols_cmds_CXX | \
12727 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12728 postinstall_cmds | postuninstall_cmds | \
12729 old_postinstall_cmds | old_postuninstall_cmds | \
12730 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12731 # Double-quote double-evaled strings.
12732 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12733 ;;
12734 *)
12735 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12736 ;;
12737 esac
12738 done
12739
12740 case $lt_echo in
12741 *'\$0 --fallback-echo"')
12742 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12743 ;;
12744 esac
12745
12746cfgfile="$ofile"
12747
12748 cat <<__EOF__ >> "$cfgfile"
12749# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12750
12751# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12752
12753# Shell to use when invoking shell scripts.
12754SHELL=$lt_SHELL
12755
12756# Whether or not to build shared libraries.
12757build_libtool_libs=$enable_shared
12758
12759# Whether or not to build static libraries.
12760build_old_libs=$enable_static
12761
12762# Whether or not to add -lc for building shared libraries.
12763build_libtool_need_lc=$archive_cmds_need_lc_CXX
12764
12765# Whether or not to disallow shared libs when runtime libs are static
12766allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12767
12768# Whether or not to optimize for fast installation.
12769fast_install=$enable_fast_install
12770
12771# The host system.
12772host_alias=$host_alias
12773host=$host
12774
12775# An echo program that does not interpret backslashes.
12776echo=$lt_echo
12777
12778# The archiver.
12779AR=$lt_AR
12780AR_FLAGS=$lt_AR_FLAGS
12781
12782# A C compiler.
12783LTCC=$lt_LTCC
12784
12785# A language-specific compiler.
12786CC=$lt_compiler_CXX
12787
12788# Is the compiler the GNU C compiler?
12789with_gcc=$GCC_CXX
12790
12791# An ERE matcher.
12792EGREP=$lt_EGREP
12793
12794# The linker used to build libraries.
12795LD=$lt_LD_CXX
12796
12797# Whether we need hard or soft links.
12798LN_S=$lt_LN_S
12799
12800# A BSD-compatible nm program.
12801NM=$lt_NM
12802
12803# A symbol stripping program
12804STRIP=$lt_STRIP
12805
12806# Used to examine libraries when file_magic_cmd begins "file"
12807MAGIC_CMD=$MAGIC_CMD
12808
12809# Used on cygwin: DLL creation program.
12810DLLTOOL="$DLLTOOL"
12811
12812# Used on cygwin: object dumper.
12813OBJDUMP="$OBJDUMP"
12814
12815# Used on cygwin: assembler.
12816AS="$AS"
12817
12818# The name of the directory that contains temporary libtool files.
12819objdir=$objdir
12820
12821# How to create reloadable object files.
12822reload_flag=$lt_reload_flag
12823reload_cmds=$lt_reload_cmds
12824
12825# How to pass a linker flag through the compiler.
12826wl=$lt_lt_prog_compiler_wl_CXX
12827
12828# Object file suffix (normally "o").
12829objext="$ac_objext"
12830
12831# Old archive suffix (normally "a").
12832libext="$libext"
12833
12834# Shared library suffix (normally ".so").
12835shrext='$shrext'
12836
12837# Executable file suffix (normally "").
12838exeext="$exeext"
12839
12840# Additional compiler flags for building library objects.
12841pic_flag=$lt_lt_prog_compiler_pic_CXX
12842pic_mode=$pic_mode
12843
12844# What is the maximum length of a command?
12845max_cmd_len=$lt_cv_sys_max_cmd_len
12846
12847# Does compiler simultaneously support -c and -o options?
12848compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12849
12850# Must we lock files when doing compilation ?
12851need_locks=$lt_need_locks
12852
12853# Do we need the lib prefix for modules?
12854need_lib_prefix=$need_lib_prefix
12855
12856# Do we need a version for libraries?
12857need_version=$need_version
12858
12859# Whether dlopen is supported.
12860dlopen_support=$enable_dlopen
12861
12862# Whether dlopen of programs is supported.
12863dlopen_self=$enable_dlopen_self
12864
12865# Whether dlopen of statically linked programs is supported.
12866dlopen_self_static=$enable_dlopen_self_static
12867
12868# Compiler flag to prevent dynamic linking.
12869link_static_flag=$lt_lt_prog_compiler_static_CXX
12870
12871# Compiler flag to turn off builtin functions.
12872no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12873
12874# Compiler flag to allow reflexive dlopens.
12875export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12876
12877# Compiler flag to generate shared objects directly from archives.
12878whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12879
12880# Compiler flag to generate thread-safe objects.
12881thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12882
12883# Library versioning type.
12884version_type=$version_type
12885
12886# Format of library name prefix.
12887libname_spec=$lt_libname_spec
12888
12889# List of archive names. First name is the real one, the rest are links.
12890# The last name is the one that the linker finds with -lNAME.
12891library_names_spec=$lt_library_names_spec
12892
12893# The coded name of the library, if different from the real name.
12894soname_spec=$lt_soname_spec
12895
12896# Commands used to build and install an old-style archive.
12897RANLIB=$lt_RANLIB
12898old_archive_cmds=$lt_old_archive_cmds_CXX
12899old_postinstall_cmds=$lt_old_postinstall_cmds
12900old_postuninstall_cmds=$lt_old_postuninstall_cmds
12901
12902# Create an old-style archive from a shared archive.
12903old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12904
12905# Create a temporary old-style archive to link instead of a shared archive.
12906old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12907
12908# Commands used to build and install a shared archive.
12909archive_cmds=$lt_archive_cmds_CXX
12910archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12911postinstall_cmds=$lt_postinstall_cmds
12912postuninstall_cmds=$lt_postuninstall_cmds
12913
12914# Commands used to build a loadable module (assumed same as above if empty)
12915module_cmds=$lt_module_cmds_CXX
12916module_expsym_cmds=$lt_module_expsym_cmds_CXX
12917
12918# Commands to strip libraries.
12919old_striplib=$lt_old_striplib
12920striplib=$lt_striplib
12921
12922# Dependencies to place before the objects being linked to create a
12923# shared library.
12924predep_objects=$lt_predep_objects_CXX
12925
12926# Dependencies to place after the objects being linked to create a
12927# shared library.
12928postdep_objects=$lt_postdep_objects_CXX
12929
12930# Dependencies to place before the objects being linked to create a
12931# shared library.
12932predeps=$lt_predeps_CXX
12933
12934# Dependencies to place after the objects being linked to create a
12935# shared library.
12936postdeps=$lt_postdeps_CXX
12937
12938# The library search path used internally by the compiler when linking
12939# a shared library.
12940compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12941
12942# Method to check whether dependent libraries are shared objects.
12943deplibs_check_method=$lt_deplibs_check_method
12944
12945# Command to use when deplibs_check_method == file_magic.
12946file_magic_cmd=$lt_file_magic_cmd
12947
12948# Flag that allows shared libraries with undefined symbols to be built.
12949allow_undefined_flag=$lt_allow_undefined_flag_CXX
12950
12951# Flag that forces no undefined symbols.
12952no_undefined_flag=$lt_no_undefined_flag_CXX
12953
12954# Commands used to finish a libtool library installation in a directory.
12955finish_cmds=$lt_finish_cmds
12956
12957# Same as above, but a single script fragment to be evaled but not shown.
12958finish_eval=$lt_finish_eval
12959
12960# Take the output of nm and produce a listing of raw symbols and C names.
12961global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12962
12963# Transform the output of nm in a proper C declaration
12964global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12965
12966# Transform the output of nm in a C name address pair
12967global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12968
12969# This is the shared library runtime path variable.
12970runpath_var=$runpath_var
12971
12972# This is the shared library path variable.
12973shlibpath_var=$shlibpath_var
12974
12975# Is shlibpath searched before the hard-coded library search path?
12976shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12977
12978# How to hardcode a shared library path into an executable.
12979hardcode_action=$hardcode_action_CXX
12980
12981# Whether we should hardcode library paths into libraries.
12982hardcode_into_libs=$hardcode_into_libs
12983
12984# Flag to hardcode \$libdir into a binary during linking.
12985# This must work even if \$libdir does not exist.
12986hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12987
12988# If ld is used when linking, flag to hardcode \$libdir into
12989# a binary during linking. This must work even if \$libdir does
12990# not exist.
12991hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12992
12993# Whether we need a single -rpath flag with a separated argument.
12994hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12995
12996# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12997# resulting binary.
12998hardcode_direct=$hardcode_direct_CXX
12999
13000# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13001# resulting binary.
13002hardcode_minus_L=$hardcode_minus_L_CXX
13003
13004# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13005# the resulting binary.
13006hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13007
13008# Set to yes if building a shared library automatically hardcodes DIR into the library
13009# and all subsequent libraries and executables linked against it.
13010hardcode_automatic=$hardcode_automatic_CXX
13011
13012# Variables whose values should be saved in libtool wrapper scripts and
13013# restored at relink time.
13014variables_saved_for_relink="$variables_saved_for_relink"
13015
13016# Whether libtool must link a program against all its dependency libraries.
13017link_all_deplibs=$link_all_deplibs_CXX
13018
13019# Compile-time system search path for libraries
13020sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13021
13022# Run-time system search path for libraries
13023sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13024
13025# Fix the shell variable \$srcfile for the compiler.
13026fix_srcfile_path="$fix_srcfile_path_CXX"
13027
13028# Set to yes if exported symbols are required.
13029always_export_symbols=$always_export_symbols_CXX
13030
13031# The commands to list exported symbols.
13032export_symbols_cmds=$lt_export_symbols_cmds_CXX
13033
13034# The commands to extract the exported symbol list from a shared archive.
13035extract_expsyms_cmds=$lt_extract_expsyms_cmds
13036
13037# Symbols that should not be listed in the preloaded symbols.
13038exclude_expsyms=$lt_exclude_expsyms_CXX
13039
13040# Symbols that must always be exported.
13041include_expsyms=$lt_include_expsyms_CXX
13042
13043# ### END LIBTOOL TAG CONFIG: $tagname
13044
13045__EOF__
13046
13047
13048else
13049 # If there is no Makefile yet, we rely on a make rule to execute
13050 # `config.status --recheck' to rerun these tests and create the
13051 # libtool script then.
13052 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13053 if test -f "$ltmain_in"; then
13054 test -f Makefile && make "$ltmain"
13055 fi
13056fi
13057
13058
13059ac_ext=c
13060ac_cpp='$CPP $CPPFLAGS'
13061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13063ac_compiler_gnu=$ac_cv_c_compiler_gnu
13064
13065CC=$lt_save_CC
13066LDCXX=$LD
13067LD=$lt_save_LD
13068GCC=$lt_save_GCC
13069with_gnu_ldcxx=$with_gnu_ld
13070with_gnu_ld=$lt_save_with_gnu_ld
13071lt_cv_path_LDCXX=$lt_cv_path_LD
13072lt_cv_path_LD=$lt_save_path_LD
13073lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13074lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13075
13076 else
13077 tagname=""
13078 fi
13079 ;;
13080
13081 F77)
13082 if test -n "$F77" && test "X$F77" != "Xno"; then
13083
13084ac_ext=f
13085ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13086ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13087ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13088
13089
13090archive_cmds_need_lc_F77=no
13091allow_undefined_flag_F77=
13092always_export_symbols_F77=no
13093archive_expsym_cmds_F77=
13094export_dynamic_flag_spec_F77=
13095hardcode_direct_F77=no
13096hardcode_libdir_flag_spec_F77=
13097hardcode_libdir_flag_spec_ld_F77=
13098hardcode_libdir_separator_F77=
13099hardcode_minus_L_F77=no
13100hardcode_automatic_F77=no
13101module_cmds_F77=
13102module_expsym_cmds_F77=
13103link_all_deplibs_F77=unknown
13104old_archive_cmds_F77=$old_archive_cmds
13105no_undefined_flag_F77=
13106whole_archive_flag_spec_F77=
13107enable_shared_with_static_runtimes_F77=no
13108
13109# Source file extension for f77 test sources.
13110ac_ext=f
13111
13112# Object file extension for compiled f77 test sources.
13113objext=o
13114objext_F77=$objext
13115
13116# Code to be used in simple compile tests
13117lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13118
13119# Code to be used in simple link tests
13120lt_simple_link_test_code=" program t\n end\n"
13121
13122# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13123
13124# If no C compiler was specified, use CC.
13125LTCC=${LTCC-"$CC"}
13126
13127# Allow CC to be a program name with arguments.
13128compiler=$CC
13129
13130
13131# Allow CC to be a program name with arguments.
13132lt_save_CC="$CC"
13133CC=${F77-"f77"}
13134compiler=$CC
13135compiler_F77=$CC
13136cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13137
13138echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13139echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13140echo "$as_me:$LINENO: result: $can_build_shared" >&5
13141echo "${ECHO_T}$can_build_shared" >&6
13142
13143echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13144echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13145test "$can_build_shared" = "no" && enable_shared=no
13146
13147# On AIX, shared libraries and static libraries use the same namespace, and
13148# are all built from PIC.
13149case "$host_os" in
13150aix3*)
13151 test "$enable_shared" = yes && enable_static=no
13152 if test -n "$RANLIB"; then
13153 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13154 postinstall_cmds='$RANLIB $lib'
13155 fi
13156 ;;
13157aix4*)
13158 test "$enable_shared" = yes && enable_static=no
13159 ;;
13160esac
13161echo "$as_me:$LINENO: result: $enable_shared" >&5
13162echo "${ECHO_T}$enable_shared" >&6
13163
13164echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13165echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13166# Make sure either enable_shared or enable_static is yes.
13167test "$enable_shared" = yes || enable_static=yes
13168echo "$as_me:$LINENO: result: $enable_static" >&5
13169echo "${ECHO_T}$enable_static" >&6
13170
13171test "$ld_shlibs_F77" = no && can_build_shared=no
13172
13173GCC_F77="$G77"
13174LD_F77="$LD"
13175
13176lt_prog_compiler_wl_F77=
13177lt_prog_compiler_pic_F77=
13178lt_prog_compiler_static_F77=
13179
13180echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13181echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13182
13183 if test "$GCC" = yes; then
13184 lt_prog_compiler_wl_F77='-Wl,'
13185 lt_prog_compiler_static_F77='-static'
13186
13187 case $host_os in
13188 aix*)
13189 # All AIX code is PIC.
13190 if test "$host_cpu" = ia64; then
13191 # AIX 5 now supports IA64 processor
13192 lt_prog_compiler_static_F77='-Bstatic'
13193 fi
13194 ;;
13195
13196 amigaos*)
13197 # FIXME: we need at least 68020 code to build shared libraries, but
13198 # adding the `-m68020' flag to GCC prevents building anything better,
13199 # like `-m68040'.
13200 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13201 ;;
13202
13203 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13204 # PIC is the default for these OSes.
13205 ;;
13206
13207 mingw* | pw32* | os2*)
13208 # This hack is so that the source file can tell whether it is being
13209 # built for inclusion in a dll (and should export symbols for example).
13210 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13211 ;;
13212
13213 darwin* | rhapsody*)
13214 # PIC is the default on this platform
13215 # Common symbols not allowed in MH_DYLIB files
13216 lt_prog_compiler_pic_F77='-fno-common'
13217 ;;
13218
13219 msdosdjgpp*)
13220 # Just because we use GCC doesn't mean we suddenly get shared libraries
13221 # on systems that don't support them.
13222 lt_prog_compiler_can_build_shared_F77=no
13223 enable_shared=no
13224 ;;
13225
13226 sysv4*MP*)
13227 if test -d /usr/nec; then
13228 lt_prog_compiler_pic_F77=-Kconform_pic
13229 fi
13230 ;;
13231
13232 hpux*)
13233 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13234 # not for PA HP-UX.
13235 case "$host_cpu" in
13236 hppa*64*|ia64*)
13237 # +Z the default
13238 ;;
13239 *)
13240 lt_prog_compiler_pic_F77='-fPIC'
13241 ;;
13242 esac
13243 ;;
13244
13245 *)
13246 lt_prog_compiler_pic_F77='-fPIC'
13247 ;;
13248 esac
13249 else
13250 # PORTME Check for flag to pass linker flags through the system compiler.
13251 case $host_os in
13252 aix*)
13253 lt_prog_compiler_wl_F77='-Wl,'
13254 if test "$host_cpu" = ia64; then
13255 # AIX 5 now supports IA64 processor
13256 lt_prog_compiler_static_F77='-Bstatic'
13257 else
13258 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13259 fi
13260 ;;
13261
13262 mingw* | pw32* | os2*)
13263 # This hack is so that the source file can tell whether it is being
13264 # built for inclusion in a dll (and should export symbols for example).
13265 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13266 ;;
13267
13268 hpux9* | hpux10* | hpux11*)
13269 lt_prog_compiler_wl_F77='-Wl,'
13270 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13271 # not for PA HP-UX.
13272 case "$host_cpu" in
13273 hppa*64*|ia64*)
13274 # +Z the default
13275 ;;
13276 *)
13277 lt_prog_compiler_pic_F77='+Z'
13278 ;;
13279 esac
13280 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13281 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13282 ;;
13283
13284 irix5* | irix6* | nonstopux*)
13285 lt_prog_compiler_wl_F77='-Wl,'
13286 # PIC (with -KPIC) is the default.
13287 lt_prog_compiler_static_F77='-non_shared'
13288 ;;
13289
13290 newsos6)
13291 lt_prog_compiler_pic_F77='-KPIC'
13292 lt_prog_compiler_static_F77='-Bstatic'
13293 ;;
13294
13295 linux*)
13296 case $CC in
13297 icc* | ecc*)
13298 lt_prog_compiler_wl_F77='-Wl,'
13299 lt_prog_compiler_pic_F77='-KPIC'
13300 lt_prog_compiler_static_F77='-static'
13301 ;;
13302 ccc*)
13303 lt_prog_compiler_wl_F77='-Wl,'
13304 # All Alpha code is PIC.
13305 lt_prog_compiler_static_F77='-non_shared'
13306 ;;
13307 esac
13308 ;;
13309
13310 osf3* | osf4* | osf5*)
13311 lt_prog_compiler_wl_F77='-Wl,'
13312 # All OSF/1 code is PIC.
13313 lt_prog_compiler_static_F77='-non_shared'
13314 ;;
13315
13316 sco3.2v5*)
13317 lt_prog_compiler_pic_F77='-Kpic'
13318 lt_prog_compiler_static_F77='-dn'
13319 ;;
13320
13321 solaris*)
13322 lt_prog_compiler_wl_F77='-Wl,'
13323 lt_prog_compiler_pic_F77='-KPIC'
13324 lt_prog_compiler_static_F77='-Bstatic'
13325 ;;
13326
13327 sunos4*)
13328 lt_prog_compiler_wl_F77='-Qoption ld '
13329 lt_prog_compiler_pic_F77='-PIC'
13330 lt_prog_compiler_static_F77='-Bstatic'
13331 ;;
13332
13333 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13334 lt_prog_compiler_wl_F77='-Wl,'
13335 lt_prog_compiler_pic_F77='-KPIC'
13336 lt_prog_compiler_static_F77='-Bstatic'
13337 ;;
13338
13339 sysv4*MP*)
13340 if test -d /usr/nec ;then
13341 lt_prog_compiler_pic_F77='-Kconform_pic'
13342 lt_prog_compiler_static_F77='-Bstatic'
13343 fi
13344 ;;
13345
13346 uts4*)
13347 lt_prog_compiler_pic_F77='-pic'
13348 lt_prog_compiler_static_F77='-Bstatic'
13349 ;;
13350
13351 *)
13352 lt_prog_compiler_can_build_shared_F77=no
13353 ;;
13354 esac
13355 fi
13356
13357echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13358echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13359
13360#
13361# Check to make sure the PIC flag actually works.
13362#
13363if test -n "$lt_prog_compiler_pic_F77"; then
13364
13365echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13366echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13367if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13369else
13370 lt_prog_compiler_pic_works_F77=no
13371 ac_outfile=conftest.$ac_objext
13372 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13373 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13374 # Insert the option either (1) after the last *FLAGS variable, or
13375 # (2) before a word containing "conftest.", or (3) at the end.
13376 # Note that $ac_compile itself does not contain backslashes and begins
13377 # with a dollar sign (not a hyphen), so the echo should work correctly.
13378 # The option is referenced via a variable to avoid confusing sed.
13379 lt_compile=`echo "$ac_compile" | $SED \
13380 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13382 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013383 (eval echo "\"\$as_me:13383: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013384 (eval "$lt_compile" 2>conftest.err)
13385 ac_status=$?
13386 cat conftest.err >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013387 echo "$as_me:13387: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013388 if (exit $ac_status) && test -s "$ac_outfile"; then
13389 # The compiler can only warn and ignore the option if not recognized
13390 # So say no if there are warnings
13391 if test ! -s conftest.err; then
13392 lt_prog_compiler_pic_works_F77=yes
13393 fi
13394 fi
13395 $rm conftest*
13396
13397fi
13398echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13399echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13400
13401if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13402 case $lt_prog_compiler_pic_F77 in
13403 "" | " "*) ;;
13404 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13405 esac
13406else
13407 lt_prog_compiler_pic_F77=
13408 lt_prog_compiler_can_build_shared_F77=no
13409fi
13410
13411fi
13412case "$host_os" in
13413 # For platforms which do not support PIC, -DPIC is meaningless:
13414 *djgpp*)
13415 lt_prog_compiler_pic_F77=
13416 ;;
13417 *)
13418 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13419 ;;
13420esac
13421
13422echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13423echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13424if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13426else
13427 lt_cv_prog_compiler_c_o_F77=no
13428 $rm -r conftest 2>/dev/null
13429 mkdir conftest
13430 cd conftest
13431 mkdir out
13432 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13433
13434 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13435 # that will create temporary files in the current directory regardless of
13436 # the output directory. Thus, making CWD read-only will cause this test
13437 # to fail, enabling locking or at least warning the user not to do parallel
13438 # builds.
13439 chmod -w .
13440
13441 lt_compiler_flag="-o out/conftest2.$ac_objext"
13442 # Insert the option either (1) after the last *FLAGS variable, or
13443 # (2) before a word containing "conftest.", or (3) at the end.
13444 # Note that $ac_compile itself does not contain backslashes and begins
13445 # with a dollar sign (not a hyphen), so the echo should work correctly.
13446 lt_compile=`echo "$ac_compile" | $SED \
13447 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13449 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013450 (eval echo "\"\$as_me:13450: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013451 (eval "$lt_compile" 2>out/conftest.err)
13452 ac_status=$?
13453 cat out/conftest.err >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013454 echo "$as_me:13454: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13456 then
13457 # The compiler can only warn and ignore the option if not recognized
13458 # So say no if there are warnings
13459 if test ! -s out/conftest.err; then
13460 lt_cv_prog_compiler_c_o_F77=yes
13461 fi
13462 fi
13463 chmod u+w .
13464 $rm conftest*
13465 # SGI C++ compiler will create directory out/ii_files/ for
13466 # template instantiation
13467 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13468 $rm out/* && rmdir out
13469 cd ..
13470 rmdir conftest
13471 $rm conftest*
13472
13473fi
13474echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13475echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13476
13477
13478hard_links="nottested"
13479if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13480 # do not overwrite the value of need_locks provided by the user
13481 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13482echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13483 hard_links=yes
13484 $rm conftest*
13485 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13486 touch conftest.a
13487 ln conftest.a conftest.b 2>&5 || hard_links=no
13488 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13489 echo "$as_me:$LINENO: result: $hard_links" >&5
13490echo "${ECHO_T}$hard_links" >&6
13491 if test "$hard_links" = no; then
13492 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13493echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13494 need_locks=warn
13495 fi
13496else
13497 need_locks=no
13498fi
13499
13500echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13501echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13502
13503 runpath_var=
13504 allow_undefined_flag_F77=
13505 enable_shared_with_static_runtimes_F77=no
13506 archive_cmds_F77=
13507 archive_expsym_cmds_F77=
13508 old_archive_From_new_cmds_F77=
13509 old_archive_from_expsyms_cmds_F77=
13510 export_dynamic_flag_spec_F77=
13511 whole_archive_flag_spec_F77=
13512 thread_safe_flag_spec_F77=
13513 hardcode_libdir_flag_spec_F77=
13514 hardcode_libdir_flag_spec_ld_F77=
13515 hardcode_libdir_separator_F77=
13516 hardcode_direct_F77=no
13517 hardcode_minus_L_F77=no
13518 hardcode_shlibpath_var_F77=unsupported
13519 link_all_deplibs_F77=unknown
13520 hardcode_automatic_F77=no
13521 module_cmds_F77=
13522 module_expsym_cmds_F77=
13523 always_export_symbols_F77=no
13524 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13525 # include_expsyms should be a list of space-separated symbols to be *always*
13526 # included in the symbol list
13527 include_expsyms_F77=
13528 # exclude_expsyms can be an extended regexp of symbols to exclude
13529 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13530 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13531 # as well as any symbol that contains `d'.
13532 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13533 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13534 # platforms (ab)use it in PIC code, but their linkers get confused if
13535 # the symbol is explicitly referenced. Since portable code cannot
13536 # rely on this symbol name, it's probably fine to never include it in
13537 # preloaded symbol tables.
13538 extract_expsyms_cmds=
13539
13540 case $host_os in
13541 cygwin* | mingw* | pw32*)
13542 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13543 # When not using gcc, we currently assume that we are using
13544 # Microsoft Visual C++.
13545 if test "$GCC" != yes; then
13546 with_gnu_ld=no
13547 fi
13548 ;;
13549 openbsd*)
13550 with_gnu_ld=no
13551 ;;
13552 esac
13553
13554 ld_shlibs_F77=yes
13555 if test "$with_gnu_ld" = yes; then
13556 # If archive_cmds runs LD, not CC, wlarc should be empty
13557 wlarc='${wl}'
13558
13559 # See if GNU ld supports shared libraries.
13560 case $host_os in
13561 aix3* | aix4* | aix5*)
13562 # On AIX/PPC, the GNU linker is very broken
13563 if test "$host_cpu" != ia64; then
13564 ld_shlibs_F77=no
13565 cat <<EOF 1>&2
13566
13567*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13568*** to be unable to reliably create shared libraries on AIX.
13569*** Therefore, libtool is disabling shared libraries support. If you
13570*** really care for shared libraries, you may want to modify your PATH
13571*** so that a non-GNU linker is found, and then restart.
13572
13573EOF
13574 fi
13575 ;;
13576
13577 amigaos*)
13578 archive_cmds_F77='$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)'
13579 hardcode_libdir_flag_spec_F77='-L$libdir'
13580 hardcode_minus_L_F77=yes
13581
13582 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13583 # that the semantics of dynamic libraries on AmigaOS, at least up
13584 # to version 4, is to share data among multiple programs linked
13585 # with the same dynamic library. Since this doesn't match the
13586 # behavior of shared libraries on other platforms, we can't use
13587 # them.
13588 ld_shlibs_F77=no
13589 ;;
13590
13591 beos*)
13592 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13593 allow_undefined_flag_F77=unsupported
13594 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13595 # support --undefined. This deserves some investigation. FIXME
13596 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13597 else
13598 ld_shlibs_F77=no
13599 fi
13600 ;;
13601
13602 cygwin* | mingw* | pw32*)
13603 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13604 # as there is no search path for DLLs.
13605 hardcode_libdir_flag_spec_F77='-L$libdir'
13606 allow_undefined_flag_F77=unsupported
13607 always_export_symbols_F77=no
13608 enable_shared_with_static_runtimes_F77=yes
13609 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13610
13611 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13612 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13613 # If the export-symbols file already is a .def file (1st line
13614 # is EXPORTS), use it as is; otherwise, prepend...
13615 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13616 cp $export_symbols $output_objdir/$soname.def;
13617 else
13618 echo EXPORTS > $output_objdir/$soname.def;
13619 cat $export_symbols >> $output_objdir/$soname.def;
13620 fi~
13621 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13622 else
13623 ld_shlibs=no
13624 fi
13625 ;;
13626
13627 netbsd*)
13628 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13629 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13630 wlarc=
13631 else
13632 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13633 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13634 fi
13635 ;;
13636
13637 solaris* | sysv5*)
13638 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13639 ld_shlibs_F77=no
13640 cat <<EOF 1>&2
13641
13642*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13643*** create shared libraries on Solaris systems. Therefore, libtool
13644*** is disabling shared libraries support. We urge you to upgrade GNU
13645*** binutils to release 2.9.1 or newer. Another option is to modify
13646*** your PATH or compiler configuration so that the native linker is
13647*** used, and then restart.
13648
13649EOF
13650 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13651 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13652 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13653 else
13654 ld_shlibs_F77=no
13655 fi
13656 ;;
13657
13658 sunos4*)
13659 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13660 wlarc=
13661 hardcode_direct_F77=yes
13662 hardcode_shlibpath_var_F77=no
13663 ;;
13664
13665 linux*)
13666 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13667 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13668 archive_cmds_F77="$tmp_archive_cmds"
13669 supports_anon_versioning=no
13670 case `$LD -v 2>/dev/null` in
13671 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13672 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13673 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13674 *\ 2.11.*) ;; # other 2.11 versions
13675 *) supports_anon_versioning=yes ;;
13676 esac
13677 if test $supports_anon_versioning = yes; then
13678 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13679cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13680$echo "local: *; };" >> $output_objdir/$libname.ver~
13681 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13682 else
13683 archive_expsym_cmds_F77="$tmp_archive_cmds"
13684 fi
13685 else
13686 ld_shlibs_F77=no
13687 fi
13688 ;;
13689
13690 *)
13691 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13692 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13693 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13694 else
13695 ld_shlibs_F77=no
13696 fi
13697 ;;
13698 esac
13699
13700 if test "$ld_shlibs_F77" = yes; then
13701 runpath_var=LD_RUN_PATH
13702 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13703 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13704 # ancient GNU ld didn't support --whole-archive et. al.
13705 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13706 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13707 else
13708 whole_archive_flag_spec_F77=
13709 fi
13710 fi
13711 else
13712 # PORTME fill in a description of your system's linker (not GNU ld)
13713 case $host_os in
13714 aix3*)
13715 allow_undefined_flag_F77=unsupported
13716 always_export_symbols_F77=yes
13717 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13718 # Note: this linker hardcodes the directories in LIBPATH if there
13719 # are no directories specified by -L.
13720 hardcode_minus_L_F77=yes
13721 if test "$GCC" = yes && test -z "$link_static_flag"; then
13722 # Neither direct hardcoding nor static linking is supported with a
13723 # broken collect2.
13724 hardcode_direct_F77=unsupported
13725 fi
13726 ;;
13727
13728 aix4* | aix5*)
13729 if test "$host_cpu" = ia64; then
13730 # On IA64, the linker does run time linking by default, so we don't
13731 # have to do anything special.
13732 aix_use_runtimelinking=no
13733 exp_sym_flag='-Bexport'
13734 no_entry_flag=""
13735 else
13736 # If we're using GNU nm, then we don't want the "-C" option.
13737 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13738 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13739 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13740 else
13741 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13742 fi
13743 aix_use_runtimelinking=no
13744
13745 # Test if we are trying to use run time linking or normal
13746 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13747 # need to do runtime linking.
13748 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13749 for ld_flag in $LDFLAGS; do
13750 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13751 aix_use_runtimelinking=yes
13752 break
13753 fi
13754 done
13755 esac
13756
13757 exp_sym_flag='-bexport'
13758 no_entry_flag='-bnoentry'
13759 fi
13760
13761 # When large executables or shared objects are built, AIX ld can
13762 # have problems creating the table of contents. If linking a library
13763 # or program results in "error TOC overflow" add -mminimal-toc to
13764 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13765 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13766
13767 archive_cmds_F77=''
13768 hardcode_direct_F77=yes
13769 hardcode_libdir_separator_F77=':'
13770 link_all_deplibs_F77=yes
13771
13772 if test "$GCC" = yes; then
13773 case $host_os in aix4.012|aix4.012.*)
13774 # We only want to do this on AIX 4.2 and lower, the check
13775 # below for broken collect2 doesn't work under 4.3+
13776 collect2name=`${CC} -print-prog-name=collect2`
13777 if test -f "$collect2name" && \
13778 strings "$collect2name" | grep resolve_lib_name >/dev/null
13779 then
13780 # We have reworked collect2
13781 hardcode_direct_F77=yes
13782 else
13783 # We have old collect2
13784 hardcode_direct_F77=unsupported
13785 # It fails to find uninstalled libraries when the uninstalled
13786 # path is not listed in the libpath. Setting hardcode_minus_L
13787 # to unsupported forces relinking
13788 hardcode_minus_L_F77=yes
13789 hardcode_libdir_flag_spec_F77='-L$libdir'
13790 hardcode_libdir_separator_F77=
13791 fi
13792 esac
13793 shared_flag='-shared'
13794 else
13795 # not using gcc
13796 if test "$host_cpu" = ia64; then
13797 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13798 # chokes on -Wl,-G. The following line is correct:
13799 shared_flag='-G'
13800 else
13801 if test "$aix_use_runtimelinking" = yes; then
13802 shared_flag='${wl}-G'
13803 else
13804 shared_flag='${wl}-bM:SRE'
13805 fi
13806 fi
13807 fi
13808
13809 # It seems that -bexpall does not export symbols beginning with
13810 # underscore (_), so it is better to generate a list of symbols to export.
13811 always_export_symbols_F77=yes
13812 if test "$aix_use_runtimelinking" = yes; then
13813 # Warning - without using the other runtime loading flags (-brtl),
13814 # -berok will link without error, but may produce a broken library.
13815 allow_undefined_flag_F77='-berok'
13816 # Determine the default libpath from the value encoded in an empty executable.
13817 cat >conftest.$ac_ext <<_ACEOF
13818 program main
13819
13820 end
13821_ACEOF
13822rm -f conftest.$ac_objext conftest$ac_exeext
13823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013824 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013825 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013826 grep -v '^ *+' conftest.er1 >conftest.err
13827 rm -f conftest.er1
13828 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013831 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13834 ac_status=$?
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; } &&
13837 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13840 ac_status=$?
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; }; then
13843
13844aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13845}'`
13846# Check for a 64-bit object if we didn't find anything.
13847if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13848}'`; fi
13849else
13850 echo "$as_me: failed program was:" >&5
13851sed 's/^/| /' conftest.$ac_ext >&5
13852
13853fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013854rm -f conftest.err conftest.$ac_objext \
13855 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013856if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13857
13858 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13859 archive_expsym_cmds_F77="\$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"
13860 else
13861 if test "$host_cpu" = ia64; then
13862 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13863 allow_undefined_flag_F77="-z nodefs"
13864 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13865 else
13866 # Determine the default libpath from the value encoded in an empty executable.
13867 cat >conftest.$ac_ext <<_ACEOF
13868 program main
13869
13870 end
13871_ACEOF
13872rm -f conftest.$ac_objext conftest$ac_exeext
13873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013874 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013875 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013876 grep -v '^ *+' conftest.er1 >conftest.err
13877 rm -f conftest.er1
13878 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013881 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13884 ac_status=$?
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; } &&
13887 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13890 ac_status=$?
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; }; then
13893
13894aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13895}'`
13896# Check for a 64-bit object if we didn't find anything.
13897if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13898}'`; fi
13899else
13900 echo "$as_me: failed program was:" >&5
13901sed 's/^/| /' conftest.$ac_ext >&5
13902
13903fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013904rm -f conftest.err conftest.$ac_objext \
13905 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013906if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13907
13908 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13909 # Warning - without using the other run time loading flags,
13910 # -berok will link without error, but may produce a broken library.
13911 no_undefined_flag_F77=' ${wl}-bernotok'
13912 allow_undefined_flag_F77=' ${wl}-berok'
13913 # -bexpall does not export symbols beginning with underscore (_)
13914 always_export_symbols_F77=yes
13915 # Exported symbols can be pulled into shared objects from archives
13916 whole_archive_flag_spec_F77=' '
13917 archive_cmds_need_lc_F77=yes
13918 # This is similar to how AIX traditionally builds it's shared libraries.
13919 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13920 fi
13921 fi
13922 ;;
13923
13924 amigaos*)
13925 archive_cmds_F77='$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)'
13926 hardcode_libdir_flag_spec_F77='-L$libdir'
13927 hardcode_minus_L_F77=yes
13928 # see comment about different semantics on the GNU ld section
13929 ld_shlibs_F77=no
13930 ;;
13931
13932 bsdi4*)
13933 export_dynamic_flag_spec_F77=-rdynamic
13934 ;;
13935
13936 cygwin* | mingw* | pw32*)
13937 # When not using gcc, we currently assume that we are using
13938 # Microsoft Visual C++.
13939 # hardcode_libdir_flag_spec is actually meaningless, as there is
13940 # no search path for DLLs.
13941 hardcode_libdir_flag_spec_F77=' '
13942 allow_undefined_flag_F77=unsupported
13943 # Tell ltmain to make .lib files, not .a files.
13944 libext=lib
13945 # Tell ltmain to make .dll files, not .so files.
13946 shrext=".dll"
13947 # FIXME: Setting linknames here is a bad hack.
13948 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13949 # The linker will automatically build a .lib file if we build a DLL.
13950 old_archive_From_new_cmds_F77='true'
13951 # FIXME: Should let the user specify the lib program.
13952 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13953 fix_srcfile_path='`cygpath -w "$srcfile"`'
13954 enable_shared_with_static_runtimes_F77=yes
13955 ;;
13956
13957 darwin* | rhapsody*)
13958 if test "$GXX" = yes ; then
13959 archive_cmds_need_lc_F77=no
13960 case "$host_os" in
13961 rhapsody* | darwin1.[012])
13962 allow_undefined_flag_F77='-undefined suppress'
13963 ;;
13964 *) # Darwin 1.3 on
13965 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13966 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13967 else
13968 case ${MACOSX_DEPLOYMENT_TARGET} in
13969 10.[012])
13970 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13971 ;;
13972 10.*)
13973 allow_undefined_flag_F77='-undefined dynamic_lookup'
13974 ;;
13975 esac
13976 fi
13977 ;;
13978 esac
13979 lt_int_apple_cc_single_mod=no
13980 output_verbose_link_cmd='echo'
13981 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13982 lt_int_apple_cc_single_mod=yes
13983 fi
13984 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13985 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13986 else
13987 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13988 fi
13989 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13990 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13991 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13992 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13993 else
13994 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13995 fi
13996 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13997 hardcode_direct_F77=no
13998 hardcode_automatic_F77=yes
13999 hardcode_shlibpath_var_F77=unsupported
14000 whole_archive_flag_spec_F77='-all_load $convenience'
14001 link_all_deplibs_F77=yes
14002 else
14003 ld_shlibs_F77=no
14004 fi
14005 ;;
14006
14007 dgux*)
14008 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14009 hardcode_libdir_flag_spec_F77='-L$libdir'
14010 hardcode_shlibpath_var_F77=no
14011 ;;
14012
14013 freebsd1*)
14014 ld_shlibs_F77=no
14015 ;;
14016
14017 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14018 # support. Future versions do this automatically, but an explicit c++rt0.o
14019 # does not break anything, and helps significantly (at the cost of a little
14020 # extra space).
14021 freebsd2.2*)
14022 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14023 hardcode_libdir_flag_spec_F77='-R$libdir'
14024 hardcode_direct_F77=yes
14025 hardcode_shlibpath_var_F77=no
14026 ;;
14027
14028 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14029 freebsd2*)
14030 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14031 hardcode_direct_F77=yes
14032 hardcode_minus_L_F77=yes
14033 hardcode_shlibpath_var_F77=no
14034 ;;
14035
14036 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14037 freebsd* | kfreebsd*-gnu)
14038 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14039 hardcode_libdir_flag_spec_F77='-R$libdir'
14040 hardcode_direct_F77=yes
14041 hardcode_shlibpath_var_F77=no
14042 ;;
14043
14044 hpux9*)
14045 if test "$GCC" = yes; then
14046 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14047 else
14048 archive_cmds_F77='$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'
14049 fi
14050 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14051 hardcode_libdir_separator_F77=:
14052 hardcode_direct_F77=yes
14053
14054 # hardcode_minus_L: Not really in the search PATH,
14055 # but as the default location of the library.
14056 hardcode_minus_L_F77=yes
14057 export_dynamic_flag_spec_F77='${wl}-E'
14058 ;;
14059
14060 hpux10* | hpux11*)
14061 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14062 case "$host_cpu" in
14063 hppa*64*|ia64*)
14064 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14065 ;;
14066 *)
14067 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14068 ;;
14069 esac
14070 else
14071 case "$host_cpu" in
14072 hppa*64*|ia64*)
14073 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14074 ;;
14075 *)
14076 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14077 ;;
14078 esac
14079 fi
14080 if test "$with_gnu_ld" = no; then
14081 case "$host_cpu" in
14082 hppa*64*)
14083 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14084 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14085 hardcode_libdir_separator_F77=:
14086 hardcode_direct_F77=no
14087 hardcode_shlibpath_var_F77=no
14088 ;;
14089 ia64*)
14090 hardcode_libdir_flag_spec_F77='-L$libdir'
14091 hardcode_direct_F77=no
14092 hardcode_shlibpath_var_F77=no
14093
14094 # hardcode_minus_L: Not really in the search PATH,
14095 # but as the default location of the library.
14096 hardcode_minus_L_F77=yes
14097 ;;
14098 *)
14099 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14100 hardcode_libdir_separator_F77=:
14101 hardcode_direct_F77=yes
14102 export_dynamic_flag_spec_F77='${wl}-E'
14103
14104 # hardcode_minus_L: Not really in the search PATH,
14105 # but as the default location of the library.
14106 hardcode_minus_L_F77=yes
14107 ;;
14108 esac
14109 fi
14110 ;;
14111
14112 irix5* | irix6* | nonstopux*)
14113 if test "$GCC" = yes; then
14114 archive_cmds_F77='$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'
14115 else
14116 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14117 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14118 fi
14119 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14120 hardcode_libdir_separator_F77=:
14121 link_all_deplibs_F77=yes
14122 ;;
14123
14124 netbsd*)
14125 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14126 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14127 else
14128 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14129 fi
14130 hardcode_libdir_flag_spec_F77='-R$libdir'
14131 hardcode_direct_F77=yes
14132 hardcode_shlibpath_var_F77=no
14133 ;;
14134
14135 newsos6)
14136 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14137 hardcode_direct_F77=yes
14138 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14139 hardcode_libdir_separator_F77=:
14140 hardcode_shlibpath_var_F77=no
14141 ;;
14142
14143 openbsd*)
14144 hardcode_direct_F77=yes
14145 hardcode_shlibpath_var_F77=no
14146 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14147 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14148 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14149 export_dynamic_flag_spec_F77='${wl}-E'
14150 else
14151 case $host_os in
14152 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14153 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14154 hardcode_libdir_flag_spec_F77='-R$libdir'
14155 ;;
14156 *)
14157 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14158 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14159 ;;
14160 esac
14161 fi
14162 ;;
14163
14164 os2*)
14165 hardcode_libdir_flag_spec_F77='-L$libdir'
14166 hardcode_minus_L_F77=yes
14167 allow_undefined_flag_F77=unsupported
14168 archive_cmds_F77='$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'
14169 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14170 ;;
14171
14172 osf3*)
14173 if test "$GCC" = yes; then
14174 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14175 archive_cmds_F77='$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'
14176 else
14177 allow_undefined_flag_F77=' -expect_unresolved \*'
14178 archive_cmds_F77='$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'
14179 fi
14180 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14181 hardcode_libdir_separator_F77=:
14182 ;;
14183
14184 osf4* | osf5*) # as osf3* with the addition of -msym flag
14185 if test "$GCC" = yes; then
14186 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14187 archive_cmds_F77='$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'
14188 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14189 else
14190 allow_undefined_flag_F77=' -expect_unresolved \*'
14191 archive_cmds_F77='$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'
14192 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14193 $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'
14194
14195 # Both c and cxx compiler support -rpath directly
14196 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14197 fi
14198 hardcode_libdir_separator_F77=:
14199 ;;
14200
14201 sco3.2v5*)
14202 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14203 hardcode_shlibpath_var_F77=no
14204 export_dynamic_flag_spec_F77='${wl}-Bexport'
14205 runpath_var=LD_RUN_PATH
14206 hardcode_runpath_var=yes
14207 ;;
14208
14209 solaris*)
14210 no_undefined_flag_F77=' -z text'
14211 if test "$GCC" = yes; then
14212 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14213 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14214 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14215 else
14216 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14217 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14218 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14219 fi
14220 hardcode_libdir_flag_spec_F77='-R$libdir'
14221 hardcode_shlibpath_var_F77=no
14222 case $host_os in
14223 solaris2.[0-5] | solaris2.[0-5].*) ;;
14224 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14225 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14226 esac
14227 link_all_deplibs_F77=yes
14228 ;;
14229
14230 sunos4*)
14231 if test "x$host_vendor" = xsequent; then
14232 # Use $CC to link under sequent, because it throws in some extra .o
14233 # files that make .init and .fini sections work.
14234 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14235 else
14236 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14237 fi
14238 hardcode_libdir_flag_spec_F77='-L$libdir'
14239 hardcode_direct_F77=yes
14240 hardcode_minus_L_F77=yes
14241 hardcode_shlibpath_var_F77=no
14242 ;;
14243
14244 sysv4)
14245 case $host_vendor in
14246 sni)
14247 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14248 hardcode_direct_F77=yes # is this really true???
14249 ;;
14250 siemens)
14251 ## LD is ld it makes a PLAMLIB
14252 ## CC just makes a GrossModule.
14253 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14254 reload_cmds_F77='$CC -r -o $output$reload_objs'
14255 hardcode_direct_F77=no
14256 ;;
14257 motorola)
14258 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14259 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14260 ;;
14261 esac
14262 runpath_var='LD_RUN_PATH'
14263 hardcode_shlibpath_var_F77=no
14264 ;;
14265
14266 sysv4.3*)
14267 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14268 hardcode_shlibpath_var_F77=no
14269 export_dynamic_flag_spec_F77='-Bexport'
14270 ;;
14271
14272 sysv4*MP*)
14273 if test -d /usr/nec; then
14274 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14275 hardcode_shlibpath_var_F77=no
14276 runpath_var=LD_RUN_PATH
14277 hardcode_runpath_var=yes
14278 ld_shlibs_F77=yes
14279 fi
14280 ;;
14281
14282 sysv4.2uw2*)
14283 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14284 hardcode_direct_F77=yes
14285 hardcode_minus_L_F77=no
14286 hardcode_shlibpath_var_F77=no
14287 hardcode_runpath_var=yes
14288 runpath_var=LD_RUN_PATH
14289 ;;
14290
14291 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14292 no_undefined_flag_F77='${wl}-z ${wl}text'
14293 if test "$GCC" = yes; then
14294 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14295 else
14296 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14297 fi
14298 runpath_var='LD_RUN_PATH'
14299 hardcode_shlibpath_var_F77=no
14300 ;;
14301
14302 sysv5*)
14303 no_undefined_flag_F77=' -z text'
14304 # $CC -shared without GNU ld will not create a library from C++
14305 # object files and a static libstdc++, better avoid it by now
14306 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14307 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14308 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14309 hardcode_libdir_flag_spec_F77=
14310 hardcode_shlibpath_var_F77=no
14311 runpath_var='LD_RUN_PATH'
14312 ;;
14313
14314 uts4*)
14315 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14316 hardcode_libdir_flag_spec_F77='-L$libdir'
14317 hardcode_shlibpath_var_F77=no
14318 ;;
14319
14320 *)
14321 ld_shlibs_F77=no
14322 ;;
14323 esac
14324 fi
14325
14326echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14327echo "${ECHO_T}$ld_shlibs_F77" >&6
14328test "$ld_shlibs_F77" = no && can_build_shared=no
14329
14330variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14331if test "$GCC" = yes; then
14332 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14333fi
14334
14335#
14336# Do we need to explicitly link libc?
14337#
14338case "x$archive_cmds_need_lc_F77" in
14339x|xyes)
14340 # Assume -lc should be added
14341 archive_cmds_need_lc_F77=yes
14342
14343 if test "$enable_shared" = yes && test "$GCC" = yes; then
14344 case $archive_cmds_F77 in
14345 *'~'*)
14346 # FIXME: we may have to deal with multi-command sequences.
14347 ;;
14348 '$CC '*)
14349 # Test whether the compiler implicitly links with -lc since on some
14350 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14351 # to ld, don't add -lc before -lgcc.
14352 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14353echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14354 $rm conftest*
14355 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14356
14357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14358 (eval $ac_compile) 2>&5
14359 ac_status=$?
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } 2>conftest.err; then
14362 soname=conftest
14363 lib=conftest
14364 libobjs=conftest.$ac_objext
14365 deplibs=
14366 wl=$lt_prog_compiler_wl_F77
14367 compiler_flags=-v
14368 linker_flags=-v
14369 verstring=
14370 output_objdir=.
14371 libname=conftest
14372 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14373 allow_undefined_flag_F77=
14374 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14375 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14376 ac_status=$?
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }
14379 then
14380 archive_cmds_need_lc_F77=no
14381 else
14382 archive_cmds_need_lc_F77=yes
14383 fi
14384 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14385 else
14386 cat conftest.err 1>&5
14387 fi
14388 $rm conftest*
14389 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14390echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14391 ;;
14392 esac
14393 fi
14394 ;;
14395esac
14396
14397echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14398echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14399library_names_spec=
14400libname_spec='lib$name'
14401soname_spec=
14402shrext=".so"
14403postinstall_cmds=
14404postuninstall_cmds=
14405finish_cmds=
14406finish_eval=
14407shlibpath_var=
14408shlibpath_overrides_runpath=unknown
14409version_type=none
14410dynamic_linker="$host_os ld.so"
14411sys_lib_dlsearch_path_spec="/lib /usr/lib"
14412if test "$GCC" = yes; then
14413 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14414 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14415 # if the path contains ";" then we assume it to be the separator
14416 # otherwise default to the standard path separator (i.e. ":") - it is
14417 # assumed that no part of a normal pathname contains ";" but that should
14418 # okay in the real world where ";" in dirpaths is itself problematic.
14419 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14420 else
14421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14422 fi
14423else
14424 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14425fi
14426need_lib_prefix=unknown
14427hardcode_into_libs=no
14428
14429# when you set need_version to no, make sure it does not cause -set_version
14430# flags to be left without arguments
14431need_version=unknown
14432
14433case $host_os in
14434aix3*)
14435 version_type=linux
14436 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14437 shlibpath_var=LIBPATH
14438
14439 # AIX 3 has no versioning support, so we append a major version to the name.
14440 soname_spec='${libname}${release}${shared_ext}$major'
14441 ;;
14442
14443aix4* | aix5*)
14444 version_type=linux
14445 need_lib_prefix=no
14446 need_version=no
14447 hardcode_into_libs=yes
14448 if test "$host_cpu" = ia64; then
14449 # AIX 5 supports IA64
14450 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14451 shlibpath_var=LD_LIBRARY_PATH
14452 else
14453 # With GCC up to 2.95.x, collect2 would create an import file
14454 # for dependence libraries. The import file would start with
14455 # the line `#! .'. This would cause the generated library to
14456 # depend on `.', always an invalid library. This was fixed in
14457 # development snapshots of GCC prior to 3.0.
14458 case $host_os in
14459 aix4 | aix4.[01] | aix4.[01].*)
14460 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14461 echo ' yes '
14462 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14463 :
14464 else
14465 can_build_shared=no
14466 fi
14467 ;;
14468 esac
14469 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14470 # soname into executable. Probably we can add versioning support to
14471 # collect2, so additional links can be useful in future.
14472 if test "$aix_use_runtimelinking" = yes; then
14473 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14474 # instead of lib<name>.a to let people know that these are not
14475 # typical AIX shared libraries.
14476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14477 else
14478 # We preserve .a as extension for shared libraries through AIX4.2
14479 # and later when we are not doing run time linking.
14480 library_names_spec='${libname}${release}.a $libname.a'
14481 soname_spec='${libname}${release}${shared_ext}$major'
14482 fi
14483 shlibpath_var=LIBPATH
14484 fi
14485 ;;
14486
14487amigaos*)
14488 library_names_spec='$libname.ixlibrary $libname.a'
14489 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14490 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'
14491 ;;
14492
14493beos*)
14494 library_names_spec='${libname}${shared_ext}'
14495 dynamic_linker="$host_os ld.so"
14496 shlibpath_var=LIBRARY_PATH
14497 ;;
14498
14499bsdi4*)
14500 version_type=linux
14501 need_version=no
14502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14503 soname_spec='${libname}${release}${shared_ext}$major'
14504 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14505 shlibpath_var=LD_LIBRARY_PATH
14506 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14507 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14508 # the default ld.so.conf also contains /usr/contrib/lib and
14509 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14510 # libtool to hard-code these into programs
14511 ;;
14512
14513cygwin* | mingw* | pw32*)
14514 version_type=windows
14515 shrext=".dll"
14516 need_version=no
14517 need_lib_prefix=no
14518
14519 case $GCC,$host_os in
14520 yes,cygwin* | yes,mingw* | yes,pw32*)
14521 library_names_spec='$libname.dll.a'
14522 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14523 postinstall_cmds='base_file=`basename \${file}`~
14524 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14525 dldir=$destdir/`dirname \$dlpath`~
14526 test -d \$dldir || mkdir -p \$dldir~
14527 $install_prog $dir/$dlname \$dldir/$dlname'
14528 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14529 dlpath=$dir/\$dldll~
14530 $rm \$dlpath'
14531 shlibpath_overrides_runpath=yes
14532
14533 case $host_os in
14534 cygwin*)
14535 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14536 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14537 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14538 ;;
14539 mingw*)
14540 # MinGW DLLs use traditional 'lib' prefix
14541 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14542 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14543 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14544 # It is most probably a Windows format PATH printed by
14545 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14546 # path with ; separators, and with drive letters. We can handle the
14547 # drive letters (cygwin fileutils understands them), so leave them,
14548 # especially as we might pass files found there to a mingw objdump,
14549 # which wouldn't understand a cygwinified path. Ahh.
14550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14551 else
14552 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14553 fi
14554 ;;
14555 pw32*)
14556 # pw32 DLLs use 'pw' prefix rather than 'lib'
14557 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14558 ;;
14559 esac
14560 ;;
14561
14562 *)
14563 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14564 ;;
14565 esac
14566 dynamic_linker='Win32 ld.exe'
14567 # FIXME: first we should search . and the directory the executable is in
14568 shlibpath_var=PATH
14569 ;;
14570
14571darwin* | rhapsody*)
14572 dynamic_linker="$host_os dyld"
14573 version_type=darwin
14574 need_lib_prefix=no
14575 need_version=no
14576 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14577 soname_spec='${libname}${release}${major}$shared_ext'
14578 shlibpath_overrides_runpath=yes
14579 shlibpath_var=DYLD_LIBRARY_PATH
14580 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14581 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14582 if test "$GCC" = yes; then
14583 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14584 else
14585 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14586 fi
14587 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14588 ;;
14589
14590dgux*)
14591 version_type=linux
14592 need_lib_prefix=no
14593 need_version=no
14594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14595 soname_spec='${libname}${release}${shared_ext}$major'
14596 shlibpath_var=LD_LIBRARY_PATH
14597 ;;
14598
14599freebsd1*)
14600 dynamic_linker=no
14601 ;;
14602
14603kfreebsd*-gnu)
14604 version_type=linux
14605 need_lib_prefix=no
14606 need_version=no
14607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14608 soname_spec='${libname}${release}${shared_ext}$major'
14609 shlibpath_var=LD_LIBRARY_PATH
14610 shlibpath_overrides_runpath=no
14611 hardcode_into_libs=yes
14612 dynamic_linker='GNU ld.so'
14613 ;;
14614
14615freebsd*)
14616 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14617 version_type=freebsd-$objformat
14618 case $version_type in
14619 freebsd-elf*)
14620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14621 need_version=no
14622 need_lib_prefix=no
14623 ;;
14624 freebsd-*)
14625 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14626 need_version=yes
14627 ;;
14628 esac
14629 shlibpath_var=LD_LIBRARY_PATH
14630 case $host_os in
14631 freebsd2*)
14632 shlibpath_overrides_runpath=yes
14633 ;;
14634 freebsd3.01* | freebsdelf3.01*)
14635 shlibpath_overrides_runpath=yes
14636 hardcode_into_libs=yes
14637 ;;
14638 *) # from 3.2 on
14639 shlibpath_overrides_runpath=no
14640 hardcode_into_libs=yes
14641 ;;
14642 esac
14643 ;;
14644
14645gnu*)
14646 version_type=linux
14647 need_lib_prefix=no
14648 need_version=no
14649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14650 soname_spec='${libname}${release}${shared_ext}$major'
14651 shlibpath_var=LD_LIBRARY_PATH
14652 hardcode_into_libs=yes
14653 ;;
14654
14655hpux9* | hpux10* | hpux11*)
14656 # Give a soname corresponding to the major version so that dld.sl refuses to
14657 # link against other versions.
14658 version_type=sunos
14659 need_lib_prefix=no
14660 need_version=no
14661 case "$host_cpu" in
14662 ia64*)
14663 shrext='.so'
14664 hardcode_into_libs=yes
14665 dynamic_linker="$host_os dld.so"
14666 shlibpath_var=LD_LIBRARY_PATH
14667 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14669 soname_spec='${libname}${release}${shared_ext}$major'
14670 if test "X$HPUX_IA64_MODE" = X32; then
14671 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14672 else
14673 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14674 fi
14675 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14676 ;;
14677 hppa*64*)
14678 shrext='.sl'
14679 hardcode_into_libs=yes
14680 dynamic_linker="$host_os dld.sl"
14681 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14682 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14684 soname_spec='${libname}${release}${shared_ext}$major'
14685 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14686 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14687 ;;
14688 *)
14689 shrext='.sl'
14690 dynamic_linker="$host_os dld.sl"
14691 shlibpath_var=SHLIB_PATH
14692 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694 soname_spec='${libname}${release}${shared_ext}$major'
14695 ;;
14696 esac
14697 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14698 postinstall_cmds='chmod 555 $lib'
14699 ;;
14700
14701irix5* | irix6* | nonstopux*)
14702 case $host_os in
14703 nonstopux*) version_type=nonstopux ;;
14704 *)
14705 if test "$lt_cv_prog_gnu_ld" = yes; then
14706 version_type=linux
14707 else
14708 version_type=irix
14709 fi ;;
14710 esac
14711 need_lib_prefix=no
14712 need_version=no
14713 soname_spec='${libname}${release}${shared_ext}$major'
14714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14715 case $host_os in
14716 irix5* | nonstopux*)
14717 libsuff= shlibsuff=
14718 ;;
14719 *)
14720 case $LD in # libtool.m4 will add one of these switches to LD
14721 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14722 libsuff= shlibsuff= libmagic=32-bit;;
14723 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14724 libsuff=32 shlibsuff=N32 libmagic=N32;;
14725 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14726 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14727 *) libsuff= shlibsuff= libmagic=never-match;;
14728 esac
14729 ;;
14730 esac
14731 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14732 shlibpath_overrides_runpath=no
14733 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14734 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14735 hardcode_into_libs=yes
14736 ;;
14737
14738# No shared lib support for Linux oldld, aout, or coff.
14739linux*oldld* | linux*aout* | linux*coff*)
14740 dynamic_linker=no
14741 ;;
14742
14743# This must be Linux ELF.
14744linux*)
14745 version_type=linux
14746 need_lib_prefix=no
14747 need_version=no
14748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14749 soname_spec='${libname}${release}${shared_ext}$major'
14750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14751 shlibpath_var=LD_LIBRARY_PATH
14752 shlibpath_overrides_runpath=no
14753 # This implies no fast_install, which is unacceptable.
14754 # Some rework will be needed to allow for fast_install
14755 # before this can be enabled.
14756 hardcode_into_libs=yes
14757
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000014758 # Append ld.so.conf contents to the search path
14759 if test -f /etc/ld.so.conf; then
14760 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14761 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14762 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014763
14764 # We used to test for /lib/ld.so.1 and disable shared libraries on
14765 # powerpc, because MkLinux only supported shared libraries with the
14766 # GNU dynamic linker. Since this was broken with cross compilers,
14767 # most powerpc-linux boxes support dynamic linking these days and
14768 # people can always --disable-shared, the test was removed, and we
14769 # assume the GNU/Linux dynamic linker is in use.
14770 dynamic_linker='GNU/Linux ld.so'
14771 ;;
14772
14773knetbsd*-gnu)
14774 version_type=linux
14775 need_lib_prefix=no
14776 need_version=no
14777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14778 soname_spec='${libname}${release}${shared_ext}$major'
14779 shlibpath_var=LD_LIBRARY_PATH
14780 shlibpath_overrides_runpath=no
14781 hardcode_into_libs=yes
14782 dynamic_linker='GNU ld.so'
14783 ;;
14784
14785netbsd*)
14786 version_type=sunos
14787 need_lib_prefix=no
14788 need_version=no
14789 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14791 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14792 dynamic_linker='NetBSD (a.out) ld.so'
14793 else
14794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14795 soname_spec='${libname}${release}${shared_ext}$major'
14796 dynamic_linker='NetBSD ld.elf_so'
14797 fi
14798 shlibpath_var=LD_LIBRARY_PATH
14799 shlibpath_overrides_runpath=yes
14800 hardcode_into_libs=yes
14801 ;;
14802
14803newsos6)
14804 version_type=linux
14805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14806 shlibpath_var=LD_LIBRARY_PATH
14807 shlibpath_overrides_runpath=yes
14808 ;;
14809
14810nto-qnx*)
14811 version_type=linux
14812 need_lib_prefix=no
14813 need_version=no
14814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14815 soname_spec='${libname}${release}${shared_ext}$major'
14816 shlibpath_var=LD_LIBRARY_PATH
14817 shlibpath_overrides_runpath=yes
14818 ;;
14819
14820openbsd*)
14821 version_type=sunos
14822 need_lib_prefix=no
14823 need_version=yes
14824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14826 shlibpath_var=LD_LIBRARY_PATH
14827 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14828 case $host_os in
14829 openbsd2.[89] | openbsd2.[89].*)
14830 shlibpath_overrides_runpath=no
14831 ;;
14832 *)
14833 shlibpath_overrides_runpath=yes
14834 ;;
14835 esac
14836 else
14837 shlibpath_overrides_runpath=yes
14838 fi
14839 ;;
14840
14841os2*)
14842 libname_spec='$name'
14843 shrext=".dll"
14844 need_lib_prefix=no
14845 library_names_spec='$libname${shared_ext} $libname.a'
14846 dynamic_linker='OS/2 ld.exe'
14847 shlibpath_var=LIBPATH
14848 ;;
14849
14850osf3* | osf4* | osf5*)
14851 version_type=osf
14852 need_lib_prefix=no
14853 need_version=no
14854 soname_spec='${libname}${release}${shared_ext}$major'
14855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14856 shlibpath_var=LD_LIBRARY_PATH
14857 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14858 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14859 ;;
14860
14861sco3.2v5*)
14862 version_type=osf
14863 soname_spec='${libname}${release}${shared_ext}$major'
14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 ;;
14867
14868solaris*)
14869 version_type=linux
14870 need_lib_prefix=no
14871 need_version=no
14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873 soname_spec='${libname}${release}${shared_ext}$major'
14874 shlibpath_var=LD_LIBRARY_PATH
14875 shlibpath_overrides_runpath=yes
14876 hardcode_into_libs=yes
14877 # ldd complains unless libraries are executable
14878 postinstall_cmds='chmod +x $lib'
14879 ;;
14880
14881sunos4*)
14882 version_type=sunos
14883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14884 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14885 shlibpath_var=LD_LIBRARY_PATH
14886 shlibpath_overrides_runpath=yes
14887 if test "$with_gnu_ld" = yes; then
14888 need_lib_prefix=no
14889 fi
14890 need_version=yes
14891 ;;
14892
14893sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14894 version_type=linux
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14896 soname_spec='${libname}${release}${shared_ext}$major'
14897 shlibpath_var=LD_LIBRARY_PATH
14898 case $host_vendor in
14899 sni)
14900 shlibpath_overrides_runpath=no
14901 need_lib_prefix=no
14902 export_dynamic_flag_spec='${wl}-Blargedynsym'
14903 runpath_var=LD_RUN_PATH
14904 ;;
14905 siemens)
14906 need_lib_prefix=no
14907 ;;
14908 motorola)
14909 need_lib_prefix=no
14910 need_version=no
14911 shlibpath_overrides_runpath=no
14912 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14913 ;;
14914 esac
14915 ;;
14916
14917sysv4*MP*)
14918 if test -d /usr/nec ;then
14919 version_type=linux
14920 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14921 soname_spec='$libname${shared_ext}.$major'
14922 shlibpath_var=LD_LIBRARY_PATH
14923 fi
14924 ;;
14925
14926uts4*)
14927 version_type=linux
14928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929 soname_spec='${libname}${release}${shared_ext}$major'
14930 shlibpath_var=LD_LIBRARY_PATH
14931 ;;
14932
14933*)
14934 dynamic_linker=no
14935 ;;
14936esac
14937echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14938echo "${ECHO_T}$dynamic_linker" >&6
14939test "$dynamic_linker" = no && can_build_shared=no
14940
14941echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14942echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14943hardcode_action_F77=
14944if test -n "$hardcode_libdir_flag_spec_F77" || \
14945 test -n "$runpath_var F77" || \
14946 test "X$hardcode_automatic_F77"="Xyes" ; then
14947
14948 # We can hardcode non-existant directories.
14949 if test "$hardcode_direct_F77" != no &&
14950 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14951 # have to relink, otherwise we might link with an installed library
14952 # when we should be linking with a yet-to-be-installed one
14953 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14954 test "$hardcode_minus_L_F77" != no; then
14955 # Linking always hardcodes the temporary library directory.
14956 hardcode_action_F77=relink
14957 else
14958 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14959 hardcode_action_F77=immediate
14960 fi
14961else
14962 # We cannot hardcode anything, or else we can only hardcode existing
14963 # directories.
14964 hardcode_action_F77=unsupported
14965fi
14966echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14967echo "${ECHO_T}$hardcode_action_F77" >&6
14968
14969if test "$hardcode_action_F77" = relink; then
14970 # Fast installation is not supported
14971 enable_fast_install=no
14972elif test "$shlibpath_overrides_runpath" = yes ||
14973 test "$enable_shared" = no; then
14974 # Fast installation is not necessary
14975 enable_fast_install=needless
14976fi
14977
14978striplib=
14979old_striplib=
14980echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14981echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14982if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14983 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14984 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14985 echo "$as_me:$LINENO: result: yes" >&5
14986echo "${ECHO_T}yes" >&6
14987else
14988# FIXME - insert some real tests, host_os isn't really good enough
14989 case $host_os in
14990 darwin*)
14991 if test -n "$STRIP" ; then
14992 striplib="$STRIP -x"
14993 echo "$as_me:$LINENO: result: yes" >&5
14994echo "${ECHO_T}yes" >&6
14995 else
14996 echo "$as_me:$LINENO: result: no" >&5
14997echo "${ECHO_T}no" >&6
14998fi
14999 ;;
15000 *)
15001 echo "$as_me:$LINENO: result: no" >&5
15002echo "${ECHO_T}no" >&6
15003 ;;
15004 esac
15005fi
15006
15007
15008
15009# The else clause should only fire when bootstrapping the
15010# libtool distribution, otherwise you forgot to ship ltmain.sh
15011# with your package, and you will get complaints that there are
15012# no rules to generate ltmain.sh.
15013if test -f "$ltmain"; then
15014 # See if we are running on zsh, and set the options which allow our commands through
15015 # without removal of \ escapes.
15016 if test -n "${ZSH_VERSION+set}" ; then
15017 setopt NO_GLOB_SUBST
15018 fi
15019 # Now quote all the things that may contain metacharacters while being
15020 # careful not to overquote the AC_SUBSTed values. We take copies of the
15021 # variables and quote the copies for generation of the libtool script.
15022 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15023 SED SHELL STRIP \
15024 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15025 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15026 deplibs_check_method reload_flag reload_cmds need_locks \
15027 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15028 lt_cv_sys_global_symbol_to_c_name_address \
15029 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15030 old_postinstall_cmds old_postuninstall_cmds \
15031 compiler_F77 \
15032 CC_F77 \
15033 LD_F77 \
15034 lt_prog_compiler_wl_F77 \
15035 lt_prog_compiler_pic_F77 \
15036 lt_prog_compiler_static_F77 \
15037 lt_prog_compiler_no_builtin_flag_F77 \
15038 export_dynamic_flag_spec_F77 \
15039 thread_safe_flag_spec_F77 \
15040 whole_archive_flag_spec_F77 \
15041 enable_shared_with_static_runtimes_F77 \
15042 old_archive_cmds_F77 \
15043 old_archive_from_new_cmds_F77 \
15044 predep_objects_F77 \
15045 postdep_objects_F77 \
15046 predeps_F77 \
15047 postdeps_F77 \
15048 compiler_lib_search_path_F77 \
15049 archive_cmds_F77 \
15050 archive_expsym_cmds_F77 \
15051 postinstall_cmds_F77 \
15052 postuninstall_cmds_F77 \
15053 old_archive_from_expsyms_cmds_F77 \
15054 allow_undefined_flag_F77 \
15055 no_undefined_flag_F77 \
15056 export_symbols_cmds_F77 \
15057 hardcode_libdir_flag_spec_F77 \
15058 hardcode_libdir_flag_spec_ld_F77 \
15059 hardcode_libdir_separator_F77 \
15060 hardcode_automatic_F77 \
15061 module_cmds_F77 \
15062 module_expsym_cmds_F77 \
15063 lt_cv_prog_compiler_c_o_F77 \
15064 exclude_expsyms_F77 \
15065 include_expsyms_F77; do
15066
15067 case $var in
15068 old_archive_cmds_F77 | \
15069 old_archive_from_new_cmds_F77 | \
15070 archive_cmds_F77 | \
15071 archive_expsym_cmds_F77 | \
15072 module_cmds_F77 | \
15073 module_expsym_cmds_F77 | \
15074 old_archive_from_expsyms_cmds_F77 | \
15075 export_symbols_cmds_F77 | \
15076 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15077 postinstall_cmds | postuninstall_cmds | \
15078 old_postinstall_cmds | old_postuninstall_cmds | \
15079 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15080 # Double-quote double-evaled strings.
15081 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15082 ;;
15083 *)
15084 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15085 ;;
15086 esac
15087 done
15088
15089 case $lt_echo in
15090 *'\$0 --fallback-echo"')
15091 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15092 ;;
15093 esac
15094
15095cfgfile="$ofile"
15096
15097 cat <<__EOF__ >> "$cfgfile"
15098# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15099
15100# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15101
15102# Shell to use when invoking shell scripts.
15103SHELL=$lt_SHELL
15104
15105# Whether or not to build shared libraries.
15106build_libtool_libs=$enable_shared
15107
15108# Whether or not to build static libraries.
15109build_old_libs=$enable_static
15110
15111# Whether or not to add -lc for building shared libraries.
15112build_libtool_need_lc=$archive_cmds_need_lc_F77
15113
15114# Whether or not to disallow shared libs when runtime libs are static
15115allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15116
15117# Whether or not to optimize for fast installation.
15118fast_install=$enable_fast_install
15119
15120# The host system.
15121host_alias=$host_alias
15122host=$host
15123
15124# An echo program that does not interpret backslashes.
15125echo=$lt_echo
15126
15127# The archiver.
15128AR=$lt_AR
15129AR_FLAGS=$lt_AR_FLAGS
15130
15131# A C compiler.
15132LTCC=$lt_LTCC
15133
15134# A language-specific compiler.
15135CC=$lt_compiler_F77
15136
15137# Is the compiler the GNU C compiler?
15138with_gcc=$GCC_F77
15139
15140# An ERE matcher.
15141EGREP=$lt_EGREP
15142
15143# The linker used to build libraries.
15144LD=$lt_LD_F77
15145
15146# Whether we need hard or soft links.
15147LN_S=$lt_LN_S
15148
15149# A BSD-compatible nm program.
15150NM=$lt_NM
15151
15152# A symbol stripping program
15153STRIP=$lt_STRIP
15154
15155# Used to examine libraries when file_magic_cmd begins "file"
15156MAGIC_CMD=$MAGIC_CMD
15157
15158# Used on cygwin: DLL creation program.
15159DLLTOOL="$DLLTOOL"
15160
15161# Used on cygwin: object dumper.
15162OBJDUMP="$OBJDUMP"
15163
15164# Used on cygwin: assembler.
15165AS="$AS"
15166
15167# The name of the directory that contains temporary libtool files.
15168objdir=$objdir
15169
15170# How to create reloadable object files.
15171reload_flag=$lt_reload_flag
15172reload_cmds=$lt_reload_cmds
15173
15174# How to pass a linker flag through the compiler.
15175wl=$lt_lt_prog_compiler_wl_F77
15176
15177# Object file suffix (normally "o").
15178objext="$ac_objext"
15179
15180# Old archive suffix (normally "a").
15181libext="$libext"
15182
15183# Shared library suffix (normally ".so").
15184shrext='$shrext'
15185
15186# Executable file suffix (normally "").
15187exeext="$exeext"
15188
15189# Additional compiler flags for building library objects.
15190pic_flag=$lt_lt_prog_compiler_pic_F77
15191pic_mode=$pic_mode
15192
15193# What is the maximum length of a command?
15194max_cmd_len=$lt_cv_sys_max_cmd_len
15195
15196# Does compiler simultaneously support -c and -o options?
15197compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15198
15199# Must we lock files when doing compilation ?
15200need_locks=$lt_need_locks
15201
15202# Do we need the lib prefix for modules?
15203need_lib_prefix=$need_lib_prefix
15204
15205# Do we need a version for libraries?
15206need_version=$need_version
15207
15208# Whether dlopen is supported.
15209dlopen_support=$enable_dlopen
15210
15211# Whether dlopen of programs is supported.
15212dlopen_self=$enable_dlopen_self
15213
15214# Whether dlopen of statically linked programs is supported.
15215dlopen_self_static=$enable_dlopen_self_static
15216
15217# Compiler flag to prevent dynamic linking.
15218link_static_flag=$lt_lt_prog_compiler_static_F77
15219
15220# Compiler flag to turn off builtin functions.
15221no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15222
15223# Compiler flag to allow reflexive dlopens.
15224export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15225
15226# Compiler flag to generate shared objects directly from archives.
15227whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15228
15229# Compiler flag to generate thread-safe objects.
15230thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15231
15232# Library versioning type.
15233version_type=$version_type
15234
15235# Format of library name prefix.
15236libname_spec=$lt_libname_spec
15237
15238# List of archive names. First name is the real one, the rest are links.
15239# The last name is the one that the linker finds with -lNAME.
15240library_names_spec=$lt_library_names_spec
15241
15242# The coded name of the library, if different from the real name.
15243soname_spec=$lt_soname_spec
15244
15245# Commands used to build and install an old-style archive.
15246RANLIB=$lt_RANLIB
15247old_archive_cmds=$lt_old_archive_cmds_F77
15248old_postinstall_cmds=$lt_old_postinstall_cmds
15249old_postuninstall_cmds=$lt_old_postuninstall_cmds
15250
15251# Create an old-style archive from a shared archive.
15252old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15253
15254# Create a temporary old-style archive to link instead of a shared archive.
15255old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15256
15257# Commands used to build and install a shared archive.
15258archive_cmds=$lt_archive_cmds_F77
15259archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15260postinstall_cmds=$lt_postinstall_cmds
15261postuninstall_cmds=$lt_postuninstall_cmds
15262
15263# Commands used to build a loadable module (assumed same as above if empty)
15264module_cmds=$lt_module_cmds_F77
15265module_expsym_cmds=$lt_module_expsym_cmds_F77
15266
15267# Commands to strip libraries.
15268old_striplib=$lt_old_striplib
15269striplib=$lt_striplib
15270
15271# Dependencies to place before the objects being linked to create a
15272# shared library.
15273predep_objects=$lt_predep_objects_F77
15274
15275# Dependencies to place after the objects being linked to create a
15276# shared library.
15277postdep_objects=$lt_postdep_objects_F77
15278
15279# Dependencies to place before the objects being linked to create a
15280# shared library.
15281predeps=$lt_predeps_F77
15282
15283# Dependencies to place after the objects being linked to create a
15284# shared library.
15285postdeps=$lt_postdeps_F77
15286
15287# The library search path used internally by the compiler when linking
15288# a shared library.
15289compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15290
15291# Method to check whether dependent libraries are shared objects.
15292deplibs_check_method=$lt_deplibs_check_method
15293
15294# Command to use when deplibs_check_method == file_magic.
15295file_magic_cmd=$lt_file_magic_cmd
15296
15297# Flag that allows shared libraries with undefined symbols to be built.
15298allow_undefined_flag=$lt_allow_undefined_flag_F77
15299
15300# Flag that forces no undefined symbols.
15301no_undefined_flag=$lt_no_undefined_flag_F77
15302
15303# Commands used to finish a libtool library installation in a directory.
15304finish_cmds=$lt_finish_cmds
15305
15306# Same as above, but a single script fragment to be evaled but not shown.
15307finish_eval=$lt_finish_eval
15308
15309# Take the output of nm and produce a listing of raw symbols and C names.
15310global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15311
15312# Transform the output of nm in a proper C declaration
15313global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15314
15315# Transform the output of nm in a C name address pair
15316global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15317
15318# This is the shared library runtime path variable.
15319runpath_var=$runpath_var
15320
15321# This is the shared library path variable.
15322shlibpath_var=$shlibpath_var
15323
15324# Is shlibpath searched before the hard-coded library search path?
15325shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15326
15327# How to hardcode a shared library path into an executable.
15328hardcode_action=$hardcode_action_F77
15329
15330# Whether we should hardcode library paths into libraries.
15331hardcode_into_libs=$hardcode_into_libs
15332
15333# Flag to hardcode \$libdir into a binary during linking.
15334# This must work even if \$libdir does not exist.
15335hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15336
15337# If ld is used when linking, flag to hardcode \$libdir into
15338# a binary during linking. This must work even if \$libdir does
15339# not exist.
15340hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15341
15342# Whether we need a single -rpath flag with a separated argument.
15343hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15344
15345# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15346# resulting binary.
15347hardcode_direct=$hardcode_direct_F77
15348
15349# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15350# resulting binary.
15351hardcode_minus_L=$hardcode_minus_L_F77
15352
15353# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15354# the resulting binary.
15355hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15356
15357# Set to yes if building a shared library automatically hardcodes DIR into the library
15358# and all subsequent libraries and executables linked against it.
15359hardcode_automatic=$hardcode_automatic_F77
15360
15361# Variables whose values should be saved in libtool wrapper scripts and
15362# restored at relink time.
15363variables_saved_for_relink="$variables_saved_for_relink"
15364
15365# Whether libtool must link a program against all its dependency libraries.
15366link_all_deplibs=$link_all_deplibs_F77
15367
15368# Compile-time system search path for libraries
15369sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15370
15371# Run-time system search path for libraries
15372sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15373
15374# Fix the shell variable \$srcfile for the compiler.
15375fix_srcfile_path="$fix_srcfile_path_F77"
15376
15377# Set to yes if exported symbols are required.
15378always_export_symbols=$always_export_symbols_F77
15379
15380# The commands to list exported symbols.
15381export_symbols_cmds=$lt_export_symbols_cmds_F77
15382
15383# The commands to extract the exported symbol list from a shared archive.
15384extract_expsyms_cmds=$lt_extract_expsyms_cmds
15385
15386# Symbols that should not be listed in the preloaded symbols.
15387exclude_expsyms=$lt_exclude_expsyms_F77
15388
15389# Symbols that must always be exported.
15390include_expsyms=$lt_include_expsyms_F77
15391
15392# ### END LIBTOOL TAG CONFIG: $tagname
15393
15394__EOF__
15395
15396
15397else
15398 # If there is no Makefile yet, we rely on a make rule to execute
15399 # `config.status --recheck' to rerun these tests and create the
15400 # libtool script then.
15401 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15402 if test -f "$ltmain_in"; then
15403 test -f Makefile && make "$ltmain"
15404 fi
15405fi
15406
15407
15408ac_ext=c
15409ac_cpp='$CPP $CPPFLAGS'
15410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15412ac_compiler_gnu=$ac_cv_c_compiler_gnu
15413
15414CC="$lt_save_CC"
15415
15416 else
15417 tagname=""
15418 fi
15419 ;;
15420
15421 GCJ)
15422 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15423
15424
15425
15426# Source file extension for Java test sources.
15427ac_ext=java
15428
15429# Object file extension for compiled Java test sources.
15430objext=o
15431objext_GCJ=$objext
15432
15433# Code to be used in simple compile tests
15434lt_simple_compile_test_code="class foo {}\n"
15435
15436# Code to be used in simple link tests
15437lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15438
15439# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15440
15441# If no C compiler was specified, use CC.
15442LTCC=${LTCC-"$CC"}
15443
15444# Allow CC to be a program name with arguments.
15445compiler=$CC
15446
15447
15448# Allow CC to be a program name with arguments.
15449lt_save_CC="$CC"
15450CC=${GCJ-"gcj"}
15451compiler=$CC
15452compiler_GCJ=$CC
15453
15454# GCJ did not exist at the time GCC didn't implicitly link libc in.
15455archive_cmds_need_lc_GCJ=no
15456
15457
15458lt_prog_compiler_no_builtin_flag_GCJ=
15459
15460if test "$GCC" = yes; then
15461 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15462
15463
15464echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15465echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15466if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15467 echo $ECHO_N "(cached) $ECHO_C" >&6
15468else
15469 lt_cv_prog_compiler_rtti_exceptions=no
15470 ac_outfile=conftest.$ac_objext
15471 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15472 lt_compiler_flag="-fno-rtti -fno-exceptions"
15473 # Insert the option either (1) after the last *FLAGS variable, or
15474 # (2) before a word containing "conftest.", or (3) at the end.
15475 # Note that $ac_compile itself does not contain backslashes and begins
15476 # with a dollar sign (not a hyphen), so the echo should work correctly.
15477 # The option is referenced via a variable to avoid confusing sed.
15478 lt_compile=`echo "$ac_compile" | $SED \
15479 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15481 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000015482 (eval echo "\"\$as_me:15482: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015483 (eval "$lt_compile" 2>conftest.err)
15484 ac_status=$?
15485 cat conftest.err >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000015486 echo "$as_me:15486: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015487 if (exit $ac_status) && test -s "$ac_outfile"; then
15488 # The compiler can only warn and ignore the option if not recognized
15489 # So say no if there are warnings
15490 if test ! -s conftest.err; then
15491 lt_cv_prog_compiler_rtti_exceptions=yes
15492 fi
15493 fi
15494 $rm conftest*
15495
15496fi
15497echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15498echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15499
15500if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15501 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15502else
15503 :
15504fi
15505
15506fi
15507
15508lt_prog_compiler_wl_GCJ=
15509lt_prog_compiler_pic_GCJ=
15510lt_prog_compiler_static_GCJ=
15511
15512echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15513echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15514
15515 if test "$GCC" = yes; then
15516 lt_prog_compiler_wl_GCJ='-Wl,'
15517 lt_prog_compiler_static_GCJ='-static'
15518
15519 case $host_os in
15520 aix*)
15521 # All AIX code is PIC.
15522 if test "$host_cpu" = ia64; then
15523 # AIX 5 now supports IA64 processor
15524 lt_prog_compiler_static_GCJ='-Bstatic'
15525 fi
15526 ;;
15527
15528 amigaos*)
15529 # FIXME: we need at least 68020 code to build shared libraries, but
15530 # adding the `-m68020' flag to GCC prevents building anything better,
15531 # like `-m68040'.
15532 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15533 ;;
15534
15535 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15536 # PIC is the default for these OSes.
15537 ;;
15538
15539 mingw* | pw32* | os2*)
15540 # This hack is so that the source file can tell whether it is being
15541 # built for inclusion in a dll (and should export symbols for example).
15542 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15543 ;;
15544
15545 darwin* | rhapsody*)
15546 # PIC is the default on this platform
15547 # Common symbols not allowed in MH_DYLIB files
15548 lt_prog_compiler_pic_GCJ='-fno-common'
15549 ;;
15550
15551 msdosdjgpp*)
15552 # Just because we use GCC doesn't mean we suddenly get shared libraries
15553 # on systems that don't support them.
15554 lt_prog_compiler_can_build_shared_GCJ=no
15555 enable_shared=no
15556 ;;
15557
15558 sysv4*MP*)
15559 if test -d /usr/nec; then
15560 lt_prog_compiler_pic_GCJ=-Kconform_pic
15561 fi
15562 ;;
15563
15564 hpux*)
15565 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15566 # not for PA HP-UX.
15567 case "$host_cpu" in
15568 hppa*64*|ia64*)
15569 # +Z the default
15570 ;;
15571 *)
15572 lt_prog_compiler_pic_GCJ='-fPIC'
15573 ;;
15574 esac
15575 ;;
15576
15577 *)
15578 lt_prog_compiler_pic_GCJ='-fPIC'
15579 ;;
15580 esac
15581 else
15582 # PORTME Check for flag to pass linker flags through the system compiler.
15583 case $host_os in
15584 aix*)
15585 lt_prog_compiler_wl_GCJ='-Wl,'
15586 if test "$host_cpu" = ia64; then
15587 # AIX 5 now supports IA64 processor
15588 lt_prog_compiler_static_GCJ='-Bstatic'
15589 else
15590 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15591 fi
15592 ;;
15593
15594 mingw* | pw32* | os2*)
15595 # This hack is so that the source file can tell whether it is being
15596 # built for inclusion in a dll (and should export symbols for example).
15597 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15598 ;;
15599
15600 hpux9* | hpux10* | hpux11*)
15601 lt_prog_compiler_wl_GCJ='-Wl,'
15602 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15603 # not for PA HP-UX.
15604 case "$host_cpu" in
15605 hppa*64*|ia64*)
15606 # +Z the default
15607 ;;
15608 *)
15609 lt_prog_compiler_pic_GCJ='+Z'
15610 ;;
15611 esac
15612 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15613 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15614 ;;
15615
15616 irix5* | irix6* | nonstopux*)
15617 lt_prog_compiler_wl_GCJ='-Wl,'
15618 # PIC (with -KPIC) is the default.
15619 lt_prog_compiler_static_GCJ='-non_shared'
15620 ;;
15621
15622 newsos6)
15623 lt_prog_compiler_pic_GCJ='-KPIC'
15624 lt_prog_compiler_static_GCJ='-Bstatic'
15625 ;;
15626
15627 linux*)
15628 case $CC in
15629 icc* | ecc*)
15630 lt_prog_compiler_wl_GCJ='-Wl,'
15631 lt_prog_compiler_pic_GCJ='-KPIC'
15632 lt_prog_compiler_static_GCJ='-static'
15633 ;;
15634 ccc*)
15635 lt_prog_compiler_wl_GCJ='-Wl,'
15636 # All Alpha code is PIC.
15637 lt_prog_compiler_static_GCJ='-non_shared'
15638 ;;
15639 esac
15640 ;;
15641
15642 osf3* | osf4* | osf5*)
15643 lt_prog_compiler_wl_GCJ='-Wl,'
15644 # All OSF/1 code is PIC.
15645 lt_prog_compiler_static_GCJ='-non_shared'
15646 ;;
15647
15648 sco3.2v5*)
15649 lt_prog_compiler_pic_GCJ='-Kpic'
15650 lt_prog_compiler_static_GCJ='-dn'
15651 ;;
15652
15653 solaris*)
15654 lt_prog_compiler_wl_GCJ='-Wl,'
15655 lt_prog_compiler_pic_GCJ='-KPIC'
15656 lt_prog_compiler_static_GCJ='-Bstatic'
15657 ;;
15658
15659 sunos4*)
15660 lt_prog_compiler_wl_GCJ='-Qoption ld '
15661 lt_prog_compiler_pic_GCJ='-PIC'
15662 lt_prog_compiler_static_GCJ='-Bstatic'
15663 ;;
15664
15665 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15666 lt_prog_compiler_wl_GCJ='-Wl,'
15667 lt_prog_compiler_pic_GCJ='-KPIC'
15668 lt_prog_compiler_static_GCJ='-Bstatic'
15669 ;;
15670
15671 sysv4*MP*)
15672 if test -d /usr/nec ;then
15673 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15674 lt_prog_compiler_static_GCJ='-Bstatic'
15675 fi
15676 ;;
15677
15678 uts4*)
15679 lt_prog_compiler_pic_GCJ='-pic'
15680 lt_prog_compiler_static_GCJ='-Bstatic'
15681 ;;
15682
15683 *)
15684 lt_prog_compiler_can_build_shared_GCJ=no
15685 ;;
15686 esac
15687 fi
15688
15689echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15690echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15691
15692#
15693# Check to make sure the PIC flag actually works.
15694#
15695if test -n "$lt_prog_compiler_pic_GCJ"; then
15696
15697echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15698echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15699if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15700 echo $ECHO_N "(cached) $ECHO_C" >&6
15701else
15702 lt_prog_compiler_pic_works_GCJ=no
15703 ac_outfile=conftest.$ac_objext
15704 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15705 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15706 # Insert the option either (1) after the last *FLAGS variable, or
15707 # (2) before a word containing "conftest.", or (3) at the end.
15708 # Note that $ac_compile itself does not contain backslashes and begins
15709 # with a dollar sign (not a hyphen), so the echo should work correctly.
15710 # The option is referenced via a variable to avoid confusing sed.
15711 lt_compile=`echo "$ac_compile" | $SED \
15712 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15714 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000015715 (eval echo "\"\$as_me:15715: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015716 (eval "$lt_compile" 2>conftest.err)
15717 ac_status=$?
15718 cat conftest.err >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000015719 echo "$as_me:15719: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015720 if (exit $ac_status) && test -s "$ac_outfile"; then
15721 # The compiler can only warn and ignore the option if not recognized
15722 # So say no if there are warnings
15723 if test ! -s conftest.err; then
15724 lt_prog_compiler_pic_works_GCJ=yes
15725 fi
15726 fi
15727 $rm conftest*
15728
15729fi
15730echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15731echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15732
15733if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15734 case $lt_prog_compiler_pic_GCJ in
15735 "" | " "*) ;;
15736 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15737 esac
15738else
15739 lt_prog_compiler_pic_GCJ=
15740 lt_prog_compiler_can_build_shared_GCJ=no
15741fi
15742
15743fi
15744case "$host_os" in
15745 # For platforms which do not support PIC, -DPIC is meaningless:
15746 *djgpp*)
15747 lt_prog_compiler_pic_GCJ=
15748 ;;
15749 *)
15750 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15751 ;;
15752esac
15753
15754echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15755echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15756if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15757 echo $ECHO_N "(cached) $ECHO_C" >&6
15758else
15759 lt_cv_prog_compiler_c_o_GCJ=no
15760 $rm -r conftest 2>/dev/null
15761 mkdir conftest
15762 cd conftest
15763 mkdir out
15764 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15765
15766 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15767 # that will create temporary files in the current directory regardless of
15768 # the output directory. Thus, making CWD read-only will cause this test
15769 # to fail, enabling locking or at least warning the user not to do parallel
15770 # builds.
15771 chmod -w .
15772
15773 lt_compiler_flag="-o out/conftest2.$ac_objext"
15774 # Insert the option either (1) after the last *FLAGS variable, or
15775 # (2) before a word containing "conftest.", or (3) at the end.
15776 # Note that $ac_compile itself does not contain backslashes and begins
15777 # with a dollar sign (not a hyphen), so the echo should work correctly.
15778 lt_compile=`echo "$ac_compile" | $SED \
15779 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15781 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000015782 (eval echo "\"\$as_me:15782: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015783 (eval "$lt_compile" 2>out/conftest.err)
15784 ac_status=$?
15785 cat out/conftest.err >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000015786 echo "$as_me:15786: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015787 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15788 then
15789 # The compiler can only warn and ignore the option if not recognized
15790 # So say no if there are warnings
15791 if test ! -s out/conftest.err; then
15792 lt_cv_prog_compiler_c_o_GCJ=yes
15793 fi
15794 fi
15795 chmod u+w .
15796 $rm conftest*
15797 # SGI C++ compiler will create directory out/ii_files/ for
15798 # template instantiation
15799 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15800 $rm out/* && rmdir out
15801 cd ..
15802 rmdir conftest
15803 $rm conftest*
15804
15805fi
15806echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15807echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15808
15809
15810hard_links="nottested"
15811if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15812 # do not overwrite the value of need_locks provided by the user
15813 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15814echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15815 hard_links=yes
15816 $rm conftest*
15817 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15818 touch conftest.a
15819 ln conftest.a conftest.b 2>&5 || hard_links=no
15820 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15821 echo "$as_me:$LINENO: result: $hard_links" >&5
15822echo "${ECHO_T}$hard_links" >&6
15823 if test "$hard_links" = no; then
15824 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15825echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15826 need_locks=warn
15827 fi
15828else
15829 need_locks=no
15830fi
15831
15832echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15833echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15834
15835 runpath_var=
15836 allow_undefined_flag_GCJ=
15837 enable_shared_with_static_runtimes_GCJ=no
15838 archive_cmds_GCJ=
15839 archive_expsym_cmds_GCJ=
15840 old_archive_From_new_cmds_GCJ=
15841 old_archive_from_expsyms_cmds_GCJ=
15842 export_dynamic_flag_spec_GCJ=
15843 whole_archive_flag_spec_GCJ=
15844 thread_safe_flag_spec_GCJ=
15845 hardcode_libdir_flag_spec_GCJ=
15846 hardcode_libdir_flag_spec_ld_GCJ=
15847 hardcode_libdir_separator_GCJ=
15848 hardcode_direct_GCJ=no
15849 hardcode_minus_L_GCJ=no
15850 hardcode_shlibpath_var_GCJ=unsupported
15851 link_all_deplibs_GCJ=unknown
15852 hardcode_automatic_GCJ=no
15853 module_cmds_GCJ=
15854 module_expsym_cmds_GCJ=
15855 always_export_symbols_GCJ=no
15856 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15857 # include_expsyms should be a list of space-separated symbols to be *always*
15858 # included in the symbol list
15859 include_expsyms_GCJ=
15860 # exclude_expsyms can be an extended regexp of symbols to exclude
15861 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15862 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15863 # as well as any symbol that contains `d'.
15864 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15865 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15866 # platforms (ab)use it in PIC code, but their linkers get confused if
15867 # the symbol is explicitly referenced. Since portable code cannot
15868 # rely on this symbol name, it's probably fine to never include it in
15869 # preloaded symbol tables.
15870 extract_expsyms_cmds=
15871
15872 case $host_os in
15873 cygwin* | mingw* | pw32*)
15874 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15875 # When not using gcc, we currently assume that we are using
15876 # Microsoft Visual C++.
15877 if test "$GCC" != yes; then
15878 with_gnu_ld=no
15879 fi
15880 ;;
15881 openbsd*)
15882 with_gnu_ld=no
15883 ;;
15884 esac
15885
15886 ld_shlibs_GCJ=yes
15887 if test "$with_gnu_ld" = yes; then
15888 # If archive_cmds runs LD, not CC, wlarc should be empty
15889 wlarc='${wl}'
15890
15891 # See if GNU ld supports shared libraries.
15892 case $host_os in
15893 aix3* | aix4* | aix5*)
15894 # On AIX/PPC, the GNU linker is very broken
15895 if test "$host_cpu" != ia64; then
15896 ld_shlibs_GCJ=no
15897 cat <<EOF 1>&2
15898
15899*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15900*** to be unable to reliably create shared libraries on AIX.
15901*** Therefore, libtool is disabling shared libraries support. If you
15902*** really care for shared libraries, you may want to modify your PATH
15903*** so that a non-GNU linker is found, and then restart.
15904
15905EOF
15906 fi
15907 ;;
15908
15909 amigaos*)
15910 archive_cmds_GCJ='$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)'
15911 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15912 hardcode_minus_L_GCJ=yes
15913
15914 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15915 # that the semantics of dynamic libraries on AmigaOS, at least up
15916 # to version 4, is to share data among multiple programs linked
15917 # with the same dynamic library. Since this doesn't match the
15918 # behavior of shared libraries on other platforms, we can't use
15919 # them.
15920 ld_shlibs_GCJ=no
15921 ;;
15922
15923 beos*)
15924 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15925 allow_undefined_flag_GCJ=unsupported
15926 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15927 # support --undefined. This deserves some investigation. FIXME
15928 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15929 else
15930 ld_shlibs_GCJ=no
15931 fi
15932 ;;
15933
15934 cygwin* | mingw* | pw32*)
15935 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15936 # as there is no search path for DLLs.
15937 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15938 allow_undefined_flag_GCJ=unsupported
15939 always_export_symbols_GCJ=no
15940 enable_shared_with_static_runtimes_GCJ=yes
15941 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15942
15943 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15944 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15945 # If the export-symbols file already is a .def file (1st line
15946 # is EXPORTS), use it as is; otherwise, prepend...
15947 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15948 cp $export_symbols $output_objdir/$soname.def;
15949 else
15950 echo EXPORTS > $output_objdir/$soname.def;
15951 cat $export_symbols >> $output_objdir/$soname.def;
15952 fi~
15953 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15954 else
15955 ld_shlibs=no
15956 fi
15957 ;;
15958
15959 netbsd*)
15960 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15961 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15962 wlarc=
15963 else
15964 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15965 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15966 fi
15967 ;;
15968
15969 solaris* | sysv5*)
15970 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15971 ld_shlibs_GCJ=no
15972 cat <<EOF 1>&2
15973
15974*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15975*** create shared libraries on Solaris systems. Therefore, libtool
15976*** is disabling shared libraries support. We urge you to upgrade GNU
15977*** binutils to release 2.9.1 or newer. Another option is to modify
15978*** your PATH or compiler configuration so that the native linker is
15979*** used, and then restart.
15980
15981EOF
15982 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15983 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15984 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15985 else
15986 ld_shlibs_GCJ=no
15987 fi
15988 ;;
15989
15990 sunos4*)
15991 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15992 wlarc=
15993 hardcode_direct_GCJ=yes
15994 hardcode_shlibpath_var_GCJ=no
15995 ;;
15996
15997 linux*)
15998 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15999 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16000 archive_cmds_GCJ="$tmp_archive_cmds"
16001 supports_anon_versioning=no
16002 case `$LD -v 2>/dev/null` in
16003 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16004 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16005 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16006 *\ 2.11.*) ;; # other 2.11 versions
16007 *) supports_anon_versioning=yes ;;
16008 esac
16009 if test $supports_anon_versioning = yes; then
16010 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16011cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16012$echo "local: *; };" >> $output_objdir/$libname.ver~
16013 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16014 else
16015 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16016 fi
16017 else
16018 ld_shlibs_GCJ=no
16019 fi
16020 ;;
16021
16022 *)
16023 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16024 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16025 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16026 else
16027 ld_shlibs_GCJ=no
16028 fi
16029 ;;
16030 esac
16031
16032 if test "$ld_shlibs_GCJ" = yes; then
16033 runpath_var=LD_RUN_PATH
16034 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16035 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16036 # ancient GNU ld didn't support --whole-archive et. al.
16037 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16038 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16039 else
16040 whole_archive_flag_spec_GCJ=
16041 fi
16042 fi
16043 else
16044 # PORTME fill in a description of your system's linker (not GNU ld)
16045 case $host_os in
16046 aix3*)
16047 allow_undefined_flag_GCJ=unsupported
16048 always_export_symbols_GCJ=yes
16049 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16050 # Note: this linker hardcodes the directories in LIBPATH if there
16051 # are no directories specified by -L.
16052 hardcode_minus_L_GCJ=yes
16053 if test "$GCC" = yes && test -z "$link_static_flag"; then
16054 # Neither direct hardcoding nor static linking is supported with a
16055 # broken collect2.
16056 hardcode_direct_GCJ=unsupported
16057 fi
16058 ;;
16059
16060 aix4* | aix5*)
16061 if test "$host_cpu" = ia64; then
16062 # On IA64, the linker does run time linking by default, so we don't
16063 # have to do anything special.
16064 aix_use_runtimelinking=no
16065 exp_sym_flag='-Bexport'
16066 no_entry_flag=""
16067 else
16068 # If we're using GNU nm, then we don't want the "-C" option.
16069 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16070 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16071 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16072 else
16073 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16074 fi
16075 aix_use_runtimelinking=no
16076
16077 # Test if we are trying to use run time linking or normal
16078 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16079 # need to do runtime linking.
16080 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16081 for ld_flag in $LDFLAGS; do
16082 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16083 aix_use_runtimelinking=yes
16084 break
16085 fi
16086 done
16087 esac
16088
16089 exp_sym_flag='-bexport'
16090 no_entry_flag='-bnoentry'
16091 fi
16092
16093 # When large executables or shared objects are built, AIX ld can
16094 # have problems creating the table of contents. If linking a library
16095 # or program results in "error TOC overflow" add -mminimal-toc to
16096 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16097 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16098
16099 archive_cmds_GCJ=''
16100 hardcode_direct_GCJ=yes
16101 hardcode_libdir_separator_GCJ=':'
16102 link_all_deplibs_GCJ=yes
16103
16104 if test "$GCC" = yes; then
16105 case $host_os in aix4.012|aix4.012.*)
16106 # We only want to do this on AIX 4.2 and lower, the check
16107 # below for broken collect2 doesn't work under 4.3+
16108 collect2name=`${CC} -print-prog-name=collect2`
16109 if test -f "$collect2name" && \
16110 strings "$collect2name" | grep resolve_lib_name >/dev/null
16111 then
16112 # We have reworked collect2
16113 hardcode_direct_GCJ=yes
16114 else
16115 # We have old collect2
16116 hardcode_direct_GCJ=unsupported
16117 # It fails to find uninstalled libraries when the uninstalled
16118 # path is not listed in the libpath. Setting hardcode_minus_L
16119 # to unsupported forces relinking
16120 hardcode_minus_L_GCJ=yes
16121 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16122 hardcode_libdir_separator_GCJ=
16123 fi
16124 esac
16125 shared_flag='-shared'
16126 else
16127 # not using gcc
16128 if test "$host_cpu" = ia64; then
16129 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16130 # chokes on -Wl,-G. The following line is correct:
16131 shared_flag='-G'
16132 else
16133 if test "$aix_use_runtimelinking" = yes; then
16134 shared_flag='${wl}-G'
16135 else
16136 shared_flag='${wl}-bM:SRE'
16137 fi
16138 fi
16139 fi
16140
16141 # It seems that -bexpall does not export symbols beginning with
16142 # underscore (_), so it is better to generate a list of symbols to export.
16143 always_export_symbols_GCJ=yes
16144 if test "$aix_use_runtimelinking" = yes; then
16145 # Warning - without using the other runtime loading flags (-brtl),
16146 # -berok will link without error, but may produce a broken library.
16147 allow_undefined_flag_GCJ='-berok'
16148 # Determine the default libpath from the value encoded in an empty executable.
16149 cat >conftest.$ac_ext <<_ACEOF
16150/* confdefs.h. */
16151_ACEOF
16152cat confdefs.h >>conftest.$ac_ext
16153cat >>conftest.$ac_ext <<_ACEOF
16154/* end confdefs.h. */
16155
16156int
16157main ()
16158{
16159
16160 ;
16161 return 0;
16162}
16163_ACEOF
16164rm -f conftest.$ac_objext conftest$ac_exeext
16165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016166 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016167 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016168 grep -v '^ *+' conftest.er1 >conftest.err
16169 rm -f conftest.er1
16170 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175 (eval $ac_try) 2>&5
16176 ac_status=$?
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; } &&
16179 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181 (eval $ac_try) 2>&5
16182 ac_status=$?
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; }; then
16185
16186aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16187}'`
16188# Check for a 64-bit object if we didn't find anything.
16189if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16190}'`; fi
16191else
16192 echo "$as_me: failed program was:" >&5
16193sed 's/^/| /' conftest.$ac_ext >&5
16194
16195fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016196rm -f conftest.err conftest.$ac_objext \
16197 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016198if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16199
16200 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16201 archive_expsym_cmds_GCJ="\$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"
16202 else
16203 if test "$host_cpu" = ia64; then
16204 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16205 allow_undefined_flag_GCJ="-z nodefs"
16206 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16207 else
16208 # Determine the default libpath from the value encoded in an empty executable.
16209 cat >conftest.$ac_ext <<_ACEOF
16210/* confdefs.h. */
16211_ACEOF
16212cat confdefs.h >>conftest.$ac_ext
16213cat >>conftest.$ac_ext <<_ACEOF
16214/* end confdefs.h. */
16215
16216int
16217main ()
16218{
16219
16220 ;
16221 return 0;
16222}
16223_ACEOF
16224rm -f conftest.$ac_objext conftest$ac_exeext
16225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016226 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016227 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016228 grep -v '^ *+' conftest.er1 >conftest.err
16229 rm -f conftest.er1
16230 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16236 ac_status=$?
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; } &&
16239 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16242 ac_status=$?
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; }; then
16245
16246aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16247}'`
16248# Check for a 64-bit object if we didn't find anything.
16249if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16250}'`; fi
16251else
16252 echo "$as_me: failed program was:" >&5
16253sed 's/^/| /' conftest.$ac_ext >&5
16254
16255fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016256rm -f conftest.err conftest.$ac_objext \
16257 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016258if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16259
16260 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16261 # Warning - without using the other run time loading flags,
16262 # -berok will link without error, but may produce a broken library.
16263 no_undefined_flag_GCJ=' ${wl}-bernotok'
16264 allow_undefined_flag_GCJ=' ${wl}-berok'
16265 # -bexpall does not export symbols beginning with underscore (_)
16266 always_export_symbols_GCJ=yes
16267 # Exported symbols can be pulled into shared objects from archives
16268 whole_archive_flag_spec_GCJ=' '
16269 archive_cmds_need_lc_GCJ=yes
16270 # This is similar to how AIX traditionally builds it's shared libraries.
16271 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16272 fi
16273 fi
16274 ;;
16275
16276 amigaos*)
16277 archive_cmds_GCJ='$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)'
16278 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16279 hardcode_minus_L_GCJ=yes
16280 # see comment about different semantics on the GNU ld section
16281 ld_shlibs_GCJ=no
16282 ;;
16283
16284 bsdi4*)
16285 export_dynamic_flag_spec_GCJ=-rdynamic
16286 ;;
16287
16288 cygwin* | mingw* | pw32*)
16289 # When not using gcc, we currently assume that we are using
16290 # Microsoft Visual C++.
16291 # hardcode_libdir_flag_spec is actually meaningless, as there is
16292 # no search path for DLLs.
16293 hardcode_libdir_flag_spec_GCJ=' '
16294 allow_undefined_flag_GCJ=unsupported
16295 # Tell ltmain to make .lib files, not .a files.
16296 libext=lib
16297 # Tell ltmain to make .dll files, not .so files.
16298 shrext=".dll"
16299 # FIXME: Setting linknames here is a bad hack.
16300 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16301 # The linker will automatically build a .lib file if we build a DLL.
16302 old_archive_From_new_cmds_GCJ='true'
16303 # FIXME: Should let the user specify the lib program.
16304 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16305 fix_srcfile_path='`cygpath -w "$srcfile"`'
16306 enable_shared_with_static_runtimes_GCJ=yes
16307 ;;
16308
16309 darwin* | rhapsody*)
16310 if test "$GXX" = yes ; then
16311 archive_cmds_need_lc_GCJ=no
16312 case "$host_os" in
16313 rhapsody* | darwin1.[012])
16314 allow_undefined_flag_GCJ='-undefined suppress'
16315 ;;
16316 *) # Darwin 1.3 on
16317 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16318 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16319 else
16320 case ${MACOSX_DEPLOYMENT_TARGET} in
16321 10.[012])
16322 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16323 ;;
16324 10.*)
16325 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16326 ;;
16327 esac
16328 fi
16329 ;;
16330 esac
16331 lt_int_apple_cc_single_mod=no
16332 output_verbose_link_cmd='echo'
16333 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16334 lt_int_apple_cc_single_mod=yes
16335 fi
16336 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16337 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16338 else
16339 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16340 fi
16341 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16342 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16343 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16344 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16345 else
16346 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16347 fi
16348 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16349 hardcode_direct_GCJ=no
16350 hardcode_automatic_GCJ=yes
16351 hardcode_shlibpath_var_GCJ=unsupported
16352 whole_archive_flag_spec_GCJ='-all_load $convenience'
16353 link_all_deplibs_GCJ=yes
16354 else
16355 ld_shlibs_GCJ=no
16356 fi
16357 ;;
16358
16359 dgux*)
16360 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16361 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16362 hardcode_shlibpath_var_GCJ=no
16363 ;;
16364
16365 freebsd1*)
16366 ld_shlibs_GCJ=no
16367 ;;
16368
16369 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16370 # support. Future versions do this automatically, but an explicit c++rt0.o
16371 # does not break anything, and helps significantly (at the cost of a little
16372 # extra space).
16373 freebsd2.2*)
16374 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16375 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16376 hardcode_direct_GCJ=yes
16377 hardcode_shlibpath_var_GCJ=no
16378 ;;
16379
16380 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16381 freebsd2*)
16382 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16383 hardcode_direct_GCJ=yes
16384 hardcode_minus_L_GCJ=yes
16385 hardcode_shlibpath_var_GCJ=no
16386 ;;
16387
16388 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16389 freebsd* | kfreebsd*-gnu)
16390 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16391 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16392 hardcode_direct_GCJ=yes
16393 hardcode_shlibpath_var_GCJ=no
16394 ;;
16395
16396 hpux9*)
16397 if test "$GCC" = yes; then
16398 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16399 else
16400 archive_cmds_GCJ='$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'
16401 fi
16402 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16403 hardcode_libdir_separator_GCJ=:
16404 hardcode_direct_GCJ=yes
16405
16406 # hardcode_minus_L: Not really in the search PATH,
16407 # but as the default location of the library.
16408 hardcode_minus_L_GCJ=yes
16409 export_dynamic_flag_spec_GCJ='${wl}-E'
16410 ;;
16411
16412 hpux10* | hpux11*)
16413 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16414 case "$host_cpu" in
16415 hppa*64*|ia64*)
16416 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16417 ;;
16418 *)
16419 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16420 ;;
16421 esac
16422 else
16423 case "$host_cpu" in
16424 hppa*64*|ia64*)
16425 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16426 ;;
16427 *)
16428 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16429 ;;
16430 esac
16431 fi
16432 if test "$with_gnu_ld" = no; then
16433 case "$host_cpu" in
16434 hppa*64*)
16435 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16436 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16437 hardcode_libdir_separator_GCJ=:
16438 hardcode_direct_GCJ=no
16439 hardcode_shlibpath_var_GCJ=no
16440 ;;
16441 ia64*)
16442 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16443 hardcode_direct_GCJ=no
16444 hardcode_shlibpath_var_GCJ=no
16445
16446 # hardcode_minus_L: Not really in the search PATH,
16447 # but as the default location of the library.
16448 hardcode_minus_L_GCJ=yes
16449 ;;
16450 *)
16451 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16452 hardcode_libdir_separator_GCJ=:
16453 hardcode_direct_GCJ=yes
16454 export_dynamic_flag_spec_GCJ='${wl}-E'
16455
16456 # hardcode_minus_L: Not really in the search PATH,
16457 # but as the default location of the library.
16458 hardcode_minus_L_GCJ=yes
16459 ;;
16460 esac
16461 fi
16462 ;;
16463
16464 irix5* | irix6* | nonstopux*)
16465 if test "$GCC" = yes; then
16466 archive_cmds_GCJ='$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'
16467 else
16468 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16469 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16470 fi
16471 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16472 hardcode_libdir_separator_GCJ=:
16473 link_all_deplibs_GCJ=yes
16474 ;;
16475
16476 netbsd*)
16477 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16478 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16479 else
16480 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16481 fi
16482 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16483 hardcode_direct_GCJ=yes
16484 hardcode_shlibpath_var_GCJ=no
16485 ;;
16486
16487 newsos6)
16488 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16489 hardcode_direct_GCJ=yes
16490 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16491 hardcode_libdir_separator_GCJ=:
16492 hardcode_shlibpath_var_GCJ=no
16493 ;;
16494
16495 openbsd*)
16496 hardcode_direct_GCJ=yes
16497 hardcode_shlibpath_var_GCJ=no
16498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16499 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16500 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16501 export_dynamic_flag_spec_GCJ='${wl}-E'
16502 else
16503 case $host_os in
16504 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16505 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16506 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16507 ;;
16508 *)
16509 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16510 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16511 ;;
16512 esac
16513 fi
16514 ;;
16515
16516 os2*)
16517 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16518 hardcode_minus_L_GCJ=yes
16519 allow_undefined_flag_GCJ=unsupported
16520 archive_cmds_GCJ='$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'
16521 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16522 ;;
16523
16524 osf3*)
16525 if test "$GCC" = yes; then
16526 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16527 archive_cmds_GCJ='$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'
16528 else
16529 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16530 archive_cmds_GCJ='$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'
16531 fi
16532 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16533 hardcode_libdir_separator_GCJ=:
16534 ;;
16535
16536 osf4* | osf5*) # as osf3* with the addition of -msym flag
16537 if test "$GCC" = yes; then
16538 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16539 archive_cmds_GCJ='$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'
16540 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16541 else
16542 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16543 archive_cmds_GCJ='$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'
16544 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16545 $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'
16546
16547 # Both c and cxx compiler support -rpath directly
16548 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16549 fi
16550 hardcode_libdir_separator_GCJ=:
16551 ;;
16552
16553 sco3.2v5*)
16554 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16555 hardcode_shlibpath_var_GCJ=no
16556 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16557 runpath_var=LD_RUN_PATH
16558 hardcode_runpath_var=yes
16559 ;;
16560
16561 solaris*)
16562 no_undefined_flag_GCJ=' -z text'
16563 if test "$GCC" = yes; then
16564 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16565 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16566 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16567 else
16568 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16569 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16570 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16571 fi
16572 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16573 hardcode_shlibpath_var_GCJ=no
16574 case $host_os in
16575 solaris2.[0-5] | solaris2.[0-5].*) ;;
16576 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16577 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16578 esac
16579 link_all_deplibs_GCJ=yes
16580 ;;
16581
16582 sunos4*)
16583 if test "x$host_vendor" = xsequent; then
16584 # Use $CC to link under sequent, because it throws in some extra .o
16585 # files that make .init and .fini sections work.
16586 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16587 else
16588 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16589 fi
16590 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16591 hardcode_direct_GCJ=yes
16592 hardcode_minus_L_GCJ=yes
16593 hardcode_shlibpath_var_GCJ=no
16594 ;;
16595
16596 sysv4)
16597 case $host_vendor in
16598 sni)
16599 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16600 hardcode_direct_GCJ=yes # is this really true???
16601 ;;
16602 siemens)
16603 ## LD is ld it makes a PLAMLIB
16604 ## CC just makes a GrossModule.
16605 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16606 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16607 hardcode_direct_GCJ=no
16608 ;;
16609 motorola)
16610 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16611 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16612 ;;
16613 esac
16614 runpath_var='LD_RUN_PATH'
16615 hardcode_shlibpath_var_GCJ=no
16616 ;;
16617
16618 sysv4.3*)
16619 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16620 hardcode_shlibpath_var_GCJ=no
16621 export_dynamic_flag_spec_GCJ='-Bexport'
16622 ;;
16623
16624 sysv4*MP*)
16625 if test -d /usr/nec; then
16626 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16627 hardcode_shlibpath_var_GCJ=no
16628 runpath_var=LD_RUN_PATH
16629 hardcode_runpath_var=yes
16630 ld_shlibs_GCJ=yes
16631 fi
16632 ;;
16633
16634 sysv4.2uw2*)
16635 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16636 hardcode_direct_GCJ=yes
16637 hardcode_minus_L_GCJ=no
16638 hardcode_shlibpath_var_GCJ=no
16639 hardcode_runpath_var=yes
16640 runpath_var=LD_RUN_PATH
16641 ;;
16642
16643 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16644 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16645 if test "$GCC" = yes; then
16646 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16647 else
16648 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16649 fi
16650 runpath_var='LD_RUN_PATH'
16651 hardcode_shlibpath_var_GCJ=no
16652 ;;
16653
16654 sysv5*)
16655 no_undefined_flag_GCJ=' -z text'
16656 # $CC -shared without GNU ld will not create a library from C++
16657 # object files and a static libstdc++, better avoid it by now
16658 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16659 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16660 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16661 hardcode_libdir_flag_spec_GCJ=
16662 hardcode_shlibpath_var_GCJ=no
16663 runpath_var='LD_RUN_PATH'
16664 ;;
16665
16666 uts4*)
16667 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16668 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16669 hardcode_shlibpath_var_GCJ=no
16670 ;;
16671
16672 *)
16673 ld_shlibs_GCJ=no
16674 ;;
16675 esac
16676 fi
16677
16678echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16679echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16680test "$ld_shlibs_GCJ" = no && can_build_shared=no
16681
16682variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16683if test "$GCC" = yes; then
16684 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16685fi
16686
16687#
16688# Do we need to explicitly link libc?
16689#
16690case "x$archive_cmds_need_lc_GCJ" in
16691x|xyes)
16692 # Assume -lc should be added
16693 archive_cmds_need_lc_GCJ=yes
16694
16695 if test "$enable_shared" = yes && test "$GCC" = yes; then
16696 case $archive_cmds_GCJ in
16697 *'~'*)
16698 # FIXME: we may have to deal with multi-command sequences.
16699 ;;
16700 '$CC '*)
16701 # Test whether the compiler implicitly links with -lc since on some
16702 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16703 # to ld, don't add -lc before -lgcc.
16704 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16705echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16706 $rm conftest*
16707 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16708
16709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16710 (eval $ac_compile) 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } 2>conftest.err; then
16714 soname=conftest
16715 lib=conftest
16716 libobjs=conftest.$ac_objext
16717 deplibs=
16718 wl=$lt_prog_compiler_wl_GCJ
16719 compiler_flags=-v
16720 linker_flags=-v
16721 verstring=
16722 output_objdir=.
16723 libname=conftest
16724 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16725 allow_undefined_flag_GCJ=
16726 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16727 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }
16731 then
16732 archive_cmds_need_lc_GCJ=no
16733 else
16734 archive_cmds_need_lc_GCJ=yes
16735 fi
16736 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16737 else
16738 cat conftest.err 1>&5
16739 fi
16740 $rm conftest*
16741 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16742echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16743 ;;
16744 esac
16745 fi
16746 ;;
16747esac
16748
16749echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16750echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16751library_names_spec=
16752libname_spec='lib$name'
16753soname_spec=
16754shrext=".so"
16755postinstall_cmds=
16756postuninstall_cmds=
16757finish_cmds=
16758finish_eval=
16759shlibpath_var=
16760shlibpath_overrides_runpath=unknown
16761version_type=none
16762dynamic_linker="$host_os ld.so"
16763sys_lib_dlsearch_path_spec="/lib /usr/lib"
16764if test "$GCC" = yes; then
16765 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16766 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16767 # if the path contains ";" then we assume it to be the separator
16768 # otherwise default to the standard path separator (i.e. ":") - it is
16769 # assumed that no part of a normal pathname contains ";" but that should
16770 # okay in the real world where ";" in dirpaths is itself problematic.
16771 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16772 else
16773 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16774 fi
16775else
16776 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16777fi
16778need_lib_prefix=unknown
16779hardcode_into_libs=no
16780
16781# when you set need_version to no, make sure it does not cause -set_version
16782# flags to be left without arguments
16783need_version=unknown
16784
16785case $host_os in
16786aix3*)
16787 version_type=linux
16788 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16789 shlibpath_var=LIBPATH
16790
16791 # AIX 3 has no versioning support, so we append a major version to the name.
16792 soname_spec='${libname}${release}${shared_ext}$major'
16793 ;;
16794
16795aix4* | aix5*)
16796 version_type=linux
16797 need_lib_prefix=no
16798 need_version=no
16799 hardcode_into_libs=yes
16800 if test "$host_cpu" = ia64; then
16801 # AIX 5 supports IA64
16802 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16803 shlibpath_var=LD_LIBRARY_PATH
16804 else
16805 # With GCC up to 2.95.x, collect2 would create an import file
16806 # for dependence libraries. The import file would start with
16807 # the line `#! .'. This would cause the generated library to
16808 # depend on `.', always an invalid library. This was fixed in
16809 # development snapshots of GCC prior to 3.0.
16810 case $host_os in
16811 aix4 | aix4.[01] | aix4.[01].*)
16812 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16813 echo ' yes '
16814 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16815 :
16816 else
16817 can_build_shared=no
16818 fi
16819 ;;
16820 esac
16821 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16822 # soname into executable. Probably we can add versioning support to
16823 # collect2, so additional links can be useful in future.
16824 if test "$aix_use_runtimelinking" = yes; then
16825 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16826 # instead of lib<name>.a to let people know that these are not
16827 # typical AIX shared libraries.
16828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16829 else
16830 # We preserve .a as extension for shared libraries through AIX4.2
16831 # and later when we are not doing run time linking.
16832 library_names_spec='${libname}${release}.a $libname.a'
16833 soname_spec='${libname}${release}${shared_ext}$major'
16834 fi
16835 shlibpath_var=LIBPATH
16836 fi
16837 ;;
16838
16839amigaos*)
16840 library_names_spec='$libname.ixlibrary $libname.a'
16841 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16842 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'
16843 ;;
16844
16845beos*)
16846 library_names_spec='${libname}${shared_ext}'
16847 dynamic_linker="$host_os ld.so"
16848 shlibpath_var=LIBRARY_PATH
16849 ;;
16850
16851bsdi4*)
16852 version_type=linux
16853 need_version=no
16854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16855 soname_spec='${libname}${release}${shared_ext}$major'
16856 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16857 shlibpath_var=LD_LIBRARY_PATH
16858 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16859 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16860 # the default ld.so.conf also contains /usr/contrib/lib and
16861 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16862 # libtool to hard-code these into programs
16863 ;;
16864
16865cygwin* | mingw* | pw32*)
16866 version_type=windows
16867 shrext=".dll"
16868 need_version=no
16869 need_lib_prefix=no
16870
16871 case $GCC,$host_os in
16872 yes,cygwin* | yes,mingw* | yes,pw32*)
16873 library_names_spec='$libname.dll.a'
16874 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16875 postinstall_cmds='base_file=`basename \${file}`~
16876 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16877 dldir=$destdir/`dirname \$dlpath`~
16878 test -d \$dldir || mkdir -p \$dldir~
16879 $install_prog $dir/$dlname \$dldir/$dlname'
16880 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16881 dlpath=$dir/\$dldll~
16882 $rm \$dlpath'
16883 shlibpath_overrides_runpath=yes
16884
16885 case $host_os in
16886 cygwin*)
16887 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16888 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16889 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16890 ;;
16891 mingw*)
16892 # MinGW DLLs use traditional 'lib' prefix
16893 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16894 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16895 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16896 # It is most probably a Windows format PATH printed by
16897 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16898 # path with ; separators, and with drive letters. We can handle the
16899 # drive letters (cygwin fileutils understands them), so leave them,
16900 # especially as we might pass files found there to a mingw objdump,
16901 # which wouldn't understand a cygwinified path. Ahh.
16902 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16903 else
16904 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16905 fi
16906 ;;
16907 pw32*)
16908 # pw32 DLLs use 'pw' prefix rather than 'lib'
16909 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16910 ;;
16911 esac
16912 ;;
16913
16914 *)
16915 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16916 ;;
16917 esac
16918 dynamic_linker='Win32 ld.exe'
16919 # FIXME: first we should search . and the directory the executable is in
16920 shlibpath_var=PATH
16921 ;;
16922
16923darwin* | rhapsody*)
16924 dynamic_linker="$host_os dyld"
16925 version_type=darwin
16926 need_lib_prefix=no
16927 need_version=no
16928 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16929 soname_spec='${libname}${release}${major}$shared_ext'
16930 shlibpath_overrides_runpath=yes
16931 shlibpath_var=DYLD_LIBRARY_PATH
16932 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16933 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16934 if test "$GCC" = yes; then
16935 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16936 else
16937 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16938 fi
16939 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16940 ;;
16941
16942dgux*)
16943 version_type=linux
16944 need_lib_prefix=no
16945 need_version=no
16946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16947 soname_spec='${libname}${release}${shared_ext}$major'
16948 shlibpath_var=LD_LIBRARY_PATH
16949 ;;
16950
16951freebsd1*)
16952 dynamic_linker=no
16953 ;;
16954
16955kfreebsd*-gnu)
16956 version_type=linux
16957 need_lib_prefix=no
16958 need_version=no
16959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16960 soname_spec='${libname}${release}${shared_ext}$major'
16961 shlibpath_var=LD_LIBRARY_PATH
16962 shlibpath_overrides_runpath=no
16963 hardcode_into_libs=yes
16964 dynamic_linker='GNU ld.so'
16965 ;;
16966
16967freebsd*)
16968 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16969 version_type=freebsd-$objformat
16970 case $version_type in
16971 freebsd-elf*)
16972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16973 need_version=no
16974 need_lib_prefix=no
16975 ;;
16976 freebsd-*)
16977 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16978 need_version=yes
16979 ;;
16980 esac
16981 shlibpath_var=LD_LIBRARY_PATH
16982 case $host_os in
16983 freebsd2*)
16984 shlibpath_overrides_runpath=yes
16985 ;;
16986 freebsd3.01* | freebsdelf3.01*)
16987 shlibpath_overrides_runpath=yes
16988 hardcode_into_libs=yes
16989 ;;
16990 *) # from 3.2 on
16991 shlibpath_overrides_runpath=no
16992 hardcode_into_libs=yes
16993 ;;
16994 esac
16995 ;;
16996
16997gnu*)
16998 version_type=linux
16999 need_lib_prefix=no
17000 need_version=no
17001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17002 soname_spec='${libname}${release}${shared_ext}$major'
17003 shlibpath_var=LD_LIBRARY_PATH
17004 hardcode_into_libs=yes
17005 ;;
17006
17007hpux9* | hpux10* | hpux11*)
17008 # Give a soname corresponding to the major version so that dld.sl refuses to
17009 # link against other versions.
17010 version_type=sunos
17011 need_lib_prefix=no
17012 need_version=no
17013 case "$host_cpu" in
17014 ia64*)
17015 shrext='.so'
17016 hardcode_into_libs=yes
17017 dynamic_linker="$host_os dld.so"
17018 shlibpath_var=LD_LIBRARY_PATH
17019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17021 soname_spec='${libname}${release}${shared_ext}$major'
17022 if test "X$HPUX_IA64_MODE" = X32; then
17023 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17024 else
17025 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17026 fi
17027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17028 ;;
17029 hppa*64*)
17030 shrext='.sl'
17031 hardcode_into_libs=yes
17032 dynamic_linker="$host_os dld.sl"
17033 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17034 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17036 soname_spec='${libname}${release}${shared_ext}$major'
17037 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17039 ;;
17040 *)
17041 shrext='.sl'
17042 dynamic_linker="$host_os dld.sl"
17043 shlibpath_var=SHLIB_PATH
17044 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17046 soname_spec='${libname}${release}${shared_ext}$major'
17047 ;;
17048 esac
17049 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17050 postinstall_cmds='chmod 555 $lib'
17051 ;;
17052
17053irix5* | irix6* | nonstopux*)
17054 case $host_os in
17055 nonstopux*) version_type=nonstopux ;;
17056 *)
17057 if test "$lt_cv_prog_gnu_ld" = yes; then
17058 version_type=linux
17059 else
17060 version_type=irix
17061 fi ;;
17062 esac
17063 need_lib_prefix=no
17064 need_version=no
17065 soname_spec='${libname}${release}${shared_ext}$major'
17066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17067 case $host_os in
17068 irix5* | nonstopux*)
17069 libsuff= shlibsuff=
17070 ;;
17071 *)
17072 case $LD in # libtool.m4 will add one of these switches to LD
17073 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17074 libsuff= shlibsuff= libmagic=32-bit;;
17075 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17076 libsuff=32 shlibsuff=N32 libmagic=N32;;
17077 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17078 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17079 *) libsuff= shlibsuff= libmagic=never-match;;
17080 esac
17081 ;;
17082 esac
17083 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17084 shlibpath_overrides_runpath=no
17085 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17086 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17087 hardcode_into_libs=yes
17088 ;;
17089
17090# No shared lib support for Linux oldld, aout, or coff.
17091linux*oldld* | linux*aout* | linux*coff*)
17092 dynamic_linker=no
17093 ;;
17094
17095# This must be Linux ELF.
17096linux*)
17097 version_type=linux
17098 need_lib_prefix=no
17099 need_version=no
17100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17101 soname_spec='${libname}${release}${shared_ext}$major'
17102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17103 shlibpath_var=LD_LIBRARY_PATH
17104 shlibpath_overrides_runpath=no
17105 # This implies no fast_install, which is unacceptable.
17106 # Some rework will be needed to allow for fast_install
17107 # before this can be enabled.
17108 hardcode_into_libs=yes
17109
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017110 # Append ld.so.conf contents to the search path
17111 if test -f /etc/ld.so.conf; then
17112 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17113 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17114 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017115
17116 # We used to test for /lib/ld.so.1 and disable shared libraries on
17117 # powerpc, because MkLinux only supported shared libraries with the
17118 # GNU dynamic linker. Since this was broken with cross compilers,
17119 # most powerpc-linux boxes support dynamic linking these days and
17120 # people can always --disable-shared, the test was removed, and we
17121 # assume the GNU/Linux dynamic linker is in use.
17122 dynamic_linker='GNU/Linux ld.so'
17123 ;;
17124
17125knetbsd*-gnu)
17126 version_type=linux
17127 need_lib_prefix=no
17128 need_version=no
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17130 soname_spec='${libname}${release}${shared_ext}$major'
17131 shlibpath_var=LD_LIBRARY_PATH
17132 shlibpath_overrides_runpath=no
17133 hardcode_into_libs=yes
17134 dynamic_linker='GNU ld.so'
17135 ;;
17136
17137netbsd*)
17138 version_type=sunos
17139 need_lib_prefix=no
17140 need_version=no
17141 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17144 dynamic_linker='NetBSD (a.out) ld.so'
17145 else
17146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17147 soname_spec='${libname}${release}${shared_ext}$major'
17148 dynamic_linker='NetBSD ld.elf_so'
17149 fi
17150 shlibpath_var=LD_LIBRARY_PATH
17151 shlibpath_overrides_runpath=yes
17152 hardcode_into_libs=yes
17153 ;;
17154
17155newsos6)
17156 version_type=linux
17157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17158 shlibpath_var=LD_LIBRARY_PATH
17159 shlibpath_overrides_runpath=yes
17160 ;;
17161
17162nto-qnx*)
17163 version_type=linux
17164 need_lib_prefix=no
17165 need_version=no
17166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17167 soname_spec='${libname}${release}${shared_ext}$major'
17168 shlibpath_var=LD_LIBRARY_PATH
17169 shlibpath_overrides_runpath=yes
17170 ;;
17171
17172openbsd*)
17173 version_type=sunos
17174 need_lib_prefix=no
17175 need_version=yes
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17177 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17178 shlibpath_var=LD_LIBRARY_PATH
17179 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17180 case $host_os in
17181 openbsd2.[89] | openbsd2.[89].*)
17182 shlibpath_overrides_runpath=no
17183 ;;
17184 *)
17185 shlibpath_overrides_runpath=yes
17186 ;;
17187 esac
17188 else
17189 shlibpath_overrides_runpath=yes
17190 fi
17191 ;;
17192
17193os2*)
17194 libname_spec='$name'
17195 shrext=".dll"
17196 need_lib_prefix=no
17197 library_names_spec='$libname${shared_ext} $libname.a'
17198 dynamic_linker='OS/2 ld.exe'
17199 shlibpath_var=LIBPATH
17200 ;;
17201
17202osf3* | osf4* | osf5*)
17203 version_type=osf
17204 need_lib_prefix=no
17205 need_version=no
17206 soname_spec='${libname}${release}${shared_ext}$major'
17207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17208 shlibpath_var=LD_LIBRARY_PATH
17209 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17210 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17211 ;;
17212
17213sco3.2v5*)
17214 version_type=osf
17215 soname_spec='${libname}${release}${shared_ext}$major'
17216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17217 shlibpath_var=LD_LIBRARY_PATH
17218 ;;
17219
17220solaris*)
17221 version_type=linux
17222 need_lib_prefix=no
17223 need_version=no
17224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17225 soname_spec='${libname}${release}${shared_ext}$major'
17226 shlibpath_var=LD_LIBRARY_PATH
17227 shlibpath_overrides_runpath=yes
17228 hardcode_into_libs=yes
17229 # ldd complains unless libraries are executable
17230 postinstall_cmds='chmod +x $lib'
17231 ;;
17232
17233sunos4*)
17234 version_type=sunos
17235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17236 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17237 shlibpath_var=LD_LIBRARY_PATH
17238 shlibpath_overrides_runpath=yes
17239 if test "$with_gnu_ld" = yes; then
17240 need_lib_prefix=no
17241 fi
17242 need_version=yes
17243 ;;
17244
17245sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17246 version_type=linux
17247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17248 soname_spec='${libname}${release}${shared_ext}$major'
17249 shlibpath_var=LD_LIBRARY_PATH
17250 case $host_vendor in
17251 sni)
17252 shlibpath_overrides_runpath=no
17253 need_lib_prefix=no
17254 export_dynamic_flag_spec='${wl}-Blargedynsym'
17255 runpath_var=LD_RUN_PATH
17256 ;;
17257 siemens)
17258 need_lib_prefix=no
17259 ;;
17260 motorola)
17261 need_lib_prefix=no
17262 need_version=no
17263 shlibpath_overrides_runpath=no
17264 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17265 ;;
17266 esac
17267 ;;
17268
17269sysv4*MP*)
17270 if test -d /usr/nec ;then
17271 version_type=linux
17272 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17273 soname_spec='$libname${shared_ext}.$major'
17274 shlibpath_var=LD_LIBRARY_PATH
17275 fi
17276 ;;
17277
17278uts4*)
17279 version_type=linux
17280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17281 soname_spec='${libname}${release}${shared_ext}$major'
17282 shlibpath_var=LD_LIBRARY_PATH
17283 ;;
17284
17285*)
17286 dynamic_linker=no
17287 ;;
17288esac
17289echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17290echo "${ECHO_T}$dynamic_linker" >&6
17291test "$dynamic_linker" = no && can_build_shared=no
17292
17293echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17294echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17295hardcode_action_GCJ=
17296if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17297 test -n "$runpath_var GCJ" || \
17298 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17299
17300 # We can hardcode non-existant directories.
17301 if test "$hardcode_direct_GCJ" != no &&
17302 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17303 # have to relink, otherwise we might link with an installed library
17304 # when we should be linking with a yet-to-be-installed one
17305 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17306 test "$hardcode_minus_L_GCJ" != no; then
17307 # Linking always hardcodes the temporary library directory.
17308 hardcode_action_GCJ=relink
17309 else
17310 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17311 hardcode_action_GCJ=immediate
17312 fi
17313else
17314 # We cannot hardcode anything, or else we can only hardcode existing
17315 # directories.
17316 hardcode_action_GCJ=unsupported
17317fi
17318echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17319echo "${ECHO_T}$hardcode_action_GCJ" >&6
17320
17321if test "$hardcode_action_GCJ" = relink; then
17322 # Fast installation is not supported
17323 enable_fast_install=no
17324elif test "$shlibpath_overrides_runpath" = yes ||
17325 test "$enable_shared" = no; then
17326 # Fast installation is not necessary
17327 enable_fast_install=needless
17328fi
17329
17330striplib=
17331old_striplib=
17332echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17333echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17334if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17335 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17336 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17337 echo "$as_me:$LINENO: result: yes" >&5
17338echo "${ECHO_T}yes" >&6
17339else
17340# FIXME - insert some real tests, host_os isn't really good enough
17341 case $host_os in
17342 darwin*)
17343 if test -n "$STRIP" ; then
17344 striplib="$STRIP -x"
17345 echo "$as_me:$LINENO: result: yes" >&5
17346echo "${ECHO_T}yes" >&6
17347 else
17348 echo "$as_me:$LINENO: result: no" >&5
17349echo "${ECHO_T}no" >&6
17350fi
17351 ;;
17352 *)
17353 echo "$as_me:$LINENO: result: no" >&5
17354echo "${ECHO_T}no" >&6
17355 ;;
17356 esac
17357fi
17358
17359if test "x$enable_dlopen" != xyes; then
17360 enable_dlopen=unknown
17361 enable_dlopen_self=unknown
17362 enable_dlopen_self_static=unknown
17363else
17364 lt_cv_dlopen=no
17365 lt_cv_dlopen_libs=
17366
17367 case $host_os in
17368 beos*)
17369 lt_cv_dlopen="load_add_on"
17370 lt_cv_dlopen_libs=
17371 lt_cv_dlopen_self=yes
17372 ;;
17373
17374 mingw* | pw32*)
17375 lt_cv_dlopen="LoadLibrary"
17376 lt_cv_dlopen_libs=
17377 ;;
17378
17379 cygwin*)
17380 lt_cv_dlopen="dlopen"
17381 lt_cv_dlopen_libs=
17382 ;;
17383
17384 darwin*)
17385 # if libdl is installed we need to link against it
17386 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17387echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17388if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17389 echo $ECHO_N "(cached) $ECHO_C" >&6
17390else
17391 ac_check_lib_save_LIBS=$LIBS
17392LIBS="-ldl $LIBS"
17393cat >conftest.$ac_ext <<_ACEOF
17394/* confdefs.h. */
17395_ACEOF
17396cat confdefs.h >>conftest.$ac_ext
17397cat >>conftest.$ac_ext <<_ACEOF
17398/* end confdefs.h. */
17399
17400/* Override any gcc2 internal prototype to avoid an error. */
17401#ifdef __cplusplus
17402extern "C"
17403#endif
17404/* We use char because int might match the return type of a gcc2
17405 builtin and then its argument prototype would still apply. */
17406char dlopen ();
17407int
17408main ()
17409{
17410dlopen ();
17411 ;
17412 return 0;
17413}
17414_ACEOF
17415rm -f conftest.$ac_objext conftest$ac_exeext
17416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017417 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017418 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017419 grep -v '^ *+' conftest.er1 >conftest.err
17420 rm -f conftest.er1
17421 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17426 (eval $ac_try) 2>&5
17427 ac_status=$?
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); }; } &&
17430 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432 (eval $ac_try) 2>&5
17433 ac_status=$?
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; }; then
17436 ac_cv_lib_dl_dlopen=yes
17437else
17438 echo "$as_me: failed program was:" >&5
17439sed 's/^/| /' conftest.$ac_ext >&5
17440
17441ac_cv_lib_dl_dlopen=no
17442fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017443rm -f conftest.err conftest.$ac_objext \
17444 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017445LIBS=$ac_check_lib_save_LIBS
17446fi
17447echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17448echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17449if test $ac_cv_lib_dl_dlopen = yes; then
17450 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17451else
17452
17453 lt_cv_dlopen="dyld"
17454 lt_cv_dlopen_libs=
17455 lt_cv_dlopen_self=yes
17456
17457fi
17458
17459 ;;
17460
17461 *)
17462 echo "$as_me:$LINENO: checking for shl_load" >&5
17463echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17464if test "${ac_cv_func_shl_load+set}" = set; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17466else
17467 cat >conftest.$ac_ext <<_ACEOF
17468/* confdefs.h. */
17469_ACEOF
17470cat confdefs.h >>conftest.$ac_ext
17471cat >>conftest.$ac_ext <<_ACEOF
17472/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017473/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17475#define shl_load innocuous_shl_load
17476
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017477/* System header to define __stub macros and hopefully few prototypes,
17478 which can conflict with char shl_load (); below.
17479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17480 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017481
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017482#ifdef __STDC__
17483# include <limits.h>
17484#else
17485# include <assert.h>
17486#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017487
17488#undef shl_load
17489
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017490/* Override any gcc2 internal prototype to avoid an error. */
17491#ifdef __cplusplus
17492extern "C"
17493{
17494#endif
17495/* We use char because int might match the return type of a gcc2
17496 builtin and then its argument prototype would still apply. */
17497char shl_load ();
17498/* The GNU C library defines this for functions which it implements
17499 to always fail with ENOSYS. Some functions are actually named
17500 something starting with __ and the normal name is an alias. */
17501#if defined (__stub_shl_load) || defined (__stub___shl_load)
17502choke me
17503#else
17504char (*f) () = shl_load;
17505#endif
17506#ifdef __cplusplus
17507}
17508#endif
17509
17510int
17511main ()
17512{
17513return f != shl_load;
17514 ;
17515 return 0;
17516}
17517_ACEOF
17518rm -f conftest.$ac_objext conftest$ac_exeext
17519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017520 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017521 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017522 grep -v '^ *+' conftest.er1 >conftest.err
17523 rm -f conftest.er1
17524 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529 (eval $ac_try) 2>&5
17530 ac_status=$?
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; } &&
17533 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; }; then
17539 ac_cv_func_shl_load=yes
17540else
17541 echo "$as_me: failed program was:" >&5
17542sed 's/^/| /' conftest.$ac_ext >&5
17543
17544ac_cv_func_shl_load=no
17545fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017546rm -f conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017548fi
17549echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17550echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17551if test $ac_cv_func_shl_load = yes; then
17552 lt_cv_dlopen="shl_load"
17553else
17554 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17555echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17556if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17557 echo $ECHO_N "(cached) $ECHO_C" >&6
17558else
17559 ac_check_lib_save_LIBS=$LIBS
17560LIBS="-ldld $LIBS"
17561cat >conftest.$ac_ext <<_ACEOF
17562/* confdefs.h. */
17563_ACEOF
17564cat confdefs.h >>conftest.$ac_ext
17565cat >>conftest.$ac_ext <<_ACEOF
17566/* end confdefs.h. */
17567
17568/* Override any gcc2 internal prototype to avoid an error. */
17569#ifdef __cplusplus
17570extern "C"
17571#endif
17572/* We use char because int might match the return type of a gcc2
17573 builtin and then its argument prototype would still apply. */
17574char shl_load ();
17575int
17576main ()
17577{
17578shl_load ();
17579 ;
17580 return 0;
17581}
17582_ACEOF
17583rm -f conftest.$ac_objext conftest$ac_exeext
17584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017585 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017586 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017587 grep -v '^ *+' conftest.er1 >conftest.err
17588 rm -f conftest.er1
17589 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17595 ac_status=$?
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; } &&
17598 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17600 (eval $ac_try) 2>&5
17601 ac_status=$?
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; }; then
17604 ac_cv_lib_dld_shl_load=yes
17605else
17606 echo "$as_me: failed program was:" >&5
17607sed 's/^/| /' conftest.$ac_ext >&5
17608
17609ac_cv_lib_dld_shl_load=no
17610fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017611rm -f conftest.err conftest.$ac_objext \
17612 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017613LIBS=$ac_check_lib_save_LIBS
17614fi
17615echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17616echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17617if test $ac_cv_lib_dld_shl_load = yes; then
17618 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17619else
17620 echo "$as_me:$LINENO: checking for dlopen" >&5
17621echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17622if test "${ac_cv_func_dlopen+set}" = set; then
17623 echo $ECHO_N "(cached) $ECHO_C" >&6
17624else
17625 cat >conftest.$ac_ext <<_ACEOF
17626/* confdefs.h. */
17627_ACEOF
17628cat confdefs.h >>conftest.$ac_ext
17629cat >>conftest.$ac_ext <<_ACEOF
17630/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017631/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17633#define dlopen innocuous_dlopen
17634
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017635/* System header to define __stub macros and hopefully few prototypes,
17636 which can conflict with char dlopen (); below.
17637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17638 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017639
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017640#ifdef __STDC__
17641# include <limits.h>
17642#else
17643# include <assert.h>
17644#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017645
17646#undef dlopen
17647
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017648/* Override any gcc2 internal prototype to avoid an error. */
17649#ifdef __cplusplus
17650extern "C"
17651{
17652#endif
17653/* We use char because int might match the return type of a gcc2
17654 builtin and then its argument prototype would still apply. */
17655char dlopen ();
17656/* The GNU C library defines this for functions which it implements
17657 to always fail with ENOSYS. Some functions are actually named
17658 something starting with __ and the normal name is an alias. */
17659#if defined (__stub_dlopen) || defined (__stub___dlopen)
17660choke me
17661#else
17662char (*f) () = dlopen;
17663#endif
17664#ifdef __cplusplus
17665}
17666#endif
17667
17668int
17669main ()
17670{
17671return f != dlopen;
17672 ;
17673 return 0;
17674}
17675_ACEOF
17676rm -f conftest.$ac_objext conftest$ac_exeext
17677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017678 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017679 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017680 grep -v '^ *+' conftest.er1 >conftest.err
17681 rm -f conftest.er1
17682 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687 (eval $ac_try) 2>&5
17688 ac_status=$?
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; } &&
17691 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17694 ac_status=$?
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; }; then
17697 ac_cv_func_dlopen=yes
17698else
17699 echo "$as_me: failed program was:" >&5
17700sed 's/^/| /' conftest.$ac_ext >&5
17701
17702ac_cv_func_dlopen=no
17703fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017704rm -f conftest.err conftest.$ac_objext \
17705 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017706fi
17707echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17708echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17709if test $ac_cv_func_dlopen = yes; then
17710 lt_cv_dlopen="dlopen"
17711else
17712 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17713echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17714if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17716else
17717 ac_check_lib_save_LIBS=$LIBS
17718LIBS="-ldl $LIBS"
17719cat >conftest.$ac_ext <<_ACEOF
17720/* confdefs.h. */
17721_ACEOF
17722cat confdefs.h >>conftest.$ac_ext
17723cat >>conftest.$ac_ext <<_ACEOF
17724/* end confdefs.h. */
17725
17726/* Override any gcc2 internal prototype to avoid an error. */
17727#ifdef __cplusplus
17728extern "C"
17729#endif
17730/* We use char because int might match the return type of a gcc2
17731 builtin and then its argument prototype would still apply. */
17732char dlopen ();
17733int
17734main ()
17735{
17736dlopen ();
17737 ;
17738 return 0;
17739}
17740_ACEOF
17741rm -f conftest.$ac_objext conftest$ac_exeext
17742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017743 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017744 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017745 grep -v '^ *+' conftest.er1 >conftest.err
17746 rm -f conftest.er1
17747 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17753 ac_status=$?
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; } &&
17756 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
17762 ac_cv_lib_dl_dlopen=yes
17763else
17764 echo "$as_me: failed program was:" >&5
17765sed 's/^/| /' conftest.$ac_ext >&5
17766
17767ac_cv_lib_dl_dlopen=no
17768fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017769rm -f conftest.err conftest.$ac_objext \
17770 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017771LIBS=$ac_check_lib_save_LIBS
17772fi
17773echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17774echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17775if test $ac_cv_lib_dl_dlopen = yes; then
17776 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17777else
17778 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17779echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17780if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17781 echo $ECHO_N "(cached) $ECHO_C" >&6
17782else
17783 ac_check_lib_save_LIBS=$LIBS
17784LIBS="-lsvld $LIBS"
17785cat >conftest.$ac_ext <<_ACEOF
17786/* confdefs.h. */
17787_ACEOF
17788cat confdefs.h >>conftest.$ac_ext
17789cat >>conftest.$ac_ext <<_ACEOF
17790/* end confdefs.h. */
17791
17792/* Override any gcc2 internal prototype to avoid an error. */
17793#ifdef __cplusplus
17794extern "C"
17795#endif
17796/* We use char because int might match the return type of a gcc2
17797 builtin and then its argument prototype would still apply. */
17798char dlopen ();
17799int
17800main ()
17801{
17802dlopen ();
17803 ;
17804 return 0;
17805}
17806_ACEOF
17807rm -f conftest.$ac_objext conftest$ac_exeext
17808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017809 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017810 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017811 grep -v '^ *+' conftest.er1 >conftest.err
17812 rm -f conftest.er1
17813 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818 (eval $ac_try) 2>&5
17819 ac_status=$?
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; } &&
17822 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17824 (eval $ac_try) 2>&5
17825 ac_status=$?
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; }; then
17828 ac_cv_lib_svld_dlopen=yes
17829else
17830 echo "$as_me: failed program was:" >&5
17831sed 's/^/| /' conftest.$ac_ext >&5
17832
17833ac_cv_lib_svld_dlopen=no
17834fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017835rm -f conftest.err conftest.$ac_objext \
17836 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017837LIBS=$ac_check_lib_save_LIBS
17838fi
17839echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17840echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17841if test $ac_cv_lib_svld_dlopen = yes; then
17842 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17843else
17844 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17845echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17846if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17847 echo $ECHO_N "(cached) $ECHO_C" >&6
17848else
17849 ac_check_lib_save_LIBS=$LIBS
17850LIBS="-ldld $LIBS"
17851cat >conftest.$ac_ext <<_ACEOF
17852/* confdefs.h. */
17853_ACEOF
17854cat confdefs.h >>conftest.$ac_ext
17855cat >>conftest.$ac_ext <<_ACEOF
17856/* end confdefs.h. */
17857
17858/* Override any gcc2 internal prototype to avoid an error. */
17859#ifdef __cplusplus
17860extern "C"
17861#endif
17862/* We use char because int might match the return type of a gcc2
17863 builtin and then its argument prototype would still apply. */
17864char dld_link ();
17865int
17866main ()
17867{
17868dld_link ();
17869 ;
17870 return 0;
17871}
17872_ACEOF
17873rm -f conftest.$ac_objext conftest$ac_exeext
17874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017875 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017876 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017877 grep -v '^ *+' conftest.er1 >conftest.err
17878 rm -f conftest.er1
17879 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17884 (eval $ac_try) 2>&5
17885 ac_status=$?
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); }; } &&
17888 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890 (eval $ac_try) 2>&5
17891 ac_status=$?
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); }; }; then
17894 ac_cv_lib_dld_dld_link=yes
17895else
17896 echo "$as_me: failed program was:" >&5
17897sed 's/^/| /' conftest.$ac_ext >&5
17898
17899ac_cv_lib_dld_dld_link=no
17900fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017901rm -f conftest.err conftest.$ac_objext \
17902 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017903LIBS=$ac_check_lib_save_LIBS
17904fi
17905echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17906echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17907if test $ac_cv_lib_dld_dld_link = yes; then
17908 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17909fi
17910
17911
17912fi
17913
17914
17915fi
17916
17917
17918fi
17919
17920
17921fi
17922
17923
17924fi
17925
17926 ;;
17927 esac
17928
17929 if test "x$lt_cv_dlopen" != xno; then
17930 enable_dlopen=yes
17931 else
17932 enable_dlopen=no
17933 fi
17934
17935 case $lt_cv_dlopen in
17936 dlopen)
17937 save_CPPFLAGS="$CPPFLAGS"
17938 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17939
17940 save_LDFLAGS="$LDFLAGS"
17941 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17942
17943 save_LIBS="$LIBS"
17944 LIBS="$lt_cv_dlopen_libs $LIBS"
17945
17946 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17947echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17948if test "${lt_cv_dlopen_self+set}" = set; then
17949 echo $ECHO_N "(cached) $ECHO_C" >&6
17950else
17951 if test "$cross_compiling" = yes; then :
17952 lt_cv_dlopen_self=cross
17953else
17954 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17955 lt_status=$lt_dlunknown
17956 cat > conftest.$ac_ext <<EOF
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017957#line 17957 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017958#include "confdefs.h"
17959
17960#if HAVE_DLFCN_H
17961#include <dlfcn.h>
17962#endif
17963
17964#include <stdio.h>
17965
17966#ifdef RTLD_GLOBAL
17967# define LT_DLGLOBAL RTLD_GLOBAL
17968#else
17969# ifdef DL_GLOBAL
17970# define LT_DLGLOBAL DL_GLOBAL
17971# else
17972# define LT_DLGLOBAL 0
17973# endif
17974#endif
17975
17976/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17977 find out it does not work in some platform. */
17978#ifndef LT_DLLAZY_OR_NOW
17979# ifdef RTLD_LAZY
17980# define LT_DLLAZY_OR_NOW RTLD_LAZY
17981# else
17982# ifdef DL_LAZY
17983# define LT_DLLAZY_OR_NOW DL_LAZY
17984# else
17985# ifdef RTLD_NOW
17986# define LT_DLLAZY_OR_NOW RTLD_NOW
17987# else
17988# ifdef DL_NOW
17989# define LT_DLLAZY_OR_NOW DL_NOW
17990# else
17991# define LT_DLLAZY_OR_NOW 0
17992# endif
17993# endif
17994# endif
17995# endif
17996#endif
17997
17998#ifdef __cplusplus
17999extern "C" void exit (int);
18000#endif
18001
18002void fnord() { int i=42;}
18003int main ()
18004{
18005 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18006 int status = $lt_dlunknown;
18007
18008 if (self)
18009 {
18010 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18011 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18012 /* dlclose (self); */
18013 }
18014
18015 exit (status);
18016}
18017EOF
18018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18019 (eval $ac_link) 2>&5
18020 ac_status=$?
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18023 (./conftest; exit; ) 2>/dev/null
18024 lt_status=$?
18025 case x$lt_status in
18026 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18027 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18028 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18029 esac
18030 else :
18031 # compilation failed
18032 lt_cv_dlopen_self=no
18033 fi
18034fi
18035rm -fr conftest*
18036
18037
18038fi
18039echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18040echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18041
18042 if test "x$lt_cv_dlopen_self" = xyes; then
18043 LDFLAGS="$LDFLAGS $link_static_flag"
18044 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18045echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18046if test "${lt_cv_dlopen_self_static+set}" = set; then
18047 echo $ECHO_N "(cached) $ECHO_C" >&6
18048else
18049 if test "$cross_compiling" = yes; then :
18050 lt_cv_dlopen_self_static=cross
18051else
18052 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18053 lt_status=$lt_dlunknown
18054 cat > conftest.$ac_ext <<EOF
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000018055#line 18055 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018056#include "confdefs.h"
18057
18058#if HAVE_DLFCN_H
18059#include <dlfcn.h>
18060#endif
18061
18062#include <stdio.h>
18063
18064#ifdef RTLD_GLOBAL
18065# define LT_DLGLOBAL RTLD_GLOBAL
18066#else
18067# ifdef DL_GLOBAL
18068# define LT_DLGLOBAL DL_GLOBAL
18069# else
18070# define LT_DLGLOBAL 0
18071# endif
18072#endif
18073
18074/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18075 find out it does not work in some platform. */
18076#ifndef LT_DLLAZY_OR_NOW
18077# ifdef RTLD_LAZY
18078# define LT_DLLAZY_OR_NOW RTLD_LAZY
18079# else
18080# ifdef DL_LAZY
18081# define LT_DLLAZY_OR_NOW DL_LAZY
18082# else
18083# ifdef RTLD_NOW
18084# define LT_DLLAZY_OR_NOW RTLD_NOW
18085# else
18086# ifdef DL_NOW
18087# define LT_DLLAZY_OR_NOW DL_NOW
18088# else
18089# define LT_DLLAZY_OR_NOW 0
18090# endif
18091# endif
18092# endif
18093# endif
18094#endif
18095
18096#ifdef __cplusplus
18097extern "C" void exit (int);
18098#endif
18099
18100void fnord() { int i=42;}
18101int main ()
18102{
18103 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18104 int status = $lt_dlunknown;
18105
18106 if (self)
18107 {
18108 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18109 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18110 /* dlclose (self); */
18111 }
18112
18113 exit (status);
18114}
18115EOF
18116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18117 (eval $ac_link) 2>&5
18118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18121 (./conftest; exit; ) 2>/dev/null
18122 lt_status=$?
18123 case x$lt_status in
18124 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18125 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18126 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18127 esac
18128 else :
18129 # compilation failed
18130 lt_cv_dlopen_self_static=no
18131 fi
18132fi
18133rm -fr conftest*
18134
18135
18136fi
18137echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18138echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18139 fi
18140
18141 CPPFLAGS="$save_CPPFLAGS"
18142 LDFLAGS="$save_LDFLAGS"
18143 LIBS="$save_LIBS"
18144 ;;
18145 esac
18146
18147 case $lt_cv_dlopen_self in
18148 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18149 *) enable_dlopen_self=unknown ;;
18150 esac
18151
18152 case $lt_cv_dlopen_self_static in
18153 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18154 *) enable_dlopen_self_static=unknown ;;
18155 esac
18156fi
18157
18158
18159# The else clause should only fire when bootstrapping the
18160# libtool distribution, otherwise you forgot to ship ltmain.sh
18161# with your package, and you will get complaints that there are
18162# no rules to generate ltmain.sh.
18163if test -f "$ltmain"; then
18164 # See if we are running on zsh, and set the options which allow our commands through
18165 # without removal of \ escapes.
18166 if test -n "${ZSH_VERSION+set}" ; then
18167 setopt NO_GLOB_SUBST
18168 fi
18169 # Now quote all the things that may contain metacharacters while being
18170 # careful not to overquote the AC_SUBSTed values. We take copies of the
18171 # variables and quote the copies for generation of the libtool script.
18172 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18173 SED SHELL STRIP \
18174 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18175 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18176 deplibs_check_method reload_flag reload_cmds need_locks \
18177 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18178 lt_cv_sys_global_symbol_to_c_name_address \
18179 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18180 old_postinstall_cmds old_postuninstall_cmds \
18181 compiler_GCJ \
18182 CC_GCJ \
18183 LD_GCJ \
18184 lt_prog_compiler_wl_GCJ \
18185 lt_prog_compiler_pic_GCJ \
18186 lt_prog_compiler_static_GCJ \
18187 lt_prog_compiler_no_builtin_flag_GCJ \
18188 export_dynamic_flag_spec_GCJ \
18189 thread_safe_flag_spec_GCJ \
18190 whole_archive_flag_spec_GCJ \
18191 enable_shared_with_static_runtimes_GCJ \
18192 old_archive_cmds_GCJ \
18193 old_archive_from_new_cmds_GCJ \
18194 predep_objects_GCJ \
18195 postdep_objects_GCJ \
18196 predeps_GCJ \
18197 postdeps_GCJ \
18198 compiler_lib_search_path_GCJ \
18199 archive_cmds_GCJ \
18200 archive_expsym_cmds_GCJ \
18201 postinstall_cmds_GCJ \
18202 postuninstall_cmds_GCJ \
18203 old_archive_from_expsyms_cmds_GCJ \
18204 allow_undefined_flag_GCJ \
18205 no_undefined_flag_GCJ \
18206 export_symbols_cmds_GCJ \
18207 hardcode_libdir_flag_spec_GCJ \
18208 hardcode_libdir_flag_spec_ld_GCJ \
18209 hardcode_libdir_separator_GCJ \
18210 hardcode_automatic_GCJ \
18211 module_cmds_GCJ \
18212 module_expsym_cmds_GCJ \
18213 lt_cv_prog_compiler_c_o_GCJ \
18214 exclude_expsyms_GCJ \
18215 include_expsyms_GCJ; do
18216
18217 case $var in
18218 old_archive_cmds_GCJ | \
18219 old_archive_from_new_cmds_GCJ | \
18220 archive_cmds_GCJ | \
18221 archive_expsym_cmds_GCJ | \
18222 module_cmds_GCJ | \
18223 module_expsym_cmds_GCJ | \
18224 old_archive_from_expsyms_cmds_GCJ | \
18225 export_symbols_cmds_GCJ | \
18226 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18227 postinstall_cmds | postuninstall_cmds | \
18228 old_postinstall_cmds | old_postuninstall_cmds | \
18229 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18230 # Double-quote double-evaled strings.
18231 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18232 ;;
18233 *)
18234 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18235 ;;
18236 esac
18237 done
18238
18239 case $lt_echo in
18240 *'\$0 --fallback-echo"')
18241 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18242 ;;
18243 esac
18244
18245cfgfile="$ofile"
18246
18247 cat <<__EOF__ >> "$cfgfile"
18248# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18249
18250# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18251
18252# Shell to use when invoking shell scripts.
18253SHELL=$lt_SHELL
18254
18255# Whether or not to build shared libraries.
18256build_libtool_libs=$enable_shared
18257
18258# Whether or not to build static libraries.
18259build_old_libs=$enable_static
18260
18261# Whether or not to add -lc for building shared libraries.
18262build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18263
18264# Whether or not to disallow shared libs when runtime libs are static
18265allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18266
18267# Whether or not to optimize for fast installation.
18268fast_install=$enable_fast_install
18269
18270# The host system.
18271host_alias=$host_alias
18272host=$host
18273
18274# An echo program that does not interpret backslashes.
18275echo=$lt_echo
18276
18277# The archiver.
18278AR=$lt_AR
18279AR_FLAGS=$lt_AR_FLAGS
18280
18281# A C compiler.
18282LTCC=$lt_LTCC
18283
18284# A language-specific compiler.
18285CC=$lt_compiler_GCJ
18286
18287# Is the compiler the GNU C compiler?
18288with_gcc=$GCC_GCJ
18289
18290# An ERE matcher.
18291EGREP=$lt_EGREP
18292
18293# The linker used to build libraries.
18294LD=$lt_LD_GCJ
18295
18296# Whether we need hard or soft links.
18297LN_S=$lt_LN_S
18298
18299# A BSD-compatible nm program.
18300NM=$lt_NM
18301
18302# A symbol stripping program
18303STRIP=$lt_STRIP
18304
18305# Used to examine libraries when file_magic_cmd begins "file"
18306MAGIC_CMD=$MAGIC_CMD
18307
18308# Used on cygwin: DLL creation program.
18309DLLTOOL="$DLLTOOL"
18310
18311# Used on cygwin: object dumper.
18312OBJDUMP="$OBJDUMP"
18313
18314# Used on cygwin: assembler.
18315AS="$AS"
18316
18317# The name of the directory that contains temporary libtool files.
18318objdir=$objdir
18319
18320# How to create reloadable object files.
18321reload_flag=$lt_reload_flag
18322reload_cmds=$lt_reload_cmds
18323
18324# How to pass a linker flag through the compiler.
18325wl=$lt_lt_prog_compiler_wl_GCJ
18326
18327# Object file suffix (normally "o").
18328objext="$ac_objext"
18329
18330# Old archive suffix (normally "a").
18331libext="$libext"
18332
18333# Shared library suffix (normally ".so").
18334shrext='$shrext'
18335
18336# Executable file suffix (normally "").
18337exeext="$exeext"
18338
18339# Additional compiler flags for building library objects.
18340pic_flag=$lt_lt_prog_compiler_pic_GCJ
18341pic_mode=$pic_mode
18342
18343# What is the maximum length of a command?
18344max_cmd_len=$lt_cv_sys_max_cmd_len
18345
18346# Does compiler simultaneously support -c and -o options?
18347compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18348
18349# Must we lock files when doing compilation ?
18350need_locks=$lt_need_locks
18351
18352# Do we need the lib prefix for modules?
18353need_lib_prefix=$need_lib_prefix
18354
18355# Do we need a version for libraries?
18356need_version=$need_version
18357
18358# Whether dlopen is supported.
18359dlopen_support=$enable_dlopen
18360
18361# Whether dlopen of programs is supported.
18362dlopen_self=$enable_dlopen_self
18363
18364# Whether dlopen of statically linked programs is supported.
18365dlopen_self_static=$enable_dlopen_self_static
18366
18367# Compiler flag to prevent dynamic linking.
18368link_static_flag=$lt_lt_prog_compiler_static_GCJ
18369
18370# Compiler flag to turn off builtin functions.
18371no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18372
18373# Compiler flag to allow reflexive dlopens.
18374export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18375
18376# Compiler flag to generate shared objects directly from archives.
18377whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18378
18379# Compiler flag to generate thread-safe objects.
18380thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18381
18382# Library versioning type.
18383version_type=$version_type
18384
18385# Format of library name prefix.
18386libname_spec=$lt_libname_spec
18387
18388# List of archive names. First name is the real one, the rest are links.
18389# The last name is the one that the linker finds with -lNAME.
18390library_names_spec=$lt_library_names_spec
18391
18392# The coded name of the library, if different from the real name.
18393soname_spec=$lt_soname_spec
18394
18395# Commands used to build and install an old-style archive.
18396RANLIB=$lt_RANLIB
18397old_archive_cmds=$lt_old_archive_cmds_GCJ
18398old_postinstall_cmds=$lt_old_postinstall_cmds
18399old_postuninstall_cmds=$lt_old_postuninstall_cmds
18400
18401# Create an old-style archive from a shared archive.
18402old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18403
18404# Create a temporary old-style archive to link instead of a shared archive.
18405old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18406
18407# Commands used to build and install a shared archive.
18408archive_cmds=$lt_archive_cmds_GCJ
18409archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18410postinstall_cmds=$lt_postinstall_cmds
18411postuninstall_cmds=$lt_postuninstall_cmds
18412
18413# Commands used to build a loadable module (assumed same as above if empty)
18414module_cmds=$lt_module_cmds_GCJ
18415module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18416
18417# Commands to strip libraries.
18418old_striplib=$lt_old_striplib
18419striplib=$lt_striplib
18420
18421# Dependencies to place before the objects being linked to create a
18422# shared library.
18423predep_objects=$lt_predep_objects_GCJ
18424
18425# Dependencies to place after the objects being linked to create a
18426# shared library.
18427postdep_objects=$lt_postdep_objects_GCJ
18428
18429# Dependencies to place before the objects being linked to create a
18430# shared library.
18431predeps=$lt_predeps_GCJ
18432
18433# Dependencies to place after the objects being linked to create a
18434# shared library.
18435postdeps=$lt_postdeps_GCJ
18436
18437# The library search path used internally by the compiler when linking
18438# a shared library.
18439compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18440
18441# Method to check whether dependent libraries are shared objects.
18442deplibs_check_method=$lt_deplibs_check_method
18443
18444# Command to use when deplibs_check_method == file_magic.
18445file_magic_cmd=$lt_file_magic_cmd
18446
18447# Flag that allows shared libraries with undefined symbols to be built.
18448allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18449
18450# Flag that forces no undefined symbols.
18451no_undefined_flag=$lt_no_undefined_flag_GCJ
18452
18453# Commands used to finish a libtool library installation in a directory.
18454finish_cmds=$lt_finish_cmds
18455
18456# Same as above, but a single script fragment to be evaled but not shown.
18457finish_eval=$lt_finish_eval
18458
18459# Take the output of nm and produce a listing of raw symbols and C names.
18460global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18461
18462# Transform the output of nm in a proper C declaration
18463global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18464
18465# Transform the output of nm in a C name address pair
18466global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18467
18468# This is the shared library runtime path variable.
18469runpath_var=$runpath_var
18470
18471# This is the shared library path variable.
18472shlibpath_var=$shlibpath_var
18473
18474# Is shlibpath searched before the hard-coded library search path?
18475shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18476
18477# How to hardcode a shared library path into an executable.
18478hardcode_action=$hardcode_action_GCJ
18479
18480# Whether we should hardcode library paths into libraries.
18481hardcode_into_libs=$hardcode_into_libs
18482
18483# Flag to hardcode \$libdir into a binary during linking.
18484# This must work even if \$libdir does not exist.
18485hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18486
18487# If ld is used when linking, flag to hardcode \$libdir into
18488# a binary during linking. This must work even if \$libdir does
18489# not exist.
18490hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18491
18492# Whether we need a single -rpath flag with a separated argument.
18493hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18494
18495# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18496# resulting binary.
18497hardcode_direct=$hardcode_direct_GCJ
18498
18499# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18500# resulting binary.
18501hardcode_minus_L=$hardcode_minus_L_GCJ
18502
18503# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18504# the resulting binary.
18505hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18506
18507# Set to yes if building a shared library automatically hardcodes DIR into the library
18508# and all subsequent libraries and executables linked against it.
18509hardcode_automatic=$hardcode_automatic_GCJ
18510
18511# Variables whose values should be saved in libtool wrapper scripts and
18512# restored at relink time.
18513variables_saved_for_relink="$variables_saved_for_relink"
18514
18515# Whether libtool must link a program against all its dependency libraries.
18516link_all_deplibs=$link_all_deplibs_GCJ
18517
18518# Compile-time system search path for libraries
18519sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18520
18521# Run-time system search path for libraries
18522sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18523
18524# Fix the shell variable \$srcfile for the compiler.
18525fix_srcfile_path="$fix_srcfile_path_GCJ"
18526
18527# Set to yes if exported symbols are required.
18528always_export_symbols=$always_export_symbols_GCJ
18529
18530# The commands to list exported symbols.
18531export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18532
18533# The commands to extract the exported symbol list from a shared archive.
18534extract_expsyms_cmds=$lt_extract_expsyms_cmds
18535
18536# Symbols that should not be listed in the preloaded symbols.
18537exclude_expsyms=$lt_exclude_expsyms_GCJ
18538
18539# Symbols that must always be exported.
18540include_expsyms=$lt_include_expsyms_GCJ
18541
18542# ### END LIBTOOL TAG CONFIG: $tagname
18543
18544__EOF__
18545
18546
18547else
18548 # If there is no Makefile yet, we rely on a make rule to execute
18549 # `config.status --recheck' to rerun these tests and create the
18550 # libtool script then.
18551 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18552 if test -f "$ltmain_in"; then
18553 test -f Makefile && make "$ltmain"
18554 fi
18555fi
18556
18557
18558ac_ext=c
18559ac_cpp='$CPP $CPPFLAGS'
18560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18562ac_compiler_gnu=$ac_cv_c_compiler_gnu
18563
18564CC="$lt_save_CC"
18565
18566 else
18567 tagname=""
18568 fi
18569 ;;
18570
18571 RC)
18572
18573
18574
18575# Source file extension for RC test sources.
18576ac_ext=rc
18577
18578# Object file extension for compiled RC test sources.
18579objext=o
18580objext_RC=$objext
18581
18582# Code to be used in simple compile tests
18583lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18584
18585# Code to be used in simple link tests
18586lt_simple_link_test_code="$lt_simple_compile_test_code"
18587
18588# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18589
18590# If no C compiler was specified, use CC.
18591LTCC=${LTCC-"$CC"}
18592
18593# Allow CC to be a program name with arguments.
18594compiler=$CC
18595
18596
18597# Allow CC to be a program name with arguments.
18598lt_save_CC="$CC"
18599CC=${RC-"windres"}
18600compiler=$CC
18601compiler_RC=$CC
18602lt_cv_prog_compiler_c_o_RC=yes
18603
18604# The else clause should only fire when bootstrapping the
18605# libtool distribution, otherwise you forgot to ship ltmain.sh
18606# with your package, and you will get complaints that there are
18607# no rules to generate ltmain.sh.
18608if test -f "$ltmain"; then
18609 # See if we are running on zsh, and set the options which allow our commands through
18610 # without removal of \ escapes.
18611 if test -n "${ZSH_VERSION+set}" ; then
18612 setopt NO_GLOB_SUBST
18613 fi
18614 # Now quote all the things that may contain metacharacters while being
18615 # careful not to overquote the AC_SUBSTed values. We take copies of the
18616 # variables and quote the copies for generation of the libtool script.
18617 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18618 SED SHELL STRIP \
18619 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18620 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18621 deplibs_check_method reload_flag reload_cmds need_locks \
18622 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18623 lt_cv_sys_global_symbol_to_c_name_address \
18624 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18625 old_postinstall_cmds old_postuninstall_cmds \
18626 compiler_RC \
18627 CC_RC \
18628 LD_RC \
18629 lt_prog_compiler_wl_RC \
18630 lt_prog_compiler_pic_RC \
18631 lt_prog_compiler_static_RC \
18632 lt_prog_compiler_no_builtin_flag_RC \
18633 export_dynamic_flag_spec_RC \
18634 thread_safe_flag_spec_RC \
18635 whole_archive_flag_spec_RC \
18636 enable_shared_with_static_runtimes_RC \
18637 old_archive_cmds_RC \
18638 old_archive_from_new_cmds_RC \
18639 predep_objects_RC \
18640 postdep_objects_RC \
18641 predeps_RC \
18642 postdeps_RC \
18643 compiler_lib_search_path_RC \
18644 archive_cmds_RC \
18645 archive_expsym_cmds_RC \
18646 postinstall_cmds_RC \
18647 postuninstall_cmds_RC \
18648 old_archive_from_expsyms_cmds_RC \
18649 allow_undefined_flag_RC \
18650 no_undefined_flag_RC \
18651 export_symbols_cmds_RC \
18652 hardcode_libdir_flag_spec_RC \
18653 hardcode_libdir_flag_spec_ld_RC \
18654 hardcode_libdir_separator_RC \
18655 hardcode_automatic_RC \
18656 module_cmds_RC \
18657 module_expsym_cmds_RC \
18658 lt_cv_prog_compiler_c_o_RC \
18659 exclude_expsyms_RC \
18660 include_expsyms_RC; do
18661
18662 case $var in
18663 old_archive_cmds_RC | \
18664 old_archive_from_new_cmds_RC | \
18665 archive_cmds_RC | \
18666 archive_expsym_cmds_RC | \
18667 module_cmds_RC | \
18668 module_expsym_cmds_RC | \
18669 old_archive_from_expsyms_cmds_RC | \
18670 export_symbols_cmds_RC | \
18671 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18672 postinstall_cmds | postuninstall_cmds | \
18673 old_postinstall_cmds | old_postuninstall_cmds | \
18674 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18675 # Double-quote double-evaled strings.
18676 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18677 ;;
18678 *)
18679 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18680 ;;
18681 esac
18682 done
18683
18684 case $lt_echo in
18685 *'\$0 --fallback-echo"')
18686 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18687 ;;
18688 esac
18689
18690cfgfile="$ofile"
18691
18692 cat <<__EOF__ >> "$cfgfile"
18693# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18694
18695# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18696
18697# Shell to use when invoking shell scripts.
18698SHELL=$lt_SHELL
18699
18700# Whether or not to build shared libraries.
18701build_libtool_libs=$enable_shared
18702
18703# Whether or not to build static libraries.
18704build_old_libs=$enable_static
18705
18706# Whether or not to add -lc for building shared libraries.
18707build_libtool_need_lc=$archive_cmds_need_lc_RC
18708
18709# Whether or not to disallow shared libs when runtime libs are static
18710allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18711
18712# Whether or not to optimize for fast installation.
18713fast_install=$enable_fast_install
18714
18715# The host system.
18716host_alias=$host_alias
18717host=$host
18718
18719# An echo program that does not interpret backslashes.
18720echo=$lt_echo
18721
18722# The archiver.
18723AR=$lt_AR
18724AR_FLAGS=$lt_AR_FLAGS
18725
18726# A C compiler.
18727LTCC=$lt_LTCC
18728
18729# A language-specific compiler.
18730CC=$lt_compiler_RC
18731
18732# Is the compiler the GNU C compiler?
18733with_gcc=$GCC_RC
18734
18735# An ERE matcher.
18736EGREP=$lt_EGREP
18737
18738# The linker used to build libraries.
18739LD=$lt_LD_RC
18740
18741# Whether we need hard or soft links.
18742LN_S=$lt_LN_S
18743
18744# A BSD-compatible nm program.
18745NM=$lt_NM
18746
18747# A symbol stripping program
18748STRIP=$lt_STRIP
18749
18750# Used to examine libraries when file_magic_cmd begins "file"
18751MAGIC_CMD=$MAGIC_CMD
18752
18753# Used on cygwin: DLL creation program.
18754DLLTOOL="$DLLTOOL"
18755
18756# Used on cygwin: object dumper.
18757OBJDUMP="$OBJDUMP"
18758
18759# Used on cygwin: assembler.
18760AS="$AS"
18761
18762# The name of the directory that contains temporary libtool files.
18763objdir=$objdir
18764
18765# How to create reloadable object files.
18766reload_flag=$lt_reload_flag
18767reload_cmds=$lt_reload_cmds
18768
18769# How to pass a linker flag through the compiler.
18770wl=$lt_lt_prog_compiler_wl_RC
18771
18772# Object file suffix (normally "o").
18773objext="$ac_objext"
18774
18775# Old archive suffix (normally "a").
18776libext="$libext"
18777
18778# Shared library suffix (normally ".so").
18779shrext='$shrext'
18780
18781# Executable file suffix (normally "").
18782exeext="$exeext"
18783
18784# Additional compiler flags for building library objects.
18785pic_flag=$lt_lt_prog_compiler_pic_RC
18786pic_mode=$pic_mode
18787
18788# What is the maximum length of a command?
18789max_cmd_len=$lt_cv_sys_max_cmd_len
18790
18791# Does compiler simultaneously support -c and -o options?
18792compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18793
18794# Must we lock files when doing compilation ?
18795need_locks=$lt_need_locks
18796
18797# Do we need the lib prefix for modules?
18798need_lib_prefix=$need_lib_prefix
18799
18800# Do we need a version for libraries?
18801need_version=$need_version
18802
18803# Whether dlopen is supported.
18804dlopen_support=$enable_dlopen
18805
18806# Whether dlopen of programs is supported.
18807dlopen_self=$enable_dlopen_self
18808
18809# Whether dlopen of statically linked programs is supported.
18810dlopen_self_static=$enable_dlopen_self_static
18811
18812# Compiler flag to prevent dynamic linking.
18813link_static_flag=$lt_lt_prog_compiler_static_RC
18814
18815# Compiler flag to turn off builtin functions.
18816no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18817
18818# Compiler flag to allow reflexive dlopens.
18819export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18820
18821# Compiler flag to generate shared objects directly from archives.
18822whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18823
18824# Compiler flag to generate thread-safe objects.
18825thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18826
18827# Library versioning type.
18828version_type=$version_type
18829
18830# Format of library name prefix.
18831libname_spec=$lt_libname_spec
18832
18833# List of archive names. First name is the real one, the rest are links.
18834# The last name is the one that the linker finds with -lNAME.
18835library_names_spec=$lt_library_names_spec
18836
18837# The coded name of the library, if different from the real name.
18838soname_spec=$lt_soname_spec
18839
18840# Commands used to build and install an old-style archive.
18841RANLIB=$lt_RANLIB
18842old_archive_cmds=$lt_old_archive_cmds_RC
18843old_postinstall_cmds=$lt_old_postinstall_cmds
18844old_postuninstall_cmds=$lt_old_postuninstall_cmds
18845
18846# Create an old-style archive from a shared archive.
18847old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18848
18849# Create a temporary old-style archive to link instead of a shared archive.
18850old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18851
18852# Commands used to build and install a shared archive.
18853archive_cmds=$lt_archive_cmds_RC
18854archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18855postinstall_cmds=$lt_postinstall_cmds
18856postuninstall_cmds=$lt_postuninstall_cmds
18857
18858# Commands used to build a loadable module (assumed same as above if empty)
18859module_cmds=$lt_module_cmds_RC
18860module_expsym_cmds=$lt_module_expsym_cmds_RC
18861
18862# Commands to strip libraries.
18863old_striplib=$lt_old_striplib
18864striplib=$lt_striplib
18865
18866# Dependencies to place before the objects being linked to create a
18867# shared library.
18868predep_objects=$lt_predep_objects_RC
18869
18870# Dependencies to place after the objects being linked to create a
18871# shared library.
18872postdep_objects=$lt_postdep_objects_RC
18873
18874# Dependencies to place before the objects being linked to create a
18875# shared library.
18876predeps=$lt_predeps_RC
18877
18878# Dependencies to place after the objects being linked to create a
18879# shared library.
18880postdeps=$lt_postdeps_RC
18881
18882# The library search path used internally by the compiler when linking
18883# a shared library.
18884compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18885
18886# Method to check whether dependent libraries are shared objects.
18887deplibs_check_method=$lt_deplibs_check_method
18888
18889# Command to use when deplibs_check_method == file_magic.
18890file_magic_cmd=$lt_file_magic_cmd
18891
18892# Flag that allows shared libraries with undefined symbols to be built.
18893allow_undefined_flag=$lt_allow_undefined_flag_RC
18894
18895# Flag that forces no undefined symbols.
18896no_undefined_flag=$lt_no_undefined_flag_RC
18897
18898# Commands used to finish a libtool library installation in a directory.
18899finish_cmds=$lt_finish_cmds
18900
18901# Same as above, but a single script fragment to be evaled but not shown.
18902finish_eval=$lt_finish_eval
18903
18904# Take the output of nm and produce a listing of raw symbols and C names.
18905global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18906
18907# Transform the output of nm in a proper C declaration
18908global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18909
18910# Transform the output of nm in a C name address pair
18911global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18912
18913# This is the shared library runtime path variable.
18914runpath_var=$runpath_var
18915
18916# This is the shared library path variable.
18917shlibpath_var=$shlibpath_var
18918
18919# Is shlibpath searched before the hard-coded library search path?
18920shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18921
18922# How to hardcode a shared library path into an executable.
18923hardcode_action=$hardcode_action_RC
18924
18925# Whether we should hardcode library paths into libraries.
18926hardcode_into_libs=$hardcode_into_libs
18927
18928# Flag to hardcode \$libdir into a binary during linking.
18929# This must work even if \$libdir does not exist.
18930hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18931
18932# If ld is used when linking, flag to hardcode \$libdir into
18933# a binary during linking. This must work even if \$libdir does
18934# not exist.
18935hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18936
18937# Whether we need a single -rpath flag with a separated argument.
18938hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18939
18940# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18941# resulting binary.
18942hardcode_direct=$hardcode_direct_RC
18943
18944# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18945# resulting binary.
18946hardcode_minus_L=$hardcode_minus_L_RC
18947
18948# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18949# the resulting binary.
18950hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18951
18952# Set to yes if building a shared library automatically hardcodes DIR into the library
18953# and all subsequent libraries and executables linked against it.
18954hardcode_automatic=$hardcode_automatic_RC
18955
18956# Variables whose values should be saved in libtool wrapper scripts and
18957# restored at relink time.
18958variables_saved_for_relink="$variables_saved_for_relink"
18959
18960# Whether libtool must link a program against all its dependency libraries.
18961link_all_deplibs=$link_all_deplibs_RC
18962
18963# Compile-time system search path for libraries
18964sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18965
18966# Run-time system search path for libraries
18967sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18968
18969# Fix the shell variable \$srcfile for the compiler.
18970fix_srcfile_path="$fix_srcfile_path_RC"
18971
18972# Set to yes if exported symbols are required.
18973always_export_symbols=$always_export_symbols_RC
18974
18975# The commands to list exported symbols.
18976export_symbols_cmds=$lt_export_symbols_cmds_RC
18977
18978# The commands to extract the exported symbol list from a shared archive.
18979extract_expsyms_cmds=$lt_extract_expsyms_cmds
18980
18981# Symbols that should not be listed in the preloaded symbols.
18982exclude_expsyms=$lt_exclude_expsyms_RC
18983
18984# Symbols that must always be exported.
18985include_expsyms=$lt_include_expsyms_RC
18986
18987# ### END LIBTOOL TAG CONFIG: $tagname
18988
18989__EOF__
18990
18991
18992else
18993 # If there is no Makefile yet, we rely on a make rule to execute
18994 # `config.status --recheck' to rerun these tests and create the
18995 # libtool script then.
18996 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18997 if test -f "$ltmain_in"; then
18998 test -f Makefile && make "$ltmain"
18999 fi
19000fi
19001
19002
19003ac_ext=c
19004ac_cpp='$CPP $CPPFLAGS'
19005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19007ac_compiler_gnu=$ac_cv_c_compiler_gnu
19008
19009CC="$lt_save_CC"
19010
19011 ;;
19012
19013 *)
19014 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19015echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19016 { (exit 1); exit 1; }; }
19017 ;;
19018 esac
19019
19020 # Append the new tag name to the list of available tags.
19021 if test -n "$tagname" ; then
19022 available_tags="$available_tags $tagname"
19023 fi
19024 fi
19025 done
19026 IFS="$lt_save_ifs"
19027
19028 # Now substitute the updated list of available tags.
19029 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19030 mv "${ofile}T" "$ofile"
19031 chmod +x "$ofile"
19032 else
19033 rm -f "${ofile}T"
19034 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19035echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19036 { (exit 1); exit 1; }; }
19037 fi
19038fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019039
19040
19041
19042# This can be used to rebuild libtool when needed
19043LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19044
19045# Always use our own libtool.
19046LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19047
19048# Prevent multiple expansion
19049
19050
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
mostang.com!davidm6af90d02003-02-15 08:53:55 +000019069# By default we simply use the C compiler to build assembly code.
19070
19071: ${CCAS='$(CC)'}
19072# Set ASFLAGS if not already set.
19073: ${CCASFLAGS='$(CFLAGS)'}
19074
19075
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019076
19077
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019078echo "$as_me:$LINENO: checking for __uc_get_grs in -luca" >&5
19079echo $ECHO_N "checking for __uc_get_grs in -luca... $ECHO_C" >&6
19080if test "${ac_cv_lib_uca___uc_get_grs+set}" = set; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19082else
19083 ac_check_lib_save_LIBS=$LIBS
19084LIBS="-luca $LIBS"
19085cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019086/* confdefs.h. */
19087_ACEOF
19088cat confdefs.h >>conftest.$ac_ext
19089cat >>conftest.$ac_ext <<_ACEOF
19090/* end confdefs.h. */
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019091
19092/* Override any gcc2 internal prototype to avoid an error. */
19093#ifdef __cplusplus
19094extern "C"
19095#endif
19096/* We use char because int might match the return type of a gcc2
19097 builtin and then its argument prototype would still apply. */
19098char __uc_get_grs ();
19099int
19100main ()
19101{
19102__uc_get_grs ();
19103 ;
19104 return 0;
19105}
19106_ACEOF
19107rm -f conftest.$ac_objext conftest$ac_exeext
19108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019109 (eval $ac_link) 2>conftest.er1
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019110 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019111 grep -v '^ *+' conftest.er1 >conftest.err
19112 rm -f conftest.er1
19113 cat conftest.err >&5
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118 (eval $ac_try) 2>&5
19119 ac_status=$?
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); }; } &&
19122 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124 (eval $ac_try) 2>&5
19125 ac_status=$?
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; }; then
19128 ac_cv_lib_uca___uc_get_grs=yes
19129else
19130 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019131sed 's/^/| /' conftest.$ac_ext >&5
19132
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019133ac_cv_lib_uca___uc_get_grs=no
19134fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019135rm -f conftest.err conftest.$ac_objext \
19136 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019137LIBS=$ac_check_lib_save_LIBS
19138fi
19139echo "$as_me:$LINENO: result: $ac_cv_lib_uca___uc_get_grs" >&5
19140echo "${ECHO_T}$ac_cv_lib_uca___uc_get_grs" >&6
19141if test $ac_cv_lib_uca___uc_get_grs = yes; then
19142 cat >>confdefs.h <<_ACEOF
19143#define HAVE_LIBUCA 1
19144_ACEOF
19145
19146 LIBS="-luca $LIBS"
19147
19148fi
19149
19150
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019151for ac_header in atomic_ops.h
19152do
19153as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19154if eval "test \"\${$as_ac_Header+set}\" = set"; then
19155 echo "$as_me:$LINENO: checking for $ac_header" >&5
19156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19157if eval "test \"\${$as_ac_Header+set}\" = set"; then
19158 echo $ECHO_N "(cached) $ECHO_C" >&6
19159fi
19160echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19161echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19162else
19163 # Is the header compilable?
19164echo "$as_me:$LINENO: checking $ac_header usability" >&5
19165echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19166cat >conftest.$ac_ext <<_ACEOF
19167/* confdefs.h. */
19168_ACEOF
19169cat confdefs.h >>conftest.$ac_ext
19170cat >>conftest.$ac_ext <<_ACEOF
19171/* end confdefs.h. */
19172$ac_includes_default
19173#include <$ac_header>
19174_ACEOF
19175rm -f conftest.$ac_objext
19176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019177 (eval $ac_compile) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019178 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019179 grep -v '^ *+' conftest.er1 >conftest.err
19180 rm -f conftest.er1
19181 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186 (eval $ac_try) 2>&5
19187 ac_status=$?
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; } &&
19190 { ac_try='test -s conftest.$ac_objext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19192 (eval $ac_try) 2>&5
19193 ac_status=$?
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); }; }; then
19196 ac_header_compiler=yes
19197else
19198 echo "$as_me: failed program was:" >&5
19199sed 's/^/| /' conftest.$ac_ext >&5
19200
19201ac_header_compiler=no
19202fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019204echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19205echo "${ECHO_T}$ac_header_compiler" >&6
19206
19207# Is the header present?
19208echo "$as_me:$LINENO: checking $ac_header presence" >&5
19209echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19210cat >conftest.$ac_ext <<_ACEOF
19211/* confdefs.h. */
19212_ACEOF
19213cat confdefs.h >>conftest.$ac_ext
19214cat >>conftest.$ac_ext <<_ACEOF
19215/* end confdefs.h. */
19216#include <$ac_header>
19217_ACEOF
19218if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19220 ac_status=$?
19221 grep -v '^ *+' conftest.er1 >conftest.err
19222 rm -f conftest.er1
19223 cat conftest.err >&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } >/dev/null; then
19226 if test -s conftest.err; then
19227 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019229 else
19230 ac_cpp_err=
19231 fi
19232else
19233 ac_cpp_err=yes
19234fi
19235if test -z "$ac_cpp_err"; then
19236 ac_header_preproc=yes
19237else
19238 echo "$as_me: failed program was:" >&5
19239sed 's/^/| /' conftest.$ac_ext >&5
19240
19241 ac_header_preproc=no
19242fi
19243rm -f conftest.err conftest.$ac_ext
19244echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19245echo "${ECHO_T}$ac_header_preproc" >&6
19246
19247# So? What about this header?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019248case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19249 yes:no: )
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19251echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19253echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19254 ac_header_preproc=yes
mostang.com!davidm046362a2003-12-05 06:42:28 +000019255 ;;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019256 no:yes:* )
mostang.com!davidm046362a2003-12-05 06:42:28 +000019257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19258echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19260echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19262echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19264echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +000019265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19266echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19268echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +000019269 (
19270 cat <<\_ASBOX
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019271## ----------------------------------------- ##
19272## Report this to libunwind@linux.hpl.hp.com ##
19273## ----------------------------------------- ##
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019274_ASBOX
19275 ) |
19276 sed "s/^/$as_me: WARNING: /" >&2
19277 ;;
19278esac
19279echo "$as_me:$LINENO: checking for $ac_header" >&5
19280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19281if eval "test \"\${$as_ac_Header+set}\" = set"; then
19282 echo $ECHO_N "(cached) $ECHO_C" >&6
19283else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019284 eval "$as_ac_Header=\$ac_header_preproc"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019285fi
19286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19287echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19288
19289fi
19290if test `eval echo '${'$as_ac_Header'}'` = yes; then
19291 cat >>confdefs.h <<_ACEOF
19292#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19293_ACEOF
19294
19295fi
19296
19297done
19298
19299
19300echo "$as_me:$LINENO: checking for main in -latomic_ops" >&5
19301echo $ECHO_N "checking for main in -latomic_ops... $ECHO_C" >&6
19302if test "${ac_cv_lib_atomic_ops_main+set}" = set; then
19303 echo $ECHO_N "(cached) $ECHO_C" >&6
19304else
19305 ac_check_lib_save_LIBS=$LIBS
19306LIBS="-latomic_ops $LIBS"
19307cat >conftest.$ac_ext <<_ACEOF
19308/* confdefs.h. */
19309_ACEOF
19310cat confdefs.h >>conftest.$ac_ext
19311cat >>conftest.$ac_ext <<_ACEOF
19312/* end confdefs.h. */
19313
19314
19315int
19316main ()
19317{
19318main ();
19319 ;
19320 return 0;
19321}
19322_ACEOF
19323rm -f conftest.$ac_objext conftest$ac_exeext
19324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019325 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019326 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019327 grep -v '^ *+' conftest.er1 >conftest.err
19328 rm -f conftest.er1
19329 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19335 ac_status=$?
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; } &&
19338 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19341 ac_status=$?
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19344 ac_cv_lib_atomic_ops_main=yes
19345else
19346 echo "$as_me: failed program was:" >&5
19347sed 's/^/| /' conftest.$ac_ext >&5
19348
19349ac_cv_lib_atomic_ops_main=no
19350fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019351rm -f conftest.err conftest.$ac_objext \
19352 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019353LIBS=$ac_check_lib_save_LIBS
19354fi
19355echo "$as_me:$LINENO: result: $ac_cv_lib_atomic_ops_main" >&5
19356echo "${ECHO_T}$ac_cv_lib_atomic_ops_main" >&6
19357if test $ac_cv_lib_atomic_ops_main = yes; then
19358 cat >>confdefs.h <<_ACEOF
19359#define HAVE_LIBATOMIC_OPS 1
19360_ACEOF
19361
19362 LIBS="-latomic_ops $LIBS"
19363
19364fi
19365
19366
19367
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019368echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19369echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19370if test "${ac_cv_header_stdc+set}" = set; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
19372else
19373 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019374/* confdefs.h. */
19375_ACEOF
19376cat confdefs.h >>conftest.$ac_ext
19377cat >>conftest.$ac_ext <<_ACEOF
19378/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019379#include <stdlib.h>
19380#include <stdarg.h>
19381#include <string.h>
19382#include <float.h>
19383
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019384int
19385main ()
19386{
19387
19388 ;
19389 return 0;
19390}
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019391_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019392rm -f conftest.$ac_objext
19393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019394 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019395 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019396 grep -v '^ *+' conftest.er1 >conftest.err
19397 rm -f conftest.er1
19398 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019400 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19403 (eval $ac_try) 2>&5
19404 ac_status=$?
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); }; } &&
19407 { ac_try='test -s conftest.$ac_objext'
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19409 (eval $ac_try) 2>&5
19410 ac_status=$?
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); }; }; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019413 ac_cv_header_stdc=yes
19414else
19415 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019416sed 's/^/| /' conftest.$ac_ext >&5
19417
19418ac_cv_header_stdc=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019419fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019421
19422if test $ac_cv_header_stdc = yes; then
19423 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19424 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019425/* confdefs.h. */
19426_ACEOF
19427cat confdefs.h >>conftest.$ac_ext
19428cat >>conftest.$ac_ext <<_ACEOF
19429/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019430#include <string.h>
19431
19432_ACEOF
19433if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19434 $EGREP "memchr" >/dev/null 2>&1; then
19435 :
19436else
19437 ac_cv_header_stdc=no
19438fi
19439rm -f conftest*
19440
19441fi
19442
19443if test $ac_cv_header_stdc = yes; then
19444 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19445 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019446/* confdefs.h. */
19447_ACEOF
19448cat confdefs.h >>conftest.$ac_ext
19449cat >>conftest.$ac_ext <<_ACEOF
19450/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019451#include <stdlib.h>
19452
19453_ACEOF
19454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19455 $EGREP "free" >/dev/null 2>&1; then
19456 :
19457else
19458 ac_cv_header_stdc=no
19459fi
19460rm -f conftest*
19461
19462fi
19463
19464if test $ac_cv_header_stdc = yes; then
19465 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19466 if test "$cross_compiling" = yes; then
19467 :
19468else
19469 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019470/* confdefs.h. */
19471_ACEOF
19472cat confdefs.h >>conftest.$ac_ext
19473cat >>conftest.$ac_ext <<_ACEOF
19474/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019475#include <ctype.h>
19476#if ((' ' & 0x0FF) == 0x020)
19477# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19478# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19479#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019480# define ISLOWER(c) \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019481 (('a' <= (c) && (c) <= 'i') \
19482 || ('j' <= (c) && (c) <= 'r') \
19483 || ('s' <= (c) && (c) <= 'z'))
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019484# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19485#endif
19486
19487#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19488int
19489main ()
19490{
19491 int i;
19492 for (i = 0; i < 256; i++)
19493 if (XOR (islower (i), ISLOWER (i))
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019494 || toupper (i) != TOUPPER (i))
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019495 exit(2);
19496 exit (0);
19497}
19498_ACEOF
19499rm -f conftest$ac_exeext
19500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19501 (eval $ac_link) 2>&5
19502 ac_status=$?
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506 (eval $ac_try) 2>&5
19507 ac_status=$?
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; }; then
19510 :
19511else
19512 echo "$as_me: program exited with status $ac_status" >&5
19513echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019514sed 's/^/| /' conftest.$ac_ext >&5
19515
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019516( exit $ac_status )
19517ac_cv_header_stdc=no
19518fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019519rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019520fi
19521fi
19522fi
19523echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19524echo "${ECHO_T}$ac_cv_header_stdc" >&6
19525if test $ac_cv_header_stdc = yes; then
19526
19527cat >>confdefs.h <<\_ACEOF
19528#define STDC_HEADERS 1
19529_ACEOF
19530
19531fi
19532
19533
mostang.com!davidm6af90d02003-02-15 08:53:55 +000019534
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019535
19536
19537
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019538
hp.com!davidm9bd061e2003-09-25 05:29:14 +000019539
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019540for ac_header in asm/ptrace_offsets.h endian.h execinfo.h ia64intrin.h \
hp.com!davidm9bd061e2003-09-25 05:29:14 +000019541 sys/uc_access.h unistd.h signal.h
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019542do
19543as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19544if eval "test \"\${$as_ac_Header+set}\" = set"; then
19545 echo "$as_me:$LINENO: checking for $ac_header" >&5
19546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19547if eval "test \"\${$as_ac_Header+set}\" = set"; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19549fi
19550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19551echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19552else
19553 # Is the header compilable?
19554echo "$as_me:$LINENO: checking $ac_header usability" >&5
19555echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19556cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019557/* confdefs.h. */
19558_ACEOF
19559cat confdefs.h >>conftest.$ac_ext
19560cat >>conftest.$ac_ext <<_ACEOF
19561/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019562$ac_includes_default
19563#include <$ac_header>
19564_ACEOF
19565rm -f conftest.$ac_objext
19566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019567 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019568 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019569 grep -v '^ *+' conftest.er1 >conftest.err
19570 rm -f conftest.er1
19571 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19577 ac_status=$?
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; } &&
19580 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19583 ac_status=$?
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; }; then
19586 ac_header_compiler=yes
19587else
19588 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019589sed 's/^/| /' conftest.$ac_ext >&5
19590
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019591ac_header_compiler=no
19592fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019594echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19595echo "${ECHO_T}$ac_header_compiler" >&6
19596
19597# Is the header present?
19598echo "$as_me:$LINENO: checking $ac_header presence" >&5
19599echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19600cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019601/* confdefs.h. */
19602_ACEOF
19603cat confdefs.h >>conftest.$ac_ext
19604cat >>conftest.$ac_ext <<_ACEOF
19605/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019606#include <$ac_header>
19607_ACEOF
19608if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19610 ac_status=$?
19611 grep -v '^ *+' conftest.er1 >conftest.err
19612 rm -f conftest.er1
19613 cat conftest.err >&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } >/dev/null; then
19616 if test -s conftest.err; then
19617 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019619 else
19620 ac_cpp_err=
19621 fi
19622else
19623 ac_cpp_err=yes
19624fi
19625if test -z "$ac_cpp_err"; then
19626 ac_header_preproc=yes
19627else
19628 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019629sed 's/^/| /' conftest.$ac_ext >&5
19630
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019631 ac_header_preproc=no
19632fi
19633rm -f conftest.err conftest.$ac_ext
19634echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19635echo "${ECHO_T}$ac_header_preproc" >&6
19636
19637# So? What about this header?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19639 yes:no: )
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19643echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19644 ac_header_preproc=yes
mostang.com!davidm046362a2003-12-05 06:42:28 +000019645 ;;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019646 no:yes:* )
mostang.com!davidm046362a2003-12-05 06:42:28 +000019647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19648echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19650echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19652echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19654echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +000019655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19658echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +000019659 (
19660 cat <<\_ASBOX
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019661## ----------------------------------------- ##
19662## Report this to libunwind@linux.hpl.hp.com ##
19663## ----------------------------------------- ##
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019664_ASBOX
19665 ) |
19666 sed "s/^/$as_me: WARNING: /" >&2
19667 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019668esac
19669echo "$as_me:$LINENO: checking for $ac_header" >&5
19670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19671if eval "test \"\${$as_ac_Header+set}\" = set"; then
19672 echo $ECHO_N "(cached) $ECHO_C" >&6
19673else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019674 eval "$as_ac_Header=\$ac_header_preproc"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019675fi
19676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19677echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19678
19679fi
19680if test `eval echo '${'$as_ac_Header'}'` = yes; then
19681 cat >>confdefs.h <<_ACEOF
19682#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19683_ACEOF
19684
19685fi
19686
19687done
19688
19689
19690echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19691echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19692if test "${ac_cv_c_const+set}" = set; then
19693 echo $ECHO_N "(cached) $ECHO_C" >&6
19694else
19695 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019696/* confdefs.h. */
19697_ACEOF
19698cat confdefs.h >>conftest.$ac_ext
19699cat >>conftest.$ac_ext <<_ACEOF
19700/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019701
19702int
19703main ()
19704{
19705/* FIXME: Include the comments suggested by Paul. */
19706#ifndef __cplusplus
19707 /* Ultrix mips cc rejects this. */
19708 typedef int charset[2];
19709 const charset x;
19710 /* SunOS 4.1.1 cc rejects this. */
19711 char const *const *ccp;
19712 char **p;
19713 /* NEC SVR4.0.2 mips cc rejects this. */
19714 struct point {int x, y;};
19715 static struct point const zero = {0,0};
19716 /* AIX XL C 1.02.0.0 rejects this.
19717 It does not let you subtract one const X* pointer from another in
19718 an arm of an if-expression whose if-part is not a constant
19719 expression */
19720 const char *g = "string";
19721 ccp = &g + (g ? g-g : 0);
19722 /* HPUX 7.0 cc rejects these. */
19723 ++ccp;
19724 p = (char**) ccp;
19725 ccp = (char const *const *) p;
19726 { /* SCO 3.2v4 cc rejects this. */
19727 char *t;
19728 char const *s = 0 ? (char *) 0 : (char const *) 0;
19729
19730 *t++ = 0;
19731 }
19732 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19733 int x[] = {25, 17};
19734 const int *foo = &x[0];
19735 ++foo;
19736 }
19737 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19738 typedef const int *iptr;
19739 iptr p = 0;
19740 ++p;
19741 }
19742 { /* AIX XL C 1.02.0.0 rejects this saying
19743 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19744 struct s { int j; const int *ap[3]; };
19745 struct s *b; b->j = 5;
19746 }
19747 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19748 const int foo = 10;
19749 }
19750#endif
19751
19752 ;
19753 return 0;
19754}
19755_ACEOF
19756rm -f conftest.$ac_objext
19757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019758 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019759 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019760 grep -v '^ *+' conftest.er1 >conftest.err
19761 rm -f conftest.er1
19762 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19767 (eval $ac_try) 2>&5
19768 ac_status=$?
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); }; } &&
19771 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773 (eval $ac_try) 2>&5
19774 ac_status=$?
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); }; }; then
19777 ac_cv_c_const=yes
19778else
19779 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019780sed 's/^/| /' conftest.$ac_ext >&5
19781
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019782ac_cv_c_const=no
19783fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019785fi
19786echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19787echo "${ECHO_T}$ac_cv_c_const" >&6
19788if test $ac_cv_c_const = no; then
19789
19790cat >>confdefs.h <<\_ACEOF
19791#define const
19792_ACEOF
19793
19794fi
19795
19796echo "$as_me:$LINENO: checking for inline" >&5
19797echo $ECHO_N "checking for inline... $ECHO_C" >&6
19798if test "${ac_cv_c_inline+set}" = set; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19800else
19801 ac_cv_c_inline=no
19802for ac_kw in inline __inline__ __inline; do
19803 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019804/* confdefs.h. */
19805_ACEOF
19806cat confdefs.h >>conftest.$ac_ext
19807cat >>conftest.$ac_ext <<_ACEOF
19808/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019809#ifndef __cplusplus
19810typedef int foo_t;
19811static $ac_kw foo_t static_foo () {return 0; }
19812$ac_kw foo_t foo () {return 0; }
19813#endif
19814
19815_ACEOF
19816rm -f conftest.$ac_objext
19817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019818 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019819 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019820 grep -v '^ *+' conftest.er1 >conftest.err
19821 rm -f conftest.er1
19822 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19828 ac_status=$?
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; } &&
19831 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19833 (eval $ac_try) 2>&5
19834 ac_status=$?
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); }; }; then
19837 ac_cv_c_inline=$ac_kw; break
19838else
19839 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019840sed 's/^/| /' conftest.$ac_ext >&5
19841
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019842fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019844done
19845
19846fi
19847echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19848echo "${ECHO_T}$ac_cv_c_inline" >&6
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019849
19850
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019851case $ac_cv_c_inline in
19852 inline | yes) ;;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019853 *)
19854 case $ac_cv_c_inline in
19855 no) ac_val=;;
19856 *) ac_val=$ac_cv_c_inline;;
19857 esac
19858 cat >>confdefs.h <<_ACEOF
19859#ifndef __cplusplus
19860#define inline $ac_val
19861#endif
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019862_ACEOF
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019863 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019864esac
19865
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019866echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19867echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
19868if test "${ac_cv_type_signal+set}" = set; then
19869 echo $ECHO_N "(cached) $ECHO_C" >&6
19870else
19871 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019872/* confdefs.h. */
19873_ACEOF
19874cat confdefs.h >>conftest.$ac_ext
19875cat >>conftest.$ac_ext <<_ACEOF
19876/* end confdefs.h. */
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019877#include <sys/types.h>
19878#include <signal.h>
19879#ifdef signal
19880# undef signal
19881#endif
19882#ifdef __cplusplus
19883extern "C" void (*signal (int, void (*)(int)))(int);
19884#else
19885void (*signal ()) ();
19886#endif
19887
19888int
19889main ()
19890{
19891int i;
19892 ;
19893 return 0;
19894}
19895_ACEOF
19896rm -f conftest.$ac_objext
19897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019898 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019899 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019900 grep -v '^ *+' conftest.er1 >conftest.err
19901 rm -f conftest.er1
19902 cat conftest.err >&5
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907 (eval $ac_try) 2>&5
19908 ac_status=$?
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; } &&
19911 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913 (eval $ac_try) 2>&5
19914 ac_status=$?
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; }; then
19917 ac_cv_type_signal=void
19918else
19919 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019920sed 's/^/| /' conftest.$ac_ext >&5
19921
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019922ac_cv_type_signal=int
19923fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019925fi
19926echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19927echo "${ECHO_T}$ac_cv_type_signal" >&6
19928
19929cat >>confdefs.h <<_ACEOF
19930#define RETSIGTYPE $ac_cv_type_signal
19931_ACEOF
19932
19933
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019934echo "$as_me:$LINENO: checking for size_t" >&5
19935echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19936if test "${ac_cv_type_size_t+set}" = set; then
19937 echo $ECHO_N "(cached) $ECHO_C" >&6
19938else
19939 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019940/* confdefs.h. */
19941_ACEOF
19942cat confdefs.h >>conftest.$ac_ext
19943cat >>conftest.$ac_ext <<_ACEOF
19944/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019945$ac_includes_default
19946int
19947main ()
19948{
19949if ((size_t *) 0)
19950 return 0;
19951if (sizeof (size_t))
19952 return 0;
19953 ;
19954 return 0;
19955}
19956_ACEOF
19957rm -f conftest.$ac_objext
19958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019959 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019960 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019961 grep -v '^ *+' conftest.er1 >conftest.err
19962 rm -f conftest.er1
19963 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968 (eval $ac_try) 2>&5
19969 ac_status=$?
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; } &&
19972 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19974 (eval $ac_try) 2>&5
19975 ac_status=$?
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); }; }; then
19978 ac_cv_type_size_t=yes
19979else
19980 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019981sed 's/^/| /' conftest.$ac_ext >&5
19982
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019983ac_cv_type_size_t=no
19984fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019986fi
19987echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19988echo "${ECHO_T}$ac_cv_type_size_t" >&6
19989if test $ac_cv_type_size_t = yes; then
19990 :
19991else
19992
19993cat >>confdefs.h <<_ACEOF
19994#define size_t unsigned
19995_ACEOF
19996
19997fi
19998
19999
hp.com!davidm9bd061e2003-09-25 05:29:14 +000020000CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
20001if test x$enable_debug = xyes; then
20002 CPPFLAGS="${CPPFLAGS} -DDEBUG"
20003else
20004 CPPFLAGS="${CPPFLAGS} -DNDEBUG"
20005fi
20006
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020007echo "$as_me:$LINENO: checking for struct dl_phdr_info.dlpi_subs" >&5
20008echo $ECHO_N "checking for struct dl_phdr_info.dlpi_subs... $ECHO_C" >&6
20009if test "${ac_cv_member_struct_dl_phdr_info_dlpi_subs+set}" = set; then
20010 echo $ECHO_N "(cached) $ECHO_C" >&6
20011else
20012 cat >conftest.$ac_ext <<_ACEOF
20013/* confdefs.h. */
20014_ACEOF
20015cat confdefs.h >>conftest.$ac_ext
20016cat >>conftest.$ac_ext <<_ACEOF
20017/* end confdefs.h. */
20018#include <link.h>
20019
20020int
20021main ()
20022{
20023static struct dl_phdr_info ac_aggr;
20024if (ac_aggr.dlpi_subs)
20025return 0;
20026 ;
20027 return 0;
20028}
20029_ACEOF
20030rm -f conftest.$ac_objext
20031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20032 (eval $ac_compile) 2>conftest.er1
20033 ac_status=$?
20034 grep -v '^ *+' conftest.er1 >conftest.err
20035 rm -f conftest.er1
20036 cat conftest.err >&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); } &&
20039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20042 ac_status=$?
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; } &&
20045 { ac_try='test -s conftest.$ac_objext'
20046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047 (eval $ac_try) 2>&5
20048 ac_status=$?
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; }; then
20051 ac_cv_member_struct_dl_phdr_info_dlpi_subs=yes
20052else
20053 echo "$as_me: failed program was:" >&5
20054sed 's/^/| /' conftest.$ac_ext >&5
20055
20056cat >conftest.$ac_ext <<_ACEOF
20057/* confdefs.h. */
20058_ACEOF
20059cat confdefs.h >>conftest.$ac_ext
20060cat >>conftest.$ac_ext <<_ACEOF
20061/* end confdefs.h. */
20062#include <link.h>
20063
20064int
20065main ()
20066{
20067static struct dl_phdr_info ac_aggr;
20068if (sizeof ac_aggr.dlpi_subs)
20069return 0;
20070 ;
20071 return 0;
20072}
20073_ACEOF
20074rm -f conftest.$ac_objext
20075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20076 (eval $ac_compile) 2>conftest.er1
20077 ac_status=$?
20078 grep -v '^ *+' conftest.er1 >conftest.err
20079 rm -f conftest.er1
20080 cat conftest.err >&5
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); } &&
20083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085 (eval $ac_try) 2>&5
20086 ac_status=$?
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; } &&
20089 { ac_try='test -s conftest.$ac_objext'
20090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20091 (eval $ac_try) 2>&5
20092 ac_status=$?
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); }; }; then
20095 ac_cv_member_struct_dl_phdr_info_dlpi_subs=yes
20096else
20097 echo "$as_me: failed program was:" >&5
20098sed 's/^/| /' conftest.$ac_ext >&5
20099
20100ac_cv_member_struct_dl_phdr_info_dlpi_subs=no
20101fi
20102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20103fi
20104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20105fi
20106echo "$as_me:$LINENO: result: $ac_cv_member_struct_dl_phdr_info_dlpi_subs" >&5
20107echo "${ECHO_T}$ac_cv_member_struct_dl_phdr_info_dlpi_subs" >&6
20108if test $ac_cv_member_struct_dl_phdr_info_dlpi_subs = yes; then
20109
20110cat >>confdefs.h <<_ACEOF
20111#define HAVE_STRUCT_DL_PHDR_INFO_DLPI_SUBS 1
20112_ACEOF
20113
20114
20115fi
20116
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020117echo "$as_me:$LINENO: checking for sighandler_t" >&5
20118echo $ECHO_N "checking for sighandler_t... $ECHO_C" >&6
20119if test "${ac_cv_type_sighandler_t+set}" = set; then
20120 echo $ECHO_N "(cached) $ECHO_C" >&6
20121else
20122 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020123/* confdefs.h. */
20124_ACEOF
20125cat confdefs.h >>conftest.$ac_ext
20126cat >>conftest.$ac_ext <<_ACEOF
20127/* end confdefs.h. */
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020128$ac_includes_default
hp.com!davidm9bd061e2003-09-25 05:29:14 +000020129#if HAVE_SIGNAL_H
20130# include <signal.h>
20131#endif
20132
20133
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020134int
20135main ()
20136{
20137if ((sighandler_t *) 0)
20138 return 0;
20139if (sizeof (sighandler_t))
20140 return 0;
20141 ;
20142 return 0;
20143}
20144_ACEOF
20145rm -f conftest.$ac_objext
20146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020147 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020148 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020149 grep -v '^ *+' conftest.er1 >conftest.err
20150 rm -f conftest.er1
20151 cat conftest.err >&5
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156 (eval $ac_try) 2>&5
20157 ac_status=$?
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }; } &&
20160 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162 (eval $ac_try) 2>&5
20163 ac_status=$?
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; }; then
20166 ac_cv_type_sighandler_t=yes
20167else
20168 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020169sed 's/^/| /' conftest.$ac_ext >&5
20170
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020171ac_cv_type_sighandler_t=no
20172fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020174fi
20175echo "$as_me:$LINENO: result: $ac_cv_type_sighandler_t" >&5
20176echo "${ECHO_T}$ac_cv_type_sighandler_t" >&6
mostang.com!davidm46149fd2003-03-31 18:16:54 +000020177if test $ac_cv_type_sighandler_t = yes; then
20178
20179cat >>confdefs.h <<_ACEOF
20180#define HAVE_SIGHANDLER_T 1
20181_ACEOF
20182
20183
20184fi
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020185
20186
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020187echo "$as_me:$LINENO: checking for working memcmp" >&5
20188echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20189if test "${ac_cv_func_memcmp_working+set}" = set; then
20190 echo $ECHO_N "(cached) $ECHO_C" >&6
20191else
20192 if test "$cross_compiling" = yes; then
20193 ac_cv_func_memcmp_working=no
20194else
20195 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020196/* confdefs.h. */
20197_ACEOF
20198cat confdefs.h >>conftest.$ac_ext
20199cat >>conftest.$ac_ext <<_ACEOF
20200/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020201$ac_includes_default
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020202int
20203main ()
20204{
20205
20206 /* Some versions of memcmp are not 8-bit clean. */
20207 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20208 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20209 exit (1);
20210
20211 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20212 or more and with at least one buffer not starting on a 4-byte boundary.
20213 William Lewis provided this test program. */
20214 {
20215 char foo[21];
20216 char bar[21];
20217 int i;
20218 for (i = 0; i < 4; i++)
20219 {
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020220 char *a = foo + i;
20221 char *b = bar + i;
20222 strcpy (a, "--------01111111");
20223 strcpy (b, "--------10000000");
20224 if (memcmp (a, b, 16) >= 0)
20225 exit (1);
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020226 }
20227 exit (0);
20228 }
20229
20230 ;
20231 return 0;
20232}
20233_ACEOF
20234rm -f conftest$ac_exeext
20235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20236 (eval $ac_link) 2>&5
20237 ac_status=$?
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20241 (eval $ac_try) 2>&5
20242 ac_status=$?
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); }; }; then
20245 ac_cv_func_memcmp_working=yes
20246else
20247 echo "$as_me: program exited with status $ac_status" >&5
20248echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020249sed 's/^/| /' conftest.$ac_ext >&5
20250
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020251( exit $ac_status )
20252ac_cv_func_memcmp_working=no
20253fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020254rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020255fi
20256fi
20257echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
20258echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020259test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
20260 "memcmp.$ac_objext" | \
20261 *" memcmp.$ac_objext" | \
20262 "memcmp.$ac_objext "* | \
20263 *" memcmp.$ac_objext "* ) ;;
20264 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
20265esac
20266
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020267
20268echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20269echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20270if test "${ac_cv_type_signal+set}" = set; then
20271 echo $ECHO_N "(cached) $ECHO_C" >&6
20272else
20273 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020274/* confdefs.h. */
20275_ACEOF
20276cat confdefs.h >>conftest.$ac_ext
20277cat >>conftest.$ac_ext <<_ACEOF
20278/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020279#include <sys/types.h>
20280#include <signal.h>
20281#ifdef signal
20282# undef signal
20283#endif
20284#ifdef __cplusplus
20285extern "C" void (*signal (int, void (*)(int)))(int);
20286#else
20287void (*signal ()) ();
20288#endif
20289
20290int
20291main ()
20292{
20293int i;
20294 ;
20295 return 0;
20296}
20297_ACEOF
20298rm -f conftest.$ac_objext
20299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020300 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020301 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020302 grep -v '^ *+' conftest.er1 >conftest.err
20303 rm -f conftest.er1
20304 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309 (eval $ac_try) 2>&5
20310 ac_status=$?
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; } &&
20313 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20315 (eval $ac_try) 2>&5
20316 ac_status=$?
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); }; }; then
20319 ac_cv_type_signal=void
20320else
20321 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020322sed 's/^/| /' conftest.$ac_ext >&5
20323
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020324ac_cv_type_signal=int
20325fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020327fi
20328echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20329echo "${ECHO_T}$ac_cv_type_signal" >&6
20330
20331cat >>confdefs.h <<_ACEOF
20332#define RETSIGTYPE $ac_cv_type_signal
20333_ACEOF
20334
20335
20336
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020337
20338
20339
20340for ac_func in dl_iterate_phdr dlmodinfo getunwind ttrace
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020341do
20342as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20343echo "$as_me:$LINENO: checking for $ac_func" >&5
20344echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20345if eval "test \"\${$as_ac_var+set}\" = set"; then
20346 echo $ECHO_N "(cached) $ECHO_C" >&6
20347else
20348 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020349/* confdefs.h. */
20350_ACEOF
20351cat confdefs.h >>conftest.$ac_ext
20352cat >>conftest.$ac_ext <<_ACEOF
20353/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020354/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20356#define $ac_func innocuous_$ac_func
20357
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020358/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020359 which can conflict with char $ac_func (); below.
20360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20361 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020362
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020363#ifdef __STDC__
20364# include <limits.h>
20365#else
20366# include <assert.h>
20367#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020368
20369#undef $ac_func
20370
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020371/* Override any gcc2 internal prototype to avoid an error. */
20372#ifdef __cplusplus
20373extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020374{
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020375#endif
20376/* We use char because int might match the return type of a gcc2
20377 builtin and then its argument prototype would still apply. */
20378char $ac_func ();
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020379/* The GNU C library defines this for functions which it implements
20380 to always fail with ENOSYS. Some functions are actually named
20381 something starting with __ and the normal name is an alias. */
20382#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20383choke me
20384#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020385char (*f) () = $ac_func;
20386#endif
20387#ifdef __cplusplus
20388}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020389#endif
20390
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020391int
20392main ()
20393{
20394return f != $ac_func;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020395 ;
20396 return 0;
20397}
20398_ACEOF
20399rm -f conftest.$ac_objext conftest$ac_exeext
20400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020401 (eval $ac_link) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020402 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020403 grep -v '^ *+' conftest.er1 >conftest.err
20404 rm -f conftest.er1
20405 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410 (eval $ac_try) 2>&5
20411 ac_status=$?
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; } &&
20414 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20416 (eval $ac_try) 2>&5
20417 ac_status=$?
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); }; }; then
20420 eval "$as_ac_var=yes"
20421else
20422 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020423sed 's/^/| /' conftest.$ac_ext >&5
20424
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020425eval "$as_ac_var=no"
20426fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020427rm -f conftest.err conftest.$ac_objext \
20428 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020429fi
20430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20431echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20432if test `eval echo '${'$as_ac_var'}'` = yes; then
20433 cat >>confdefs.h <<_ACEOF
20434#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20435_ACEOF
20436
20437fi
20438done
20439
20440
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020441get_arch() {
20442 case "$1" in
20443 i?86) echo x86;;
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000020444 hppa*) echo hppa;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020445 *) echo $1;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020446 esac
20447}
20448
20449build_arch=`get_arch $build_cpu`
20450target_arch=`get_arch $target_cpu`
20451
20452
20453
20454if test x$target_arch != x$build_arch; then
20455 REMOTE_ONLY_TRUE=
20456 REMOTE_ONLY_FALSE='#'
20457else
20458 REMOTE_ONLY_TRUE='#'
20459 REMOTE_ONLY_FALSE=
20460fi
20461
20462
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020463
mostang.com!davidmf26451a2003-01-16 03:10:11 +000020464if test x$target_arch = xia64; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020465 ARCH_IA64_TRUE=
20466 ARCH_IA64_FALSE='#'
20467else
20468 ARCH_IA64_TRUE='#'
20469 ARCH_IA64_FALSE=
20470fi
20471
20472
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020473
mostang.com!davidmf26451a2003-01-16 03:10:11 +000020474if test x$target_arch = xhppa; then
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000020475 ARCH_HPPA_TRUE=
20476 ARCH_HPPA_FALSE='#'
20477else
20478 ARCH_HPPA_TRUE='#'
20479 ARCH_HPPA_FALSE=
20480fi
20481
20482
20483
mostang.com!davidmf26451a2003-01-16 03:10:11 +000020484if test x$target_arch = xx86; then
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020485 ARCH_X86_TRUE=
20486 ARCH_X86_FALSE='#'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020487else
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020488 ARCH_X86_TRUE='#'
20489 ARCH_X86_FALSE=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020490fi
20491
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020492
mostang.com!davidma8db0b32003-02-08 10:10:59 +000020493
20494if expr x$target_os : xlinux >/dev/null; then
20495 OS_LINUX_TRUE=
20496 OS_LINUX_FALSE='#'
20497else
20498 OS_LINUX_TRUE='#'
20499 OS_LINUX_FALSE=
20500fi
20501
20502
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000020503
20504if expr x$target_os : xhpux >/dev/null; then
20505 OS_HPUX_TRUE=
20506 OS_HPUX_FALSE='#'
20507else
20508 OS_HPUX_TRUE='#'
20509 OS_HPUX_FALSE=
20510fi
20511
20512
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020513if test x$target_arch != x$build_arch; then
20514 CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020515fi
mostang.com!davidm51e4d342002-12-12 09:17:41 +000020516 ac_config_links="$ac_config_links include/libunwind.h:include/libunwind-$target_arch.h include/tdep.h:include/tdep-$target_arch.h"
20517
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020518
20519# Check whether --enable-debug or --disable-debug was given.
20520if test "${enable_debug+set}" = set; then
20521 enableval="$enable_debug"
20522 enable_debug=yes
20523fi;
20524
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020525if test "x$enable___thread" != xno; then
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +000020526 echo "$as_me:$LINENO: checking for __thread" >&5
20527echo $ECHO_N "checking for __thread... $ECHO_C" >&6
20528if test "${libc_cv_gcc___thread+set}" = set; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20530else
20531 cat > conftest.c <<\EOF
20532 __thread int a = 42;
20533EOF
20534 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
20535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20536 (eval $ac_try) 2>&5
20537 ac_status=$?
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); }; }; then
20540 libc_cv_gcc___thread=yes
20541 else
20542 libc_cv_gcc___thread=no
20543 fi
20544 rm -f conftest*
20545fi
20546echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
20547echo "${ECHO_T}$libc_cv_gcc___thread" >&6
20548 if test "$libc_cv_gcc___thread" = yes; then
mostang.com!davidm57f5fae2002-12-03 08:19:58 +000020549
20550cat >>confdefs.h <<\_ACEOF
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +000020551#define HAVE___THREAD 1
20552_ACEOF
20553
20554 fi
20555else
20556 libc_cv_gcc___thread=no
20557fi
20558
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020559if test x$GCC = xyes; then
mostang.com!davidma8db0b32003-02-08 10:10:59 +000020560 CFLAGS="${CFLAGS} -Wall -Wsign-compare"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020561fi
20562
mostang.com!davidm6af90d02003-02-15 08:53:55 +000020563CCASFLAGS="${CCASFLAGS} ${CPPFLAGS}"
20564
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020565arch="$target_arch"
20566ARCH=`echo $target_arch | tr a-z A-Z`
20567
20568
20569
mostang.com!davidmf648f6f2003-01-17 07:48:52 +000020570
20571 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile doc/Makefile doc/common.tex"
20572
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020573cat >confcache <<\_ACEOF
20574# This file is a shell script that caches the results of configure
20575# tests run on this system so they can be shared between configure
20576# scripts and configure runs, see configure's option --config-cache.
20577# It is not useful on other systems. If it contains results you don't
20578# want to keep, you may remove or edit it.
20579#
20580# config.status only pays attention to the cache file if you give it
20581# the --recheck option to rerun configure.
20582#
20583# `ac_cv_env_foo' variables (set or unset) will be overridden when
20584# loading this file, other *unset* `ac_cv_foo' will be assigned the
20585# following values.
20586
20587_ACEOF
20588
20589# The following way of writing the cache mishandles newlines in values,
20590# but we know of no workaround that is simple, portable, and efficient.
20591# So, don't put newlines in cache variables' values.
20592# Ultrix sh set writes to stderr and can't be redirected directly,
20593# and sets the high bit in the cache file unless we assign to the vars.
20594{
20595 (set) 2>&1 |
20596 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20597 *ac_space=\ *)
20598 # `set' does not quote correctly, so add quotes (double-quote
20599 # substitution turns \\\\ into \\, and sed turns \\ into \).
20600 sed -n \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020601 "s/'/'\\\\''/g;
20602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020603 ;;
20604 *)
20605 # `set' quotes correctly as required by POSIX, so do not add quotes.
20606 sed -n \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020607 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020608 ;;
20609 esac;
20610} |
20611 sed '
20612 t clear
20613 : clear
20614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20615 t end
20616 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20617 : end' >>confcache
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020618if diff $cache_file confcache >/dev/null 2>&1; then :; else
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020619 if test -w $cache_file; then
20620 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20621 cat confcache >$cache_file
20622 else
20623 echo "not updating unwritable cache $cache_file"
20624 fi
20625fi
20626rm -f confcache
20627
20628test "x$prefix" = xNONE && prefix=$ac_default_prefix
20629# Let make expand exec_prefix.
20630test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20631
20632# VPATH may cause trouble with some makes, so we remove $(srcdir),
20633# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20634# trailing colons and then remove the whole line if VPATH becomes empty
20635# (actually we leave an empty line to preserve line numbers).
20636if test "x$srcdir" = x.; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020637 ac_vpsub='/^[ ]*VPATH[ ]*=/{
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020638s/:*\$(srcdir):*/:/;
20639s/:*\${srcdir}:*/:/;
20640s/:*@srcdir@:*/:/;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020641s/^\([^=]*=[ ]*\):*/\1/;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020642s/:*$//;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020643s/^[^=]*=[ ]*$//;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020644}'
20645fi
20646
20647DEFS=-DHAVE_CONFIG_H
20648
20649ac_libobjs=
20650ac_ltlibobjs=
20651for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20652 # 1. Remove the extension, and $U if already installed.
20653 ac_i=`echo "$ac_i" |
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020654 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020655 # 2. Add them.
20656 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20657 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20658done
20659LIBOBJS=$ac_libobjs
20660
20661LTLIBOBJS=$ac_ltlibobjs
20662
20663
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020664if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20665 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20666Usually this means the macro was only invoked conditionally." >&5
20667echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20668Usually this means the macro was only invoked conditionally." >&2;}
20669 { (exit 1); exit 1; }; }
20670fi
20671if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20672 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20673Usually this means the macro was only invoked conditionally." >&5
20674echo "$as_me: error: conditional \"AMDEP\" was never defined.
20675Usually this means the macro was only invoked conditionally." >&2;}
20676 { (exit 1); exit 1; }; }
20677fi
20678if test -z "${REMOTE_ONLY_TRUE}" && test -z "${REMOTE_ONLY_FALSE}"; then
20679 { { echo "$as_me:$LINENO: error: conditional \"REMOTE_ONLY\" was never defined.
20680Usually this means the macro was only invoked conditionally." >&5
20681echo "$as_me: error: conditional \"REMOTE_ONLY\" was never defined.
20682Usually this means the macro was only invoked conditionally." >&2;}
20683 { (exit 1); exit 1; }; }
20684fi
20685if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
20686 { { echo "$as_me:$LINENO: error: conditional \"ARCH_IA64\" was never defined.
20687Usually this means the macro was only invoked conditionally." >&5
20688echo "$as_me: error: conditional \"ARCH_IA64\" was never defined.
20689Usually this means the macro was only invoked conditionally." >&2;}
20690 { (exit 1); exit 1; }; }
20691fi
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000020692if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
20693 { { echo "$as_me:$LINENO: error: conditional \"ARCH_HPPA\" was never defined.
20694Usually this means the macro was only invoked conditionally." >&5
20695echo "$as_me: error: conditional \"ARCH_HPPA\" was never defined.
20696Usually this means the macro was only invoked conditionally." >&2;}
20697 { (exit 1); exit 1; }; }
20698fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020699if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
20700 { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
20701Usually this means the macro was only invoked conditionally." >&5
20702echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
20703Usually this means the macro was only invoked conditionally." >&2;}
20704 { (exit 1); exit 1; }; }
20705fi
mostang.com!davidma8db0b32003-02-08 10:10:59 +000020706if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
20707 { { echo "$as_me:$LINENO: error: conditional \"OS_LINUX\" was never defined.
20708Usually this means the macro was only invoked conditionally." >&5
20709echo "$as_me: error: conditional \"OS_LINUX\" was never defined.
20710Usually this means the macro was only invoked conditionally." >&2;}
20711 { (exit 1); exit 1; }; }
20712fi
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000020713if test -z "${OS_HPUX_TRUE}" && test -z "${OS_HPUX_FALSE}"; then
20714 { { echo "$as_me:$LINENO: error: conditional \"OS_HPUX\" was never defined.
20715Usually this means the macro was only invoked conditionally." >&5
20716echo "$as_me: error: conditional \"OS_HPUX\" was never defined.
20717Usually this means the macro was only invoked conditionally." >&2;}
20718 { (exit 1); exit 1; }; }
20719fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020720
20721: ${CONFIG_STATUS=./config.status}
20722ac_clean_files_save=$ac_clean_files
20723ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20724{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20725echo "$as_me: creating $CONFIG_STATUS" >&6;}
20726cat >$CONFIG_STATUS <<_ACEOF
20727#! $SHELL
20728# Generated by $as_me.
20729# Run this file to recreate the current configuration.
20730# Compiler output produced by configure, useful for debugging
20731# configure, is in config.log if it exists.
20732
20733debug=false
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020734ac_cs_recheck=false
20735ac_cs_silent=false
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020736SHELL=\${CONFIG_SHELL-$SHELL}
20737_ACEOF
20738
20739cat >>$CONFIG_STATUS <<\_ACEOF
20740## --------------------- ##
20741## M4sh Initialization. ##
20742## --------------------- ##
20743
20744# Be Bourne compatible
20745if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20746 emulate sh
20747 NULLCMD=:
20748 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20749 # is contrary to our usage. Disable this feature.
20750 alias -g '${1+"$@"}'='"$@"'
20751elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20752 set -o posix
20753fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020754DUALCASE=1; export DUALCASE # for MKS sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020755
20756# Support unset when possible.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020757if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020758 as_unset=unset
20759else
20760 as_unset=false
20761fi
20762
20763
20764# Work around bugs in pre-3.0 UWIN ksh.
20765$as_unset ENV MAIL MAILPATH
20766PS1='$ '
20767PS2='> '
20768PS4='+ '
20769
20770# NLS nuisances.
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020771for as_var in \
20772 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20773 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20774 LC_TELEPHONE LC_TIME
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020775do
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020776 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020777 eval $as_var=C; export $as_var
20778 else
20779 $as_unset $as_var
20780 fi
20781done
20782
20783# Required to use basename.
20784if expr a : '\(a\)' >/dev/null 2>&1; then
20785 as_expr=expr
20786else
20787 as_expr=false
20788fi
20789
20790if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20791 as_basename=basename
20792else
20793 as_basename=false
20794fi
20795
20796
20797# Name of the executable.
20798as_me=`$as_basename "$0" ||
20799$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20800 X"$0" : 'X\(//\)$' \| \
20801 X"$0" : 'X\(/\)$' \| \
20802 . : '\(.\)' 2>/dev/null ||
20803echo X/"$0" |
20804 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20805 /^X\/\(\/\/\)$/{ s//\1/; q; }
20806 /^X\/\(\/\).*/{ s//\1/; q; }
20807 s/.*/./; q'`
20808
20809
20810# PATH needs CR, and LINENO needs CR and PATH.
20811# Avoid depending upon Character Ranges.
20812as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20813as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20814as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20815as_cr_digits='0123456789'
20816as_cr_alnum=$as_cr_Letters$as_cr_digits
20817
20818# The user is always right.
20819if test "${PATH_SEPARATOR+set}" != set; then
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020820 echo "#! /bin/sh" >conf$$.sh
20821 echo "exit 0" >>conf$$.sh
20822 chmod +x conf$$.sh
20823 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020824 PATH_SEPARATOR=';'
20825 else
20826 PATH_SEPARATOR=:
20827 fi
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020828 rm -f conf$$.sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020829fi
20830
20831
20832 as_lineno_1=$LINENO
20833 as_lineno_2=$LINENO
20834 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20835 test "x$as_lineno_1" != "x$as_lineno_2" &&
20836 test "x$as_lineno_3" = "x$as_lineno_2" || {
20837 # Find who we are. Look in the path if we contain no path at all
20838 # relative or not.
20839 case $0 in
20840 *[\\/]* ) as_myself=$0 ;;
20841 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20842for as_dir in $PATH
20843do
20844 IFS=$as_save_IFS
20845 test -z "$as_dir" && as_dir=.
20846 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20847done
20848
20849 ;;
20850 esac
20851 # We did not find ourselves, most probably we were run as `sh COMMAND'
20852 # in which case we are not to be found in the path.
20853 if test "x$as_myself" = x; then
20854 as_myself=$0
20855 fi
20856 if test ! -f "$as_myself"; then
20857 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20858echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20859 { (exit 1); exit 1; }; }
20860 fi
20861 case $CONFIG_SHELL in
20862 '')
20863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20864for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20865do
20866 IFS=$as_save_IFS
20867 test -z "$as_dir" && as_dir=.
20868 for as_base in sh bash ksh sh5; do
20869 case $as_dir in
20870 /*)
20871 if ("$as_dir/$as_base" -c '
20872 as_lineno_1=$LINENO
20873 as_lineno_2=$LINENO
20874 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20875 test "x$as_lineno_1" != "x$as_lineno_2" &&
20876 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20877 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20878 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20879 CONFIG_SHELL=$as_dir/$as_base
20880 export CONFIG_SHELL
20881 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20882 fi;;
20883 esac
20884 done
20885done
20886;;
20887 esac
20888
20889 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20890 # uniformly replaced by the line number. The first 'sed' inserts a
20891 # line-number line before each line; the second 'sed' does the real
20892 # work. The second script uses 'N' to pair each line-number line
20893 # with the numbered line, and appends trailing '-' during
20894 # substitution so that $LINENO is not a special case at line end.
20895 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20896 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20897 sed '=' <$as_myself |
20898 sed '
20899 N
20900 s,$,-,
20901 : loop
20902 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20903 t loop
20904 s,-$,,
20905 s,^['$as_cr_digits']*\n,,
20906 ' >$as_me.lineno &&
20907 chmod +x $as_me.lineno ||
20908 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20909echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20910 { (exit 1); exit 1; }; }
20911
20912 # Don't try to exec as it changes $[0], causing all sort of problems
20913 # (the dirname of $[0] is not the place where we might find the
20914 # original and so on. Autoconf is especially sensible to this).
20915 . ./$as_me.lineno
20916 # Exit status is that of the last command.
20917 exit
20918}
20919
20920
20921case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20922 *c*,-n*) ECHO_N= ECHO_C='
20923' ECHO_T=' ' ;;
20924 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20925 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20926esac
20927
20928if expr a : '\(a\)' >/dev/null 2>&1; then
20929 as_expr=expr
20930else
20931 as_expr=false
20932fi
20933
20934rm -f conf$$ conf$$.exe conf$$.file
20935echo >conf$$.file
20936if ln -s conf$$.file conf$$ 2>/dev/null; then
20937 # We could just check for DJGPP; but this test a) works b) is more generic
20938 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20939 if test -f conf$$.exe; then
20940 # Don't use ln at all; we don't have any links
20941 as_ln_s='cp -p'
20942 else
20943 as_ln_s='ln -s'
20944 fi
20945elif ln conf$$.file conf$$ 2>/dev/null; then
20946 as_ln_s=ln
20947else
20948 as_ln_s='cp -p'
20949fi
20950rm -f conf$$ conf$$.exe conf$$.file
20951
20952if mkdir -p . 2>/dev/null; then
20953 as_mkdir_p=:
20954else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020955 test -d ./-p && rmdir ./-p
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020956 as_mkdir_p=false
20957fi
20958
20959as_executable_p="test -f"
20960
20961# Sed expression to map a string onto a valid CPP name.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020962as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020963
20964# Sed expression to map a string onto a valid variable name.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020965as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020966
20967
20968# IFS
20969# We need space, tab and new line, in precisely that order.
20970as_nl='
20971'
20972IFS=" $as_nl"
20973
20974# CDPATH.
20975$as_unset CDPATH
20976
20977exec 6>&1
20978
20979# Open the log real soon, to keep \$[0] and so on meaningful, and to
20980# report actual input values of CONFIG_FILES etc. instead of their
20981# values after options handling. Logging --version etc. is OK.
20982exec 5>>config.log
20983{
20984 echo
20985 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20986## Running $as_me. ##
20987_ASBOX
20988} >&5
20989cat >&5 <<_CSEOF
20990
mostang.com!davidm046362a2003-12-05 06:42:28 +000020991This file was extended by libunwind $as_me 0.96, which was
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020992generated by GNU Autoconf 2.59. Invocation command line was
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020993
20994 CONFIG_FILES = $CONFIG_FILES
20995 CONFIG_HEADERS = $CONFIG_HEADERS
20996 CONFIG_LINKS = $CONFIG_LINKS
20997 CONFIG_COMMANDS = $CONFIG_COMMANDS
20998 $ $0 $@
20999
21000_CSEOF
21001echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21002echo >&5
21003_ACEOF
21004
21005# Files that config.status was made for.
21006if test -n "$ac_config_files"; then
21007 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21008fi
21009
21010if test -n "$ac_config_headers"; then
21011 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21012fi
21013
21014if test -n "$ac_config_links"; then
21015 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21016fi
21017
21018if test -n "$ac_config_commands"; then
21019 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21020fi
21021
21022cat >>$CONFIG_STATUS <<\_ACEOF
21023
21024ac_cs_usage="\
21025\`$as_me' instantiates files from templates according to the
21026current configuration.
21027
21028Usage: $0 [OPTIONS] [FILE]...
21029
21030 -h, --help print this help, then exit
21031 -V, --version print version number, then exit
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021032 -q, --quiet do not print progress messages
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021033 -d, --debug don't remove temporary files
21034 --recheck update $as_me by reconfiguring in the same conditions
21035 --file=FILE[:TEMPLATE]
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021036 instantiate the configuration file FILE
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021037 --header=FILE[:TEMPLATE]
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021038 instantiate the configuration header FILE
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021039
21040Configuration files:
21041$config_files
21042
21043Configuration headers:
21044$config_headers
21045
21046Configuration links:
21047$config_links
21048
21049Configuration commands:
21050$config_commands
21051
21052Report bugs to <bug-autoconf@gnu.org>."
21053_ACEOF
21054
21055cat >>$CONFIG_STATUS <<_ACEOF
21056ac_cs_version="\\
mostang.com!davidm046362a2003-12-05 06:42:28 +000021057libunwind config.status 0.96
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021058configured by $0, generated by GNU Autoconf 2.59,
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021059 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21060
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021061Copyright (C) 2003 Free Software Foundation, Inc.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021062This config.status script is free software; the Free Software Foundation
21063gives unlimited permission to copy, distribute and modify it."
21064srcdir=$srcdir
21065INSTALL="$INSTALL"
21066_ACEOF
21067
21068cat >>$CONFIG_STATUS <<\_ACEOF
21069# If no file are specified by the user, then we need to provide default
21070# value. By we need to know if files were specified by the user.
21071ac_need_defaults=:
21072while test $# != 0
21073do
21074 case $1 in
21075 --*=*)
21076 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21077 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21078 ac_shift=:
21079 ;;
21080 -*)
21081 ac_option=$1
21082 ac_optarg=$2
21083 ac_shift=shift
21084 ;;
21085 *) # This is not an option, so the user has probably given explicit
21086 # arguments.
21087 ac_option=$1
21088 ac_need_defaults=false;;
21089 esac
21090
21091 case $ac_option in
21092 # Handling of the options.
21093_ACEOF
mostang.com!davidma8db0b32003-02-08 10:10:59 +000021094cat >>$CONFIG_STATUS <<\_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021095 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21096 ac_cs_recheck=: ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021097 --version | --vers* | -V )
21098 echo "$ac_cs_version"; exit 0 ;;
21099 --he | --h)
21100 # Conflict between --help and --header
21101 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21102Try \`$0 --help' for more information." >&5
21103echo "$as_me: error: ambiguous option: $1
21104Try \`$0 --help' for more information." >&2;}
21105 { (exit 1); exit 1; }; };;
21106 --help | --hel | -h )
21107 echo "$ac_cs_usage"; exit 0 ;;
21108 --debug | --d* | -d )
21109 debug=: ;;
21110 --file | --fil | --fi | --f )
21111 $ac_shift
21112 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21113 ac_need_defaults=false;;
21114 --header | --heade | --head | --hea )
21115 $ac_shift
21116 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21117 ac_need_defaults=false;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21119 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21120 ac_cs_silent=: ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021121
21122 # This is an error.
21123 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21124Try \`$0 --help' for more information." >&5
21125echo "$as_me: error: unrecognized option: $1
21126Try \`$0 --help' for more information." >&2;}
21127 { (exit 1); exit 1; }; } ;;
21128
21129 *) ac_config_targets="$ac_config_targets $1" ;;
21130
21131 esac
21132 shift
21133done
21134
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021135ac_configure_extra_args=
21136
21137if $ac_cs_silent; then
21138 exec 6>/dev/null
21139 ac_configure_extra_args="$ac_configure_extra_args --silent"
21140fi
21141
21142_ACEOF
21143cat >>$CONFIG_STATUS <<_ACEOF
21144if \$ac_cs_recheck; then
21145 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21146 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21147fi
21148
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021149_ACEOF
21150
21151cat >>$CONFIG_STATUS <<_ACEOF
21152#
21153# INIT-COMMANDS section.
21154#
21155
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021156AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021157
21158_ACEOF
21159
21160
21161
21162cat >>$CONFIG_STATUS <<\_ACEOF
21163for ac_config_target in $ac_config_targets
21164do
21165 case "$ac_config_target" in
21166 # Handling of arguments.
21167 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21168 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21169 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21170 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
mostang.com!davidmf648f6f2003-01-17 07:48:52 +000021171 "doc/common.tex" ) CONFIG_FILES="$CONFIG_FILES doc/common.tex" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021172 "include/libunwind.h" ) CONFIG_LINKS="$CONFIG_LINKS include/libunwind.h:include/libunwind-$target_arch.h" ;;
mostang.com!davidm51e4d342002-12-12 09:17:41 +000021173 "include/tdep.h" ) CONFIG_LINKS="$CONFIG_LINKS include/tdep.h:include/tdep-$target_arch.h" ;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021174 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021175 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21176 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21177echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21178 { (exit 1); exit 1; }; };;
21179 esac
21180done
21181
21182# If the user did not use the arguments to specify the items to instantiate,
21183# then the envvar interface is used. Set only those that are not.
21184# We use the long form for the default assignment because of an extremely
21185# bizarre bug on SunOS 4.1.3.
21186if $ac_need_defaults; then
21187 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21188 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21189 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
21190 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21191fi
21192
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021193# Have a temporary directory for convenience. Make it in the build tree
21194# simply because there is no reason to put it here, and in addition,
21195# creating and moving files from /tmp can sometimes cause problems.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021196# Create a temporary directory, and hook for its removal unless debugging.
21197$debug ||
21198{
21199 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21200 trap '{ (exit 1); exit 1; }' 1 2 13 15
21201}
21202
21203# Create a (secure) tmp directory for tmp files.
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021204
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021205{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021206 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021207 test -n "$tmp" && test -d "$tmp"
21208} ||
21209{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021210 tmp=./confstat$$-$RANDOM
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021211 (umask 077 && mkdir $tmp)
21212} ||
21213{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021214 echo "$me: cannot create a temporary directory in ." >&2
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021215 { (exit 1); exit 1; }
21216}
21217
21218_ACEOF
21219
21220cat >>$CONFIG_STATUS <<_ACEOF
21221
21222#
21223# CONFIG_FILES section.
21224#
21225
21226# No need to generate the scripts if there are no CONFIG_FILES.
21227# This happens for instance when ./config.status config.h
21228if test -n "\$CONFIG_FILES"; then
21229 # Protect against being on the right side of a sed subst in config.status.
21230 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21231 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21232s,@SHELL@,$SHELL,;t t
21233s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21234s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21235s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21236s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21237s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21238s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21239s,@exec_prefix@,$exec_prefix,;t t
21240s,@prefix@,$prefix,;t t
21241s,@program_transform_name@,$program_transform_name,;t t
21242s,@bindir@,$bindir,;t t
21243s,@sbindir@,$sbindir,;t t
21244s,@libexecdir@,$libexecdir,;t t
21245s,@datadir@,$datadir,;t t
21246s,@sysconfdir@,$sysconfdir,;t t
21247s,@sharedstatedir@,$sharedstatedir,;t t
21248s,@localstatedir@,$localstatedir,;t t
21249s,@libdir@,$libdir,;t t
21250s,@includedir@,$includedir,;t t
21251s,@oldincludedir@,$oldincludedir,;t t
21252s,@infodir@,$infodir,;t t
21253s,@mandir@,$mandir,;t t
21254s,@build_alias@,$build_alias,;t t
21255s,@host_alias@,$host_alias,;t t
21256s,@target_alias@,$target_alias,;t t
21257s,@DEFS@,$DEFS,;t t
21258s,@ECHO_C@,$ECHO_C,;t t
21259s,@ECHO_N@,$ECHO_N,;t t
21260s,@ECHO_T@,$ECHO_T,;t t
21261s,@LIBS@,$LIBS,;t t
21262s,@build@,$build,;t t
21263s,@build_cpu@,$build_cpu,;t t
21264s,@build_vendor@,$build_vendor,;t t
21265s,@build_os@,$build_os,;t t
21266s,@host@,$host,;t t
21267s,@host_cpu@,$host_cpu,;t t
21268s,@host_vendor@,$host_vendor,;t t
21269s,@host_os@,$host_os,;t t
21270s,@target@,$target,;t t
21271s,@target_cpu@,$target_cpu,;t t
21272s,@target_vendor@,$target_vendor,;t t
21273s,@target_os@,$target_os,;t t
21274s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21275s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21276s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21277s,@PACKAGE@,$PACKAGE,;t t
21278s,@VERSION@,$VERSION,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021279s,@ACLOCAL@,$ACLOCAL,;t t
21280s,@AUTOCONF@,$AUTOCONF,;t t
21281s,@AUTOMAKE@,$AUTOMAKE,;t t
21282s,@AUTOHEADER@,$AUTOHEADER,;t t
21283s,@MAKEINFO@,$MAKEINFO,;t t
21284s,@AMTAR@,$AMTAR,;t t
21285s,@install_sh@,$install_sh,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021286s,@STRIP@,$STRIP,;t t
21287s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021288s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21289s,@AWK@,$AWK,;t t
21290s,@SET_MAKE@,$SET_MAKE,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021291s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21292s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21293s,@MAINT@,$MAINT,;t t
21294s,@CC@,$CC,;t t
21295s,@CFLAGS@,$CFLAGS,;t t
21296s,@LDFLAGS@,$LDFLAGS,;t t
21297s,@CPPFLAGS@,$CPPFLAGS,;t t
21298s,@ac_ct_CC@,$ac_ct_CC,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021299s,@EXEEXT@,$EXEEXT,;t t
21300s,@OBJEXT@,$OBJEXT,;t t
21301s,@DEPDIR@,$DEPDIR,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021302s,@am__include@,$am__include,;t t
21303s,@am__quote@,$am__quote,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021304s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21305s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21306s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021307s,@CCDEPMODE@,$CCDEPMODE,;t t
mostang.com!davidm4f17bce2003-03-28 07:43:22 +000021308s,@CXX@,$CXX,;t t
21309s,@CXXFLAGS@,$CXXFLAGS,;t t
21310s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21311s,@CXXDEPMODE@,$CXXDEPMODE,;t t
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021312s,@EGREP@,$EGREP,;t t
mostang.com!davidmf26451a2003-01-16 03:10:11 +000021313s,@LN_S@,$LN_S,;t t
21314s,@ECHO@,$ECHO,;t t
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021315s,@AR@,$AR,;t t
21316s,@ac_ct_AR@,$ac_ct_AR,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021317s,@RANLIB@,$RANLIB,;t t
21318s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021319s,@CPP@,$CPP,;t t
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021320s,@CXXCPP@,$CXXCPP,;t t
21321s,@F77@,$F77,;t t
21322s,@FFLAGS@,$FFLAGS,;t t
21323s,@ac_ct_F77@,$ac_ct_F77,;t t
mostang.com!davidmf26451a2003-01-16 03:10:11 +000021324s,@LIBTOOL@,$LIBTOOL,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021325s,@CCAS@,$CCAS,;t t
21326s,@CCASFLAGS@,$CCASFLAGS,;t t
mostang.com!davidm6af90d02003-02-15 08:53:55 +000021327s,@LIBOBJS@,$LIBOBJS,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021328s,@REMOTE_ONLY_TRUE@,$REMOTE_ONLY_TRUE,;t t
21329s,@REMOTE_ONLY_FALSE@,$REMOTE_ONLY_FALSE,;t t
21330s,@ARCH_IA64_TRUE@,$ARCH_IA64_TRUE,;t t
21331s,@ARCH_IA64_FALSE@,$ARCH_IA64_FALSE,;t t
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000021332s,@ARCH_HPPA_TRUE@,$ARCH_HPPA_TRUE,;t t
21333s,@ARCH_HPPA_FALSE@,$ARCH_HPPA_FALSE,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021334s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t
21335s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t
mostang.com!davidma8db0b32003-02-08 10:10:59 +000021336s,@OS_LINUX_TRUE@,$OS_LINUX_TRUE,;t t
21337s,@OS_LINUX_FALSE@,$OS_LINUX_FALSE,;t t
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000021338s,@OS_HPUX_TRUE@,$OS_HPUX_TRUE,;t t
21339s,@OS_HPUX_FALSE@,$OS_HPUX_FALSE,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021340s,@arch@,$arch,;t t
21341s,@ARCH@,$ARCH,;t t
21342s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21343CEOF
21344
21345_ACEOF
21346
21347 cat >>$CONFIG_STATUS <<\_ACEOF
21348 # Split the substitutions into bite-sized pieces for seds with
21349 # small command number limits, like on Digital OSF/1 and HP-UX.
21350 ac_max_sed_lines=48
21351 ac_sed_frag=1 # Number of current file.
21352 ac_beg=1 # First line for current file.
21353 ac_end=$ac_max_sed_lines # Line after last line for current file.
21354 ac_more_lines=:
21355 ac_sed_cmds=
21356 while $ac_more_lines; do
21357 if test $ac_beg -gt 1; then
21358 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21359 else
21360 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21361 fi
21362 if test ! -s $tmp/subs.frag; then
21363 ac_more_lines=false
21364 else
21365 # The purpose of the label and of the branching condition is to
21366 # speed up the sed processing (if there are no `@' at all, there
21367 # is no need to browse any of the substitutions).
21368 # These are the two extra sed commands mentioned above.
21369 (echo ':t
21370 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21371 if test -z "$ac_sed_cmds"; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021372 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021373 else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021374 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021375 fi
21376 ac_sed_frag=`expr $ac_sed_frag + 1`
21377 ac_beg=$ac_end
21378 ac_end=`expr $ac_end + $ac_max_sed_lines`
21379 fi
21380 done
21381 if test -z "$ac_sed_cmds"; then
21382 ac_sed_cmds=cat
21383 fi
21384fi # test -n "$CONFIG_FILES"
21385
21386_ACEOF
21387cat >>$CONFIG_STATUS <<\_ACEOF
21388for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21389 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21390 case $ac_file in
21391 - | *:- | *:-:* ) # input from stdin
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021392 cat >$tmp/stdin
21393 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21394 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021395 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021396 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021397 * ) ac_file_in=$ac_file.in ;;
21398 esac
21399
21400 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21401 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21402$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021403 X"$ac_file" : 'X\(//\)[^/]' \| \
21404 X"$ac_file" : 'X\(//\)$' \| \
21405 X"$ac_file" : 'X\(/\)' \| \
21406 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021407echo X"$ac_file" |
21408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21409 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21410 /^X\(\/\/\)$/{ s//\1/; q; }
21411 /^X\(\/\).*/{ s//\1/; q; }
21412 s/.*/./; q'`
21413 { if $as_mkdir_p; then
21414 mkdir -p "$ac_dir"
21415 else
21416 as_dir="$ac_dir"
21417 as_dirs=
21418 while test ! -d "$as_dir"; do
21419 as_dirs="$as_dir $as_dirs"
21420 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21421$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021422 X"$as_dir" : 'X\(//\)[^/]' \| \
21423 X"$as_dir" : 'X\(//\)$' \| \
21424 X"$as_dir" : 'X\(/\)' \| \
21425 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021426echo X"$as_dir" |
21427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21428 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21429 /^X\(\/\/\)$/{ s//\1/; q; }
21430 /^X\(\/\).*/{ s//\1/; q; }
21431 s/.*/./; q'`
21432 done
21433 test ! -n "$as_dirs" || mkdir $as_dirs
21434 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21435echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21436 { (exit 1); exit 1; }; }; }
21437
21438 ac_builddir=.
21439
21440if test "$ac_dir" != .; then
21441 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21442 # A "../" for each directory in $ac_dir_suffix.
21443 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21444else
21445 ac_dir_suffix= ac_top_builddir=
21446fi
21447
21448case $srcdir in
21449 .) # No --srcdir option. We are building in place.
21450 ac_srcdir=.
21451 if test -z "$ac_top_builddir"; then
21452 ac_top_srcdir=.
21453 else
21454 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21455 fi ;;
21456 [\\/]* | ?:[\\/]* ) # Absolute path.
21457 ac_srcdir=$srcdir$ac_dir_suffix;
21458 ac_top_srcdir=$srcdir ;;
21459 *) # Relative path.
21460 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21461 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21462esac
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021463
21464# Do not use `cd foo && pwd` to compute absolute paths, because
21465# the directories may not exist.
21466case `pwd` in
21467.) ac_abs_builddir="$ac_dir";;
21468*)
21469 case "$ac_dir" in
21470 .) ac_abs_builddir=`pwd`;;
21471 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21472 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21473 esac;;
21474esac
21475case $ac_abs_builddir in
21476.) ac_abs_top_builddir=${ac_top_builddir}.;;
21477*)
21478 case ${ac_top_builddir}. in
21479 .) ac_abs_top_builddir=$ac_abs_builddir;;
21480 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21481 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21482 esac;;
21483esac
21484case $ac_abs_builddir in
21485.) ac_abs_srcdir=$ac_srcdir;;
21486*)
21487 case $ac_srcdir in
21488 .) ac_abs_srcdir=$ac_abs_builddir;;
21489 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21490 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21491 esac;;
21492esac
21493case $ac_abs_builddir in
21494.) ac_abs_top_srcdir=$ac_top_srcdir;;
21495*)
21496 case $ac_top_srcdir in
21497 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21498 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21499 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21500 esac;;
21501esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021502
21503
21504 case $INSTALL in
21505 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21506 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21507 esac
21508
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021509 # Let's still pretend it is `configure' which instantiates (i.e., don't
21510 # use $as_me), people would be surprised to read:
21511 # /* config.h. Generated by config.status. */
21512 if test x"$ac_file" = x-; then
21513 configure_input=
21514 else
21515 configure_input="$ac_file. "
21516 fi
21517 configure_input=$configure_input"Generated from `echo $ac_file_in |
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021518 sed 's,.*/,,'` by configure."
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021519
21520 # First look for the input files in the build tree, otherwise in the
21521 # src tree.
21522 ac_file_inputs=`IFS=:
21523 for f in $ac_file_in; do
21524 case $f in
21525 -) echo $tmp/stdin ;;
21526 [\\/$]*)
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021527 # Absolute (can't be DOS-style, as IFS=:)
21528 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021529echo "$as_me: error: cannot find input file: $f" >&2;}
21530 { (exit 1); exit 1; }; }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021531 echo "$f";;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021532 *) # Relative
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021533 if test -f "$f"; then
21534 # Build tree
21535 echo "$f"
21536 elif test -f "$srcdir/$f"; then
21537 # Source tree
21538 echo "$srcdir/$f"
21539 else
21540 # /dev/null tree
21541 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021542echo "$as_me: error: cannot find input file: $f" >&2;}
21543 { (exit 1); exit 1; }; }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021544 fi;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021545 esac
21546 done` || { (exit 1); exit 1; }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021547
21548 if test x"$ac_file" != x-; then
21549 { echo "$as_me:$LINENO: creating $ac_file" >&5
21550echo "$as_me: creating $ac_file" >&6;}
21551 rm -f "$ac_file"
21552 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021553_ACEOF
21554cat >>$CONFIG_STATUS <<_ACEOF
21555 sed "$ac_vpsub
21556$extrasub
21557_ACEOF
21558cat >>$CONFIG_STATUS <<\_ACEOF
21559:t
21560/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21561s,@configure_input@,$configure_input,;t t
21562s,@srcdir@,$ac_srcdir,;t t
21563s,@abs_srcdir@,$ac_abs_srcdir,;t t
21564s,@top_srcdir@,$ac_top_srcdir,;t t
21565s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21566s,@builddir@,$ac_builddir,;t t
21567s,@abs_builddir@,$ac_abs_builddir,;t t
21568s,@top_builddir@,$ac_top_builddir,;t t
21569s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21570s,@INSTALL@,$ac_INSTALL,;t t
21571" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21572 rm -f $tmp/stdin
21573 if test x"$ac_file" != x-; then
21574 mv $tmp/out $ac_file
21575 else
21576 cat $tmp/out
21577 rm -f $tmp/out
21578 fi
21579
21580done
21581_ACEOF
21582cat >>$CONFIG_STATUS <<\_ACEOF
21583
21584#
21585# CONFIG_HEADER section.
21586#
21587
21588# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21589# NAME is the cpp macro being defined and VALUE is the value it is being given.
21590#
21591# ac_d sets the value in "#define NAME VALUE" lines.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021592ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21593ac_dB='[ ].*$,\1#\2'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021594ac_dC=' '
21595ac_dD=',;t'
21596# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021597ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021598ac_uB='$,\1#\2define\3'
21599ac_uC=' '
21600ac_uD=',;t'
21601
21602for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21603 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21604 case $ac_file in
21605 - | *:- | *:-:* ) # input from stdin
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021606 cat >$tmp/stdin
21607 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21608 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021609 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021610 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021611 * ) ac_file_in=$ac_file.in ;;
21612 esac
21613
21614 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21615echo "$as_me: creating $ac_file" >&6;}
21616
21617 # First look for the input files in the build tree, otherwise in the
21618 # src tree.
21619 ac_file_inputs=`IFS=:
21620 for f in $ac_file_in; do
21621 case $f in
21622 -) echo $tmp/stdin ;;
21623 [\\/$]*)
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021624 # Absolute (can't be DOS-style, as IFS=:)
21625 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021626echo "$as_me: error: cannot find input file: $f" >&2;}
21627 { (exit 1); exit 1; }; }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021628 # Do quote $f, to prevent DOS paths from being IFS'd.
21629 echo "$f";;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021630 *) # Relative
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021631 if test -f "$f"; then
21632 # Build tree
21633 echo "$f"
21634 elif test -f "$srcdir/$f"; then
21635 # Source tree
21636 echo "$srcdir/$f"
21637 else
21638 # /dev/null tree
21639 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021640echo "$as_me: error: cannot find input file: $f" >&2;}
21641 { (exit 1); exit 1; }; }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021642 fi;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021643 esac
21644 done` || { (exit 1); exit 1; }
21645 # Remove the trailing spaces.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021646 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021647
21648_ACEOF
21649
21650# Transform confdefs.h into two sed scripts, `conftest.defines' and
21651# `conftest.undefs', that substitutes the proper values into
21652# config.h.in to produce config.h. The first handles `#define'
21653# templates, and the second `#undef' templates.
21654# And first: Protect against being on the right side of a sed subst in
21655# config.status. Protect against being in an unquoted here document
21656# in config.status.
21657rm -f conftest.defines conftest.undefs
21658# Using a here document instead of a string reduces the quoting nightmare.
21659# Putting comments in sed scripts is not portable.
21660#
21661# `end' is used to avoid that the second main sed command (meant for
21662# 0-ary CPP macros) applies to n-ary macro definitions.
21663# See the Autoconf documentation for `clear'.
21664cat >confdef2sed.sed <<\_ACEOF
21665s/[\\&,]/\\&/g
21666s,[\\$`],\\&,g
21667t clear
21668: clear
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021669s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021670t end
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021671s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021672: end
21673_ACEOF
21674# If some macros were called several times there might be several times
21675# the same #defines, which is useless. Nevertheless, we may not want to
21676# sort them, since we want the *last* AC-DEFINE to be honored.
21677uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21678sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21679rm -f confdef2sed.sed
21680
21681# This sed command replaces #undef with comments. This is necessary, for
21682# example, in the case of _POSIX_SOURCE, which is predefined and required
21683# on some systems where configure will not decide to define it.
21684cat >>conftest.undefs <<\_ACEOF
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021685s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021686_ACEOF
21687
21688# Break up conftest.defines because some shells have a limit on the size
21689# of here documents, and old seds have small limits too (100 cmds).
21690echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021691echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021692echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21693echo ' :' >>$CONFIG_STATUS
21694rm -f conftest.tail
21695while grep . conftest.defines >/dev/null
21696do
21697 # Write a limited-size here document to $tmp/defines.sed.
21698 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21699 # Speed up: don't consider the non `#define' lines.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021700 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021701 # Work around the forget-to-reset-the-flag bug.
21702 echo 't clr' >>$CONFIG_STATUS
21703 echo ': clr' >>$CONFIG_STATUS
21704 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21705 echo 'CEOF
21706 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21707 rm -f $tmp/in
21708 mv $tmp/out $tmp/in
21709' >>$CONFIG_STATUS
21710 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21711 rm -f conftest.defines
21712 mv conftest.tail conftest.defines
21713done
21714rm -f conftest.defines
21715echo ' fi # grep' >>$CONFIG_STATUS
21716echo >>$CONFIG_STATUS
21717
21718# Break up conftest.undefs because some shells have a limit on the size
21719# of here documents, and old seds have small limits too (100 cmds).
21720echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21721rm -f conftest.tail
21722while grep . conftest.undefs >/dev/null
21723do
21724 # Write a limited-size here document to $tmp/undefs.sed.
21725 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21726 # Speed up: don't consider the non `#undef'
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021727 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021728 # Work around the forget-to-reset-the-flag bug.
21729 echo 't clr' >>$CONFIG_STATUS
21730 echo ': clr' >>$CONFIG_STATUS
21731 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21732 echo 'CEOF
21733 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21734 rm -f $tmp/in
21735 mv $tmp/out $tmp/in
21736' >>$CONFIG_STATUS
21737 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21738 rm -f conftest.undefs
21739 mv conftest.tail conftest.undefs
21740done
21741rm -f conftest.undefs
21742
21743cat >>$CONFIG_STATUS <<\_ACEOF
21744 # Let's still pretend it is `configure' which instantiates (i.e., don't
21745 # use $as_me), people would be surprised to read:
21746 # /* config.h. Generated by config.status. */
21747 if test x"$ac_file" = x-; then
21748 echo "/* Generated by configure. */" >$tmp/config.h
21749 else
21750 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21751 fi
21752 cat $tmp/in >>$tmp/config.h
21753 rm -f $tmp/in
21754 if test x"$ac_file" != x-; then
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021755 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021756 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21757echo "$as_me: $ac_file is unchanged" >&6;}
21758 else
21759 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21760$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021761 X"$ac_file" : 'X\(//\)[^/]' \| \
21762 X"$ac_file" : 'X\(//\)$' \| \
21763 X"$ac_file" : 'X\(/\)' \| \
21764 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021765echo X"$ac_file" |
21766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21767 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21768 /^X\(\/\/\)$/{ s//\1/; q; }
21769 /^X\(\/\).*/{ s//\1/; q; }
21770 s/.*/./; q'`
21771 { if $as_mkdir_p; then
21772 mkdir -p "$ac_dir"
21773 else
21774 as_dir="$ac_dir"
21775 as_dirs=
21776 while test ! -d "$as_dir"; do
21777 as_dirs="$as_dir $as_dirs"
21778 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21779$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021780 X"$as_dir" : 'X\(//\)[^/]' \| \
21781 X"$as_dir" : 'X\(//\)$' \| \
21782 X"$as_dir" : 'X\(/\)' \| \
21783 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021784echo X"$as_dir" |
21785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21786 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21787 /^X\(\/\/\)$/{ s//\1/; q; }
21788 /^X\(\/\).*/{ s//\1/; q; }
21789 s/.*/./; q'`
21790 done
21791 test ! -n "$as_dirs" || mkdir $as_dirs
21792 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21793echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21794 { (exit 1); exit 1; }; }; }
21795
21796 rm -f $ac_file
21797 mv $tmp/config.h $ac_file
21798 fi
21799 else
21800 cat $tmp/config.h
21801 rm -f $tmp/config.h
21802 fi
21803 # Run the commands associated with the file.
21804 case $ac_file in
21805 include/config.h ) # update the timestamp
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021806echo 'timestamp for include/config.h' >"include/stamp-h1"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021807 ;;
21808 esac
21809done
21810_ACEOF
21811cat >>$CONFIG_STATUS <<\_ACEOF
21812
21813#
21814# CONFIG_LINKS section.
21815#
21816
21817for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
21818 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21819 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21820
21821 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
21822echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
21823
21824 if test ! -r $srcdir/$ac_source; then
21825 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
21826echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
21827 { (exit 1); exit 1; }; }
21828 fi
21829 rm -f $ac_dest
21830
21831 # Make relative symlinks.
21832 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
21833$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021834 X"$ac_dest" : 'X\(//\)[^/]' \| \
21835 X"$ac_dest" : 'X\(//\)$' \| \
21836 X"$ac_dest" : 'X\(/\)' \| \
21837 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021838echo X"$ac_dest" |
21839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21840 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21841 /^X\(\/\/\)$/{ s//\1/; q; }
21842 /^X\(\/\).*/{ s//\1/; q; }
21843 s/.*/./; q'`
21844 { if $as_mkdir_p; then
21845 mkdir -p "$ac_dest_dir"
21846 else
21847 as_dir="$ac_dest_dir"
21848 as_dirs=
21849 while test ! -d "$as_dir"; do
21850 as_dirs="$as_dir $as_dirs"
21851 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21852$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021853 X"$as_dir" : 'X\(//\)[^/]' \| \
21854 X"$as_dir" : 'X\(//\)$' \| \
21855 X"$as_dir" : 'X\(/\)' \| \
21856 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021857echo X"$as_dir" |
21858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21859 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21860 /^X\(\/\/\)$/{ s//\1/; q; }
21861 /^X\(\/\).*/{ s//\1/; q; }
21862 s/.*/./; q'`
21863 done
21864 test ! -n "$as_dirs" || mkdir $as_dirs
21865 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
21866echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
21867 { (exit 1); exit 1; }; }; }
21868
21869 ac_builddir=.
21870
21871if test "$ac_dest_dir" != .; then
21872 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
21873 # A "../" for each directory in $ac_dir_suffix.
21874 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21875else
21876 ac_dir_suffix= ac_top_builddir=
21877fi
21878
21879case $srcdir in
21880 .) # No --srcdir option. We are building in place.
21881 ac_srcdir=.
21882 if test -z "$ac_top_builddir"; then
21883 ac_top_srcdir=.
21884 else
21885 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21886 fi ;;
21887 [\\/]* | ?:[\\/]* ) # Absolute path.
21888 ac_srcdir=$srcdir$ac_dir_suffix;
21889 ac_top_srcdir=$srcdir ;;
21890 *) # Relative path.
21891 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21892 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21893esac
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021894
21895# Do not use `cd foo && pwd` to compute absolute paths, because
21896# the directories may not exist.
21897case `pwd` in
21898.) ac_abs_builddir="$ac_dest_dir";;
21899*)
21900 case "$ac_dest_dir" in
21901 .) ac_abs_builddir=`pwd`;;
21902 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
21903 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
21904 esac;;
21905esac
21906case $ac_abs_builddir in
21907.) ac_abs_top_builddir=${ac_top_builddir}.;;
21908*)
21909 case ${ac_top_builddir}. in
21910 .) ac_abs_top_builddir=$ac_abs_builddir;;
21911 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21912 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21913 esac;;
21914esac
21915case $ac_abs_builddir in
21916.) ac_abs_srcdir=$ac_srcdir;;
21917*)
21918 case $ac_srcdir in
21919 .) ac_abs_srcdir=$ac_abs_builddir;;
21920 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21921 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21922 esac;;
21923esac
21924case $ac_abs_builddir in
21925.) ac_abs_top_srcdir=$ac_top_srcdir;;
21926*)
21927 case $ac_top_srcdir in
21928 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21929 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21930 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21931 esac;;
21932esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021933
21934
21935 case $srcdir in
21936 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
21937 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
21938 esac
21939
21940 # Try a symlink, then a hard link, then a copy.
21941 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
21942 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
21943 cp -p $srcdir/$ac_source $ac_dest ||
21944 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
21945echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
21946 { (exit 1); exit 1; }; }
21947done
21948_ACEOF
21949cat >>$CONFIG_STATUS <<\_ACEOF
21950
21951#
21952# CONFIG_COMMANDS section.
21953#
21954for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21955 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21956 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21957 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21958$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021959 X"$ac_dest" : 'X\(//\)[^/]' \| \
21960 X"$ac_dest" : 'X\(//\)$' \| \
21961 X"$ac_dest" : 'X\(/\)' \| \
21962 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021963echo X"$ac_dest" |
21964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21965 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21966 /^X\(\/\/\)$/{ s//\1/; q; }
21967 /^X\(\/\).*/{ s//\1/; q; }
21968 s/.*/./; q'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021969 { if $as_mkdir_p; then
21970 mkdir -p "$ac_dir"
21971 else
21972 as_dir="$ac_dir"
21973 as_dirs=
21974 while test ! -d "$as_dir"; do
21975 as_dirs="$as_dir $as_dirs"
21976 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21977$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21978 X"$as_dir" : 'X\(//\)[^/]' \| \
21979 X"$as_dir" : 'X\(//\)$' \| \
21980 X"$as_dir" : 'X\(/\)' \| \
21981 . : '\(.\)' 2>/dev/null ||
21982echo X"$as_dir" |
21983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21984 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21985 /^X\(\/\/\)$/{ s//\1/; q; }
21986 /^X\(\/\).*/{ s//\1/; q; }
21987 s/.*/./; q'`
21988 done
21989 test ! -n "$as_dirs" || mkdir $as_dirs
21990 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21991echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21992 { (exit 1); exit 1; }; }; }
21993
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021994 ac_builddir=.
21995
21996if test "$ac_dir" != .; then
21997 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21998 # A "../" for each directory in $ac_dir_suffix.
21999 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22000else
22001 ac_dir_suffix= ac_top_builddir=
22002fi
22003
22004case $srcdir in
22005 .) # No --srcdir option. We are building in place.
22006 ac_srcdir=.
22007 if test -z "$ac_top_builddir"; then
22008 ac_top_srcdir=.
22009 else
22010 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22011 fi ;;
22012 [\\/]* | ?:[\\/]* ) # Absolute path.
22013 ac_srcdir=$srcdir$ac_dir_suffix;
22014 ac_top_srcdir=$srcdir ;;
22015 *) # Relative path.
22016 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22017 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22018esac
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022019
22020# Do not use `cd foo && pwd` to compute absolute paths, because
22021# the directories may not exist.
22022case `pwd` in
22023.) ac_abs_builddir="$ac_dir";;
22024*)
22025 case "$ac_dir" in
22026 .) ac_abs_builddir=`pwd`;;
22027 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22028 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22029 esac;;
22030esac
22031case $ac_abs_builddir in
22032.) ac_abs_top_builddir=${ac_top_builddir}.;;
22033*)
22034 case ${ac_top_builddir}. in
22035 .) ac_abs_top_builddir=$ac_abs_builddir;;
22036 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22037 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22038 esac;;
22039esac
22040case $ac_abs_builddir in
22041.) ac_abs_srcdir=$ac_srcdir;;
22042*)
22043 case $ac_srcdir in
22044 .) ac_abs_srcdir=$ac_abs_builddir;;
22045 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22046 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22047 esac;;
22048esac
22049case $ac_abs_builddir in
22050.) ac_abs_top_srcdir=$ac_top_srcdir;;
22051*)
22052 case $ac_top_srcdir in
22053 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22054 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22055 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22056 esac;;
22057esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022058
22059
22060 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22061echo "$as_me: executing $ac_dest commands" >&6;}
22062 case $ac_dest in
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022063 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22064 # Strip MF so we end up with the name of the file.
22065 mf=`echo "$mf" | sed -e 's/:.*$//'`
22066 # Check whether this is an Automake generated Makefile or not.
22067 # We used to match only the files named `Makefile.in', but
22068 # some people rename them; so instead we look at the file content.
22069 # Grep'ing the first line is not enough: some people post-process
22070 # each Makefile.in and add a new line on top of each file to say so.
22071 # So let's grep whole file.
22072 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22073 dirpart=`(dirname "$mf") 2>/dev/null ||
22074$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022075 X"$mf" : 'X\(//\)[^/]' \| \
22076 X"$mf" : 'X\(//\)$' \| \
22077 X"$mf" : 'X\(/\)' \| \
22078 . : '\(.\)' 2>/dev/null ||
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022079echo X"$mf" |
22080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22081 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22082 /^X\(\/\/\)$/{ s//\1/; q; }
22083 /^X\(\/\).*/{ s//\1/; q; }
22084 s/.*/./; q'`
22085 else
22086 continue
22087 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022088 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22089 # Extract the definition of DEP_FILES from the Makefile without
22090 # running `make'.
22091 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
22092 test -z "$DEPDIR" && continue
22093 # When using ansi2knr, U may be empty or an underscore; expand it
22094 U=`sed -n -e '/^U = / s///p' < "$mf"`
22095 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22096 # We invoke sed twice because it is the simplest approach to
22097 # changing $(DEPDIR) to its actual value in the expansion.
22098 for file in `sed -n -e '
22099 /^DEP_FILES = .*\\\\$/ {
22100 s/^DEP_FILES = //
22101 :loop
22102 s/\\\\$//
22103 p
22104 n
22105 /\\\\$/ b loop
22106 p
22107 }
22108 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
22109 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22110 # Make sure the directory exists.
22111 test -f "$dirpart/$file" && continue
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022112 fdir=`(dirname "$file") 2>/dev/null ||
22113$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022114 X"$file" : 'X\(//\)[^/]' \| \
22115 X"$file" : 'X\(//\)$' \| \
22116 X"$file" : 'X\(/\)' \| \
22117 . : '\(.\)' 2>/dev/null ||
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022118echo X"$file" |
22119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22120 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22121 /^X\(\/\/\)$/{ s//\1/; q; }
22122 /^X\(\/\).*/{ s//\1/; q; }
22123 s/.*/./; q'`
22124 { if $as_mkdir_p; then
22125 mkdir -p $dirpart/$fdir
22126 else
22127 as_dir=$dirpart/$fdir
22128 as_dirs=
22129 while test ! -d "$as_dir"; do
22130 as_dirs="$as_dir $as_dirs"
22131 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22132$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022133 X"$as_dir" : 'X\(//\)[^/]' \| \
22134 X"$as_dir" : 'X\(//\)$' \| \
22135 X"$as_dir" : 'X\(/\)' \| \
22136 . : '\(.\)' 2>/dev/null ||
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022137echo X"$as_dir" |
22138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22140 /^X\(\/\/\)$/{ s//\1/; q; }
22141 /^X\(\/\).*/{ s//\1/; q; }
22142 s/.*/./; q'`
22143 done
22144 test ! -n "$as_dirs" || mkdir $as_dirs
22145 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22146echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22147 { (exit 1); exit 1; }; }; }
22148
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022149 # echo "creating $dirpart/$file"
22150 echo '# dummy' > "$dirpart/$file"
22151 done
22152done
22153 ;;
22154 esac
22155done
22156_ACEOF
22157
22158cat >>$CONFIG_STATUS <<\_ACEOF
22159
22160{ (exit 0); exit 0; }
22161_ACEOF
22162chmod +x $CONFIG_STATUS
22163ac_clean_files=$ac_clean_files_save
22164
22165
22166# configure is writing to config.log, and then calls config.status.
22167# config.status does its own redirection, appending to config.log.
22168# Unfortunately, on DOS this fails, as config.log is still kept open
22169# by configure, so config.status won't be able to write to it; its
22170# output is simply discarded. So we exec the FD to /dev/null,
22171# effectively closing config.log, so it can be properly (re)opened and
22172# appended to by config.status. When coming back to configure, we
22173# need to make the FD available again.
22174if test "$no_create" != yes; then
22175 ac_cs_success=:
hp.com!davidm01b02dd2003-09-24 21:51:53 +000022176 ac_config_status_args=
22177 test "$silent" = yes &&
22178 ac_config_status_args="$ac_config_status_args --quiet"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022179 exec 5>/dev/null
hp.com!davidm01b02dd2003-09-24 21:51:53 +000022180 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022181 exec 5>>config.log
22182 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22183 # would make configure fail if this is the last instruction.
22184 $ac_cs_success || { (exit 1); exit 1; }
22185fi
22186