blob: 8d10873ee502738de7a72b433139eea1008b5bf9 [file] [log] [blame]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
hp.com!davidm75f19902004-04-28 04:43:25 +00003# Generated by GNU Autoconf 2.59 for libunwind 0.97.
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'
hp.com!davidm75f19902004-04-28 04:43:25 +0000426PACKAGE_VERSION='0.97'
427PACKAGE_STRING='libunwind 0.97'
hp.com!davidmb1d369a2003-11-26 18:59:24 +0000428PACKAGE_BUGREPORT='libunwind@linux.hpl.hp.com'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000429
hp.com!davidm2de17682004-04-20 16:53:44 +0000430ac_unique_file="src/mi/backtrace.c"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000431# 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
homeip.net!davidm34fa1222004-08-17 15:34:28 +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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE 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 build_arch arch ARCH LDFLAGS_STATIC_LIBCXA 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
homeip.net!davidm34fa1222004-08-17 15:34:28 +0000949ac_env_CCAS_set=${CCAS+set}
950ac_env_CCAS_value=$CCAS
951ac_cv_env_CCAS_set=${CCAS+set}
952ac_cv_env_CCAS_value=$CCAS
953ac_env_CCASFLAGS_set=${CCASFLAGS+set}
954ac_env_CCASFLAGS_value=$CCASFLAGS
955ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
956ac_cv_env_CCASFLAGS_value=$CCASFLAGS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000957
958#
959# Report the --help message.
960#
961if test "$ac_init_help" = "long"; then
962 # Omit some internal or obsolete options to make the list less imposing.
963 # This message is too long to be a string in the A/UX 3.1 sh.
964 cat <<_ACEOF
hp.com!davidm75f19902004-04-28 04:43:25 +0000965\`configure' configures libunwind 0.97 to adapt to many kinds of systems.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000966
967Usage: $0 [OPTION]... [VAR=VALUE]...
968
969To assign environment variables (e.g., CC, CFLAGS...), specify them as
970VAR=VALUE. See below for descriptions of some of the useful variables.
971
972Defaults for the options are specified in brackets.
973
974Configuration:
975 -h, --help display this help and exit
976 --help=short display options specific to this package
977 --help=recursive display the short help of all the included packages
978 -V, --version display version information and exit
979 -q, --quiet, --silent do not print \`checking...' messages
980 --cache-file=FILE cache test results in FILE [disabled]
981 -C, --config-cache alias for \`--cache-file=config.cache'
982 -n, --no-create do not create output files
983 --srcdir=DIR find the sources in DIR [configure dir or \`..']
984
985_ACEOF
986
987 cat <<_ACEOF
988Installation directories:
989 --prefix=PREFIX install architecture-independent files in PREFIX
mostang.com!davidmc325d9c2004-01-24 06:45:18 +0000990 [$ac_default_prefix]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000991 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
mostang.com!davidmc325d9c2004-01-24 06:45:18 +0000992 [PREFIX]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000993
994By default, \`make install' will install all the files in
995\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
996an installation prefix other than \`$ac_default_prefix' using \`--prefix',
997for instance \`--prefix=\$HOME'.
998
999For better control, use the options below.
1000
1001Fine tuning of the installation directories:
1002 --bindir=DIR user executables [EPREFIX/bin]
1003 --sbindir=DIR system admin executables [EPREFIX/sbin]
1004 --libexecdir=DIR program executables [EPREFIX/libexec]
1005 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1006 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1007 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1008 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1009 --libdir=DIR object code libraries [EPREFIX/lib]
1010 --includedir=DIR C header files [PREFIX/include]
1011 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1012 --infodir=DIR info documentation [PREFIX/info]
1013 --mandir=DIR man documentation [PREFIX/man]
1014_ACEOF
1015
1016 cat <<\_ACEOF
1017
1018Program names:
1019 --program-prefix=PREFIX prepend PREFIX to installed program names
1020 --program-suffix=SUFFIX append SUFFIX to installed program names
1021 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1022
1023System types:
1024 --build=BUILD configure for building on BUILD [guessed]
1025 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1026 --target=TARGET configure for building compilers for TARGET [HOST]
1027_ACEOF
1028fi
1029
1030if test -n "$ac_init_help"; then
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001031 case $ac_init_help in
hp.com!davidm75f19902004-04-28 04:43:25 +00001032 short | recursive ) echo "Configuration of libunwind 0.97:";;
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001033 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001034 cat <<\_ACEOF
1035
1036Optional Features:
1037 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1038 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
homeip.net!davidm34fa1222004-08-17 15:34:28 +00001039 --enable-maintainer-mode enable make rules and dependencies not useful
1040 (and sometimes confusing) to the casual installer
1041 --disable-dependency-tracking speeds up one-time build
1042 --enable-dependency-tracking do not reject slow dependency extractors
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001043 --enable-shared[=PKGS]
1044 build shared libraries [default=yes]
1045 --enable-static[=PKGS]
1046 build static libraries [default=yes]
1047 --enable-fast-install[=PKGS]
1048 optimize for fast installation [default=yes]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001049 --disable-libtool-lock avoid locking (might break parallel builds)
1050 --enable-debug turn on debug support (slows down execution)
1051
1052Optional Packages:
1053 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1054 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001055 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1056 --with-pic try to use only PIC/non-PIC objects [default=use
1057 both]
1058 --with-tags[=TAGS]
1059 include additional configurations [automatic]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001060
1061Some influential environment variables:
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1065 nonstandard directory <lib dir>
1066 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067 headers in a nonstandard directory <include dir>
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00001068 CXX C++ compiler command
1069 CXXFLAGS C++ compiler flags
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001070 CPP C preprocessor
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001071 CXXCPP C++ preprocessor
1072 F77 Fortran 77 compiler command
1073 FFLAGS Fortran 77 compiler flags
homeip.net!davidm34fa1222004-08-17 15:34:28 +00001074 CCAS assembler compiler command (defaults to CC)
1075 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001076
1077Use these variables to override the choices made by `configure' or to help
1078it to find libraries and programs with nonstandard names/locations.
1079
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001080Report bugs to <libunwind@linux.hpl.hp.com>.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001081_ACEOF
1082fi
1083
1084if test "$ac_init_help" = "recursive"; then
1085 # If there are subdirs, report their specific --help.
1086 ac_popdir=`pwd`
1087 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1088 test -d $ac_dir || continue
1089 ac_builddir=.
1090
1091if test "$ac_dir" != .; then
1092 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1093 # A "../" for each directory in $ac_dir_suffix.
1094 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1095else
1096 ac_dir_suffix= ac_top_builddir=
1097fi
1098
1099case $srcdir in
1100 .) # No --srcdir option. We are building in place.
1101 ac_srcdir=.
1102 if test -z "$ac_top_builddir"; then
1103 ac_top_srcdir=.
1104 else
1105 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1106 fi ;;
1107 [\\/]* | ?:[\\/]* ) # Absolute path.
1108 ac_srcdir=$srcdir$ac_dir_suffix;
1109 ac_top_srcdir=$srcdir ;;
1110 *) # Relative path.
1111 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1112 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1113esac
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001114
1115# Do not use `cd foo && pwd` to compute absolute paths, because
1116# the directories may not exist.
1117case `pwd` in
1118.) ac_abs_builddir="$ac_dir";;
1119*)
1120 case "$ac_dir" in
1121 .) ac_abs_builddir=`pwd`;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1123 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1124 esac;;
1125esac
1126case $ac_abs_builddir in
1127.) ac_abs_top_builddir=${ac_top_builddir}.;;
1128*)
1129 case ${ac_top_builddir}. in
1130 .) ac_abs_top_builddir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1132 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1133 esac;;
1134esac
1135case $ac_abs_builddir in
1136.) ac_abs_srcdir=$ac_srcdir;;
1137*)
1138 case $ac_srcdir in
1139 .) ac_abs_srcdir=$ac_abs_builddir;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1141 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1142 esac;;
1143esac
1144case $ac_abs_builddir in
1145.) ac_abs_top_srcdir=$ac_top_srcdir;;
1146*)
1147 case $ac_top_srcdir in
1148 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1149 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1150 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1151 esac;;
1152esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001153
1154 cd $ac_dir
1155 # Check for guested configure; otherwise get Cygnus style configure.
1156 if test -f $ac_srcdir/configure.gnu; then
1157 echo
1158 $SHELL $ac_srcdir/configure.gnu --help=recursive
1159 elif test -f $ac_srcdir/configure; then
1160 echo
1161 $SHELL $ac_srcdir/configure --help=recursive
1162 elif test -f $ac_srcdir/configure.ac ||
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001163 test -f $ac_srcdir/configure.in; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001164 echo
1165 $ac_configure --help
1166 else
1167 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1168 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001169 cd "$ac_popdir"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001170 done
1171fi
1172
1173test -n "$ac_init_help" && exit 0
1174if $ac_init_version; then
1175 cat <<\_ACEOF
hp.com!davidm75f19902004-04-28 04:43:25 +00001176libunwind configure 0.97
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001177generated by GNU Autoconf 2.59
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001178
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001179Copyright (C) 2003 Free Software Foundation, Inc.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001180This configure script is free software; the Free Software Foundation
1181gives unlimited permission to copy, distribute and modify it.
1182_ACEOF
1183 exit 0
1184fi
1185exec 5>config.log
1186cat >&5 <<_ACEOF
1187This file contains any messages produced by compilers while
1188running configure, to aid debugging if configure makes a mistake.
1189
hp.com!davidm75f19902004-04-28 04:43:25 +00001190It was created by libunwind $as_me 0.97, which was
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001191generated by GNU Autoconf 2.59. Invocation command line was
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001192
1193 $ $0 $@
1194
1195_ACEOF
1196{
1197cat <<_ASUNAME
1198## --------- ##
1199## Platform. ##
1200## --------- ##
1201
1202hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206uname -v = `(uname -v) 2>/dev/null || echo unknown`
1207
1208/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1210
1211/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1212/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1213/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1215/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1216/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1217/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1218
1219_ASUNAME
1220
1221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1222for as_dir in $PATH
1223do
1224 IFS=$as_save_IFS
1225 test -z "$as_dir" && as_dir=.
1226 echo "PATH: $as_dir"
1227done
1228
1229} >&5
1230
1231cat >&5 <<_ACEOF
1232
1233
1234## ----------- ##
1235## Core tests. ##
1236## ----------- ##
1237
1238_ACEOF
1239
1240
1241# Keep a trace of the command line.
1242# Strip out --no-create and --no-recursion so they do not pile up.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001243# Strip out --silent because we don't want to record it for future runs.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001244# Also quote any args containing shell meta-characters.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001245# Make two passes to allow for proper duplicate-argument suppression.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001246ac_configure_args=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001247ac_configure_args0=
1248ac_configure_args1=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001249ac_sep=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001250ac_must_keep_next=false
1251for ac_pass in 1 2
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001252do
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001253 for ac_arg
1254 do
1255 case $ac_arg in
1256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258 | -silent | --silent | --silen | --sile | --sil)
1259 continue ;;
1260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262 esac
1263 case $ac_pass in
1264 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1265 2)
1266 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267 if test $ac_must_keep_next = true; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001268 ac_must_keep_next=false # Got value, back to normal.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001269 else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001270 case $ac_arg in
1271 *=* | --config-cache | -C | -disable-* | --disable-* \
1272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274 | -with-* | --with-* | -without-* | --without-* | --x)
1275 case "$ac_configure_args0 " in
1276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277 esac
1278 ;;
1279 -* ) ac_must_keep_next=true ;;
1280 esac
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001281 fi
1282 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283 # Get rid of the leading space.
1284 ac_sep=" "
1285 ;;
1286 esac
1287 done
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001288done
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001289$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290$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 +00001291
1292# When interrupted or exit'd, cleanup temporary files, and complete
1293# config.log. We remove comments because anyway the quotes in there
1294# would cause problems or look ugly.
1295# WARNING: Be sure not to use single quotes in there, as some shells,
1296# such as our DU 5.0 friend, will then `close' the trap.
1297trap 'exit_status=$?
1298 # Save into config.log some information that might help in debugging.
1299 {
1300 echo
1301
1302 cat <<\_ASBOX
1303## ---------------- ##
1304## Cache variables. ##
1305## ---------------- ##
1306_ASBOX
1307 echo
1308 # The following way of writing the cache mishandles newlines in values,
1309{
1310 (set) 2>&1 |
1311 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312 *ac_space=\ *)
1313 sed -n \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001314 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001316 ;;
1317 *)
1318 sed -n \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001319 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001320 ;;
1321 esac;
1322}
1323 echo
1324
1325 cat <<\_ASBOX
1326## ----------------- ##
1327## Output variables. ##
1328## ----------------- ##
1329_ASBOX
1330 echo
1331 for ac_var in $ac_subst_vars
1332 do
1333 eval ac_val=$`echo $ac_var`
1334 echo "$ac_var='"'"'$ac_val'"'"'"
1335 done | sort
1336 echo
1337
1338 if test -n "$ac_subst_files"; then
1339 cat <<\_ASBOX
1340## ------------- ##
1341## Output files. ##
1342## ------------- ##
1343_ASBOX
1344 echo
1345 for ac_var in $ac_subst_files
1346 do
1347 eval ac_val=$`echo $ac_var`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001348 echo "$ac_var='"'"'$ac_val'"'"'"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001349 done | sort
1350 echo
1351 fi
1352
1353 if test -s confdefs.h; then
1354 cat <<\_ASBOX
1355## ----------- ##
1356## confdefs.h. ##
1357## ----------- ##
1358_ASBOX
1359 echo
1360 sed "/^$/d" confdefs.h | sort
1361 echo
1362 fi
1363 test "$ac_signal" != 0 &&
1364 echo "$as_me: caught signal $ac_signal"
1365 echo "$as_me: exit $exit_status"
1366 } >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001367 rm -f core *.core &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001368 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369 exit $exit_status
1370 ' 0
1371for ac_signal in 1 2 13 15; do
1372 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1373done
1374ac_signal=0
1375
1376# confdefs.h avoids OS command line length limits that DEFS can exceed.
1377rm -rf conftest* confdefs.h
1378# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379echo >confdefs.h
1380
1381# Predefined preprocessor variables.
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_NAME "$PACKAGE_NAME"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1390_ACEOF
1391
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_VERSION "$PACKAGE_VERSION"
1395_ACEOF
1396
1397
1398cat >>confdefs.h <<_ACEOF
1399#define PACKAGE_STRING "$PACKAGE_STRING"
1400_ACEOF
1401
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1405_ACEOF
1406
1407
1408# Let the site file select an alternate cache file if it wants to.
1409# Prefer explicitly selected file to automatically selected ones.
1410if test -z "$CONFIG_SITE"; then
1411 if test "x$prefix" != xNONE; then
1412 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1413 else
1414 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415 fi
1416fi
1417for ac_site_file in $CONFIG_SITE; do
1418 if test -r "$ac_site_file"; then
1419 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420echo "$as_me: loading site script $ac_site_file" >&6;}
1421 sed 's/^/| /' "$ac_site_file" >&5
1422 . "$ac_site_file"
1423 fi
1424done
1425
1426if test -r "$cache_file"; then
1427 # Some versions of bash will fail to source /dev/null (special
1428 # files actually), so we avoid doing that.
1429 if test -f "$cache_file"; then
1430 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431echo "$as_me: loading cache $cache_file" >&6;}
1432 case $cache_file in
1433 [\\/]* | ?:[\\/]* ) . $cache_file;;
1434 *) . ./$cache_file;;
1435 esac
1436 fi
1437else
1438 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439echo "$as_me: creating cache $cache_file" >&6;}
1440 >$cache_file
1441fi
1442
1443# Check that the precious variables saved in the cache have kept the same
1444# value.
1445ac_cache_corrupted=false
1446for ac_var in `(set) 2>&1 |
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001447 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449 eval ac_new_set=\$ac_env_${ac_var}_set
1450 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451 eval ac_new_val="\$ac_env_${ac_var}_value"
1452 case $ac_old_set,$ac_new_set in
1453 set,)
1454 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456 ac_cache_corrupted=: ;;
1457 ,set)
1458 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460 ac_cache_corrupted=: ;;
1461 ,);;
1462 *)
1463 if test "x$ac_old_val" != "x$ac_new_val"; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001464 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001465echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001466 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001467echo "$as_me: former value: $ac_old_val" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001468 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001469echo "$as_me: current value: $ac_new_val" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001470 ac_cache_corrupted=:
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001471 fi;;
1472 esac
1473 # Pass precious variables to config.status.
1474 if test "$ac_new_set" = set; then
1475 case $ac_new_val in
1476 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478 *) ac_arg=$ac_var=$ac_new_val ;;
1479 esac
1480 case " $ac_configure_args " in
1481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1482 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1483 esac
1484 fi
1485done
1486if $ac_cache_corrupted; then
1487 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491 { (exit 1); exit 1; }; }
1492fi
1493
1494ac_ext=c
1495ac_cpp='$CPP $CPPFLAGS'
1496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498ac_compiler_gnu=$ac_cv_c_compiler_gnu
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001518
1519
1520
1521
1522
1523
1524
1525
1526
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001527ac_aux_dir=
hp.com!davidm16230292004-07-15 17:39:59 +00001528for ac_dir in config $srcdir/config; do
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001529 if test -f $ac_dir/install-sh; then
1530 ac_aux_dir=$ac_dir
1531 ac_install_sh="$ac_aux_dir/install-sh -c"
1532 break
1533 elif test -f $ac_dir/install.sh; then
1534 ac_aux_dir=$ac_dir
1535 ac_install_sh="$ac_aux_dir/install.sh -c"
1536 break
1537 elif test -f $ac_dir/shtool; then
1538 ac_aux_dir=$ac_dir
1539 ac_install_sh="$ac_aux_dir/shtool install -c"
1540 break
1541 fi
1542done
1543if test -z "$ac_aux_dir"; then
hp.com!davidm16230292004-07-15 17:39:59 +00001544 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1545echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001546 { (exit 1); exit 1; }; }
1547fi
1548ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1549ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1550ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1551
1552# Make sure we can run config.sub.
1553$ac_config_sub sun4 >/dev/null 2>&1 ||
1554 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1555echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1556 { (exit 1); exit 1; }; }
1557
1558echo "$as_me:$LINENO: checking build system type" >&5
1559echo $ECHO_N "checking build system type... $ECHO_C" >&6
1560if test "${ac_cv_build+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563 ac_cv_build_alias=$build_alias
1564test -z "$ac_cv_build_alias" &&
1565 ac_cv_build_alias=`$ac_config_guess`
1566test -z "$ac_cv_build_alias" &&
1567 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1568echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1569 { (exit 1); exit 1; }; }
1570ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1571 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1572echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1573 { (exit 1); exit 1; }; }
1574
1575fi
1576echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1577echo "${ECHO_T}$ac_cv_build" >&6
1578build=$ac_cv_build
1579build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1580build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1581build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1582
1583
1584echo "$as_me:$LINENO: checking host system type" >&5
1585echo $ECHO_N "checking host system type... $ECHO_C" >&6
1586if test "${ac_cv_host+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588else
1589 ac_cv_host_alias=$host_alias
1590test -z "$ac_cv_host_alias" &&
1591 ac_cv_host_alias=$ac_cv_build_alias
1592ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1593 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1594echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1595 { (exit 1); exit 1; }; }
1596
1597fi
1598echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1599echo "${ECHO_T}$ac_cv_host" >&6
1600host=$ac_cv_host
1601host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1602host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1603host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1604
1605
1606echo "$as_me:$LINENO: checking target system type" >&5
1607echo $ECHO_N "checking target system type... $ECHO_C" >&6
1608if test "${ac_cv_target+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1610else
1611 ac_cv_target_alias=$target_alias
1612test "x$ac_cv_target_alias" = "x" &&
1613 ac_cv_target_alias=$ac_cv_host_alias
1614ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1615 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1616echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1617 { (exit 1); exit 1; }; }
1618
1619fi
1620echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1621echo "${ECHO_T}$ac_cv_target" >&6
1622target=$ac_cv_target
1623target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1624target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1625target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1626
1627
1628# The aliases save the names the user supplied, while $host etc.
1629# will get canonicalized.
1630test -n "$target_alias" &&
1631 test "$program_prefix$program_suffix$program_transform_name" = \
1632 NONENONEs,x,x, &&
1633 program_prefix=${target_alias}-
homeip.net!davidm34fa1222004-08-17 15:34:28 +00001634am__api_version="1.9"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001635# Find a good install program. We prefer a C program (faster),
1636# so one script is as good as another. But avoid the broken or
1637# incompatible versions:
1638# SysV /etc/install, /usr/sbin/install
1639# SunOS /usr/etc/install
1640# IRIX /sbin/install
1641# AIX /bin/install
1642# AmigaOS /C/install, which installs bootblocks on floppy discs
1643# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1644# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1645# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001646# OS/2's system install, which has a completely different semantic
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001647# ./install, which can be erroneously created by make from ./install.sh.
1648echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1649echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1650if test -z "$INSTALL"; then
1651if test "${ac_cv_path_install+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653else
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655for as_dir in $PATH
1656do
1657 IFS=$as_save_IFS
1658 test -z "$as_dir" && as_dir=.
1659 # Account for people who put trailing slashes in PATH elements.
1660case $as_dir/ in
1661 ./ | .// | /cC/* | \
1662 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001663 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001664 /usr/ucb/* ) ;;
1665 *)
1666 # OSF1 and SCO ODT 3.0 have their own names for install.
1667 # Don't use installbsd from OSF since it installs stuff as root
1668 # by default.
1669 for ac_prog in ginstall scoinst install; do
1670 for ac_exec_ext in '' $ac_executable_extensions; do
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001671 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1672 if test $ac_prog = install &&
1673 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1674 # AIX install. It has an incompatible calling convention.
1675 :
1676 elif test $ac_prog = install &&
1677 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1678 # program-specific install script used by HP pwplus--don't use.
1679 :
1680 else
1681 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1682 break 3
1683 fi
1684 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001685 done
1686 done
1687 ;;
1688esac
1689done
1690
1691
1692fi
1693 if test "${ac_cv_path_install+set}" = set; then
1694 INSTALL=$ac_cv_path_install
1695 else
1696 # As a last resort, use the slow shell script. We don't cache a
1697 # path for INSTALL within a source directory, because that will
1698 # break other packages using the cache if that directory is
1699 # removed, or if the path is relative.
1700 INSTALL=$ac_install_sh
1701 fi
1702fi
1703echo "$as_me:$LINENO: result: $INSTALL" >&5
1704echo "${ECHO_T}$INSTALL" >&6
1705
1706# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1707# It thinks the first close brace ends the variable substitution.
1708test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1709
1710test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1711
1712test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1713
1714echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1715echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1716# Just in case
1717sleep 1
1718echo timestamp > conftest.file
1719# Do `set' in a subshell so we don't clobber the current shell's
1720# arguments. Must try -L first in case configure is actually a
1721# symlink; some systems play weird games with the mod time of symlinks
1722# (eg FreeBSD returns the mod time of the symlink's containing
1723# directory).
1724if (
1725 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1726 if test "$*" = "X"; then
1727 # -L didn't work.
1728 set X `ls -t $srcdir/configure conftest.file`
1729 fi
1730 rm -f conftest.file
1731 if test "$*" != "X $srcdir/configure conftest.file" \
1732 && test "$*" != "X conftest.file $srcdir/configure"; then
1733
1734 # If neither matched, then we have a broken ls. This can happen
1735 # if, for instance, CONFIG_SHELL is bash and it inherits a
1736 # broken ls alias from the environment. This has actually
1737 # happened. Such a system could not be considered "sane".
1738 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1739alias in your environment" >&5
1740echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1741alias in your environment" >&2;}
1742 { (exit 1); exit 1; }; }
1743 fi
1744
1745 test "$2" = conftest.file
1746 )
1747then
1748 # Ok.
1749 :
1750else
1751 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1752Check your system clock" >&5
1753echo "$as_me: error: newly created file is older than distributed files!
1754Check your system clock" >&2;}
1755 { (exit 1); exit 1; }; }
1756fi
1757echo "$as_me:$LINENO: result: yes" >&5
1758echo "${ECHO_T}yes" >&6
1759test "$program_prefix" != NONE &&
1760 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1761# Use a double $ so make ignores it.
1762test "$program_suffix" != NONE &&
1763 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1764# Double any \ or $. echo might interpret backslashes.
1765# By default was `s,x,x', remove it if useless.
1766cat <<\_ACEOF >conftest.sed
1767s/[\\$]/&&/g;s/;s,x,x,$//
1768_ACEOF
1769program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1770rm conftest.sed
1771
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001772# expand $ac_aux_dir to an absolute path
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001773am_aux_dir=`cd $ac_aux_dir && pwd`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001774
1775test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1776# Use eval to expand $SHELL
1777if eval "$MISSING --run true"; then
1778 am_missing_run="$MISSING --run "
1779else
1780 am_missing_run=
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001781 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1782echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001783fi
1784
homeip.net!davidm34fa1222004-08-17 15:34:28 +00001785if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1786 # We used to keeping the `.' as first argument, in order to
1787 # allow $(mkdir_p) to be used without argument. As in
1788 # $(mkdir_p) $(somedir)
1789 # where $(somedir) is conditionally defined. However this is wrong
1790 # for two reasons:
1791 # 1. if the package is installed by a user who cannot write `.'
1792 # make install will fail,
1793 # 2. the above comment should most certainly read
1794 # $(mkdir_p) $(DESTDIR)$(somedir)
1795 # so it does not work when $(somedir) is undefined and
1796 # $(DESTDIR) is not.
1797 # To support the latter case, we have to write
1798 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1799 # so the `.' trick is pointless.
1800 mkdir_p='mkdir -p --'
1801else
1802 # On NextStep and OpenStep, the `mkdir' command does not
1803 # recognize any option. It will interpret all options as
1804 # directories to create, and then abort because `.' already
1805 # exists.
1806 for d in ./-p ./--version;
1807 do
1808 test -d $d && rmdir $d
1809 done
1810 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1811 if test -f "$ac_aux_dir/mkinstalldirs"; then
1812 mkdir_p='$(mkinstalldirs)'
1813 else
1814 mkdir_p='$(install_sh) -d'
1815 fi
1816fi
1817
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001818for ac_prog in gawk mawk nawk awk
1819do
1820 # Extract the first word of "$ac_prog", so it can be a program name with args.
1821set dummy $ac_prog; ac_word=$2
1822echo "$as_me:$LINENO: checking for $ac_word" >&5
1823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824if test "${ac_cv_prog_AWK+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1826else
1827 if test -n "$AWK"; then
1828 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1829else
1830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831for as_dir in $PATH
1832do
1833 IFS=$as_save_IFS
1834 test -z "$as_dir" && as_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837 ac_cv_prog_AWK="$ac_prog"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839 break 2
1840 fi
1841done
1842done
1843
1844fi
1845fi
1846AWK=$ac_cv_prog_AWK
1847if test -n "$AWK"; then
1848 echo "$as_me:$LINENO: result: $AWK" >&5
1849echo "${ECHO_T}$AWK" >&6
1850else
1851 echo "$as_me:$LINENO: result: no" >&5
1852echo "${ECHO_T}no" >&6
1853fi
1854
1855 test -n "$AWK" && break
1856done
1857
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001858echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1859echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001860set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001861if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1863else
1864 cat >conftest.make <<\_ACEOF
1865all:
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001866 @echo 'ac_maketemp="$(MAKE)"'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001867_ACEOF
1868# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1869eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1870if test -n "$ac_maketemp"; then
1871 eval ac_cv_prog_make_${ac_make}_set=yes
1872else
1873 eval ac_cv_prog_make_${ac_make}_set=no
1874fi
1875rm -f conftest.make
1876fi
1877if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1878 echo "$as_me:$LINENO: result: yes" >&5
1879echo "${ECHO_T}yes" >&6
1880 SET_MAKE=
1881else
1882 echo "$as_me:$LINENO: result: no" >&5
1883echo "${ECHO_T}no" >&6
1884 SET_MAKE="MAKE=${MAKE-make}"
1885fi
1886
homeip.net!davidm34fa1222004-08-17 15:34:28 +00001887rm -rf .tst 2>/dev/null
1888mkdir .tst 2>/dev/null
1889if test -d .tst; then
1890 am__leading_dot=.
1891else
1892 am__leading_dot=_
1893fi
1894rmdir .tst 2>/dev/null
1895
1896# test to see if srcdir already configured
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001897if test "`cd $srcdir && pwd`" != "`pwd`" &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001898 test -f $srcdir/config.status; then
1899 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1900echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1901 { (exit 1); exit 1; }; }
1902fi
1903
homeip.net!davidm34fa1222004-08-17 15:34:28 +00001904# test whether we have cygpath
1905if test -z "$CYGPATH_W"; then
1906 if (cygpath --version) >/dev/null 2>/dev/null; then
1907 CYGPATH_W='cygpath -w'
1908 else
1909 CYGPATH_W=echo
1910 fi
1911fi
1912
1913
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001914# Define the identity of the package.
homeip.net!davidm34fa1222004-08-17 15:34:28 +00001915 PACKAGE='libunwind'
1916 VERSION='0.97'
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001917
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001918
1919cat >>confdefs.h <<_ACEOF
1920#define PACKAGE "$PACKAGE"
1921_ACEOF
1922
1923
1924cat >>confdefs.h <<_ACEOF
1925#define VERSION "$VERSION"
1926_ACEOF
1927
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001928# Some tools Automake needs.
1929
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001930ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001931
1932
1933AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1934
1935
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001936AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001937
1938
1939AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1940
1941
1942MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1943
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001944install_sh=${install_sh-"$am_aux_dir/install-sh"}
1945
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001946# Installed binaries are usually stripped using `strip' when the user
1947# run `make install-strip'. However `strip' might not be the right
1948# tool to use in cross-compilation environments, therefore Automake
1949# will honor the `STRIP' environment variable to overrule this program.
1950if test "$cross_compiling" != no; then
1951 if test -n "$ac_tool_prefix"; then
1952 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1953set dummy ${ac_tool_prefix}strip; ac_word=$2
1954echo "$as_me:$LINENO: checking for $ac_word" >&5
1955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956if test "${ac_cv_prog_STRIP+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958else
1959 if test -n "$STRIP"; then
1960 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1961else
1962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963for as_dir in $PATH
1964do
1965 IFS=$as_save_IFS
1966 test -z "$as_dir" && as_dir=.
1967 for ac_exec_ext in '' $ac_executable_extensions; do
1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 break 2
1972 fi
1973done
1974done
1975
1976fi
1977fi
1978STRIP=$ac_cv_prog_STRIP
1979if test -n "$STRIP"; then
1980 echo "$as_me:$LINENO: result: $STRIP" >&5
1981echo "${ECHO_T}$STRIP" >&6
1982else
1983 echo "$as_me:$LINENO: result: no" >&5
1984echo "${ECHO_T}no" >&6
1985fi
1986
1987fi
1988if test -z "$ac_cv_prog_STRIP"; then
1989 ac_ct_STRIP=$STRIP
1990 # Extract the first word of "strip", so it can be a program name with args.
1991set dummy strip; ac_word=$2
1992echo "$as_me:$LINENO: checking for $ac_word" >&5
1993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1994if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1996else
1997 if test -n "$ac_ct_STRIP"; then
1998 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1999else
2000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001for as_dir in $PATH
2002do
2003 IFS=$as_save_IFS
2004 test -z "$as_dir" && as_dir=.
2005 for ac_exec_ext in '' $ac_executable_extensions; do
2006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2007 ac_cv_prog_ac_ct_STRIP="strip"
2008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 break 2
2010 fi
2011done
2012done
2013
2014 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2015fi
2016fi
2017ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2018if test -n "$ac_ct_STRIP"; then
2019 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2020echo "${ECHO_T}$ac_ct_STRIP" >&6
2021else
2022 echo "$as_me:$LINENO: result: no" >&5
2023echo "${ECHO_T}no" >&6
2024fi
2025
2026 STRIP=$ac_ct_STRIP
2027else
2028 STRIP="$ac_cv_prog_STRIP"
2029fi
2030
2031fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002032INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2033
2034# We need awk for the "check" target. The system "awk" is bad on
2035# some platforms.
homeip.net!davidm34fa1222004-08-17 15:34:28 +00002036# Always define AMTAR for backward compatibility.
2037
2038AMTAR=${AMTAR-"${am_missing_run}tar"}
2039
2040am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2041
2042
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002043
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002044
2045
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002046echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2047echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2048 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2049if test "${enable_maintainer_mode+set}" = set; then
2050 enableval="$enable_maintainer_mode"
2051 USE_MAINTAINER_MODE=$enableval
2052else
2053 USE_MAINTAINER_MODE=no
2054fi;
2055 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2056echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2057
2058
2059if test $USE_MAINTAINER_MODE = yes; then
2060 MAINTAINER_MODE_TRUE=
2061 MAINTAINER_MODE_FALSE='#'
2062else
2063 MAINTAINER_MODE_TRUE='#'
2064 MAINTAINER_MODE_FALSE=
2065fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002066
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002067 MAINT=$MAINTAINER_MODE_TRUE
2068
2069
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002070 ac_config_headers="$ac_config_headers include/config.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002071
2072
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002073ac_ext=c
2074ac_cpp='$CPP $CPPFLAGS'
2075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2077ac_compiler_gnu=$ac_cv_c_compiler_gnu
2078if test -n "$ac_tool_prefix"; then
2079 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2080set dummy ${ac_tool_prefix}gcc; ac_word=$2
2081echo "$as_me:$LINENO: checking for $ac_word" >&5
2082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083if test "${ac_cv_prog_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2085else
2086 if test -n "$CC"; then
2087 ac_cv_prog_CC="$CC" # Let the user override the test.
2088else
2089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090for as_dir in $PATH
2091do
2092 IFS=$as_save_IFS
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 break 2
2099 fi
2100done
2101done
2102
2103fi
2104fi
2105CC=$ac_cv_prog_CC
2106if test -n "$CC"; then
2107 echo "$as_me:$LINENO: result: $CC" >&5
2108echo "${ECHO_T}$CC" >&6
2109else
2110 echo "$as_me:$LINENO: result: no" >&5
2111echo "${ECHO_T}no" >&6
2112fi
2113
2114fi
2115if test -z "$ac_cv_prog_CC"; then
2116 ac_ct_CC=$CC
2117 # Extract the first word of "gcc", so it can be a program name with args.
2118set dummy gcc; ac_word=$2
2119echo "$as_me:$LINENO: checking for $ac_word" >&5
2120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2121if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2123else
2124 if test -n "$ac_ct_CC"; then
2125 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2126else
2127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128for as_dir in $PATH
2129do
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 for ac_exec_ext in '' $ac_executable_extensions; do
2133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2134 ac_cv_prog_ac_ct_CC="gcc"
2135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136 break 2
2137 fi
2138done
2139done
2140
2141fi
2142fi
2143ac_ct_CC=$ac_cv_prog_ac_ct_CC
2144if test -n "$ac_ct_CC"; then
2145 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2146echo "${ECHO_T}$ac_ct_CC" >&6
2147else
2148 echo "$as_me:$LINENO: result: no" >&5
2149echo "${ECHO_T}no" >&6
2150fi
2151
2152 CC=$ac_ct_CC
2153else
2154 CC="$ac_cv_prog_CC"
2155fi
2156
2157if test -z "$CC"; then
2158 if test -n "$ac_tool_prefix"; then
2159 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2160set dummy ${ac_tool_prefix}cc; ac_word=$2
2161echo "$as_me:$LINENO: checking for $ac_word" >&5
2162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2163if test "${ac_cv_prog_CC+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2165else
2166 if test -n "$CC"; then
2167 ac_cv_prog_CC="$CC" # Let the user override the test.
2168else
2169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170for as_dir in $PATH
2171do
2172 IFS=$as_save_IFS
2173 test -z "$as_dir" && as_dir=.
2174 for ac_exec_ext in '' $ac_executable_extensions; do
2175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2176 ac_cv_prog_CC="${ac_tool_prefix}cc"
2177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178 break 2
2179 fi
2180done
2181done
2182
2183fi
2184fi
2185CC=$ac_cv_prog_CC
2186if test -n "$CC"; then
2187 echo "$as_me:$LINENO: result: $CC" >&5
2188echo "${ECHO_T}$CC" >&6
2189else
2190 echo "$as_me:$LINENO: result: no" >&5
2191echo "${ECHO_T}no" >&6
2192fi
2193
2194fi
2195if test -z "$ac_cv_prog_CC"; then
2196 ac_ct_CC=$CC
2197 # Extract the first word of "cc", so it can be a program name with args.
2198set dummy cc; ac_word=$2
2199echo "$as_me:$LINENO: checking for $ac_word" >&5
2200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2201if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203else
2204 if test -n "$ac_ct_CC"; then
2205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2206else
2207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208for as_dir in $PATH
2209do
2210 IFS=$as_save_IFS
2211 test -z "$as_dir" && as_dir=.
2212 for ac_exec_ext in '' $ac_executable_extensions; do
2213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2214 ac_cv_prog_ac_ct_CC="cc"
2215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216 break 2
2217 fi
2218done
2219done
2220
2221fi
2222fi
2223ac_ct_CC=$ac_cv_prog_ac_ct_CC
2224if test -n "$ac_ct_CC"; then
2225 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2226echo "${ECHO_T}$ac_ct_CC" >&6
2227else
2228 echo "$as_me:$LINENO: result: no" >&5
2229echo "${ECHO_T}no" >&6
2230fi
2231
2232 CC=$ac_ct_CC
2233else
2234 CC="$ac_cv_prog_CC"
2235fi
2236
2237fi
2238if test -z "$CC"; then
2239 # Extract the first word of "cc", so it can be a program name with args.
2240set dummy cc; ac_word=$2
2241echo "$as_me:$LINENO: checking for $ac_word" >&5
2242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2243if test "${ac_cv_prog_CC+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2245else
2246 if test -n "$CC"; then
2247 ac_cv_prog_CC="$CC" # Let the user override the test.
2248else
2249 ac_prog_rejected=no
2250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251for as_dir in $PATH
2252do
2253 IFS=$as_save_IFS
2254 test -z "$as_dir" && as_dir=.
2255 for ac_exec_ext in '' $ac_executable_extensions; do
2256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2257 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2258 ac_prog_rejected=yes
2259 continue
2260 fi
2261 ac_cv_prog_CC="cc"
2262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263 break 2
2264 fi
2265done
2266done
2267
2268if test $ac_prog_rejected = yes; then
2269 # We found a bogon in the path, so make sure we never use it.
2270 set dummy $ac_cv_prog_CC
2271 shift
2272 if test $# != 0; then
2273 # We chose a different compiler from the bogus one.
2274 # However, it has the same basename, so the bogon will be chosen
2275 # first if we set CC to just the basename; use the full file name.
2276 shift
2277 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2278 fi
2279fi
2280fi
2281fi
2282CC=$ac_cv_prog_CC
2283if test -n "$CC"; then
2284 echo "$as_me:$LINENO: result: $CC" >&5
2285echo "${ECHO_T}$CC" >&6
2286else
2287 echo "$as_me:$LINENO: result: no" >&5
2288echo "${ECHO_T}no" >&6
2289fi
2290
2291fi
2292if test -z "$CC"; then
2293 if test -n "$ac_tool_prefix"; then
2294 for ac_prog in cl
2295 do
2296 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2297set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2298echo "$as_me:$LINENO: checking for $ac_word" >&5
2299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2300if test "${ac_cv_prog_CC+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2302else
2303 if test -n "$CC"; then
2304 ac_cv_prog_CC="$CC" # Let the user override the test.
2305else
2306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307for as_dir in $PATH
2308do
2309 IFS=$as_save_IFS
2310 test -z "$as_dir" && as_dir=.
2311 for ac_exec_ext in '' $ac_executable_extensions; do
2312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2313 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315 break 2
2316 fi
2317done
2318done
2319
2320fi
2321fi
2322CC=$ac_cv_prog_CC
2323if test -n "$CC"; then
2324 echo "$as_me:$LINENO: result: $CC" >&5
2325echo "${ECHO_T}$CC" >&6
2326else
2327 echo "$as_me:$LINENO: result: no" >&5
2328echo "${ECHO_T}no" >&6
2329fi
2330
2331 test -n "$CC" && break
2332 done
2333fi
2334if test -z "$CC"; then
2335 ac_ct_CC=$CC
2336 for ac_prog in cl
2337do
2338 # Extract the first word of "$ac_prog", so it can be a program name with args.
2339set dummy $ac_prog; ac_word=$2
2340echo "$as_me:$LINENO: checking for $ac_word" >&5
2341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2342if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2344else
2345 if test -n "$ac_ct_CC"; then
2346 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2347else
2348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349for as_dir in $PATH
2350do
2351 IFS=$as_save_IFS
2352 test -z "$as_dir" && as_dir=.
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2355 ac_cv_prog_ac_ct_CC="$ac_prog"
2356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 break 2
2358 fi
2359done
2360done
2361
2362fi
2363fi
2364ac_ct_CC=$ac_cv_prog_ac_ct_CC
2365if test -n "$ac_ct_CC"; then
2366 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2367echo "${ECHO_T}$ac_ct_CC" >&6
2368else
2369 echo "$as_me:$LINENO: result: no" >&5
2370echo "${ECHO_T}no" >&6
2371fi
2372
2373 test -n "$ac_ct_CC" && break
2374done
2375
2376 CC=$ac_ct_CC
2377fi
2378
2379fi
2380
2381
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002382test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2383See \`config.log' for more details." >&5
2384echo "$as_me: error: no acceptable C compiler found in \$PATH
2385See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002386 { (exit 1); exit 1; }; }
2387
2388# Provide some information about the compiler.
2389echo "$as_me:$LINENO:" \
2390 "checking for C compiler version" >&5
2391ac_compiler=`set X $ac_compile; echo $2`
2392{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2393 (eval $ac_compiler --version </dev/null >&5) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }
2397{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2398 (eval $ac_compiler -v </dev/null >&5) 2>&5
2399 ac_status=$?
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }
2402{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2403 (eval $ac_compiler -V </dev/null >&5) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }
2407
2408cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002409/* confdefs.h. */
2410_ACEOF
2411cat confdefs.h >>conftest.$ac_ext
2412cat >>conftest.$ac_ext <<_ACEOF
2413/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002414
2415int
2416main ()
2417{
2418
2419 ;
2420 return 0;
2421}
2422_ACEOF
2423ac_clean_files_save=$ac_clean_files
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002424ac_clean_files="$ac_clean_files a.out a.exe b.out"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002425# Try to create an executable without -o first, disregard a.out.
2426# It will help us diagnose broken compilers, and finding out an intuition
2427# of exeext.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002428echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2429echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002430ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2431if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2432 (eval $ac_link_default) 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; then
2436 # Find the output, starting from the most likely. This scheme is
2437# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2438# resort.
2439
2440# Be careful to initialize this variable, since it used to be cached.
2441# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2442ac_cv_exeext=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002443# b.out is created by i960 compilers.
2444for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2445do
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002446 test -f "$ac_file" || continue
2447 case $ac_file in
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002449 ;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002450 conftest.$ac_ext )
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002451 # This is the source file.
2452 ;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002453 [ab].out )
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002454 # We found the default executable, but exeext='' is most
2455 # certainly right.
2456 break;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002457 *.* )
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002458 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2459 # FIXME: I believe we export ac_cv_exeext for Libtool,
2460 # but it would be cool to find out if it's true. Does anybody
2461 # maintain Libtool? --akim.
2462 export ac_cv_exeext
2463 break;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002464 * )
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002465 break;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002466 esac
2467done
2468else
2469 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002470sed 's/^/| /' conftest.$ac_ext >&5
2471
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002472{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002473See \`config.log' for more details." >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002474echo "$as_me: error: C compiler cannot create executables
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002475See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002476 { (exit 77); exit 77; }; }
2477fi
2478
2479ac_exeext=$ac_cv_exeext
2480echo "$as_me:$LINENO: result: $ac_file" >&5
2481echo "${ECHO_T}$ac_file" >&6
2482
2483# Check the compiler produces executables we can run. If not, either
2484# the compiler is broken, or we cross compile.
2485echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2486echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2487# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2488# If not cross compiling, check that we can run a simple program.
2489if test "$cross_compiling" != yes; then
2490 if { ac_try='./$ac_file'
2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 (eval $ac_try) 2>&5
2493 ac_status=$?
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; }; then
2496 cross_compiling=no
2497 else
2498 if test "$cross_compiling" = maybe; then
2499 cross_compiling=yes
2500 else
2501 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002502If you meant to cross compile, use \`--host'.
2503See \`config.log' for more details." >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002504echo "$as_me: error: cannot run C compiled programs.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002505If you meant to cross compile, use \`--host'.
2506See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002507 { (exit 1); exit 1; }; }
2508 fi
2509 fi
2510fi
2511echo "$as_me:$LINENO: result: yes" >&5
2512echo "${ECHO_T}yes" >&6
2513
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002514rm -f a.out a.exe conftest$ac_cv_exeext b.out
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002515ac_clean_files=$ac_clean_files_save
2516# Check the compiler produces executables we can run. If not, either
2517# the compiler is broken, or we cross compile.
2518echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2519echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2520echo "$as_me:$LINENO: result: $cross_compiling" >&5
2521echo "${ECHO_T}$cross_compiling" >&6
2522
2523echo "$as_me:$LINENO: checking for suffix of executables" >&5
2524echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2526 (eval $ac_link) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; then
2530 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2531# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2532# work properly (i.e., refer to `conftest.exe'), while it won't with
2533# `rm'.
2534for ac_file in conftest.exe conftest conftest.*; do
2535 test -f "$ac_file" || continue
2536 case $ac_file in
2537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2538 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002539 export ac_cv_exeext
2540 break;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002541 * ) break;;
2542 esac
2543done
2544else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002545 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2546See \`config.log' for more details." >&5
2547echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2548See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002549 { (exit 1); exit 1; }; }
2550fi
2551
2552rm -f conftest$ac_cv_exeext
2553echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2554echo "${ECHO_T}$ac_cv_exeext" >&6
2555
2556rm -f conftest.$ac_ext
2557EXEEXT=$ac_cv_exeext
2558ac_exeext=$EXEEXT
2559echo "$as_me:$LINENO: checking for suffix of object files" >&5
2560echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2561if test "${ac_cv_objext+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2563else
2564 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002565/* confdefs.h. */
2566_ACEOF
2567cat confdefs.h >>conftest.$ac_ext
2568cat >>conftest.$ac_ext <<_ACEOF
2569/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002570
2571int
2572main ()
2573{
2574
2575 ;
2576 return 0;
2577}
2578_ACEOF
2579rm -f conftest.o conftest.obj
2580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581 (eval $ac_compile) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; then
2585 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2586 case $ac_file in
2587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2588 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2589 break;;
2590 esac
2591done
2592else
2593 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002594sed 's/^/| /' conftest.$ac_ext >&5
2595
2596{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2597See \`config.log' for more details." >&5
2598echo "$as_me: error: cannot compute suffix of object files: cannot compile
2599See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002600 { (exit 1); exit 1; }; }
2601fi
2602
2603rm -f conftest.$ac_cv_objext conftest.$ac_ext
2604fi
2605echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2606echo "${ECHO_T}$ac_cv_objext" >&6
2607OBJEXT=$ac_cv_objext
2608ac_objext=$OBJEXT
2609echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2610echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2611if test "${ac_cv_c_compiler_gnu+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#ifndef __GNUC__
2625 choke me
2626#endif
2627
2628 ;
2629 return 0;
2630}
2631_ACEOF
2632rm -f conftest.$ac_objext
2633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002634 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002635 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002636 grep -v '^ *+' conftest.er1 >conftest.err
2637 rm -f conftest.er1
2638 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 (eval $ac_try) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; } &&
2647 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 (eval $ac_try) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; }; then
2653 ac_compiler_gnu=yes
2654else
2655 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002656sed 's/^/| /' conftest.$ac_ext >&5
2657
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002658ac_compiler_gnu=no
2659fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002661ac_cv_c_compiler_gnu=$ac_compiler_gnu
2662
2663fi
2664echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2665echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2666GCC=`test $ac_compiler_gnu = yes && echo yes`
2667ac_test_CFLAGS=${CFLAGS+set}
2668ac_save_CFLAGS=$CFLAGS
2669CFLAGS="-g"
2670echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2671echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2672if test "${ac_cv_prog_cc_g+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2674else
2675 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002676/* confdefs.h. */
2677_ACEOF
2678cat confdefs.h >>conftest.$ac_ext
2679cat >>conftest.$ac_ext <<_ACEOF
2680/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002681
2682int
2683main ()
2684{
2685
2686 ;
2687 return 0;
2688}
2689_ACEOF
2690rm -f conftest.$ac_objext
2691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002692 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002693 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002694 grep -v '^ *+' conftest.er1 >conftest.err
2695 rm -f conftest.er1
2696 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 (eval $ac_try) 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; } &&
2705 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 (eval $ac_try) 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; }; then
2711 ac_cv_prog_cc_g=yes
2712else
2713 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002714sed 's/^/| /' conftest.$ac_ext >&5
2715
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002716ac_cv_prog_cc_g=no
2717fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002719fi
2720echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2721echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2722if test "$ac_test_CFLAGS" = set; then
2723 CFLAGS=$ac_save_CFLAGS
2724elif test $ac_cv_prog_cc_g = yes; then
2725 if test "$GCC" = yes; then
2726 CFLAGS="-g -O2"
2727 else
2728 CFLAGS="-g"
2729 fi
2730else
2731 if test "$GCC" = yes; then
2732 CFLAGS="-O2"
2733 else
2734 CFLAGS=
2735 fi
2736fi
2737echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2738echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2739if test "${ac_cv_prog_cc_stdc+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2741else
2742 ac_cv_prog_cc_stdc=no
2743ac_save_CC=$CC
2744cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002745/* confdefs.h. */
2746_ACEOF
2747cat confdefs.h >>conftest.$ac_ext
2748cat >>conftest.$ac_ext <<_ACEOF
2749/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002750#include <stdarg.h>
2751#include <stdio.h>
2752#include <sys/types.h>
2753#include <sys/stat.h>
2754/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2755struct buf { int x; };
2756FILE * (*rcsopen) (struct buf *, struct stat *, int);
2757static char *e (p, i)
2758 char **p;
2759 int i;
2760{
2761 return p[i];
2762}
2763static char *f (char * (*g) (char **, int), char **p, ...)
2764{
2765 char *s;
2766 va_list v;
2767 va_start (v,p);
2768 s = g (p, va_arg (v,int));
2769 va_end (v);
2770 return s;
2771}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002772
2773/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2774 function prototypes and stuff, but not '\xHH' hex character constants.
2775 These don't provoke an error unfortunately, instead are silently treated
2776 as 'x'. The following induces an error, until -std1 is added to get
2777 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2778 array size at least. It's necessary to write '\x00'==0 to get something
2779 that's true only with -std1. */
2780int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2781
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002782int test (int i, double x);
2783struct s1 {int (*f) (int a);};
2784struct s2 {int (*f) (double a);};
2785int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2786int argc;
2787char **argv;
2788int
2789main ()
2790{
2791return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2792 ;
2793 return 0;
2794}
2795_ACEOF
2796# Don't try gcc -ansi; that turns off useful extensions and
2797# breaks some systems' header files.
2798# AIX -qlanglvl=ansi
2799# Ultrix and OSF/1 -std1
2800# HP-UX 10.20 and later -Ae
2801# HP-UX older versions -Aa -D_HPUX_SOURCE
2802# SVR4 -Xc -D__EXTENSIONS__
2803for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2804do
2805 CC="$ac_save_CC $ac_arg"
2806 rm -f conftest.$ac_objext
2807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002808 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002809 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002810 grep -v '^ *+' conftest.er1 >conftest.err
2811 rm -f conftest.er1
2812 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 (eval $ac_try) 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; } &&
2821 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 (eval $ac_try) 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2827 ac_cv_prog_cc_stdc=$ac_arg
2828break
2829else
2830 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002831sed 's/^/| /' conftest.$ac_ext >&5
2832
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002833fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002834rm -f conftest.err conftest.$ac_objext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002835done
2836rm -f conftest.$ac_ext conftest.$ac_objext
2837CC=$ac_save_CC
2838
2839fi
2840
2841case "x$ac_cv_prog_cc_stdc" in
2842 x|xno)
2843 echo "$as_me:$LINENO: result: none needed" >&5
2844echo "${ECHO_T}none needed" >&6 ;;
2845 *)
2846 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2847echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2848 CC="$CC $ac_cv_prog_cc_stdc" ;;
2849esac
2850
2851# Some people use a C++ compiler to compile C. Since we use `exit',
2852# in C++ we need to declare it. In case someone uses the same compiler
2853# for both compiling C and C++ we need to have the C++ compiler decide
2854# the declaration of exit, since it's the most demanding environment.
2855cat >conftest.$ac_ext <<_ACEOF
2856#ifndef __cplusplus
2857 choke me
2858#endif
2859_ACEOF
2860rm -f conftest.$ac_objext
2861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002862 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002863 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002864 grep -v '^ *+' conftest.er1 >conftest.err
2865 rm -f conftest.er1
2866 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 (eval $ac_try) 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; } &&
2875 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877 (eval $ac_try) 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; }; then
2881 for ac_declaration in \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002882 '' \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002883 'extern "C" void std::exit (int) throw (); using std::exit;' \
2884 'extern "C" void std::exit (int); using std::exit;' \
2885 'extern "C" void exit (int) throw ();' \
2886 'extern "C" void exit (int);' \
2887 'void exit (int);'
2888do
2889 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002890/* confdefs.h. */
2891_ACEOF
2892cat confdefs.h >>conftest.$ac_ext
2893cat >>conftest.$ac_ext <<_ACEOF
2894/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002895$ac_declaration
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002896#include <stdlib.h>
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002897int
2898main ()
2899{
2900exit (42);
2901 ;
2902 return 0;
2903}
2904_ACEOF
2905rm -f conftest.$ac_objext
2906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002907 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002908 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002909 grep -v '^ *+' conftest.er1 >conftest.err
2910 rm -f conftest.er1
2911 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916 (eval $ac_try) 2>&5
2917 ac_status=$?
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; } &&
2920 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922 (eval $ac_try) 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; }; then
2926 :
2927else
2928 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002929sed 's/^/| /' conftest.$ac_ext >&5
2930
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002931continue
2932fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002934 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002935/* confdefs.h. */
2936_ACEOF
2937cat confdefs.h >>conftest.$ac_ext
2938cat >>conftest.$ac_ext <<_ACEOF
2939/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002940$ac_declaration
2941int
2942main ()
2943{
2944exit (42);
2945 ;
2946 return 0;
2947}
2948_ACEOF
2949rm -f conftest.$ac_objext
2950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002951 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002952 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002953 grep -v '^ *+' conftest.er1 >conftest.err
2954 rm -f conftest.er1
2955 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960 (eval $ac_try) 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; } &&
2964 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966 (eval $ac_try) 2>&5
2967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; }; then
2970 break
2971else
2972 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002973sed 's/^/| /' conftest.$ac_ext >&5
2974
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002975fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002977done
2978rm -f conftest*
2979if test -n "$ac_declaration"; then
2980 echo '#ifdef __cplusplus' >>confdefs.h
2981 echo $ac_declaration >>confdefs.h
2982 echo '#endif' >>confdefs.h
2983fi
2984
2985else
2986 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002987sed 's/^/| /' conftest.$ac_ext >&5
2988
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002989fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002991ac_ext=c
2992ac_cpp='$CPP $CPPFLAGS'
2993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2995ac_compiler_gnu=$ac_cv_c_compiler_gnu
homeip.net!davidm34fa1222004-08-17 15:34:28 +00002996DEPDIR="${am__leading_dot}deps"
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002997
2998 ac_config_commands="$ac_config_commands depfiles"
2999
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003000
3001am_make=${MAKE-make}
3002cat > confinc << 'END'
homeip.net!davidm34fa1222004-08-17 15:34:28 +00003003am__doit:
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003004 @echo done
homeip.net!davidm34fa1222004-08-17 15:34:28 +00003005.PHONY: am__doit
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003006END
3007# If we don't find an include directive, just comment out the code.
3008echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3009echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00003010am__include="#"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003011am__quote=
3012_am_result=none
3013# First try GNU make style include.
3014echo "include confinc" > confmf
3015# We grep out `Entering directory' and `Leaving directory'
3016# messages which can occur if `w' ends up in MAKEFLAGS.
3017# In particular we don't look at `^make:' because GNU make might
3018# be invoked under some other name (usually "gmake"), in which
3019# case it prints its new name instead of `make'.
homeip.net!davidm34fa1222004-08-17 15:34:28 +00003020if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003021 am__include=include
3022 am__quote=
3023 _am_result=GNU
3024fi
3025# Now try BSD make style include.
3026if test "$am__include" = "#"; then
3027 echo '.include "confinc"' > confmf
3028 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3029 am__include=.include
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00003030 am__quote="\""
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003031 _am_result=BSD
3032 fi
3033fi
3034
3035
3036echo "$as_me:$LINENO: result: $_am_result" >&5
3037echo "${ECHO_T}$_am_result" >&6
3038rm -f confinc confmf
3039
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00003040# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3041if test "${enable_dependency_tracking+set}" = set; then
3042 enableval="$enable_dependency_tracking"
3043
3044fi;
3045if test "x$enable_dependency_tracking" != xno; then
3046 am_depcomp="$ac_aux_dir/depcomp"
3047 AMDEPBACKSLASH='\'
3048fi
3049
3050
3051if test "x$enable_dependency_tracking" != xno; then
3052 AMDEP_TRUE=
3053 AMDEP_FALSE='#'
3054else
3055 AMDEP_TRUE='#'
3056 AMDEP_FALSE=
3057fi
3058
3059
3060
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003061
3062depcc="$CC" am_compiler_list=
3063
3064echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3065echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3066if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3068else
3069 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3070 # We make a subdir and do the tests there. Otherwise we can end up
3071 # making bogus files that we don't know about and never remove. For
3072 # instance it was reported that on HP-UX the gcc test will end up
3073 # making a dummy file named `D' -- because `-MD' means `put the output
3074 # in D'.
3075 mkdir conftest.dir
3076 # Copy depcomp to subdir because otherwise we won't find it if we're
3077 # using a relative directory.
3078 cp "$am_depcomp" conftest.dir
3079 cd conftest.dir
homeip.net!davidm34fa1222004-08-17 15:34:28 +00003080 # We will build objects and dependencies in a subdirectory because
3081 # it helps to detect inapplicable dependency modes. For instance
3082 # both Tru64's cc and ICC support -MD to output dependencies as a
3083 # side effect of compilation, but ICC will put the dependencies in
3084 # the current directory while Tru64 will put them in the object
3085 # directory.
3086 mkdir sub
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003087
3088 am_cv_CC_dependencies_compiler_type=none
3089 if test "$am_compiler_list" = ""; then
3090 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3091 fi
3092 for depmode in $am_compiler_list; do
homeip.net!davidm34fa1222004-08-17 15:34:28 +00003093 # Setup a source with many dependencies, because some compilers
3094 # like to wrap large dependency lists on column 80 (with \), and
3095 # we should not choose a depcomp mode which is confused by this.
3096 #
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003097 # We need to recreate these files for each test, as the compiler may
3098 # overwrite some of them when testing with obscure command lines.
3099 # This happens at least with the AIX C compiler.
homeip.net!davidm34fa1222004-08-17 15:34:28 +00003100 : > sub/conftest.c
3101 for i in 1 2 3 4 5 6; do
3102 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3103 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3104 # Solaris 8's {/usr,}/bin/sh.
3105 touch sub/conftst$i.h
3106 done
3107 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003108
3109 case $depmode in
3110 nosideeffect)
3111 # after this tag, mechanisms are not by side-effect, so they'll
3112 # only be used when explicitly requested
3113 if test "x$enable_dependency_tracking" = xyes; then
3114 continue
3115 else
3116 break
3117 fi
3118 ;;
3119 none) break ;;
3120 esac
3121 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3122 # mode. It turns out that the SunPro C++ compiler does not properly
3123 # handle `-M -o', and we need to detect this.
3124 if depmode=$depmode \
homeip.net!davidm34fa1222004-08-17 15:34:28 +00003125 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3126 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3127 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3128 >/dev/null 2>conftest.err &&
3129 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3130 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003131 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
homeip.net!davidm34fa1222004-08-17 15:34:28 +00003132 # icc doesn't choke on unknown options, it will just issue warnings
3133 # or remarks (even with -Werror). So we grep stderr for any message
3134 # that says an option was ignored or not supported.
3135 # When given -MP, icc 7.0 and 7.1 complain thusly:
3136 # icc: Command line warning: ignoring option '-M'; no argument required
3137 # The diagnosis changed in icc 8.0:
3138 # icc: Command line remark: option '-MP' not supported
3139 if (grep 'ignoring option' conftest.err ||
3140 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3141 am_cv_CC_dependencies_compiler_type=$depmode
3142 break
3143 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003144 fi
3145 done
3146
3147 cd ..
3148 rm -rf conftest.dir
3149else
3150 am_cv_CC_dependencies_compiler_type=none
3151fi
3152
3153fi
3154echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3155echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00003156CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003157
3158
homeip.net!davidm34fa1222004-08-17 15:34:28 +00003159
3160if
3161 test "x$enable_dependency_tracking" != xno \
3162 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3163 am__fastdepCC_TRUE=
3164 am__fastdepCC_FALSE='#'
3165else
3166 am__fastdepCC_TRUE='#'
3167 am__fastdepCC_FALSE=
3168fi
3169
3170
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003171ac_ext=cc
3172ac_cpp='$CXXCPP $CPPFLAGS'
3173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3176if test -n "$ac_tool_prefix"; then
3177 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3178 do
3179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3180set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3181echo "$as_me:$LINENO: checking for $ac_word" >&5
3182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3183if test "${ac_cv_prog_CXX+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3185else
3186 if test -n "$CXX"; then
3187 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3188else
3189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190for as_dir in $PATH
3191do
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 break 2
3199 fi
3200done
3201done
3202
3203fi
3204fi
3205CXX=$ac_cv_prog_CXX
3206if test -n "$CXX"; then
3207 echo "$as_me:$LINENO: result: $CXX" >&5
3208echo "${ECHO_T}$CXX" >&6
3209else
3210 echo "$as_me:$LINENO: result: no" >&5
3211echo "${ECHO_T}no" >&6
3212fi
3213
3214 test -n "$CXX" && break
3215 done
3216fi
3217if test -z "$CXX"; then
3218 ac_ct_CXX=$CXX
3219 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3220do
3221 # Extract the first word of "$ac_prog", so it can be a program name with args.
3222set dummy $ac_prog; ac_word=$2
3223echo "$as_me:$LINENO: checking for $ac_word" >&5
3224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3225if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3227else
3228 if test -n "$ac_ct_CXX"; then
3229 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3230else
3231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232for as_dir in $PATH
3233do
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238 ac_cv_prog_ac_ct_CXX="$ac_prog"
3239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 break 2
3241 fi
3242done
3243done
3244
3245fi
3246fi
3247ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3248if test -n "$ac_ct_CXX"; then
3249 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3250echo "${ECHO_T}$ac_ct_CXX" >&6
3251else
3252 echo "$as_me:$LINENO: result: no" >&5
3253echo "${ECHO_T}no" >&6
3254fi
3255
3256 test -n "$ac_ct_CXX" && break
3257done
3258test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3259
3260 CXX=$ac_ct_CXX
3261fi
3262
3263
3264# Provide some information about the compiler.
3265echo "$as_me:$LINENO:" \
3266 "checking for C++ compiler version" >&5
3267ac_compiler=`set X $ac_compile; echo $2`
3268{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3269 (eval $ac_compiler --version </dev/null >&5) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }
3273{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3274 (eval $ac_compiler -v </dev/null >&5) 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }
3278{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3279 (eval $ac_compiler -V </dev/null >&5) 2>&5
3280 ac_status=$?
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }
3283
3284echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3285echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3286if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3288else
3289 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003290/* confdefs.h. */
3291_ACEOF
3292cat confdefs.h >>conftest.$ac_ext
3293cat >>conftest.$ac_ext <<_ACEOF
3294/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003295
3296int
3297main ()
3298{
3299#ifndef __GNUC__
3300 choke me
3301#endif
3302
3303 ;
3304 return 0;
3305}
3306_ACEOF
3307rm -f conftest.$ac_objext
3308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003309 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003310 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003311 grep -v '^ *+' conftest.er1 >conftest.err
3312 rm -f conftest.er1
3313 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 (eval $ac_try) 2>&5
3319 ac_status=$?
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; } &&
3322 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 (eval $ac_try) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; }; then
3328 ac_compiler_gnu=yes
3329else
3330 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003331sed 's/^/| /' conftest.$ac_ext >&5
3332
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003333ac_compiler_gnu=no
3334fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003336ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3337
3338fi
3339echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3340echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3341GXX=`test $ac_compiler_gnu = yes && echo yes`
3342ac_test_CXXFLAGS=${CXXFLAGS+set}
3343ac_save_CXXFLAGS=$CXXFLAGS
3344CXXFLAGS="-g"
3345echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3346echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3347if test "${ac_cv_prog_cxx_g+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3349else
3350 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003351/* confdefs.h. */
3352_ACEOF
3353cat confdefs.h >>conftest.$ac_ext
3354cat >>conftest.$ac_ext <<_ACEOF
3355/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003356
3357int
3358main ()
3359{
3360
3361 ;
3362 return 0;
3363}
3364_ACEOF
3365rm -f conftest.$ac_objext
3366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003367 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003368 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003374 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376 (eval $ac_try) 2>&5
3377 ac_status=$?
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; } &&
3380 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382 (eval $ac_try) 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; }; then
3386 ac_cv_prog_cxx_g=yes
3387else
3388 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003389sed 's/^/| /' conftest.$ac_ext >&5
3390
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003391ac_cv_prog_cxx_g=no
3392fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003394fi
3395echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3396echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3397if test "$ac_test_CXXFLAGS" = set; then
3398 CXXFLAGS=$ac_save_CXXFLAGS
3399elif test $ac_cv_prog_cxx_g = yes; then
3400 if test "$GXX" = yes; then
3401 CXXFLAGS="-g -O2"
3402 else
3403 CXXFLAGS="-g"
3404 fi
3405else
3406 if test "$GXX" = yes; then
3407 CXXFLAGS="-O2"
3408 else
3409 CXXFLAGS=
3410 fi
3411fi
3412for ac_declaration in \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003413 '' \
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003414 'extern "C" void std::exit (int) throw (); using std::exit;' \
3415 'extern "C" void std::exit (int); using std::exit;' \
3416 'extern "C" void exit (int) throw ();' \
3417 'extern "C" void exit (int);' \
3418 'void exit (int);'
3419do
3420 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003421/* confdefs.h. */
3422_ACEOF
3423cat confdefs.h >>conftest.$ac_ext
3424cat >>conftest.$ac_ext <<_ACEOF
3425/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003426$ac_declaration
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003427#include <stdlib.h>
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003428int
3429main ()
3430{
3431exit (42);
3432 ;
3433 return 0;
3434}
3435_ACEOF
3436rm -f conftest.$ac_objext
3437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003438 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003439 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003440 grep -v '^ *+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 (eval $ac_try) 2>&5
3448 ac_status=$?
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; } &&
3451 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 (eval $ac_try) 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3457 :
3458else
3459 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003460sed 's/^/| /' conftest.$ac_ext >&5
3461
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003462continue
3463fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003465 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003466/* confdefs.h. */
3467_ACEOF
3468cat confdefs.h >>conftest.$ac_ext
3469cat >>conftest.$ac_ext <<_ACEOF
3470/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003471$ac_declaration
3472int
3473main ()
3474{
3475exit (42);
3476 ;
3477 return 0;
3478}
3479_ACEOF
3480rm -f conftest.$ac_objext
3481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003482 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003483 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003484 grep -v '^ *+' conftest.er1 >conftest.err
3485 rm -f conftest.er1
3486 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003489 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; } &&
3495 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 (eval $ac_try) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3501 break
3502else
3503 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003504sed 's/^/| /' conftest.$ac_ext >&5
3505
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003506fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003508done
3509rm -f conftest*
3510if test -n "$ac_declaration"; then
3511 echo '#ifdef __cplusplus' >>confdefs.h
3512 echo $ac_declaration >>confdefs.h
3513 echo '#endif' >>confdefs.h
3514fi
3515
3516ac_ext=c
3517ac_cpp='$CPP $CPPFLAGS'
3518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520ac_compiler_gnu=$ac_cv_c_compiler_gnu
3521
3522depcc="$CXX" am_compiler_list=
3523
3524echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3525echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3526if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3528else
3529 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3530 # We make a subdir and do the tests there. Otherwise we can end up
3531 # making bogus files that we don't know about and never remove. For
3532 # instance it was reported that on HP-UX the gcc test will end up
3533 # making a dummy file named `D' -- because `-MD' means `put the output
3534 # in D'.
3535 mkdir conftest.dir
3536 # Copy depcomp to subdir because otherwise we won't find it if we're
3537 # using a relative directory.
3538 cp "$am_depcomp" conftest.dir
3539 cd conftest.dir
homeip.net!davidm34fa1222004-08-17 15:34:28 +00003540 # We will build objects and dependencies in a subdirectory because
3541 # it helps to detect inapplicable dependency modes. For instance
3542 # both Tru64's cc and ICC support -MD to output dependencies as a
3543 # side effect of compilation, but ICC will put the dependencies in
3544 # the current directory while Tru64 will put them in the object
3545 # directory.
3546 mkdir sub
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003547
3548 am_cv_CXX_dependencies_compiler_type=none
3549 if test "$am_compiler_list" = ""; then
3550 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3551 fi
3552 for depmode in $am_compiler_list; do
homeip.net!davidm34fa1222004-08-17 15:34:28 +00003553 # Setup a source with many dependencies, because some compilers
3554 # like to wrap large dependency lists on column 80 (with \), and
3555 # we should not choose a depcomp mode which is confused by this.
3556 #
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003557 # We need to recreate these files for each test, as the compiler may
3558 # overwrite some of them when testing with obscure command lines.
3559 # This happens at least with the AIX C compiler.
homeip.net!davidm34fa1222004-08-17 15:34:28 +00003560 : > sub/conftest.c
3561 for i in 1 2 3 4 5 6; do
3562 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3563 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3564 # Solaris 8's {/usr,}/bin/sh.
3565 touch sub/conftst$i.h
3566 done
3567 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003568
3569 case $depmode in
3570 nosideeffect)
3571 # after this tag, mechanisms are not by side-effect, so they'll
3572 # only be used when explicitly requested
3573 if test "x$enable_dependency_tracking" = xyes; then
3574 continue
3575 else
3576 break
3577 fi
3578 ;;
3579 none) break ;;
3580 esac
3581 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3582 # mode. It turns out that the SunPro C++ compiler does not properly
3583 # handle `-M -o', and we need to detect this.
3584 if depmode=$depmode \
homeip.net!davidm34fa1222004-08-17 15:34:28 +00003585 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3586 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3587 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3588 >/dev/null 2>conftest.err &&
3589 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3590 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003591 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
homeip.net!davidm34fa1222004-08-17 15:34:28 +00003592 # icc doesn't choke on unknown options, it will just issue warnings
3593 # or remarks (even with -Werror). So we grep stderr for any message
3594 # that says an option was ignored or not supported.
3595 # When given -MP, icc 7.0 and 7.1 complain thusly:
3596 # icc: Command line warning: ignoring option '-M'; no argument required
3597 # The diagnosis changed in icc 8.0:
3598 # icc: Command line remark: option '-MP' not supported
3599 if (grep 'ignoring option' conftest.err ||
3600 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3601 am_cv_CXX_dependencies_compiler_type=$depmode
3602 break
3603 fi
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003604 fi
3605 done
3606
3607 cd ..
3608 rm -rf conftest.dir
3609else
3610 am_cv_CXX_dependencies_compiler_type=none
3611fi
3612
3613fi
3614echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3615echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3616CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3617
3618
homeip.net!davidm34fa1222004-08-17 15:34:28 +00003619
3620if
3621 test "x$enable_dependency_tracking" != xno \
3622 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3623 am__fastdepCXX_TRUE=
3624 am__fastdepCXX_FALSE='#'
3625else
3626 am__fastdepCXX_TRUE='#'
3627 am__fastdepCXX_FALSE=
3628fi
3629
3630
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003631# Find a good install program. We prefer a C program (faster),
3632# so one script is as good as another. But avoid the broken or
3633# incompatible versions:
3634# SysV /etc/install, /usr/sbin/install
3635# SunOS /usr/etc/install
3636# IRIX /sbin/install
3637# AIX /bin/install
3638# AmigaOS /C/install, which installs bootblocks on floppy discs
3639# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3640# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3641# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003642# OS/2's system install, which has a completely different semantic
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003643# ./install, which can be erroneously created by make from ./install.sh.
3644echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3645echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3646if test -z "$INSTALL"; then
3647if test "${ac_cv_path_install+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3649else
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651for as_dir in $PATH
3652do
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
3655 # Account for people who put trailing slashes in PATH elements.
3656case $as_dir/ in
3657 ./ | .// | /cC/* | \
3658 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003659 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003660 /usr/ucb/* ) ;;
3661 *)
3662 # OSF1 and SCO ODT 3.0 have their own names for install.
3663 # Don't use installbsd from OSF since it installs stuff as root
3664 # by default.
3665 for ac_prog in ginstall scoinst install; do
3666 for ac_exec_ext in '' $ac_executable_extensions; do
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003667 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3668 if test $ac_prog = install &&
3669 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3670 # AIX install. It has an incompatible calling convention.
3671 :
3672 elif test $ac_prog = install &&
3673 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3674 # program-specific install script used by HP pwplus--don't use.
3675 :
3676 else
3677 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3678 break 3
3679 fi
3680 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003681 done
3682 done
3683 ;;
3684esac
3685done
3686
3687
3688fi
3689 if test "${ac_cv_path_install+set}" = set; then
3690 INSTALL=$ac_cv_path_install
3691 else
3692 # As a last resort, use the slow shell script. We don't cache a
3693 # path for INSTALL within a source directory, because that will
3694 # break other packages using the cache if that directory is
3695 # removed, or if the path is relative.
3696 INSTALL=$ac_install_sh
3697 fi
3698fi
3699echo "$as_me:$LINENO: result: $INSTALL" >&5
3700echo "${ECHO_T}$INSTALL" >&6
3701
3702# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3703# It thinks the first close brace ends the variable substitution.
3704test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3705
3706test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3707
3708test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3709
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003710echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3711echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003712set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003713if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3715else
3716 cat >conftest.make <<\_ACEOF
3717all:
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003718 @echo 'ac_maketemp="$(MAKE)"'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003719_ACEOF
3720# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3721eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3722if test -n "$ac_maketemp"; then
3723 eval ac_cv_prog_make_${ac_make}_set=yes
3724else
3725 eval ac_cv_prog_make_${ac_make}_set=no
3726fi
3727rm -f conftest.make
3728fi
3729if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3730 echo "$as_me:$LINENO: result: yes" >&5
3731echo "${ECHO_T}yes" >&6
3732 SET_MAKE=
3733else
3734 echo "$as_me:$LINENO: result: no" >&5
3735echo "${ECHO_T}no" >&6
3736 SET_MAKE="MAKE=${MAKE-make}"
3737fi
3738
3739# Check whether --enable-shared or --disable-shared was given.
3740if test "${enable_shared+set}" = set; then
3741 enableval="$enable_shared"
3742 p=${PACKAGE-default}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003743 case $enableval in
3744 yes) enable_shared=yes ;;
3745 no) enable_shared=no ;;
3746 *)
3747 enable_shared=no
3748 # Look at the argument we got. We use all the common list separators.
3749 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3750 for pkg in $enableval; do
3751 IFS="$lt_save_ifs"
3752 if test "X$pkg" = "X$p"; then
3753 enable_shared=yes
3754 fi
3755 done
3756 IFS="$lt_save_ifs"
3757 ;;
3758 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003759else
3760 enable_shared=yes
3761fi;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003762
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003763# Check whether --enable-static or --disable-static was given.
3764if test "${enable_static+set}" = set; then
3765 enableval="$enable_static"
3766 p=${PACKAGE-default}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003767 case $enableval in
3768 yes) enable_static=yes ;;
3769 no) enable_static=no ;;
3770 *)
3771 enable_static=no
3772 # Look at the argument we got. We use all the common list separators.
3773 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3774 for pkg in $enableval; do
3775 IFS="$lt_save_ifs"
3776 if test "X$pkg" = "X$p"; then
3777 enable_static=yes
3778 fi
3779 done
3780 IFS="$lt_save_ifs"
3781 ;;
3782 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003783else
3784 enable_static=yes
3785fi;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003786
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003787# Check whether --enable-fast-install or --disable-fast-install was given.
3788if test "${enable_fast_install+set}" = set; then
3789 enableval="$enable_fast_install"
3790 p=${PACKAGE-default}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003791 case $enableval in
3792 yes) enable_fast_install=yes ;;
3793 no) enable_fast_install=no ;;
3794 *)
3795 enable_fast_install=no
3796 # Look at the argument we got. We use all the common list separators.
3797 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3798 for pkg in $enableval; do
3799 IFS="$lt_save_ifs"
3800 if test "X$pkg" = "X$p"; then
3801 enable_fast_install=yes
3802 fi
3803 done
3804 IFS="$lt_save_ifs"
3805 ;;
3806 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003807else
3808 enable_fast_install=yes
3809fi;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003810
3811echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3812echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3813if test "${lt_cv_path_SED+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815else
3816 # Loop through the user's path and test for sed and gsed.
3817# Then use that list of sed's as ones to test for truncation.
3818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819for as_dir in $PATH
3820do
3821 IFS=$as_save_IFS
3822 test -z "$as_dir" && as_dir=.
3823 for lt_ac_prog in sed gsed; do
3824 for ac_exec_ext in '' $ac_executable_extensions; do
3825 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3826 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3827 fi
3828 done
3829 done
3830done
3831lt_ac_max=0
3832lt_ac_count=0
3833# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3834# along with /bin/sed that truncates output.
3835for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3836 test ! -f $lt_ac_sed && break
3837 cat /dev/null > conftest.in
3838 lt_ac_count=0
3839 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3840 # Check for GNU sed and select it if it is found.
3841 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3842 lt_cv_path_SED=$lt_ac_sed
3843 break
3844 fi
3845 while true; do
3846 cat conftest.in conftest.in >conftest.tmp
3847 mv conftest.tmp conftest.in
3848 cp conftest.in conftest.nl
3849 echo >>conftest.nl
3850 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3851 cmp -s conftest.out conftest.nl || break
3852 # 10000 chars as input seems more than enough
3853 test $lt_ac_count -gt 10 && break
3854 lt_ac_count=`expr $lt_ac_count + 1`
3855 if test $lt_ac_count -gt $lt_ac_max; then
3856 lt_ac_max=$lt_ac_count
3857 lt_cv_path_SED=$lt_ac_sed
3858 fi
3859 done
3860done
3861SED=$lt_cv_path_SED
3862
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003863fi
3864
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003865echo "$as_me:$LINENO: result: $SED" >&5
3866echo "${ECHO_T}$SED" >&6
3867
3868echo "$as_me:$LINENO: checking for egrep" >&5
3869echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3870if test "${ac_cv_prog_egrep+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872else
3873 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3874 then ac_cv_prog_egrep='grep -E'
3875 else ac_cv_prog_egrep='egrep'
3876 fi
3877fi
3878echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3879echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3880 EGREP=$ac_cv_prog_egrep
3881
3882
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003883
3884# Check whether --with-gnu-ld or --without-gnu-ld was given.
3885if test "${with_gnu_ld+set}" = set; then
3886 withval="$with_gnu_ld"
3887 test "$withval" = no || with_gnu_ld=yes
3888else
3889 with_gnu_ld=no
3890fi;
3891ac_prog=ld
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003892if test "$GCC" = yes; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003893 # Check if gcc -print-prog-name=ld gives a path.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003894 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3895echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003896 case $host in
3897 *-*-mingw*)
3898 # gcc leaves a trailing carriage return which upsets mingw
3899 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3900 *)
3901 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3902 esac
3903 case $ac_prog in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003904 # Accept absolute paths.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003905 [\\/]* | ?:[\\/]*)
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003906 re_direlt='/[^/][^/]*/\.\./'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003907 # Canonicalize the pathname of ld
3908 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003909 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003910 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003911 done
3912 test -z "$LD" && LD="$ac_prog"
3913 ;;
3914 "")
3915 # If it fails, then pretend we aren't using GCC.
3916 ac_prog=ld
3917 ;;
3918 *)
3919 # If it is relative, then search for the first ld in PATH.
3920 with_gnu_ld=unknown
3921 ;;
3922 esac
3923elif test "$with_gnu_ld" = yes; then
3924 echo "$as_me:$LINENO: checking for GNU ld" >&5
3925echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3926else
3927 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3928echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3929fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003930if test "${lt_cv_path_LD+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003931 echo $ECHO_N "(cached) $ECHO_C" >&6
3932else
3933 if test -z "$LD"; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003934 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003935 for ac_dir in $PATH; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003936 IFS="$lt_save_ifs"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003937 test -z "$ac_dir" && ac_dir=.
3938 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003939 lt_cv_path_LD="$ac_dir/$ac_prog"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003940 # Check to see if the program is GNU ld. I'd rather use --version,
3941 # but apparently some GNU ld's only accept -v.
3942 # Break only if it was the GNU/non-GNU ld that we prefer.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003943 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3944 *GNU* | *'with BFD'*)
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003945 test "$with_gnu_ld" != no && break
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003946 ;;
3947 *)
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003948 test "$with_gnu_ld" != yes && break
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003949 ;;
3950 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003951 fi
3952 done
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003953 IFS="$lt_save_ifs"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003954else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003955 lt_cv_path_LD="$LD" # Let the user override the test with a path.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003956fi
3957fi
3958
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003959LD="$lt_cv_path_LD"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003960if test -n "$LD"; then
3961 echo "$as_me:$LINENO: result: $LD" >&5
3962echo "${ECHO_T}$LD" >&6
3963else
3964 echo "$as_me:$LINENO: result: no" >&5
3965echo "${ECHO_T}no" >&6
3966fi
3967test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3968echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3969 { (exit 1); exit 1; }; }
3970echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3971echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003972if test "${lt_cv_prog_gnu_ld+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003973 echo $ECHO_N "(cached) $ECHO_C" >&6
3974else
3975 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003976case `$LD -v 2>&1 </dev/null` in
3977*GNU* | *'with BFD'*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003978 lt_cv_prog_gnu_ld=yes
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003979 ;;
3980*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003981 lt_cv_prog_gnu_ld=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003982 ;;
3983esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003984fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003985echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3986echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3987with_gnu_ld=$lt_cv_prog_gnu_ld
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003988
3989
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003990echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3991echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3992if test "${lt_cv_ld_reload_flag+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3994else
3995 lt_cv_ld_reload_flag='-r'
3996fi
3997echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3998echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3999reload_flag=$lt_cv_ld_reload_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004000case $reload_flag in
4001"" | " "*) ;;
4002*) reload_flag=" $reload_flag" ;;
4003esac
4004reload_cmds='$LD$reload_flag -o $output$reload_objs'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004005
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004006echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4007echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004008if test "${lt_cv_path_NM+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010else
4011 if test -n "$NM"; then
4012 # Let the user override the test.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004013 lt_cv_path_NM="$NM"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004014else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004016 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004017 IFS="$lt_save_ifs"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004018 test -z "$ac_dir" && ac_dir=.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004019 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4020 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004021 # Check to see if the nm accepts a BSD-compat flag.
4022 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4023 # nm: unknown option "B" ignored
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004024 # Tru64's nm complains that /dev/null is an invalid object file
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004025 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4026 */dev/null* | *'Invalid file or object type'*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004027 lt_cv_path_NM="$tmp_nm -B"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004028 break
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004029 ;;
4030 *)
4031 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4032 */dev/null*)
4033 lt_cv_path_NM="$tmp_nm -p"
4034 break
4035 ;;
4036 *)
4037 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4038 continue # so that we can try to find one that supports BSD flags
4039 ;;
4040 esac
4041 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004042 fi
4043 done
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004044 IFS="$lt_save_ifs"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004045 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004046fi
4047fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004048echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4049echo "${ECHO_T}$lt_cv_path_NM" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004050NM="$lt_cv_path_NM"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004051
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004052echo "$as_me:$LINENO: checking whether ln -s works" >&5
4053echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4054LN_S=$as_ln_s
4055if test "$LN_S" = "ln -s"; then
4056 echo "$as_me:$LINENO: result: yes" >&5
4057echo "${ECHO_T}yes" >&6
4058else
4059 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4060echo "${ECHO_T}no, using $LN_S" >&6
4061fi
4062
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004063echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4064echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4065if test "${lt_cv_deplibs_check_method+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067else
4068 lt_cv_file_magic_cmd='$MAGIC_CMD'
4069lt_cv_file_magic_test_file=
4070lt_cv_deplibs_check_method='unknown'
4071# Need to set the preceding variable on all platforms that support
4072# interlibrary dependencies.
4073# 'none' -- dependencies not supported.
4074# `unknown' -- same as none, but documents that we really don't know.
4075# 'pass_all' -- all dependencies passed with no checks.
4076# 'test_compile' -- check by making test program.
4077# 'file_magic [[regex]]' -- check by looking for files in library path
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004078# which responds to the $file_magic_cmd with a given extended regex.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004079# If you have `file' or equivalent on your system and you're not sure
4080# whether `pass_all' will *always* work, you probably want this one.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004081
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004082case $host_os in
4083aix4* | aix5*)
4084 lt_cv_deplibs_check_method=pass_all
4085 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004086
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004087beos*)
4088 lt_cv_deplibs_check_method=pass_all
4089 ;;
4090
4091bsdi4*)
4092 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4093 lt_cv_file_magic_cmd='/usr/bin/file -L'
4094 lt_cv_file_magic_test_file=/shlib/libc.so
4095 ;;
4096
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004097cygwin*)
hp.com!davidm2de17682004-04-20 16:53:44 +00004098 # func_win32_libid is a shell function defined in ltmain.sh
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004099 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
hp.com!davidm2de17682004-04-20 16:53:44 +00004100 lt_cv_file_magic_cmd='func_win32_libid'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004101 ;;
4102
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004103mingw* | pw32*)
4104 # Base MSYS/MinGW do not provide the 'file' command needed by
hp.com!davidm2de17682004-04-20 16:53:44 +00004105 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004106 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4107 lt_cv_file_magic_cmd='$OBJDUMP -f'
4108 ;;
4109
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004110darwin* | rhapsody*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004111 lt_cv_deplibs_check_method=pass_all
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004112 ;;
4113
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004114freebsd* | kfreebsd*-gnu)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004115 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4116 case $host_cpu in
4117 i*86 )
4118 # Not sure whether the presence of OpenBSD here was a mistake.
4119 # Let's accept both of them until this is cleared up.
4120 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4121 lt_cv_file_magic_cmd=/usr/bin/file
4122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4123 ;;
4124 esac
4125 else
4126 lt_cv_deplibs_check_method=pass_all
4127 fi
4128 ;;
4129
4130gnu*)
4131 lt_cv_deplibs_check_method=pass_all
4132 ;;
4133
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004134hpux10.20* | hpux11*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004135 lt_cv_file_magic_cmd=/usr/bin/file
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004136 case "$host_cpu" in
4137 ia64*)
4138 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4139 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4140 ;;
4141 hppa*64*)
4142 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]'
4143 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4144 ;;
4145 *)
4146 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4147 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4148 ;;
4149 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004150 ;;
4151
4152irix5* | irix6* | nonstopux*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004153 case $LD in
4154 *-32|*"-32 ") libmagic=32-bit;;
4155 *-n32|*"-n32 ") libmagic=N32;;
4156 *-64|*"-64 ") libmagic=64-bit;;
4157 *) libmagic=never-match;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004158 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004159 lt_cv_deplibs_check_method=pass_all
4160 ;;
4161
4162# This must be Linux ELF.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004163linux*)
4164 lt_cv_deplibs_check_method=pass_all
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004165 ;;
4166
hp.com!davidm16230292004-07-15 17:39:59 +00004167netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004168 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004170 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004171 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004172 fi
4173 ;;
4174
4175newos6*)
4176 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4177 lt_cv_file_magic_cmd=/usr/bin/file
4178 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4179 ;;
4180
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004181nto-qnx*)
4182 lt_cv_deplibs_check_method=unknown
4183 ;;
4184
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004185openbsd*)
4186 lt_cv_file_magic_cmd=/usr/bin/file
4187 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4188 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4189 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4190 else
4191 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4192 fi
4193 ;;
4194
4195osf3* | osf4* | osf5*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004196 lt_cv_deplibs_check_method=pass_all
4197 ;;
4198
4199sco3.2v5*)
4200 lt_cv_deplibs_check_method=pass_all
4201 ;;
4202
4203solaris*)
4204 lt_cv_deplibs_check_method=pass_all
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004205 ;;
4206
4207sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4208 case $host_vendor in
4209 motorola)
4210 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]'
4211 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4212 ;;
4213 ncr)
4214 lt_cv_deplibs_check_method=pass_all
4215 ;;
4216 sequent)
4217 lt_cv_file_magic_cmd='/bin/file'
4218 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4219 ;;
4220 sni)
4221 lt_cv_file_magic_cmd='/bin/file'
4222 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4223 lt_cv_file_magic_test_file=/lib/libc.so
4224 ;;
4225 siemens)
4226 lt_cv_deplibs_check_method=pass_all
4227 ;;
4228 esac
4229 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004230
4231sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4232 lt_cv_deplibs_check_method=pass_all
4233 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004234esac
4235
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004236fi
4237echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4238echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4239file_magic_cmd=$lt_cv_file_magic_cmd
4240deplibs_check_method=$lt_cv_deplibs_check_method
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004241test -z "$deplibs_check_method" && deplibs_check_method=unknown
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004242
4243
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004244
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004245
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004246# If no C compiler was specified, use CC.
4247LTCC=${LTCC-"$CC"}
4248
4249# Allow CC to be a program name with arguments.
4250compiler=$CC
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004251
4252
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004253# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4254if test "${enable_libtool_lock+set}" = set; then
4255 enableval="$enable_libtool_lock"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004256
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004257fi;
4258test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004259
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004260# Some flags need to be propagated to the compiler or linker for good
4261# libtool support.
4262case $host in
4263ia64-*-hpux*)
4264 # Find out which ABI we are using.
4265 echo 'int i;' > conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4267 (eval $ac_compile) 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004271 case `/usr/bin/file conftest.$ac_objext` in
4272 *ELF-32*)
4273 HPUX_IA64_MODE="32"
4274 ;;
4275 *ELF-64*)
4276 HPUX_IA64_MODE="64"
4277 ;;
4278 esac
4279 fi
4280 rm -rf conftest*
4281 ;;
4282*-*-irix6*)
4283 # Find out which ABI we are using.
homeip.net!davidm34fa1222004-08-17 15:34:28 +00004284 echo '#line 4284 "configure"' > conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4286 (eval $ac_compile) 2>&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004289 (exit $ac_status); }; then
4290 if test "$lt_cv_prog_gnu_ld" = yes; then
4291 case `/usr/bin/file conftest.$ac_objext` in
4292 *32-bit*)
4293 LD="${LD-ld} -melf32bsmip"
4294 ;;
4295 *N32*)
4296 LD="${LD-ld} -melf32bmipn32"
4297 ;;
4298 *64-bit*)
4299 LD="${LD-ld} -melf64bmip"
4300 ;;
4301 esac
4302 else
4303 case `/usr/bin/file conftest.$ac_objext` in
4304 *32-bit*)
4305 LD="${LD-ld} -32"
4306 ;;
4307 *N32*)
4308 LD="${LD-ld} -n32"
4309 ;;
4310 *64-bit*)
4311 LD="${LD-ld} -64"
4312 ;;
4313 esac
4314 fi
4315 fi
4316 rm -rf conftest*
4317 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004318
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004319x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4320 # Find out which ABI we are using.
4321 echo 'int i;' > conftest.$ac_ext
4322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4323 (eval $ac_compile) 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; then
4327 case "`/usr/bin/file conftest.o`" in
4328 *32-bit*)
4329 case $host in
4330 x86_64-*linux*)
4331 LD="${LD-ld} -m elf_i386"
4332 ;;
4333 ppc64-*linux*|powerpc64-*linux*)
4334 LD="${LD-ld} -m elf32ppclinux"
4335 ;;
4336 s390x-*linux*)
4337 LD="${LD-ld} -m elf_s390"
4338 ;;
4339 sparc64-*linux*)
4340 LD="${LD-ld} -m elf32_sparc"
4341 ;;
4342 esac
4343 ;;
4344 *64-bit*)
4345 case $host in
4346 x86_64-*linux*)
4347 LD="${LD-ld} -m elf_x86_64"
4348 ;;
4349 ppc*-*linux*|powerpc*-*linux*)
4350 LD="${LD-ld} -m elf64ppc"
4351 ;;
4352 s390*-*linux*)
4353 LD="${LD-ld} -m elf64_s390"
4354 ;;
4355 sparc*-*linux*)
4356 LD="${LD-ld} -m elf64_sparc"
4357 ;;
4358 esac
4359 ;;
4360 esac
4361 fi
4362 rm -rf conftest*
4363 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004364
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004365*-*-sco3.2v5*)
4366 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4367 SAVE_CFLAGS="$CFLAGS"
4368 CFLAGS="$CFLAGS -belf"
4369 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4370echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4371if test "${lt_cv_cc_needs_belf+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4373else
4374 ac_ext=c
4375ac_cpp='$CPP $CPPFLAGS'
4376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378ac_compiler_gnu=$ac_cv_c_compiler_gnu
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004379
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004380 cat >conftest.$ac_ext <<_ACEOF
4381/* confdefs.h. */
4382_ACEOF
4383cat confdefs.h >>conftest.$ac_ext
4384cat >>conftest.$ac_ext <<_ACEOF
4385/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004386
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004387int
4388main ()
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004389{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004390
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004391 ;
4392 return 0;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004393}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004394_ACEOF
4395rm -f conftest.$ac_objext conftest$ac_exeext
4396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004397 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004398 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004399 grep -v '^ *+' conftest.er1 >conftest.err
4400 rm -f conftest.er1
4401 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 (eval $ac_try) 2>&5
4407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; } &&
4410 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412 (eval $ac_try) 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; }; then
4416 lt_cv_cc_needs_belf=yes
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004417else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004418 echo "$as_me: failed program was:" >&5
4419sed 's/^/| /' conftest.$ac_ext >&5
4420
4421lt_cv_cc_needs_belf=no
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004422fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004423rm -f conftest.err conftest.$ac_objext \
4424 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004425 ac_ext=c
4426ac_cpp='$CPP $CPPFLAGS'
4427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429ac_compiler_gnu=$ac_cv_c_compiler_gnu
4430
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004431fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004432echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4433echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4434 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4435 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4436 CFLAGS="$SAVE_CFLAGS"
4437 fi
4438 ;;
4439
4440esac
4441
4442need_locks="$enable_libtool_lock"
4443
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004444
4445ac_ext=c
4446ac_cpp='$CPP $CPPFLAGS'
4447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4449ac_compiler_gnu=$ac_cv_c_compiler_gnu
4450echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4451echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4452# On Suns, sometimes $CPP names a directory.
4453if test -n "$CPP" && test -d "$CPP"; then
4454 CPP=
4455fi
4456if test -z "$CPP"; then
4457 if test "${ac_cv_prog_CPP+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4459else
4460 # Double quotes because CPP needs to be expanded
4461 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4462 do
4463 ac_preproc_ok=false
4464for ac_c_preproc_warn_flag in '' yes
4465do
4466 # Use a header file that comes with gcc, so configuring glibc
4467 # with a fresh cross-compiler works.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4469 # <limits.h> exists even on freestanding compilers.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004470 # On the NeXT, cc -E runs the code through the compiler's parser,
4471 # not just through cpp. "Syntax error" is here to catch this case.
4472 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004473/* confdefs.h. */
4474_ACEOF
4475cat confdefs.h >>conftest.$ac_ext
4476cat >>conftest.$ac_ext <<_ACEOF
4477/* end confdefs.h. */
4478#ifdef __STDC__
4479# include <limits.h>
4480#else
4481# include <assert.h>
4482#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004483 Syntax error
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004484_ACEOF
4485if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4487 ac_status=$?
4488 grep -v '^ *+' conftest.er1 >conftest.err
4489 rm -f conftest.er1
4490 cat conftest.err >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } >/dev/null; then
4493 if test -s conftest.err; then
4494 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004496 else
4497 ac_cpp_err=
4498 fi
4499else
4500 ac_cpp_err=yes
4501fi
4502if test -z "$ac_cpp_err"; then
4503 :
4504else
4505 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004506sed 's/^/| /' conftest.$ac_ext >&5
4507
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004508 # Broken: fails on valid input.
4509continue
4510fi
4511rm -f conftest.err conftest.$ac_ext
4512
4513 # OK, works on sane cases. Now check whether non-existent headers
4514 # can be detected and how.
4515 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004516/* confdefs.h. */
4517_ACEOF
4518cat confdefs.h >>conftest.$ac_ext
4519cat >>conftest.$ac_ext <<_ACEOF
4520/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004521#include <ac_nonexistent.h>
4522_ACEOF
4523if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4525 ac_status=$?
4526 grep -v '^ *+' conftest.er1 >conftest.err
4527 rm -f conftest.er1
4528 cat conftest.err >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); } >/dev/null; then
4531 if test -s conftest.err; then
4532 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004534 else
4535 ac_cpp_err=
4536 fi
4537else
4538 ac_cpp_err=yes
4539fi
4540if test -z "$ac_cpp_err"; then
4541 # Broken: success on invalid input.
4542continue
4543else
4544 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004545sed 's/^/| /' conftest.$ac_ext >&5
4546
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004547 # Passes both tests.
4548ac_preproc_ok=:
4549break
4550fi
4551rm -f conftest.err conftest.$ac_ext
4552
4553done
4554# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4555rm -f conftest.err conftest.$ac_ext
4556if $ac_preproc_ok; then
4557 break
4558fi
4559
4560 done
4561 ac_cv_prog_CPP=$CPP
4562
4563fi
4564 CPP=$ac_cv_prog_CPP
4565else
4566 ac_cv_prog_CPP=$CPP
4567fi
4568echo "$as_me:$LINENO: result: $CPP" >&5
4569echo "${ECHO_T}$CPP" >&6
4570ac_preproc_ok=false
4571for ac_c_preproc_warn_flag in '' yes
4572do
4573 # Use a header file that comes with gcc, so configuring glibc
4574 # with a fresh cross-compiler works.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4576 # <limits.h> exists even on freestanding compilers.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004577 # On the NeXT, cc -E runs the code through the compiler's parser,
4578 # not just through cpp. "Syntax error" is here to catch this case.
4579 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004580/* confdefs.h. */
4581_ACEOF
4582cat confdefs.h >>conftest.$ac_ext
4583cat >>conftest.$ac_ext <<_ACEOF
4584/* end confdefs.h. */
4585#ifdef __STDC__
4586# include <limits.h>
4587#else
4588# include <assert.h>
4589#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004590 Syntax error
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004591_ACEOF
4592if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4594 ac_status=$?
4595 grep -v '^ *+' conftest.er1 >conftest.err
4596 rm -f conftest.er1
4597 cat conftest.err >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } >/dev/null; then
4600 if test -s conftest.err; then
4601 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004603 else
4604 ac_cpp_err=
4605 fi
4606else
4607 ac_cpp_err=yes
4608fi
4609if test -z "$ac_cpp_err"; then
4610 :
4611else
4612 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004613sed 's/^/| /' conftest.$ac_ext >&5
4614
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004615 # Broken: fails on valid input.
4616continue
4617fi
4618rm -f conftest.err conftest.$ac_ext
4619
4620 # OK, works on sane cases. Now check whether non-existent headers
4621 # can be detected and how.
4622 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004623/* confdefs.h. */
4624_ACEOF
4625cat confdefs.h >>conftest.$ac_ext
4626cat >>conftest.$ac_ext <<_ACEOF
4627/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004628#include <ac_nonexistent.h>
4629_ACEOF
4630if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4632 ac_status=$?
4633 grep -v '^ *+' conftest.er1 >conftest.err
4634 rm -f conftest.er1
4635 cat conftest.err >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } >/dev/null; then
4638 if test -s conftest.err; then
4639 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004641 else
4642 ac_cpp_err=
4643 fi
4644else
4645 ac_cpp_err=yes
4646fi
4647if test -z "$ac_cpp_err"; then
4648 # Broken: success on invalid input.
4649continue
4650else
4651 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004652sed 's/^/| /' conftest.$ac_ext >&5
4653
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004654 # Passes both tests.
4655ac_preproc_ok=:
4656break
4657fi
4658rm -f conftest.err conftest.$ac_ext
4659
4660done
4661# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4662rm -f conftest.err conftest.$ac_ext
4663if $ac_preproc_ok; then
4664 :
4665else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004666 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4667See \`config.log' for more details." >&5
4668echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4669See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004670 { (exit 1); exit 1; }; }
4671fi
4672
4673ac_ext=c
4674ac_cpp='$CPP $CPPFLAGS'
4675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4677ac_compiler_gnu=$ac_cv_c_compiler_gnu
4678
4679
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004680echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4681echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4682if test "${ac_cv_header_stdc+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4684else
4685 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004686/* confdefs.h. */
4687_ACEOF
4688cat confdefs.h >>conftest.$ac_ext
4689cat >>conftest.$ac_ext <<_ACEOF
4690/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004691#include <stdlib.h>
4692#include <stdarg.h>
4693#include <string.h>
4694#include <float.h>
4695
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004696int
4697main ()
4698{
4699
4700 ;
4701 return 0;
4702}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004703_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004704rm -f conftest.$ac_objext
4705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004706 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004707 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004708 grep -v '^ *+' conftest.er1 >conftest.err
4709 rm -f conftest.er1
4710 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004712 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try='test -s conftest.$ac_objext'
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004725 ac_cv_header_stdc=yes
4726else
4727 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004728sed 's/^/| /' conftest.$ac_ext >&5
4729
4730ac_cv_header_stdc=no
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004731fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004733
4734if test $ac_cv_header_stdc = yes; then
4735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4736 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004737/* confdefs.h. */
4738_ACEOF
4739cat confdefs.h >>conftest.$ac_ext
4740cat >>conftest.$ac_ext <<_ACEOF
4741/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004742#include <string.h>
4743
4744_ACEOF
4745if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4746 $EGREP "memchr" >/dev/null 2>&1; then
4747 :
4748else
4749 ac_cv_header_stdc=no
4750fi
4751rm -f conftest*
4752
4753fi
4754
4755if test $ac_cv_header_stdc = yes; then
4756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4757 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004758/* confdefs.h. */
4759_ACEOF
4760cat confdefs.h >>conftest.$ac_ext
4761cat >>conftest.$ac_ext <<_ACEOF
4762/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004763#include <stdlib.h>
4764
4765_ACEOF
4766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4767 $EGREP "free" >/dev/null 2>&1; then
4768 :
4769else
4770 ac_cv_header_stdc=no
4771fi
4772rm -f conftest*
4773
4774fi
4775
4776if test $ac_cv_header_stdc = yes; then
4777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4778 if test "$cross_compiling" = yes; then
4779 :
4780else
4781 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004782/* confdefs.h. */
4783_ACEOF
4784cat confdefs.h >>conftest.$ac_ext
4785cat >>conftest.$ac_ext <<_ACEOF
4786/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004787#include <ctype.h>
4788#if ((' ' & 0x0FF) == 0x020)
4789# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4790# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4791#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004792# define ISLOWER(c) \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004793 (('a' <= (c) && (c) <= 'i') \
4794 || ('j' <= (c) && (c) <= 'r') \
4795 || ('s' <= (c) && (c) <= 'z'))
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004796# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4797#endif
4798
4799#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4800int
4801main ()
4802{
4803 int i;
4804 for (i = 0; i < 256; i++)
4805 if (XOR (islower (i), ISLOWER (i))
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004806 || toupper (i) != TOUPPER (i))
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004807 exit(2);
4808 exit (0);
4809}
4810_ACEOF
4811rm -f conftest$ac_exeext
4812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4813 (eval $ac_link) 2>&5
4814 ac_status=$?
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818 (eval $ac_try) 2>&5
4819 ac_status=$?
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 :
4823else
4824 echo "$as_me: program exited with status $ac_status" >&5
4825echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004826sed 's/^/| /' conftest.$ac_ext >&5
4827
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004828( exit $ac_status )
4829ac_cv_header_stdc=no
4830fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004831rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004832fi
4833fi
4834fi
4835echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4836echo "${ECHO_T}$ac_cv_header_stdc" >&6
4837if test $ac_cv_header_stdc = yes; then
4838
4839cat >>confdefs.h <<\_ACEOF
4840#define STDC_HEADERS 1
4841_ACEOF
4842
4843fi
4844
4845# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855for 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 +00004856 inttypes.h stdint.h unistd.h
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004857do
4858as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4859echo "$as_me:$LINENO: checking for $ac_header" >&5
4860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4861if eval "test \"\${$as_ac_Header+set}\" = set"; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
4864 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004865/* confdefs.h. */
4866_ACEOF
4867cat confdefs.h >>conftest.$ac_ext
4868cat >>conftest.$ac_ext <<_ACEOF
4869/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004870$ac_includes_default
4871
4872#include <$ac_header>
4873_ACEOF
4874rm -f conftest.$ac_objext
4875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004876 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004877 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004878 grep -v '^ *+' conftest.er1 >conftest.err
4879 rm -f conftest.er1
4880 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 (eval $ac_try) 2>&5
4886 ac_status=$?
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; } &&
4889 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 (eval $ac_try) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4895 eval "$as_ac_Header=yes"
4896else
4897 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004898sed 's/^/| /' conftest.$ac_ext >&5
4899
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004900eval "$as_ac_Header=no"
4901fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004903fi
4904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4905echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4906if test `eval echo '${'$as_ac_Header'}'` = yes; then
4907 cat >>confdefs.h <<_ACEOF
4908#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4909_ACEOF
4910
4911fi
4912
4913done
4914
4915
4916
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004917for ac_header in dlfcn.h
4918do
4919as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4920if eval "test \"\${$as_ac_Header+set}\" = set"; then
4921 echo "$as_me:$LINENO: checking for $ac_header" >&5
4922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4923if eval "test \"\${$as_ac_Header+set}\" = set"; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4925fi
4926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4928else
4929 # Is the header compilable?
4930echo "$as_me:$LINENO: checking $ac_header usability" >&5
4931echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4932cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004933/* confdefs.h. */
4934_ACEOF
4935cat confdefs.h >>conftest.$ac_ext
4936cat >>conftest.$ac_ext <<_ACEOF
4937/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004938$ac_includes_default
4939#include <$ac_header>
4940_ACEOF
4941rm -f conftest.$ac_objext
4942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004943 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004944 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004945 grep -v '^ *+' conftest.er1 >conftest.err
4946 rm -f conftest.er1
4947 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 (eval $ac_try) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; } &&
4956 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 (eval $ac_try) 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4962 ac_header_compiler=yes
4963else
4964 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004965sed 's/^/| /' conftest.$ac_ext >&5
4966
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004967ac_header_compiler=no
4968fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004970echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4971echo "${ECHO_T}$ac_header_compiler" >&6
4972
4973# Is the header present?
4974echo "$as_me:$LINENO: checking $ac_header presence" >&5
4975echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4976cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004977/* confdefs.h. */
4978_ACEOF
4979cat confdefs.h >>conftest.$ac_ext
4980cat >>conftest.$ac_ext <<_ACEOF
4981/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004982#include <$ac_header>
4983_ACEOF
4984if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4986 ac_status=$?
4987 grep -v '^ *+' conftest.er1 >conftest.err
4988 rm -f conftest.er1
4989 cat conftest.err >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } >/dev/null; then
4992 if test -s conftest.err; then
4993 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004995 else
4996 ac_cpp_err=
4997 fi
4998else
4999 ac_cpp_err=yes
5000fi
5001if test -z "$ac_cpp_err"; then
5002 ac_header_preproc=yes
5003else
5004 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00005005sed 's/^/| /' conftest.$ac_ext >&5
5006
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005007 ac_header_preproc=no
5008fi
5009rm -f conftest.err conftest.$ac_ext
5010echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5011echo "${ECHO_T}$ac_header_preproc" >&6
5012
5013# So? What about this header?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005014case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5015 yes:no: )
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5017echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5019echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5020 ac_header_preproc=yes
mostang.com!davidm046362a2003-12-05 06:42:28 +00005021 ;;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005022 no:yes:* )
mostang.com!davidm046362a2003-12-05 06:42:28 +00005023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5024echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5026echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5028echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5030echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +00005031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5032echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5034echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +00005035 (
5036 cat <<\_ASBOX
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005037## ----------------------------------------- ##
5038## Report this to libunwind@linux.hpl.hp.com ##
5039## ----------------------------------------- ##
hp.com!davidm01b02dd2003-09-24 21:51:53 +00005040_ASBOX
5041 ) |
5042 sed "s/^/$as_me: WARNING: /" >&2
5043 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005044esac
5045echo "$as_me:$LINENO: checking for $ac_header" >&5
5046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5047if eval "test \"\${$as_ac_Header+set}\" = set"; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5049else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005050 eval "$as_ac_Header=\$ac_header_preproc"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005051fi
5052echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5053echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5054
5055fi
5056if test `eval echo '${'$as_ac_Header'}'` = yes; then
5057 cat >>confdefs.h <<_ACEOF
5058#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5059_ACEOF
5060
5061fi
5062
5063done
5064
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005065ac_ext=cc
5066ac_cpp='$CXXCPP $CPPFLAGS'
5067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5070echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5071echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5072if test -z "$CXXCPP"; then
5073 if test "${ac_cv_prog_CXXCPP+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005076 # Double quotes because CXXCPP needs to be expanded
5077 for CXXCPP in "$CXX -E" "/lib/cpp"
5078 do
5079 ac_preproc_ok=false
5080for ac_cxx_preproc_warn_flag in '' yes
5081do
5082 # Use a header file that comes with gcc, so configuring glibc
5083 # with a fresh cross-compiler works.
5084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5085 # <limits.h> exists even on freestanding compilers.
5086 # On the NeXT, cc -E runs the code through the compiler's parser,
5087 # not just through cpp. "Syntax error" is here to catch this case.
5088 cat >conftest.$ac_ext <<_ACEOF
5089/* confdefs.h. */
5090_ACEOF
5091cat confdefs.h >>conftest.$ac_ext
5092cat >>conftest.$ac_ext <<_ACEOF
5093/* end confdefs.h. */
5094#ifdef __STDC__
5095# include <limits.h>
5096#else
5097# include <assert.h>
5098#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005099 Syntax error
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005100_ACEOF
5101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5103 ac_status=$?
5104 grep -v '^ *+' conftest.er1 >conftest.err
5105 rm -f conftest.er1
5106 cat conftest.err >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } >/dev/null; then
5109 if test -s conftest.err; then
5110 ac_cpp_err=$ac_cxx_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005111 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005112 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005113 ac_cpp_err=
5114 fi
5115else
5116 ac_cpp_err=yes
5117fi
5118if test -z "$ac_cpp_err"; then
5119 :
5120else
5121 echo "$as_me: failed program was:" >&5
5122sed 's/^/| /' conftest.$ac_ext >&5
5123
5124 # Broken: fails on valid input.
5125continue
5126fi
5127rm -f conftest.err conftest.$ac_ext
5128
5129 # OK, works on sane cases. Now check whether non-existent headers
5130 # can be detected and how.
5131 cat >conftest.$ac_ext <<_ACEOF
5132/* confdefs.h. */
5133_ACEOF
5134cat confdefs.h >>conftest.$ac_ext
5135cat >>conftest.$ac_ext <<_ACEOF
5136/* end confdefs.h. */
5137#include <ac_nonexistent.h>
5138_ACEOF
5139if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5141 ac_status=$?
5142 grep -v '^ *+' conftest.er1 >conftest.err
5143 rm -f conftest.er1
5144 cat conftest.err >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } >/dev/null; then
5147 if test -s conftest.err; then
5148 ac_cpp_err=$ac_cxx_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005149 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005150 else
5151 ac_cpp_err=
5152 fi
5153else
5154 ac_cpp_err=yes
5155fi
5156if test -z "$ac_cpp_err"; then
5157 # Broken: success on invalid input.
5158continue
5159else
5160 echo "$as_me: failed program was:" >&5
5161sed 's/^/| /' conftest.$ac_ext >&5
5162
5163 # Passes both tests.
5164ac_preproc_ok=:
5165break
5166fi
5167rm -f conftest.err conftest.$ac_ext
5168
5169done
5170# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5171rm -f conftest.err conftest.$ac_ext
5172if $ac_preproc_ok; then
5173 break
5174fi
5175
5176 done
5177 ac_cv_prog_CXXCPP=$CXXCPP
5178
5179fi
5180 CXXCPP=$ac_cv_prog_CXXCPP
5181else
5182 ac_cv_prog_CXXCPP=$CXXCPP
5183fi
5184echo "$as_me:$LINENO: result: $CXXCPP" >&5
5185echo "${ECHO_T}$CXXCPP" >&6
5186ac_preproc_ok=false
5187for ac_cxx_preproc_warn_flag in '' yes
5188do
5189 # Use a header file that comes with gcc, so configuring glibc
5190 # with a fresh cross-compiler works.
5191 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5192 # <limits.h> exists even on freestanding compilers.
5193 # On the NeXT, cc -E runs the code through the compiler's parser,
5194 # not just through cpp. "Syntax error" is here to catch this case.
5195 cat >conftest.$ac_ext <<_ACEOF
5196/* confdefs.h. */
5197_ACEOF
5198cat confdefs.h >>conftest.$ac_ext
5199cat >>conftest.$ac_ext <<_ACEOF
5200/* end confdefs.h. */
5201#ifdef __STDC__
5202# include <limits.h>
5203#else
5204# include <assert.h>
5205#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005206 Syntax error
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005207_ACEOF
5208if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5210 ac_status=$?
5211 grep -v '^ *+' conftest.er1 >conftest.err
5212 rm -f conftest.er1
5213 cat conftest.err >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } >/dev/null; then
5216 if test -s conftest.err; then
5217 ac_cpp_err=$ac_cxx_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005218 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005219 else
5220 ac_cpp_err=
5221 fi
5222else
5223 ac_cpp_err=yes
5224fi
5225if test -z "$ac_cpp_err"; then
5226 :
5227else
5228 echo "$as_me: failed program was:" >&5
5229sed 's/^/| /' conftest.$ac_ext >&5
5230
5231 # Broken: fails on valid input.
5232continue
5233fi
5234rm -f conftest.err conftest.$ac_ext
5235
5236 # OK, works on sane cases. Now check whether non-existent headers
5237 # can be detected and how.
5238 cat >conftest.$ac_ext <<_ACEOF
5239/* confdefs.h. */
5240_ACEOF
5241cat confdefs.h >>conftest.$ac_ext
5242cat >>conftest.$ac_ext <<_ACEOF
5243/* end confdefs.h. */
5244#include <ac_nonexistent.h>
5245_ACEOF
5246if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5248 ac_status=$?
5249 grep -v '^ *+' conftest.er1 >conftest.err
5250 rm -f conftest.er1
5251 cat conftest.err >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } >/dev/null; then
5254 if test -s conftest.err; then
5255 ac_cpp_err=$ac_cxx_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005256 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005257 else
5258 ac_cpp_err=
5259 fi
5260else
5261 ac_cpp_err=yes
5262fi
5263if test -z "$ac_cpp_err"; then
5264 # Broken: success on invalid input.
5265continue
5266else
5267 echo "$as_me: failed program was:" >&5
5268sed 's/^/| /' conftest.$ac_ext >&5
5269
5270 # Passes both tests.
5271ac_preproc_ok=:
5272break
5273fi
5274rm -f conftest.err conftest.$ac_ext
5275
5276done
5277# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5278rm -f conftest.err conftest.$ac_ext
5279if $ac_preproc_ok; then
5280 :
5281else
5282 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5283See \`config.log' for more details." >&5
5284echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5285See \`config.log' for more details." >&2;}
5286 { (exit 1); exit 1; }; }
5287fi
5288
5289ac_ext=cc
5290ac_cpp='$CXXCPP $CPPFLAGS'
5291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5292ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5293ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5294
5295
5296ac_ext=f
5297ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5298ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5299ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5300if test -n "$ac_tool_prefix"; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005301 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 +00005302 do
5303 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5304set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5305echo "$as_me:$LINENO: checking for $ac_word" >&5
5306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5307if test "${ac_cv_prog_F77+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5309else
5310 if test -n "$F77"; then
5311 ac_cv_prog_F77="$F77" # Let the user override the test.
5312else
5313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314for as_dir in $PATH
5315do
5316 IFS=$as_save_IFS
5317 test -z "$as_dir" && as_dir=.
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5320 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5322 break 2
5323 fi
5324done
5325done
5326
5327fi
5328fi
5329F77=$ac_cv_prog_F77
5330if test -n "$F77"; then
5331 echo "$as_me:$LINENO: result: $F77" >&5
5332echo "${ECHO_T}$F77" >&6
5333else
5334 echo "$as_me:$LINENO: result: no" >&5
5335echo "${ECHO_T}no" >&6
5336fi
5337
5338 test -n "$F77" && break
5339 done
5340fi
5341if test -z "$F77"; then
5342 ac_ct_F77=$F77
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005343 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 +00005344do
5345 # Extract the first word of "$ac_prog", so it can be a program name with args.
5346set dummy $ac_prog; ac_word=$2
5347echo "$as_me:$LINENO: checking for $ac_word" >&5
5348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5349if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5351else
5352 if test -n "$ac_ct_F77"; then
5353 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5354else
5355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356for as_dir in $PATH
5357do
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5362 ac_cv_prog_ac_ct_F77="$ac_prog"
5363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5365 fi
5366done
5367done
5368
5369fi
5370fi
5371ac_ct_F77=$ac_cv_prog_ac_ct_F77
5372if test -n "$ac_ct_F77"; then
5373 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5374echo "${ECHO_T}$ac_ct_F77" >&6
5375else
5376 echo "$as_me:$LINENO: result: no" >&5
5377echo "${ECHO_T}no" >&6
5378fi
5379
5380 test -n "$ac_ct_F77" && break
5381done
5382
5383 F77=$ac_ct_F77
5384fi
5385
5386
5387# Provide some information about the compiler.
homeip.net!davidm34fa1222004-08-17 15:34:28 +00005388echo "$as_me:5388:" \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005389 "checking for Fortran 77 compiler version" >&5
5390ac_compiler=`set X $ac_compile; echo $2`
5391{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5392 (eval $ac_compiler --version </dev/null >&5) 2>&5
5393 ac_status=$?
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }
5396{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5397 (eval $ac_compiler -v </dev/null >&5) 2>&5
5398 ac_status=$?
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }
5401{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5402 (eval $ac_compiler -V </dev/null >&5) 2>&5
5403 ac_status=$?
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005406rm -f a.out
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005407
5408# If we don't use `.F' as extension, the preprocessor is not run on the
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005409# input file. (Note that this only needs to work for GNU compilers.)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005410ac_save_ext=$ac_ext
5411ac_ext=F
5412echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5413echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5414if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5416else
5417 cat >conftest.$ac_ext <<_ACEOF
5418 program main
5419#ifndef __GNUC__
5420 choke me
5421#endif
5422
5423 end
5424_ACEOF
5425rm -f conftest.$ac_objext
5426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005427 (eval $ac_compile) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005428 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005429 grep -v '^ *+' conftest.er1 >conftest.err
5430 rm -f conftest.er1
5431 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005434 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 (eval $ac_try) 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; } &&
5440 { ac_try='test -s conftest.$ac_objext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 (eval $ac_try) 2>&5
5443 ac_status=$?
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); }; }; then
5446 ac_compiler_gnu=yes
5447else
5448 echo "$as_me: failed program was:" >&5
5449sed 's/^/| /' conftest.$ac_ext >&5
5450
5451ac_compiler_gnu=no
5452fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005454ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5455
5456fi
5457echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5458echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5459ac_ext=$ac_save_ext
5460ac_test_FFLAGS=${FFLAGS+set}
5461ac_save_FFLAGS=$FFLAGS
5462FFLAGS=
5463echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5464echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5465if test "${ac_cv_prog_f77_g+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467else
5468 FFLAGS=-g
5469cat >conftest.$ac_ext <<_ACEOF
5470 program main
5471
5472 end
5473_ACEOF
5474rm -f conftest.$ac_objext
5475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005476 (eval $ac_compile) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005477 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005478 grep -v '^ *+' conftest.er1 >conftest.err
5479 rm -f conftest.er1
5480 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005483 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485 (eval $ac_try) 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }; } &&
5489 { ac_try='test -s conftest.$ac_objext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 (eval $ac_try) 2>&5
5492 ac_status=$?
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 ac_cv_prog_f77_g=yes
5496else
5497 echo "$as_me: failed program was:" >&5
5498sed 's/^/| /' conftest.$ac_ext >&5
5499
5500ac_cv_prog_f77_g=no
5501fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005503
5504fi
5505echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5506echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5507if test "$ac_test_FFLAGS" = set; then
5508 FFLAGS=$ac_save_FFLAGS
5509elif test $ac_cv_prog_f77_g = yes; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005510 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005511 FFLAGS="-g -O2"
5512 else
5513 FFLAGS="-g"
5514 fi
5515else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005516 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005517 FFLAGS="-O2"
5518 else
5519 FFLAGS=
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005520 fi
5521fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005522
5523G77=`test $ac_compiler_gnu = yes && echo yes`
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005524ac_ext=c
5525ac_cpp='$CPP $CPPFLAGS'
5526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5528ac_compiler_gnu=$ac_cv_c_compiler_gnu
5529
5530
5531
5532# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5533
5534# find the maximum length of command line arguments
5535echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5536echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5537if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5539else
5540 i=0
hp.com!davidm2de17682004-04-20 16:53:44 +00005541 teststring="ABCD"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005542
5543 case $build_os in
5544 msdosdjgpp*)
5545 # On DJGPP, this test can blow up pretty badly due to problems in libc
5546 # (any single argument exceeding 2000 bytes causes a buffer overrun
5547 # during glob expansion). Even if it were fixed, the result of this
5548 # check would be larger than it should be.
5549 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5550 ;;
5551
5552 gnu*)
5553 # Under GNU Hurd, this test is not required because there is
5554 # no limit to the length of command line arguments.
5555 # Libtool will interpret -1 as no limit whatsoever
5556 lt_cv_sys_max_cmd_len=-1;
5557 ;;
5558
5559 cygwin* | mingw*)
5560 # On Win9x/ME, this test blows up -- it succeeds, but takes
5561 # about 5 minutes as the teststring grows exponentially.
5562 # Worse, since 9x/ME are not pre-emptively multitasking,
5563 # you end up with a "frozen" computer, even though with patience
5564 # the test eventually succeeds (with a max line length of 256k).
5565 # Instead, let's just punt: use the minimum linelength reported by
5566 # all of the supported platforms: 8192 (on NT/2K/XP).
5567 lt_cv_sys_max_cmd_len=8192;
5568 ;;
5569
5570 amigaos*)
5571 # On AmigaOS with pdksh, this test takes hours, literally.
5572 # So we just punt and use a minimum line length of 8192.
5573 lt_cv_sys_max_cmd_len=8192;
5574 ;;
5575
5576 *)
5577 # If test is not a shell built-in, we'll probably end up computing a
5578 # maximum length that is only half of the actual maximum length, but
5579 # we can't tell.
hp.com!davidm2de17682004-04-20 16:53:44 +00005580 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5581 = "XX$teststring") >/dev/null 2>&1 &&
5582 new_result=`expr "X$teststring" : ".*" 2>&1` &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005583 lt_cv_sys_max_cmd_len=$new_result &&
5584 test $i != 17 # 1/2 MB should be enough
5585 do
5586 i=`expr $i + 1`
hp.com!davidm2de17682004-04-20 16:53:44 +00005587 teststring=$teststring$teststring
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005588 done
hp.com!davidm2de17682004-04-20 16:53:44 +00005589 teststring=
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005590 # Add a significant safety factor because C++ compilers can tack on massive
5591 # amounts of additional arguments before passing them to the linker.
5592 # It appears as though 1/2 is a usable value.
5593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5594 ;;
5595 esac
5596
5597fi
5598
5599if test -n $lt_cv_sys_max_cmd_len ; then
5600 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5601echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5602else
5603 echo "$as_me:$LINENO: result: none" >&5
5604echo "${ECHO_T}none" >&6
5605fi
5606
5607
5608
5609
5610# Check for command to grab the raw symbol name followed by C symbol from nm.
5611echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5612echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5613if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615else
5616
5617# These are sane defaults that work on at least a few old systems.
5618# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5619
5620# Character class describing NM global symbol codes.
5621symcode='[BCDEGRST]'
5622
5623# Regexp to match symbols that can be accessed directly from C.
5624sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5625
5626# Transform the above into a raw symbol and a C symbol.
5627symxfrm='\1 \2\3 \3'
5628
5629# Transform an extracted symbol line into a proper C declaration
5630lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5631
5632# Transform an extracted symbol line into symbol name and symbol address
5633lt_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'"
5634
5635# Define system-specific variables.
5636case $host_os in
5637aix*)
5638 symcode='[BCDT]'
5639 ;;
5640cygwin* | mingw* | pw32*)
5641 symcode='[ABCDGISTW]'
5642 ;;
5643hpux*) # Its linker distinguishes data from code symbols
5644 if test "$host_cpu" = ia64; then
5645 symcode='[ABCDEGRST]'
5646 fi
5647 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5648 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'"
5649 ;;
5650irix* | nonstopux*)
5651 symcode='[BCDEGRST]'
5652 ;;
5653osf*)
5654 symcode='[BCDEGQRST]'
5655 ;;
5656solaris* | sysv5*)
5657 symcode='[BDRT]'
5658 ;;
5659sysv4)
5660 symcode='[DFNSTU]'
5661 ;;
5662esac
5663
5664# Handle CRLF in mingw tool chain
5665opt_cr=
5666case $build_os in
5667mingw*)
5668 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5669 ;;
5670esac
5671
5672# If we're using GNU nm, then use its standard symbol codes.
5673case `$NM -V 2>&1` in
5674*GNU* | *'with BFD'*)
5675 symcode='[ABCDGIRSTW]' ;;
5676esac
5677
5678# Try without a prefix undercore, then with it.
5679for ac_symprfx in "" "_"; do
5680
5681 # Write the raw and C identifiers.
5682 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5683
5684 # Check to see that the pipe works correctly.
5685 pipe_works=no
5686
5687 rm -f conftest*
5688 cat > conftest.$ac_ext <<EOF
5689#ifdef __cplusplus
5690extern "C" {
5691#endif
5692char nm_test_var;
5693void nm_test_func(){}
5694#ifdef __cplusplus
5695}
5696#endif
5697int main(){nm_test_var='a';nm_test_func();return(0);}
5698EOF
5699
5700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5701 (eval $ac_compile) 2>&5
5702 ac_status=$?
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; then
5705 # Now try to grab the symbols.
5706 nlist=conftest.nm
5707 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5708 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5709 ac_status=$?
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } && test -s "$nlist"; then
5712 # Try sorting and uniquifying the output.
5713 if sort "$nlist" | uniq > "$nlist"T; then
5714 mv -f "$nlist"T "$nlist"
5715 else
5716 rm -f "$nlist"T
5717 fi
5718
5719 # Make sure that we snagged all the symbols we need.
5720 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5721 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5722 cat <<EOF > conftest.$ac_ext
5723#ifdef __cplusplus
5724extern "C" {
5725#endif
5726
5727EOF
5728 # Now generate the symbol file.
5729 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5730
5731 cat <<EOF >> conftest.$ac_ext
5732#if defined (__STDC__) && __STDC__
5733# define lt_ptr_t void *
5734#else
5735# define lt_ptr_t char *
5736# define const
5737#endif
5738
5739/* The mapping between symbol names and symbols. */
5740const struct {
5741 const char *name;
5742 lt_ptr_t address;
5743}
5744lt_preloaded_symbols[] =
5745{
5746EOF
5747 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5748 cat <<\EOF >> conftest.$ac_ext
5749 {0, (lt_ptr_t) 0}
5750};
5751
5752#ifdef __cplusplus
5753}
5754#endif
5755EOF
5756 # Now try linking the two files.
5757 mv conftest.$ac_objext conftstm.$ac_objext
5758 lt_save_LIBS="$LIBS"
5759 lt_save_CFLAGS="$CFLAGS"
5760 LIBS="conftstm.$ac_objext"
5761 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5763 (eval $ac_link) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5767 pipe_works=yes
5768 fi
5769 LIBS="$lt_save_LIBS"
5770 CFLAGS="$lt_save_CFLAGS"
5771 else
5772 echo "cannot find nm_test_func in $nlist" >&5
5773 fi
5774 else
5775 echo "cannot find nm_test_var in $nlist" >&5
5776 fi
5777 else
5778 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5779 fi
5780 else
5781 echo "$progname: failed program was:" >&5
5782 cat conftest.$ac_ext >&5
5783 fi
5784 rm -f conftest* conftst*
5785
5786 # Do not use the global_symbol_pipe unless it works.
5787 if test "$pipe_works" = yes; then
5788 break
5789 else
5790 lt_cv_sys_global_symbol_pipe=
5791 fi
5792done
5793
5794fi
5795
5796if test -z "$lt_cv_sys_global_symbol_pipe"; then
5797 lt_cv_sys_global_symbol_to_cdecl=
5798fi
5799if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5800 echo "$as_me:$LINENO: result: failed" >&5
5801echo "${ECHO_T}failed" >&6
5802else
5803 echo "$as_me:$LINENO: result: ok" >&5
5804echo "${ECHO_T}ok" >&6
5805fi
5806
5807echo "$as_me:$LINENO: checking for objdir" >&5
5808echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5809if test "${lt_cv_objdir+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5811else
5812 rm -f .libs 2>/dev/null
5813mkdir .libs 2>/dev/null
5814if test -d .libs; then
5815 lt_cv_objdir=.libs
5816else
5817 # MS-DOS does not allow filenames that begin with a dot.
5818 lt_cv_objdir=_libs
5819fi
5820rmdir .libs 2>/dev/null
5821fi
5822echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5823echo "${ECHO_T}$lt_cv_objdir" >&6
5824objdir=$lt_cv_objdir
5825
5826
5827
5828
5829
5830case $host_os in
5831aix3*)
5832 # AIX sometimes has problems with the GCC collect2 program. For some
5833 # reason, if we set the COLLECT_NAMES environment variable, the problems
5834 # vanish in a puff of smoke.
5835 if test "X${COLLECT_NAMES+set}" != Xset; then
5836 COLLECT_NAMES=
5837 export COLLECT_NAMES
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005838 fi
5839 ;;
5840esac
5841
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005842# Sed substitution that helps us do robust quoting. It backslashifies
5843# metacharacters that are still active within double-quoted strings.
5844Xsed='sed -e s/^X//'
5845sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5846
5847# Same as above, but do not quote variable references.
5848double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5849
5850# Sed substitution to delay expansion of an escaped shell variable in a
5851# double_quote_subst'ed string.
5852delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5853
5854# Sed substitution to avoid accidental globbing in evaled expressions
5855no_glob_subst='s/\*/\\\*/g'
5856
5857# Constants:
5858rm="rm -f"
5859
5860# Global variables:
5861default_ofile=libtool
5862can_build_shared=yes
5863
5864# All known linkers require a `.a' archive for static linking (except M$VC,
5865# which needs '.lib').
5866libext=a
5867ltmain="$ac_aux_dir/ltmain.sh"
5868ofile="$default_ofile"
5869with_gnu_ld="$lt_cv_prog_gnu_ld"
5870
5871if test -n "$ac_tool_prefix"; then
5872 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5873set dummy ${ac_tool_prefix}ar; ac_word=$2
5874echo "$as_me:$LINENO: checking for $ac_word" >&5
5875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5876if test "${ac_cv_prog_AR+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5878else
5879 if test -n "$AR"; then
5880 ac_cv_prog_AR="$AR" # Let the user override the test.
5881else
5882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883for as_dir in $PATH
5884do
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889 ac_cv_prog_AR="${ac_tool_prefix}ar"
5890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 break 2
5892 fi
5893done
5894done
5895
5896fi
5897fi
5898AR=$ac_cv_prog_AR
5899if test -n "$AR"; then
5900 echo "$as_me:$LINENO: result: $AR" >&5
5901echo "${ECHO_T}$AR" >&6
5902else
5903 echo "$as_me:$LINENO: result: no" >&5
5904echo "${ECHO_T}no" >&6
5905fi
5906
5907fi
5908if test -z "$ac_cv_prog_AR"; then
5909 ac_ct_AR=$AR
5910 # Extract the first word of "ar", so it can be a program name with args.
5911set dummy ar; ac_word=$2
5912echo "$as_me:$LINENO: checking for $ac_word" >&5
5913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5914if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5916else
5917 if test -n "$ac_ct_AR"; then
5918 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5919else
5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921for as_dir in $PATH
5922do
5923 IFS=$as_save_IFS
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927 ac_cv_prog_ac_ct_AR="ar"
5928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 break 2
5930 fi
5931done
5932done
5933
5934 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5935fi
5936fi
5937ac_ct_AR=$ac_cv_prog_ac_ct_AR
5938if test -n "$ac_ct_AR"; then
5939 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5940echo "${ECHO_T}$ac_ct_AR" >&6
5941else
5942 echo "$as_me:$LINENO: result: no" >&5
5943echo "${ECHO_T}no" >&6
5944fi
5945
5946 AR=$ac_ct_AR
5947else
5948 AR="$ac_cv_prog_AR"
5949fi
5950
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005951if test -n "$ac_tool_prefix"; then
5952 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5953set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5954echo "$as_me:$LINENO: checking for $ac_word" >&5
5955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5956if test "${ac_cv_prog_RANLIB+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5958else
5959 if test -n "$RANLIB"; then
5960 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5961else
5962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963for as_dir in $PATH
5964do
5965 IFS=$as_save_IFS
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 break 2
5972 fi
5973done
5974done
5975
5976fi
5977fi
5978RANLIB=$ac_cv_prog_RANLIB
5979if test -n "$RANLIB"; then
5980 echo "$as_me:$LINENO: result: $RANLIB" >&5
5981echo "${ECHO_T}$RANLIB" >&6
5982else
5983 echo "$as_me:$LINENO: result: no" >&5
5984echo "${ECHO_T}no" >&6
5985fi
5986
5987fi
5988if test -z "$ac_cv_prog_RANLIB"; then
5989 ac_ct_RANLIB=$RANLIB
5990 # Extract the first word of "ranlib", so it can be a program name with args.
5991set dummy ranlib; ac_word=$2
5992echo "$as_me:$LINENO: checking for $ac_word" >&5
5993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5994if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5996else
5997 if test -n "$ac_ct_RANLIB"; then
5998 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5999else
6000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001for as_dir in $PATH
6002do
6003 IFS=$as_save_IFS
6004 test -z "$as_dir" && as_dir=.
6005 for ac_exec_ext in '' $ac_executable_extensions; do
6006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6007 ac_cv_prog_ac_ct_RANLIB="ranlib"
6008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 break 2
6010 fi
6011done
6012done
6013
6014 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6015fi
6016fi
6017ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6018if test -n "$ac_ct_RANLIB"; then
6019 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6020echo "${ECHO_T}$ac_ct_RANLIB" >&6
6021else
6022 echo "$as_me:$LINENO: result: no" >&5
6023echo "${ECHO_T}no" >&6
6024fi
6025
6026 RANLIB=$ac_ct_RANLIB
6027else
6028 RANLIB="$ac_cv_prog_RANLIB"
6029fi
6030
6031if test -n "$ac_tool_prefix"; then
6032 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6033set dummy ${ac_tool_prefix}strip; ac_word=$2
6034echo "$as_me:$LINENO: checking for $ac_word" >&5
6035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6036if test "${ac_cv_prog_STRIP+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6038else
6039 if test -n "$STRIP"; then
6040 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6041else
6042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043for as_dir in $PATH
6044do
6045 IFS=$as_save_IFS
6046 test -z "$as_dir" && as_dir=.
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 break 2
6052 fi
6053done
6054done
6055
6056fi
6057fi
6058STRIP=$ac_cv_prog_STRIP
6059if test -n "$STRIP"; then
6060 echo "$as_me:$LINENO: result: $STRIP" >&5
6061echo "${ECHO_T}$STRIP" >&6
6062else
6063 echo "$as_me:$LINENO: result: no" >&5
6064echo "${ECHO_T}no" >&6
6065fi
6066
6067fi
6068if test -z "$ac_cv_prog_STRIP"; then
6069 ac_ct_STRIP=$STRIP
6070 # Extract the first word of "strip", so it can be a program name with args.
6071set dummy strip; ac_word=$2
6072echo "$as_me:$LINENO: checking for $ac_word" >&5
6073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6074if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6076else
6077 if test -n "$ac_ct_STRIP"; then
6078 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6079else
6080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081for as_dir in $PATH
6082do
6083 IFS=$as_save_IFS
6084 test -z "$as_dir" && as_dir=.
6085 for ac_exec_ext in '' $ac_executable_extensions; do
6086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6087 ac_cv_prog_ac_ct_STRIP="strip"
6088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6089 break 2
6090 fi
6091done
6092done
6093
6094 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6095fi
6096fi
6097ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6098if test -n "$ac_ct_STRIP"; then
6099 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6100echo "${ECHO_T}$ac_ct_STRIP" >&6
6101else
6102 echo "$as_me:$LINENO: result: no" >&5
6103echo "${ECHO_T}no" >&6
6104fi
6105
6106 STRIP=$ac_ct_STRIP
6107else
6108 STRIP="$ac_cv_prog_STRIP"
6109fi
6110
6111
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006112old_CC="$CC"
6113old_CFLAGS="$CFLAGS"
6114
6115# Set sane defaults for various variables
6116test -z "$AR" && AR=ar
6117test -z "$AR_FLAGS" && AR_FLAGS=cru
6118test -z "$AS" && AS=as
6119test -z "$CC" && CC=cc
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006120test -z "$LTCC" && LTCC=$CC
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006121test -z "$DLLTOOL" && DLLTOOL=dlltool
6122test -z "$LD" && LD=ld
6123test -z "$LN_S" && LN_S="ln -s"
6124test -z "$MAGIC_CMD" && MAGIC_CMD=file
6125test -z "$NM" && NM=nm
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006126test -z "$SED" && SED=sed
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006127test -z "$OBJDUMP" && OBJDUMP=objdump
6128test -z "$RANLIB" && RANLIB=:
6129test -z "$STRIP" && STRIP=:
6130test -z "$ac_objext" && ac_objext=o
6131
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006132# Determine commands to create old-style static archives.
6133old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6134old_postinstall_cmds='chmod 644 $oldlib'
6135old_postuninstall_cmds=
6136
6137if test -n "$RANLIB"; then
6138 case $host_os in
6139 openbsd*)
6140 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6141 ;;
6142 *)
6143 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6144 ;;
6145 esac
6146 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6147fi
6148
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006149# Only perform the check for file, if the check method requires it
6150case $deplibs_check_method in
6151file_magic*)
6152 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6153 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6154echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6155if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006157else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006158 case $MAGIC_CMD in
6159[\\/*] | ?:[\\/]*)
6160 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6161 ;;
6162*)
6163 lt_save_MAGIC_CMD="$MAGIC_CMD"
6164 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6165 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6166 for ac_dir in $ac_dummy; do
6167 IFS="$lt_save_ifs"
6168 test -z "$ac_dir" && ac_dir=.
6169 if test -f $ac_dir/${ac_tool_prefix}file; then
6170 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6171 if test -n "$file_magic_test_file"; then
6172 case $deplibs_check_method in
6173 "file_magic "*)
6174 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6176 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6177 $EGREP "$file_magic_regex" > /dev/null; then
6178 :
6179 else
6180 cat <<EOF 1>&2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006181
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006182*** Warning: the command libtool uses to detect shared libraries,
6183*** $file_magic_cmd, produces output that libtool cannot recognize.
6184*** The result is that libtool may fail to recognize shared libraries
6185*** as such. This will affect the creation of libtool libraries that
6186*** depend on shared libraries, but programs linked with such libtool
6187*** libraries will work regardless of this problem. Nevertheless, you
6188*** may want to report the problem to your system manager and/or to
6189*** bug-libtool@gnu.org
6190
6191EOF
6192 fi ;;
6193 esac
6194 fi
6195 break
6196 fi
6197 done
6198 IFS="$lt_save_ifs"
6199 MAGIC_CMD="$lt_save_MAGIC_CMD"
6200 ;;
6201esac
6202fi
6203
6204MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6205if test -n "$MAGIC_CMD"; then
6206 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6207echo "${ECHO_T}$MAGIC_CMD" >&6
6208else
6209 echo "$as_me:$LINENO: result: no" >&5
6210echo "${ECHO_T}no" >&6
6211fi
6212
6213if test -z "$lt_cv_path_MAGIC_CMD"; then
6214 if test -n "$ac_tool_prefix"; then
6215 echo "$as_me:$LINENO: checking for file" >&5
6216echo $ECHO_N "checking for file... $ECHO_C" >&6
6217if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6219else
6220 case $MAGIC_CMD in
6221[\\/*] | ?:[\\/]*)
6222 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6223 ;;
6224*)
6225 lt_save_MAGIC_CMD="$MAGIC_CMD"
6226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6227 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6228 for ac_dir in $ac_dummy; do
6229 IFS="$lt_save_ifs"
6230 test -z "$ac_dir" && ac_dir=.
6231 if test -f $ac_dir/file; then
6232 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6233 if test -n "$file_magic_test_file"; then
6234 case $deplibs_check_method in
6235 "file_magic "*)
6236 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6238 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6239 $EGREP "$file_magic_regex" > /dev/null; then
6240 :
6241 else
6242 cat <<EOF 1>&2
6243
6244*** Warning: the command libtool uses to detect shared libraries,
6245*** $file_magic_cmd, produces output that libtool cannot recognize.
6246*** The result is that libtool may fail to recognize shared libraries
6247*** as such. This will affect the creation of libtool libraries that
6248*** depend on shared libraries, but programs linked with such libtool
6249*** libraries will work regardless of this problem. Nevertheless, you
6250*** may want to report the problem to your system manager and/or to
6251*** bug-libtool@gnu.org
6252
6253EOF
6254 fi ;;
6255 esac
6256 fi
6257 break
6258 fi
6259 done
6260 IFS="$lt_save_ifs"
6261 MAGIC_CMD="$lt_save_MAGIC_CMD"
6262 ;;
6263esac
6264fi
6265
6266MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6267if test -n "$MAGIC_CMD"; then
6268 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6269echo "${ECHO_T}$MAGIC_CMD" >&6
6270else
6271 echo "$as_me:$LINENO: result: no" >&5
6272echo "${ECHO_T}no" >&6
6273fi
6274
6275 else
6276 MAGIC_CMD=:
6277 fi
6278fi
6279
6280 fi
6281 ;;
6282esac
6283
6284enable_dlopen=no
6285enable_win32_dll=no
6286
6287# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6288if test "${enable_libtool_lock+set}" = set; then
6289 enableval="$enable_libtool_lock"
6290
6291fi;
6292test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006293
6294
6295# Check whether --with-pic or --without-pic was given.
6296if test "${with_pic+set}" = set; then
6297 withval="$with_pic"
6298 pic_mode="$withval"
6299else
6300 pic_mode=default
6301fi;
6302test -z "$pic_mode" && pic_mode=default
6303
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006304# Use C for the default configuration in the libtool script
6305tagname=
6306lt_save_CC="$CC"
6307ac_ext=c
6308ac_cpp='$CPP $CPPFLAGS'
6309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6311ac_compiler_gnu=$ac_cv_c_compiler_gnu
6312
6313
6314# Source file extension for C test sources.
6315ac_ext=c
6316
6317# Object file extension for compiled C test sources.
6318objext=o
6319objext=$objext
6320
6321# Code to be used in simple compile tests
6322lt_simple_compile_test_code="int some_variable = 0;\n"
6323
6324# Code to be used in simple link tests
6325lt_simple_link_test_code='int main(){return(0);}\n'
6326
6327
6328# If no C compiler was specified, use CC.
6329LTCC=${LTCC-"$CC"}
6330
6331# Allow CC to be a program name with arguments.
6332compiler=$CC
6333
6334
6335#
6336# Check for any special shared library compilation flags.
6337#
6338lt_prog_cc_shlib=
6339if test "$GCC" = no; then
6340 case $host_os in
6341 sco3.2v5*)
6342 lt_prog_cc_shlib='-belf'
6343 ;;
6344 esac
6345fi
6346if test -n "$lt_prog_cc_shlib"; then
6347 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6348echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6349 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6350 else
6351 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6352echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6353 lt_cv_prog_cc_can_build_shared=no
6354 fi
6355fi
6356
6357
6358#
6359# Check to make sure the static flag actually works.
6360#
6361echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6362echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6363if test "${lt_prog_compiler_static_works+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006364 echo $ECHO_N "(cached) $ECHO_C" >&6
6365else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006366 lt_prog_compiler_static_works=no
6367 save_LDFLAGS="$LDFLAGS"
6368 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6369 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6370 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6371 # The compiler can only warn and ignore the option if not recognized
6372 # So say no if there are warnings
6373 if test -s conftest.err; then
6374 # Append any errors to the config.log.
6375 cat conftest.err 1>&5
6376 else
6377 lt_prog_compiler_static_works=yes
6378 fi
6379 fi
6380 $rm conftest*
6381 LDFLAGS="$save_LDFLAGS"
6382
6383fi
6384echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6385echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6386
6387if test x"$lt_prog_compiler_static_works" = xyes; then
6388 :
6389else
6390 lt_prog_compiler_static=
6391fi
6392
6393
6394
6395
6396lt_prog_compiler_no_builtin_flag=
6397
6398if test "$GCC" = yes; then
6399 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6400
6401
6402echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6403echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6404if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6406else
6407 lt_cv_prog_compiler_rtti_exceptions=no
6408 ac_outfile=conftest.$ac_objext
6409 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6410 lt_compiler_flag="-fno-rtti -fno-exceptions"
6411 # Insert the option either (1) after the last *FLAGS variable, or
6412 # (2) before a word containing "conftest.", or (3) at the end.
6413 # Note that $ac_compile itself does not contain backslashes and begins
6414 # with a dollar sign (not a hyphen), so the echo should work correctly.
6415 # The option is referenced via a variable to avoid confusing sed.
6416 lt_compile=`echo "$ac_compile" | $SED \
6417 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6419 -e 's:$: $lt_compiler_flag:'`
homeip.net!davidm34fa1222004-08-17 15:34:28 +00006420 (eval echo "\"\$as_me:6420: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006421 (eval "$lt_compile" 2>conftest.err)
6422 ac_status=$?
6423 cat conftest.err >&5
homeip.net!davidm34fa1222004-08-17 15:34:28 +00006424 echo "$as_me:6424: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006425 if (exit $ac_status) && test -s "$ac_outfile"; then
6426 # The compiler can only warn and ignore the option if not recognized
6427 # So say no if there are warnings
6428 if test ! -s conftest.err; then
6429 lt_cv_prog_compiler_rtti_exceptions=yes
6430 fi
6431 fi
6432 $rm conftest*
6433
6434fi
6435echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6436echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6437
6438if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6439 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6440else
6441 :
6442fi
6443
6444fi
6445
6446lt_prog_compiler_wl=
6447lt_prog_compiler_pic=
6448lt_prog_compiler_static=
6449
6450echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6451echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006452
6453 if test "$GCC" = yes; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006454 lt_prog_compiler_wl='-Wl,'
6455 lt_prog_compiler_static='-static'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006456
6457 case $host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006458 aix*)
6459 # All AIX code is PIC.
6460 if test "$host_cpu" = ia64; then
6461 # AIX 5 now supports IA64 processor
6462 lt_prog_compiler_static='-Bstatic'
6463 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006464 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006465
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006466 amigaos*)
6467 # FIXME: we need at least 68020 code to build shared libraries, but
6468 # adding the `-m68020' flag to GCC prevents building anything better,
6469 # like `-m68040'.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006470 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006471 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006472
6473 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006474 # PIC is the default for these OSes.
6475 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006476
6477 mingw* | pw32* | os2*)
6478 # This hack is so that the source file can tell whether it is being
6479 # built for inclusion in a dll (and should export symbols for example).
6480 lt_prog_compiler_pic='-DDLL_EXPORT'
6481 ;;
6482
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006483 darwin* | rhapsody*)
6484 # PIC is the default on this platform
6485 # Common symbols not allowed in MH_DYLIB files
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006486 lt_prog_compiler_pic='-fno-common'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006487 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006488
6489 msdosdjgpp*)
6490 # Just because we use GCC doesn't mean we suddenly get shared libraries
6491 # on systems that don't support them.
6492 lt_prog_compiler_can_build_shared=no
6493 enable_shared=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006494 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006495
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006496 sysv4*MP*)
6497 if test -d /usr/nec; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006498 lt_prog_compiler_pic=-Kconform_pic
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006499 fi
6500 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006501
6502 hpux*)
6503 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6504 # not for PA HP-UX.
6505 case "$host_cpu" in
6506 hppa*64*|ia64*)
6507 # +Z the default
6508 ;;
6509 *)
6510 lt_prog_compiler_pic='-fPIC'
6511 ;;
6512 esac
6513 ;;
6514
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006515 *)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006516 lt_prog_compiler_pic='-fPIC'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006517 ;;
6518 esac
6519 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006520 # PORTME Check for flag to pass linker flags through the system compiler.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006521 case $host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006522 aix*)
6523 lt_prog_compiler_wl='-Wl,'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006524 if test "$host_cpu" = ia64; then
6525 # AIX 5 now supports IA64 processor
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006526 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006527 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006528 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006529 fi
6530 ;;
6531
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006532 mingw* | pw32* | os2*)
6533 # This hack is so that the source file can tell whether it is being
6534 # built for inclusion in a dll (and should export symbols for example).
6535 lt_prog_compiler_pic='-DDLL_EXPORT'
6536 ;;
6537
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006538 hpux9* | hpux10* | hpux11*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006539 lt_prog_compiler_wl='-Wl,'
6540 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6541 # not for PA HP-UX.
6542 case "$host_cpu" in
6543 hppa*64*|ia64*)
6544 # +Z the default
6545 ;;
6546 *)
6547 lt_prog_compiler_pic='+Z'
6548 ;;
6549 esac
6550 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6551 lt_prog_compiler_static='${wl}-a ${wl}archive'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006552 ;;
6553
6554 irix5* | irix6* | nonstopux*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006555 lt_prog_compiler_wl='-Wl,'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006556 # PIC (with -KPIC) is the default.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006557 lt_prog_compiler_static='-non_shared'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006558 ;;
6559
6560 newsos6)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006561 lt_prog_compiler_pic='-KPIC'
6562 lt_prog_compiler_static='-Bstatic'
6563 ;;
6564
6565 linux*)
6566 case $CC in
6567 icc* | ecc*)
6568 lt_prog_compiler_wl='-Wl,'
6569 lt_prog_compiler_pic='-KPIC'
6570 lt_prog_compiler_static='-static'
6571 ;;
6572 ccc*)
6573 lt_prog_compiler_wl='-Wl,'
6574 # All Alpha code is PIC.
6575 lt_prog_compiler_static='-non_shared'
6576 ;;
6577 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006578 ;;
6579
6580 osf3* | osf4* | osf5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006581 lt_prog_compiler_wl='-Wl,'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006582 # All OSF/1 code is PIC.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006583 lt_prog_compiler_static='-non_shared'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006584 ;;
6585
6586 sco3.2v5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006587 lt_prog_compiler_pic='-Kpic'
6588 lt_prog_compiler_static='-dn'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006589 ;;
6590
6591 solaris*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006592 lt_prog_compiler_wl='-Wl,'
6593 lt_prog_compiler_pic='-KPIC'
6594 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006595 ;;
6596
6597 sunos4*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006598 lt_prog_compiler_wl='-Qoption ld '
6599 lt_prog_compiler_pic='-PIC'
6600 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006601 ;;
6602
6603 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006604 lt_prog_compiler_wl='-Wl,'
6605 lt_prog_compiler_pic='-KPIC'
6606 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006607 ;;
6608
6609 sysv4*MP*)
6610 if test -d /usr/nec ;then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006611 lt_prog_compiler_pic='-Kconform_pic'
6612 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006613 fi
6614 ;;
6615
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006616 uts4*)
6617 lt_prog_compiler_pic='-pic'
6618 lt_prog_compiler_static='-Bstatic'
6619 ;;
6620
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006621 *)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006622 lt_prog_compiler_can_build_shared=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006623 ;;
6624 esac
6625 fi
6626
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006627echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6628echo "${ECHO_T}$lt_prog_compiler_pic" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006629
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006630#
6631# Check to make sure the PIC flag actually works.
6632#
6633if test -n "$lt_prog_compiler_pic"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006634
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006635echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6636echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6637if test "${lt_prog_compiler_pic_works+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006638 echo $ECHO_N "(cached) $ECHO_C" >&6
6639else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006640 lt_prog_compiler_pic_works=no
6641 ac_outfile=conftest.$ac_objext
6642 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6643 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6644 # Insert the option either (1) after the last *FLAGS variable, or
6645 # (2) before a word containing "conftest.", or (3) at the end.
6646 # Note that $ac_compile itself does not contain backslashes and begins
6647 # with a dollar sign (not a hyphen), so the echo should work correctly.
6648 # The option is referenced via a variable to avoid confusing sed.
6649 lt_compile=`echo "$ac_compile" | $SED \
6650 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6652 -e 's:$: $lt_compiler_flag:'`
homeip.net!davidm34fa1222004-08-17 15:34:28 +00006653 (eval echo "\"\$as_me:6653: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006654 (eval "$lt_compile" 2>conftest.err)
6655 ac_status=$?
6656 cat conftest.err >&5
homeip.net!davidm34fa1222004-08-17 15:34:28 +00006657 echo "$as_me:6657: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006658 if (exit $ac_status) && test -s "$ac_outfile"; then
6659 # The compiler can only warn and ignore the option if not recognized
6660 # So say no if there are warnings
6661 if test ! -s conftest.err; then
6662 lt_prog_compiler_pic_works=yes
6663 fi
6664 fi
6665 $rm conftest*
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006666
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006667fi
6668echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6669echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006670
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006671if test x"$lt_prog_compiler_pic_works" = xyes; then
6672 case $lt_prog_compiler_pic in
6673 "" | " "*) ;;
6674 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6675 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006676else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006677 lt_prog_compiler_pic=
6678 lt_prog_compiler_can_build_shared=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006679fi
6680
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006681fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006682case "$host_os" in
6683 # For platforms which do not support PIC, -DPIC is meaningless:
6684 *djgpp*)
6685 lt_prog_compiler_pic=
6686 ;;
6687 *)
6688 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6689 ;;
6690esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006691
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006692echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6693echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006694if test "${lt_cv_prog_compiler_c_o+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006695 echo $ECHO_N "(cached) $ECHO_C" >&6
6696else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006697 lt_cv_prog_compiler_c_o=no
6698 $rm -r conftest 2>/dev/null
6699 mkdir conftest
6700 cd conftest
6701 mkdir out
6702 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006703
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006704 lt_compiler_flag="-o out/conftest2.$ac_objext"
6705 # Insert the option either (1) after the last *FLAGS variable, or
6706 # (2) before a word containing "conftest.", or (3) at the end.
6707 # Note that $ac_compile itself does not contain backslashes and begins
6708 # with a dollar sign (not a hyphen), so the echo should work correctly.
6709 lt_compile=`echo "$ac_compile" | $SED \
6710 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6712 -e 's:$: $lt_compiler_flag:'`
homeip.net!davidm34fa1222004-08-17 15:34:28 +00006713 (eval echo "\"\$as_me:6713: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006714 (eval "$lt_compile" 2>out/conftest.err)
6715 ac_status=$?
6716 cat out/conftest.err >&5
homeip.net!davidm34fa1222004-08-17 15:34:28 +00006717 echo "$as_me:6717: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006718 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6719 then
6720 # The compiler can only warn and ignore the option if not recognized
6721 # So say no if there are warnings
6722 if test ! -s out/conftest.err; then
6723 lt_cv_prog_compiler_c_o=yes
6724 fi
6725 fi
6726 chmod u+w .
6727 $rm conftest*
6728 # SGI C++ compiler will create directory out/ii_files/ for
6729 # template instantiation
6730 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6731 $rm out/* && rmdir out
6732 cd ..
6733 rmdir conftest
6734 $rm conftest*
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006735
6736fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006737echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6738echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006739
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006740
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006741hard_links="nottested"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006742if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006743 # do not overwrite the value of need_locks provided by the user
6744 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6745echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6746 hard_links=yes
6747 $rm conftest*
6748 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6749 touch conftest.a
6750 ln conftest.a conftest.b 2>&5 || hard_links=no
6751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6752 echo "$as_me:$LINENO: result: $hard_links" >&5
6753echo "${ECHO_T}$hard_links" >&6
6754 if test "$hard_links" = no; then
6755 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6756echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6757 need_locks=warn
6758 fi
6759else
6760 need_locks=no
6761fi
6762
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006763echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6764echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006765
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006766 runpath_var=
6767 allow_undefined_flag=
6768 enable_shared_with_static_runtimes=no
6769 archive_cmds=
6770 archive_expsym_cmds=
6771 old_archive_From_new_cmds=
6772 old_archive_from_expsyms_cmds=
6773 export_dynamic_flag_spec=
6774 whole_archive_flag_spec=
6775 thread_safe_flag_spec=
6776 hardcode_libdir_flag_spec=
6777 hardcode_libdir_flag_spec_ld=
6778 hardcode_libdir_separator=
6779 hardcode_direct=no
6780 hardcode_minus_L=no
6781 hardcode_shlibpath_var=unsupported
6782 link_all_deplibs=unknown
6783 hardcode_automatic=no
6784 module_cmds=
6785 module_expsym_cmds=
6786 always_export_symbols=no
6787 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6788 # include_expsyms should be a list of space-separated symbols to be *always*
6789 # included in the symbol list
6790 include_expsyms=
6791 # exclude_expsyms can be an extended regexp of symbols to exclude
6792 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6793 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6794 # as well as any symbol that contains `d'.
6795 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6796 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6797 # platforms (ab)use it in PIC code, but their linkers get confused if
6798 # the symbol is explicitly referenced. Since portable code cannot
6799 # rely on this symbol name, it's probably fine to never include it in
6800 # preloaded symbol tables.
6801 extract_expsyms_cmds=
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006802
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006803 case $host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006804 cygwin* | mingw* | pw32*)
6805 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6806 # When not using gcc, we currently assume that we are using
6807 # Microsoft Visual C++.
6808 if test "$GCC" != yes; then
6809 with_gnu_ld=no
6810 fi
6811 ;;
6812 openbsd*)
6813 with_gnu_ld=no
6814 ;;
6815 esac
6816
6817 ld_shlibs=yes
6818 if test "$with_gnu_ld" = yes; then
6819 # If archive_cmds runs LD, not CC, wlarc should be empty
6820 wlarc='${wl}'
6821
6822 # See if GNU ld supports shared libraries.
6823 case $host_os in
6824 aix3* | aix4* | aix5*)
6825 # On AIX/PPC, the GNU linker is very broken
6826 if test "$host_cpu" != ia64; then
6827 ld_shlibs=no
6828 cat <<EOF 1>&2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006829
6830*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6831*** to be unable to reliably create shared libraries on AIX.
6832*** Therefore, libtool is disabling shared libraries support. If you
6833*** really care for shared libraries, you may want to modify your PATH
6834*** so that a non-GNU linker is found, and then restart.
6835
6836EOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006837 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006838 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006839
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006840 amigaos*)
6841 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)'
6842 hardcode_libdir_flag_spec='-L$libdir'
6843 hardcode_minus_L=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006844
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006845 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6846 # that the semantics of dynamic libraries on AmigaOS, at least up
6847 # to version 4, is to share data among multiple programs linked
6848 # with the same dynamic library. Since this doesn't match the
6849 # behavior of shared libraries on other platforms, we can't use
6850 # them.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006851 ld_shlibs=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006852 ;;
6853
6854 beos*)
6855 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6856 allow_undefined_flag=unsupported
6857 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6858 # support --undefined. This deserves some investigation. FIXME
6859 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6860 else
6861 ld_shlibs=no
6862 fi
6863 ;;
6864
6865 cygwin* | mingw* | pw32*)
6866 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6867 # as there is no search path for DLLs.
6868 hardcode_libdir_flag_spec='-L$libdir'
6869 allow_undefined_flag=unsupported
6870 always_export_symbols=no
6871 enable_shared_with_static_runtimes=yes
6872 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6873
6874 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6875 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6876 # If the export-symbols file already is a .def file (1st line
6877 # is EXPORTS), use it as is; otherwise, prepend...
6878 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6879 cp $export_symbols $output_objdir/$soname.def;
6880 else
6881 echo EXPORTS > $output_objdir/$soname.def;
6882 cat $export_symbols >> $output_objdir/$soname.def;
6883 fi~
6884 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6885 else
6886 ld_shlibs=no
6887 fi
6888 ;;
6889
hp.com!davidm16230292004-07-15 17:39:59 +00006890 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006891 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6892 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6893 wlarc=
6894 else
6895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6896 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6897 fi
6898 ;;
6899
6900 solaris* | sysv5*)
6901 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6902 ld_shlibs=no
6903 cat <<EOF 1>&2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006904
6905*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6906*** create shared libraries on Solaris systems. Therefore, libtool
6907*** is disabling shared libraries support. We urge you to upgrade GNU
6908*** binutils to release 2.9.1 or newer. Another option is to modify
6909*** your PATH or compiler configuration so that the native linker is
6910*** used, and then restart.
6911
6912EOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006913 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6915 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 +00006916 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006917 ld_shlibs=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006918 fi
6919 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006920
6921 sunos4*)
6922 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6923 wlarc=
6924 hardcode_direct=yes
6925 hardcode_shlibpath_var=no
6926 ;;
6927
6928 linux*)
hp.com!davidm2de17682004-04-20 16:53:44 +00006929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006930 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6931 archive_cmds="$tmp_archive_cmds"
6932 supports_anon_versioning=no
6933 case `$LD -v 2>/dev/null` in
6934 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6935 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6936 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6937 *\ 2.11.*) ;; # other 2.11 versions
6938 *) supports_anon_versioning=yes ;;
6939 esac
6940 if test $supports_anon_versioning = yes; then
6941 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6942cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6943$echo "local: *; };" >> $output_objdir/$libname.ver~
6944 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6945 else
6946 archive_expsym_cmds="$tmp_archive_cmds"
6947 fi
hp.com!davidm2de17682004-04-20 16:53:44 +00006948 link_all_deplibs=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006949 else
6950 ld_shlibs=no
6951 fi
6952 ;;
6953
6954 *)
6955 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6957 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6958 else
6959 ld_shlibs=no
6960 fi
6961 ;;
6962 esac
6963
6964 if test "$ld_shlibs" = yes; then
6965 runpath_var=LD_RUN_PATH
6966 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6967 export_dynamic_flag_spec='${wl}--export-dynamic'
6968 # ancient GNU ld didn't support --whole-archive et. al.
6969 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6970 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6971 else
6972 whole_archive_flag_spec=
6973 fi
6974 fi
6975 else
6976 # PORTME fill in a description of your system's linker (not GNU ld)
6977 case $host_os in
6978 aix3*)
6979 allow_undefined_flag=unsupported
6980 always_export_symbols=yes
6981 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'
6982 # Note: this linker hardcodes the directories in LIBPATH if there
6983 # are no directories specified by -L.
6984 hardcode_minus_L=yes
6985 if test "$GCC" = yes && test -z "$link_static_flag"; then
6986 # Neither direct hardcoding nor static linking is supported with a
6987 # broken collect2.
6988 hardcode_direct=unsupported
6989 fi
6990 ;;
6991
6992 aix4* | aix5*)
6993 if test "$host_cpu" = ia64; then
6994 # On IA64, the linker does run time linking by default, so we don't
6995 # have to do anything special.
6996 aix_use_runtimelinking=no
6997 exp_sym_flag='-Bexport'
6998 no_entry_flag=""
6999 else
7000 # If we're using GNU nm, then we don't want the "-C" option.
7001 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7002 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7003 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'
7004 else
7005 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'
7006 fi
7007 aix_use_runtimelinking=no
7008
7009 # Test if we are trying to use run time linking or normal
7010 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7011 # need to do runtime linking.
7012 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7013 for ld_flag in $LDFLAGS; do
7014 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7015 aix_use_runtimelinking=yes
7016 break
7017 fi
7018 done
7019 esac
7020
7021 exp_sym_flag='-bexport'
7022 no_entry_flag='-bnoentry'
7023 fi
7024
7025 # When large executables or shared objects are built, AIX ld can
7026 # have problems creating the table of contents. If linking a library
7027 # or program results in "error TOC overflow" add -mminimal-toc to
7028 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7029 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7030
7031 archive_cmds=''
7032 hardcode_direct=yes
7033 hardcode_libdir_separator=':'
7034 link_all_deplibs=yes
7035
7036 if test "$GCC" = yes; then
7037 case $host_os in aix4.012|aix4.012.*)
7038 # We only want to do this on AIX 4.2 and lower, the check
7039 # below for broken collect2 doesn't work under 4.3+
7040 collect2name=`${CC} -print-prog-name=collect2`
7041 if test -f "$collect2name" && \
7042 strings "$collect2name" | grep resolve_lib_name >/dev/null
7043 then
7044 # We have reworked collect2
7045 hardcode_direct=yes
7046 else
7047 # We have old collect2
7048 hardcode_direct=unsupported
7049 # It fails to find uninstalled libraries when the uninstalled
7050 # path is not listed in the libpath. Setting hardcode_minus_L
7051 # to unsupported forces relinking
7052 hardcode_minus_L=yes
7053 hardcode_libdir_flag_spec='-L$libdir'
7054 hardcode_libdir_separator=
7055 fi
7056 esac
7057 shared_flag='-shared'
7058 else
7059 # not using gcc
7060 if test "$host_cpu" = ia64; then
7061 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7062 # chokes on -Wl,-G. The following line is correct:
7063 shared_flag='-G'
7064 else
7065 if test "$aix_use_runtimelinking" = yes; then
7066 shared_flag='${wl}-G'
7067 else
7068 shared_flag='${wl}-bM:SRE'
7069 fi
7070 fi
7071 fi
7072
7073 # It seems that -bexpall does not export symbols beginning with
7074 # underscore (_), so it is better to generate a list of symbols to export.
7075 always_export_symbols=yes
7076 if test "$aix_use_runtimelinking" = yes; then
7077 # Warning - without using the other runtime loading flags (-brtl),
7078 # -berok will link without error, but may produce a broken library.
7079 allow_undefined_flag='-berok'
7080 # Determine the default libpath from the value encoded in an empty executable.
7081 cat >conftest.$ac_ext <<_ACEOF
7082/* confdefs.h. */
7083_ACEOF
7084cat confdefs.h >>conftest.$ac_ext
7085cat >>conftest.$ac_ext <<_ACEOF
7086/* end confdefs.h. */
7087
7088int
7089main ()
7090{
7091
7092 ;
7093 return 0;
7094}
7095_ACEOF
7096rm -f conftest.$ac_objext conftest$ac_exeext
7097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007098 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007099 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007100 grep -v '^ *+' conftest.er1 >conftest.err
7101 rm -f conftest.er1
7102 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107 (eval $ac_try) 2>&5
7108 ac_status=$?
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }; } &&
7111 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7113 (eval $ac_try) 2>&5
7114 ac_status=$?
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); }; }; then
7117
7118aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7119}'`
7120# Check for a 64-bit object if we didn't find anything.
7121if 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; }
7122}'`; fi
7123else
7124 echo "$as_me: failed program was:" >&5
7125sed 's/^/| /' conftest.$ac_ext >&5
7126
7127fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007128rm -f conftest.err conftest.$ac_objext \
7129 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007130if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7131
7132 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7133 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"
7134 else
7135 if test "$host_cpu" = ia64; then
7136 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7137 allow_undefined_flag="-z nodefs"
7138 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"
7139 else
7140 # Determine the default libpath from the value encoded in an empty executable.
7141 cat >conftest.$ac_ext <<_ACEOF
7142/* confdefs.h. */
7143_ACEOF
7144cat confdefs.h >>conftest.$ac_ext
7145cat >>conftest.$ac_ext <<_ACEOF
7146/* end confdefs.h. */
7147
7148int
7149main ()
7150{
7151
7152 ;
7153 return 0;
7154}
7155_ACEOF
7156rm -f conftest.$ac_objext conftest$ac_exeext
7157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007158 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007159 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007160 grep -v '^ *+' conftest.er1 >conftest.err
7161 rm -f conftest.er1
7162 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167 (eval $ac_try) 2>&5
7168 ac_status=$?
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); }; } &&
7171 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173 (eval $ac_try) 2>&5
7174 ac_status=$?
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; }; then
7177
7178aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7179}'`
7180# Check for a 64-bit object if we didn't find anything.
7181if 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; }
7182}'`; fi
7183else
7184 echo "$as_me: failed program was:" >&5
7185sed 's/^/| /' conftest.$ac_ext >&5
7186
7187fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007188rm -f conftest.err conftest.$ac_objext \
7189 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007190if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7191
7192 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7193 # Warning - without using the other run time loading flags,
7194 # -berok will link without error, but may produce a broken library.
7195 no_undefined_flag=' ${wl}-bernotok'
7196 allow_undefined_flag=' ${wl}-berok'
7197 # -bexpall does not export symbols beginning with underscore (_)
7198 always_export_symbols=yes
7199 # Exported symbols can be pulled into shared objects from archives
7200 whole_archive_flag_spec=' '
7201 archive_cmds_need_lc=yes
7202 # This is similar to how AIX traditionally builds it's shared libraries.
7203 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'
7204 fi
7205 fi
7206 ;;
7207
7208 amigaos*)
7209 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)'
7210 hardcode_libdir_flag_spec='-L$libdir'
7211 hardcode_minus_L=yes
7212 # see comment about different semantics on the GNU ld section
7213 ld_shlibs=no
7214 ;;
7215
7216 bsdi4*)
7217 export_dynamic_flag_spec=-rdynamic
7218 ;;
7219
7220 cygwin* | mingw* | pw32*)
7221 # When not using gcc, we currently assume that we are using
7222 # Microsoft Visual C++.
7223 # hardcode_libdir_flag_spec is actually meaningless, as there is
7224 # no search path for DLLs.
7225 hardcode_libdir_flag_spec=' '
7226 allow_undefined_flag=unsupported
7227 # Tell ltmain to make .lib files, not .a files.
7228 libext=lib
7229 # Tell ltmain to make .dll files, not .so files.
hp.com!davidm2de17682004-04-20 16:53:44 +00007230 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007231 # FIXME: Setting linknames here is a bad hack.
7232 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7233 # The linker will automatically build a .lib file if we build a DLL.
7234 old_archive_From_new_cmds='true'
7235 # FIXME: Should let the user specify the lib program.
7236 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7237 fix_srcfile_path='`cygpath -w "$srcfile"`'
7238 enable_shared_with_static_runtimes=yes
7239 ;;
7240
7241 darwin* | rhapsody*)
7242 if test "$GXX" = yes ; then
7243 archive_cmds_need_lc=no
7244 case "$host_os" in
7245 rhapsody* | darwin1.[012])
7246 allow_undefined_flag='-undefined suppress'
7247 ;;
7248 *) # Darwin 1.3 on
7249 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7250 allow_undefined_flag='-flat_namespace -undefined suppress'
7251 else
7252 case ${MACOSX_DEPLOYMENT_TARGET} in
7253 10.[012])
7254 allow_undefined_flag='-flat_namespace -undefined suppress'
7255 ;;
7256 10.*)
7257 allow_undefined_flag='-undefined dynamic_lookup'
7258 ;;
7259 esac
7260 fi
7261 ;;
7262 esac
7263 lt_int_apple_cc_single_mod=no
7264 output_verbose_link_cmd='echo'
7265 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7266 lt_int_apple_cc_single_mod=yes
7267 fi
7268 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7269 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7270 else
7271 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'
7272 fi
7273 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7274 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7275 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7276 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}'
7277 else
7278 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}'
7279 fi
7280 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}'
7281 hardcode_direct=no
7282 hardcode_automatic=yes
7283 hardcode_shlibpath_var=unsupported
7284 whole_archive_flag_spec='-all_load $convenience'
7285 link_all_deplibs=yes
7286 else
7287 ld_shlibs=no
7288 fi
7289 ;;
7290
7291 dgux*)
7292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7293 hardcode_libdir_flag_spec='-L$libdir'
7294 hardcode_shlibpath_var=no
7295 ;;
7296
7297 freebsd1*)
7298 ld_shlibs=no
7299 ;;
7300
7301 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7302 # support. Future versions do this automatically, but an explicit c++rt0.o
7303 # does not break anything, and helps significantly (at the cost of a little
7304 # extra space).
7305 freebsd2.2*)
7306 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7307 hardcode_libdir_flag_spec='-R$libdir'
7308 hardcode_direct=yes
7309 hardcode_shlibpath_var=no
7310 ;;
7311
7312 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7313 freebsd2*)
7314 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7315 hardcode_direct=yes
7316 hardcode_minus_L=yes
7317 hardcode_shlibpath_var=no
7318 ;;
7319
7320 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7321 freebsd* | kfreebsd*-gnu)
7322 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7323 hardcode_libdir_flag_spec='-R$libdir'
7324 hardcode_direct=yes
7325 hardcode_shlibpath_var=no
7326 ;;
7327
7328 hpux9*)
7329 if test "$GCC" = yes; then
7330 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'
7331 else
7332 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'
7333 fi
7334 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7335 hardcode_libdir_separator=:
7336 hardcode_direct=yes
7337
7338 # hardcode_minus_L: Not really in the search PATH,
7339 # but as the default location of the library.
7340 hardcode_minus_L=yes
7341 export_dynamic_flag_spec='${wl}-E'
7342 ;;
7343
7344 hpux10* | hpux11*)
7345 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7346 case "$host_cpu" in
7347 hppa*64*|ia64*)
7348 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7349 ;;
7350 *)
7351 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7352 ;;
7353 esac
7354 else
7355 case "$host_cpu" in
7356 hppa*64*|ia64*)
7357 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7358 ;;
7359 *)
7360 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7361 ;;
7362 esac
7363 fi
7364 if test "$with_gnu_ld" = no; then
7365 case "$host_cpu" in
7366 hppa*64*)
7367 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7368 hardcode_libdir_flag_spec_ld='+b $libdir'
7369 hardcode_libdir_separator=:
7370 hardcode_direct=no
7371 hardcode_shlibpath_var=no
7372 ;;
7373 ia64*)
7374 hardcode_libdir_flag_spec='-L$libdir'
7375 hardcode_direct=no
7376 hardcode_shlibpath_var=no
7377
7378 # hardcode_minus_L: Not really in the search PATH,
7379 # but as the default location of the library.
7380 hardcode_minus_L=yes
7381 ;;
7382 *)
7383 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7384 hardcode_libdir_separator=:
7385 hardcode_direct=yes
7386 export_dynamic_flag_spec='${wl}-E'
7387
7388 # hardcode_minus_L: Not really in the search PATH,
7389 # but as the default location of the library.
7390 hardcode_minus_L=yes
7391 ;;
7392 esac
7393 fi
7394 ;;
7395
7396 irix5* | irix6* | nonstopux*)
7397 if test "$GCC" = yes; then
7398 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'
7399 else
7400 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'
7401 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7402 fi
7403 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7404 hardcode_libdir_separator=:
7405 link_all_deplibs=yes
7406 ;;
7407
hp.com!davidm16230292004-07-15 17:39:59 +00007408 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007409 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7410 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7411 else
7412 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7413 fi
7414 hardcode_libdir_flag_spec='-R$libdir'
7415 hardcode_direct=yes
7416 hardcode_shlibpath_var=no
7417 ;;
7418
7419 newsos6)
7420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7421 hardcode_direct=yes
7422 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7423 hardcode_libdir_separator=:
7424 hardcode_shlibpath_var=no
7425 ;;
7426
7427 openbsd*)
7428 hardcode_direct=yes
7429 hardcode_shlibpath_var=no
7430 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7431 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7432 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7433 export_dynamic_flag_spec='${wl}-E'
7434 else
7435 case $host_os in
7436 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7437 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7438 hardcode_libdir_flag_spec='-R$libdir'
7439 ;;
7440 *)
7441 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7442 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7443 ;;
7444 esac
7445 fi
7446 ;;
7447
7448 os2*)
7449 hardcode_libdir_flag_spec='-L$libdir'
7450 hardcode_minus_L=yes
7451 allow_undefined_flag=unsupported
7452 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'
7453 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7454 ;;
7455
7456 osf3*)
7457 if test "$GCC" = yes; then
7458 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7459 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'
7460 else
7461 allow_undefined_flag=' -expect_unresolved \*'
7462 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'
7463 fi
7464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7465 hardcode_libdir_separator=:
7466 ;;
7467
7468 osf4* | osf5*) # as osf3* with the addition of -msym flag
7469 if test "$GCC" = yes; then
7470 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7471 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'
7472 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7473 else
7474 allow_undefined_flag=' -expect_unresolved \*'
7475 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'
7476 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7477 $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'
7478
7479 # Both c and cxx compiler support -rpath directly
7480 hardcode_libdir_flag_spec='-rpath $libdir'
7481 fi
7482 hardcode_libdir_separator=:
7483 ;;
7484
7485 sco3.2v5*)
7486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7487 hardcode_shlibpath_var=no
7488 export_dynamic_flag_spec='${wl}-Bexport'
7489 runpath_var=LD_RUN_PATH
7490 hardcode_runpath_var=yes
7491 ;;
7492
7493 solaris*)
7494 no_undefined_flag=' -z text'
7495 if test "$GCC" = yes; then
7496 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7497 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7498 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7499 else
7500 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7501 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7502 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7503 fi
7504 hardcode_libdir_flag_spec='-R$libdir'
7505 hardcode_shlibpath_var=no
7506 case $host_os in
7507 solaris2.[0-5] | solaris2.[0-5].*) ;;
7508 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7509 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7510 esac
7511 link_all_deplibs=yes
7512 ;;
7513
7514 sunos4*)
7515 if test "x$host_vendor" = xsequent; then
7516 # Use $CC to link under sequent, because it throws in some extra .o
7517 # files that make .init and .fini sections work.
7518 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7519 else
7520 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7521 fi
7522 hardcode_libdir_flag_spec='-L$libdir'
7523 hardcode_direct=yes
7524 hardcode_minus_L=yes
7525 hardcode_shlibpath_var=no
7526 ;;
7527
7528 sysv4)
7529 case $host_vendor in
7530 sni)
7531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7532 hardcode_direct=yes # is this really true???
7533 ;;
7534 siemens)
7535 ## LD is ld it makes a PLAMLIB
7536 ## CC just makes a GrossModule.
7537 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7538 reload_cmds='$CC -r -o $output$reload_objs'
7539 hardcode_direct=no
7540 ;;
7541 motorola)
7542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7543 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7544 ;;
7545 esac
7546 runpath_var='LD_RUN_PATH'
7547 hardcode_shlibpath_var=no
7548 ;;
7549
7550 sysv4.3*)
7551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7552 hardcode_shlibpath_var=no
7553 export_dynamic_flag_spec='-Bexport'
7554 ;;
7555
7556 sysv4*MP*)
7557 if test -d /usr/nec; then
7558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7559 hardcode_shlibpath_var=no
7560 runpath_var=LD_RUN_PATH
7561 hardcode_runpath_var=yes
7562 ld_shlibs=yes
7563 fi
7564 ;;
7565
7566 sysv4.2uw2*)
7567 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7568 hardcode_direct=yes
7569 hardcode_minus_L=no
7570 hardcode_shlibpath_var=no
7571 hardcode_runpath_var=yes
7572 runpath_var=LD_RUN_PATH
7573 ;;
7574
7575 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7576 no_undefined_flag='${wl}-z ${wl}text'
7577 if test "$GCC" = yes; then
7578 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7579 else
7580 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7581 fi
7582 runpath_var='LD_RUN_PATH'
7583 hardcode_shlibpath_var=no
7584 ;;
7585
7586 sysv5*)
7587 no_undefined_flag=' -z text'
7588 # $CC -shared without GNU ld will not create a library from C++
7589 # object files and a static libstdc++, better avoid it by now
7590 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7591 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7592 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7593 hardcode_libdir_flag_spec=
7594 hardcode_shlibpath_var=no
7595 runpath_var='LD_RUN_PATH'
7596 ;;
7597
7598 uts4*)
7599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7600 hardcode_libdir_flag_spec='-L$libdir'
7601 hardcode_shlibpath_var=no
7602 ;;
7603
7604 *)
7605 ld_shlibs=no
7606 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007607 esac
7608 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007609
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007610echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7611echo "${ECHO_T}$ld_shlibs" >&6
7612test "$ld_shlibs" = no && can_build_shared=no
7613
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007614variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7615if test "$GCC" = yes; then
7616 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7617fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007618
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007619#
7620# Do we need to explicitly link libc?
7621#
7622case "x$archive_cmds_need_lc" in
7623x|xyes)
7624 # Assume -lc should be added
7625 archive_cmds_need_lc=yes
7626
7627 if test "$enable_shared" = yes && test "$GCC" = yes; then
7628 case $archive_cmds in
7629 *'~'*)
7630 # FIXME: we may have to deal with multi-command sequences.
7631 ;;
7632 '$CC '*)
7633 # Test whether the compiler implicitly links with -lc since on some
7634 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7635 # to ld, don't add -lc before -lgcc.
7636 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7637echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7638 $rm conftest*
7639 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7640
7641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7642 (eval $ac_compile) 2>&5
7643 ac_status=$?
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } 2>conftest.err; then
7646 soname=conftest
7647 lib=conftest
7648 libobjs=conftest.$ac_objext
7649 deplibs=
7650 wl=$lt_prog_compiler_wl
7651 compiler_flags=-v
7652 linker_flags=-v
7653 verstring=
7654 output_objdir=.
7655 libname=conftest
7656 lt_save_allow_undefined_flag=$allow_undefined_flag
7657 allow_undefined_flag=
7658 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7659 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7660 ac_status=$?
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }
7663 then
7664 archive_cmds_need_lc=no
7665 else
7666 archive_cmds_need_lc=yes
7667 fi
7668 allow_undefined_flag=$lt_save_allow_undefined_flag
7669 else
7670 cat conftest.err 1>&5
7671 fi
7672 $rm conftest*
7673 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7674echo "${ECHO_T}$archive_cmds_need_lc" >&6
7675 ;;
7676 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007677 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007678 ;;
7679esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007680
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007681echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7682echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7683library_names_spec=
7684libname_spec='lib$name'
7685soname_spec=
hp.com!davidm2de17682004-04-20 16:53:44 +00007686shrext_cmds=".so"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007687postinstall_cmds=
7688postuninstall_cmds=
7689finish_cmds=
7690finish_eval=
7691shlibpath_var=
7692shlibpath_overrides_runpath=unknown
7693version_type=none
7694dynamic_linker="$host_os ld.so"
7695sys_lib_dlsearch_path_spec="/lib /usr/lib"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007696if test "$GCC" = yes; then
7697 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7698 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7699 # if the path contains ";" then we assume it to be the separator
7700 # otherwise default to the standard path separator (i.e. ":") - it is
7701 # assumed that no part of a normal pathname contains ";" but that should
7702 # okay in the real world where ";" in dirpaths is itself problematic.
7703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7704 else
7705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7706 fi
7707else
7708 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7709fi
7710need_lib_prefix=unknown
7711hardcode_into_libs=no
7712
7713# when you set need_version to no, make sure it does not cause -set_version
7714# flags to be left without arguments
7715need_version=unknown
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007716
7717case $host_os in
7718aix3*)
7719 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007721 shlibpath_var=LIBPATH
7722
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007723 # AIX 3 has no versioning support, so we append a major version to the name.
7724 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007725 ;;
7726
7727aix4* | aix5*)
7728 version_type=linux
7729 need_lib_prefix=no
7730 need_version=no
7731 hardcode_into_libs=yes
7732 if test "$host_cpu" = ia64; then
7733 # AIX 5 supports IA64
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007734 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007735 shlibpath_var=LD_LIBRARY_PATH
7736 else
7737 # With GCC up to 2.95.x, collect2 would create an import file
7738 # for dependence libraries. The import file would start with
7739 # the line `#! .'. This would cause the generated library to
7740 # depend on `.', always an invalid library. This was fixed in
7741 # development snapshots of GCC prior to 3.0.
7742 case $host_os in
7743 aix4 | aix4.[01] | aix4.[01].*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007744 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7745 echo ' yes '
7746 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7747 :
7748 else
7749 can_build_shared=no
7750 fi
7751 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007752 esac
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007753 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7754 # soname into executable. Probably we can add versioning support to
7755 # collect2, so additional links can be useful in future.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007756 if test "$aix_use_runtimelinking" = yes; then
7757 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7758 # instead of lib<name>.a to let people know that these are not
7759 # typical AIX shared libraries.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007761 else
7762 # We preserve .a as extension for shared libraries through AIX4.2
7763 # and later when we are not doing run time linking.
7764 library_names_spec='${libname}${release}.a $libname.a'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007765 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007766 fi
7767 shlibpath_var=LIBPATH
7768 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007769 ;;
7770
7771amigaos*)
7772 library_names_spec='$libname.ixlibrary $libname.a'
7773 # Create ${libname}_ixlibrary.a entries in /sys/libs.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007774 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 +00007775 ;;
7776
7777beos*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007778 library_names_spec='${libname}${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007779 dynamic_linker="$host_os ld.so"
7780 shlibpath_var=LIBRARY_PATH
7781 ;;
7782
7783bsdi4*)
7784 version_type=linux
7785 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7787 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007788 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7789 shlibpath_var=LD_LIBRARY_PATH
7790 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7791 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007792 # the default ld.so.conf also contains /usr/contrib/lib and
7793 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7794 # libtool to hard-code these into programs
7795 ;;
7796
7797cygwin* | mingw* | pw32*)
7798 version_type=windows
hp.com!davidm2de17682004-04-20 16:53:44 +00007799 shrext_cmds=".dll"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007800 need_version=no
7801 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007802
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007803 case $GCC,$host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007804 yes,cygwin* | yes,mingw* | yes,pw32*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007805 library_names_spec='$libname.dll.a'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007806 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7807 postinstall_cmds='base_file=`basename \${file}`~
7808 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007809 dldir=$destdir/`dirname \$dlpath`~
7810 test -d \$dldir || mkdir -p \$dldir~
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007811 $install_prog $dir/$dlname \$dldir/$dlname'
7812 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007813 dlpath=$dir/\$dldll~
7814 $rm \$dlpath'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007815 shlibpath_overrides_runpath=yes
7816
7817 case $host_os in
7818 cygwin*)
7819 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7820 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7821 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7822 ;;
7823 mingw*)
7824 # MinGW DLLs use traditional 'lib' prefix
7825 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7826 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7827 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7828 # It is most probably a Windows format PATH printed by
7829 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7830 # path with ; separators, and with drive letters. We can handle the
7831 # drive letters (cygwin fileutils understands them), so leave them,
7832 # especially as we might pass files found there to a mingw objdump,
7833 # which wouldn't understand a cygwinified path. Ahh.
7834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7835 else
7836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7837 fi
7838 ;;
7839 pw32*)
7840 # pw32 DLLs use 'pw' prefix rather than 'lib'
7841 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7842 ;;
7843 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007844 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007845
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007846 *)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007847 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007848 ;;
7849 esac
7850 dynamic_linker='Win32 ld.exe'
7851 # FIXME: first we should search . and the directory the executable is in
7852 shlibpath_var=PATH
7853 ;;
7854
7855darwin* | rhapsody*)
7856 dynamic_linker="$host_os dyld"
7857 version_type=darwin
7858 need_lib_prefix=no
7859 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007860 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7861 soname_spec='${libname}${release}${major}$shared_ext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007862 shlibpath_overrides_runpath=yes
7863 shlibpath_var=DYLD_LIBRARY_PATH
hp.com!davidm2de17682004-04-20 16:53:44 +00007864 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007865 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7866 if test "$GCC" = yes; then
7867 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"`
7868 else
7869 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7870 fi
7871 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7872 ;;
7873
7874dgux*)
7875 version_type=linux
7876 need_lib_prefix=no
7877 need_version=no
7878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7879 soname_spec='${libname}${release}${shared_ext}$major'
7880 shlibpath_var=LD_LIBRARY_PATH
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007881 ;;
7882
7883freebsd1*)
7884 dynamic_linker=no
7885 ;;
7886
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007887kfreebsd*-gnu)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007888 version_type=linux
7889 need_lib_prefix=no
7890 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7892 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007893 shlibpath_var=LD_LIBRARY_PATH
7894 shlibpath_overrides_runpath=no
7895 hardcode_into_libs=yes
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007896 dynamic_linker='GNU ld.so'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007897 ;;
7898
7899freebsd*)
7900 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7901 version_type=freebsd-$objformat
7902 case $version_type in
7903 freebsd-elf*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007905 need_version=no
7906 need_lib_prefix=no
7907 ;;
7908 freebsd-*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007909 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007910 need_version=yes
7911 ;;
7912 esac
7913 shlibpath_var=LD_LIBRARY_PATH
7914 case $host_os in
7915 freebsd2*)
7916 shlibpath_overrides_runpath=yes
7917 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007918 freebsd3.01* | freebsdelf3.01*)
7919 shlibpath_overrides_runpath=yes
7920 hardcode_into_libs=yes
7921 ;;
7922 *) # from 3.2 on
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007923 shlibpath_overrides_runpath=no
7924 hardcode_into_libs=yes
7925 ;;
7926 esac
7927 ;;
7928
7929gnu*)
7930 version_type=linux
7931 need_lib_prefix=no
7932 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7934 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007935 shlibpath_var=LD_LIBRARY_PATH
7936 hardcode_into_libs=yes
7937 ;;
7938
7939hpux9* | hpux10* | hpux11*)
7940 # Give a soname corresponding to the major version so that dld.sl refuses to
7941 # link against other versions.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007942 version_type=sunos
7943 need_lib_prefix=no
7944 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007945 case "$host_cpu" in
7946 ia64*)
hp.com!davidm2de17682004-04-20 16:53:44 +00007947 shrext_cmds='.so'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007948 hardcode_into_libs=yes
7949 dynamic_linker="$host_os dld.so"
7950 shlibpath_var=LD_LIBRARY_PATH
7951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7953 soname_spec='${libname}${release}${shared_ext}$major'
7954 if test "X$HPUX_IA64_MODE" = X32; then
7955 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7956 else
7957 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7958 fi
7959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7960 ;;
7961 hppa*64*)
hp.com!davidm2de17682004-04-20 16:53:44 +00007962 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007963 hardcode_into_libs=yes
7964 dynamic_linker="$host_os dld.sl"
7965 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7968 soname_spec='${libname}${release}${shared_ext}$major'
7969 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7971 ;;
7972 *)
hp.com!davidm2de17682004-04-20 16:53:44 +00007973 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007974 dynamic_linker="$host_os dld.sl"
7975 shlibpath_var=SHLIB_PATH
7976 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7978 soname_spec='${libname}${release}${shared_ext}$major'
7979 ;;
7980 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007981 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7982 postinstall_cmds='chmod 555 $lib'
7983 ;;
7984
7985irix5* | irix6* | nonstopux*)
7986 case $host_os in
7987 nonstopux*) version_type=nonstopux ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007988 *)
7989 if test "$lt_cv_prog_gnu_ld" = yes; then
7990 version_type=linux
7991 else
7992 version_type=irix
7993 fi ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007994 esac
7995 need_lib_prefix=no
7996 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007997 soname_spec='${libname}${release}${shared_ext}$major'
7998 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 +00007999 case $host_os in
8000 irix5* | nonstopux*)
8001 libsuff= shlibsuff=
8002 ;;
8003 *)
8004 case $LD in # libtool.m4 will add one of these switches to LD
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008005 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8006 libsuff= shlibsuff= libmagic=32-bit;;
8007 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8008 libsuff=32 shlibsuff=N32 libmagic=N32;;
8009 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8010 libsuff=64 shlibsuff=64 libmagic=64-bit;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008011 *) libsuff= shlibsuff= libmagic=never-match;;
8012 esac
8013 ;;
8014 esac
8015 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8016 shlibpath_overrides_runpath=no
8017 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8018 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008019 hardcode_into_libs=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008020 ;;
8021
8022# No shared lib support for Linux oldld, aout, or coff.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008023linux*oldld* | linux*aout* | linux*coff*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008024 dynamic_linker=no
8025 ;;
8026
8027# This must be Linux ELF.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008028linux*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008029 version_type=linux
8030 need_lib_prefix=no
8031 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8033 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8035 shlibpath_var=LD_LIBRARY_PATH
8036 shlibpath_overrides_runpath=no
8037 # This implies no fast_install, which is unacceptable.
8038 # Some rework will be needed to allow for fast_install
8039 # before this can be enabled.
8040 hardcode_into_libs=yes
8041
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008042 # Append ld.so.conf contents to the search path
8043 if test -f /etc/ld.so.conf; then
hp.com!davidm2de17682004-04-20 16:53:44 +00008044 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8045 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008046 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008047
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008048 # We used to test for /lib/ld.so.1 and disable shared libraries on
8049 # powerpc, because MkLinux only supported shared libraries with the
8050 # GNU dynamic linker. Since this was broken with cross compilers,
8051 # most powerpc-linux boxes support dynamic linking these days and
8052 # people can always --disable-shared, the test was removed, and we
8053 # assume the GNU/Linux dynamic linker is in use.
8054 dynamic_linker='GNU/Linux ld.so'
8055 ;;
8056
hp.com!davidm16230292004-07-15 17:39:59 +00008057netbsdelf*-gnu)
8058 version_type=linux
8059 need_lib_prefix=no
8060 need_version=no
8061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8062 soname_spec='${libname}${release}${shared_ext}$major'
8063 shlibpath_var=LD_LIBRARY_PATH
8064 shlibpath_overrides_runpath=no
8065 hardcode_into_libs=yes
8066 dynamic_linker='NetBSD ld.elf_so'
8067 ;;
8068
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008069knetbsd*-gnu)
8070 version_type=linux
8071 need_lib_prefix=no
8072 need_version=no
8073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8074 soname_spec='${libname}${release}${shared_ext}$major'
8075 shlibpath_var=LD_LIBRARY_PATH
8076 shlibpath_overrides_runpath=no
8077 hardcode_into_libs=yes
8078 dynamic_linker='GNU ld.so'
8079 ;;
8080
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008081netbsd*)
8082 version_type=sunos
8083 need_lib_prefix=no
8084 need_version=no
8085 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8088 dynamic_linker='NetBSD (a.out) ld.so'
8089 else
hp.com!davidm2de17682004-04-20 16:53:44 +00008090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008091 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008092 dynamic_linker='NetBSD ld.elf_so'
8093 fi
8094 shlibpath_var=LD_LIBRARY_PATH
8095 shlibpath_overrides_runpath=yes
8096 hardcode_into_libs=yes
8097 ;;
8098
8099newsos6)
8100 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8102 shlibpath_var=LD_LIBRARY_PATH
8103 shlibpath_overrides_runpath=yes
8104 ;;
8105
8106nto-qnx*)
8107 version_type=linux
8108 need_lib_prefix=no
8109 need_version=no
8110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8111 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008112 shlibpath_var=LD_LIBRARY_PATH
8113 shlibpath_overrides_runpath=yes
8114 ;;
8115
8116openbsd*)
8117 version_type=sunos
8118 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008119 need_version=yes
8120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8122 shlibpath_var=LD_LIBRARY_PATH
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008123 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 +00008124 case $host_os in
8125 openbsd2.[89] | openbsd2.[89].*)
8126 shlibpath_overrides_runpath=no
8127 ;;
8128 *)
8129 shlibpath_overrides_runpath=yes
8130 ;;
8131 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008132 else
8133 shlibpath_overrides_runpath=yes
8134 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008135 ;;
8136
8137os2*)
8138 libname_spec='$name'
hp.com!davidm2de17682004-04-20 16:53:44 +00008139 shrext_cmds=".dll"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008140 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008141 library_names_spec='$libname${shared_ext} $libname.a'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008142 dynamic_linker='OS/2 ld.exe'
8143 shlibpath_var=LIBPATH
8144 ;;
8145
8146osf3* | osf4* | osf5*)
8147 version_type=osf
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008148 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008149 need_version=no
8150 soname_spec='${libname}${release}${shared_ext}$major'
8151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008152 shlibpath_var=LD_LIBRARY_PATH
8153 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8154 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008155 ;;
8156
8157sco3.2v5*)
8158 version_type=osf
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008159 soname_spec='${libname}${release}${shared_ext}$major'
8160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008161 shlibpath_var=LD_LIBRARY_PATH
8162 ;;
8163
8164solaris*)
8165 version_type=linux
8166 need_lib_prefix=no
8167 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8169 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008170 shlibpath_var=LD_LIBRARY_PATH
8171 shlibpath_overrides_runpath=yes
8172 hardcode_into_libs=yes
8173 # ldd complains unless libraries are executable
8174 postinstall_cmds='chmod +x $lib'
8175 ;;
8176
8177sunos4*)
8178 version_type=sunos
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008180 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8181 shlibpath_var=LD_LIBRARY_PATH
8182 shlibpath_overrides_runpath=yes
8183 if test "$with_gnu_ld" = yes; then
8184 need_lib_prefix=no
8185 fi
8186 need_version=yes
8187 ;;
8188
8189sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8190 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8192 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008193 shlibpath_var=LD_LIBRARY_PATH
8194 case $host_vendor in
8195 sni)
8196 shlibpath_overrides_runpath=no
8197 need_lib_prefix=no
8198 export_dynamic_flag_spec='${wl}-Blargedynsym'
8199 runpath_var=LD_RUN_PATH
8200 ;;
8201 siemens)
8202 need_lib_prefix=no
8203 ;;
8204 motorola)
8205 need_lib_prefix=no
8206 need_version=no
8207 shlibpath_overrides_runpath=no
8208 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8209 ;;
8210 esac
8211 ;;
8212
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008213sysv4*MP*)
8214 if test -d /usr/nec ;then
8215 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008216 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8217 soname_spec='$libname${shared_ext}.$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008218 shlibpath_var=LD_LIBRARY_PATH
8219 fi
8220 ;;
8221
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008222uts4*)
8223 version_type=linux
8224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8225 soname_spec='${libname}${release}${shared_ext}$major'
8226 shlibpath_var=LD_LIBRARY_PATH
8227 ;;
8228
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008229*)
8230 dynamic_linker=no
8231 ;;
8232esac
8233echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8234echo "${ECHO_T}$dynamic_linker" >&6
8235test "$dynamic_linker" = no && can_build_shared=no
8236
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008237echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8238echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8239hardcode_action=
8240if test -n "$hardcode_libdir_flag_spec" || \
8241 test -n "$runpath_var " || \
8242 test "X$hardcode_automatic"="Xyes" ; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008243
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008244 # We can hardcode non-existant directories.
8245 if test "$hardcode_direct" != no &&
8246 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8247 # have to relink, otherwise we might link with an installed library
8248 # when we should be linking with a yet-to-be-installed one
8249 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8250 test "$hardcode_minus_L" != no; then
8251 # Linking always hardcodes the temporary library directory.
8252 hardcode_action=relink
8253 else
8254 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8255 hardcode_action=immediate
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008256 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008257else
8258 # We cannot hardcode anything, or else we can only hardcode existing
8259 # directories.
8260 hardcode_action=unsupported
8261fi
8262echo "$as_me:$LINENO: result: $hardcode_action" >&5
8263echo "${ECHO_T}$hardcode_action" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008264
8265if test "$hardcode_action" = relink; then
8266 # Fast installation is not supported
8267 enable_fast_install=no
8268elif test "$shlibpath_overrides_runpath" = yes ||
8269 test "$enable_shared" = no; then
8270 # Fast installation is not necessary
8271 enable_fast_install=needless
8272fi
8273
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008274striplib=
8275old_striplib=
8276echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8277echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8278if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8279 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8280 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8281 echo "$as_me:$LINENO: result: yes" >&5
8282echo "${ECHO_T}yes" >&6
8283else
8284# FIXME - insert some real tests, host_os isn't really good enough
8285 case $host_os in
8286 darwin*)
8287 if test -n "$STRIP" ; then
8288 striplib="$STRIP -x"
8289 echo "$as_me:$LINENO: result: yes" >&5
8290echo "${ECHO_T}yes" >&6
8291 else
8292 echo "$as_me:$LINENO: result: no" >&5
8293echo "${ECHO_T}no" >&6
8294fi
8295 ;;
8296 *)
8297 echo "$as_me:$LINENO: result: no" >&5
8298echo "${ECHO_T}no" >&6
8299 ;;
8300 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008301fi
8302
8303if test "x$enable_dlopen" != xyes; then
8304 enable_dlopen=unknown
8305 enable_dlopen_self=unknown
8306 enable_dlopen_self_static=unknown
8307else
8308 lt_cv_dlopen=no
8309 lt_cv_dlopen_libs=
8310
8311 case $host_os in
8312 beos*)
8313 lt_cv_dlopen="load_add_on"
8314 lt_cv_dlopen_libs=
8315 lt_cv_dlopen_self=yes
8316 ;;
8317
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008318 mingw* | pw32*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008319 lt_cv_dlopen="LoadLibrary"
8320 lt_cv_dlopen_libs=
8321 ;;
8322
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008323 cygwin*)
8324 lt_cv_dlopen="dlopen"
8325 lt_cv_dlopen_libs=
8326 ;;
8327
8328 darwin*)
8329 # if libdl is installed we need to link against it
8330 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8331echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8332if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8334else
8335 ac_check_lib_save_LIBS=$LIBS
8336LIBS="-ldl $LIBS"
8337cat >conftest.$ac_ext <<_ACEOF
8338/* confdefs.h. */
8339_ACEOF
8340cat confdefs.h >>conftest.$ac_ext
8341cat >>conftest.$ac_ext <<_ACEOF
8342/* end confdefs.h. */
8343
8344/* Override any gcc2 internal prototype to avoid an error. */
8345#ifdef __cplusplus
8346extern "C"
8347#endif
8348/* We use char because int might match the return type of a gcc2
8349 builtin and then its argument prototype would still apply. */
8350char dlopen ();
8351int
8352main ()
8353{
8354dlopen ();
8355 ;
8356 return 0;
8357}
8358_ACEOF
8359rm -f conftest.$ac_objext conftest$ac_exeext
8360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008361 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008362 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008363 grep -v '^ *+' conftest.er1 >conftest.err
8364 rm -f conftest.er1
8365 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370 (eval $ac_try) 2>&5
8371 ac_status=$?
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; } &&
8374 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376 (eval $ac_try) 2>&5
8377 ac_status=$?
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; }; then
8380 ac_cv_lib_dl_dlopen=yes
8381else
8382 echo "$as_me: failed program was:" >&5
8383sed 's/^/| /' conftest.$ac_ext >&5
8384
8385ac_cv_lib_dl_dlopen=no
8386fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008387rm -f conftest.err conftest.$ac_objext \
8388 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008389LIBS=$ac_check_lib_save_LIBS
8390fi
8391echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8392echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8393if test $ac_cv_lib_dl_dlopen = yes; then
8394 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8395else
8396
8397 lt_cv_dlopen="dyld"
8398 lt_cv_dlopen_libs=
8399 lt_cv_dlopen_self=yes
8400
8401fi
8402
8403 ;;
8404
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008405 *)
8406 echo "$as_me:$LINENO: checking for shl_load" >&5
8407echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8408if test "${ac_cv_func_shl_load+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8410else
8411 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008412/* confdefs.h. */
8413_ACEOF
8414cat confdefs.h >>conftest.$ac_ext
8415cat >>conftest.$ac_ext <<_ACEOF
8416/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008417/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8419#define shl_load innocuous_shl_load
8420
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008421/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008422 which can conflict with char shl_load (); below.
8423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8424 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008425
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008426#ifdef __STDC__
8427# include <limits.h>
8428#else
8429# include <assert.h>
8430#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008431
8432#undef shl_load
8433
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008434/* Override any gcc2 internal prototype to avoid an error. */
8435#ifdef __cplusplus
8436extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008437{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008438#endif
8439/* We use char because int might match the return type of a gcc2
8440 builtin and then its argument prototype would still apply. */
8441char shl_load ();
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008442/* The GNU C library defines this for functions which it implements
8443 to always fail with ENOSYS. Some functions are actually named
8444 something starting with __ and the normal name is an alias. */
8445#if defined (__stub_shl_load) || defined (__stub___shl_load)
8446choke me
8447#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008448char (*f) () = shl_load;
8449#endif
8450#ifdef __cplusplus
8451}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008452#endif
8453
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008454int
8455main ()
8456{
8457return f != shl_load;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008458 ;
8459 return 0;
8460}
8461_ACEOF
8462rm -f conftest.$ac_objext conftest$ac_exeext
8463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008464 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008465 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 (eval $ac_try) 2>&5
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; } &&
8477 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 (eval $ac_try) 2>&5
8480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 ac_cv_func_shl_load=yes
8484else
8485 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008486sed 's/^/| /' conftest.$ac_ext >&5
8487
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008488ac_cv_func_shl_load=no
8489fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008490rm -f conftest.err conftest.$ac_objext \
8491 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008492fi
8493echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8494echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8495if test $ac_cv_func_shl_load = yes; then
8496 lt_cv_dlopen="shl_load"
8497else
8498 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8499echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8500if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8502else
8503 ac_check_lib_save_LIBS=$LIBS
8504LIBS="-ldld $LIBS"
8505cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008506/* confdefs.h. */
8507_ACEOF
8508cat confdefs.h >>conftest.$ac_ext
8509cat >>conftest.$ac_ext <<_ACEOF
8510/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008511
8512/* Override any gcc2 internal prototype to avoid an error. */
8513#ifdef __cplusplus
8514extern "C"
8515#endif
8516/* We use char because int might match the return type of a gcc2
8517 builtin and then its argument prototype would still apply. */
8518char shl_load ();
8519int
8520main ()
8521{
8522shl_load ();
8523 ;
8524 return 0;
8525}
8526_ACEOF
8527rm -f conftest.$ac_objext conftest$ac_exeext
8528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008529 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008530 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008531 grep -v '^ *+' conftest.er1 >conftest.err
8532 rm -f conftest.er1
8533 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 (eval $ac_try) 2>&5
8539 ac_status=$?
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; } &&
8542 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 (eval $ac_try) 2>&5
8545 ac_status=$?
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
8548 ac_cv_lib_dld_shl_load=yes
8549else
8550 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008551sed 's/^/| /' conftest.$ac_ext >&5
8552
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008553ac_cv_lib_dld_shl_load=no
8554fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008555rm -f conftest.err conftest.$ac_objext \
8556 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008557LIBS=$ac_check_lib_save_LIBS
8558fi
8559echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8560echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8561if test $ac_cv_lib_dld_shl_load = yes; then
8562 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8563else
8564 echo "$as_me:$LINENO: checking for dlopen" >&5
8565echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8566if test "${ac_cv_func_dlopen+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8568else
8569 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008570/* confdefs.h. */
8571_ACEOF
8572cat confdefs.h >>conftest.$ac_ext
8573cat >>conftest.$ac_ext <<_ACEOF
8574/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008575/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8577#define dlopen innocuous_dlopen
8578
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008579/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008580 which can conflict with char dlopen (); below.
8581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8582 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008583
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008584#ifdef __STDC__
8585# include <limits.h>
8586#else
8587# include <assert.h>
8588#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008589
8590#undef dlopen
8591
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008592/* Override any gcc2 internal prototype to avoid an error. */
8593#ifdef __cplusplus
8594extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008595{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008596#endif
8597/* We use char because int might match the return type of a gcc2
8598 builtin and then its argument prototype would still apply. */
8599char dlopen ();
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008600/* The GNU C library defines this for functions which it implements
8601 to always fail with ENOSYS. Some functions are actually named
8602 something starting with __ and the normal name is an alias. */
8603#if defined (__stub_dlopen) || defined (__stub___dlopen)
8604choke me
8605#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008606char (*f) () = dlopen;
8607#endif
8608#ifdef __cplusplus
8609}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008610#endif
8611
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008612int
8613main ()
8614{
8615return f != dlopen;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008616 ;
8617 return 0;
8618}
8619_ACEOF
8620rm -f conftest.$ac_objext conftest$ac_exeext
8621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008622 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008623 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008624 grep -v '^ *+' conftest.er1 >conftest.err
8625 rm -f conftest.er1
8626 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631 (eval $ac_try) 2>&5
8632 ac_status=$?
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; } &&
8635 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 (eval $ac_try) 2>&5
8638 ac_status=$?
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; }; then
8641 ac_cv_func_dlopen=yes
8642else
8643 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008644sed 's/^/| /' conftest.$ac_ext >&5
8645
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008646ac_cv_func_dlopen=no
8647fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008648rm -f conftest.err conftest.$ac_objext \
8649 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008650fi
8651echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8652echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8653if test $ac_cv_func_dlopen = yes; then
8654 lt_cv_dlopen="dlopen"
8655else
8656 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8657echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8658if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8660else
8661 ac_check_lib_save_LIBS=$LIBS
8662LIBS="-ldl $LIBS"
8663cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008664/* confdefs.h. */
8665_ACEOF
8666cat confdefs.h >>conftest.$ac_ext
8667cat >>conftest.$ac_ext <<_ACEOF
8668/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008669
8670/* Override any gcc2 internal prototype to avoid an error. */
8671#ifdef __cplusplus
8672extern "C"
8673#endif
8674/* We use char because int might match the return type of a gcc2
8675 builtin and then its argument prototype would still apply. */
8676char dlopen ();
8677int
8678main ()
8679{
8680dlopen ();
8681 ;
8682 return 0;
8683}
8684_ACEOF
8685rm -f conftest.$ac_objext conftest$ac_exeext
8686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008687 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008688 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008689 grep -v '^ *+' conftest.er1 >conftest.err
8690 rm -f conftest.er1
8691 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 (eval $ac_try) 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; } &&
8700 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 (eval $ac_try) 2>&5
8703 ac_status=$?
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; }; then
8706 ac_cv_lib_dl_dlopen=yes
8707else
8708 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008709sed 's/^/| /' conftest.$ac_ext >&5
8710
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008711ac_cv_lib_dl_dlopen=no
8712fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008713rm -f conftest.err conftest.$ac_objext \
8714 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008715LIBS=$ac_check_lib_save_LIBS
8716fi
8717echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8718echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8719if test $ac_cv_lib_dl_dlopen = yes; then
8720 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8721else
8722 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8723echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8724if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8725 echo $ECHO_N "(cached) $ECHO_C" >&6
8726else
8727 ac_check_lib_save_LIBS=$LIBS
8728LIBS="-lsvld $LIBS"
8729cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008730/* confdefs.h. */
8731_ACEOF
8732cat confdefs.h >>conftest.$ac_ext
8733cat >>conftest.$ac_ext <<_ACEOF
8734/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008735
8736/* Override any gcc2 internal prototype to avoid an error. */
8737#ifdef __cplusplus
8738extern "C"
8739#endif
8740/* We use char because int might match the return type of a gcc2
8741 builtin and then its argument prototype would still apply. */
8742char dlopen ();
8743int
8744main ()
8745{
8746dlopen ();
8747 ;
8748 return 0;
8749}
8750_ACEOF
8751rm -f conftest.$ac_objext conftest$ac_exeext
8752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008753 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008754 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008755 grep -v '^ *+' conftest.er1 >conftest.err
8756 rm -f conftest.er1
8757 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 (eval $ac_try) 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; } &&
8766 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; }; then
8772 ac_cv_lib_svld_dlopen=yes
8773else
8774 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008775sed 's/^/| /' conftest.$ac_ext >&5
8776
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008777ac_cv_lib_svld_dlopen=no
8778fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008779rm -f conftest.err conftest.$ac_objext \
8780 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008781LIBS=$ac_check_lib_save_LIBS
8782fi
8783echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8784echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8785if test $ac_cv_lib_svld_dlopen = yes; then
8786 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8787else
8788 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8789echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8790if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8792else
8793 ac_check_lib_save_LIBS=$LIBS
8794LIBS="-ldld $LIBS"
8795cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008796/* confdefs.h. */
8797_ACEOF
8798cat confdefs.h >>conftest.$ac_ext
8799cat >>conftest.$ac_ext <<_ACEOF
8800/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008801
8802/* Override any gcc2 internal prototype to avoid an error. */
8803#ifdef __cplusplus
8804extern "C"
8805#endif
8806/* We use char because int might match the return type of a gcc2
8807 builtin and then its argument prototype would still apply. */
8808char dld_link ();
8809int
8810main ()
8811{
8812dld_link ();
8813 ;
8814 return 0;
8815}
8816_ACEOF
8817rm -f conftest.$ac_objext conftest$ac_exeext
8818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008819 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008820 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008821 grep -v '^ *+' conftest.er1 >conftest.err
8822 rm -f conftest.er1
8823 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 (eval $ac_try) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; } &&
8832 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; }; then
8838 ac_cv_lib_dld_dld_link=yes
8839else
8840 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008841sed 's/^/| /' conftest.$ac_ext >&5
8842
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008843ac_cv_lib_dld_dld_link=no
8844fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008845rm -f conftest.err conftest.$ac_objext \
8846 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008847LIBS=$ac_check_lib_save_LIBS
8848fi
8849echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8850echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8851if test $ac_cv_lib_dld_dld_link = yes; then
8852 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8853fi
8854
8855
8856fi
8857
8858
8859fi
8860
8861
8862fi
8863
8864
8865fi
8866
8867
8868fi
8869
8870 ;;
8871 esac
8872
8873 if test "x$lt_cv_dlopen" != xno; then
8874 enable_dlopen=yes
8875 else
8876 enable_dlopen=no
8877 fi
8878
8879 case $lt_cv_dlopen in
8880 dlopen)
8881 save_CPPFLAGS="$CPPFLAGS"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008882 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008883
8884 save_LDFLAGS="$LDFLAGS"
8885 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8886
8887 save_LIBS="$LIBS"
8888 LIBS="$lt_cv_dlopen_libs $LIBS"
8889
8890 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8891echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8892if test "${lt_cv_dlopen_self+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8894else
8895 if test "$cross_compiling" = yes; then :
8896 lt_cv_dlopen_self=cross
8897else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008898 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008899 lt_status=$lt_dlunknown
8900 cat > conftest.$ac_ext <<EOF
homeip.net!davidm34fa1222004-08-17 15:34:28 +00008901#line 8901 "configure"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008902#include "confdefs.h"
8903
8904#if HAVE_DLFCN_H
8905#include <dlfcn.h>
8906#endif
8907
8908#include <stdio.h>
8909
8910#ifdef RTLD_GLOBAL
8911# define LT_DLGLOBAL RTLD_GLOBAL
8912#else
8913# ifdef DL_GLOBAL
8914# define LT_DLGLOBAL DL_GLOBAL
8915# else
8916# define LT_DLGLOBAL 0
8917# endif
8918#endif
8919
8920/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8921 find out it does not work in some platform. */
8922#ifndef LT_DLLAZY_OR_NOW
8923# ifdef RTLD_LAZY
8924# define LT_DLLAZY_OR_NOW RTLD_LAZY
8925# else
8926# ifdef DL_LAZY
8927# define LT_DLLAZY_OR_NOW DL_LAZY
8928# else
8929# ifdef RTLD_NOW
8930# define LT_DLLAZY_OR_NOW RTLD_NOW
8931# else
8932# ifdef DL_NOW
8933# define LT_DLLAZY_OR_NOW DL_NOW
8934# else
8935# define LT_DLLAZY_OR_NOW 0
8936# endif
8937# endif
8938# endif
8939# endif
8940#endif
8941
8942#ifdef __cplusplus
8943extern "C" void exit (int);
8944#endif
8945
8946void fnord() { int i=42;}
8947int main ()
8948{
8949 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8950 int status = $lt_dlunknown;
8951
8952 if (self)
8953 {
8954 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8955 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8956 /* dlclose (self); */
8957 }
8958
8959 exit (status);
8960}
8961EOF
8962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8963 (eval $ac_link) 2>&5
8964 ac_status=$?
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8967 (./conftest; exit; ) 2>/dev/null
8968 lt_status=$?
8969 case x$lt_status in
8970 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8971 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8972 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8973 esac
8974 else :
8975 # compilation failed
8976 lt_cv_dlopen_self=no
8977 fi
8978fi
8979rm -fr conftest*
8980
8981
8982fi
8983echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8984echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8985
8986 if test "x$lt_cv_dlopen_self" = xyes; then
8987 LDFLAGS="$LDFLAGS $link_static_flag"
8988 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8989echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8990if test "${lt_cv_dlopen_self_static+set}" = set; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8992else
8993 if test "$cross_compiling" = yes; then :
8994 lt_cv_dlopen_self_static=cross
8995else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008996 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008997 lt_status=$lt_dlunknown
8998 cat > conftest.$ac_ext <<EOF
homeip.net!davidm34fa1222004-08-17 15:34:28 +00008999#line 8999 "configure"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009000#include "confdefs.h"
9001
9002#if HAVE_DLFCN_H
9003#include <dlfcn.h>
9004#endif
9005
9006#include <stdio.h>
9007
9008#ifdef RTLD_GLOBAL
9009# define LT_DLGLOBAL RTLD_GLOBAL
9010#else
9011# ifdef DL_GLOBAL
9012# define LT_DLGLOBAL DL_GLOBAL
9013# else
9014# define LT_DLGLOBAL 0
9015# endif
9016#endif
9017
9018/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9019 find out it does not work in some platform. */
9020#ifndef LT_DLLAZY_OR_NOW
9021# ifdef RTLD_LAZY
9022# define LT_DLLAZY_OR_NOW RTLD_LAZY
9023# else
9024# ifdef DL_LAZY
9025# define LT_DLLAZY_OR_NOW DL_LAZY
9026# else
9027# ifdef RTLD_NOW
9028# define LT_DLLAZY_OR_NOW RTLD_NOW
9029# else
9030# ifdef DL_NOW
9031# define LT_DLLAZY_OR_NOW DL_NOW
9032# else
9033# define LT_DLLAZY_OR_NOW 0
9034# endif
9035# endif
9036# endif
9037# endif
9038#endif
9039
9040#ifdef __cplusplus
9041extern "C" void exit (int);
9042#endif
9043
9044void fnord() { int i=42;}
9045int main ()
9046{
9047 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9048 int status = $lt_dlunknown;
9049
9050 if (self)
9051 {
9052 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9053 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9054 /* dlclose (self); */
9055 }
9056
9057 exit (status);
9058}
9059EOF
9060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9061 (eval $ac_link) 2>&5
9062 ac_status=$?
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9065 (./conftest; exit; ) 2>/dev/null
9066 lt_status=$?
9067 case x$lt_status in
9068 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9069 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9070 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9071 esac
9072 else :
9073 # compilation failed
9074 lt_cv_dlopen_self_static=no
9075 fi
9076fi
9077rm -fr conftest*
9078
9079
9080fi
9081echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9082echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9083 fi
9084
9085 CPPFLAGS="$save_CPPFLAGS"
9086 LDFLAGS="$save_LDFLAGS"
9087 LIBS="$save_LIBS"
9088 ;;
9089 esac
9090
9091 case $lt_cv_dlopen_self in
9092 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9093 *) enable_dlopen_self=unknown ;;
9094 esac
9095
9096 case $lt_cv_dlopen_self_static in
9097 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9098 *) enable_dlopen_self_static=unknown ;;
9099 esac
9100fi
9101
9102
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009103# Report which librarie types wil actually be built
9104echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9105echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9106echo "$as_me:$LINENO: result: $can_build_shared" >&5
9107echo "${ECHO_T}$can_build_shared" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009108
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009109echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9110echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9111test "$can_build_shared" = "no" && enable_shared=no
9112
9113# On AIX, shared libraries and static libraries use the same namespace, and
9114# are all built from PIC.
9115case "$host_os" in
9116aix3*)
9117 test "$enable_shared" = yes && enable_static=no
9118 if test -n "$RANLIB"; then
9119 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9120 postinstall_cmds='$RANLIB $lib'
9121 fi
9122 ;;
9123
hp.com!davidm2de17682004-04-20 16:53:44 +00009124aix4* | aix5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009125 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9126 test "$enable_shared" = yes && enable_static=no
9127 fi
9128 ;;
9129 darwin* | rhapsody*)
9130 if test "$GCC" = yes; then
9131 archive_cmds_need_lc=no
9132 case "$host_os" in
9133 rhapsody* | darwin1.[012])
9134 allow_undefined_flag='-undefined suppress'
9135 ;;
9136 *) # Darwin 1.3 on
9137 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9138 allow_undefined_flag='-flat_namespace -undefined suppress'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009139 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009140 case ${MACOSX_DEPLOYMENT_TARGET} in
9141 10.[012])
9142 allow_undefined_flag='-flat_namespace -undefined suppress'
9143 ;;
9144 10.*)
9145 allow_undefined_flag='-undefined dynamic_lookup'
9146 ;;
9147 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009148 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009149 ;;
9150 esac
9151 output_verbose_link_cmd='echo'
9152 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9153 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9154 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9155 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}'
9156 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}'
9157 hardcode_direct=no
9158 hardcode_automatic=yes
9159 hardcode_shlibpath_var=unsupported
9160 whole_archive_flag_spec='-all_load $convenience'
9161 link_all_deplibs=yes
9162 else
9163 ld_shlibs=no
9164 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009165 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009166esac
9167echo "$as_me:$LINENO: result: $enable_shared" >&5
9168echo "${ECHO_T}$enable_shared" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009169
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009170echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9171echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9172# Make sure either enable_shared or enable_static is yes.
9173test "$enable_shared" = yes || enable_static=yes
9174echo "$as_me:$LINENO: result: $enable_static" >&5
9175echo "${ECHO_T}$enable_static" >&6
9176
9177# The else clause should only fire when bootstrapping the
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009178# libtool distribution, otherwise you forgot to ship ltmain.sh
9179# with your package, and you will get complaints that there are
9180# no rules to generate ltmain.sh.
9181if test -f "$ltmain"; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009182 # See if we are running on zsh, and set the options which allow our commands through
9183 # without removal of \ escapes.
9184 if test -n "${ZSH_VERSION+set}" ; then
9185 setopt NO_GLOB_SUBST
9186 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009187 # Now quote all the things that may contain metacharacters while being
9188 # careful not to overquote the AC_SUBSTed values. We take copies of the
9189 # variables and quote the copies for generation of the libtool script.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009190 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9191 SED SHELL STRIP \
9192 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9193 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9194 deplibs_check_method reload_flag reload_cmds need_locks \
9195 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9196 lt_cv_sys_global_symbol_to_c_name_address \
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009197 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009198 old_postinstall_cmds old_postuninstall_cmds \
9199 compiler \
9200 CC \
9201 LD \
9202 lt_prog_compiler_wl \
9203 lt_prog_compiler_pic \
9204 lt_prog_compiler_static \
9205 lt_prog_compiler_no_builtin_flag \
9206 export_dynamic_flag_spec \
9207 thread_safe_flag_spec \
9208 whole_archive_flag_spec \
9209 enable_shared_with_static_runtimes \
9210 old_archive_cmds \
9211 old_archive_from_new_cmds \
9212 predep_objects \
9213 postdep_objects \
9214 predeps \
9215 postdeps \
9216 compiler_lib_search_path \
9217 archive_cmds \
9218 archive_expsym_cmds \
9219 postinstall_cmds \
9220 postuninstall_cmds \
9221 old_archive_from_expsyms_cmds \
9222 allow_undefined_flag \
9223 no_undefined_flag \
9224 export_symbols_cmds \
9225 hardcode_libdir_flag_spec \
9226 hardcode_libdir_flag_spec_ld \
9227 hardcode_libdir_separator \
9228 hardcode_automatic \
9229 module_cmds \
9230 module_expsym_cmds \
9231 lt_cv_prog_compiler_c_o \
9232 exclude_expsyms \
9233 include_expsyms; do
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009234
9235 case $var in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009236 old_archive_cmds | \
9237 old_archive_from_new_cmds | \
9238 archive_cmds | \
9239 archive_expsym_cmds | \
9240 module_cmds | \
9241 module_expsym_cmds | \
9242 old_archive_from_expsyms_cmds | \
9243 export_symbols_cmds | \
9244 extract_expsyms_cmds | reload_cmds | finish_cmds | \
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009245 postinstall_cmds | postuninstall_cmds | \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009246 old_postinstall_cmds | old_postuninstall_cmds | \
9247 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009248 # Double-quote double-evaled strings.
9249 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9250 ;;
9251 *)
9252 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9253 ;;
9254 esac
9255 done
9256
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009257 case $lt_echo in
9258 *'\$0 --fallback-echo"')
9259 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9260 ;;
9261 esac
9262
9263cfgfile="${ofile}T"
9264 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9265 $rm -f "$cfgfile"
9266 { echo "$as_me:$LINENO: creating $ofile" >&5
9267echo "$as_me: creating $ofile" >&6;}
9268
9269 cat <<__EOF__ >> "$cfgfile"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009270#! $SHELL
9271
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009272# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009273# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9274# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9275#
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009276# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9277# Free Software Foundation, Inc.
9278#
9279# This file is part of GNU Libtool:
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009280# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9281#
9282# This program is free software; you can redistribute it and/or modify
9283# it under the terms of the GNU General Public License as published by
9284# the Free Software Foundation; either version 2 of the License, or
9285# (at your option) any later version.
9286#
9287# This program is distributed in the hope that it will be useful, but
9288# WITHOUT ANY WARRANTY; without even the implied warranty of
9289# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9290# General Public License for more details.
9291#
9292# You should have received a copy of the GNU General Public License
9293# along with this program; if not, write to the Free Software
9294# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9295#
9296# As a special exception to the GNU General Public License, if you
9297# distribute this file as part of a program that contains a
9298# configuration script generated by Autoconf, you may include it under
9299# the same distribution terms that you use for the rest of that program.
9300
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009301# A sed program that does not truncate output.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009302SED=$lt_SED
9303
9304# Sed that helps us avoid accidentally triggering echo(1) options like -n.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009305Xsed="$SED -e s/^X//"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009306
9307# The HP-UX ksh and POSIX shell print the target directory to stdout
9308# if CDPATH is set.
9309if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9310
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009311# The names of the tagged configurations supported by this script.
9312available_tags=
9313
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009314# ### BEGIN LIBTOOL CONFIG
9315
9316# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9317
9318# Shell to use when invoking shell scripts.
9319SHELL=$lt_SHELL
9320
9321# Whether or not to build shared libraries.
9322build_libtool_libs=$enable_shared
9323
9324# Whether or not to build static libraries.
9325build_old_libs=$enable_static
9326
9327# Whether or not to add -lc for building shared libraries.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009328build_libtool_need_lc=$archive_cmds_need_lc
9329
9330# Whether or not to disallow shared libs when runtime libs are static
9331allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009332
9333# Whether or not to optimize for fast installation.
9334fast_install=$enable_fast_install
9335
9336# The host system.
9337host_alias=$host_alias
9338host=$host
9339
9340# An echo program that does not interpret backslashes.
9341echo=$lt_echo
9342
9343# The archiver.
9344AR=$lt_AR
9345AR_FLAGS=$lt_AR_FLAGS
9346
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009347# A C compiler.
9348LTCC=$lt_LTCC
9349
9350# A language-specific compiler.
9351CC=$lt_compiler
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009352
9353# Is the compiler the GNU C compiler?
9354with_gcc=$GCC
9355
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009356# An ERE matcher.
9357EGREP=$lt_EGREP
9358
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009359# The linker used to build libraries.
9360LD=$lt_LD
9361
9362# Whether we need hard or soft links.
9363LN_S=$lt_LN_S
9364
9365# A BSD-compatible nm program.
9366NM=$lt_NM
9367
9368# A symbol stripping program
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009369STRIP=$lt_STRIP
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009370
9371# Used to examine libraries when file_magic_cmd begins "file"
9372MAGIC_CMD=$MAGIC_CMD
9373
9374# Used on cygwin: DLL creation program.
9375DLLTOOL="$DLLTOOL"
9376
9377# Used on cygwin: object dumper.
9378OBJDUMP="$OBJDUMP"
9379
9380# Used on cygwin: assembler.
9381AS="$AS"
9382
9383# The name of the directory that contains temporary libtool files.
9384objdir=$objdir
9385
9386# How to create reloadable object files.
9387reload_flag=$lt_reload_flag
9388reload_cmds=$lt_reload_cmds
9389
9390# How to pass a linker flag through the compiler.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009391wl=$lt_lt_prog_compiler_wl
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009392
9393# Object file suffix (normally "o").
9394objext="$ac_objext"
9395
9396# Old archive suffix (normally "a").
9397libext="$libext"
9398
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009399# Shared library suffix (normally ".so").
hp.com!davidm2de17682004-04-20 16:53:44 +00009400shrext_cmds='$shrext_cmds'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009401
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009402# Executable file suffix (normally "").
9403exeext="$exeext"
9404
9405# Additional compiler flags for building library objects.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009406pic_flag=$lt_lt_prog_compiler_pic
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009407pic_mode=$pic_mode
9408
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009409# What is the maximum length of a command?
9410max_cmd_len=$lt_cv_sys_max_cmd_len
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009411
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009412# Does compiler simultaneously support -c and -o options?
9413compiler_c_o=$lt_lt_cv_prog_compiler_c_o
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009414
9415# Must we lock files when doing compilation ?
9416need_locks=$lt_need_locks
9417
9418# Do we need the lib prefix for modules?
9419need_lib_prefix=$need_lib_prefix
9420
9421# Do we need a version for libraries?
9422need_version=$need_version
9423
9424# Whether dlopen is supported.
9425dlopen_support=$enable_dlopen
9426
9427# Whether dlopen of programs is supported.
9428dlopen_self=$enable_dlopen_self
9429
9430# Whether dlopen of statically linked programs is supported.
9431dlopen_self_static=$enable_dlopen_self_static
9432
9433# Compiler flag to prevent dynamic linking.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009434link_static_flag=$lt_lt_prog_compiler_static
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009435
9436# Compiler flag to turn off builtin functions.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009437no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009438
9439# Compiler flag to allow reflexive dlopens.
9440export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9441
9442# Compiler flag to generate shared objects directly from archives.
9443whole_archive_flag_spec=$lt_whole_archive_flag_spec
9444
9445# Compiler flag to generate thread-safe objects.
9446thread_safe_flag_spec=$lt_thread_safe_flag_spec
9447
9448# Library versioning type.
9449version_type=$version_type
9450
9451# Format of library name prefix.
9452libname_spec=$lt_libname_spec
9453
9454# List of archive names. First name is the real one, the rest are links.
9455# The last name is the one that the linker finds with -lNAME.
9456library_names_spec=$lt_library_names_spec
9457
9458# The coded name of the library, if different from the real name.
9459soname_spec=$lt_soname_spec
9460
9461# Commands used to build and install an old-style archive.
9462RANLIB=$lt_RANLIB
9463old_archive_cmds=$lt_old_archive_cmds
9464old_postinstall_cmds=$lt_old_postinstall_cmds
9465old_postuninstall_cmds=$lt_old_postuninstall_cmds
9466
9467# Create an old-style archive from a shared archive.
9468old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9469
9470# Create a temporary old-style archive to link instead of a shared archive.
9471old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9472
9473# Commands used to build and install a shared archive.
9474archive_cmds=$lt_archive_cmds
9475archive_expsym_cmds=$lt_archive_expsym_cmds
9476postinstall_cmds=$lt_postinstall_cmds
9477postuninstall_cmds=$lt_postuninstall_cmds
9478
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009479# Commands used to build a loadable module (assumed same as above if empty)
9480module_cmds=$lt_module_cmds
9481module_expsym_cmds=$lt_module_expsym_cmds
9482
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009483# Commands to strip libraries.
9484old_striplib=$lt_old_striplib
9485striplib=$lt_striplib
9486
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009487# Dependencies to place before the objects being linked to create a
9488# shared library.
9489predep_objects=$lt_predep_objects
9490
9491# Dependencies to place after the objects being linked to create a
9492# shared library.
9493postdep_objects=$lt_postdep_objects
9494
9495# Dependencies to place before the objects being linked to create a
9496# shared library.
9497predeps=$lt_predeps
9498
9499# Dependencies to place after the objects being linked to create a
9500# shared library.
9501postdeps=$lt_postdeps
9502
9503# The library search path used internally by the compiler when linking
9504# a shared library.
9505compiler_lib_search_path=$lt_compiler_lib_search_path
9506
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009507# Method to check whether dependent libraries are shared objects.
9508deplibs_check_method=$lt_deplibs_check_method
9509
9510# Command to use when deplibs_check_method == file_magic.
9511file_magic_cmd=$lt_file_magic_cmd
9512
9513# Flag that allows shared libraries with undefined symbols to be built.
9514allow_undefined_flag=$lt_allow_undefined_flag
9515
9516# Flag that forces no undefined symbols.
9517no_undefined_flag=$lt_no_undefined_flag
9518
9519# Commands used to finish a libtool library installation in a directory.
9520finish_cmds=$lt_finish_cmds
9521
9522# Same as above, but a single script fragment to be evaled but not shown.
9523finish_eval=$lt_finish_eval
9524
9525# Take the output of nm and produce a listing of raw symbols and C names.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009526global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009527
9528# Transform the output of nm in a proper C declaration
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009529global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009530
9531# Transform the output of nm in a C name address pair
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009532global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009533
9534# This is the shared library runtime path variable.
9535runpath_var=$runpath_var
9536
9537# This is the shared library path variable.
9538shlibpath_var=$shlibpath_var
9539
9540# Is shlibpath searched before the hard-coded library search path?
9541shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9542
9543# How to hardcode a shared library path into an executable.
9544hardcode_action=$hardcode_action
9545
9546# Whether we should hardcode library paths into libraries.
9547hardcode_into_libs=$hardcode_into_libs
9548
9549# Flag to hardcode \$libdir into a binary during linking.
9550# This must work even if \$libdir does not exist.
9551hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9552
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009553# If ld is used when linking, flag to hardcode \$libdir into
9554# a binary during linking. This must work even if \$libdir does
9555# not exist.
9556hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9557
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009558# Whether we need a single -rpath flag with a separated argument.
9559hardcode_libdir_separator=$lt_hardcode_libdir_separator
9560
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009561# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009562# resulting binary.
9563hardcode_direct=$hardcode_direct
9564
9565# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9566# resulting binary.
9567hardcode_minus_L=$hardcode_minus_L
9568
9569# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9570# the resulting binary.
9571hardcode_shlibpath_var=$hardcode_shlibpath_var
9572
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009573# Set to yes if building a shared library automatically hardcodes DIR into the library
9574# and all subsequent libraries and executables linked against it.
9575hardcode_automatic=$hardcode_automatic
9576
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009577# Variables whose values should be saved in libtool wrapper scripts and
9578# restored at relink time.
9579variables_saved_for_relink="$variables_saved_for_relink"
9580
9581# Whether libtool must link a program against all its dependency libraries.
9582link_all_deplibs=$link_all_deplibs
9583
9584# Compile-time system search path for libraries
9585sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9586
9587# Run-time system search path for libraries
9588sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9589
9590# Fix the shell variable \$srcfile for the compiler.
9591fix_srcfile_path="$fix_srcfile_path"
9592
9593# Set to yes if exported symbols are required.
9594always_export_symbols=$always_export_symbols
9595
9596# The commands to list exported symbols.
9597export_symbols_cmds=$lt_export_symbols_cmds
9598
9599# The commands to extract the exported symbol list from a shared archive.
9600extract_expsyms_cmds=$lt_extract_expsyms_cmds
9601
9602# Symbols that should not be listed in the preloaded symbols.
9603exclude_expsyms=$lt_exclude_expsyms
9604
9605# Symbols that must always be exported.
9606include_expsyms=$lt_include_expsyms
9607
9608# ### END LIBTOOL CONFIG
9609
9610__EOF__
9611
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009612
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009613 case $host_os in
9614 aix3*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009615 cat <<\EOF >> "$cfgfile"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009616
9617# AIX sometimes has problems with the GCC collect2 program. For some
9618# reason, if we set the COLLECT_NAMES environment variable, the problems
9619# vanish in a puff of smoke.
9620if test "X${COLLECT_NAMES+set}" != Xset; then
9621 COLLECT_NAMES=
9622 export COLLECT_NAMES
9623fi
9624EOF
9625 ;;
9626 esac
9627
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009628 # We use sed instead of cat because bash on DJGPP gets confused if
9629 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9630 # text mode, it properly converts lines to CR/LF. This bash problem
9631 # is reportedly fixed, but why not run on old versions too?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009632 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009633
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009634 mv -f "$cfgfile" "$ofile" || \
9635 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009636 chmod +x "$ofile"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009637
9638else
9639 # If there is no Makefile yet, we rely on a make rule to execute
9640 # `config.status --recheck' to rerun these tests and create the
9641 # libtool script then.
9642 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9643 if test -f "$ltmain_in"; then
9644 test -f Makefile && make "$ltmain"
9645 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009646fi
9647
9648
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009649ac_ext=c
9650ac_cpp='$CPP $CPPFLAGS'
9651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9653ac_compiler_gnu=$ac_cv_c_compiler_gnu
9654
9655CC="$lt_save_CC"
9656
9657
9658# Check whether --with-tags or --without-tags was given.
9659if test "${with_tags+set}" = set; then
9660 withval="$with_tags"
9661 tagnames="$withval"
9662fi;
9663
9664if test -f "$ltmain" && test -n "$tagnames"; then
9665 if test ! -f "${ofile}"; then
9666 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9667echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9668 fi
9669
9670 if test -z "$LTCC"; then
9671 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9672 if test -z "$LTCC"; then
9673 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9674echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9675 else
9676 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9677echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9678 fi
9679 fi
9680
9681 # Extract list of available tagged configurations in $ofile.
9682 # Note that this assumes the entire list is on one line.
9683 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9684
9685 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9686 for tagname in $tagnames; do
9687 IFS="$lt_save_ifs"
9688 # Check whether tagname contains only valid characters
9689 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9690 "") ;;
9691 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9692echo "$as_me: error: invalid tag name: $tagname" >&2;}
9693 { (exit 1); exit 1; }; }
9694 ;;
9695 esac
9696
9697 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9698 then
9699 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9700echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9701 { (exit 1); exit 1; }; }
9702 fi
9703
9704 # Update the list of available tags.
9705 if test -n "$tagname"; then
9706 echo appending configuration tag \"$tagname\" to $ofile
9707
9708 case $tagname in
9709 CXX)
9710 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9711 ac_ext=cc
9712ac_cpp='$CXXCPP $CPPFLAGS'
9713ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9714ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9715ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9716
9717
9718
9719
9720archive_cmds_need_lc_CXX=no
9721allow_undefined_flag_CXX=
9722always_export_symbols_CXX=no
9723archive_expsym_cmds_CXX=
9724export_dynamic_flag_spec_CXX=
9725hardcode_direct_CXX=no
9726hardcode_libdir_flag_spec_CXX=
9727hardcode_libdir_flag_spec_ld_CXX=
9728hardcode_libdir_separator_CXX=
9729hardcode_minus_L_CXX=no
9730hardcode_automatic_CXX=no
9731module_cmds_CXX=
9732module_expsym_cmds_CXX=
9733link_all_deplibs_CXX=unknown
9734old_archive_cmds_CXX=$old_archive_cmds
9735no_undefined_flag_CXX=
9736whole_archive_flag_spec_CXX=
9737enable_shared_with_static_runtimes_CXX=no
9738
9739# Dependencies to place before and after the object being linked:
9740predep_objects_CXX=
9741postdep_objects_CXX=
9742predeps_CXX=
9743postdeps_CXX=
9744compiler_lib_search_path_CXX=
9745
9746# Source file extension for C++ test sources.
9747ac_ext=cc
9748
9749# Object file extension for compiled C++ test sources.
9750objext=o
9751objext_CXX=$objext
9752
9753# Code to be used in simple compile tests
9754lt_simple_compile_test_code="int some_variable = 0;\n"
9755
9756# Code to be used in simple link tests
9757lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9758
9759# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9760
9761# If no C compiler was specified, use CC.
9762LTCC=${LTCC-"$CC"}
9763
9764# Allow CC to be a program name with arguments.
9765compiler=$CC
9766
9767
9768# Allow CC to be a program name with arguments.
9769lt_save_CC=$CC
9770lt_save_LD=$LD
9771lt_save_GCC=$GCC
9772GCC=$GXX
9773lt_save_with_gnu_ld=$with_gnu_ld
9774lt_save_path_LD=$lt_cv_path_LD
9775if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9776 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9777else
9778 unset lt_cv_prog_gnu_ld
9779fi
9780if test -n "${lt_cv_path_LDCXX+set}"; then
9781 lt_cv_path_LD=$lt_cv_path_LDCXX
9782else
9783 unset lt_cv_path_LD
9784fi
9785test -z "${LDCXX+set}" || LD=$LDCXX
9786CC=${CXX-"c++"}
9787compiler=$CC
9788compiler_CXX=$CC
9789cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9790
9791# We don't want -fno-exception wen compiling C++ code, so set the
9792# no_builtin_flag separately
9793if test "$GXX" = yes; then
9794 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9795else
9796 lt_prog_compiler_no_builtin_flag_CXX=
9797fi
9798
9799if test "$GXX" = yes; then
9800 # Set up default GNU C++ configuration
9801
9802
9803# Check whether --with-gnu-ld or --without-gnu-ld was given.
9804if test "${with_gnu_ld+set}" = set; then
9805 withval="$with_gnu_ld"
9806 test "$withval" = no || with_gnu_ld=yes
9807else
9808 with_gnu_ld=no
9809fi;
9810ac_prog=ld
9811if test "$GCC" = yes; then
9812 # Check if gcc -print-prog-name=ld gives a path.
9813 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9814echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9815 case $host in
9816 *-*-mingw*)
9817 # gcc leaves a trailing carriage return which upsets mingw
9818 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9819 *)
9820 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9821 esac
9822 case $ac_prog in
9823 # Accept absolute paths.
9824 [\\/]* | ?:[\\/]*)
9825 re_direlt='/[^/][^/]*/\.\./'
9826 # Canonicalize the pathname of ld
9827 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9828 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9829 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9830 done
9831 test -z "$LD" && LD="$ac_prog"
9832 ;;
9833 "")
9834 # If it fails, then pretend we aren't using GCC.
9835 ac_prog=ld
9836 ;;
9837 *)
9838 # If it is relative, then search for the first ld in PATH.
9839 with_gnu_ld=unknown
9840 ;;
9841 esac
9842elif test "$with_gnu_ld" = yes; then
9843 echo "$as_me:$LINENO: checking for GNU ld" >&5
9844echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9845else
9846 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9847echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9848fi
9849if test "${lt_cv_path_LD+set}" = set; then
9850 echo $ECHO_N "(cached) $ECHO_C" >&6
9851else
9852 if test -z "$LD"; then
9853 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9854 for ac_dir in $PATH; do
9855 IFS="$lt_save_ifs"
9856 test -z "$ac_dir" && ac_dir=.
9857 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9858 lt_cv_path_LD="$ac_dir/$ac_prog"
9859 # Check to see if the program is GNU ld. I'd rather use --version,
9860 # but apparently some GNU ld's only accept -v.
9861 # Break only if it was the GNU/non-GNU ld that we prefer.
9862 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9863 *GNU* | *'with BFD'*)
9864 test "$with_gnu_ld" != no && break
9865 ;;
9866 *)
9867 test "$with_gnu_ld" != yes && break
9868 ;;
9869 esac
9870 fi
9871 done
9872 IFS="$lt_save_ifs"
9873else
9874 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9875fi
9876fi
9877
9878LD="$lt_cv_path_LD"
9879if test -n "$LD"; then
9880 echo "$as_me:$LINENO: result: $LD" >&5
9881echo "${ECHO_T}$LD" >&6
9882else
9883 echo "$as_me:$LINENO: result: no" >&5
9884echo "${ECHO_T}no" >&6
9885fi
9886test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9887echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9888 { (exit 1); exit 1; }; }
9889echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9890echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9891if test "${lt_cv_prog_gnu_ld+set}" = set; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9893else
9894 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9895case `$LD -v 2>&1 </dev/null` in
9896*GNU* | *'with BFD'*)
9897 lt_cv_prog_gnu_ld=yes
9898 ;;
9899*)
9900 lt_cv_prog_gnu_ld=no
9901 ;;
9902esac
9903fi
9904echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9905echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9906with_gnu_ld=$lt_cv_prog_gnu_ld
9907
9908
9909
9910 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9911 # archiving commands below assume that GNU ld is being used.
9912 if test "$with_gnu_ld" = yes; then
9913 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9914 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'
9915
9916 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9917 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9918
9919 # If archive_cmds runs LD, not CC, wlarc should be empty
9920 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9921 # investigate it a little bit more. (MM)
9922 wlarc='${wl}'
9923
9924 # ancient GNU ld didn't support --whole-archive et. al.
9925 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9926 grep 'no-whole-archive' > /dev/null; then
9927 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9928 else
9929 whole_archive_flag_spec_CXX=
9930 fi
9931 else
9932 with_gnu_ld=no
9933 wlarc=
9934
9935 # A generic and very simple default shared library creation
9936 # command for GNU C++ for the case where it uses the native
9937 # linker, instead of GNU ld. If possible, this setting should
9938 # overridden to take advantage of the native linker features on
9939 # the platform it is being used on.
9940 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9941 fi
9942
9943 # Commands to make compiler produce verbose output that lists
9944 # what "hidden" libraries, object files and flags are used when
9945 # linking a shared library.
9946 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9947
9948else
9949 GXX=no
9950 with_gnu_ld=no
9951 wlarc=
9952fi
9953
9954# PORTME: fill in a description of your system's C++ link characteristics
9955echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9956echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9957ld_shlibs_CXX=yes
9958case $host_os in
9959 aix3*)
9960 # FIXME: insert proper C++ library support
9961 ld_shlibs_CXX=no
9962 ;;
9963 aix4* | aix5*)
9964 if test "$host_cpu" = ia64; then
9965 # On IA64, the linker does run time linking by default, so we don't
9966 # have to do anything special.
9967 aix_use_runtimelinking=no
9968 exp_sym_flag='-Bexport'
9969 no_entry_flag=""
9970 else
9971 aix_use_runtimelinking=no
9972
9973 # Test if we are trying to use run time linking or normal
9974 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9975 # need to do runtime linking.
9976 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9977 for ld_flag in $LDFLAGS; do
9978 case $ld_flag in
9979 *-brtl*)
9980 aix_use_runtimelinking=yes
9981 break
9982 ;;
9983 esac
9984 done
9985 esac
9986
9987 exp_sym_flag='-bexport'
9988 no_entry_flag='-bnoentry'
9989 fi
9990
9991 # When large executables or shared objects are built, AIX ld can
9992 # have problems creating the table of contents. If linking a library
9993 # or program results in "error TOC overflow" add -mminimal-toc to
9994 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9995 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9996
9997 archive_cmds_CXX=''
9998 hardcode_direct_CXX=yes
9999 hardcode_libdir_separator_CXX=':'
10000 link_all_deplibs_CXX=yes
10001
10002 if test "$GXX" = yes; then
10003 case $host_os in aix4.012|aix4.012.*)
10004 # We only want to do this on AIX 4.2 and lower, the check
10005 # below for broken collect2 doesn't work under 4.3+
10006 collect2name=`${CC} -print-prog-name=collect2`
10007 if test -f "$collect2name" && \
10008 strings "$collect2name" | grep resolve_lib_name >/dev/null
10009 then
10010 # We have reworked collect2
10011 hardcode_direct_CXX=yes
10012 else
10013 # We have old collect2
10014 hardcode_direct_CXX=unsupported
10015 # It fails to find uninstalled libraries when the uninstalled
10016 # path is not listed in the libpath. Setting hardcode_minus_L
10017 # to unsupported forces relinking
10018 hardcode_minus_L_CXX=yes
10019 hardcode_libdir_flag_spec_CXX='-L$libdir'
10020 hardcode_libdir_separator_CXX=
10021 fi
10022 esac
10023 shared_flag='-shared'
10024 else
10025 # not using gcc
10026 if test "$host_cpu" = ia64; then
10027 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10028 # chokes on -Wl,-G. The following line is correct:
10029 shared_flag='-G'
10030 else
10031 if test "$aix_use_runtimelinking" = yes; then
10032 shared_flag='${wl}-G'
10033 else
10034 shared_flag='${wl}-bM:SRE'
10035 fi
10036 fi
10037 fi
10038
10039 # It seems that -bexpall does not export symbols beginning with
10040 # underscore (_), so it is better to generate a list of symbols to export.
10041 always_export_symbols_CXX=yes
10042 if test "$aix_use_runtimelinking" = yes; then
10043 # Warning - without using the other runtime loading flags (-brtl),
10044 # -berok will link without error, but may produce a broken library.
10045 allow_undefined_flag_CXX='-berok'
10046 # Determine the default libpath from the value encoded in an empty executable.
10047 cat >conftest.$ac_ext <<_ACEOF
10048/* confdefs.h. */
10049_ACEOF
10050cat confdefs.h >>conftest.$ac_ext
10051cat >>conftest.$ac_ext <<_ACEOF
10052/* end confdefs.h. */
10053
10054int
10055main ()
10056{
10057
10058 ;
10059 return 0;
10060}
10061_ACEOF
10062rm -f conftest.$ac_objext conftest$ac_exeext
10063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000010064 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010065 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000010066 grep -v '^ *+' conftest.er1 >conftest.err
10067 rm -f conftest.er1
10068 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000010071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10074 ac_status=$?
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; } &&
10077 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083
10084aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10085}'`
10086# Check for a 64-bit object if we didn't find anything.
10087if 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; }
10088}'`; fi
10089else
10090 echo "$as_me: failed program was:" >&5
10091sed 's/^/| /' conftest.$ac_ext >&5
10092
10093fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000010094rm -f conftest.err conftest.$ac_objext \
10095 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010096if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10097
10098 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10099
10100 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"
10101 else
10102 if test "$host_cpu" = ia64; then
10103 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10104 allow_undefined_flag_CXX="-z nodefs"
10105 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"
10106 else
10107 # Determine the default libpath from the value encoded in an empty executable.
10108 cat >conftest.$ac_ext <<_ACEOF
10109/* confdefs.h. */
10110_ACEOF
10111cat confdefs.h >>conftest.$ac_ext
10112cat >>conftest.$ac_ext <<_ACEOF
10113/* end confdefs.h. */
10114
10115int
10116main ()
10117{
10118
10119 ;
10120 return 0;
10121}
10122_ACEOF
10123rm -f conftest.$ac_objext conftest$ac_exeext
10124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000010125 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010126 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000010127 grep -v '^ *+' conftest.er1 >conftest.err
10128 rm -f conftest.er1
10129 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000010132 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10135 ac_status=$?
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; } &&
10138 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140 (eval $ac_try) 2>&5
10141 ac_status=$?
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10144
10145aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10146}'`
10147# Check for a 64-bit object if we didn't find anything.
10148if 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; }
10149}'`; fi
10150else
10151 echo "$as_me: failed program was:" >&5
10152sed 's/^/| /' conftest.$ac_ext >&5
10153
10154fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000010155rm -f conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010157if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10158
10159 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10160 # Warning - without using the other run time loading flags,
10161 # -berok will link without error, but may produce a broken library.
10162 no_undefined_flag_CXX=' ${wl}-bernotok'
10163 allow_undefined_flag_CXX=' ${wl}-berok'
10164 # -bexpall does not export symbols beginning with underscore (_)
10165 always_export_symbols_CXX=yes
10166 # Exported symbols can be pulled into shared objects from archives
10167 whole_archive_flag_spec_CXX=' '
10168 archive_cmds_need_lc_CXX=yes
10169 # This is similar to how AIX traditionally builds it's shared libraries.
10170 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'
10171 fi
10172 fi
10173 ;;
10174 chorus*)
10175 case $cc_basename in
10176 *)
10177 # FIXME: insert proper C++ library support
10178 ld_shlibs_CXX=no
10179 ;;
10180 esac
10181 ;;
10182
10183 cygwin* | mingw* | pw32*)
10184 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10185 # as there is no search path for DLLs.
10186 hardcode_libdir_flag_spec_CXX='-L$libdir'
10187 allow_undefined_flag_CXX=unsupported
10188 always_export_symbols_CXX=no
10189 enable_shared_with_static_runtimes_CXX=yes
10190
10191 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10192 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'
10193 # If the export-symbols file already is a .def file (1st line
10194 # is EXPORTS), use it as is; otherwise, prepend...
10195 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10196 cp $export_symbols $output_objdir/$soname.def;
10197 else
10198 echo EXPORTS > $output_objdir/$soname.def;
10199 cat $export_symbols >> $output_objdir/$soname.def;
10200 fi~
10201 $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'
10202 else
10203 ld_shlibs_CXX=no
10204 fi
10205 ;;
10206
10207 darwin* | rhapsody*)
10208 if test "$GXX" = yes; then
10209 archive_cmds_need_lc_CXX=no
10210 case "$host_os" in
10211 rhapsody* | darwin1.[012])
10212 allow_undefined_flag_CXX='-undefined suppress'
10213 ;;
10214 *) # Darwin 1.3 on
10215 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10216 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10217 else
10218 case ${MACOSX_DEPLOYMENT_TARGET} in
10219 10.[012])
10220 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10221 ;;
10222 10.*)
10223 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10224 ;;
10225 esac
10226 fi
10227 ;;
10228 esac
10229 lt_int_apple_cc_single_mod=no
10230 output_verbose_link_cmd='echo'
10231 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10232 lt_int_apple_cc_single_mod=yes
10233 fi
10234 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10235 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10236 else
10237 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'
10238 fi
10239 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10240
10241 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10242 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10243 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}'
10244 else
10245 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}'
10246 fi
10247 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}'
10248 hardcode_direct_CXX=no
10249 hardcode_automatic_CXX=yes
10250 hardcode_shlibpath_var_CXX=unsupported
10251 whole_archive_flag_spec_CXX='-all_load $convenience'
10252 link_all_deplibs_CXX=yes
10253 else
10254 ld_shlibs_CXX=no
10255 fi
10256 ;;
10257
10258 dgux*)
10259 case $cc_basename in
10260 ec++)
10261 # FIXME: insert proper C++ library support
10262 ld_shlibs_CXX=no
10263 ;;
10264 ghcx)
10265 # Green Hills C++ Compiler
10266 # FIXME: insert proper C++ library support
10267 ld_shlibs_CXX=no
10268 ;;
10269 *)
10270 # FIXME: insert proper C++ library support
10271 ld_shlibs_CXX=no
10272 ;;
10273 esac
10274 ;;
10275 freebsd12*)
10276 # C++ shared libraries reported to be fairly broken before switch to ELF
10277 ld_shlibs_CXX=no
10278 ;;
10279 freebsd-elf*)
10280 archive_cmds_need_lc_CXX=no
10281 ;;
10282 freebsd* | kfreebsd*-gnu)
10283 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10284 # conventions
10285 ld_shlibs_CXX=yes
10286 ;;
10287 gnu*)
10288 ;;
10289 hpux9*)
10290 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10291 hardcode_libdir_separator_CXX=:
10292 export_dynamic_flag_spec_CXX='${wl}-E'
10293 hardcode_direct_CXX=yes
10294 hardcode_minus_L_CXX=yes # Not in the search PATH,
10295 # but as the default
10296 # location of the library.
10297
10298 case $cc_basename in
10299 CC)
10300 # FIXME: insert proper C++ library support
10301 ld_shlibs_CXX=no
10302 ;;
10303 aCC)
10304 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'
10305 # Commands to make compiler produce verbose output that lists
10306 # what "hidden" libraries, object files and flags are used when
10307 # linking a shared library.
10308 #
10309 # There doesn't appear to be a way to prevent this compiler from
10310 # explicitly linking system object files so we need to strip them
10311 # from the output so that they don't get included in the library
10312 # dependencies.
hp.com!davidm2de17682004-04-20 16:53:44 +000010313 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'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010314 ;;
10315 *)
10316 if test "$GXX" = yes; then
10317 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'
10318 else
10319 # FIXME: insert proper C++ library support
10320 ld_shlibs_CXX=no
10321 fi
10322 ;;
10323 esac
10324 ;;
10325 hpux10*|hpux11*)
10326 if test $with_gnu_ld = no; then
10327 case "$host_cpu" in
10328 hppa*64*)
10329 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10330 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10331 hardcode_libdir_separator_CXX=:
10332 ;;
10333 ia64*)
10334 hardcode_libdir_flag_spec_CXX='-L$libdir'
10335 ;;
10336 *)
10337 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10338 hardcode_libdir_separator_CXX=:
10339 export_dynamic_flag_spec_CXX='${wl}-E'
10340 ;;
10341 esac
10342 fi
10343 case "$host_cpu" in
10344 hppa*64*)
10345 hardcode_direct_CXX=no
10346 hardcode_shlibpath_var_CXX=no
10347 ;;
10348 ia64*)
10349 hardcode_direct_CXX=no
10350 hardcode_shlibpath_var_CXX=no
10351 hardcode_minus_L_CXX=yes # Not in the search PATH,
10352 # but as the default
10353 # location of the library.
10354 ;;
10355 *)
10356 hardcode_direct_CXX=yes
10357 hardcode_minus_L_CXX=yes # Not in the search PATH,
10358 # but as the default
10359 # location of the library.
10360 ;;
10361 esac
10362
10363 case $cc_basename in
10364 CC)
10365 # FIXME: insert proper C++ library support
10366 ld_shlibs_CXX=no
10367 ;;
10368 aCC)
10369 case "$host_cpu" in
10370 hppa*64*|ia64*)
10371 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10372 ;;
10373 *)
10374 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10375 ;;
10376 esac
10377 # Commands to make compiler produce verbose output that lists
10378 # what "hidden" libraries, object files and flags are used when
10379 # linking a shared library.
10380 #
10381 # There doesn't appear to be a way to prevent this compiler from
10382 # explicitly linking system object files so we need to strip them
10383 # from the output so that they don't get included in the library
10384 # dependencies.
10385 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'
10386 ;;
10387 *)
10388 if test "$GXX" = yes; then
10389 if test $with_gnu_ld = no; then
10390 case "$host_cpu" in
10391 ia64*|hppa*64*)
10392 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10393 ;;
10394 *)
10395 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'
10396 ;;
10397 esac
10398 fi
10399 else
10400 # FIXME: insert proper C++ library support
10401 ld_shlibs_CXX=no
10402 fi
10403 ;;
10404 esac
10405 ;;
10406 irix5* | irix6*)
10407 case $cc_basename in
10408 CC)
10409 # SGI C++
10410 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'
10411
10412 # Archives containing C++ object files must be created using
10413 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10414 # necessary to make sure instantiated templates are included
10415 # in the archive.
10416 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10417 ;;
10418 *)
10419 if test "$GXX" = yes; then
10420 if test "$with_gnu_ld" = no; then
10421 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'
10422 else
10423 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'
10424 fi
10425 fi
10426 link_all_deplibs_CXX=yes
10427 ;;
10428 esac
10429 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10430 hardcode_libdir_separator_CXX=:
10431 ;;
10432 linux*)
10433 case $cc_basename in
10434 KCC)
10435 # Kuck and Associates, Inc. (KAI) C++ Compiler
10436
10437 # KCC will only create a shared library if the output file
10438 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10439 # to its proper name (with version) after linking.
10440 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'
10441 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'
10442 # Commands to make compiler produce verbose output that lists
10443 # what "hidden" libraries, object files and flags are used when
10444 # linking a shared library.
10445 #
10446 # There doesn't appear to be a way to prevent this compiler from
10447 # explicitly linking system object files so we need to strip them
10448 # from the output so that they don't get included in the library
10449 # dependencies.
10450 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'
10451
10452 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10453 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10454
10455 # Archives containing C++ object files must be created using
10456 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10457 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10458 ;;
10459 icpc)
10460 # Intel C++
10461 with_gnu_ld=yes
10462 archive_cmds_need_lc_CXX=no
10463 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10464 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'
10465 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10466 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10467 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10468 ;;
10469 cxx)
10470 # Compaq C++
10471 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10472 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'
10473
10474 runpath_var=LD_RUN_PATH
10475 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10476 hardcode_libdir_separator_CXX=:
10477
10478 # Commands to make compiler produce verbose output that lists
10479 # what "hidden" libraries, object files and flags are used when
10480 # linking a shared library.
10481 #
10482 # There doesn't appear to be a way to prevent this compiler from
10483 # explicitly linking system object files so we need to strip them
10484 # from the output so that they don't get included in the library
10485 # dependencies.
10486 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'
10487 ;;
10488 esac
10489 ;;
10490 lynxos*)
10491 # FIXME: insert proper C++ library support
10492 ld_shlibs_CXX=no
10493 ;;
10494 m88k*)
10495 # FIXME: insert proper C++ library support
10496 ld_shlibs_CXX=no
10497 ;;
10498 mvs*)
10499 case $cc_basename in
10500 cxx)
10501 # FIXME: insert proper C++ library support
10502 ld_shlibs_CXX=no
10503 ;;
10504 *)
10505 # FIXME: insert proper C++ library support
10506 ld_shlibs_CXX=no
10507 ;;
10508 esac
10509 ;;
hp.com!davidm16230292004-07-15 17:39:59 +000010510 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010511 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10512 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10513 wlarc=
10514 hardcode_libdir_flag_spec_CXX='-R$libdir'
10515 hardcode_direct_CXX=yes
10516 hardcode_shlibpath_var_CXX=no
10517 fi
10518 # Workaround some broken pre-1.5 toolchains
10519 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10520 ;;
10521 osf3*)
10522 case $cc_basename in
10523 KCC)
10524 # Kuck and Associates, Inc. (KAI) C++ Compiler
10525
10526 # KCC will only create a shared library if the output file
10527 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10528 # to its proper name (with version) after linking.
10529 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'
10530
10531 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10532 hardcode_libdir_separator_CXX=:
10533
10534 # Archives containing C++ object files must be created using
10535 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10536 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10537
10538 ;;
10539 RCC)
10540 # Rational C++ 2.4.1
10541 # FIXME: insert proper C++ library support
10542 ld_shlibs_CXX=no
10543 ;;
10544 cxx)
10545 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10546 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'
10547
10548 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10549 hardcode_libdir_separator_CXX=:
10550
10551 # Commands to make compiler produce verbose output that lists
10552 # what "hidden" libraries, object files and flags are used when
10553 # linking a shared library.
10554 #
10555 # There doesn't appear to be a way to prevent this compiler from
10556 # explicitly linking system object files so we need to strip them
10557 # from the output so that they don't get included in the library
10558 # dependencies.
10559 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'
10560 ;;
10561 *)
10562 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10563 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10564 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'
10565
10566 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10567 hardcode_libdir_separator_CXX=:
10568
10569 # Commands to make compiler produce verbose output that lists
10570 # what "hidden" libraries, object files and flags are used when
10571 # linking a shared library.
10572 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10573
10574 else
10575 # FIXME: insert proper C++ library support
10576 ld_shlibs_CXX=no
10577 fi
10578 ;;
10579 esac
10580 ;;
10581 osf4* | osf5*)
10582 case $cc_basename in
10583 KCC)
10584 # Kuck and Associates, Inc. (KAI) C++ Compiler
10585
10586 # KCC will only create a shared library if the output file
10587 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10588 # to its proper name (with version) after linking.
10589 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'
10590
10591 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10592 hardcode_libdir_separator_CXX=:
10593
10594 # Archives containing C++ object files must be created using
10595 # the KAI C++ compiler.
10596 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10597 ;;
10598 RCC)
10599 # Rational C++ 2.4.1
10600 # FIXME: insert proper C++ library support
10601 ld_shlibs_CXX=no
10602 ;;
10603 cxx)
10604 allow_undefined_flag_CXX=' -expect_unresolved \*'
10605 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'
10606 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10607 echo "-hidden">> $lib.exp~
10608 $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~
10609 $rm $lib.exp'
10610
10611 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10612 hardcode_libdir_separator_CXX=:
10613
10614 # Commands to make compiler produce verbose output that lists
10615 # what "hidden" libraries, object files and flags are used when
10616 # linking a shared library.
10617 #
10618 # There doesn't appear to be a way to prevent this compiler from
10619 # explicitly linking system object files so we need to strip them
10620 # from the output so that they don't get included in the library
10621 # dependencies.
10622 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'
10623 ;;
10624 *)
10625 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10626 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10627 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'
10628
10629 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10630 hardcode_libdir_separator_CXX=:
10631
10632 # Commands to make compiler produce verbose output that lists
10633 # what "hidden" libraries, object files and flags are used when
10634 # linking a shared library.
10635 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10636
10637 else
10638 # FIXME: insert proper C++ library support
10639 ld_shlibs_CXX=no
10640 fi
10641 ;;
10642 esac
10643 ;;
10644 psos*)
10645 # FIXME: insert proper C++ library support
10646 ld_shlibs_CXX=no
10647 ;;
10648 sco*)
10649 archive_cmds_need_lc_CXX=no
10650 case $cc_basename in
10651 CC)
10652 # FIXME: insert proper C++ library support
10653 ld_shlibs_CXX=no
10654 ;;
10655 *)
10656 # FIXME: insert proper C++ library support
10657 ld_shlibs_CXX=no
10658 ;;
10659 esac
10660 ;;
10661 sunos4*)
10662 case $cc_basename in
10663 CC)
10664 # Sun C++ 4.x
10665 # FIXME: insert proper C++ library support
10666 ld_shlibs_CXX=no
10667 ;;
10668 lcc)
10669 # Lucid
10670 # FIXME: insert proper C++ library support
10671 ld_shlibs_CXX=no
10672 ;;
10673 *)
10674 # FIXME: insert proper C++ library support
10675 ld_shlibs_CXX=no
10676 ;;
10677 esac
10678 ;;
10679 solaris*)
10680 case $cc_basename in
10681 CC)
10682 # Sun C++ 4.2, 5.x and Centerline C++
10683 no_undefined_flag_CXX=' -zdefs'
10684 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10685 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10686 $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'
10687
10688 hardcode_libdir_flag_spec_CXX='-R$libdir'
10689 hardcode_shlibpath_var_CXX=no
10690 case $host_os in
10691 solaris2.0-5 | solaris2.0-5.*) ;;
10692 *)
10693 # The C++ compiler is used as linker so we must use $wl
10694 # flag to pass the commands to the underlying system
10695 # linker.
10696 # Supported since Solaris 2.6 (maybe 2.5.1?)
10697 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10698 ;;
10699 esac
10700 link_all_deplibs_CXX=yes
10701
10702 # Commands to make compiler produce verbose output that lists
10703 # what "hidden" libraries, object files and flags are used when
10704 # linking a shared library.
10705 #
10706 # There doesn't appear to be a way to prevent this compiler from
10707 # explicitly linking system object files so we need to strip them
10708 # from the output so that they don't get included in the library
10709 # dependencies.
10710 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'
10711
10712 # Archives containing C++ object files must be created using
10713 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10714 # necessary to make sure instantiated templates are included
10715 # in the archive.
10716 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10717 ;;
10718 gcx)
10719 # Green Hills C++ Compiler
10720 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10721
10722 # The C++ compiler must be used to create the archive.
10723 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10724 ;;
10725 *)
10726 # GNU C++ compiler with Solaris linker
10727 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10728 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10729 if $CC --version | grep -v '^2\.7' > /dev/null; then
10730 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10731 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10732 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10733
10734 # Commands to make compiler produce verbose output that lists
10735 # what "hidden" libraries, object files and flags are used when
10736 # linking a shared library.
10737 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10738 else
10739 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10740 # platform.
10741 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10742 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10743 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10744
10745 # Commands to make compiler produce verbose output that lists
10746 # what "hidden" libraries, object files and flags are used when
10747 # linking a shared library.
10748 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10749 fi
10750
10751 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10752 fi
10753 ;;
10754 esac
10755 ;;
10756 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10757 archive_cmds_need_lc_CXX=no
10758 ;;
10759 tandem*)
10760 case $cc_basename in
10761 NCC)
10762 # NonStop-UX NCC 3.20
10763 # FIXME: insert proper C++ library support
10764 ld_shlibs_CXX=no
10765 ;;
10766 *)
10767 # FIXME: insert proper C++ library support
10768 ld_shlibs_CXX=no
10769 ;;
10770 esac
10771 ;;
10772 vxworks*)
10773 # FIXME: insert proper C++ library support
10774 ld_shlibs_CXX=no
10775 ;;
10776 *)
10777 # FIXME: insert proper C++ library support
10778 ld_shlibs_CXX=no
10779 ;;
10780esac
10781echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10782echo "${ECHO_T}$ld_shlibs_CXX" >&6
10783test "$ld_shlibs_CXX" = no && can_build_shared=no
10784
10785GCC_CXX="$GXX"
10786LD_CXX="$LD"
10787
10788
10789cat > conftest.$ac_ext <<EOF
10790class Foo
10791{
10792public:
10793 Foo (void) { a = 0; }
10794private:
10795 int a;
10796};
10797EOF
10798
10799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10800 (eval $ac_compile) 2>&5
10801 ac_status=$?
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; then
10804 # Parse the compiler output and extract the necessary
10805 # objects, libraries and library flags.
10806
10807 # Sentinel used to keep track of whether or not we are before
10808 # the conftest object file.
10809 pre_test_object_deps_done=no
10810
10811 # The `*' in the case matches for architectures that use `case' in
10812 # $output_verbose_cmd can trigger glob expansion during the loop
10813 # eval without this substitution.
10814 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10815
10816 for p in `eval $output_verbose_link_cmd`; do
10817 case $p in
10818
10819 -L* | -R* | -l*)
10820 # Some compilers place space between "-{L,R}" and the path.
10821 # Remove the space.
10822 if test $p = "-L" \
10823 || test $p = "-R"; then
10824 prev=$p
10825 continue
10826 else
10827 prev=
10828 fi
10829
10830 if test "$pre_test_object_deps_done" = no; then
10831 case $p in
10832 -L* | -R*)
10833 # Internal compiler library paths should come after those
10834 # provided the user. The postdeps already come after the
10835 # user supplied libs so there is no need to process them.
10836 if test -z "$compiler_lib_search_path_CXX"; then
10837 compiler_lib_search_path_CXX="${prev}${p}"
10838 else
10839 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10840 fi
10841 ;;
10842 # The "-l" case would never come before the object being
10843 # linked, so don't bother handling this case.
10844 esac
10845 else
10846 if test -z "$postdeps_CXX"; then
10847 postdeps_CXX="${prev}${p}"
10848 else
10849 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10850 fi
10851 fi
10852 ;;
10853
10854 *.$objext)
10855 # This assumes that the test object file only shows up
10856 # once in the compiler output.
10857 if test "$p" = "conftest.$objext"; then
10858 pre_test_object_deps_done=yes
10859 continue
10860 fi
10861
10862 if test "$pre_test_object_deps_done" = no; then
10863 if test -z "$predep_objects_CXX"; then
10864 predep_objects_CXX="$p"
10865 else
10866 predep_objects_CXX="$predep_objects_CXX $p"
10867 fi
10868 else
10869 if test -z "$postdep_objects_CXX"; then
10870 postdep_objects_CXX="$p"
10871 else
10872 postdep_objects_CXX="$postdep_objects_CXX $p"
10873 fi
10874 fi
10875 ;;
10876
10877 *) ;; # Ignore the rest.
10878
10879 esac
10880 done
10881
10882 # Clean up.
10883 rm -f a.out a.exe
10884else
10885 echo "libtool.m4: error: problem compiling CXX test program"
10886fi
10887
10888$rm -f confest.$objext
10889
10890case " $postdeps_CXX " in
10891*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10892esac
10893
10894lt_prog_compiler_wl_CXX=
10895lt_prog_compiler_pic_CXX=
10896lt_prog_compiler_static_CXX=
10897
10898echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10899echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10900
10901 # C++ specific cases for pic, static, wl, etc.
10902 if test "$GXX" = yes; then
10903 lt_prog_compiler_wl_CXX='-Wl,'
10904 lt_prog_compiler_static_CXX='-static'
10905
10906 case $host_os in
10907 aix*)
10908 # All AIX code is PIC.
10909 if test "$host_cpu" = ia64; then
10910 # AIX 5 now supports IA64 processor
10911 lt_prog_compiler_static_CXX='-Bstatic'
10912 fi
10913 ;;
10914 amigaos*)
10915 # FIXME: we need at least 68020 code to build shared libraries, but
10916 # adding the `-m68020' flag to GCC prevents building anything better,
10917 # like `-m68040'.
10918 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10919 ;;
10920 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10921 # PIC is the default for these OSes.
10922 ;;
10923 mingw* | os2* | pw32*)
10924 # This hack is so that the source file can tell whether it is being
10925 # built for inclusion in a dll (and should export symbols for example).
10926 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10927 ;;
10928 darwin* | rhapsody*)
10929 # PIC is the default on this platform
10930 # Common symbols not allowed in MH_DYLIB files
10931 lt_prog_compiler_pic_CXX='-fno-common'
10932 ;;
10933 *djgpp*)
10934 # DJGPP does not support shared libraries at all
10935 lt_prog_compiler_pic_CXX=
10936 ;;
10937 sysv4*MP*)
10938 if test -d /usr/nec; then
10939 lt_prog_compiler_pic_CXX=-Kconform_pic
10940 fi
10941 ;;
10942 hpux*)
10943 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10944 # not for PA HP-UX.
10945 case "$host_cpu" in
10946 hppa*64*|ia64*)
10947 ;;
10948 *)
10949 lt_prog_compiler_pic_CXX='-fPIC'
10950 ;;
10951 esac
10952 ;;
10953 *)
10954 lt_prog_compiler_pic_CXX='-fPIC'
10955 ;;
10956 esac
10957 else
10958 case $host_os in
10959 aix4* | aix5*)
10960 # All AIX code is PIC.
10961 if test "$host_cpu" = ia64; then
10962 # AIX 5 now supports IA64 processor
10963 lt_prog_compiler_static_CXX='-Bstatic'
10964 else
10965 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10966 fi
10967 ;;
10968 chorus*)
10969 case $cc_basename in
10970 cxch68)
10971 # Green Hills C++ Compiler
10972 # _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"
10973 ;;
10974 esac
10975 ;;
10976 dgux*)
10977 case $cc_basename in
10978 ec++)
10979 lt_prog_compiler_pic_CXX='-KPIC'
10980 ;;
10981 ghcx)
10982 # Green Hills C++ Compiler
10983 lt_prog_compiler_pic_CXX='-pic'
10984 ;;
10985 *)
10986 ;;
10987 esac
10988 ;;
10989 freebsd* | kfreebsd*-gnu)
10990 # FreeBSD uses GNU C++
10991 ;;
10992 hpux9* | hpux10* | hpux11*)
10993 case $cc_basename in
10994 CC)
10995 lt_prog_compiler_wl_CXX='-Wl,'
10996 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10997 if test "$host_cpu" != ia64; then
10998 lt_prog_compiler_pic_CXX='+Z'
10999 fi
11000 ;;
11001 aCC)
11002 lt_prog_compiler_wl_CXX='-Wl,'
11003 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11004 case "$host_cpu" in
11005 hppa*64*|ia64*)
11006 # +Z the default
11007 ;;
11008 *)
11009 lt_prog_compiler_pic_CXX='+Z'
11010 ;;
11011 esac
11012 ;;
11013 *)
11014 ;;
11015 esac
11016 ;;
11017 irix5* | irix6* | nonstopux*)
11018 case $cc_basename in
11019 CC)
11020 lt_prog_compiler_wl_CXX='-Wl,'
11021 lt_prog_compiler_static_CXX='-non_shared'
11022 # CC pic flag -KPIC is the default.
11023 ;;
11024 *)
11025 ;;
11026 esac
11027 ;;
11028 linux*)
11029 case $cc_basename in
11030 KCC)
11031 # KAI C++ Compiler
11032 lt_prog_compiler_wl_CXX='--backend -Wl,'
11033 lt_prog_compiler_pic_CXX='-fPIC'
11034 ;;
11035 icpc)
11036 # Intel C++
11037 lt_prog_compiler_wl_CXX='-Wl,'
11038 lt_prog_compiler_pic_CXX='-KPIC'
11039 lt_prog_compiler_static_CXX='-static'
11040 ;;
11041 cxx)
11042 # Compaq C++
11043 # Make sure the PIC flag is empty. It appears that all Alpha
11044 # Linux and Compaq Tru64 Unix objects are PIC.
11045 lt_prog_compiler_pic_CXX=
11046 lt_prog_compiler_static_CXX='-non_shared'
11047 ;;
11048 *)
11049 ;;
11050 esac
11051 ;;
11052 lynxos*)
11053 ;;
11054 m88k*)
11055 ;;
11056 mvs*)
11057 case $cc_basename in
11058 cxx)
11059 lt_prog_compiler_pic_CXX='-W c,exportall'
11060 ;;
11061 *)
11062 ;;
11063 esac
11064 ;;
hp.com!davidm16230292004-07-15 17:39:59 +000011065 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011066 ;;
11067 osf3* | osf4* | osf5*)
11068 case $cc_basename in
11069 KCC)
11070 lt_prog_compiler_wl_CXX='--backend -Wl,'
11071 ;;
11072 RCC)
11073 # Rational C++ 2.4.1
11074 lt_prog_compiler_pic_CXX='-pic'
11075 ;;
11076 cxx)
11077 # Digital/Compaq C++
11078 lt_prog_compiler_wl_CXX='-Wl,'
11079 # Make sure the PIC flag is empty. It appears that all Alpha
11080 # Linux and Compaq Tru64 Unix objects are PIC.
11081 lt_prog_compiler_pic_CXX=
11082 lt_prog_compiler_static_CXX='-non_shared'
11083 ;;
11084 *)
11085 ;;
11086 esac
11087 ;;
11088 psos*)
11089 ;;
11090 sco*)
11091 case $cc_basename in
11092 CC)
11093 lt_prog_compiler_pic_CXX='-fPIC'
11094 ;;
11095 *)
11096 ;;
11097 esac
11098 ;;
11099 solaris*)
11100 case $cc_basename in
11101 CC)
11102 # Sun C++ 4.2, 5.x and Centerline C++
11103 lt_prog_compiler_pic_CXX='-KPIC'
11104 lt_prog_compiler_static_CXX='-Bstatic'
11105 lt_prog_compiler_wl_CXX='-Qoption ld '
11106 ;;
11107 gcx)
11108 # Green Hills C++ Compiler
11109 lt_prog_compiler_pic_CXX='-PIC'
11110 ;;
11111 *)
11112 ;;
11113 esac
11114 ;;
11115 sunos4*)
11116 case $cc_basename in
11117 CC)
11118 # Sun C++ 4.x
11119 lt_prog_compiler_pic_CXX='-pic'
11120 lt_prog_compiler_static_CXX='-Bstatic'
11121 ;;
11122 lcc)
11123 # Lucid
11124 lt_prog_compiler_pic_CXX='-pic'
11125 ;;
11126 *)
11127 ;;
11128 esac
11129 ;;
11130 tandem*)
11131 case $cc_basename in
11132 NCC)
11133 # NonStop-UX NCC 3.20
11134 lt_prog_compiler_pic_CXX='-KPIC'
11135 ;;
11136 *)
11137 ;;
11138 esac
11139 ;;
11140 unixware*)
11141 ;;
11142 vxworks*)
11143 ;;
11144 *)
11145 lt_prog_compiler_can_build_shared_CXX=no
11146 ;;
11147 esac
11148 fi
11149
11150echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11151echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11152
11153#
11154# Check to make sure the PIC flag actually works.
11155#
11156if test -n "$lt_prog_compiler_pic_CXX"; then
11157
11158echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11159echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11160if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6
11162else
11163 lt_prog_compiler_pic_works_CXX=no
11164 ac_outfile=conftest.$ac_objext
11165 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11166 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11167 # Insert the option either (1) after the last *FLAGS variable, or
11168 # (2) before a word containing "conftest.", or (3) at the end.
11169 # Note that $ac_compile itself does not contain backslashes and begins
11170 # with a dollar sign (not a hyphen), so the echo should work correctly.
11171 # The option is referenced via a variable to avoid confusing sed.
11172 lt_compile=`echo "$ac_compile" | $SED \
11173 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11175 -e 's:$: $lt_compiler_flag:'`
homeip.net!davidm34fa1222004-08-17 15:34:28 +000011176 (eval echo "\"\$as_me:11176: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011177 (eval "$lt_compile" 2>conftest.err)
11178 ac_status=$?
11179 cat conftest.err >&5
homeip.net!davidm34fa1222004-08-17 15:34:28 +000011180 echo "$as_me:11180: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011181 if (exit $ac_status) && test -s "$ac_outfile"; then
11182 # The compiler can only warn and ignore the option if not recognized
11183 # So say no if there are warnings
11184 if test ! -s conftest.err; then
11185 lt_prog_compiler_pic_works_CXX=yes
11186 fi
11187 fi
11188 $rm conftest*
11189
11190fi
11191echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11192echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11193
11194if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11195 case $lt_prog_compiler_pic_CXX in
11196 "" | " "*) ;;
11197 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11198 esac
11199else
11200 lt_prog_compiler_pic_CXX=
11201 lt_prog_compiler_can_build_shared_CXX=no
11202fi
11203
11204fi
11205case "$host_os" in
11206 # For platforms which do not support PIC, -DPIC is meaningless:
11207 *djgpp*)
11208 lt_prog_compiler_pic_CXX=
11209 ;;
11210 *)
11211 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11212 ;;
11213esac
11214
11215echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11216echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11217if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11219else
11220 lt_cv_prog_compiler_c_o_CXX=no
11221 $rm -r conftest 2>/dev/null
11222 mkdir conftest
11223 cd conftest
11224 mkdir out
11225 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11226
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011227 lt_compiler_flag="-o out/conftest2.$ac_objext"
11228 # Insert the option either (1) after the last *FLAGS variable, or
11229 # (2) before a word containing "conftest.", or (3) at the end.
11230 # Note that $ac_compile itself does not contain backslashes and begins
11231 # with a dollar sign (not a hyphen), so the echo should work correctly.
11232 lt_compile=`echo "$ac_compile" | $SED \
11233 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11235 -e 's:$: $lt_compiler_flag:'`
homeip.net!davidm34fa1222004-08-17 15:34:28 +000011236 (eval echo "\"\$as_me:11236: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011237 (eval "$lt_compile" 2>out/conftest.err)
11238 ac_status=$?
11239 cat out/conftest.err >&5
homeip.net!davidm34fa1222004-08-17 15:34:28 +000011240 echo "$as_me:11240: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011241 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11242 then
11243 # The compiler can only warn and ignore the option if not recognized
11244 # So say no if there are warnings
11245 if test ! -s out/conftest.err; then
11246 lt_cv_prog_compiler_c_o_CXX=yes
11247 fi
11248 fi
11249 chmod u+w .
11250 $rm conftest*
11251 # SGI C++ compiler will create directory out/ii_files/ for
11252 # template instantiation
11253 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11254 $rm out/* && rmdir out
11255 cd ..
11256 rmdir conftest
11257 $rm conftest*
11258
11259fi
11260echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11261echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11262
11263
11264hard_links="nottested"
11265if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11266 # do not overwrite the value of need_locks provided by the user
11267 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11268echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11269 hard_links=yes
11270 $rm conftest*
11271 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11272 touch conftest.a
11273 ln conftest.a conftest.b 2>&5 || hard_links=no
11274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11275 echo "$as_me:$LINENO: result: $hard_links" >&5
11276echo "${ECHO_T}$hard_links" >&6
11277 if test "$hard_links" = no; then
11278 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11279echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11280 need_locks=warn
11281 fi
11282else
11283 need_locks=no
11284fi
11285
11286echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11287echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11288
11289 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11290 case $host_os in
11291 aix4* | aix5*)
11292 # If we're using GNU nm, then we don't want the "-C" option.
11293 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11294 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11295 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'
11296 else
11297 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'
11298 fi
11299 ;;
11300 pw32*)
11301 export_symbols_cmds_CXX="$ltdll_cmds"
11302 ;;
11303 cygwin* | mingw*)
11304 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11305 ;;
hp.com!davidm2de17682004-04-20 16:53:44 +000011306 linux*)
11307 link_all_deplibs_CXX=no
11308 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011309 *)
11310 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11311 ;;
11312 esac
11313
11314echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11315echo "${ECHO_T}$ld_shlibs_CXX" >&6
11316test "$ld_shlibs_CXX" = no && can_build_shared=no
11317
11318variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11319if test "$GCC" = yes; then
11320 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11321fi
11322
11323#
11324# Do we need to explicitly link libc?
11325#
11326case "x$archive_cmds_need_lc_CXX" in
11327x|xyes)
11328 # Assume -lc should be added
11329 archive_cmds_need_lc_CXX=yes
11330
11331 if test "$enable_shared" = yes && test "$GCC" = yes; then
11332 case $archive_cmds_CXX in
11333 *'~'*)
11334 # FIXME: we may have to deal with multi-command sequences.
11335 ;;
11336 '$CC '*)
11337 # Test whether the compiler implicitly links with -lc since on some
11338 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11339 # to ld, don't add -lc before -lgcc.
11340 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11341echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11342 $rm conftest*
11343 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11344
11345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11346 (eval $ac_compile) 2>&5
11347 ac_status=$?
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } 2>conftest.err; then
11350 soname=conftest
11351 lib=conftest
11352 libobjs=conftest.$ac_objext
11353 deplibs=
11354 wl=$lt_prog_compiler_wl_CXX
11355 compiler_flags=-v
11356 linker_flags=-v
11357 verstring=
11358 output_objdir=.
11359 libname=conftest
11360 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11361 allow_undefined_flag_CXX=
11362 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11363 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11364 ac_status=$?
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); }
11367 then
11368 archive_cmds_need_lc_CXX=no
11369 else
11370 archive_cmds_need_lc_CXX=yes
11371 fi
11372 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11373 else
11374 cat conftest.err 1>&5
11375 fi
11376 $rm conftest*
11377 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11378echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11379 ;;
11380 esac
11381 fi
11382 ;;
11383esac
11384
11385echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11386echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11387library_names_spec=
11388libname_spec='lib$name'
11389soname_spec=
hp.com!davidm2de17682004-04-20 16:53:44 +000011390shrext_cmds=".so"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011391postinstall_cmds=
11392postuninstall_cmds=
11393finish_cmds=
11394finish_eval=
11395shlibpath_var=
11396shlibpath_overrides_runpath=unknown
11397version_type=none
11398dynamic_linker="$host_os ld.so"
11399sys_lib_dlsearch_path_spec="/lib /usr/lib"
11400if test "$GCC" = yes; then
11401 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11402 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11403 # if the path contains ";" then we assume it to be the separator
11404 # otherwise default to the standard path separator (i.e. ":") - it is
11405 # assumed that no part of a normal pathname contains ";" but that should
11406 # okay in the real world where ";" in dirpaths is itself problematic.
11407 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11408 else
11409 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11410 fi
11411else
11412 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11413fi
11414need_lib_prefix=unknown
11415hardcode_into_libs=no
11416
11417# when you set need_version to no, make sure it does not cause -set_version
11418# flags to be left without arguments
11419need_version=unknown
11420
11421case $host_os in
11422aix3*)
11423 version_type=linux
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11425 shlibpath_var=LIBPATH
11426
11427 # AIX 3 has no versioning support, so we append a major version to the name.
11428 soname_spec='${libname}${release}${shared_ext}$major'
11429 ;;
11430
11431aix4* | aix5*)
11432 version_type=linux
11433 need_lib_prefix=no
11434 need_version=no
11435 hardcode_into_libs=yes
11436 if test "$host_cpu" = ia64; then
11437 # AIX 5 supports IA64
11438 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11439 shlibpath_var=LD_LIBRARY_PATH
11440 else
11441 # With GCC up to 2.95.x, collect2 would create an import file
11442 # for dependence libraries. The import file would start with
11443 # the line `#! .'. This would cause the generated library to
11444 # depend on `.', always an invalid library. This was fixed in
11445 # development snapshots of GCC prior to 3.0.
11446 case $host_os in
11447 aix4 | aix4.[01] | aix4.[01].*)
11448 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11449 echo ' yes '
11450 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11451 :
11452 else
11453 can_build_shared=no
11454 fi
11455 ;;
11456 esac
11457 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11458 # soname into executable. Probably we can add versioning support to
11459 # collect2, so additional links can be useful in future.
11460 if test "$aix_use_runtimelinking" = yes; then
11461 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11462 # instead of lib<name>.a to let people know that these are not
11463 # typical AIX shared libraries.
11464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11465 else
11466 # We preserve .a as extension for shared libraries through AIX4.2
11467 # and later when we are not doing run time linking.
11468 library_names_spec='${libname}${release}.a $libname.a'
11469 soname_spec='${libname}${release}${shared_ext}$major'
11470 fi
11471 shlibpath_var=LIBPATH
11472 fi
11473 ;;
11474
11475amigaos*)
11476 library_names_spec='$libname.ixlibrary $libname.a'
11477 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11478 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'
11479 ;;
11480
11481beos*)
11482 library_names_spec='${libname}${shared_ext}'
11483 dynamic_linker="$host_os ld.so"
11484 shlibpath_var=LIBRARY_PATH
11485 ;;
11486
11487bsdi4*)
11488 version_type=linux
11489 need_version=no
11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11491 soname_spec='${libname}${release}${shared_ext}$major'
11492 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11493 shlibpath_var=LD_LIBRARY_PATH
11494 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11495 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11496 # the default ld.so.conf also contains /usr/contrib/lib and
11497 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11498 # libtool to hard-code these into programs
11499 ;;
11500
11501cygwin* | mingw* | pw32*)
11502 version_type=windows
hp.com!davidm2de17682004-04-20 16:53:44 +000011503 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011504 need_version=no
11505 need_lib_prefix=no
11506
11507 case $GCC,$host_os in
11508 yes,cygwin* | yes,mingw* | yes,pw32*)
11509 library_names_spec='$libname.dll.a'
11510 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11511 postinstall_cmds='base_file=`basename \${file}`~
11512 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11513 dldir=$destdir/`dirname \$dlpath`~
11514 test -d \$dldir || mkdir -p \$dldir~
11515 $install_prog $dir/$dlname \$dldir/$dlname'
11516 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11517 dlpath=$dir/\$dldll~
11518 $rm \$dlpath'
11519 shlibpath_overrides_runpath=yes
11520
11521 case $host_os in
11522 cygwin*)
11523 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11524 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11525 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11526 ;;
11527 mingw*)
11528 # MinGW DLLs use traditional 'lib' prefix
11529 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11530 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11531 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11532 # It is most probably a Windows format PATH printed by
11533 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11534 # path with ; separators, and with drive letters. We can handle the
11535 # drive letters (cygwin fileutils understands them), so leave them,
11536 # especially as we might pass files found there to a mingw objdump,
11537 # which wouldn't understand a cygwinified path. Ahh.
11538 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11539 else
11540 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11541 fi
11542 ;;
11543 pw32*)
11544 # pw32 DLLs use 'pw' prefix rather than 'lib'
11545 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11546 ;;
11547 esac
11548 ;;
11549
11550 *)
11551 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11552 ;;
11553 esac
11554 dynamic_linker='Win32 ld.exe'
11555 # FIXME: first we should search . and the directory the executable is in
11556 shlibpath_var=PATH
11557 ;;
11558
11559darwin* | rhapsody*)
11560 dynamic_linker="$host_os dyld"
11561 version_type=darwin
11562 need_lib_prefix=no
11563 need_version=no
11564 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11565 soname_spec='${libname}${release}${major}$shared_ext'
11566 shlibpath_overrides_runpath=yes
11567 shlibpath_var=DYLD_LIBRARY_PATH
hp.com!davidm2de17682004-04-20 16:53:44 +000011568 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011569 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11570 if test "$GCC" = yes; then
11571 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"`
11572 else
11573 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11574 fi
11575 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11576 ;;
11577
11578dgux*)
11579 version_type=linux
11580 need_lib_prefix=no
11581 need_version=no
11582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11583 soname_spec='${libname}${release}${shared_ext}$major'
11584 shlibpath_var=LD_LIBRARY_PATH
11585 ;;
11586
11587freebsd1*)
11588 dynamic_linker=no
11589 ;;
11590
11591kfreebsd*-gnu)
11592 version_type=linux
11593 need_lib_prefix=no
11594 need_version=no
11595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11596 soname_spec='${libname}${release}${shared_ext}$major'
11597 shlibpath_var=LD_LIBRARY_PATH
11598 shlibpath_overrides_runpath=no
11599 hardcode_into_libs=yes
11600 dynamic_linker='GNU ld.so'
11601 ;;
11602
11603freebsd*)
11604 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11605 version_type=freebsd-$objformat
11606 case $version_type in
11607 freebsd-elf*)
11608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11609 need_version=no
11610 need_lib_prefix=no
11611 ;;
11612 freebsd-*)
11613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11614 need_version=yes
11615 ;;
11616 esac
11617 shlibpath_var=LD_LIBRARY_PATH
11618 case $host_os in
11619 freebsd2*)
11620 shlibpath_overrides_runpath=yes
11621 ;;
11622 freebsd3.01* | freebsdelf3.01*)
11623 shlibpath_overrides_runpath=yes
11624 hardcode_into_libs=yes
11625 ;;
11626 *) # from 3.2 on
11627 shlibpath_overrides_runpath=no
11628 hardcode_into_libs=yes
11629 ;;
11630 esac
11631 ;;
11632
11633gnu*)
11634 version_type=linux
11635 need_lib_prefix=no
11636 need_version=no
11637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11638 soname_spec='${libname}${release}${shared_ext}$major'
11639 shlibpath_var=LD_LIBRARY_PATH
11640 hardcode_into_libs=yes
11641 ;;
11642
11643hpux9* | hpux10* | hpux11*)
11644 # Give a soname corresponding to the major version so that dld.sl refuses to
11645 # link against other versions.
11646 version_type=sunos
11647 need_lib_prefix=no
11648 need_version=no
11649 case "$host_cpu" in
11650 ia64*)
hp.com!davidm2de17682004-04-20 16:53:44 +000011651 shrext_cmds='.so'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011652 hardcode_into_libs=yes
11653 dynamic_linker="$host_os dld.so"
11654 shlibpath_var=LD_LIBRARY_PATH
11655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11657 soname_spec='${libname}${release}${shared_ext}$major'
11658 if test "X$HPUX_IA64_MODE" = X32; then
11659 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11660 else
11661 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11662 fi
11663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11664 ;;
11665 hppa*64*)
hp.com!davidm2de17682004-04-20 16:53:44 +000011666 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011667 hardcode_into_libs=yes
11668 dynamic_linker="$host_os dld.sl"
11669 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11672 soname_spec='${libname}${release}${shared_ext}$major'
11673 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11675 ;;
11676 *)
hp.com!davidm2de17682004-04-20 16:53:44 +000011677 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011678 dynamic_linker="$host_os dld.sl"
11679 shlibpath_var=SHLIB_PATH
11680 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11682 soname_spec='${libname}${release}${shared_ext}$major'
11683 ;;
11684 esac
11685 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11686 postinstall_cmds='chmod 555 $lib'
11687 ;;
11688
11689irix5* | irix6* | nonstopux*)
11690 case $host_os in
11691 nonstopux*) version_type=nonstopux ;;
11692 *)
11693 if test "$lt_cv_prog_gnu_ld" = yes; then
11694 version_type=linux
11695 else
11696 version_type=irix
11697 fi ;;
11698 esac
11699 need_lib_prefix=no
11700 need_version=no
11701 soname_spec='${libname}${release}${shared_ext}$major'
11702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11703 case $host_os in
11704 irix5* | nonstopux*)
11705 libsuff= shlibsuff=
11706 ;;
11707 *)
11708 case $LD in # libtool.m4 will add one of these switches to LD
11709 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11710 libsuff= shlibsuff= libmagic=32-bit;;
11711 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11712 libsuff=32 shlibsuff=N32 libmagic=N32;;
11713 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11714 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11715 *) libsuff= shlibsuff= libmagic=never-match;;
11716 esac
11717 ;;
11718 esac
11719 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11720 shlibpath_overrides_runpath=no
11721 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11722 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11723 hardcode_into_libs=yes
11724 ;;
11725
11726# No shared lib support for Linux oldld, aout, or coff.
11727linux*oldld* | linux*aout* | linux*coff*)
11728 dynamic_linker=no
11729 ;;
11730
11731# This must be Linux ELF.
11732linux*)
11733 version_type=linux
11734 need_lib_prefix=no
11735 need_version=no
11736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11737 soname_spec='${libname}${release}${shared_ext}$major'
11738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11739 shlibpath_var=LD_LIBRARY_PATH
11740 shlibpath_overrides_runpath=no
11741 # This implies no fast_install, which is unacceptable.
11742 # Some rework will be needed to allow for fast_install
11743 # before this can be enabled.
11744 hardcode_into_libs=yes
11745
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011746 # Append ld.so.conf contents to the search path
11747 if test -f /etc/ld.so.conf; then
hp.com!davidm2de17682004-04-20 16:53:44 +000011748 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11749 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011750 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011751
11752 # We used to test for /lib/ld.so.1 and disable shared libraries on
11753 # powerpc, because MkLinux only supported shared libraries with the
11754 # GNU dynamic linker. Since this was broken with cross compilers,
11755 # most powerpc-linux boxes support dynamic linking these days and
11756 # people can always --disable-shared, the test was removed, and we
11757 # assume the GNU/Linux dynamic linker is in use.
11758 dynamic_linker='GNU/Linux ld.so'
11759 ;;
11760
hp.com!davidm16230292004-07-15 17:39:59 +000011761netbsdelf*-gnu)
11762 version_type=linux
11763 need_lib_prefix=no
11764 need_version=no
11765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11766 soname_spec='${libname}${release}${shared_ext}$major'
11767 shlibpath_var=LD_LIBRARY_PATH
11768 shlibpath_overrides_runpath=no
11769 hardcode_into_libs=yes
11770 dynamic_linker='NetBSD ld.elf_so'
11771 ;;
11772
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011773knetbsd*-gnu)
11774 version_type=linux
11775 need_lib_prefix=no
11776 need_version=no
11777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11778 soname_spec='${libname}${release}${shared_ext}$major'
11779 shlibpath_var=LD_LIBRARY_PATH
11780 shlibpath_overrides_runpath=no
11781 hardcode_into_libs=yes
11782 dynamic_linker='GNU ld.so'
11783 ;;
11784
11785netbsd*)
11786 version_type=sunos
11787 need_lib_prefix=no
11788 need_version=no
11789 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11791 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11792 dynamic_linker='NetBSD (a.out) ld.so'
11793 else
hp.com!davidm2de17682004-04-20 16:53:44 +000011794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011795 soname_spec='${libname}${release}${shared_ext}$major'
11796 dynamic_linker='NetBSD ld.elf_so'
11797 fi
11798 shlibpath_var=LD_LIBRARY_PATH
11799 shlibpath_overrides_runpath=yes
11800 hardcode_into_libs=yes
11801 ;;
11802
11803newsos6)
11804 version_type=linux
11805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11806 shlibpath_var=LD_LIBRARY_PATH
11807 shlibpath_overrides_runpath=yes
11808 ;;
11809
11810nto-qnx*)
11811 version_type=linux
11812 need_lib_prefix=no
11813 need_version=no
11814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11815 soname_spec='${libname}${release}${shared_ext}$major'
11816 shlibpath_var=LD_LIBRARY_PATH
11817 shlibpath_overrides_runpath=yes
11818 ;;
11819
11820openbsd*)
11821 version_type=sunos
11822 need_lib_prefix=no
11823 need_version=yes
11824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11826 shlibpath_var=LD_LIBRARY_PATH
11827 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11828 case $host_os in
11829 openbsd2.[89] | openbsd2.[89].*)
11830 shlibpath_overrides_runpath=no
11831 ;;
11832 *)
11833 shlibpath_overrides_runpath=yes
11834 ;;
11835 esac
11836 else
11837 shlibpath_overrides_runpath=yes
11838 fi
11839 ;;
11840
11841os2*)
11842 libname_spec='$name'
hp.com!davidm2de17682004-04-20 16:53:44 +000011843 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011844 need_lib_prefix=no
11845 library_names_spec='$libname${shared_ext} $libname.a'
11846 dynamic_linker='OS/2 ld.exe'
11847 shlibpath_var=LIBPATH
11848 ;;
11849
11850osf3* | osf4* | osf5*)
11851 version_type=osf
11852 need_lib_prefix=no
11853 need_version=no
11854 soname_spec='${libname}${release}${shared_ext}$major'
11855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11856 shlibpath_var=LD_LIBRARY_PATH
11857 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11858 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11859 ;;
11860
11861sco3.2v5*)
11862 version_type=osf
11863 soname_spec='${libname}${release}${shared_ext}$major'
11864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11865 shlibpath_var=LD_LIBRARY_PATH
11866 ;;
11867
11868solaris*)
11869 version_type=linux
11870 need_lib_prefix=no
11871 need_version=no
11872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11873 soname_spec='${libname}${release}${shared_ext}$major'
11874 shlibpath_var=LD_LIBRARY_PATH
11875 shlibpath_overrides_runpath=yes
11876 hardcode_into_libs=yes
11877 # ldd complains unless libraries are executable
11878 postinstall_cmds='chmod +x $lib'
11879 ;;
11880
11881sunos4*)
11882 version_type=sunos
11883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11884 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11885 shlibpath_var=LD_LIBRARY_PATH
11886 shlibpath_overrides_runpath=yes
11887 if test "$with_gnu_ld" = yes; then
11888 need_lib_prefix=no
11889 fi
11890 need_version=yes
11891 ;;
11892
11893sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11894 version_type=linux
11895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11896 soname_spec='${libname}${release}${shared_ext}$major'
11897 shlibpath_var=LD_LIBRARY_PATH
11898 case $host_vendor in
11899 sni)
11900 shlibpath_overrides_runpath=no
11901 need_lib_prefix=no
11902 export_dynamic_flag_spec='${wl}-Blargedynsym'
11903 runpath_var=LD_RUN_PATH
11904 ;;
11905 siemens)
11906 need_lib_prefix=no
11907 ;;
11908 motorola)
11909 need_lib_prefix=no
11910 need_version=no
11911 shlibpath_overrides_runpath=no
11912 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11913 ;;
11914 esac
11915 ;;
11916
11917sysv4*MP*)
11918 if test -d /usr/nec ;then
11919 version_type=linux
11920 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11921 soname_spec='$libname${shared_ext}.$major'
11922 shlibpath_var=LD_LIBRARY_PATH
11923 fi
11924 ;;
11925
11926uts4*)
11927 version_type=linux
11928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11929 soname_spec='${libname}${release}${shared_ext}$major'
11930 shlibpath_var=LD_LIBRARY_PATH
11931 ;;
11932
11933*)
11934 dynamic_linker=no
11935 ;;
11936esac
11937echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11938echo "${ECHO_T}$dynamic_linker" >&6
11939test "$dynamic_linker" = no && can_build_shared=no
11940
11941echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11942echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11943hardcode_action_CXX=
11944if test -n "$hardcode_libdir_flag_spec_CXX" || \
11945 test -n "$runpath_var CXX" || \
11946 test "X$hardcode_automatic_CXX"="Xyes" ; then
11947
11948 # We can hardcode non-existant directories.
11949 if test "$hardcode_direct_CXX" != no &&
11950 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11951 # have to relink, otherwise we might link with an installed library
11952 # when we should be linking with a yet-to-be-installed one
11953 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11954 test "$hardcode_minus_L_CXX" != no; then
11955 # Linking always hardcodes the temporary library directory.
11956 hardcode_action_CXX=relink
11957 else
11958 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11959 hardcode_action_CXX=immediate
11960 fi
11961else
11962 # We cannot hardcode anything, or else we can only hardcode existing
11963 # directories.
11964 hardcode_action_CXX=unsupported
11965fi
11966echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11967echo "${ECHO_T}$hardcode_action_CXX" >&6
11968
11969if test "$hardcode_action_CXX" = relink; then
11970 # Fast installation is not supported
11971 enable_fast_install=no
11972elif test "$shlibpath_overrides_runpath" = yes ||
11973 test "$enable_shared" = no; then
11974 # Fast installation is not necessary
11975 enable_fast_install=needless
11976fi
11977
11978striplib=
11979old_striplib=
11980echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11981echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11982if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11983 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11984 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11985 echo "$as_me:$LINENO: result: yes" >&5
11986echo "${ECHO_T}yes" >&6
11987else
11988# FIXME - insert some real tests, host_os isn't really good enough
11989 case $host_os in
11990 darwin*)
11991 if test -n "$STRIP" ; then
11992 striplib="$STRIP -x"
11993 echo "$as_me:$LINENO: result: yes" >&5
11994echo "${ECHO_T}yes" >&6
11995 else
11996 echo "$as_me:$LINENO: result: no" >&5
11997echo "${ECHO_T}no" >&6
11998fi
11999 ;;
12000 *)
12001 echo "$as_me:$LINENO: result: no" >&5
12002echo "${ECHO_T}no" >&6
12003 ;;
12004 esac
12005fi
12006
12007if test "x$enable_dlopen" != xyes; then
12008 enable_dlopen=unknown
12009 enable_dlopen_self=unknown
12010 enable_dlopen_self_static=unknown
12011else
12012 lt_cv_dlopen=no
12013 lt_cv_dlopen_libs=
12014
12015 case $host_os in
12016 beos*)
12017 lt_cv_dlopen="load_add_on"
12018 lt_cv_dlopen_libs=
12019 lt_cv_dlopen_self=yes
12020 ;;
12021
12022 mingw* | pw32*)
12023 lt_cv_dlopen="LoadLibrary"
12024 lt_cv_dlopen_libs=
12025 ;;
12026
12027 cygwin*)
12028 lt_cv_dlopen="dlopen"
12029 lt_cv_dlopen_libs=
12030 ;;
12031
12032 darwin*)
12033 # if libdl is installed we need to link against it
12034 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12035echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12036if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12038else
12039 ac_check_lib_save_LIBS=$LIBS
12040LIBS="-ldl $LIBS"
12041cat >conftest.$ac_ext <<_ACEOF
12042/* confdefs.h. */
12043_ACEOF
12044cat confdefs.h >>conftest.$ac_ext
12045cat >>conftest.$ac_ext <<_ACEOF
12046/* end confdefs.h. */
12047
12048/* Override any gcc2 internal prototype to avoid an error. */
12049#ifdef __cplusplus
12050extern "C"
12051#endif
12052/* We use char because int might match the return type of a gcc2
12053 builtin and then its argument prototype would still apply. */
12054char dlopen ();
12055int
12056main ()
12057{
12058dlopen ();
12059 ;
12060 return 0;
12061}
12062_ACEOF
12063rm -f conftest.$ac_objext conftest$ac_exeext
12064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012065 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012066 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012067 grep -v '^ *+' conftest.er1 >conftest.err
12068 rm -f conftest.er1
12069 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012072 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074 (eval $ac_try) 2>&5
12075 ac_status=$?
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; } &&
12078 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12081 ac_status=$?
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; }; then
12084 ac_cv_lib_dl_dlopen=yes
12085else
12086 echo "$as_me: failed program was:" >&5
12087sed 's/^/| /' conftest.$ac_ext >&5
12088
12089ac_cv_lib_dl_dlopen=no
12090fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012091rm -f conftest.err conftest.$ac_objext \
12092 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012093LIBS=$ac_check_lib_save_LIBS
12094fi
12095echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12096echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12097if test $ac_cv_lib_dl_dlopen = yes; then
12098 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12099else
12100
12101 lt_cv_dlopen="dyld"
12102 lt_cv_dlopen_libs=
12103 lt_cv_dlopen_self=yes
12104
12105fi
12106
12107 ;;
12108
12109 *)
12110 echo "$as_me:$LINENO: checking for shl_load" >&5
12111echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12112if test "${ac_cv_func_shl_load+set}" = set; then
12113 echo $ECHO_N "(cached) $ECHO_C" >&6
12114else
12115 cat >conftest.$ac_ext <<_ACEOF
12116/* confdefs.h. */
12117_ACEOF
12118cat confdefs.h >>conftest.$ac_ext
12119cat >>conftest.$ac_ext <<_ACEOF
12120/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012121/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12123#define shl_load innocuous_shl_load
12124
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012125/* System header to define __stub macros and hopefully few prototypes,
12126 which can conflict with char shl_load (); below.
12127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12128 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012129
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012130#ifdef __STDC__
12131# include <limits.h>
12132#else
12133# include <assert.h>
12134#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012135
12136#undef shl_load
12137
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012138/* Override any gcc2 internal prototype to avoid an error. */
12139#ifdef __cplusplus
12140extern "C"
12141{
12142#endif
12143/* We use char because int might match the return type of a gcc2
12144 builtin and then its argument prototype would still apply. */
12145char shl_load ();
12146/* The GNU C library defines this for functions which it implements
12147 to always fail with ENOSYS. Some functions are actually named
12148 something starting with __ and the normal name is an alias. */
12149#if defined (__stub_shl_load) || defined (__stub___shl_load)
12150choke me
12151#else
12152char (*f) () = shl_load;
12153#endif
12154#ifdef __cplusplus
12155}
12156#endif
12157
12158int
12159main ()
12160{
12161return f != shl_load;
12162 ;
12163 return 0;
12164}
12165_ACEOF
12166rm -f conftest.$ac_objext conftest$ac_exeext
12167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012168 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012169 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012170 grep -v '^ *+' conftest.er1 >conftest.err
12171 rm -f conftest.er1
12172 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177 (eval $ac_try) 2>&5
12178 ac_status=$?
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); }; } &&
12181 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183 (eval $ac_try) 2>&5
12184 ac_status=$?
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); }; }; then
12187 ac_cv_func_shl_load=yes
12188else
12189 echo "$as_me: failed program was:" >&5
12190sed 's/^/| /' conftest.$ac_ext >&5
12191
12192ac_cv_func_shl_load=no
12193fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012194rm -f conftest.err conftest.$ac_objext \
12195 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012196fi
12197echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12198echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12199if test $ac_cv_func_shl_load = yes; then
12200 lt_cv_dlopen="shl_load"
12201else
12202 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12203echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12204if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12206else
12207 ac_check_lib_save_LIBS=$LIBS
12208LIBS="-ldld $LIBS"
12209cat >conftest.$ac_ext <<_ACEOF
12210/* confdefs.h. */
12211_ACEOF
12212cat confdefs.h >>conftest.$ac_ext
12213cat >>conftest.$ac_ext <<_ACEOF
12214/* end confdefs.h. */
12215
12216/* Override any gcc2 internal prototype to avoid an error. */
12217#ifdef __cplusplus
12218extern "C"
12219#endif
12220/* We use char because int might match the return type of a gcc2
12221 builtin and then its argument prototype would still apply. */
12222char shl_load ();
12223int
12224main ()
12225{
12226shl_load ();
12227 ;
12228 return 0;
12229}
12230_ACEOF
12231rm -f conftest.$ac_objext conftest$ac_exeext
12232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012233 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012234 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012235 grep -v '^ *+' conftest.er1 >conftest.err
12236 rm -f conftest.er1
12237 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12242 (eval $ac_try) 2>&5
12243 ac_status=$?
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); }; } &&
12246 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248 (eval $ac_try) 2>&5
12249 ac_status=$?
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); }; }; then
12252 ac_cv_lib_dld_shl_load=yes
12253else
12254 echo "$as_me: failed program was:" >&5
12255sed 's/^/| /' conftest.$ac_ext >&5
12256
12257ac_cv_lib_dld_shl_load=no
12258fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012259rm -f conftest.err conftest.$ac_objext \
12260 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012261LIBS=$ac_check_lib_save_LIBS
12262fi
12263echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12264echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12265if test $ac_cv_lib_dld_shl_load = yes; then
12266 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12267else
12268 echo "$as_me:$LINENO: checking for dlopen" >&5
12269echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12270if test "${ac_cv_func_dlopen+set}" = set; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
12272else
12273 cat >conftest.$ac_ext <<_ACEOF
12274/* confdefs.h. */
12275_ACEOF
12276cat confdefs.h >>conftest.$ac_ext
12277cat >>conftest.$ac_ext <<_ACEOF
12278/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012279/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12281#define dlopen innocuous_dlopen
12282
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012283/* System header to define __stub macros and hopefully few prototypes,
12284 which can conflict with char dlopen (); below.
12285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12286 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012287
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012288#ifdef __STDC__
12289# include <limits.h>
12290#else
12291# include <assert.h>
12292#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012293
12294#undef dlopen
12295
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012296/* Override any gcc2 internal prototype to avoid an error. */
12297#ifdef __cplusplus
12298extern "C"
12299{
12300#endif
12301/* We use char because int might match the return type of a gcc2
12302 builtin and then its argument prototype would still apply. */
12303char dlopen ();
12304/* The GNU C library defines this for functions which it implements
12305 to always fail with ENOSYS. Some functions are actually named
12306 something starting with __ and the normal name is an alias. */
12307#if defined (__stub_dlopen) || defined (__stub___dlopen)
12308choke me
12309#else
12310char (*f) () = dlopen;
12311#endif
12312#ifdef __cplusplus
12313}
12314#endif
12315
12316int
12317main ()
12318{
12319return f != dlopen;
12320 ;
12321 return 0;
12322}
12323_ACEOF
12324rm -f conftest.$ac_objext conftest$ac_exeext
12325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012326 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012327 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012328 grep -v '^ *+' conftest.er1 >conftest.err
12329 rm -f conftest.er1
12330 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012333 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12336 ac_status=$?
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; } &&
12339 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12342 ac_status=$?
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 ac_cv_func_dlopen=yes
12346else
12347 echo "$as_me: failed program was:" >&5
12348sed 's/^/| /' conftest.$ac_ext >&5
12349
12350ac_cv_func_dlopen=no
12351fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012352rm -f conftest.err conftest.$ac_objext \
12353 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012354fi
12355echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12356echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12357if test $ac_cv_func_dlopen = yes; then
12358 lt_cv_dlopen="dlopen"
12359else
12360 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12361echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12362if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12363 echo $ECHO_N "(cached) $ECHO_C" >&6
12364else
12365 ac_check_lib_save_LIBS=$LIBS
12366LIBS="-ldl $LIBS"
12367cat >conftest.$ac_ext <<_ACEOF
12368/* confdefs.h. */
12369_ACEOF
12370cat confdefs.h >>conftest.$ac_ext
12371cat >>conftest.$ac_ext <<_ACEOF
12372/* end confdefs.h. */
12373
12374/* Override any gcc2 internal prototype to avoid an error. */
12375#ifdef __cplusplus
12376extern "C"
12377#endif
12378/* We use char because int might match the return type of a gcc2
12379 builtin and then its argument prototype would still apply. */
12380char dlopen ();
12381int
12382main ()
12383{
12384dlopen ();
12385 ;
12386 return 0;
12387}
12388_ACEOF
12389rm -f conftest.$ac_objext conftest$ac_exeext
12390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012391 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012392 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012393 grep -v '^ *+' conftest.er1 >conftest.err
12394 rm -f conftest.er1
12395 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012398 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400 (eval $ac_try) 2>&5
12401 ac_status=$?
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; } &&
12404 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406 (eval $ac_try) 2>&5
12407 ac_status=$?
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; }; then
12410 ac_cv_lib_dl_dlopen=yes
12411else
12412 echo "$as_me: failed program was:" >&5
12413sed 's/^/| /' conftest.$ac_ext >&5
12414
12415ac_cv_lib_dl_dlopen=no
12416fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012417rm -f conftest.err conftest.$ac_objext \
12418 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012419LIBS=$ac_check_lib_save_LIBS
12420fi
12421echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12422echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12423if test $ac_cv_lib_dl_dlopen = yes; then
12424 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12425else
12426 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12427echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12428if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12430else
12431 ac_check_lib_save_LIBS=$LIBS
12432LIBS="-lsvld $LIBS"
12433cat >conftest.$ac_ext <<_ACEOF
12434/* confdefs.h. */
12435_ACEOF
12436cat confdefs.h >>conftest.$ac_ext
12437cat >>conftest.$ac_ext <<_ACEOF
12438/* end confdefs.h. */
12439
12440/* Override any gcc2 internal prototype to avoid an error. */
12441#ifdef __cplusplus
12442extern "C"
12443#endif
12444/* We use char because int might match the return type of a gcc2
12445 builtin and then its argument prototype would still apply. */
12446char dlopen ();
12447int
12448main ()
12449{
12450dlopen ();
12451 ;
12452 return 0;
12453}
12454_ACEOF
12455rm -f conftest.$ac_objext conftest$ac_exeext
12456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012457 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012458 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012459 grep -v '^ *+' conftest.er1 >conftest.err
12460 rm -f conftest.er1
12461 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012464 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12467 ac_status=$?
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; } &&
12470 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12473 ac_status=$?
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; }; then
12476 ac_cv_lib_svld_dlopen=yes
12477else
12478 echo "$as_me: failed program was:" >&5
12479sed 's/^/| /' conftest.$ac_ext >&5
12480
12481ac_cv_lib_svld_dlopen=no
12482fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012483rm -f conftest.err conftest.$ac_objext \
12484 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012485LIBS=$ac_check_lib_save_LIBS
12486fi
12487echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12488echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12489if test $ac_cv_lib_svld_dlopen = yes; then
12490 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12491else
12492 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12493echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12494if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12496else
12497 ac_check_lib_save_LIBS=$LIBS
12498LIBS="-ldld $LIBS"
12499cat >conftest.$ac_ext <<_ACEOF
12500/* confdefs.h. */
12501_ACEOF
12502cat confdefs.h >>conftest.$ac_ext
12503cat >>conftest.$ac_ext <<_ACEOF
12504/* end confdefs.h. */
12505
12506/* Override any gcc2 internal prototype to avoid an error. */
12507#ifdef __cplusplus
12508extern "C"
12509#endif
12510/* We use char because int might match the return type of a gcc2
12511 builtin and then its argument prototype would still apply. */
12512char dld_link ();
12513int
12514main ()
12515{
12516dld_link ();
12517 ;
12518 return 0;
12519}
12520_ACEOF
12521rm -f conftest.$ac_objext conftest$ac_exeext
12522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012523 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012524 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012525 grep -v '^ *+' conftest.er1 >conftest.err
12526 rm -f conftest.er1
12527 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; } &&
12536 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12538 (eval $ac_try) 2>&5
12539 ac_status=$?
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); }; }; then
12542 ac_cv_lib_dld_dld_link=yes
12543else
12544 echo "$as_me: failed program was:" >&5
12545sed 's/^/| /' conftest.$ac_ext >&5
12546
12547ac_cv_lib_dld_dld_link=no
12548fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012549rm -f conftest.err conftest.$ac_objext \
12550 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012551LIBS=$ac_check_lib_save_LIBS
12552fi
12553echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12554echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12555if test $ac_cv_lib_dld_dld_link = yes; then
12556 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12557fi
12558
12559
12560fi
12561
12562
12563fi
12564
12565
12566fi
12567
12568
12569fi
12570
12571
12572fi
12573
12574 ;;
12575 esac
12576
12577 if test "x$lt_cv_dlopen" != xno; then
12578 enable_dlopen=yes
12579 else
12580 enable_dlopen=no
12581 fi
12582
12583 case $lt_cv_dlopen in
12584 dlopen)
12585 save_CPPFLAGS="$CPPFLAGS"
12586 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12587
12588 save_LDFLAGS="$LDFLAGS"
12589 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12590
12591 save_LIBS="$LIBS"
12592 LIBS="$lt_cv_dlopen_libs $LIBS"
12593
12594 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12595echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12596if test "${lt_cv_dlopen_self+set}" = set; then
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12598else
12599 if test "$cross_compiling" = yes; then :
12600 lt_cv_dlopen_self=cross
12601else
12602 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12603 lt_status=$lt_dlunknown
12604 cat > conftest.$ac_ext <<EOF
homeip.net!davidm34fa1222004-08-17 15:34:28 +000012605#line 12605 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012606#include "confdefs.h"
12607
12608#if HAVE_DLFCN_H
12609#include <dlfcn.h>
12610#endif
12611
12612#include <stdio.h>
12613
12614#ifdef RTLD_GLOBAL
12615# define LT_DLGLOBAL RTLD_GLOBAL
12616#else
12617# ifdef DL_GLOBAL
12618# define LT_DLGLOBAL DL_GLOBAL
12619# else
12620# define LT_DLGLOBAL 0
12621# endif
12622#endif
12623
12624/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12625 find out it does not work in some platform. */
12626#ifndef LT_DLLAZY_OR_NOW
12627# ifdef RTLD_LAZY
12628# define LT_DLLAZY_OR_NOW RTLD_LAZY
12629# else
12630# ifdef DL_LAZY
12631# define LT_DLLAZY_OR_NOW DL_LAZY
12632# else
12633# ifdef RTLD_NOW
12634# define LT_DLLAZY_OR_NOW RTLD_NOW
12635# else
12636# ifdef DL_NOW
12637# define LT_DLLAZY_OR_NOW DL_NOW
12638# else
12639# define LT_DLLAZY_OR_NOW 0
12640# endif
12641# endif
12642# endif
12643# endif
12644#endif
12645
12646#ifdef __cplusplus
12647extern "C" void exit (int);
12648#endif
12649
12650void fnord() { int i=42;}
12651int main ()
12652{
12653 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12654 int status = $lt_dlunknown;
12655
12656 if (self)
12657 {
12658 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12659 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12660 /* dlclose (self); */
12661 }
12662
12663 exit (status);
12664}
12665EOF
12666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12667 (eval $ac_link) 2>&5
12668 ac_status=$?
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12671 (./conftest; exit; ) 2>/dev/null
12672 lt_status=$?
12673 case x$lt_status in
12674 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12675 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12676 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12677 esac
12678 else :
12679 # compilation failed
12680 lt_cv_dlopen_self=no
12681 fi
12682fi
12683rm -fr conftest*
12684
12685
12686fi
12687echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12688echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12689
12690 if test "x$lt_cv_dlopen_self" = xyes; then
12691 LDFLAGS="$LDFLAGS $link_static_flag"
12692 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12693echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12694if test "${lt_cv_dlopen_self_static+set}" = set; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12696else
12697 if test "$cross_compiling" = yes; then :
12698 lt_cv_dlopen_self_static=cross
12699else
12700 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12701 lt_status=$lt_dlunknown
12702 cat > conftest.$ac_ext <<EOF
homeip.net!davidm34fa1222004-08-17 15:34:28 +000012703#line 12703 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012704#include "confdefs.h"
12705
12706#if HAVE_DLFCN_H
12707#include <dlfcn.h>
12708#endif
12709
12710#include <stdio.h>
12711
12712#ifdef RTLD_GLOBAL
12713# define LT_DLGLOBAL RTLD_GLOBAL
12714#else
12715# ifdef DL_GLOBAL
12716# define LT_DLGLOBAL DL_GLOBAL
12717# else
12718# define LT_DLGLOBAL 0
12719# endif
12720#endif
12721
12722/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12723 find out it does not work in some platform. */
12724#ifndef LT_DLLAZY_OR_NOW
12725# ifdef RTLD_LAZY
12726# define LT_DLLAZY_OR_NOW RTLD_LAZY
12727# else
12728# ifdef DL_LAZY
12729# define LT_DLLAZY_OR_NOW DL_LAZY
12730# else
12731# ifdef RTLD_NOW
12732# define LT_DLLAZY_OR_NOW RTLD_NOW
12733# else
12734# ifdef DL_NOW
12735# define LT_DLLAZY_OR_NOW DL_NOW
12736# else
12737# define LT_DLLAZY_OR_NOW 0
12738# endif
12739# endif
12740# endif
12741# endif
12742#endif
12743
12744#ifdef __cplusplus
12745extern "C" void exit (int);
12746#endif
12747
12748void fnord() { int i=42;}
12749int main ()
12750{
12751 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12752 int status = $lt_dlunknown;
12753
12754 if (self)
12755 {
12756 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12757 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12758 /* dlclose (self); */
12759 }
12760
12761 exit (status);
12762}
12763EOF
12764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12765 (eval $ac_link) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12769 (./conftest; exit; ) 2>/dev/null
12770 lt_status=$?
12771 case x$lt_status in
12772 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12773 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12774 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12775 esac
12776 else :
12777 # compilation failed
12778 lt_cv_dlopen_self_static=no
12779 fi
12780fi
12781rm -fr conftest*
12782
12783
12784fi
12785echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12786echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12787 fi
12788
12789 CPPFLAGS="$save_CPPFLAGS"
12790 LDFLAGS="$save_LDFLAGS"
12791 LIBS="$save_LIBS"
12792 ;;
12793 esac
12794
12795 case $lt_cv_dlopen_self in
12796 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12797 *) enable_dlopen_self=unknown ;;
12798 esac
12799
12800 case $lt_cv_dlopen_self_static in
12801 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12802 *) enable_dlopen_self_static=unknown ;;
12803 esac
12804fi
12805
12806
12807# The else clause should only fire when bootstrapping the
12808# libtool distribution, otherwise you forgot to ship ltmain.sh
12809# with your package, and you will get complaints that there are
12810# no rules to generate ltmain.sh.
12811if test -f "$ltmain"; then
12812 # See if we are running on zsh, and set the options which allow our commands through
12813 # without removal of \ escapes.
12814 if test -n "${ZSH_VERSION+set}" ; then
12815 setopt NO_GLOB_SUBST
12816 fi
12817 # Now quote all the things that may contain metacharacters while being
12818 # careful not to overquote the AC_SUBSTed values. We take copies of the
12819 # variables and quote the copies for generation of the libtool script.
12820 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12821 SED SHELL STRIP \
12822 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12823 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12824 deplibs_check_method reload_flag reload_cmds need_locks \
12825 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12826 lt_cv_sys_global_symbol_to_c_name_address \
12827 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12828 old_postinstall_cmds old_postuninstall_cmds \
12829 compiler_CXX \
12830 CC_CXX \
12831 LD_CXX \
12832 lt_prog_compiler_wl_CXX \
12833 lt_prog_compiler_pic_CXX \
12834 lt_prog_compiler_static_CXX \
12835 lt_prog_compiler_no_builtin_flag_CXX \
12836 export_dynamic_flag_spec_CXX \
12837 thread_safe_flag_spec_CXX \
12838 whole_archive_flag_spec_CXX \
12839 enable_shared_with_static_runtimes_CXX \
12840 old_archive_cmds_CXX \
12841 old_archive_from_new_cmds_CXX \
12842 predep_objects_CXX \
12843 postdep_objects_CXX \
12844 predeps_CXX \
12845 postdeps_CXX \
12846 compiler_lib_search_path_CXX \
12847 archive_cmds_CXX \
12848 archive_expsym_cmds_CXX \
12849 postinstall_cmds_CXX \
12850 postuninstall_cmds_CXX \
12851 old_archive_from_expsyms_cmds_CXX \
12852 allow_undefined_flag_CXX \
12853 no_undefined_flag_CXX \
12854 export_symbols_cmds_CXX \
12855 hardcode_libdir_flag_spec_CXX \
12856 hardcode_libdir_flag_spec_ld_CXX \
12857 hardcode_libdir_separator_CXX \
12858 hardcode_automatic_CXX \
12859 module_cmds_CXX \
12860 module_expsym_cmds_CXX \
12861 lt_cv_prog_compiler_c_o_CXX \
12862 exclude_expsyms_CXX \
12863 include_expsyms_CXX; do
12864
12865 case $var in
12866 old_archive_cmds_CXX | \
12867 old_archive_from_new_cmds_CXX | \
12868 archive_cmds_CXX | \
12869 archive_expsym_cmds_CXX | \
12870 module_cmds_CXX | \
12871 module_expsym_cmds_CXX | \
12872 old_archive_from_expsyms_cmds_CXX | \
12873 export_symbols_cmds_CXX | \
12874 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12875 postinstall_cmds | postuninstall_cmds | \
12876 old_postinstall_cmds | old_postuninstall_cmds | \
12877 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12878 # Double-quote double-evaled strings.
12879 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12880 ;;
12881 *)
12882 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12883 ;;
12884 esac
12885 done
12886
12887 case $lt_echo in
12888 *'\$0 --fallback-echo"')
12889 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12890 ;;
12891 esac
12892
12893cfgfile="$ofile"
12894
12895 cat <<__EOF__ >> "$cfgfile"
12896# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12897
12898# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12899
12900# Shell to use when invoking shell scripts.
12901SHELL=$lt_SHELL
12902
12903# Whether or not to build shared libraries.
12904build_libtool_libs=$enable_shared
12905
12906# Whether or not to build static libraries.
12907build_old_libs=$enable_static
12908
12909# Whether or not to add -lc for building shared libraries.
12910build_libtool_need_lc=$archive_cmds_need_lc_CXX
12911
12912# Whether or not to disallow shared libs when runtime libs are static
12913allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12914
12915# Whether or not to optimize for fast installation.
12916fast_install=$enable_fast_install
12917
12918# The host system.
12919host_alias=$host_alias
12920host=$host
12921
12922# An echo program that does not interpret backslashes.
12923echo=$lt_echo
12924
12925# The archiver.
12926AR=$lt_AR
12927AR_FLAGS=$lt_AR_FLAGS
12928
12929# A C compiler.
12930LTCC=$lt_LTCC
12931
12932# A language-specific compiler.
12933CC=$lt_compiler_CXX
12934
12935# Is the compiler the GNU C compiler?
12936with_gcc=$GCC_CXX
12937
12938# An ERE matcher.
12939EGREP=$lt_EGREP
12940
12941# The linker used to build libraries.
12942LD=$lt_LD_CXX
12943
12944# Whether we need hard or soft links.
12945LN_S=$lt_LN_S
12946
12947# A BSD-compatible nm program.
12948NM=$lt_NM
12949
12950# A symbol stripping program
12951STRIP=$lt_STRIP
12952
12953# Used to examine libraries when file_magic_cmd begins "file"
12954MAGIC_CMD=$MAGIC_CMD
12955
12956# Used on cygwin: DLL creation program.
12957DLLTOOL="$DLLTOOL"
12958
12959# Used on cygwin: object dumper.
12960OBJDUMP="$OBJDUMP"
12961
12962# Used on cygwin: assembler.
12963AS="$AS"
12964
12965# The name of the directory that contains temporary libtool files.
12966objdir=$objdir
12967
12968# How to create reloadable object files.
12969reload_flag=$lt_reload_flag
12970reload_cmds=$lt_reload_cmds
12971
12972# How to pass a linker flag through the compiler.
12973wl=$lt_lt_prog_compiler_wl_CXX
12974
12975# Object file suffix (normally "o").
12976objext="$ac_objext"
12977
12978# Old archive suffix (normally "a").
12979libext="$libext"
12980
12981# Shared library suffix (normally ".so").
hp.com!davidm2de17682004-04-20 16:53:44 +000012982shrext_cmds='$shrext_cmds'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012983
12984# Executable file suffix (normally "").
12985exeext="$exeext"
12986
12987# Additional compiler flags for building library objects.
12988pic_flag=$lt_lt_prog_compiler_pic_CXX
12989pic_mode=$pic_mode
12990
12991# What is the maximum length of a command?
12992max_cmd_len=$lt_cv_sys_max_cmd_len
12993
12994# Does compiler simultaneously support -c and -o options?
12995compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12996
12997# Must we lock files when doing compilation ?
12998need_locks=$lt_need_locks
12999
13000# Do we need the lib prefix for modules?
13001need_lib_prefix=$need_lib_prefix
13002
13003# Do we need a version for libraries?
13004need_version=$need_version
13005
13006# Whether dlopen is supported.
13007dlopen_support=$enable_dlopen
13008
13009# Whether dlopen of programs is supported.
13010dlopen_self=$enable_dlopen_self
13011
13012# Whether dlopen of statically linked programs is supported.
13013dlopen_self_static=$enable_dlopen_self_static
13014
13015# Compiler flag to prevent dynamic linking.
13016link_static_flag=$lt_lt_prog_compiler_static_CXX
13017
13018# Compiler flag to turn off builtin functions.
13019no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13020
13021# Compiler flag to allow reflexive dlopens.
13022export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13023
13024# Compiler flag to generate shared objects directly from archives.
13025whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13026
13027# Compiler flag to generate thread-safe objects.
13028thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13029
13030# Library versioning type.
13031version_type=$version_type
13032
13033# Format of library name prefix.
13034libname_spec=$lt_libname_spec
13035
13036# List of archive names. First name is the real one, the rest are links.
13037# The last name is the one that the linker finds with -lNAME.
13038library_names_spec=$lt_library_names_spec
13039
13040# The coded name of the library, if different from the real name.
13041soname_spec=$lt_soname_spec
13042
13043# Commands used to build and install an old-style archive.
13044RANLIB=$lt_RANLIB
13045old_archive_cmds=$lt_old_archive_cmds_CXX
13046old_postinstall_cmds=$lt_old_postinstall_cmds
13047old_postuninstall_cmds=$lt_old_postuninstall_cmds
13048
13049# Create an old-style archive from a shared archive.
13050old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13051
13052# Create a temporary old-style archive to link instead of a shared archive.
13053old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13054
13055# Commands used to build and install a shared archive.
13056archive_cmds=$lt_archive_cmds_CXX
13057archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13058postinstall_cmds=$lt_postinstall_cmds
13059postuninstall_cmds=$lt_postuninstall_cmds
13060
13061# Commands used to build a loadable module (assumed same as above if empty)
13062module_cmds=$lt_module_cmds_CXX
13063module_expsym_cmds=$lt_module_expsym_cmds_CXX
13064
13065# Commands to strip libraries.
13066old_striplib=$lt_old_striplib
13067striplib=$lt_striplib
13068
13069# Dependencies to place before the objects being linked to create a
13070# shared library.
13071predep_objects=$lt_predep_objects_CXX
13072
13073# Dependencies to place after the objects being linked to create a
13074# shared library.
13075postdep_objects=$lt_postdep_objects_CXX
13076
13077# Dependencies to place before the objects being linked to create a
13078# shared library.
13079predeps=$lt_predeps_CXX
13080
13081# Dependencies to place after the objects being linked to create a
13082# shared library.
13083postdeps=$lt_postdeps_CXX
13084
13085# The library search path used internally by the compiler when linking
13086# a shared library.
13087compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13088
13089# Method to check whether dependent libraries are shared objects.
13090deplibs_check_method=$lt_deplibs_check_method
13091
13092# Command to use when deplibs_check_method == file_magic.
13093file_magic_cmd=$lt_file_magic_cmd
13094
13095# Flag that allows shared libraries with undefined symbols to be built.
13096allow_undefined_flag=$lt_allow_undefined_flag_CXX
13097
13098# Flag that forces no undefined symbols.
13099no_undefined_flag=$lt_no_undefined_flag_CXX
13100
13101# Commands used to finish a libtool library installation in a directory.
13102finish_cmds=$lt_finish_cmds
13103
13104# Same as above, but a single script fragment to be evaled but not shown.
13105finish_eval=$lt_finish_eval
13106
13107# Take the output of nm and produce a listing of raw symbols and C names.
13108global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13109
13110# Transform the output of nm in a proper C declaration
13111global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13112
13113# Transform the output of nm in a C name address pair
13114global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13115
13116# This is the shared library runtime path variable.
13117runpath_var=$runpath_var
13118
13119# This is the shared library path variable.
13120shlibpath_var=$shlibpath_var
13121
13122# Is shlibpath searched before the hard-coded library search path?
13123shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13124
13125# How to hardcode a shared library path into an executable.
13126hardcode_action=$hardcode_action_CXX
13127
13128# Whether we should hardcode library paths into libraries.
13129hardcode_into_libs=$hardcode_into_libs
13130
13131# Flag to hardcode \$libdir into a binary during linking.
13132# This must work even if \$libdir does not exist.
13133hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13134
13135# If ld is used when linking, flag to hardcode \$libdir into
13136# a binary during linking. This must work even if \$libdir does
13137# not exist.
13138hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13139
13140# Whether we need a single -rpath flag with a separated argument.
13141hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13142
13143# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13144# resulting binary.
13145hardcode_direct=$hardcode_direct_CXX
13146
13147# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13148# resulting binary.
13149hardcode_minus_L=$hardcode_minus_L_CXX
13150
13151# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13152# the resulting binary.
13153hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13154
13155# Set to yes if building a shared library automatically hardcodes DIR into the library
13156# and all subsequent libraries and executables linked against it.
13157hardcode_automatic=$hardcode_automatic_CXX
13158
13159# Variables whose values should be saved in libtool wrapper scripts and
13160# restored at relink time.
13161variables_saved_for_relink="$variables_saved_for_relink"
13162
13163# Whether libtool must link a program against all its dependency libraries.
13164link_all_deplibs=$link_all_deplibs_CXX
13165
13166# Compile-time system search path for libraries
13167sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13168
13169# Run-time system search path for libraries
13170sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13171
13172# Fix the shell variable \$srcfile for the compiler.
13173fix_srcfile_path="$fix_srcfile_path_CXX"
13174
13175# Set to yes if exported symbols are required.
13176always_export_symbols=$always_export_symbols_CXX
13177
13178# The commands to list exported symbols.
13179export_symbols_cmds=$lt_export_symbols_cmds_CXX
13180
13181# The commands to extract the exported symbol list from a shared archive.
13182extract_expsyms_cmds=$lt_extract_expsyms_cmds
13183
13184# Symbols that should not be listed in the preloaded symbols.
13185exclude_expsyms=$lt_exclude_expsyms_CXX
13186
13187# Symbols that must always be exported.
13188include_expsyms=$lt_include_expsyms_CXX
13189
13190# ### END LIBTOOL TAG CONFIG: $tagname
13191
13192__EOF__
13193
13194
13195else
13196 # If there is no Makefile yet, we rely on a make rule to execute
13197 # `config.status --recheck' to rerun these tests and create the
13198 # libtool script then.
13199 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13200 if test -f "$ltmain_in"; then
13201 test -f Makefile && make "$ltmain"
13202 fi
13203fi
13204
13205
13206ac_ext=c
13207ac_cpp='$CPP $CPPFLAGS'
13208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13210ac_compiler_gnu=$ac_cv_c_compiler_gnu
13211
13212CC=$lt_save_CC
13213LDCXX=$LD
13214LD=$lt_save_LD
13215GCC=$lt_save_GCC
13216with_gnu_ldcxx=$with_gnu_ld
13217with_gnu_ld=$lt_save_with_gnu_ld
13218lt_cv_path_LDCXX=$lt_cv_path_LD
13219lt_cv_path_LD=$lt_save_path_LD
13220lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13221lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13222
13223 else
13224 tagname=""
13225 fi
13226 ;;
13227
13228 F77)
13229 if test -n "$F77" && test "X$F77" != "Xno"; then
13230
13231ac_ext=f
13232ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13233ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13234ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13235
13236
13237archive_cmds_need_lc_F77=no
13238allow_undefined_flag_F77=
13239always_export_symbols_F77=no
13240archive_expsym_cmds_F77=
13241export_dynamic_flag_spec_F77=
13242hardcode_direct_F77=no
13243hardcode_libdir_flag_spec_F77=
13244hardcode_libdir_flag_spec_ld_F77=
13245hardcode_libdir_separator_F77=
13246hardcode_minus_L_F77=no
13247hardcode_automatic_F77=no
13248module_cmds_F77=
13249module_expsym_cmds_F77=
13250link_all_deplibs_F77=unknown
13251old_archive_cmds_F77=$old_archive_cmds
13252no_undefined_flag_F77=
13253whole_archive_flag_spec_F77=
13254enable_shared_with_static_runtimes_F77=no
13255
13256# Source file extension for f77 test sources.
13257ac_ext=f
13258
13259# Object file extension for compiled f77 test sources.
13260objext=o
13261objext_F77=$objext
13262
13263# Code to be used in simple compile tests
13264lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13265
13266# Code to be used in simple link tests
13267lt_simple_link_test_code=" program t\n end\n"
13268
13269# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13270
13271# If no C compiler was specified, use CC.
13272LTCC=${LTCC-"$CC"}
13273
13274# Allow CC to be a program name with arguments.
13275compiler=$CC
13276
13277
13278# Allow CC to be a program name with arguments.
13279lt_save_CC="$CC"
13280CC=${F77-"f77"}
13281compiler=$CC
13282compiler_F77=$CC
13283cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13284
13285echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13286echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13287echo "$as_me:$LINENO: result: $can_build_shared" >&5
13288echo "${ECHO_T}$can_build_shared" >&6
13289
13290echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13291echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13292test "$can_build_shared" = "no" && enable_shared=no
13293
13294# On AIX, shared libraries and static libraries use the same namespace, and
13295# are all built from PIC.
13296case "$host_os" in
13297aix3*)
13298 test "$enable_shared" = yes && enable_static=no
13299 if test -n "$RANLIB"; then
13300 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13301 postinstall_cmds='$RANLIB $lib'
13302 fi
13303 ;;
hp.com!davidm2de17682004-04-20 16:53:44 +000013304aix4* | aix5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013305 test "$enable_shared" = yes && enable_static=no
13306 ;;
13307esac
13308echo "$as_me:$LINENO: result: $enable_shared" >&5
13309echo "${ECHO_T}$enable_shared" >&6
13310
13311echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13312echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13313# Make sure either enable_shared or enable_static is yes.
13314test "$enable_shared" = yes || enable_static=yes
13315echo "$as_me:$LINENO: result: $enable_static" >&5
13316echo "${ECHO_T}$enable_static" >&6
13317
13318test "$ld_shlibs_F77" = no && can_build_shared=no
13319
13320GCC_F77="$G77"
13321LD_F77="$LD"
13322
13323lt_prog_compiler_wl_F77=
13324lt_prog_compiler_pic_F77=
13325lt_prog_compiler_static_F77=
13326
13327echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13328echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13329
13330 if test "$GCC" = yes; then
13331 lt_prog_compiler_wl_F77='-Wl,'
13332 lt_prog_compiler_static_F77='-static'
13333
13334 case $host_os in
13335 aix*)
13336 # All AIX code is PIC.
13337 if test "$host_cpu" = ia64; then
13338 # AIX 5 now supports IA64 processor
13339 lt_prog_compiler_static_F77='-Bstatic'
13340 fi
13341 ;;
13342
13343 amigaos*)
13344 # FIXME: we need at least 68020 code to build shared libraries, but
13345 # adding the `-m68020' flag to GCC prevents building anything better,
13346 # like `-m68040'.
13347 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13348 ;;
13349
13350 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13351 # PIC is the default for these OSes.
13352 ;;
13353
13354 mingw* | pw32* | os2*)
13355 # This hack is so that the source file can tell whether it is being
13356 # built for inclusion in a dll (and should export symbols for example).
13357 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13358 ;;
13359
13360 darwin* | rhapsody*)
13361 # PIC is the default on this platform
13362 # Common symbols not allowed in MH_DYLIB files
13363 lt_prog_compiler_pic_F77='-fno-common'
13364 ;;
13365
13366 msdosdjgpp*)
13367 # Just because we use GCC doesn't mean we suddenly get shared libraries
13368 # on systems that don't support them.
13369 lt_prog_compiler_can_build_shared_F77=no
13370 enable_shared=no
13371 ;;
13372
13373 sysv4*MP*)
13374 if test -d /usr/nec; then
13375 lt_prog_compiler_pic_F77=-Kconform_pic
13376 fi
13377 ;;
13378
13379 hpux*)
13380 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13381 # not for PA HP-UX.
13382 case "$host_cpu" in
13383 hppa*64*|ia64*)
13384 # +Z the default
13385 ;;
13386 *)
13387 lt_prog_compiler_pic_F77='-fPIC'
13388 ;;
13389 esac
13390 ;;
13391
13392 *)
13393 lt_prog_compiler_pic_F77='-fPIC'
13394 ;;
13395 esac
13396 else
13397 # PORTME Check for flag to pass linker flags through the system compiler.
13398 case $host_os in
13399 aix*)
13400 lt_prog_compiler_wl_F77='-Wl,'
13401 if test "$host_cpu" = ia64; then
13402 # AIX 5 now supports IA64 processor
13403 lt_prog_compiler_static_F77='-Bstatic'
13404 else
13405 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13406 fi
13407 ;;
13408
13409 mingw* | pw32* | os2*)
13410 # This hack is so that the source file can tell whether it is being
13411 # built for inclusion in a dll (and should export symbols for example).
13412 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13413 ;;
13414
13415 hpux9* | hpux10* | hpux11*)
13416 lt_prog_compiler_wl_F77='-Wl,'
13417 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13418 # not for PA HP-UX.
13419 case "$host_cpu" in
13420 hppa*64*|ia64*)
13421 # +Z the default
13422 ;;
13423 *)
13424 lt_prog_compiler_pic_F77='+Z'
13425 ;;
13426 esac
13427 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13428 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13429 ;;
13430
13431 irix5* | irix6* | nonstopux*)
13432 lt_prog_compiler_wl_F77='-Wl,'
13433 # PIC (with -KPIC) is the default.
13434 lt_prog_compiler_static_F77='-non_shared'
13435 ;;
13436
13437 newsos6)
13438 lt_prog_compiler_pic_F77='-KPIC'
13439 lt_prog_compiler_static_F77='-Bstatic'
13440 ;;
13441
13442 linux*)
13443 case $CC in
13444 icc* | ecc*)
13445 lt_prog_compiler_wl_F77='-Wl,'
13446 lt_prog_compiler_pic_F77='-KPIC'
13447 lt_prog_compiler_static_F77='-static'
13448 ;;
13449 ccc*)
13450 lt_prog_compiler_wl_F77='-Wl,'
13451 # All Alpha code is PIC.
13452 lt_prog_compiler_static_F77='-non_shared'
13453 ;;
13454 esac
13455 ;;
13456
13457 osf3* | osf4* | osf5*)
13458 lt_prog_compiler_wl_F77='-Wl,'
13459 # All OSF/1 code is PIC.
13460 lt_prog_compiler_static_F77='-non_shared'
13461 ;;
13462
13463 sco3.2v5*)
13464 lt_prog_compiler_pic_F77='-Kpic'
13465 lt_prog_compiler_static_F77='-dn'
13466 ;;
13467
13468 solaris*)
13469 lt_prog_compiler_wl_F77='-Wl,'
13470 lt_prog_compiler_pic_F77='-KPIC'
13471 lt_prog_compiler_static_F77='-Bstatic'
13472 ;;
13473
13474 sunos4*)
13475 lt_prog_compiler_wl_F77='-Qoption ld '
13476 lt_prog_compiler_pic_F77='-PIC'
13477 lt_prog_compiler_static_F77='-Bstatic'
13478 ;;
13479
13480 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13481 lt_prog_compiler_wl_F77='-Wl,'
13482 lt_prog_compiler_pic_F77='-KPIC'
13483 lt_prog_compiler_static_F77='-Bstatic'
13484 ;;
13485
13486 sysv4*MP*)
13487 if test -d /usr/nec ;then
13488 lt_prog_compiler_pic_F77='-Kconform_pic'
13489 lt_prog_compiler_static_F77='-Bstatic'
13490 fi
13491 ;;
13492
13493 uts4*)
13494 lt_prog_compiler_pic_F77='-pic'
13495 lt_prog_compiler_static_F77='-Bstatic'
13496 ;;
13497
13498 *)
13499 lt_prog_compiler_can_build_shared_F77=no
13500 ;;
13501 esac
13502 fi
13503
13504echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13505echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13506
13507#
13508# Check to make sure the PIC flag actually works.
13509#
13510if test -n "$lt_prog_compiler_pic_F77"; then
13511
13512echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13513echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13514if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13516else
13517 lt_prog_compiler_pic_works_F77=no
13518 ac_outfile=conftest.$ac_objext
13519 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13520 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13521 # Insert the option either (1) after the last *FLAGS variable, or
13522 # (2) before a word containing "conftest.", or (3) at the end.
13523 # Note that $ac_compile itself does not contain backslashes and begins
13524 # with a dollar sign (not a hyphen), so the echo should work correctly.
13525 # The option is referenced via a variable to avoid confusing sed.
13526 lt_compile=`echo "$ac_compile" | $SED \
13527 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13529 -e 's:$: $lt_compiler_flag:'`
homeip.net!davidm34fa1222004-08-17 15:34:28 +000013530 (eval echo "\"\$as_me:13530: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013531 (eval "$lt_compile" 2>conftest.err)
13532 ac_status=$?
13533 cat conftest.err >&5
homeip.net!davidm34fa1222004-08-17 15:34:28 +000013534 echo "$as_me:13534: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013535 if (exit $ac_status) && test -s "$ac_outfile"; then
13536 # The compiler can only warn and ignore the option if not recognized
13537 # So say no if there are warnings
13538 if test ! -s conftest.err; then
13539 lt_prog_compiler_pic_works_F77=yes
13540 fi
13541 fi
13542 $rm conftest*
13543
13544fi
13545echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13546echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13547
13548if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13549 case $lt_prog_compiler_pic_F77 in
13550 "" | " "*) ;;
13551 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13552 esac
13553else
13554 lt_prog_compiler_pic_F77=
13555 lt_prog_compiler_can_build_shared_F77=no
13556fi
13557
13558fi
13559case "$host_os" in
13560 # For platforms which do not support PIC, -DPIC is meaningless:
13561 *djgpp*)
13562 lt_prog_compiler_pic_F77=
13563 ;;
13564 *)
13565 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13566 ;;
13567esac
13568
13569echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13570echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13571if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13572 echo $ECHO_N "(cached) $ECHO_C" >&6
13573else
13574 lt_cv_prog_compiler_c_o_F77=no
13575 $rm -r conftest 2>/dev/null
13576 mkdir conftest
13577 cd conftest
13578 mkdir out
13579 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13580
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013581 lt_compiler_flag="-o out/conftest2.$ac_objext"
13582 # Insert the option either (1) after the last *FLAGS variable, or
13583 # (2) before a word containing "conftest.", or (3) at the end.
13584 # Note that $ac_compile itself does not contain backslashes and begins
13585 # with a dollar sign (not a hyphen), so the echo should work correctly.
13586 lt_compile=`echo "$ac_compile" | $SED \
13587 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13589 -e 's:$: $lt_compiler_flag:'`
homeip.net!davidm34fa1222004-08-17 15:34:28 +000013590 (eval echo "\"\$as_me:13590: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013591 (eval "$lt_compile" 2>out/conftest.err)
13592 ac_status=$?
13593 cat out/conftest.err >&5
homeip.net!davidm34fa1222004-08-17 15:34:28 +000013594 echo "$as_me:13594: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013595 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13596 then
13597 # The compiler can only warn and ignore the option if not recognized
13598 # So say no if there are warnings
13599 if test ! -s out/conftest.err; then
13600 lt_cv_prog_compiler_c_o_F77=yes
13601 fi
13602 fi
13603 chmod u+w .
13604 $rm conftest*
13605 # SGI C++ compiler will create directory out/ii_files/ for
13606 # template instantiation
13607 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13608 $rm out/* && rmdir out
13609 cd ..
13610 rmdir conftest
13611 $rm conftest*
13612
13613fi
13614echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13615echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13616
13617
13618hard_links="nottested"
13619if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13620 # do not overwrite the value of need_locks provided by the user
13621 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13622echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13623 hard_links=yes
13624 $rm conftest*
13625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13626 touch conftest.a
13627 ln conftest.a conftest.b 2>&5 || hard_links=no
13628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13629 echo "$as_me:$LINENO: result: $hard_links" >&5
13630echo "${ECHO_T}$hard_links" >&6
13631 if test "$hard_links" = no; then
13632 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13633echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13634 need_locks=warn
13635 fi
13636else
13637 need_locks=no
13638fi
13639
13640echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13641echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13642
13643 runpath_var=
13644 allow_undefined_flag_F77=
13645 enable_shared_with_static_runtimes_F77=no
13646 archive_cmds_F77=
13647 archive_expsym_cmds_F77=
13648 old_archive_From_new_cmds_F77=
13649 old_archive_from_expsyms_cmds_F77=
13650 export_dynamic_flag_spec_F77=
13651 whole_archive_flag_spec_F77=
13652 thread_safe_flag_spec_F77=
13653 hardcode_libdir_flag_spec_F77=
13654 hardcode_libdir_flag_spec_ld_F77=
13655 hardcode_libdir_separator_F77=
13656 hardcode_direct_F77=no
13657 hardcode_minus_L_F77=no
13658 hardcode_shlibpath_var_F77=unsupported
13659 link_all_deplibs_F77=unknown
13660 hardcode_automatic_F77=no
13661 module_cmds_F77=
13662 module_expsym_cmds_F77=
13663 always_export_symbols_F77=no
13664 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13665 # include_expsyms should be a list of space-separated symbols to be *always*
13666 # included in the symbol list
13667 include_expsyms_F77=
13668 # exclude_expsyms can be an extended regexp of symbols to exclude
13669 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13670 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13671 # as well as any symbol that contains `d'.
13672 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13673 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13674 # platforms (ab)use it in PIC code, but their linkers get confused if
13675 # the symbol is explicitly referenced. Since portable code cannot
13676 # rely on this symbol name, it's probably fine to never include it in
13677 # preloaded symbol tables.
13678 extract_expsyms_cmds=
13679
13680 case $host_os in
13681 cygwin* | mingw* | pw32*)
13682 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13683 # When not using gcc, we currently assume that we are using
13684 # Microsoft Visual C++.
13685 if test "$GCC" != yes; then
13686 with_gnu_ld=no
13687 fi
13688 ;;
13689 openbsd*)
13690 with_gnu_ld=no
13691 ;;
13692 esac
13693
13694 ld_shlibs_F77=yes
13695 if test "$with_gnu_ld" = yes; then
13696 # If archive_cmds runs LD, not CC, wlarc should be empty
13697 wlarc='${wl}'
13698
13699 # See if GNU ld supports shared libraries.
13700 case $host_os in
13701 aix3* | aix4* | aix5*)
13702 # On AIX/PPC, the GNU linker is very broken
13703 if test "$host_cpu" != ia64; then
13704 ld_shlibs_F77=no
13705 cat <<EOF 1>&2
13706
13707*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13708*** to be unable to reliably create shared libraries on AIX.
13709*** Therefore, libtool is disabling shared libraries support. If you
13710*** really care for shared libraries, you may want to modify your PATH
13711*** so that a non-GNU linker is found, and then restart.
13712
13713EOF
13714 fi
13715 ;;
13716
13717 amigaos*)
13718 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)'
13719 hardcode_libdir_flag_spec_F77='-L$libdir'
13720 hardcode_minus_L_F77=yes
13721
13722 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13723 # that the semantics of dynamic libraries on AmigaOS, at least up
13724 # to version 4, is to share data among multiple programs linked
13725 # with the same dynamic library. Since this doesn't match the
13726 # behavior of shared libraries on other platforms, we can't use
13727 # them.
13728 ld_shlibs_F77=no
13729 ;;
13730
13731 beos*)
13732 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13733 allow_undefined_flag_F77=unsupported
13734 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13735 # support --undefined. This deserves some investigation. FIXME
13736 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13737 else
13738 ld_shlibs_F77=no
13739 fi
13740 ;;
13741
13742 cygwin* | mingw* | pw32*)
13743 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13744 # as there is no search path for DLLs.
13745 hardcode_libdir_flag_spec_F77='-L$libdir'
13746 allow_undefined_flag_F77=unsupported
13747 always_export_symbols_F77=no
13748 enable_shared_with_static_runtimes_F77=yes
13749 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13750
13751 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13752 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13753 # If the export-symbols file already is a .def file (1st line
13754 # is EXPORTS), use it as is; otherwise, prepend...
13755 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13756 cp $export_symbols $output_objdir/$soname.def;
13757 else
13758 echo EXPORTS > $output_objdir/$soname.def;
13759 cat $export_symbols >> $output_objdir/$soname.def;
13760 fi~
13761 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13762 else
13763 ld_shlibs=no
13764 fi
13765 ;;
13766
hp.com!davidm16230292004-07-15 17:39:59 +000013767 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13769 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13770 wlarc=
13771 else
13772 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13773 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13774 fi
13775 ;;
13776
13777 solaris* | sysv5*)
13778 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13779 ld_shlibs_F77=no
13780 cat <<EOF 1>&2
13781
13782*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13783*** create shared libraries on Solaris systems. Therefore, libtool
13784*** is disabling shared libraries support. We urge you to upgrade GNU
13785*** binutils to release 2.9.1 or newer. Another option is to modify
13786*** your PATH or compiler configuration so that the native linker is
13787*** used, and then restart.
13788
13789EOF
13790 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13791 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13792 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13793 else
13794 ld_shlibs_F77=no
13795 fi
13796 ;;
13797
13798 sunos4*)
13799 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13800 wlarc=
13801 hardcode_direct_F77=yes
13802 hardcode_shlibpath_var_F77=no
13803 ;;
13804
13805 linux*)
hp.com!davidm2de17682004-04-20 16:53:44 +000013806 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013807 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13808 archive_cmds_F77="$tmp_archive_cmds"
13809 supports_anon_versioning=no
13810 case `$LD -v 2>/dev/null` in
13811 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13812 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13813 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13814 *\ 2.11.*) ;; # other 2.11 versions
13815 *) supports_anon_versioning=yes ;;
13816 esac
13817 if test $supports_anon_versioning = yes; then
13818 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13819cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13820$echo "local: *; };" >> $output_objdir/$libname.ver~
13821 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13822 else
13823 archive_expsym_cmds_F77="$tmp_archive_cmds"
13824 fi
hp.com!davidm2de17682004-04-20 16:53:44 +000013825 link_all_deplibs_F77=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013826 else
13827 ld_shlibs_F77=no
13828 fi
13829 ;;
13830
13831 *)
13832 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13833 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13834 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13835 else
13836 ld_shlibs_F77=no
13837 fi
13838 ;;
13839 esac
13840
13841 if test "$ld_shlibs_F77" = yes; then
13842 runpath_var=LD_RUN_PATH
13843 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13844 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13845 # ancient GNU ld didn't support --whole-archive et. al.
13846 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13847 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13848 else
13849 whole_archive_flag_spec_F77=
13850 fi
13851 fi
13852 else
13853 # PORTME fill in a description of your system's linker (not GNU ld)
13854 case $host_os in
13855 aix3*)
13856 allow_undefined_flag_F77=unsupported
13857 always_export_symbols_F77=yes
13858 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'
13859 # Note: this linker hardcodes the directories in LIBPATH if there
13860 # are no directories specified by -L.
13861 hardcode_minus_L_F77=yes
13862 if test "$GCC" = yes && test -z "$link_static_flag"; then
13863 # Neither direct hardcoding nor static linking is supported with a
13864 # broken collect2.
13865 hardcode_direct_F77=unsupported
13866 fi
13867 ;;
13868
13869 aix4* | aix5*)
13870 if test "$host_cpu" = ia64; then
13871 # On IA64, the linker does run time linking by default, so we don't
13872 # have to do anything special.
13873 aix_use_runtimelinking=no
13874 exp_sym_flag='-Bexport'
13875 no_entry_flag=""
13876 else
13877 # If we're using GNU nm, then we don't want the "-C" option.
13878 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13879 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13880 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'
13881 else
13882 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'
13883 fi
13884 aix_use_runtimelinking=no
13885
13886 # Test if we are trying to use run time linking or normal
13887 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13888 # need to do runtime linking.
13889 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13890 for ld_flag in $LDFLAGS; do
13891 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13892 aix_use_runtimelinking=yes
13893 break
13894 fi
13895 done
13896 esac
13897
13898 exp_sym_flag='-bexport'
13899 no_entry_flag='-bnoentry'
13900 fi
13901
13902 # When large executables or shared objects are built, AIX ld can
13903 # have problems creating the table of contents. If linking a library
13904 # or program results in "error TOC overflow" add -mminimal-toc to
13905 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13906 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13907
13908 archive_cmds_F77=''
13909 hardcode_direct_F77=yes
13910 hardcode_libdir_separator_F77=':'
13911 link_all_deplibs_F77=yes
13912
13913 if test "$GCC" = yes; then
13914 case $host_os in aix4.012|aix4.012.*)
13915 # We only want to do this on AIX 4.2 and lower, the check
13916 # below for broken collect2 doesn't work under 4.3+
13917 collect2name=`${CC} -print-prog-name=collect2`
13918 if test -f "$collect2name" && \
13919 strings "$collect2name" | grep resolve_lib_name >/dev/null
13920 then
13921 # We have reworked collect2
13922 hardcode_direct_F77=yes
13923 else
13924 # We have old collect2
13925 hardcode_direct_F77=unsupported
13926 # It fails to find uninstalled libraries when the uninstalled
13927 # path is not listed in the libpath. Setting hardcode_minus_L
13928 # to unsupported forces relinking
13929 hardcode_minus_L_F77=yes
13930 hardcode_libdir_flag_spec_F77='-L$libdir'
13931 hardcode_libdir_separator_F77=
13932 fi
13933 esac
13934 shared_flag='-shared'
13935 else
13936 # not using gcc
13937 if test "$host_cpu" = ia64; then
13938 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13939 # chokes on -Wl,-G. The following line is correct:
13940 shared_flag='-G'
13941 else
13942 if test "$aix_use_runtimelinking" = yes; then
13943 shared_flag='${wl}-G'
13944 else
13945 shared_flag='${wl}-bM:SRE'
13946 fi
13947 fi
13948 fi
13949
13950 # It seems that -bexpall does not export symbols beginning with
13951 # underscore (_), so it is better to generate a list of symbols to export.
13952 always_export_symbols_F77=yes
13953 if test "$aix_use_runtimelinking" = yes; then
13954 # Warning - without using the other runtime loading flags (-brtl),
13955 # -berok will link without error, but may produce a broken library.
13956 allow_undefined_flag_F77='-berok'
13957 # Determine the default libpath from the value encoded in an empty executable.
13958 cat >conftest.$ac_ext <<_ACEOF
13959 program main
13960
13961 end
13962_ACEOF
13963rm -f conftest.$ac_objext conftest$ac_exeext
13964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013965 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013966 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013967 grep -v '^ *+' conftest.er1 >conftest.err
13968 rm -f conftest.er1
13969 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013972 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; } &&
13978 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13981 ac_status=$?
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; }; then
13984
13985aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13986}'`
13987# Check for a 64-bit object if we didn't find anything.
13988if 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; }
13989}'`; fi
13990else
13991 echo "$as_me: failed program was:" >&5
13992sed 's/^/| /' conftest.$ac_ext >&5
13993
13994fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013995rm -f conftest.err conftest.$ac_objext \
13996 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013997if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13998
13999 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14000 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"
14001 else
14002 if test "$host_cpu" = ia64; then
14003 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14004 allow_undefined_flag_F77="-z nodefs"
14005 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"
14006 else
14007 # Determine the default libpath from the value encoded in an empty executable.
14008 cat >conftest.$ac_ext <<_ACEOF
14009 program main
14010
14011 end
14012_ACEOF
14013rm -f conftest.$ac_objext conftest$ac_exeext
14014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000014015 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014016 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000014017 grep -v '^ *+' conftest.er1 >conftest.err
14018 rm -f conftest.er1
14019 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000014022 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14025 ac_status=$?
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; } &&
14028 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14031 ac_status=$?
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; }; then
14034
14035aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14036}'`
14037# Check for a 64-bit object if we didn't find anything.
14038if 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; }
14039}'`; fi
14040else
14041 echo "$as_me: failed program was:" >&5
14042sed 's/^/| /' conftest.$ac_ext >&5
14043
14044fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000014045rm -f conftest.err conftest.$ac_objext \
14046 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014047if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14048
14049 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14050 # Warning - without using the other run time loading flags,
14051 # -berok will link without error, but may produce a broken library.
14052 no_undefined_flag_F77=' ${wl}-bernotok'
14053 allow_undefined_flag_F77=' ${wl}-berok'
14054 # -bexpall does not export symbols beginning with underscore (_)
14055 always_export_symbols_F77=yes
14056 # Exported symbols can be pulled into shared objects from archives
14057 whole_archive_flag_spec_F77=' '
14058 archive_cmds_need_lc_F77=yes
14059 # This is similar to how AIX traditionally builds it's shared libraries.
14060 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'
14061 fi
14062 fi
14063 ;;
14064
14065 amigaos*)
14066 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)'
14067 hardcode_libdir_flag_spec_F77='-L$libdir'
14068 hardcode_minus_L_F77=yes
14069 # see comment about different semantics on the GNU ld section
14070 ld_shlibs_F77=no
14071 ;;
14072
14073 bsdi4*)
14074 export_dynamic_flag_spec_F77=-rdynamic
14075 ;;
14076
14077 cygwin* | mingw* | pw32*)
14078 # When not using gcc, we currently assume that we are using
14079 # Microsoft Visual C++.
14080 # hardcode_libdir_flag_spec is actually meaningless, as there is
14081 # no search path for DLLs.
14082 hardcode_libdir_flag_spec_F77=' '
14083 allow_undefined_flag_F77=unsupported
14084 # Tell ltmain to make .lib files, not .a files.
14085 libext=lib
14086 # Tell ltmain to make .dll files, not .so files.
hp.com!davidm2de17682004-04-20 16:53:44 +000014087 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014088 # FIXME: Setting linknames here is a bad hack.
14089 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14090 # The linker will automatically build a .lib file if we build a DLL.
14091 old_archive_From_new_cmds_F77='true'
14092 # FIXME: Should let the user specify the lib program.
14093 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14094 fix_srcfile_path='`cygpath -w "$srcfile"`'
14095 enable_shared_with_static_runtimes_F77=yes
14096 ;;
14097
14098 darwin* | rhapsody*)
14099 if test "$GXX" = yes ; then
14100 archive_cmds_need_lc_F77=no
14101 case "$host_os" in
14102 rhapsody* | darwin1.[012])
14103 allow_undefined_flag_F77='-undefined suppress'
14104 ;;
14105 *) # Darwin 1.3 on
14106 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14107 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14108 else
14109 case ${MACOSX_DEPLOYMENT_TARGET} in
14110 10.[012])
14111 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14112 ;;
14113 10.*)
14114 allow_undefined_flag_F77='-undefined dynamic_lookup'
14115 ;;
14116 esac
14117 fi
14118 ;;
14119 esac
14120 lt_int_apple_cc_single_mod=no
14121 output_verbose_link_cmd='echo'
14122 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14123 lt_int_apple_cc_single_mod=yes
14124 fi
14125 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14126 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14127 else
14128 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'
14129 fi
14130 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14131 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14132 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14133 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}'
14134 else
14135 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}'
14136 fi
14137 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}'
14138 hardcode_direct_F77=no
14139 hardcode_automatic_F77=yes
14140 hardcode_shlibpath_var_F77=unsupported
14141 whole_archive_flag_spec_F77='-all_load $convenience'
14142 link_all_deplibs_F77=yes
14143 else
14144 ld_shlibs_F77=no
14145 fi
14146 ;;
14147
14148 dgux*)
14149 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14150 hardcode_libdir_flag_spec_F77='-L$libdir'
14151 hardcode_shlibpath_var_F77=no
14152 ;;
14153
14154 freebsd1*)
14155 ld_shlibs_F77=no
14156 ;;
14157
14158 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14159 # support. Future versions do this automatically, but an explicit c++rt0.o
14160 # does not break anything, and helps significantly (at the cost of a little
14161 # extra space).
14162 freebsd2.2*)
14163 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14164 hardcode_libdir_flag_spec_F77='-R$libdir'
14165 hardcode_direct_F77=yes
14166 hardcode_shlibpath_var_F77=no
14167 ;;
14168
14169 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14170 freebsd2*)
14171 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14172 hardcode_direct_F77=yes
14173 hardcode_minus_L_F77=yes
14174 hardcode_shlibpath_var_F77=no
14175 ;;
14176
14177 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14178 freebsd* | kfreebsd*-gnu)
14179 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14180 hardcode_libdir_flag_spec_F77='-R$libdir'
14181 hardcode_direct_F77=yes
14182 hardcode_shlibpath_var_F77=no
14183 ;;
14184
14185 hpux9*)
14186 if test "$GCC" = yes; then
14187 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'
14188 else
14189 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'
14190 fi
14191 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14192 hardcode_libdir_separator_F77=:
14193 hardcode_direct_F77=yes
14194
14195 # hardcode_minus_L: Not really in the search PATH,
14196 # but as the default location of the library.
14197 hardcode_minus_L_F77=yes
14198 export_dynamic_flag_spec_F77='${wl}-E'
14199 ;;
14200
14201 hpux10* | hpux11*)
14202 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14203 case "$host_cpu" in
14204 hppa*64*|ia64*)
14205 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14206 ;;
14207 *)
14208 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14209 ;;
14210 esac
14211 else
14212 case "$host_cpu" in
14213 hppa*64*|ia64*)
14214 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14215 ;;
14216 *)
14217 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14218 ;;
14219 esac
14220 fi
14221 if test "$with_gnu_ld" = no; then
14222 case "$host_cpu" in
14223 hppa*64*)
14224 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14225 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14226 hardcode_libdir_separator_F77=:
14227 hardcode_direct_F77=no
14228 hardcode_shlibpath_var_F77=no
14229 ;;
14230 ia64*)
14231 hardcode_libdir_flag_spec_F77='-L$libdir'
14232 hardcode_direct_F77=no
14233 hardcode_shlibpath_var_F77=no
14234
14235 # hardcode_minus_L: Not really in the search PATH,
14236 # but as the default location of the library.
14237 hardcode_minus_L_F77=yes
14238 ;;
14239 *)
14240 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14241 hardcode_libdir_separator_F77=:
14242 hardcode_direct_F77=yes
14243 export_dynamic_flag_spec_F77='${wl}-E'
14244
14245 # hardcode_minus_L: Not really in the search PATH,
14246 # but as the default location of the library.
14247 hardcode_minus_L_F77=yes
14248 ;;
14249 esac
14250 fi
14251 ;;
14252
14253 irix5* | irix6* | nonstopux*)
14254 if test "$GCC" = yes; then
14255 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'
14256 else
14257 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'
14258 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14259 fi
14260 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14261 hardcode_libdir_separator_F77=:
14262 link_all_deplibs_F77=yes
14263 ;;
14264
hp.com!davidm16230292004-07-15 17:39:59 +000014265 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014266 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14267 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14268 else
14269 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14270 fi
14271 hardcode_libdir_flag_spec_F77='-R$libdir'
14272 hardcode_direct_F77=yes
14273 hardcode_shlibpath_var_F77=no
14274 ;;
14275
14276 newsos6)
14277 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14278 hardcode_direct_F77=yes
14279 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14280 hardcode_libdir_separator_F77=:
14281 hardcode_shlibpath_var_F77=no
14282 ;;
14283
14284 openbsd*)
14285 hardcode_direct_F77=yes
14286 hardcode_shlibpath_var_F77=no
14287 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14288 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14289 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14290 export_dynamic_flag_spec_F77='${wl}-E'
14291 else
14292 case $host_os in
14293 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14294 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14295 hardcode_libdir_flag_spec_F77='-R$libdir'
14296 ;;
14297 *)
14298 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14299 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14300 ;;
14301 esac
14302 fi
14303 ;;
14304
14305 os2*)
14306 hardcode_libdir_flag_spec_F77='-L$libdir'
14307 hardcode_minus_L_F77=yes
14308 allow_undefined_flag_F77=unsupported
14309 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'
14310 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14311 ;;
14312
14313 osf3*)
14314 if test "$GCC" = yes; then
14315 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14316 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'
14317 else
14318 allow_undefined_flag_F77=' -expect_unresolved \*'
14319 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'
14320 fi
14321 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14322 hardcode_libdir_separator_F77=:
14323 ;;
14324
14325 osf4* | osf5*) # as osf3* with the addition of -msym flag
14326 if test "$GCC" = yes; then
14327 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14328 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'
14329 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14330 else
14331 allow_undefined_flag_F77=' -expect_unresolved \*'
14332 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'
14333 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~
14334 $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'
14335
14336 # Both c and cxx compiler support -rpath directly
14337 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14338 fi
14339 hardcode_libdir_separator_F77=:
14340 ;;
14341
14342 sco3.2v5*)
14343 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14344 hardcode_shlibpath_var_F77=no
14345 export_dynamic_flag_spec_F77='${wl}-Bexport'
14346 runpath_var=LD_RUN_PATH
14347 hardcode_runpath_var=yes
14348 ;;
14349
14350 solaris*)
14351 no_undefined_flag_F77=' -z text'
14352 if test "$GCC" = yes; then
14353 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14354 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14355 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14356 else
14357 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14358 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14359 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14360 fi
14361 hardcode_libdir_flag_spec_F77='-R$libdir'
14362 hardcode_shlibpath_var_F77=no
14363 case $host_os in
14364 solaris2.[0-5] | solaris2.[0-5].*) ;;
14365 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14366 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14367 esac
14368 link_all_deplibs_F77=yes
14369 ;;
14370
14371 sunos4*)
14372 if test "x$host_vendor" = xsequent; then
14373 # Use $CC to link under sequent, because it throws in some extra .o
14374 # files that make .init and .fini sections work.
14375 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14376 else
14377 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14378 fi
14379 hardcode_libdir_flag_spec_F77='-L$libdir'
14380 hardcode_direct_F77=yes
14381 hardcode_minus_L_F77=yes
14382 hardcode_shlibpath_var_F77=no
14383 ;;
14384
14385 sysv4)
14386 case $host_vendor in
14387 sni)
14388 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14389 hardcode_direct_F77=yes # is this really true???
14390 ;;
14391 siemens)
14392 ## LD is ld it makes a PLAMLIB
14393 ## CC just makes a GrossModule.
14394 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14395 reload_cmds_F77='$CC -r -o $output$reload_objs'
14396 hardcode_direct_F77=no
14397 ;;
14398 motorola)
14399 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14400 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14401 ;;
14402 esac
14403 runpath_var='LD_RUN_PATH'
14404 hardcode_shlibpath_var_F77=no
14405 ;;
14406
14407 sysv4.3*)
14408 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14409 hardcode_shlibpath_var_F77=no
14410 export_dynamic_flag_spec_F77='-Bexport'
14411 ;;
14412
14413 sysv4*MP*)
14414 if test -d /usr/nec; then
14415 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14416 hardcode_shlibpath_var_F77=no
14417 runpath_var=LD_RUN_PATH
14418 hardcode_runpath_var=yes
14419 ld_shlibs_F77=yes
14420 fi
14421 ;;
14422
14423 sysv4.2uw2*)
14424 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14425 hardcode_direct_F77=yes
14426 hardcode_minus_L_F77=no
14427 hardcode_shlibpath_var_F77=no
14428 hardcode_runpath_var=yes
14429 runpath_var=LD_RUN_PATH
14430 ;;
14431
14432 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14433 no_undefined_flag_F77='${wl}-z ${wl}text'
14434 if test "$GCC" = yes; then
14435 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14436 else
14437 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14438 fi
14439 runpath_var='LD_RUN_PATH'
14440 hardcode_shlibpath_var_F77=no
14441 ;;
14442
14443 sysv5*)
14444 no_undefined_flag_F77=' -z text'
14445 # $CC -shared without GNU ld will not create a library from C++
14446 # object files and a static libstdc++, better avoid it by now
14447 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14448 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14449 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14450 hardcode_libdir_flag_spec_F77=
14451 hardcode_shlibpath_var_F77=no
14452 runpath_var='LD_RUN_PATH'
14453 ;;
14454
14455 uts4*)
14456 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14457 hardcode_libdir_flag_spec_F77='-L$libdir'
14458 hardcode_shlibpath_var_F77=no
14459 ;;
14460
14461 *)
14462 ld_shlibs_F77=no
14463 ;;
14464 esac
14465 fi
14466
14467echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14468echo "${ECHO_T}$ld_shlibs_F77" >&6
14469test "$ld_shlibs_F77" = no && can_build_shared=no
14470
14471variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14472if test "$GCC" = yes; then
14473 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14474fi
14475
14476#
14477# Do we need to explicitly link libc?
14478#
14479case "x$archive_cmds_need_lc_F77" in
14480x|xyes)
14481 # Assume -lc should be added
14482 archive_cmds_need_lc_F77=yes
14483
14484 if test "$enable_shared" = yes && test "$GCC" = yes; then
14485 case $archive_cmds_F77 in
14486 *'~'*)
14487 # FIXME: we may have to deal with multi-command sequences.
14488 ;;
14489 '$CC '*)
14490 # Test whether the compiler implicitly links with -lc since on some
14491 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14492 # to ld, don't add -lc before -lgcc.
14493 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14494echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14495 $rm conftest*
14496 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14497
14498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14499 (eval $ac_compile) 2>&5
14500 ac_status=$?
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } 2>conftest.err; then
14503 soname=conftest
14504 lib=conftest
14505 libobjs=conftest.$ac_objext
14506 deplibs=
14507 wl=$lt_prog_compiler_wl_F77
14508 compiler_flags=-v
14509 linker_flags=-v
14510 verstring=
14511 output_objdir=.
14512 libname=conftest
14513 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14514 allow_undefined_flag_F77=
14515 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14516 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14517 ac_status=$?
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); }
14520 then
14521 archive_cmds_need_lc_F77=no
14522 else
14523 archive_cmds_need_lc_F77=yes
14524 fi
14525 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14526 else
14527 cat conftest.err 1>&5
14528 fi
14529 $rm conftest*
14530 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14531echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14532 ;;
14533 esac
14534 fi
14535 ;;
14536esac
14537
14538echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14539echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14540library_names_spec=
14541libname_spec='lib$name'
14542soname_spec=
hp.com!davidm2de17682004-04-20 16:53:44 +000014543shrext_cmds=".so"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014544postinstall_cmds=
14545postuninstall_cmds=
14546finish_cmds=
14547finish_eval=
14548shlibpath_var=
14549shlibpath_overrides_runpath=unknown
14550version_type=none
14551dynamic_linker="$host_os ld.so"
14552sys_lib_dlsearch_path_spec="/lib /usr/lib"
14553if test "$GCC" = yes; then
14554 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14555 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14556 # if the path contains ";" then we assume it to be the separator
14557 # otherwise default to the standard path separator (i.e. ":") - it is
14558 # assumed that no part of a normal pathname contains ";" but that should
14559 # okay in the real world where ";" in dirpaths is itself problematic.
14560 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14561 else
14562 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14563 fi
14564else
14565 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14566fi
14567need_lib_prefix=unknown
14568hardcode_into_libs=no
14569
14570# when you set need_version to no, make sure it does not cause -set_version
14571# flags to be left without arguments
14572need_version=unknown
14573
14574case $host_os in
14575aix3*)
14576 version_type=linux
14577 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14578 shlibpath_var=LIBPATH
14579
14580 # AIX 3 has no versioning support, so we append a major version to the name.
14581 soname_spec='${libname}${release}${shared_ext}$major'
14582 ;;
14583
14584aix4* | aix5*)
14585 version_type=linux
14586 need_lib_prefix=no
14587 need_version=no
14588 hardcode_into_libs=yes
14589 if test "$host_cpu" = ia64; then
14590 # AIX 5 supports IA64
14591 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14592 shlibpath_var=LD_LIBRARY_PATH
14593 else
14594 # With GCC up to 2.95.x, collect2 would create an import file
14595 # for dependence libraries. The import file would start with
14596 # the line `#! .'. This would cause the generated library to
14597 # depend on `.', always an invalid library. This was fixed in
14598 # development snapshots of GCC prior to 3.0.
14599 case $host_os in
14600 aix4 | aix4.[01] | aix4.[01].*)
14601 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14602 echo ' yes '
14603 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14604 :
14605 else
14606 can_build_shared=no
14607 fi
14608 ;;
14609 esac
14610 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14611 # soname into executable. Probably we can add versioning support to
14612 # collect2, so additional links can be useful in future.
14613 if test "$aix_use_runtimelinking" = yes; then
14614 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14615 # instead of lib<name>.a to let people know that these are not
14616 # typical AIX shared libraries.
14617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14618 else
14619 # We preserve .a as extension for shared libraries through AIX4.2
14620 # and later when we are not doing run time linking.
14621 library_names_spec='${libname}${release}.a $libname.a'
14622 soname_spec='${libname}${release}${shared_ext}$major'
14623 fi
14624 shlibpath_var=LIBPATH
14625 fi
14626 ;;
14627
14628amigaos*)
14629 library_names_spec='$libname.ixlibrary $libname.a'
14630 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14631 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'
14632 ;;
14633
14634beos*)
14635 library_names_spec='${libname}${shared_ext}'
14636 dynamic_linker="$host_os ld.so"
14637 shlibpath_var=LIBRARY_PATH
14638 ;;
14639
14640bsdi4*)
14641 version_type=linux
14642 need_version=no
14643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14644 soname_spec='${libname}${release}${shared_ext}$major'
14645 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14646 shlibpath_var=LD_LIBRARY_PATH
14647 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14648 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14649 # the default ld.so.conf also contains /usr/contrib/lib and
14650 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14651 # libtool to hard-code these into programs
14652 ;;
14653
14654cygwin* | mingw* | pw32*)
14655 version_type=windows
hp.com!davidm2de17682004-04-20 16:53:44 +000014656 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014657 need_version=no
14658 need_lib_prefix=no
14659
14660 case $GCC,$host_os in
14661 yes,cygwin* | yes,mingw* | yes,pw32*)
14662 library_names_spec='$libname.dll.a'
14663 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14664 postinstall_cmds='base_file=`basename \${file}`~
14665 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14666 dldir=$destdir/`dirname \$dlpath`~
14667 test -d \$dldir || mkdir -p \$dldir~
14668 $install_prog $dir/$dlname \$dldir/$dlname'
14669 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14670 dlpath=$dir/\$dldll~
14671 $rm \$dlpath'
14672 shlibpath_overrides_runpath=yes
14673
14674 case $host_os in
14675 cygwin*)
14676 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14677 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14678 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14679 ;;
14680 mingw*)
14681 # MinGW DLLs use traditional 'lib' prefix
14682 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14683 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14684 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14685 # It is most probably a Windows format PATH printed by
14686 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14687 # path with ; separators, and with drive letters. We can handle the
14688 # drive letters (cygwin fileutils understands them), so leave them,
14689 # especially as we might pass files found there to a mingw objdump,
14690 # which wouldn't understand a cygwinified path. Ahh.
14691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14692 else
14693 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14694 fi
14695 ;;
14696 pw32*)
14697 # pw32 DLLs use 'pw' prefix rather than 'lib'
14698 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14699 ;;
14700 esac
14701 ;;
14702
14703 *)
14704 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14705 ;;
14706 esac
14707 dynamic_linker='Win32 ld.exe'
14708 # FIXME: first we should search . and the directory the executable is in
14709 shlibpath_var=PATH
14710 ;;
14711
14712darwin* | rhapsody*)
14713 dynamic_linker="$host_os dyld"
14714 version_type=darwin
14715 need_lib_prefix=no
14716 need_version=no
14717 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14718 soname_spec='${libname}${release}${major}$shared_ext'
14719 shlibpath_overrides_runpath=yes
14720 shlibpath_var=DYLD_LIBRARY_PATH
hp.com!davidm2de17682004-04-20 16:53:44 +000014721 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014722 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14723 if test "$GCC" = yes; then
14724 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"`
14725 else
14726 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14727 fi
14728 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14729 ;;
14730
14731dgux*)
14732 version_type=linux
14733 need_lib_prefix=no
14734 need_version=no
14735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 shlibpath_var=LD_LIBRARY_PATH
14738 ;;
14739
14740freebsd1*)
14741 dynamic_linker=no
14742 ;;
14743
14744kfreebsd*-gnu)
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 shlibpath_var=LD_LIBRARY_PATH
14751 shlibpath_overrides_runpath=no
14752 hardcode_into_libs=yes
14753 dynamic_linker='GNU ld.so'
14754 ;;
14755
14756freebsd*)
14757 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14758 version_type=freebsd-$objformat
14759 case $version_type in
14760 freebsd-elf*)
14761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14762 need_version=no
14763 need_lib_prefix=no
14764 ;;
14765 freebsd-*)
14766 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14767 need_version=yes
14768 ;;
14769 esac
14770 shlibpath_var=LD_LIBRARY_PATH
14771 case $host_os in
14772 freebsd2*)
14773 shlibpath_overrides_runpath=yes
14774 ;;
14775 freebsd3.01* | freebsdelf3.01*)
14776 shlibpath_overrides_runpath=yes
14777 hardcode_into_libs=yes
14778 ;;
14779 *) # from 3.2 on
14780 shlibpath_overrides_runpath=no
14781 hardcode_into_libs=yes
14782 ;;
14783 esac
14784 ;;
14785
14786gnu*)
14787 version_type=linux
14788 need_lib_prefix=no
14789 need_version=no
14790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14791 soname_spec='${libname}${release}${shared_ext}$major'
14792 shlibpath_var=LD_LIBRARY_PATH
14793 hardcode_into_libs=yes
14794 ;;
14795
14796hpux9* | hpux10* | hpux11*)
14797 # Give a soname corresponding to the major version so that dld.sl refuses to
14798 # link against other versions.
14799 version_type=sunos
14800 need_lib_prefix=no
14801 need_version=no
14802 case "$host_cpu" in
14803 ia64*)
hp.com!davidm2de17682004-04-20 16:53:44 +000014804 shrext_cmds='.so'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014805 hardcode_into_libs=yes
14806 dynamic_linker="$host_os dld.so"
14807 shlibpath_var=LD_LIBRARY_PATH
14808 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14810 soname_spec='${libname}${release}${shared_ext}$major'
14811 if test "X$HPUX_IA64_MODE" = X32; then
14812 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14813 else
14814 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14815 fi
14816 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14817 ;;
14818 hppa*64*)
hp.com!davidm2de17682004-04-20 16:53:44 +000014819 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014820 hardcode_into_libs=yes
14821 dynamic_linker="$host_os dld.sl"
14822 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14823 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14825 soname_spec='${libname}${release}${shared_ext}$major'
14826 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14827 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14828 ;;
14829 *)
hp.com!davidm2de17682004-04-20 16:53:44 +000014830 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014831 dynamic_linker="$host_os dld.sl"
14832 shlibpath_var=SHLIB_PATH
14833 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14835 soname_spec='${libname}${release}${shared_ext}$major'
14836 ;;
14837 esac
14838 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14839 postinstall_cmds='chmod 555 $lib'
14840 ;;
14841
14842irix5* | irix6* | nonstopux*)
14843 case $host_os in
14844 nonstopux*) version_type=nonstopux ;;
14845 *)
14846 if test "$lt_cv_prog_gnu_ld" = yes; then
14847 version_type=linux
14848 else
14849 version_type=irix
14850 fi ;;
14851 esac
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}${release}${shared_ext} $libname${shared_ext}'
14856 case $host_os in
14857 irix5* | nonstopux*)
14858 libsuff= shlibsuff=
14859 ;;
14860 *)
14861 case $LD in # libtool.m4 will add one of these switches to LD
14862 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14863 libsuff= shlibsuff= libmagic=32-bit;;
14864 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14865 libsuff=32 shlibsuff=N32 libmagic=N32;;
14866 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14867 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14868 *) libsuff= shlibsuff= libmagic=never-match;;
14869 esac
14870 ;;
14871 esac
14872 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14873 shlibpath_overrides_runpath=no
14874 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14875 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14876 hardcode_into_libs=yes
14877 ;;
14878
14879# No shared lib support for Linux oldld, aout, or coff.
14880linux*oldld* | linux*aout* | linux*coff*)
14881 dynamic_linker=no
14882 ;;
14883
14884# This must be Linux ELF.
14885linux*)
14886 version_type=linux
14887 need_lib_prefix=no
14888 need_version=no
14889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14890 soname_spec='${libname}${release}${shared_ext}$major'
14891 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14892 shlibpath_var=LD_LIBRARY_PATH
14893 shlibpath_overrides_runpath=no
14894 # This implies no fast_install, which is unacceptable.
14895 # Some rework will be needed to allow for fast_install
14896 # before this can be enabled.
14897 hardcode_into_libs=yes
14898
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000014899 # Append ld.so.conf contents to the search path
14900 if test -f /etc/ld.so.conf; then
hp.com!davidm2de17682004-04-20 16:53:44 +000014901 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14902 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000014903 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014904
14905 # We used to test for /lib/ld.so.1 and disable shared libraries on
14906 # powerpc, because MkLinux only supported shared libraries with the
14907 # GNU dynamic linker. Since this was broken with cross compilers,
14908 # most powerpc-linux boxes support dynamic linking these days and
14909 # people can always --disable-shared, the test was removed, and we
14910 # assume the GNU/Linux dynamic linker is in use.
14911 dynamic_linker='GNU/Linux ld.so'
14912 ;;
14913
hp.com!davidm16230292004-07-15 17:39:59 +000014914netbsdelf*-gnu)
14915 version_type=linux
14916 need_lib_prefix=no
14917 need_version=no
14918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14919 soname_spec='${libname}${release}${shared_ext}$major'
14920 shlibpath_var=LD_LIBRARY_PATH
14921 shlibpath_overrides_runpath=no
14922 hardcode_into_libs=yes
14923 dynamic_linker='NetBSD ld.elf_so'
14924 ;;
14925
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014926knetbsd*-gnu)
14927 version_type=linux
14928 need_lib_prefix=no
14929 need_version=no
14930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14931 soname_spec='${libname}${release}${shared_ext}$major'
14932 shlibpath_var=LD_LIBRARY_PATH
14933 shlibpath_overrides_runpath=no
14934 hardcode_into_libs=yes
14935 dynamic_linker='GNU ld.so'
14936 ;;
14937
14938netbsd*)
14939 version_type=sunos
14940 need_lib_prefix=no
14941 need_version=no
14942 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14945 dynamic_linker='NetBSD (a.out) ld.so'
14946 else
hp.com!davidm2de17682004-04-20 16:53:44 +000014947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014948 soname_spec='${libname}${release}${shared_ext}$major'
14949 dynamic_linker='NetBSD ld.elf_so'
14950 fi
14951 shlibpath_var=LD_LIBRARY_PATH
14952 shlibpath_overrides_runpath=yes
14953 hardcode_into_libs=yes
14954 ;;
14955
14956newsos6)
14957 version_type=linux
14958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14959 shlibpath_var=LD_LIBRARY_PATH
14960 shlibpath_overrides_runpath=yes
14961 ;;
14962
14963nto-qnx*)
14964 version_type=linux
14965 need_lib_prefix=no
14966 need_version=no
14967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14968 soname_spec='${libname}${release}${shared_ext}$major'
14969 shlibpath_var=LD_LIBRARY_PATH
14970 shlibpath_overrides_runpath=yes
14971 ;;
14972
14973openbsd*)
14974 version_type=sunos
14975 need_lib_prefix=no
14976 need_version=yes
14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14979 shlibpath_var=LD_LIBRARY_PATH
14980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14981 case $host_os in
14982 openbsd2.[89] | openbsd2.[89].*)
14983 shlibpath_overrides_runpath=no
14984 ;;
14985 *)
14986 shlibpath_overrides_runpath=yes
14987 ;;
14988 esac
14989 else
14990 shlibpath_overrides_runpath=yes
14991 fi
14992 ;;
14993
14994os2*)
14995 libname_spec='$name'
hp.com!davidm2de17682004-04-20 16:53:44 +000014996 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014997 need_lib_prefix=no
14998 library_names_spec='$libname${shared_ext} $libname.a'
14999 dynamic_linker='OS/2 ld.exe'
15000 shlibpath_var=LIBPATH
15001 ;;
15002
15003osf3* | osf4* | osf5*)
15004 version_type=osf
15005 need_lib_prefix=no
15006 need_version=no
15007 soname_spec='${libname}${release}${shared_ext}$major'
15008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15009 shlibpath_var=LD_LIBRARY_PATH
15010 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15011 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15012 ;;
15013
15014sco3.2v5*)
15015 version_type=osf
15016 soname_spec='${libname}${release}${shared_ext}$major'
15017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15018 shlibpath_var=LD_LIBRARY_PATH
15019 ;;
15020
15021solaris*)
15022 version_type=linux
15023 need_lib_prefix=no
15024 need_version=no
15025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15026 soname_spec='${libname}${release}${shared_ext}$major'
15027 shlibpath_var=LD_LIBRARY_PATH
15028 shlibpath_overrides_runpath=yes
15029 hardcode_into_libs=yes
15030 # ldd complains unless libraries are executable
15031 postinstall_cmds='chmod +x $lib'
15032 ;;
15033
15034sunos4*)
15035 version_type=sunos
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15037 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15038 shlibpath_var=LD_LIBRARY_PATH
15039 shlibpath_overrides_runpath=yes
15040 if test "$with_gnu_ld" = yes; then
15041 need_lib_prefix=no
15042 fi
15043 need_version=yes
15044 ;;
15045
15046sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15047 version_type=linux
15048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15049 soname_spec='${libname}${release}${shared_ext}$major'
15050 shlibpath_var=LD_LIBRARY_PATH
15051 case $host_vendor in
15052 sni)
15053 shlibpath_overrides_runpath=no
15054 need_lib_prefix=no
15055 export_dynamic_flag_spec='${wl}-Blargedynsym'
15056 runpath_var=LD_RUN_PATH
15057 ;;
15058 siemens)
15059 need_lib_prefix=no
15060 ;;
15061 motorola)
15062 need_lib_prefix=no
15063 need_version=no
15064 shlibpath_overrides_runpath=no
15065 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15066 ;;
15067 esac
15068 ;;
15069
15070sysv4*MP*)
15071 if test -d /usr/nec ;then
15072 version_type=linux
15073 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15074 soname_spec='$libname${shared_ext}.$major'
15075 shlibpath_var=LD_LIBRARY_PATH
15076 fi
15077 ;;
15078
15079uts4*)
15080 version_type=linux
15081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15082 soname_spec='${libname}${release}${shared_ext}$major'
15083 shlibpath_var=LD_LIBRARY_PATH
15084 ;;
15085
15086*)
15087 dynamic_linker=no
15088 ;;
15089esac
15090echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15091echo "${ECHO_T}$dynamic_linker" >&6
15092test "$dynamic_linker" = no && can_build_shared=no
15093
15094echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15095echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15096hardcode_action_F77=
15097if test -n "$hardcode_libdir_flag_spec_F77" || \
15098 test -n "$runpath_var F77" || \
15099 test "X$hardcode_automatic_F77"="Xyes" ; then
15100
15101 # We can hardcode non-existant directories.
15102 if test "$hardcode_direct_F77" != no &&
15103 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15104 # have to relink, otherwise we might link with an installed library
15105 # when we should be linking with a yet-to-be-installed one
15106 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15107 test "$hardcode_minus_L_F77" != no; then
15108 # Linking always hardcodes the temporary library directory.
15109 hardcode_action_F77=relink
15110 else
15111 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15112 hardcode_action_F77=immediate
15113 fi
15114else
15115 # We cannot hardcode anything, or else we can only hardcode existing
15116 # directories.
15117 hardcode_action_F77=unsupported
15118fi
15119echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15120echo "${ECHO_T}$hardcode_action_F77" >&6
15121
15122if test "$hardcode_action_F77" = relink; then
15123 # Fast installation is not supported
15124 enable_fast_install=no
15125elif test "$shlibpath_overrides_runpath" = yes ||
15126 test "$enable_shared" = no; then
15127 # Fast installation is not necessary
15128 enable_fast_install=needless
15129fi
15130
15131striplib=
15132old_striplib=
15133echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15134echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15135if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15136 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15137 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15138 echo "$as_me:$LINENO: result: yes" >&5
15139echo "${ECHO_T}yes" >&6
15140else
15141# FIXME - insert some real tests, host_os isn't really good enough
15142 case $host_os in
15143 darwin*)
15144 if test -n "$STRIP" ; then
15145 striplib="$STRIP -x"
15146 echo "$as_me:$LINENO: result: yes" >&5
15147echo "${ECHO_T}yes" >&6
15148 else
15149 echo "$as_me:$LINENO: result: no" >&5
15150echo "${ECHO_T}no" >&6
15151fi
15152 ;;
15153 *)
15154 echo "$as_me:$LINENO: result: no" >&5
15155echo "${ECHO_T}no" >&6
15156 ;;
15157 esac
15158fi
15159
15160
15161
15162# The else clause should only fire when bootstrapping the
15163# libtool distribution, otherwise you forgot to ship ltmain.sh
15164# with your package, and you will get complaints that there are
15165# no rules to generate ltmain.sh.
15166if test -f "$ltmain"; then
15167 # See if we are running on zsh, and set the options which allow our commands through
15168 # without removal of \ escapes.
15169 if test -n "${ZSH_VERSION+set}" ; then
15170 setopt NO_GLOB_SUBST
15171 fi
15172 # Now quote all the things that may contain metacharacters while being
15173 # careful not to overquote the AC_SUBSTed values. We take copies of the
15174 # variables and quote the copies for generation of the libtool script.
15175 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15176 SED SHELL STRIP \
15177 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15178 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15179 deplibs_check_method reload_flag reload_cmds need_locks \
15180 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15181 lt_cv_sys_global_symbol_to_c_name_address \
15182 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15183 old_postinstall_cmds old_postuninstall_cmds \
15184 compiler_F77 \
15185 CC_F77 \
15186 LD_F77 \
15187 lt_prog_compiler_wl_F77 \
15188 lt_prog_compiler_pic_F77 \
15189 lt_prog_compiler_static_F77 \
15190 lt_prog_compiler_no_builtin_flag_F77 \
15191 export_dynamic_flag_spec_F77 \
15192 thread_safe_flag_spec_F77 \
15193 whole_archive_flag_spec_F77 \
15194 enable_shared_with_static_runtimes_F77 \
15195 old_archive_cmds_F77 \
15196 old_archive_from_new_cmds_F77 \
15197 predep_objects_F77 \
15198 postdep_objects_F77 \
15199 predeps_F77 \
15200 postdeps_F77 \
15201 compiler_lib_search_path_F77 \
15202 archive_cmds_F77 \
15203 archive_expsym_cmds_F77 \
15204 postinstall_cmds_F77 \
15205 postuninstall_cmds_F77 \
15206 old_archive_from_expsyms_cmds_F77 \
15207 allow_undefined_flag_F77 \
15208 no_undefined_flag_F77 \
15209 export_symbols_cmds_F77 \
15210 hardcode_libdir_flag_spec_F77 \
15211 hardcode_libdir_flag_spec_ld_F77 \
15212 hardcode_libdir_separator_F77 \
15213 hardcode_automatic_F77 \
15214 module_cmds_F77 \
15215 module_expsym_cmds_F77 \
15216 lt_cv_prog_compiler_c_o_F77 \
15217 exclude_expsyms_F77 \
15218 include_expsyms_F77; do
15219
15220 case $var in
15221 old_archive_cmds_F77 | \
15222 old_archive_from_new_cmds_F77 | \
15223 archive_cmds_F77 | \
15224 archive_expsym_cmds_F77 | \
15225 module_cmds_F77 | \
15226 module_expsym_cmds_F77 | \
15227 old_archive_from_expsyms_cmds_F77 | \
15228 export_symbols_cmds_F77 | \
15229 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15230 postinstall_cmds | postuninstall_cmds | \
15231 old_postinstall_cmds | old_postuninstall_cmds | \
15232 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15233 # Double-quote double-evaled strings.
15234 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15235 ;;
15236 *)
15237 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15238 ;;
15239 esac
15240 done
15241
15242 case $lt_echo in
15243 *'\$0 --fallback-echo"')
15244 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15245 ;;
15246 esac
15247
15248cfgfile="$ofile"
15249
15250 cat <<__EOF__ >> "$cfgfile"
15251# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15252
15253# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15254
15255# Shell to use when invoking shell scripts.
15256SHELL=$lt_SHELL
15257
15258# Whether or not to build shared libraries.
15259build_libtool_libs=$enable_shared
15260
15261# Whether or not to build static libraries.
15262build_old_libs=$enable_static
15263
15264# Whether or not to add -lc for building shared libraries.
15265build_libtool_need_lc=$archive_cmds_need_lc_F77
15266
15267# Whether or not to disallow shared libs when runtime libs are static
15268allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15269
15270# Whether or not to optimize for fast installation.
15271fast_install=$enable_fast_install
15272
15273# The host system.
15274host_alias=$host_alias
15275host=$host
15276
15277# An echo program that does not interpret backslashes.
15278echo=$lt_echo
15279
15280# The archiver.
15281AR=$lt_AR
15282AR_FLAGS=$lt_AR_FLAGS
15283
15284# A C compiler.
15285LTCC=$lt_LTCC
15286
15287# A language-specific compiler.
15288CC=$lt_compiler_F77
15289
15290# Is the compiler the GNU C compiler?
15291with_gcc=$GCC_F77
15292
15293# An ERE matcher.
15294EGREP=$lt_EGREP
15295
15296# The linker used to build libraries.
15297LD=$lt_LD_F77
15298
15299# Whether we need hard or soft links.
15300LN_S=$lt_LN_S
15301
15302# A BSD-compatible nm program.
15303NM=$lt_NM
15304
15305# A symbol stripping program
15306STRIP=$lt_STRIP
15307
15308# Used to examine libraries when file_magic_cmd begins "file"
15309MAGIC_CMD=$MAGIC_CMD
15310
15311# Used on cygwin: DLL creation program.
15312DLLTOOL="$DLLTOOL"
15313
15314# Used on cygwin: object dumper.
15315OBJDUMP="$OBJDUMP"
15316
15317# Used on cygwin: assembler.
15318AS="$AS"
15319
15320# The name of the directory that contains temporary libtool files.
15321objdir=$objdir
15322
15323# How to create reloadable object files.
15324reload_flag=$lt_reload_flag
15325reload_cmds=$lt_reload_cmds
15326
15327# How to pass a linker flag through the compiler.
15328wl=$lt_lt_prog_compiler_wl_F77
15329
15330# Object file suffix (normally "o").
15331objext="$ac_objext"
15332
15333# Old archive suffix (normally "a").
15334libext="$libext"
15335
15336# Shared library suffix (normally ".so").
hp.com!davidm2de17682004-04-20 16:53:44 +000015337shrext_cmds='$shrext_cmds'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015338
15339# Executable file suffix (normally "").
15340exeext="$exeext"
15341
15342# Additional compiler flags for building library objects.
15343pic_flag=$lt_lt_prog_compiler_pic_F77
15344pic_mode=$pic_mode
15345
15346# What is the maximum length of a command?
15347max_cmd_len=$lt_cv_sys_max_cmd_len
15348
15349# Does compiler simultaneously support -c and -o options?
15350compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15351
15352# Must we lock files when doing compilation ?
15353need_locks=$lt_need_locks
15354
15355# Do we need the lib prefix for modules?
15356need_lib_prefix=$need_lib_prefix
15357
15358# Do we need a version for libraries?
15359need_version=$need_version
15360
15361# Whether dlopen is supported.
15362dlopen_support=$enable_dlopen
15363
15364# Whether dlopen of programs is supported.
15365dlopen_self=$enable_dlopen_self
15366
15367# Whether dlopen of statically linked programs is supported.
15368dlopen_self_static=$enable_dlopen_self_static
15369
15370# Compiler flag to prevent dynamic linking.
15371link_static_flag=$lt_lt_prog_compiler_static_F77
15372
15373# Compiler flag to turn off builtin functions.
15374no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15375
15376# Compiler flag to allow reflexive dlopens.
15377export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15378
15379# Compiler flag to generate shared objects directly from archives.
15380whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15381
15382# Compiler flag to generate thread-safe objects.
15383thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15384
15385# Library versioning type.
15386version_type=$version_type
15387
15388# Format of library name prefix.
15389libname_spec=$lt_libname_spec
15390
15391# List of archive names. First name is the real one, the rest are links.
15392# The last name is the one that the linker finds with -lNAME.
15393library_names_spec=$lt_library_names_spec
15394
15395# The coded name of the library, if different from the real name.
15396soname_spec=$lt_soname_spec
15397
15398# Commands used to build and install an old-style archive.
15399RANLIB=$lt_RANLIB
15400old_archive_cmds=$lt_old_archive_cmds_F77
15401old_postinstall_cmds=$lt_old_postinstall_cmds
15402old_postuninstall_cmds=$lt_old_postuninstall_cmds
15403
15404# Create an old-style archive from a shared archive.
15405old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15406
15407# Create a temporary old-style archive to link instead of a shared archive.
15408old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15409
15410# Commands used to build and install a shared archive.
15411archive_cmds=$lt_archive_cmds_F77
15412archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15413postinstall_cmds=$lt_postinstall_cmds
15414postuninstall_cmds=$lt_postuninstall_cmds
15415
15416# Commands used to build a loadable module (assumed same as above if empty)
15417module_cmds=$lt_module_cmds_F77
15418module_expsym_cmds=$lt_module_expsym_cmds_F77
15419
15420# Commands to strip libraries.
15421old_striplib=$lt_old_striplib
15422striplib=$lt_striplib
15423
15424# Dependencies to place before the objects being linked to create a
15425# shared library.
15426predep_objects=$lt_predep_objects_F77
15427
15428# Dependencies to place after the objects being linked to create a
15429# shared library.
15430postdep_objects=$lt_postdep_objects_F77
15431
15432# Dependencies to place before the objects being linked to create a
15433# shared library.
15434predeps=$lt_predeps_F77
15435
15436# Dependencies to place after the objects being linked to create a
15437# shared library.
15438postdeps=$lt_postdeps_F77
15439
15440# The library search path used internally by the compiler when linking
15441# a shared library.
15442compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15443
15444# Method to check whether dependent libraries are shared objects.
15445deplibs_check_method=$lt_deplibs_check_method
15446
15447# Command to use when deplibs_check_method == file_magic.
15448file_magic_cmd=$lt_file_magic_cmd
15449
15450# Flag that allows shared libraries with undefined symbols to be built.
15451allow_undefined_flag=$lt_allow_undefined_flag_F77
15452
15453# Flag that forces no undefined symbols.
15454no_undefined_flag=$lt_no_undefined_flag_F77
15455
15456# Commands used to finish a libtool library installation in a directory.
15457finish_cmds=$lt_finish_cmds
15458
15459# Same as above, but a single script fragment to be evaled but not shown.
15460finish_eval=$lt_finish_eval
15461
15462# Take the output of nm and produce a listing of raw symbols and C names.
15463global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15464
15465# Transform the output of nm in a proper C declaration
15466global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15467
15468# Transform the output of nm in a C name address pair
15469global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15470
15471# This is the shared library runtime path variable.
15472runpath_var=$runpath_var
15473
15474# This is the shared library path variable.
15475shlibpath_var=$shlibpath_var
15476
15477# Is shlibpath searched before the hard-coded library search path?
15478shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15479
15480# How to hardcode a shared library path into an executable.
15481hardcode_action=$hardcode_action_F77
15482
15483# Whether we should hardcode library paths into libraries.
15484hardcode_into_libs=$hardcode_into_libs
15485
15486# Flag to hardcode \$libdir into a binary during linking.
15487# This must work even if \$libdir does not exist.
15488hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15489
15490# If ld is used when linking, flag to hardcode \$libdir into
15491# a binary during linking. This must work even if \$libdir does
15492# not exist.
15493hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15494
15495# Whether we need a single -rpath flag with a separated argument.
15496hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15497
15498# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15499# resulting binary.
15500hardcode_direct=$hardcode_direct_F77
15501
15502# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15503# resulting binary.
15504hardcode_minus_L=$hardcode_minus_L_F77
15505
15506# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15507# the resulting binary.
15508hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15509
15510# Set to yes if building a shared library automatically hardcodes DIR into the library
15511# and all subsequent libraries and executables linked against it.
15512hardcode_automatic=$hardcode_automatic_F77
15513
15514# Variables whose values should be saved in libtool wrapper scripts and
15515# restored at relink time.
15516variables_saved_for_relink="$variables_saved_for_relink"
15517
15518# Whether libtool must link a program against all its dependency libraries.
15519link_all_deplibs=$link_all_deplibs_F77
15520
15521# Compile-time system search path for libraries
15522sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15523
15524# Run-time system search path for libraries
15525sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15526
15527# Fix the shell variable \$srcfile for the compiler.
15528fix_srcfile_path="$fix_srcfile_path_F77"
15529
15530# Set to yes if exported symbols are required.
15531always_export_symbols=$always_export_symbols_F77
15532
15533# The commands to list exported symbols.
15534export_symbols_cmds=$lt_export_symbols_cmds_F77
15535
15536# The commands to extract the exported symbol list from a shared archive.
15537extract_expsyms_cmds=$lt_extract_expsyms_cmds
15538
15539# Symbols that should not be listed in the preloaded symbols.
15540exclude_expsyms=$lt_exclude_expsyms_F77
15541
15542# Symbols that must always be exported.
15543include_expsyms=$lt_include_expsyms_F77
15544
15545# ### END LIBTOOL TAG CONFIG: $tagname
15546
15547__EOF__
15548
15549
15550else
15551 # If there is no Makefile yet, we rely on a make rule to execute
15552 # `config.status --recheck' to rerun these tests and create the
15553 # libtool script then.
15554 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15555 if test -f "$ltmain_in"; then
15556 test -f Makefile && make "$ltmain"
15557 fi
15558fi
15559
15560
15561ac_ext=c
15562ac_cpp='$CPP $CPPFLAGS'
15563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15565ac_compiler_gnu=$ac_cv_c_compiler_gnu
15566
15567CC="$lt_save_CC"
15568
15569 else
15570 tagname=""
15571 fi
15572 ;;
15573
15574 GCJ)
15575 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15576
15577
15578
15579# Source file extension for Java test sources.
15580ac_ext=java
15581
15582# Object file extension for compiled Java test sources.
15583objext=o
15584objext_GCJ=$objext
15585
15586# Code to be used in simple compile tests
15587lt_simple_compile_test_code="class foo {}\n"
15588
15589# Code to be used in simple link tests
15590lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15591
15592# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15593
15594# If no C compiler was specified, use CC.
15595LTCC=${LTCC-"$CC"}
15596
15597# Allow CC to be a program name with arguments.
15598compiler=$CC
15599
15600
15601# Allow CC to be a program name with arguments.
15602lt_save_CC="$CC"
15603CC=${GCJ-"gcj"}
15604compiler=$CC
15605compiler_GCJ=$CC
15606
15607# GCJ did not exist at the time GCC didn't implicitly link libc in.
15608archive_cmds_need_lc_GCJ=no
15609
15610
15611lt_prog_compiler_no_builtin_flag_GCJ=
15612
15613if test "$GCC" = yes; then
15614 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15615
15616
15617echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15618echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15619if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15621else
15622 lt_cv_prog_compiler_rtti_exceptions=no
15623 ac_outfile=conftest.$ac_objext
15624 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15625 lt_compiler_flag="-fno-rtti -fno-exceptions"
15626 # Insert the option either (1) after the last *FLAGS variable, or
15627 # (2) before a word containing "conftest.", or (3) at the end.
15628 # Note that $ac_compile itself does not contain backslashes and begins
15629 # with a dollar sign (not a hyphen), so the echo should work correctly.
15630 # The option is referenced via a variable to avoid confusing sed.
15631 lt_compile=`echo "$ac_compile" | $SED \
15632 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15634 -e 's:$: $lt_compiler_flag:'`
homeip.net!davidm34fa1222004-08-17 15:34:28 +000015635 (eval echo "\"\$as_me:15635: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015636 (eval "$lt_compile" 2>conftest.err)
15637 ac_status=$?
15638 cat conftest.err >&5
homeip.net!davidm34fa1222004-08-17 15:34:28 +000015639 echo "$as_me:15639: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015640 if (exit $ac_status) && test -s "$ac_outfile"; then
15641 # The compiler can only warn and ignore the option if not recognized
15642 # So say no if there are warnings
15643 if test ! -s conftest.err; then
15644 lt_cv_prog_compiler_rtti_exceptions=yes
15645 fi
15646 fi
15647 $rm conftest*
15648
15649fi
15650echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15651echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15652
15653if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15654 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15655else
15656 :
15657fi
15658
15659fi
15660
15661lt_prog_compiler_wl_GCJ=
15662lt_prog_compiler_pic_GCJ=
15663lt_prog_compiler_static_GCJ=
15664
15665echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15666echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15667
15668 if test "$GCC" = yes; then
15669 lt_prog_compiler_wl_GCJ='-Wl,'
15670 lt_prog_compiler_static_GCJ='-static'
15671
15672 case $host_os in
15673 aix*)
15674 # All AIX code is PIC.
15675 if test "$host_cpu" = ia64; then
15676 # AIX 5 now supports IA64 processor
15677 lt_prog_compiler_static_GCJ='-Bstatic'
15678 fi
15679 ;;
15680
15681 amigaos*)
15682 # FIXME: we need at least 68020 code to build shared libraries, but
15683 # adding the `-m68020' flag to GCC prevents building anything better,
15684 # like `-m68040'.
15685 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15686 ;;
15687
15688 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15689 # PIC is the default for these OSes.
15690 ;;
15691
15692 mingw* | pw32* | os2*)
15693 # This hack is so that the source file can tell whether it is being
15694 # built for inclusion in a dll (and should export symbols for example).
15695 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15696 ;;
15697
15698 darwin* | rhapsody*)
15699 # PIC is the default on this platform
15700 # Common symbols not allowed in MH_DYLIB files
15701 lt_prog_compiler_pic_GCJ='-fno-common'
15702 ;;
15703
15704 msdosdjgpp*)
15705 # Just because we use GCC doesn't mean we suddenly get shared libraries
15706 # on systems that don't support them.
15707 lt_prog_compiler_can_build_shared_GCJ=no
15708 enable_shared=no
15709 ;;
15710
15711 sysv4*MP*)
15712 if test -d /usr/nec; then
15713 lt_prog_compiler_pic_GCJ=-Kconform_pic
15714 fi
15715 ;;
15716
15717 hpux*)
15718 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15719 # not for PA HP-UX.
15720 case "$host_cpu" in
15721 hppa*64*|ia64*)
15722 # +Z the default
15723 ;;
15724 *)
15725 lt_prog_compiler_pic_GCJ='-fPIC'
15726 ;;
15727 esac
15728 ;;
15729
15730 *)
15731 lt_prog_compiler_pic_GCJ='-fPIC'
15732 ;;
15733 esac
15734 else
15735 # PORTME Check for flag to pass linker flags through the system compiler.
15736 case $host_os in
15737 aix*)
15738 lt_prog_compiler_wl_GCJ='-Wl,'
15739 if test "$host_cpu" = ia64; then
15740 # AIX 5 now supports IA64 processor
15741 lt_prog_compiler_static_GCJ='-Bstatic'
15742 else
15743 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15744 fi
15745 ;;
15746
15747 mingw* | pw32* | os2*)
15748 # This hack is so that the source file can tell whether it is being
15749 # built for inclusion in a dll (and should export symbols for example).
15750 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15751 ;;
15752
15753 hpux9* | hpux10* | hpux11*)
15754 lt_prog_compiler_wl_GCJ='-Wl,'
15755 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15756 # not for PA HP-UX.
15757 case "$host_cpu" in
15758 hppa*64*|ia64*)
15759 # +Z the default
15760 ;;
15761 *)
15762 lt_prog_compiler_pic_GCJ='+Z'
15763 ;;
15764 esac
15765 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15766 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15767 ;;
15768
15769 irix5* | irix6* | nonstopux*)
15770 lt_prog_compiler_wl_GCJ='-Wl,'
15771 # PIC (with -KPIC) is the default.
15772 lt_prog_compiler_static_GCJ='-non_shared'
15773 ;;
15774
15775 newsos6)
15776 lt_prog_compiler_pic_GCJ='-KPIC'
15777 lt_prog_compiler_static_GCJ='-Bstatic'
15778 ;;
15779
15780 linux*)
15781 case $CC in
15782 icc* | ecc*)
15783 lt_prog_compiler_wl_GCJ='-Wl,'
15784 lt_prog_compiler_pic_GCJ='-KPIC'
15785 lt_prog_compiler_static_GCJ='-static'
15786 ;;
15787 ccc*)
15788 lt_prog_compiler_wl_GCJ='-Wl,'
15789 # All Alpha code is PIC.
15790 lt_prog_compiler_static_GCJ='-non_shared'
15791 ;;
15792 esac
15793 ;;
15794
15795 osf3* | osf4* | osf5*)
15796 lt_prog_compiler_wl_GCJ='-Wl,'
15797 # All OSF/1 code is PIC.
15798 lt_prog_compiler_static_GCJ='-non_shared'
15799 ;;
15800
15801 sco3.2v5*)
15802 lt_prog_compiler_pic_GCJ='-Kpic'
15803 lt_prog_compiler_static_GCJ='-dn'
15804 ;;
15805
15806 solaris*)
15807 lt_prog_compiler_wl_GCJ='-Wl,'
15808 lt_prog_compiler_pic_GCJ='-KPIC'
15809 lt_prog_compiler_static_GCJ='-Bstatic'
15810 ;;
15811
15812 sunos4*)
15813 lt_prog_compiler_wl_GCJ='-Qoption ld '
15814 lt_prog_compiler_pic_GCJ='-PIC'
15815 lt_prog_compiler_static_GCJ='-Bstatic'
15816 ;;
15817
15818 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15819 lt_prog_compiler_wl_GCJ='-Wl,'
15820 lt_prog_compiler_pic_GCJ='-KPIC'
15821 lt_prog_compiler_static_GCJ='-Bstatic'
15822 ;;
15823
15824 sysv4*MP*)
15825 if test -d /usr/nec ;then
15826 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15827 lt_prog_compiler_static_GCJ='-Bstatic'
15828 fi
15829 ;;
15830
15831 uts4*)
15832 lt_prog_compiler_pic_GCJ='-pic'
15833 lt_prog_compiler_static_GCJ='-Bstatic'
15834 ;;
15835
15836 *)
15837 lt_prog_compiler_can_build_shared_GCJ=no
15838 ;;
15839 esac
15840 fi
15841
15842echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15843echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15844
15845#
15846# Check to make sure the PIC flag actually works.
15847#
15848if test -n "$lt_prog_compiler_pic_GCJ"; then
15849
15850echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15851echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15852if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15853 echo $ECHO_N "(cached) $ECHO_C" >&6
15854else
15855 lt_prog_compiler_pic_works_GCJ=no
15856 ac_outfile=conftest.$ac_objext
15857 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15858 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15859 # Insert the option either (1) after the last *FLAGS variable, or
15860 # (2) before a word containing "conftest.", or (3) at the end.
15861 # Note that $ac_compile itself does not contain backslashes and begins
15862 # with a dollar sign (not a hyphen), so the echo should work correctly.
15863 # The option is referenced via a variable to avoid confusing sed.
15864 lt_compile=`echo "$ac_compile" | $SED \
15865 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15867 -e 's:$: $lt_compiler_flag:'`
homeip.net!davidm34fa1222004-08-17 15:34:28 +000015868 (eval echo "\"\$as_me:15868: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015869 (eval "$lt_compile" 2>conftest.err)
15870 ac_status=$?
15871 cat conftest.err >&5
homeip.net!davidm34fa1222004-08-17 15:34:28 +000015872 echo "$as_me:15872: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015873 if (exit $ac_status) && test -s "$ac_outfile"; then
15874 # The compiler can only warn and ignore the option if not recognized
15875 # So say no if there are warnings
15876 if test ! -s conftest.err; then
15877 lt_prog_compiler_pic_works_GCJ=yes
15878 fi
15879 fi
15880 $rm conftest*
15881
15882fi
15883echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15884echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15885
15886if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15887 case $lt_prog_compiler_pic_GCJ in
15888 "" | " "*) ;;
15889 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15890 esac
15891else
15892 lt_prog_compiler_pic_GCJ=
15893 lt_prog_compiler_can_build_shared_GCJ=no
15894fi
15895
15896fi
15897case "$host_os" in
15898 # For platforms which do not support PIC, -DPIC is meaningless:
15899 *djgpp*)
15900 lt_prog_compiler_pic_GCJ=
15901 ;;
15902 *)
15903 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15904 ;;
15905esac
15906
15907echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15908echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15909if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15911else
15912 lt_cv_prog_compiler_c_o_GCJ=no
15913 $rm -r conftest 2>/dev/null
15914 mkdir conftest
15915 cd conftest
15916 mkdir out
15917 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15918
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015919 lt_compiler_flag="-o out/conftest2.$ac_objext"
15920 # Insert the option either (1) after the last *FLAGS variable, or
15921 # (2) before a word containing "conftest.", or (3) at the end.
15922 # Note that $ac_compile itself does not contain backslashes and begins
15923 # with a dollar sign (not a hyphen), so the echo should work correctly.
15924 lt_compile=`echo "$ac_compile" | $SED \
15925 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15927 -e 's:$: $lt_compiler_flag:'`
homeip.net!davidm34fa1222004-08-17 15:34:28 +000015928 (eval echo "\"\$as_me:15928: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015929 (eval "$lt_compile" 2>out/conftest.err)
15930 ac_status=$?
15931 cat out/conftest.err >&5
homeip.net!davidm34fa1222004-08-17 15:34:28 +000015932 echo "$as_me:15932: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015933 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15934 then
15935 # The compiler can only warn and ignore the option if not recognized
15936 # So say no if there are warnings
15937 if test ! -s out/conftest.err; then
15938 lt_cv_prog_compiler_c_o_GCJ=yes
15939 fi
15940 fi
15941 chmod u+w .
15942 $rm conftest*
15943 # SGI C++ compiler will create directory out/ii_files/ for
15944 # template instantiation
15945 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15946 $rm out/* && rmdir out
15947 cd ..
15948 rmdir conftest
15949 $rm conftest*
15950
15951fi
15952echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15953echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15954
15955
15956hard_links="nottested"
15957if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15958 # do not overwrite the value of need_locks provided by the user
15959 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15960echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15961 hard_links=yes
15962 $rm conftest*
15963 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15964 touch conftest.a
15965 ln conftest.a conftest.b 2>&5 || hard_links=no
15966 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15967 echo "$as_me:$LINENO: result: $hard_links" >&5
15968echo "${ECHO_T}$hard_links" >&6
15969 if test "$hard_links" = no; then
15970 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15971echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15972 need_locks=warn
15973 fi
15974else
15975 need_locks=no
15976fi
15977
15978echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15979echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15980
15981 runpath_var=
15982 allow_undefined_flag_GCJ=
15983 enable_shared_with_static_runtimes_GCJ=no
15984 archive_cmds_GCJ=
15985 archive_expsym_cmds_GCJ=
15986 old_archive_From_new_cmds_GCJ=
15987 old_archive_from_expsyms_cmds_GCJ=
15988 export_dynamic_flag_spec_GCJ=
15989 whole_archive_flag_spec_GCJ=
15990 thread_safe_flag_spec_GCJ=
15991 hardcode_libdir_flag_spec_GCJ=
15992 hardcode_libdir_flag_spec_ld_GCJ=
15993 hardcode_libdir_separator_GCJ=
15994 hardcode_direct_GCJ=no
15995 hardcode_minus_L_GCJ=no
15996 hardcode_shlibpath_var_GCJ=unsupported
15997 link_all_deplibs_GCJ=unknown
15998 hardcode_automatic_GCJ=no
15999 module_cmds_GCJ=
16000 module_expsym_cmds_GCJ=
16001 always_export_symbols_GCJ=no
16002 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16003 # include_expsyms should be a list of space-separated symbols to be *always*
16004 # included in the symbol list
16005 include_expsyms_GCJ=
16006 # exclude_expsyms can be an extended regexp of symbols to exclude
16007 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16008 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16009 # as well as any symbol that contains `d'.
16010 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16011 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16012 # platforms (ab)use it in PIC code, but their linkers get confused if
16013 # the symbol is explicitly referenced. Since portable code cannot
16014 # rely on this symbol name, it's probably fine to never include it in
16015 # preloaded symbol tables.
16016 extract_expsyms_cmds=
16017
16018 case $host_os in
16019 cygwin* | mingw* | pw32*)
16020 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16021 # When not using gcc, we currently assume that we are using
16022 # Microsoft Visual C++.
16023 if test "$GCC" != yes; then
16024 with_gnu_ld=no
16025 fi
16026 ;;
16027 openbsd*)
16028 with_gnu_ld=no
16029 ;;
16030 esac
16031
16032 ld_shlibs_GCJ=yes
16033 if test "$with_gnu_ld" = yes; then
16034 # If archive_cmds runs LD, not CC, wlarc should be empty
16035 wlarc='${wl}'
16036
16037 # See if GNU ld supports shared libraries.
16038 case $host_os in
16039 aix3* | aix4* | aix5*)
16040 # On AIX/PPC, the GNU linker is very broken
16041 if test "$host_cpu" != ia64; then
16042 ld_shlibs_GCJ=no
16043 cat <<EOF 1>&2
16044
16045*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16046*** to be unable to reliably create shared libraries on AIX.
16047*** Therefore, libtool is disabling shared libraries support. If you
16048*** really care for shared libraries, you may want to modify your PATH
16049*** so that a non-GNU linker is found, and then restart.
16050
16051EOF
16052 fi
16053 ;;
16054
16055 amigaos*)
16056 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)'
16057 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16058 hardcode_minus_L_GCJ=yes
16059
16060 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16061 # that the semantics of dynamic libraries on AmigaOS, at least up
16062 # to version 4, is to share data among multiple programs linked
16063 # with the same dynamic library. Since this doesn't match the
16064 # behavior of shared libraries on other platforms, we can't use
16065 # them.
16066 ld_shlibs_GCJ=no
16067 ;;
16068
16069 beos*)
16070 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16071 allow_undefined_flag_GCJ=unsupported
16072 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16073 # support --undefined. This deserves some investigation. FIXME
16074 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16075 else
16076 ld_shlibs_GCJ=no
16077 fi
16078 ;;
16079
16080 cygwin* | mingw* | pw32*)
16081 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16082 # as there is no search path for DLLs.
16083 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16084 allow_undefined_flag_GCJ=unsupported
16085 always_export_symbols_GCJ=no
16086 enable_shared_with_static_runtimes_GCJ=yes
16087 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16088
16089 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16090 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16091 # If the export-symbols file already is a .def file (1st line
16092 # is EXPORTS), use it as is; otherwise, prepend...
16093 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16094 cp $export_symbols $output_objdir/$soname.def;
16095 else
16096 echo EXPORTS > $output_objdir/$soname.def;
16097 cat $export_symbols >> $output_objdir/$soname.def;
16098 fi~
16099 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16100 else
16101 ld_shlibs=no
16102 fi
16103 ;;
16104
hp.com!davidm16230292004-07-15 17:39:59 +000016105 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016106 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16107 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16108 wlarc=
16109 else
16110 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16111 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16112 fi
16113 ;;
16114
16115 solaris* | sysv5*)
16116 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16117 ld_shlibs_GCJ=no
16118 cat <<EOF 1>&2
16119
16120*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16121*** create shared libraries on Solaris systems. Therefore, libtool
16122*** is disabling shared libraries support. We urge you to upgrade GNU
16123*** binutils to release 2.9.1 or newer. Another option is to modify
16124*** your PATH or compiler configuration so that the native linker is
16125*** used, and then restart.
16126
16127EOF
16128 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16129 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16130 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16131 else
16132 ld_shlibs_GCJ=no
16133 fi
16134 ;;
16135
16136 sunos4*)
16137 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16138 wlarc=
16139 hardcode_direct_GCJ=yes
16140 hardcode_shlibpath_var_GCJ=no
16141 ;;
16142
16143 linux*)
hp.com!davidm2de17682004-04-20 16:53:44 +000016144 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016145 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16146 archive_cmds_GCJ="$tmp_archive_cmds"
16147 supports_anon_versioning=no
16148 case `$LD -v 2>/dev/null` in
16149 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16150 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16151 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16152 *\ 2.11.*) ;; # other 2.11 versions
16153 *) supports_anon_versioning=yes ;;
16154 esac
16155 if test $supports_anon_versioning = yes; then
16156 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16157cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16158$echo "local: *; };" >> $output_objdir/$libname.ver~
16159 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16160 else
16161 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16162 fi
hp.com!davidm2de17682004-04-20 16:53:44 +000016163 link_all_deplibs_GCJ=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016164 else
16165 ld_shlibs_GCJ=no
16166 fi
16167 ;;
16168
16169 *)
16170 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16171 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16172 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16173 else
16174 ld_shlibs_GCJ=no
16175 fi
16176 ;;
16177 esac
16178
16179 if test "$ld_shlibs_GCJ" = yes; then
16180 runpath_var=LD_RUN_PATH
16181 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16182 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16183 # ancient GNU ld didn't support --whole-archive et. al.
16184 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16185 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16186 else
16187 whole_archive_flag_spec_GCJ=
16188 fi
16189 fi
16190 else
16191 # PORTME fill in a description of your system's linker (not GNU ld)
16192 case $host_os in
16193 aix3*)
16194 allow_undefined_flag_GCJ=unsupported
16195 always_export_symbols_GCJ=yes
16196 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'
16197 # Note: this linker hardcodes the directories in LIBPATH if there
16198 # are no directories specified by -L.
16199 hardcode_minus_L_GCJ=yes
16200 if test "$GCC" = yes && test -z "$link_static_flag"; then
16201 # Neither direct hardcoding nor static linking is supported with a
16202 # broken collect2.
16203 hardcode_direct_GCJ=unsupported
16204 fi
16205 ;;
16206
16207 aix4* | aix5*)
16208 if test "$host_cpu" = ia64; then
16209 # On IA64, the linker does run time linking by default, so we don't
16210 # have to do anything special.
16211 aix_use_runtimelinking=no
16212 exp_sym_flag='-Bexport'
16213 no_entry_flag=""
16214 else
16215 # If we're using GNU nm, then we don't want the "-C" option.
16216 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16217 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16218 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'
16219 else
16220 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'
16221 fi
16222 aix_use_runtimelinking=no
16223
16224 # Test if we are trying to use run time linking or normal
16225 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16226 # need to do runtime linking.
16227 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16228 for ld_flag in $LDFLAGS; do
16229 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16230 aix_use_runtimelinking=yes
16231 break
16232 fi
16233 done
16234 esac
16235
16236 exp_sym_flag='-bexport'
16237 no_entry_flag='-bnoentry'
16238 fi
16239
16240 # When large executables or shared objects are built, AIX ld can
16241 # have problems creating the table of contents. If linking a library
16242 # or program results in "error TOC overflow" add -mminimal-toc to
16243 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16244 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16245
16246 archive_cmds_GCJ=''
16247 hardcode_direct_GCJ=yes
16248 hardcode_libdir_separator_GCJ=':'
16249 link_all_deplibs_GCJ=yes
16250
16251 if test "$GCC" = yes; then
16252 case $host_os in aix4.012|aix4.012.*)
16253 # We only want to do this on AIX 4.2 and lower, the check
16254 # below for broken collect2 doesn't work under 4.3+
16255 collect2name=`${CC} -print-prog-name=collect2`
16256 if test -f "$collect2name" && \
16257 strings "$collect2name" | grep resolve_lib_name >/dev/null
16258 then
16259 # We have reworked collect2
16260 hardcode_direct_GCJ=yes
16261 else
16262 # We have old collect2
16263 hardcode_direct_GCJ=unsupported
16264 # It fails to find uninstalled libraries when the uninstalled
16265 # path is not listed in the libpath. Setting hardcode_minus_L
16266 # to unsupported forces relinking
16267 hardcode_minus_L_GCJ=yes
16268 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16269 hardcode_libdir_separator_GCJ=
16270 fi
16271 esac
16272 shared_flag='-shared'
16273 else
16274 # not using gcc
16275 if test "$host_cpu" = ia64; then
16276 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16277 # chokes on -Wl,-G. The following line is correct:
16278 shared_flag='-G'
16279 else
16280 if test "$aix_use_runtimelinking" = yes; then
16281 shared_flag='${wl}-G'
16282 else
16283 shared_flag='${wl}-bM:SRE'
16284 fi
16285 fi
16286 fi
16287
16288 # It seems that -bexpall does not export symbols beginning with
16289 # underscore (_), so it is better to generate a list of symbols to export.
16290 always_export_symbols_GCJ=yes
16291 if test "$aix_use_runtimelinking" = yes; then
16292 # Warning - without using the other runtime loading flags (-brtl),
16293 # -berok will link without error, but may produce a broken library.
16294 allow_undefined_flag_GCJ='-berok'
16295 # Determine the default libpath from the value encoded in an empty executable.
16296 cat >conftest.$ac_ext <<_ACEOF
16297/* confdefs.h. */
16298_ACEOF
16299cat confdefs.h >>conftest.$ac_ext
16300cat >>conftest.$ac_ext <<_ACEOF
16301/* end confdefs.h. */
16302
16303int
16304main ()
16305{
16306
16307 ;
16308 return 0;
16309}
16310_ACEOF
16311rm -f conftest.$ac_objext conftest$ac_exeext
16312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016313 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016314 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016315 grep -v '^ *+' conftest.er1 >conftest.err
16316 rm -f conftest.er1
16317 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322 (eval $ac_try) 2>&5
16323 ac_status=$?
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; } &&
16326 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16328 (eval $ac_try) 2>&5
16329 ac_status=$?
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; }; then
16332
16333aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16334}'`
16335# Check for a 64-bit object if we didn't find anything.
16336if 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; }
16337}'`; fi
16338else
16339 echo "$as_me: failed program was:" >&5
16340sed 's/^/| /' conftest.$ac_ext >&5
16341
16342fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016343rm -f conftest.err conftest.$ac_objext \
16344 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016345if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16346
16347 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16348 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"
16349 else
16350 if test "$host_cpu" = ia64; then
16351 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16352 allow_undefined_flag_GCJ="-z nodefs"
16353 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"
16354 else
16355 # Determine the default libpath from the value encoded in an empty executable.
16356 cat >conftest.$ac_ext <<_ACEOF
16357/* confdefs.h. */
16358_ACEOF
16359cat confdefs.h >>conftest.$ac_ext
16360cat >>conftest.$ac_ext <<_ACEOF
16361/* end confdefs.h. */
16362
16363int
16364main ()
16365{
16366
16367 ;
16368 return 0;
16369}
16370_ACEOF
16371rm -f conftest.$ac_objext conftest$ac_exeext
16372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016373 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016374 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016375 grep -v '^ *+' conftest.er1 >conftest.err
16376 rm -f conftest.er1
16377 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16382 (eval $ac_try) 2>&5
16383 ac_status=$?
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); }; } &&
16386 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16388 (eval $ac_try) 2>&5
16389 ac_status=$?
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; }; then
16392
16393aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16394}'`
16395# Check for a 64-bit object if we didn't find anything.
16396if 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; }
16397}'`; fi
16398else
16399 echo "$as_me: failed program was:" >&5
16400sed 's/^/| /' conftest.$ac_ext >&5
16401
16402fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016403rm -f conftest.err conftest.$ac_objext \
16404 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016405if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16406
16407 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16408 # Warning - without using the other run time loading flags,
16409 # -berok will link without error, but may produce a broken library.
16410 no_undefined_flag_GCJ=' ${wl}-bernotok'
16411 allow_undefined_flag_GCJ=' ${wl}-berok'
16412 # -bexpall does not export symbols beginning with underscore (_)
16413 always_export_symbols_GCJ=yes
16414 # Exported symbols can be pulled into shared objects from archives
16415 whole_archive_flag_spec_GCJ=' '
16416 archive_cmds_need_lc_GCJ=yes
16417 # This is similar to how AIX traditionally builds it's shared libraries.
16418 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'
16419 fi
16420 fi
16421 ;;
16422
16423 amigaos*)
16424 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)'
16425 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16426 hardcode_minus_L_GCJ=yes
16427 # see comment about different semantics on the GNU ld section
16428 ld_shlibs_GCJ=no
16429 ;;
16430
16431 bsdi4*)
16432 export_dynamic_flag_spec_GCJ=-rdynamic
16433 ;;
16434
16435 cygwin* | mingw* | pw32*)
16436 # When not using gcc, we currently assume that we are using
16437 # Microsoft Visual C++.
16438 # hardcode_libdir_flag_spec is actually meaningless, as there is
16439 # no search path for DLLs.
16440 hardcode_libdir_flag_spec_GCJ=' '
16441 allow_undefined_flag_GCJ=unsupported
16442 # Tell ltmain to make .lib files, not .a files.
16443 libext=lib
16444 # Tell ltmain to make .dll files, not .so files.
hp.com!davidm2de17682004-04-20 16:53:44 +000016445 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016446 # FIXME: Setting linknames here is a bad hack.
16447 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16448 # The linker will automatically build a .lib file if we build a DLL.
16449 old_archive_From_new_cmds_GCJ='true'
16450 # FIXME: Should let the user specify the lib program.
16451 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16452 fix_srcfile_path='`cygpath -w "$srcfile"`'
16453 enable_shared_with_static_runtimes_GCJ=yes
16454 ;;
16455
16456 darwin* | rhapsody*)
16457 if test "$GXX" = yes ; then
16458 archive_cmds_need_lc_GCJ=no
16459 case "$host_os" in
16460 rhapsody* | darwin1.[012])
16461 allow_undefined_flag_GCJ='-undefined suppress'
16462 ;;
16463 *) # Darwin 1.3 on
16464 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16465 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16466 else
16467 case ${MACOSX_DEPLOYMENT_TARGET} in
16468 10.[012])
16469 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16470 ;;
16471 10.*)
16472 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16473 ;;
16474 esac
16475 fi
16476 ;;
16477 esac
16478 lt_int_apple_cc_single_mod=no
16479 output_verbose_link_cmd='echo'
16480 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16481 lt_int_apple_cc_single_mod=yes
16482 fi
16483 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16484 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16485 else
16486 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'
16487 fi
16488 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16489 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16490 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16491 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}'
16492 else
16493 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}'
16494 fi
16495 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}'
16496 hardcode_direct_GCJ=no
16497 hardcode_automatic_GCJ=yes
16498 hardcode_shlibpath_var_GCJ=unsupported
16499 whole_archive_flag_spec_GCJ='-all_load $convenience'
16500 link_all_deplibs_GCJ=yes
16501 else
16502 ld_shlibs_GCJ=no
16503 fi
16504 ;;
16505
16506 dgux*)
16507 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16508 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16509 hardcode_shlibpath_var_GCJ=no
16510 ;;
16511
16512 freebsd1*)
16513 ld_shlibs_GCJ=no
16514 ;;
16515
16516 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16517 # support. Future versions do this automatically, but an explicit c++rt0.o
16518 # does not break anything, and helps significantly (at the cost of a little
16519 # extra space).
16520 freebsd2.2*)
16521 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16522 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16523 hardcode_direct_GCJ=yes
16524 hardcode_shlibpath_var_GCJ=no
16525 ;;
16526
16527 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16528 freebsd2*)
16529 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16530 hardcode_direct_GCJ=yes
16531 hardcode_minus_L_GCJ=yes
16532 hardcode_shlibpath_var_GCJ=no
16533 ;;
16534
16535 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16536 freebsd* | kfreebsd*-gnu)
16537 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16538 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16539 hardcode_direct_GCJ=yes
16540 hardcode_shlibpath_var_GCJ=no
16541 ;;
16542
16543 hpux9*)
16544 if test "$GCC" = yes; then
16545 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'
16546 else
16547 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'
16548 fi
16549 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16550 hardcode_libdir_separator_GCJ=:
16551 hardcode_direct_GCJ=yes
16552
16553 # hardcode_minus_L: Not really in the search PATH,
16554 # but as the default location of the library.
16555 hardcode_minus_L_GCJ=yes
16556 export_dynamic_flag_spec_GCJ='${wl}-E'
16557 ;;
16558
16559 hpux10* | hpux11*)
16560 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16561 case "$host_cpu" in
16562 hppa*64*|ia64*)
16563 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16564 ;;
16565 *)
16566 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16567 ;;
16568 esac
16569 else
16570 case "$host_cpu" in
16571 hppa*64*|ia64*)
16572 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16573 ;;
16574 *)
16575 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16576 ;;
16577 esac
16578 fi
16579 if test "$with_gnu_ld" = no; then
16580 case "$host_cpu" in
16581 hppa*64*)
16582 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16583 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16584 hardcode_libdir_separator_GCJ=:
16585 hardcode_direct_GCJ=no
16586 hardcode_shlibpath_var_GCJ=no
16587 ;;
16588 ia64*)
16589 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16590 hardcode_direct_GCJ=no
16591 hardcode_shlibpath_var_GCJ=no
16592
16593 # hardcode_minus_L: Not really in the search PATH,
16594 # but as the default location of the library.
16595 hardcode_minus_L_GCJ=yes
16596 ;;
16597 *)
16598 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16599 hardcode_libdir_separator_GCJ=:
16600 hardcode_direct_GCJ=yes
16601 export_dynamic_flag_spec_GCJ='${wl}-E'
16602
16603 # hardcode_minus_L: Not really in the search PATH,
16604 # but as the default location of the library.
16605 hardcode_minus_L_GCJ=yes
16606 ;;
16607 esac
16608 fi
16609 ;;
16610
16611 irix5* | irix6* | nonstopux*)
16612 if test "$GCC" = yes; then
16613 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'
16614 else
16615 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'
16616 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16617 fi
16618 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16619 hardcode_libdir_separator_GCJ=:
16620 link_all_deplibs_GCJ=yes
16621 ;;
16622
hp.com!davidm16230292004-07-15 17:39:59 +000016623 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016624 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16625 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16626 else
16627 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16628 fi
16629 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16630 hardcode_direct_GCJ=yes
16631 hardcode_shlibpath_var_GCJ=no
16632 ;;
16633
16634 newsos6)
16635 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16636 hardcode_direct_GCJ=yes
16637 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16638 hardcode_libdir_separator_GCJ=:
16639 hardcode_shlibpath_var_GCJ=no
16640 ;;
16641
16642 openbsd*)
16643 hardcode_direct_GCJ=yes
16644 hardcode_shlibpath_var_GCJ=no
16645 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16646 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16647 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16648 export_dynamic_flag_spec_GCJ='${wl}-E'
16649 else
16650 case $host_os in
16651 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16652 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16653 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16654 ;;
16655 *)
16656 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16657 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16658 ;;
16659 esac
16660 fi
16661 ;;
16662
16663 os2*)
16664 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16665 hardcode_minus_L_GCJ=yes
16666 allow_undefined_flag_GCJ=unsupported
16667 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'
16668 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16669 ;;
16670
16671 osf3*)
16672 if test "$GCC" = yes; then
16673 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16674 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'
16675 else
16676 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16677 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'
16678 fi
16679 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16680 hardcode_libdir_separator_GCJ=:
16681 ;;
16682
16683 osf4* | osf5*) # as osf3* with the addition of -msym flag
16684 if test "$GCC" = yes; then
16685 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16686 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'
16687 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16688 else
16689 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16690 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'
16691 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~
16692 $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'
16693
16694 # Both c and cxx compiler support -rpath directly
16695 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16696 fi
16697 hardcode_libdir_separator_GCJ=:
16698 ;;
16699
16700 sco3.2v5*)
16701 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16702 hardcode_shlibpath_var_GCJ=no
16703 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16704 runpath_var=LD_RUN_PATH
16705 hardcode_runpath_var=yes
16706 ;;
16707
16708 solaris*)
16709 no_undefined_flag_GCJ=' -z text'
16710 if test "$GCC" = yes; then
16711 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16712 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16713 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16714 else
16715 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16716 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16717 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16718 fi
16719 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16720 hardcode_shlibpath_var_GCJ=no
16721 case $host_os in
16722 solaris2.[0-5] | solaris2.[0-5].*) ;;
16723 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16724 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16725 esac
16726 link_all_deplibs_GCJ=yes
16727 ;;
16728
16729 sunos4*)
16730 if test "x$host_vendor" = xsequent; then
16731 # Use $CC to link under sequent, because it throws in some extra .o
16732 # files that make .init and .fini sections work.
16733 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16734 else
16735 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16736 fi
16737 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16738 hardcode_direct_GCJ=yes
16739 hardcode_minus_L_GCJ=yes
16740 hardcode_shlibpath_var_GCJ=no
16741 ;;
16742
16743 sysv4)
16744 case $host_vendor in
16745 sni)
16746 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16747 hardcode_direct_GCJ=yes # is this really true???
16748 ;;
16749 siemens)
16750 ## LD is ld it makes a PLAMLIB
16751 ## CC just makes a GrossModule.
16752 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16753 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16754 hardcode_direct_GCJ=no
16755 ;;
16756 motorola)
16757 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16758 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16759 ;;
16760 esac
16761 runpath_var='LD_RUN_PATH'
16762 hardcode_shlibpath_var_GCJ=no
16763 ;;
16764
16765 sysv4.3*)
16766 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16767 hardcode_shlibpath_var_GCJ=no
16768 export_dynamic_flag_spec_GCJ='-Bexport'
16769 ;;
16770
16771 sysv4*MP*)
16772 if test -d /usr/nec; then
16773 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16774 hardcode_shlibpath_var_GCJ=no
16775 runpath_var=LD_RUN_PATH
16776 hardcode_runpath_var=yes
16777 ld_shlibs_GCJ=yes
16778 fi
16779 ;;
16780
16781 sysv4.2uw2*)
16782 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16783 hardcode_direct_GCJ=yes
16784 hardcode_minus_L_GCJ=no
16785 hardcode_shlibpath_var_GCJ=no
16786 hardcode_runpath_var=yes
16787 runpath_var=LD_RUN_PATH
16788 ;;
16789
16790 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16791 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16792 if test "$GCC" = yes; then
16793 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16794 else
16795 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16796 fi
16797 runpath_var='LD_RUN_PATH'
16798 hardcode_shlibpath_var_GCJ=no
16799 ;;
16800
16801 sysv5*)
16802 no_undefined_flag_GCJ=' -z text'
16803 # $CC -shared without GNU ld will not create a library from C++
16804 # object files and a static libstdc++, better avoid it by now
16805 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16806 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16807 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16808 hardcode_libdir_flag_spec_GCJ=
16809 hardcode_shlibpath_var_GCJ=no
16810 runpath_var='LD_RUN_PATH'
16811 ;;
16812
16813 uts4*)
16814 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16815 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16816 hardcode_shlibpath_var_GCJ=no
16817 ;;
16818
16819 *)
16820 ld_shlibs_GCJ=no
16821 ;;
16822 esac
16823 fi
16824
16825echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16826echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16827test "$ld_shlibs_GCJ" = no && can_build_shared=no
16828
16829variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16830if test "$GCC" = yes; then
16831 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16832fi
16833
16834#
16835# Do we need to explicitly link libc?
16836#
16837case "x$archive_cmds_need_lc_GCJ" in
16838x|xyes)
16839 # Assume -lc should be added
16840 archive_cmds_need_lc_GCJ=yes
16841
16842 if test "$enable_shared" = yes && test "$GCC" = yes; then
16843 case $archive_cmds_GCJ in
16844 *'~'*)
16845 # FIXME: we may have to deal with multi-command sequences.
16846 ;;
16847 '$CC '*)
16848 # Test whether the compiler implicitly links with -lc since on some
16849 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16850 # to ld, don't add -lc before -lgcc.
16851 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16852echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16853 $rm conftest*
16854 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16855
16856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16857 (eval $ac_compile) 2>&5
16858 ac_status=$?
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } 2>conftest.err; then
16861 soname=conftest
16862 lib=conftest
16863 libobjs=conftest.$ac_objext
16864 deplibs=
16865 wl=$lt_prog_compiler_wl_GCJ
16866 compiler_flags=-v
16867 linker_flags=-v
16868 verstring=
16869 output_objdir=.
16870 libname=conftest
16871 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16872 allow_undefined_flag_GCJ=
16873 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16874 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16875 ac_status=$?
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }
16878 then
16879 archive_cmds_need_lc_GCJ=no
16880 else
16881 archive_cmds_need_lc_GCJ=yes
16882 fi
16883 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16884 else
16885 cat conftest.err 1>&5
16886 fi
16887 $rm conftest*
16888 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16889echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16890 ;;
16891 esac
16892 fi
16893 ;;
16894esac
16895
16896echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16897echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16898library_names_spec=
16899libname_spec='lib$name'
16900soname_spec=
hp.com!davidm2de17682004-04-20 16:53:44 +000016901shrext_cmds=".so"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016902postinstall_cmds=
16903postuninstall_cmds=
16904finish_cmds=
16905finish_eval=
16906shlibpath_var=
16907shlibpath_overrides_runpath=unknown
16908version_type=none
16909dynamic_linker="$host_os ld.so"
16910sys_lib_dlsearch_path_spec="/lib /usr/lib"
16911if test "$GCC" = yes; then
16912 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16913 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16914 # if the path contains ";" then we assume it to be the separator
16915 # otherwise default to the standard path separator (i.e. ":") - it is
16916 # assumed that no part of a normal pathname contains ";" but that should
16917 # okay in the real world where ";" in dirpaths is itself problematic.
16918 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16919 else
16920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16921 fi
16922else
16923 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16924fi
16925need_lib_prefix=unknown
16926hardcode_into_libs=no
16927
16928# when you set need_version to no, make sure it does not cause -set_version
16929# flags to be left without arguments
16930need_version=unknown
16931
16932case $host_os in
16933aix3*)
16934 version_type=linux
16935 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16936 shlibpath_var=LIBPATH
16937
16938 # AIX 3 has no versioning support, so we append a major version to the name.
16939 soname_spec='${libname}${release}${shared_ext}$major'
16940 ;;
16941
16942aix4* | aix5*)
16943 version_type=linux
16944 need_lib_prefix=no
16945 need_version=no
16946 hardcode_into_libs=yes
16947 if test "$host_cpu" = ia64; then
16948 # AIX 5 supports IA64
16949 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16950 shlibpath_var=LD_LIBRARY_PATH
16951 else
16952 # With GCC up to 2.95.x, collect2 would create an import file
16953 # for dependence libraries. The import file would start with
16954 # the line `#! .'. This would cause the generated library to
16955 # depend on `.', always an invalid library. This was fixed in
16956 # development snapshots of GCC prior to 3.0.
16957 case $host_os in
16958 aix4 | aix4.[01] | aix4.[01].*)
16959 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16960 echo ' yes '
16961 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16962 :
16963 else
16964 can_build_shared=no
16965 fi
16966 ;;
16967 esac
16968 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16969 # soname into executable. Probably we can add versioning support to
16970 # collect2, so additional links can be useful in future.
16971 if test "$aix_use_runtimelinking" = yes; then
16972 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16973 # instead of lib<name>.a to let people know that these are not
16974 # typical AIX shared libraries.
16975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976 else
16977 # We preserve .a as extension for shared libraries through AIX4.2
16978 # and later when we are not doing run time linking.
16979 library_names_spec='${libname}${release}.a $libname.a'
16980 soname_spec='${libname}${release}${shared_ext}$major'
16981 fi
16982 shlibpath_var=LIBPATH
16983 fi
16984 ;;
16985
16986amigaos*)
16987 library_names_spec='$libname.ixlibrary $libname.a'
16988 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16989 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'
16990 ;;
16991
16992beos*)
16993 library_names_spec='${libname}${shared_ext}'
16994 dynamic_linker="$host_os ld.so"
16995 shlibpath_var=LIBRARY_PATH
16996 ;;
16997
16998bsdi4*)
16999 version_type=linux
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17004 shlibpath_var=LD_LIBRARY_PATH
17005 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17006 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17007 # the default ld.so.conf also contains /usr/contrib/lib and
17008 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17009 # libtool to hard-code these into programs
17010 ;;
17011
17012cygwin* | mingw* | pw32*)
17013 version_type=windows
hp.com!davidm2de17682004-04-20 16:53:44 +000017014 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017015 need_version=no
17016 need_lib_prefix=no
17017
17018 case $GCC,$host_os in
17019 yes,cygwin* | yes,mingw* | yes,pw32*)
17020 library_names_spec='$libname.dll.a'
17021 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17022 postinstall_cmds='base_file=`basename \${file}`~
17023 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17024 dldir=$destdir/`dirname \$dlpath`~
17025 test -d \$dldir || mkdir -p \$dldir~
17026 $install_prog $dir/$dlname \$dldir/$dlname'
17027 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17028 dlpath=$dir/\$dldll~
17029 $rm \$dlpath'
17030 shlibpath_overrides_runpath=yes
17031
17032 case $host_os in
17033 cygwin*)
17034 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17035 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17036 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17037 ;;
17038 mingw*)
17039 # MinGW DLLs use traditional 'lib' prefix
17040 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17041 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17042 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17043 # It is most probably a Windows format PATH printed by
17044 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17045 # path with ; separators, and with drive letters. We can handle the
17046 # drive letters (cygwin fileutils understands them), so leave them,
17047 # especially as we might pass files found there to a mingw objdump,
17048 # which wouldn't understand a cygwinified path. Ahh.
17049 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17050 else
17051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17052 fi
17053 ;;
17054 pw32*)
17055 # pw32 DLLs use 'pw' prefix rather than 'lib'
17056 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17057 ;;
17058 esac
17059 ;;
17060
17061 *)
17062 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17063 ;;
17064 esac
17065 dynamic_linker='Win32 ld.exe'
17066 # FIXME: first we should search . and the directory the executable is in
17067 shlibpath_var=PATH
17068 ;;
17069
17070darwin* | rhapsody*)
17071 dynamic_linker="$host_os dyld"
17072 version_type=darwin
17073 need_lib_prefix=no
17074 need_version=no
17075 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17076 soname_spec='${libname}${release}${major}$shared_ext'
17077 shlibpath_overrides_runpath=yes
17078 shlibpath_var=DYLD_LIBRARY_PATH
hp.com!davidm2de17682004-04-20 16:53:44 +000017079 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017080 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17081 if test "$GCC" = yes; then
17082 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"`
17083 else
17084 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17085 fi
17086 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17087 ;;
17088
17089dgux*)
17090 version_type=linux
17091 need_lib_prefix=no
17092 need_version=no
17093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17094 soname_spec='${libname}${release}${shared_ext}$major'
17095 shlibpath_var=LD_LIBRARY_PATH
17096 ;;
17097
17098freebsd1*)
17099 dynamic_linker=no
17100 ;;
17101
17102kfreebsd*-gnu)
17103 version_type=linux
17104 need_lib_prefix=no
17105 need_version=no
17106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17107 soname_spec='${libname}${release}${shared_ext}$major'
17108 shlibpath_var=LD_LIBRARY_PATH
17109 shlibpath_overrides_runpath=no
17110 hardcode_into_libs=yes
17111 dynamic_linker='GNU ld.so'
17112 ;;
17113
17114freebsd*)
17115 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17116 version_type=freebsd-$objformat
17117 case $version_type in
17118 freebsd-elf*)
17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17120 need_version=no
17121 need_lib_prefix=no
17122 ;;
17123 freebsd-*)
17124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17125 need_version=yes
17126 ;;
17127 esac
17128 shlibpath_var=LD_LIBRARY_PATH
17129 case $host_os in
17130 freebsd2*)
17131 shlibpath_overrides_runpath=yes
17132 ;;
17133 freebsd3.01* | freebsdelf3.01*)
17134 shlibpath_overrides_runpath=yes
17135 hardcode_into_libs=yes
17136 ;;
17137 *) # from 3.2 on
17138 shlibpath_overrides_runpath=no
17139 hardcode_into_libs=yes
17140 ;;
17141 esac
17142 ;;
17143
17144gnu*)
17145 version_type=linux
17146 need_lib_prefix=no
17147 need_version=no
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17149 soname_spec='${libname}${release}${shared_ext}$major'
17150 shlibpath_var=LD_LIBRARY_PATH
17151 hardcode_into_libs=yes
17152 ;;
17153
17154hpux9* | hpux10* | hpux11*)
17155 # Give a soname corresponding to the major version so that dld.sl refuses to
17156 # link against other versions.
17157 version_type=sunos
17158 need_lib_prefix=no
17159 need_version=no
17160 case "$host_cpu" in
17161 ia64*)
hp.com!davidm2de17682004-04-20 16:53:44 +000017162 shrext_cmds='.so'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017163 hardcode_into_libs=yes
17164 dynamic_linker="$host_os dld.so"
17165 shlibpath_var=LD_LIBRARY_PATH
17166 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17168 soname_spec='${libname}${release}${shared_ext}$major'
17169 if test "X$HPUX_IA64_MODE" = X32; then
17170 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17171 else
17172 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17173 fi
17174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17175 ;;
17176 hppa*64*)
hp.com!davidm2de17682004-04-20 16:53:44 +000017177 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017178 hardcode_into_libs=yes
17179 dynamic_linker="$host_os dld.sl"
17180 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17181 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17183 soname_spec='${libname}${release}${shared_ext}$major'
17184 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17186 ;;
17187 *)
hp.com!davidm2de17682004-04-20 16:53:44 +000017188 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017189 dynamic_linker="$host_os dld.sl"
17190 shlibpath_var=SHLIB_PATH
17191 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17193 soname_spec='${libname}${release}${shared_ext}$major'
17194 ;;
17195 esac
17196 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17197 postinstall_cmds='chmod 555 $lib'
17198 ;;
17199
17200irix5* | irix6* | nonstopux*)
17201 case $host_os in
17202 nonstopux*) version_type=nonstopux ;;
17203 *)
17204 if test "$lt_cv_prog_gnu_ld" = yes; then
17205 version_type=linux
17206 else
17207 version_type=irix
17208 fi ;;
17209 esac
17210 need_lib_prefix=no
17211 need_version=no
17212 soname_spec='${libname}${release}${shared_ext}$major'
17213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17214 case $host_os in
17215 irix5* | nonstopux*)
17216 libsuff= shlibsuff=
17217 ;;
17218 *)
17219 case $LD in # libtool.m4 will add one of these switches to LD
17220 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17221 libsuff= shlibsuff= libmagic=32-bit;;
17222 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17223 libsuff=32 shlibsuff=N32 libmagic=N32;;
17224 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17225 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17226 *) libsuff= shlibsuff= libmagic=never-match;;
17227 esac
17228 ;;
17229 esac
17230 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17231 shlibpath_overrides_runpath=no
17232 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17233 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17234 hardcode_into_libs=yes
17235 ;;
17236
17237# No shared lib support for Linux oldld, aout, or coff.
17238linux*oldld* | linux*aout* | linux*coff*)
17239 dynamic_linker=no
17240 ;;
17241
17242# This must be Linux ELF.
17243linux*)
17244 version_type=linux
17245 need_lib_prefix=no
17246 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17250 shlibpath_var=LD_LIBRARY_PATH
17251 shlibpath_overrides_runpath=no
17252 # This implies no fast_install, which is unacceptable.
17253 # Some rework will be needed to allow for fast_install
17254 # before this can be enabled.
17255 hardcode_into_libs=yes
17256
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017257 # Append ld.so.conf contents to the search path
17258 if test -f /etc/ld.so.conf; then
hp.com!davidm2de17682004-04-20 16:53:44 +000017259 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17260 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017261 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017262
17263 # We used to test for /lib/ld.so.1 and disable shared libraries on
17264 # powerpc, because MkLinux only supported shared libraries with the
17265 # GNU dynamic linker. Since this was broken with cross compilers,
17266 # most powerpc-linux boxes support dynamic linking these days and
17267 # people can always --disable-shared, the test was removed, and we
17268 # assume the GNU/Linux dynamic linker is in use.
17269 dynamic_linker='GNU/Linux ld.so'
17270 ;;
17271
hp.com!davidm16230292004-07-15 17:39:59 +000017272netbsdelf*-gnu)
17273 version_type=linux
17274 need_lib_prefix=no
17275 need_version=no
17276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17277 soname_spec='${libname}${release}${shared_ext}$major'
17278 shlibpath_var=LD_LIBRARY_PATH
17279 shlibpath_overrides_runpath=no
17280 hardcode_into_libs=yes
17281 dynamic_linker='NetBSD ld.elf_so'
17282 ;;
17283
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017284knetbsd*-gnu)
17285 version_type=linux
17286 need_lib_prefix=no
17287 need_version=no
17288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17289 soname_spec='${libname}${release}${shared_ext}$major'
17290 shlibpath_var=LD_LIBRARY_PATH
17291 shlibpath_overrides_runpath=no
17292 hardcode_into_libs=yes
17293 dynamic_linker='GNU ld.so'
17294 ;;
17295
17296netbsd*)
17297 version_type=sunos
17298 need_lib_prefix=no
17299 need_version=no
17300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17303 dynamic_linker='NetBSD (a.out) ld.so'
17304 else
hp.com!davidm2de17682004-04-20 16:53:44 +000017305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017306 soname_spec='${libname}${release}${shared_ext}$major'
17307 dynamic_linker='NetBSD ld.elf_so'
17308 fi
17309 shlibpath_var=LD_LIBRARY_PATH
17310 shlibpath_overrides_runpath=yes
17311 hardcode_into_libs=yes
17312 ;;
17313
17314newsos6)
17315 version_type=linux
17316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17317 shlibpath_var=LD_LIBRARY_PATH
17318 shlibpath_overrides_runpath=yes
17319 ;;
17320
17321nto-qnx*)
17322 version_type=linux
17323 need_lib_prefix=no
17324 need_version=no
17325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17326 soname_spec='${libname}${release}${shared_ext}$major'
17327 shlibpath_var=LD_LIBRARY_PATH
17328 shlibpath_overrides_runpath=yes
17329 ;;
17330
17331openbsd*)
17332 version_type=sunos
17333 need_lib_prefix=no
17334 need_version=yes
17335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17337 shlibpath_var=LD_LIBRARY_PATH
17338 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17339 case $host_os in
17340 openbsd2.[89] | openbsd2.[89].*)
17341 shlibpath_overrides_runpath=no
17342 ;;
17343 *)
17344 shlibpath_overrides_runpath=yes
17345 ;;
17346 esac
17347 else
17348 shlibpath_overrides_runpath=yes
17349 fi
17350 ;;
17351
17352os2*)
17353 libname_spec='$name'
hp.com!davidm2de17682004-04-20 16:53:44 +000017354 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017355 need_lib_prefix=no
17356 library_names_spec='$libname${shared_ext} $libname.a'
17357 dynamic_linker='OS/2 ld.exe'
17358 shlibpath_var=LIBPATH
17359 ;;
17360
17361osf3* | osf4* | osf5*)
17362 version_type=osf
17363 need_lib_prefix=no
17364 need_version=no
17365 soname_spec='${libname}${release}${shared_ext}$major'
17366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17367 shlibpath_var=LD_LIBRARY_PATH
17368 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17369 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17370 ;;
17371
17372sco3.2v5*)
17373 version_type=osf
17374 soname_spec='${libname}${release}${shared_ext}$major'
17375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17376 shlibpath_var=LD_LIBRARY_PATH
17377 ;;
17378
17379solaris*)
17380 version_type=linux
17381 need_lib_prefix=no
17382 need_version=no
17383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17384 soname_spec='${libname}${release}${shared_ext}$major'
17385 shlibpath_var=LD_LIBRARY_PATH
17386 shlibpath_overrides_runpath=yes
17387 hardcode_into_libs=yes
17388 # ldd complains unless libraries are executable
17389 postinstall_cmds='chmod +x $lib'
17390 ;;
17391
17392sunos4*)
17393 version_type=sunos
17394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17395 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17396 shlibpath_var=LD_LIBRARY_PATH
17397 shlibpath_overrides_runpath=yes
17398 if test "$with_gnu_ld" = yes; then
17399 need_lib_prefix=no
17400 fi
17401 need_version=yes
17402 ;;
17403
17404sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17405 version_type=linux
17406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17407 soname_spec='${libname}${release}${shared_ext}$major'
17408 shlibpath_var=LD_LIBRARY_PATH
17409 case $host_vendor in
17410 sni)
17411 shlibpath_overrides_runpath=no
17412 need_lib_prefix=no
17413 export_dynamic_flag_spec='${wl}-Blargedynsym'
17414 runpath_var=LD_RUN_PATH
17415 ;;
17416 siemens)
17417 need_lib_prefix=no
17418 ;;
17419 motorola)
17420 need_lib_prefix=no
17421 need_version=no
17422 shlibpath_overrides_runpath=no
17423 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17424 ;;
17425 esac
17426 ;;
17427
17428sysv4*MP*)
17429 if test -d /usr/nec ;then
17430 version_type=linux
17431 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17432 soname_spec='$libname${shared_ext}.$major'
17433 shlibpath_var=LD_LIBRARY_PATH
17434 fi
17435 ;;
17436
17437uts4*)
17438 version_type=linux
17439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17440 soname_spec='${libname}${release}${shared_ext}$major'
17441 shlibpath_var=LD_LIBRARY_PATH
17442 ;;
17443
17444*)
17445 dynamic_linker=no
17446 ;;
17447esac
17448echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17449echo "${ECHO_T}$dynamic_linker" >&6
17450test "$dynamic_linker" = no && can_build_shared=no
17451
17452echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17453echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17454hardcode_action_GCJ=
17455if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17456 test -n "$runpath_var GCJ" || \
17457 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17458
17459 # We can hardcode non-existant directories.
17460 if test "$hardcode_direct_GCJ" != no &&
17461 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17462 # have to relink, otherwise we might link with an installed library
17463 # when we should be linking with a yet-to-be-installed one
17464 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17465 test "$hardcode_minus_L_GCJ" != no; then
17466 # Linking always hardcodes the temporary library directory.
17467 hardcode_action_GCJ=relink
17468 else
17469 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17470 hardcode_action_GCJ=immediate
17471 fi
17472else
17473 # We cannot hardcode anything, or else we can only hardcode existing
17474 # directories.
17475 hardcode_action_GCJ=unsupported
17476fi
17477echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17478echo "${ECHO_T}$hardcode_action_GCJ" >&6
17479
17480if test "$hardcode_action_GCJ" = relink; then
17481 # Fast installation is not supported
17482 enable_fast_install=no
17483elif test "$shlibpath_overrides_runpath" = yes ||
17484 test "$enable_shared" = no; then
17485 # Fast installation is not necessary
17486 enable_fast_install=needless
17487fi
17488
17489striplib=
17490old_striplib=
17491echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17492echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17493if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17494 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17495 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17496 echo "$as_me:$LINENO: result: yes" >&5
17497echo "${ECHO_T}yes" >&6
17498else
17499# FIXME - insert some real tests, host_os isn't really good enough
17500 case $host_os in
17501 darwin*)
17502 if test -n "$STRIP" ; then
17503 striplib="$STRIP -x"
17504 echo "$as_me:$LINENO: result: yes" >&5
17505echo "${ECHO_T}yes" >&6
17506 else
17507 echo "$as_me:$LINENO: result: no" >&5
17508echo "${ECHO_T}no" >&6
17509fi
17510 ;;
17511 *)
17512 echo "$as_me:$LINENO: result: no" >&5
17513echo "${ECHO_T}no" >&6
17514 ;;
17515 esac
17516fi
17517
17518if test "x$enable_dlopen" != xyes; then
17519 enable_dlopen=unknown
17520 enable_dlopen_self=unknown
17521 enable_dlopen_self_static=unknown
17522else
17523 lt_cv_dlopen=no
17524 lt_cv_dlopen_libs=
17525
17526 case $host_os in
17527 beos*)
17528 lt_cv_dlopen="load_add_on"
17529 lt_cv_dlopen_libs=
17530 lt_cv_dlopen_self=yes
17531 ;;
17532
17533 mingw* | pw32*)
17534 lt_cv_dlopen="LoadLibrary"
17535 lt_cv_dlopen_libs=
17536 ;;
17537
17538 cygwin*)
17539 lt_cv_dlopen="dlopen"
17540 lt_cv_dlopen_libs=
17541 ;;
17542
17543 darwin*)
17544 # if libdl is installed we need to link against it
17545 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17546echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17547if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17548 echo $ECHO_N "(cached) $ECHO_C" >&6
17549else
17550 ac_check_lib_save_LIBS=$LIBS
17551LIBS="-ldl $LIBS"
17552cat >conftest.$ac_ext <<_ACEOF
17553/* confdefs.h. */
17554_ACEOF
17555cat confdefs.h >>conftest.$ac_ext
17556cat >>conftest.$ac_ext <<_ACEOF
17557/* end confdefs.h. */
17558
17559/* Override any gcc2 internal prototype to avoid an error. */
17560#ifdef __cplusplus
17561extern "C"
17562#endif
17563/* We use char because int might match the return type of a gcc2
17564 builtin and then its argument prototype would still apply. */
17565char dlopen ();
17566int
17567main ()
17568{
17569dlopen ();
17570 ;
17571 return 0;
17572}
17573_ACEOF
17574rm -f conftest.$ac_objext conftest$ac_exeext
17575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017576 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017577 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017578 grep -v '^ *+' conftest.er1 >conftest.err
17579 rm -f conftest.er1
17580 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17586 ac_status=$?
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; } &&
17589 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17592 ac_status=$?
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
17595 ac_cv_lib_dl_dlopen=yes
17596else
17597 echo "$as_me: failed program was:" >&5
17598sed 's/^/| /' conftest.$ac_ext >&5
17599
17600ac_cv_lib_dl_dlopen=no
17601fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017602rm -f conftest.err conftest.$ac_objext \
17603 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017604LIBS=$ac_check_lib_save_LIBS
17605fi
17606echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17607echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17608if test $ac_cv_lib_dl_dlopen = yes; then
17609 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17610else
17611
17612 lt_cv_dlopen="dyld"
17613 lt_cv_dlopen_libs=
17614 lt_cv_dlopen_self=yes
17615
17616fi
17617
17618 ;;
17619
17620 *)
17621 echo "$as_me:$LINENO: checking for shl_load" >&5
17622echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17623if test "${ac_cv_func_shl_load+set}" = set; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
17625else
17626 cat >conftest.$ac_ext <<_ACEOF
17627/* confdefs.h. */
17628_ACEOF
17629cat confdefs.h >>conftest.$ac_ext
17630cat >>conftest.$ac_ext <<_ACEOF
17631/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017632/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17634#define shl_load innocuous_shl_load
17635
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017636/* System header to define __stub macros and hopefully few prototypes,
17637 which can conflict with char shl_load (); below.
17638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17639 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017640
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017641#ifdef __STDC__
17642# include <limits.h>
17643#else
17644# include <assert.h>
17645#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017646
17647#undef shl_load
17648
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017649/* Override any gcc2 internal prototype to avoid an error. */
17650#ifdef __cplusplus
17651extern "C"
17652{
17653#endif
17654/* We use char because int might match the return type of a gcc2
17655 builtin and then its argument prototype would still apply. */
17656char shl_load ();
17657/* The GNU C library defines this for functions which it implements
17658 to always fail with ENOSYS. Some functions are actually named
17659 something starting with __ and the normal name is an alias. */
17660#if defined (__stub_shl_load) || defined (__stub___shl_load)
17661choke me
17662#else
17663char (*f) () = shl_load;
17664#endif
17665#ifdef __cplusplus
17666}
17667#endif
17668
17669int
17670main ()
17671{
17672return f != shl_load;
17673 ;
17674 return 0;
17675}
17676_ACEOF
17677rm -f conftest.$ac_objext conftest$ac_exeext
17678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017679 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017680 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017681 grep -v '^ *+' conftest.er1 >conftest.err
17682 rm -f conftest.er1
17683 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688 (eval $ac_try) 2>&5
17689 ac_status=$?
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); }; } &&
17692 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694 (eval $ac_try) 2>&5
17695 ac_status=$?
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); }; }; then
17698 ac_cv_func_shl_load=yes
17699else
17700 echo "$as_me: failed program was:" >&5
17701sed 's/^/| /' conftest.$ac_ext >&5
17702
17703ac_cv_func_shl_load=no
17704fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017705rm -f conftest.err conftest.$ac_objext \
17706 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017707fi
17708echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17709echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17710if test $ac_cv_func_shl_load = yes; then
17711 lt_cv_dlopen="shl_load"
17712else
17713 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17714echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17715if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17716 echo $ECHO_N "(cached) $ECHO_C" >&6
17717else
17718 ac_check_lib_save_LIBS=$LIBS
17719LIBS="-ldld $LIBS"
17720cat >conftest.$ac_ext <<_ACEOF
17721/* confdefs.h. */
17722_ACEOF
17723cat confdefs.h >>conftest.$ac_ext
17724cat >>conftest.$ac_ext <<_ACEOF
17725/* end confdefs.h. */
17726
17727/* Override any gcc2 internal prototype to avoid an error. */
17728#ifdef __cplusplus
17729extern "C"
17730#endif
17731/* We use char because int might match the return type of a gcc2
17732 builtin and then its argument prototype would still apply. */
17733char shl_load ();
17734int
17735main ()
17736{
17737shl_load ();
17738 ;
17739 return 0;
17740}
17741_ACEOF
17742rm -f conftest.$ac_objext conftest$ac_exeext
17743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017744 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017745 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017746 grep -v '^ *+' conftest.er1 >conftest.err
17747 rm -f conftest.er1
17748 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753 (eval $ac_try) 2>&5
17754 ac_status=$?
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; } &&
17757 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759 (eval $ac_try) 2>&5
17760 ac_status=$?
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); }; }; then
17763 ac_cv_lib_dld_shl_load=yes
17764else
17765 echo "$as_me: failed program was:" >&5
17766sed 's/^/| /' conftest.$ac_ext >&5
17767
17768ac_cv_lib_dld_shl_load=no
17769fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017770rm -f conftest.err conftest.$ac_objext \
17771 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017772LIBS=$ac_check_lib_save_LIBS
17773fi
17774echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17775echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17776if test $ac_cv_lib_dld_shl_load = yes; then
17777 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17778else
17779 echo "$as_me:$LINENO: checking for dlopen" >&5
17780echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17781if test "${ac_cv_func_dlopen+set}" = set; then
17782 echo $ECHO_N "(cached) $ECHO_C" >&6
17783else
17784 cat >conftest.$ac_ext <<_ACEOF
17785/* confdefs.h. */
17786_ACEOF
17787cat confdefs.h >>conftest.$ac_ext
17788cat >>conftest.$ac_ext <<_ACEOF
17789/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017790/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17792#define dlopen innocuous_dlopen
17793
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017794/* System header to define __stub macros and hopefully few prototypes,
17795 which can conflict with char dlopen (); below.
17796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17797 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017798
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017799#ifdef __STDC__
17800# include <limits.h>
17801#else
17802# include <assert.h>
17803#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017804
17805#undef dlopen
17806
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017807/* Override any gcc2 internal prototype to avoid an error. */
17808#ifdef __cplusplus
17809extern "C"
17810{
17811#endif
17812/* We use char because int might match the return type of a gcc2
17813 builtin and then its argument prototype would still apply. */
17814char dlopen ();
17815/* The GNU C library defines this for functions which it implements
17816 to always fail with ENOSYS. Some functions are actually named
17817 something starting with __ and the normal name is an alias. */
17818#if defined (__stub_dlopen) || defined (__stub___dlopen)
17819choke me
17820#else
17821char (*f) () = dlopen;
17822#endif
17823#ifdef __cplusplus
17824}
17825#endif
17826
17827int
17828main ()
17829{
17830return f != dlopen;
17831 ;
17832 return 0;
17833}
17834_ACEOF
17835rm -f conftest.$ac_objext conftest$ac_exeext
17836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017837 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017838 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017839 grep -v '^ *+' conftest.er1 >conftest.err
17840 rm -f conftest.er1
17841 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17847 ac_status=$?
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; } &&
17850 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17853 ac_status=$?
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; }; then
17856 ac_cv_func_dlopen=yes
17857else
17858 echo "$as_me: failed program was:" >&5
17859sed 's/^/| /' conftest.$ac_ext >&5
17860
17861ac_cv_func_dlopen=no
17862fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017863rm -f conftest.err conftest.$ac_objext \
17864 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017865fi
17866echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17867echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17868if test $ac_cv_func_dlopen = yes; then
17869 lt_cv_dlopen="dlopen"
17870else
17871 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17872echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17873if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17874 echo $ECHO_N "(cached) $ECHO_C" >&6
17875else
17876 ac_check_lib_save_LIBS=$LIBS
17877LIBS="-ldl $LIBS"
17878cat >conftest.$ac_ext <<_ACEOF
17879/* confdefs.h. */
17880_ACEOF
17881cat confdefs.h >>conftest.$ac_ext
17882cat >>conftest.$ac_ext <<_ACEOF
17883/* end confdefs.h. */
17884
17885/* Override any gcc2 internal prototype to avoid an error. */
17886#ifdef __cplusplus
17887extern "C"
17888#endif
17889/* We use char because int might match the return type of a gcc2
17890 builtin and then its argument prototype would still apply. */
17891char dlopen ();
17892int
17893main ()
17894{
17895dlopen ();
17896 ;
17897 return 0;
17898}
17899_ACEOF
17900rm -f conftest.$ac_objext conftest$ac_exeext
17901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017902 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017903 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017904 grep -v '^ *+' conftest.er1 >conftest.err
17905 rm -f conftest.er1
17906 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911 (eval $ac_try) 2>&5
17912 ac_status=$?
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; } &&
17915 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17917 (eval $ac_try) 2>&5
17918 ac_status=$?
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); }; }; then
17921 ac_cv_lib_dl_dlopen=yes
17922else
17923 echo "$as_me: failed program was:" >&5
17924sed 's/^/| /' conftest.$ac_ext >&5
17925
17926ac_cv_lib_dl_dlopen=no
17927fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017928rm -f conftest.err conftest.$ac_objext \
17929 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017930LIBS=$ac_check_lib_save_LIBS
17931fi
17932echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17933echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17934if test $ac_cv_lib_dl_dlopen = yes; then
17935 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17936else
17937 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17938echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17939if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17940 echo $ECHO_N "(cached) $ECHO_C" >&6
17941else
17942 ac_check_lib_save_LIBS=$LIBS
17943LIBS="-lsvld $LIBS"
17944cat >conftest.$ac_ext <<_ACEOF
17945/* confdefs.h. */
17946_ACEOF
17947cat confdefs.h >>conftest.$ac_ext
17948cat >>conftest.$ac_ext <<_ACEOF
17949/* end confdefs.h. */
17950
17951/* Override any gcc2 internal prototype to avoid an error. */
17952#ifdef __cplusplus
17953extern "C"
17954#endif
17955/* We use char because int might match the return type of a gcc2
17956 builtin and then its argument prototype would still apply. */
17957char dlopen ();
17958int
17959main ()
17960{
17961dlopen ();
17962 ;
17963 return 0;
17964}
17965_ACEOF
17966rm -f conftest.$ac_objext conftest$ac_exeext
17967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017968 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017969 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017970 grep -v '^ *+' conftest.er1 >conftest.err
17971 rm -f conftest.er1
17972 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977 (eval $ac_try) 2>&5
17978 ac_status=$?
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); }; } &&
17981 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17983 (eval $ac_try) 2>&5
17984 ac_status=$?
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); }; }; then
17987 ac_cv_lib_svld_dlopen=yes
17988else
17989 echo "$as_me: failed program was:" >&5
17990sed 's/^/| /' conftest.$ac_ext >&5
17991
17992ac_cv_lib_svld_dlopen=no
17993fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017994rm -f conftest.err conftest.$ac_objext \
17995 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017996LIBS=$ac_check_lib_save_LIBS
17997fi
17998echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17999echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18000if test $ac_cv_lib_svld_dlopen = yes; then
18001 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18002else
18003 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18004echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18005if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18006 echo $ECHO_N "(cached) $ECHO_C" >&6
18007else
18008 ac_check_lib_save_LIBS=$LIBS
18009LIBS="-ldld $LIBS"
18010cat >conftest.$ac_ext <<_ACEOF
18011/* confdefs.h. */
18012_ACEOF
18013cat confdefs.h >>conftest.$ac_ext
18014cat >>conftest.$ac_ext <<_ACEOF
18015/* end confdefs.h. */
18016
18017/* Override any gcc2 internal prototype to avoid an error. */
18018#ifdef __cplusplus
18019extern "C"
18020#endif
18021/* We use char because int might match the return type of a gcc2
18022 builtin and then its argument prototype would still apply. */
18023char dld_link ();
18024int
18025main ()
18026{
18027dld_link ();
18028 ;
18029 return 0;
18030}
18031_ACEOF
18032rm -f conftest.$ac_objext conftest$ac_exeext
18033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000018034 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018035 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000018036 grep -v '^ *+' conftest.er1 >conftest.err
18037 rm -f conftest.er1
18038 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000018041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043 (eval $ac_try) 2>&5
18044 ac_status=$?
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; } &&
18047 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049 (eval $ac_try) 2>&5
18050 ac_status=$?
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; }; then
18053 ac_cv_lib_dld_dld_link=yes
18054else
18055 echo "$as_me: failed program was:" >&5
18056sed 's/^/| /' conftest.$ac_ext >&5
18057
18058ac_cv_lib_dld_dld_link=no
18059fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000018060rm -f conftest.err conftest.$ac_objext \
18061 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018062LIBS=$ac_check_lib_save_LIBS
18063fi
18064echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18065echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18066if test $ac_cv_lib_dld_dld_link = yes; then
18067 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18068fi
18069
18070
18071fi
18072
18073
18074fi
18075
18076
18077fi
18078
18079
18080fi
18081
18082
18083fi
18084
18085 ;;
18086 esac
18087
18088 if test "x$lt_cv_dlopen" != xno; then
18089 enable_dlopen=yes
18090 else
18091 enable_dlopen=no
18092 fi
18093
18094 case $lt_cv_dlopen in
18095 dlopen)
18096 save_CPPFLAGS="$CPPFLAGS"
18097 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18098
18099 save_LDFLAGS="$LDFLAGS"
18100 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18101
18102 save_LIBS="$LIBS"
18103 LIBS="$lt_cv_dlopen_libs $LIBS"
18104
18105 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18106echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18107if test "${lt_cv_dlopen_self+set}" = set; then
18108 echo $ECHO_N "(cached) $ECHO_C" >&6
18109else
18110 if test "$cross_compiling" = yes; then :
18111 lt_cv_dlopen_self=cross
18112else
18113 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18114 lt_status=$lt_dlunknown
18115 cat > conftest.$ac_ext <<EOF
homeip.net!davidm34fa1222004-08-17 15:34:28 +000018116#line 18116 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018117#include "confdefs.h"
18118
18119#if HAVE_DLFCN_H
18120#include <dlfcn.h>
18121#endif
18122
18123#include <stdio.h>
18124
18125#ifdef RTLD_GLOBAL
18126# define LT_DLGLOBAL RTLD_GLOBAL
18127#else
18128# ifdef DL_GLOBAL
18129# define LT_DLGLOBAL DL_GLOBAL
18130# else
18131# define LT_DLGLOBAL 0
18132# endif
18133#endif
18134
18135/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18136 find out it does not work in some platform. */
18137#ifndef LT_DLLAZY_OR_NOW
18138# ifdef RTLD_LAZY
18139# define LT_DLLAZY_OR_NOW RTLD_LAZY
18140# else
18141# ifdef DL_LAZY
18142# define LT_DLLAZY_OR_NOW DL_LAZY
18143# else
18144# ifdef RTLD_NOW
18145# define LT_DLLAZY_OR_NOW RTLD_NOW
18146# else
18147# ifdef DL_NOW
18148# define LT_DLLAZY_OR_NOW DL_NOW
18149# else
18150# define LT_DLLAZY_OR_NOW 0
18151# endif
18152# endif
18153# endif
18154# endif
18155#endif
18156
18157#ifdef __cplusplus
18158extern "C" void exit (int);
18159#endif
18160
18161void fnord() { int i=42;}
18162int main ()
18163{
18164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18165 int status = $lt_dlunknown;
18166
18167 if (self)
18168 {
18169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18170 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18171 /* dlclose (self); */
18172 }
18173
18174 exit (status);
18175}
18176EOF
18177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18178 (eval $ac_link) 2>&5
18179 ac_status=$?
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18182 (./conftest; exit; ) 2>/dev/null
18183 lt_status=$?
18184 case x$lt_status in
18185 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18186 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18187 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18188 esac
18189 else :
18190 # compilation failed
18191 lt_cv_dlopen_self=no
18192 fi
18193fi
18194rm -fr conftest*
18195
18196
18197fi
18198echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18199echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18200
18201 if test "x$lt_cv_dlopen_self" = xyes; then
18202 LDFLAGS="$LDFLAGS $link_static_flag"
18203 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18204echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18205if test "${lt_cv_dlopen_self_static+set}" = set; then
18206 echo $ECHO_N "(cached) $ECHO_C" >&6
18207else
18208 if test "$cross_compiling" = yes; then :
18209 lt_cv_dlopen_self_static=cross
18210else
18211 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18212 lt_status=$lt_dlunknown
18213 cat > conftest.$ac_ext <<EOF
homeip.net!davidm34fa1222004-08-17 15:34:28 +000018214#line 18214 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018215#include "confdefs.h"
18216
18217#if HAVE_DLFCN_H
18218#include <dlfcn.h>
18219#endif
18220
18221#include <stdio.h>
18222
18223#ifdef RTLD_GLOBAL
18224# define LT_DLGLOBAL RTLD_GLOBAL
18225#else
18226# ifdef DL_GLOBAL
18227# define LT_DLGLOBAL DL_GLOBAL
18228# else
18229# define LT_DLGLOBAL 0
18230# endif
18231#endif
18232
18233/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18234 find out it does not work in some platform. */
18235#ifndef LT_DLLAZY_OR_NOW
18236# ifdef RTLD_LAZY
18237# define LT_DLLAZY_OR_NOW RTLD_LAZY
18238# else
18239# ifdef DL_LAZY
18240# define LT_DLLAZY_OR_NOW DL_LAZY
18241# else
18242# ifdef RTLD_NOW
18243# define LT_DLLAZY_OR_NOW RTLD_NOW
18244# else
18245# ifdef DL_NOW
18246# define LT_DLLAZY_OR_NOW DL_NOW
18247# else
18248# define LT_DLLAZY_OR_NOW 0
18249# endif
18250# endif
18251# endif
18252# endif
18253#endif
18254
18255#ifdef __cplusplus
18256extern "C" void exit (int);
18257#endif
18258
18259void fnord() { int i=42;}
18260int main ()
18261{
18262 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18263 int status = $lt_dlunknown;
18264
18265 if (self)
18266 {
18267 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18268 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18269 /* dlclose (self); */
18270 }
18271
18272 exit (status);
18273}
18274EOF
18275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18276 (eval $ac_link) 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18280 (./conftest; exit; ) 2>/dev/null
18281 lt_status=$?
18282 case x$lt_status in
18283 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18284 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18285 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18286 esac
18287 else :
18288 # compilation failed
18289 lt_cv_dlopen_self_static=no
18290 fi
18291fi
18292rm -fr conftest*
18293
18294
18295fi
18296echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18297echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18298 fi
18299
18300 CPPFLAGS="$save_CPPFLAGS"
18301 LDFLAGS="$save_LDFLAGS"
18302 LIBS="$save_LIBS"
18303 ;;
18304 esac
18305
18306 case $lt_cv_dlopen_self in
18307 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18308 *) enable_dlopen_self=unknown ;;
18309 esac
18310
18311 case $lt_cv_dlopen_self_static in
18312 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18313 *) enable_dlopen_self_static=unknown ;;
18314 esac
18315fi
18316
18317
18318# The else clause should only fire when bootstrapping the
18319# libtool distribution, otherwise you forgot to ship ltmain.sh
18320# with your package, and you will get complaints that there are
18321# no rules to generate ltmain.sh.
18322if test -f "$ltmain"; then
18323 # See if we are running on zsh, and set the options which allow our commands through
18324 # without removal of \ escapes.
18325 if test -n "${ZSH_VERSION+set}" ; then
18326 setopt NO_GLOB_SUBST
18327 fi
18328 # Now quote all the things that may contain metacharacters while being
18329 # careful not to overquote the AC_SUBSTed values. We take copies of the
18330 # variables and quote the copies for generation of the libtool script.
18331 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18332 SED SHELL STRIP \
18333 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18334 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18335 deplibs_check_method reload_flag reload_cmds need_locks \
18336 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18337 lt_cv_sys_global_symbol_to_c_name_address \
18338 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18339 old_postinstall_cmds old_postuninstall_cmds \
18340 compiler_GCJ \
18341 CC_GCJ \
18342 LD_GCJ \
18343 lt_prog_compiler_wl_GCJ \
18344 lt_prog_compiler_pic_GCJ \
18345 lt_prog_compiler_static_GCJ \
18346 lt_prog_compiler_no_builtin_flag_GCJ \
18347 export_dynamic_flag_spec_GCJ \
18348 thread_safe_flag_spec_GCJ \
18349 whole_archive_flag_spec_GCJ \
18350 enable_shared_with_static_runtimes_GCJ \
18351 old_archive_cmds_GCJ \
18352 old_archive_from_new_cmds_GCJ \
18353 predep_objects_GCJ \
18354 postdep_objects_GCJ \
18355 predeps_GCJ \
18356 postdeps_GCJ \
18357 compiler_lib_search_path_GCJ \
18358 archive_cmds_GCJ \
18359 archive_expsym_cmds_GCJ \
18360 postinstall_cmds_GCJ \
18361 postuninstall_cmds_GCJ \
18362 old_archive_from_expsyms_cmds_GCJ \
18363 allow_undefined_flag_GCJ \
18364 no_undefined_flag_GCJ \
18365 export_symbols_cmds_GCJ \
18366 hardcode_libdir_flag_spec_GCJ \
18367 hardcode_libdir_flag_spec_ld_GCJ \
18368 hardcode_libdir_separator_GCJ \
18369 hardcode_automatic_GCJ \
18370 module_cmds_GCJ \
18371 module_expsym_cmds_GCJ \
18372 lt_cv_prog_compiler_c_o_GCJ \
18373 exclude_expsyms_GCJ \
18374 include_expsyms_GCJ; do
18375
18376 case $var in
18377 old_archive_cmds_GCJ | \
18378 old_archive_from_new_cmds_GCJ | \
18379 archive_cmds_GCJ | \
18380 archive_expsym_cmds_GCJ | \
18381 module_cmds_GCJ | \
18382 module_expsym_cmds_GCJ | \
18383 old_archive_from_expsyms_cmds_GCJ | \
18384 export_symbols_cmds_GCJ | \
18385 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18386 postinstall_cmds | postuninstall_cmds | \
18387 old_postinstall_cmds | old_postuninstall_cmds | \
18388 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18389 # Double-quote double-evaled strings.
18390 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18391 ;;
18392 *)
18393 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18394 ;;
18395 esac
18396 done
18397
18398 case $lt_echo in
18399 *'\$0 --fallback-echo"')
18400 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18401 ;;
18402 esac
18403
18404cfgfile="$ofile"
18405
18406 cat <<__EOF__ >> "$cfgfile"
18407# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18408
18409# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18410
18411# Shell to use when invoking shell scripts.
18412SHELL=$lt_SHELL
18413
18414# Whether or not to build shared libraries.
18415build_libtool_libs=$enable_shared
18416
18417# Whether or not to build static libraries.
18418build_old_libs=$enable_static
18419
18420# Whether or not to add -lc for building shared libraries.
18421build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18422
18423# Whether or not to disallow shared libs when runtime libs are static
18424allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18425
18426# Whether or not to optimize for fast installation.
18427fast_install=$enable_fast_install
18428
18429# The host system.
18430host_alias=$host_alias
18431host=$host
18432
18433# An echo program that does not interpret backslashes.
18434echo=$lt_echo
18435
18436# The archiver.
18437AR=$lt_AR
18438AR_FLAGS=$lt_AR_FLAGS
18439
18440# A C compiler.
18441LTCC=$lt_LTCC
18442
18443# A language-specific compiler.
18444CC=$lt_compiler_GCJ
18445
18446# Is the compiler the GNU C compiler?
18447with_gcc=$GCC_GCJ
18448
18449# An ERE matcher.
18450EGREP=$lt_EGREP
18451
18452# The linker used to build libraries.
18453LD=$lt_LD_GCJ
18454
18455# Whether we need hard or soft links.
18456LN_S=$lt_LN_S
18457
18458# A BSD-compatible nm program.
18459NM=$lt_NM
18460
18461# A symbol stripping program
18462STRIP=$lt_STRIP
18463
18464# Used to examine libraries when file_magic_cmd begins "file"
18465MAGIC_CMD=$MAGIC_CMD
18466
18467# Used on cygwin: DLL creation program.
18468DLLTOOL="$DLLTOOL"
18469
18470# Used on cygwin: object dumper.
18471OBJDUMP="$OBJDUMP"
18472
18473# Used on cygwin: assembler.
18474AS="$AS"
18475
18476# The name of the directory that contains temporary libtool files.
18477objdir=$objdir
18478
18479# How to create reloadable object files.
18480reload_flag=$lt_reload_flag
18481reload_cmds=$lt_reload_cmds
18482
18483# How to pass a linker flag through the compiler.
18484wl=$lt_lt_prog_compiler_wl_GCJ
18485
18486# Object file suffix (normally "o").
18487objext="$ac_objext"
18488
18489# Old archive suffix (normally "a").
18490libext="$libext"
18491
18492# Shared library suffix (normally ".so").
hp.com!davidm2de17682004-04-20 16:53:44 +000018493shrext_cmds='$shrext_cmds'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018494
18495# Executable file suffix (normally "").
18496exeext="$exeext"
18497
18498# Additional compiler flags for building library objects.
18499pic_flag=$lt_lt_prog_compiler_pic_GCJ
18500pic_mode=$pic_mode
18501
18502# What is the maximum length of a command?
18503max_cmd_len=$lt_cv_sys_max_cmd_len
18504
18505# Does compiler simultaneously support -c and -o options?
18506compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18507
18508# Must we lock files when doing compilation ?
18509need_locks=$lt_need_locks
18510
18511# Do we need the lib prefix for modules?
18512need_lib_prefix=$need_lib_prefix
18513
18514# Do we need a version for libraries?
18515need_version=$need_version
18516
18517# Whether dlopen is supported.
18518dlopen_support=$enable_dlopen
18519
18520# Whether dlopen of programs is supported.
18521dlopen_self=$enable_dlopen_self
18522
18523# Whether dlopen of statically linked programs is supported.
18524dlopen_self_static=$enable_dlopen_self_static
18525
18526# Compiler flag to prevent dynamic linking.
18527link_static_flag=$lt_lt_prog_compiler_static_GCJ
18528
18529# Compiler flag to turn off builtin functions.
18530no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18531
18532# Compiler flag to allow reflexive dlopens.
18533export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18534
18535# Compiler flag to generate shared objects directly from archives.
18536whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18537
18538# Compiler flag to generate thread-safe objects.
18539thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18540
18541# Library versioning type.
18542version_type=$version_type
18543
18544# Format of library name prefix.
18545libname_spec=$lt_libname_spec
18546
18547# List of archive names. First name is the real one, the rest are links.
18548# The last name is the one that the linker finds with -lNAME.
18549library_names_spec=$lt_library_names_spec
18550
18551# The coded name of the library, if different from the real name.
18552soname_spec=$lt_soname_spec
18553
18554# Commands used to build and install an old-style archive.
18555RANLIB=$lt_RANLIB
18556old_archive_cmds=$lt_old_archive_cmds_GCJ
18557old_postinstall_cmds=$lt_old_postinstall_cmds
18558old_postuninstall_cmds=$lt_old_postuninstall_cmds
18559
18560# Create an old-style archive from a shared archive.
18561old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18562
18563# Create a temporary old-style archive to link instead of a shared archive.
18564old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18565
18566# Commands used to build and install a shared archive.
18567archive_cmds=$lt_archive_cmds_GCJ
18568archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18569postinstall_cmds=$lt_postinstall_cmds
18570postuninstall_cmds=$lt_postuninstall_cmds
18571
18572# Commands used to build a loadable module (assumed same as above if empty)
18573module_cmds=$lt_module_cmds_GCJ
18574module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18575
18576# Commands to strip libraries.
18577old_striplib=$lt_old_striplib
18578striplib=$lt_striplib
18579
18580# Dependencies to place before the objects being linked to create a
18581# shared library.
18582predep_objects=$lt_predep_objects_GCJ
18583
18584# Dependencies to place after the objects being linked to create a
18585# shared library.
18586postdep_objects=$lt_postdep_objects_GCJ
18587
18588# Dependencies to place before the objects being linked to create a
18589# shared library.
18590predeps=$lt_predeps_GCJ
18591
18592# Dependencies to place after the objects being linked to create a
18593# shared library.
18594postdeps=$lt_postdeps_GCJ
18595
18596# The library search path used internally by the compiler when linking
18597# a shared library.
18598compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18599
18600# Method to check whether dependent libraries are shared objects.
18601deplibs_check_method=$lt_deplibs_check_method
18602
18603# Command to use when deplibs_check_method == file_magic.
18604file_magic_cmd=$lt_file_magic_cmd
18605
18606# Flag that allows shared libraries with undefined symbols to be built.
18607allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18608
18609# Flag that forces no undefined symbols.
18610no_undefined_flag=$lt_no_undefined_flag_GCJ
18611
18612# Commands used to finish a libtool library installation in a directory.
18613finish_cmds=$lt_finish_cmds
18614
18615# Same as above, but a single script fragment to be evaled but not shown.
18616finish_eval=$lt_finish_eval
18617
18618# Take the output of nm and produce a listing of raw symbols and C names.
18619global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18620
18621# Transform the output of nm in a proper C declaration
18622global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18623
18624# Transform the output of nm in a C name address pair
18625global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18626
18627# This is the shared library runtime path variable.
18628runpath_var=$runpath_var
18629
18630# This is the shared library path variable.
18631shlibpath_var=$shlibpath_var
18632
18633# Is shlibpath searched before the hard-coded library search path?
18634shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18635
18636# How to hardcode a shared library path into an executable.
18637hardcode_action=$hardcode_action_GCJ
18638
18639# Whether we should hardcode library paths into libraries.
18640hardcode_into_libs=$hardcode_into_libs
18641
18642# Flag to hardcode \$libdir into a binary during linking.
18643# This must work even if \$libdir does not exist.
18644hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18645
18646# If ld is used when linking, flag to hardcode \$libdir into
18647# a binary during linking. This must work even if \$libdir does
18648# not exist.
18649hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18650
18651# Whether we need a single -rpath flag with a separated argument.
18652hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18653
18654# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18655# resulting binary.
18656hardcode_direct=$hardcode_direct_GCJ
18657
18658# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18659# resulting binary.
18660hardcode_minus_L=$hardcode_minus_L_GCJ
18661
18662# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18663# the resulting binary.
18664hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18665
18666# Set to yes if building a shared library automatically hardcodes DIR into the library
18667# and all subsequent libraries and executables linked against it.
18668hardcode_automatic=$hardcode_automatic_GCJ
18669
18670# Variables whose values should be saved in libtool wrapper scripts and
18671# restored at relink time.
18672variables_saved_for_relink="$variables_saved_for_relink"
18673
18674# Whether libtool must link a program against all its dependency libraries.
18675link_all_deplibs=$link_all_deplibs_GCJ
18676
18677# Compile-time system search path for libraries
18678sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18679
18680# Run-time system search path for libraries
18681sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18682
18683# Fix the shell variable \$srcfile for the compiler.
18684fix_srcfile_path="$fix_srcfile_path_GCJ"
18685
18686# Set to yes if exported symbols are required.
18687always_export_symbols=$always_export_symbols_GCJ
18688
18689# The commands to list exported symbols.
18690export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18691
18692# The commands to extract the exported symbol list from a shared archive.
18693extract_expsyms_cmds=$lt_extract_expsyms_cmds
18694
18695# Symbols that should not be listed in the preloaded symbols.
18696exclude_expsyms=$lt_exclude_expsyms_GCJ
18697
18698# Symbols that must always be exported.
18699include_expsyms=$lt_include_expsyms_GCJ
18700
18701# ### END LIBTOOL TAG CONFIG: $tagname
18702
18703__EOF__
18704
18705
18706else
18707 # If there is no Makefile yet, we rely on a make rule to execute
18708 # `config.status --recheck' to rerun these tests and create the
18709 # libtool script then.
18710 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18711 if test -f "$ltmain_in"; then
18712 test -f Makefile && make "$ltmain"
18713 fi
18714fi
18715
18716
18717ac_ext=c
18718ac_cpp='$CPP $CPPFLAGS'
18719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18721ac_compiler_gnu=$ac_cv_c_compiler_gnu
18722
18723CC="$lt_save_CC"
18724
18725 else
18726 tagname=""
18727 fi
18728 ;;
18729
18730 RC)
18731
18732
18733
18734# Source file extension for RC test sources.
18735ac_ext=rc
18736
18737# Object file extension for compiled RC test sources.
18738objext=o
18739objext_RC=$objext
18740
18741# Code to be used in simple compile tests
18742lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18743
18744# Code to be used in simple link tests
18745lt_simple_link_test_code="$lt_simple_compile_test_code"
18746
18747# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18748
18749# If no C compiler was specified, use CC.
18750LTCC=${LTCC-"$CC"}
18751
18752# Allow CC to be a program name with arguments.
18753compiler=$CC
18754
18755
18756# Allow CC to be a program name with arguments.
18757lt_save_CC="$CC"
18758CC=${RC-"windres"}
18759compiler=$CC
18760compiler_RC=$CC
18761lt_cv_prog_compiler_c_o_RC=yes
18762
18763# The else clause should only fire when bootstrapping the
18764# libtool distribution, otherwise you forgot to ship ltmain.sh
18765# with your package, and you will get complaints that there are
18766# no rules to generate ltmain.sh.
18767if test -f "$ltmain"; then
18768 # See if we are running on zsh, and set the options which allow our commands through
18769 # without removal of \ escapes.
18770 if test -n "${ZSH_VERSION+set}" ; then
18771 setopt NO_GLOB_SUBST
18772 fi
18773 # Now quote all the things that may contain metacharacters while being
18774 # careful not to overquote the AC_SUBSTed values. We take copies of the
18775 # variables and quote the copies for generation of the libtool script.
18776 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18777 SED SHELL STRIP \
18778 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18779 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18780 deplibs_check_method reload_flag reload_cmds need_locks \
18781 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18782 lt_cv_sys_global_symbol_to_c_name_address \
18783 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18784 old_postinstall_cmds old_postuninstall_cmds \
18785 compiler_RC \
18786 CC_RC \
18787 LD_RC \
18788 lt_prog_compiler_wl_RC \
18789 lt_prog_compiler_pic_RC \
18790 lt_prog_compiler_static_RC \
18791 lt_prog_compiler_no_builtin_flag_RC \
18792 export_dynamic_flag_spec_RC \
18793 thread_safe_flag_spec_RC \
18794 whole_archive_flag_spec_RC \
18795 enable_shared_with_static_runtimes_RC \
18796 old_archive_cmds_RC \
18797 old_archive_from_new_cmds_RC \
18798 predep_objects_RC \
18799 postdep_objects_RC \
18800 predeps_RC \
18801 postdeps_RC \
18802 compiler_lib_search_path_RC \
18803 archive_cmds_RC \
18804 archive_expsym_cmds_RC \
18805 postinstall_cmds_RC \
18806 postuninstall_cmds_RC \
18807 old_archive_from_expsyms_cmds_RC \
18808 allow_undefined_flag_RC \
18809 no_undefined_flag_RC \
18810 export_symbols_cmds_RC \
18811 hardcode_libdir_flag_spec_RC \
18812 hardcode_libdir_flag_spec_ld_RC \
18813 hardcode_libdir_separator_RC \
18814 hardcode_automatic_RC \
18815 module_cmds_RC \
18816 module_expsym_cmds_RC \
18817 lt_cv_prog_compiler_c_o_RC \
18818 exclude_expsyms_RC \
18819 include_expsyms_RC; do
18820
18821 case $var in
18822 old_archive_cmds_RC | \
18823 old_archive_from_new_cmds_RC | \
18824 archive_cmds_RC | \
18825 archive_expsym_cmds_RC | \
18826 module_cmds_RC | \
18827 module_expsym_cmds_RC | \
18828 old_archive_from_expsyms_cmds_RC | \
18829 export_symbols_cmds_RC | \
18830 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18831 postinstall_cmds | postuninstall_cmds | \
18832 old_postinstall_cmds | old_postuninstall_cmds | \
18833 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18834 # Double-quote double-evaled strings.
18835 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18836 ;;
18837 *)
18838 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18839 ;;
18840 esac
18841 done
18842
18843 case $lt_echo in
18844 *'\$0 --fallback-echo"')
18845 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18846 ;;
18847 esac
18848
18849cfgfile="$ofile"
18850
18851 cat <<__EOF__ >> "$cfgfile"
18852# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18853
18854# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18855
18856# Shell to use when invoking shell scripts.
18857SHELL=$lt_SHELL
18858
18859# Whether or not to build shared libraries.
18860build_libtool_libs=$enable_shared
18861
18862# Whether or not to build static libraries.
18863build_old_libs=$enable_static
18864
18865# Whether or not to add -lc for building shared libraries.
18866build_libtool_need_lc=$archive_cmds_need_lc_RC
18867
18868# Whether or not to disallow shared libs when runtime libs are static
18869allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18870
18871# Whether or not to optimize for fast installation.
18872fast_install=$enable_fast_install
18873
18874# The host system.
18875host_alias=$host_alias
18876host=$host
18877
18878# An echo program that does not interpret backslashes.
18879echo=$lt_echo
18880
18881# The archiver.
18882AR=$lt_AR
18883AR_FLAGS=$lt_AR_FLAGS
18884
18885# A C compiler.
18886LTCC=$lt_LTCC
18887
18888# A language-specific compiler.
18889CC=$lt_compiler_RC
18890
18891# Is the compiler the GNU C compiler?
18892with_gcc=$GCC_RC
18893
18894# An ERE matcher.
18895EGREP=$lt_EGREP
18896
18897# The linker used to build libraries.
18898LD=$lt_LD_RC
18899
18900# Whether we need hard or soft links.
18901LN_S=$lt_LN_S
18902
18903# A BSD-compatible nm program.
18904NM=$lt_NM
18905
18906# A symbol stripping program
18907STRIP=$lt_STRIP
18908
18909# Used to examine libraries when file_magic_cmd begins "file"
18910MAGIC_CMD=$MAGIC_CMD
18911
18912# Used on cygwin: DLL creation program.
18913DLLTOOL="$DLLTOOL"
18914
18915# Used on cygwin: object dumper.
18916OBJDUMP="$OBJDUMP"
18917
18918# Used on cygwin: assembler.
18919AS="$AS"
18920
18921# The name of the directory that contains temporary libtool files.
18922objdir=$objdir
18923
18924# How to create reloadable object files.
18925reload_flag=$lt_reload_flag
18926reload_cmds=$lt_reload_cmds
18927
18928# How to pass a linker flag through the compiler.
18929wl=$lt_lt_prog_compiler_wl_RC
18930
18931# Object file suffix (normally "o").
18932objext="$ac_objext"
18933
18934# Old archive suffix (normally "a").
18935libext="$libext"
18936
18937# Shared library suffix (normally ".so").
hp.com!davidm2de17682004-04-20 16:53:44 +000018938shrext_cmds='$shrext_cmds'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018939
18940# Executable file suffix (normally "").
18941exeext="$exeext"
18942
18943# Additional compiler flags for building library objects.
18944pic_flag=$lt_lt_prog_compiler_pic_RC
18945pic_mode=$pic_mode
18946
18947# What is the maximum length of a command?
18948max_cmd_len=$lt_cv_sys_max_cmd_len
18949
18950# Does compiler simultaneously support -c and -o options?
18951compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18952
18953# Must we lock files when doing compilation ?
18954need_locks=$lt_need_locks
18955
18956# Do we need the lib prefix for modules?
18957need_lib_prefix=$need_lib_prefix
18958
18959# Do we need a version for libraries?
18960need_version=$need_version
18961
18962# Whether dlopen is supported.
18963dlopen_support=$enable_dlopen
18964
18965# Whether dlopen of programs is supported.
18966dlopen_self=$enable_dlopen_self
18967
18968# Whether dlopen of statically linked programs is supported.
18969dlopen_self_static=$enable_dlopen_self_static
18970
18971# Compiler flag to prevent dynamic linking.
18972link_static_flag=$lt_lt_prog_compiler_static_RC
18973
18974# Compiler flag to turn off builtin functions.
18975no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18976
18977# Compiler flag to allow reflexive dlopens.
18978export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18979
18980# Compiler flag to generate shared objects directly from archives.
18981whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18982
18983# Compiler flag to generate thread-safe objects.
18984thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18985
18986# Library versioning type.
18987version_type=$version_type
18988
18989# Format of library name prefix.
18990libname_spec=$lt_libname_spec
18991
18992# List of archive names. First name is the real one, the rest are links.
18993# The last name is the one that the linker finds with -lNAME.
18994library_names_spec=$lt_library_names_spec
18995
18996# The coded name of the library, if different from the real name.
18997soname_spec=$lt_soname_spec
18998
18999# Commands used to build and install an old-style archive.
19000RANLIB=$lt_RANLIB
19001old_archive_cmds=$lt_old_archive_cmds_RC
19002old_postinstall_cmds=$lt_old_postinstall_cmds
19003old_postuninstall_cmds=$lt_old_postuninstall_cmds
19004
19005# Create an old-style archive from a shared archive.
19006old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19007
19008# Create a temporary old-style archive to link instead of a shared archive.
19009old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19010
19011# Commands used to build and install a shared archive.
19012archive_cmds=$lt_archive_cmds_RC
19013archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19014postinstall_cmds=$lt_postinstall_cmds
19015postuninstall_cmds=$lt_postuninstall_cmds
19016
19017# Commands used to build a loadable module (assumed same as above if empty)
19018module_cmds=$lt_module_cmds_RC
19019module_expsym_cmds=$lt_module_expsym_cmds_RC
19020
19021# Commands to strip libraries.
19022old_striplib=$lt_old_striplib
19023striplib=$lt_striplib
19024
19025# Dependencies to place before the objects being linked to create a
19026# shared library.
19027predep_objects=$lt_predep_objects_RC
19028
19029# Dependencies to place after the objects being linked to create a
19030# shared library.
19031postdep_objects=$lt_postdep_objects_RC
19032
19033# Dependencies to place before the objects being linked to create a
19034# shared library.
19035predeps=$lt_predeps_RC
19036
19037# Dependencies to place after the objects being linked to create a
19038# shared library.
19039postdeps=$lt_postdeps_RC
19040
19041# The library search path used internally by the compiler when linking
19042# a shared library.
19043compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19044
19045# Method to check whether dependent libraries are shared objects.
19046deplibs_check_method=$lt_deplibs_check_method
19047
19048# Command to use when deplibs_check_method == file_magic.
19049file_magic_cmd=$lt_file_magic_cmd
19050
19051# Flag that allows shared libraries with undefined symbols to be built.
19052allow_undefined_flag=$lt_allow_undefined_flag_RC
19053
19054# Flag that forces no undefined symbols.
19055no_undefined_flag=$lt_no_undefined_flag_RC
19056
19057# Commands used to finish a libtool library installation in a directory.
19058finish_cmds=$lt_finish_cmds
19059
19060# Same as above, but a single script fragment to be evaled but not shown.
19061finish_eval=$lt_finish_eval
19062
19063# Take the output of nm and produce a listing of raw symbols and C names.
19064global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19065
19066# Transform the output of nm in a proper C declaration
19067global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19068
19069# Transform the output of nm in a C name address pair
19070global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19071
19072# This is the shared library runtime path variable.
19073runpath_var=$runpath_var
19074
19075# This is the shared library path variable.
19076shlibpath_var=$shlibpath_var
19077
19078# Is shlibpath searched before the hard-coded library search path?
19079shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19080
19081# How to hardcode a shared library path into an executable.
19082hardcode_action=$hardcode_action_RC
19083
19084# Whether we should hardcode library paths into libraries.
19085hardcode_into_libs=$hardcode_into_libs
19086
19087# Flag to hardcode \$libdir into a binary during linking.
19088# This must work even if \$libdir does not exist.
19089hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19090
19091# If ld is used when linking, flag to hardcode \$libdir into
19092# a binary during linking. This must work even if \$libdir does
19093# not exist.
19094hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19095
19096# Whether we need a single -rpath flag with a separated argument.
19097hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19098
19099# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19100# resulting binary.
19101hardcode_direct=$hardcode_direct_RC
19102
19103# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19104# resulting binary.
19105hardcode_minus_L=$hardcode_minus_L_RC
19106
19107# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19108# the resulting binary.
19109hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19110
19111# Set to yes if building a shared library automatically hardcodes DIR into the library
19112# and all subsequent libraries and executables linked against it.
19113hardcode_automatic=$hardcode_automatic_RC
19114
19115# Variables whose values should be saved in libtool wrapper scripts and
19116# restored at relink time.
19117variables_saved_for_relink="$variables_saved_for_relink"
19118
19119# Whether libtool must link a program against all its dependency libraries.
19120link_all_deplibs=$link_all_deplibs_RC
19121
19122# Compile-time system search path for libraries
19123sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19124
19125# Run-time system search path for libraries
19126sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19127
19128# Fix the shell variable \$srcfile for the compiler.
19129fix_srcfile_path="$fix_srcfile_path_RC"
19130
19131# Set to yes if exported symbols are required.
19132always_export_symbols=$always_export_symbols_RC
19133
19134# The commands to list exported symbols.
19135export_symbols_cmds=$lt_export_symbols_cmds_RC
19136
19137# The commands to extract the exported symbol list from a shared archive.
19138extract_expsyms_cmds=$lt_extract_expsyms_cmds
19139
19140# Symbols that should not be listed in the preloaded symbols.
19141exclude_expsyms=$lt_exclude_expsyms_RC
19142
19143# Symbols that must always be exported.
19144include_expsyms=$lt_include_expsyms_RC
19145
19146# ### END LIBTOOL TAG CONFIG: $tagname
19147
19148__EOF__
19149
19150
19151else
19152 # If there is no Makefile yet, we rely on a make rule to execute
19153 # `config.status --recheck' to rerun these tests and create the
19154 # libtool script then.
19155 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19156 if test -f "$ltmain_in"; then
19157 test -f Makefile && make "$ltmain"
19158 fi
19159fi
19160
19161
19162ac_ext=c
19163ac_cpp='$CPP $CPPFLAGS'
19164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19166ac_compiler_gnu=$ac_cv_c_compiler_gnu
19167
19168CC="$lt_save_CC"
19169
19170 ;;
19171
19172 *)
19173 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19174echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19175 { (exit 1); exit 1; }; }
19176 ;;
19177 esac
19178
19179 # Append the new tag name to the list of available tags.
19180 if test -n "$tagname" ; then
19181 available_tags="$available_tags $tagname"
19182 fi
19183 fi
19184 done
19185 IFS="$lt_save_ifs"
19186
19187 # Now substitute the updated list of available tags.
19188 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19189 mv "${ofile}T" "$ofile"
19190 chmod +x "$ofile"
19191 else
19192 rm -f "${ofile}T"
19193 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19194echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19195 { (exit 1); exit 1; }; }
19196 fi
19197fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019198
19199
19200
19201# This can be used to rebuild libtool when needed
19202LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19203
19204# Always use our own libtool.
19205LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19206
19207# Prevent multiple expansion
19208
19209
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
mostang.com!davidm6af90d02003-02-15 08:53:55 +000019228# By default we simply use the C compiler to build assembly code.
19229
homeip.net!davidm34fa1222004-08-17 15:34:28 +000019230test "${CCAS+set}" = set || CCAS=$CC
19231test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
mostang.com!davidm6af90d02003-02-15 08:53:55 +000019232
19233
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019234
homeip.net!davidm34fa1222004-08-17 15:34:28 +000019235if test "x$CC" != xcc; then
19236 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
19237echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
19238else
19239 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
19240echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
19241fi
19242set dummy $CC; ac_cc=`echo $2 |
19243 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19244if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
19245 echo $ECHO_N "(cached) $ECHO_C" >&6
19246else
19247 cat >conftest.$ac_ext <<_ACEOF
19248/* confdefs.h. */
19249_ACEOF
19250cat confdefs.h >>conftest.$ac_ext
19251cat >>conftest.$ac_ext <<_ACEOF
19252/* end confdefs.h. */
19253
19254int
19255main ()
19256{
19257
19258 ;
19259 return 0;
19260}
19261_ACEOF
19262# Make sure it works both with $CC and with simple cc.
19263# We do the test twice because some compilers refuse to overwrite an
19264# existing .o file with -o, though they will create one.
19265ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
19266if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267 (eval $ac_try) 2>&5
19268 ac_status=$?
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); } &&
19271 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272 (eval $ac_try) 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); };
19276then
19277 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19278 if test "x$CC" != xcc; then
19279 # Test first that cc exists at all.
19280 if { ac_try='cc -c conftest.$ac_ext >&5'
19281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19282 (eval $ac_try) 2>&5
19283 ac_status=$?
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; }; then
19286 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
19287 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288 (eval $ac_try) 2>&5
19289 ac_status=$?
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } &&
19292 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19294 ac_status=$?
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); };
19297 then
19298 # cc works too.
19299 :
19300 else
19301 # cc exists but doesn't like -o.
19302 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19303 fi
19304 fi
19305 fi
19306else
19307 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19308fi
19309rm -f conftest*
19310
19311fi
19312if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
19313 echo "$as_me:$LINENO: result: yes" >&5
19314echo "${ECHO_T}yes" >&6
19315else
19316 echo "$as_me:$LINENO: result: no" >&5
19317echo "${ECHO_T}no" >&6
19318
19319cat >>confdefs.h <<\_ACEOF
19320#define NO_MINUS_C_MINUS_O 1
19321_ACEOF
19322
19323fi
19324
19325# FIXME: we rely on the cache variable name because
19326# there is no other way.
19327set dummy $CC
19328ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19329if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
19330 # Losing compiler, so override with the script.
19331 # FIXME: It is wrong to rewrite CC.
19332 # But if we don't then we get into trouble of one sort or another.
19333 # A longer-term fix would be to have automake use am__CC in this case,
19334 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19335 CC="$am_aux_dir/compile $CC"
19336fi
19337
19338
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019339
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019340echo "$as_me:$LINENO: checking for __uc_get_grs in -luca" >&5
19341echo $ECHO_N "checking for __uc_get_grs in -luca... $ECHO_C" >&6
19342if test "${ac_cv_lib_uca___uc_get_grs+set}" = set; then
19343 echo $ECHO_N "(cached) $ECHO_C" >&6
19344else
19345 ac_check_lib_save_LIBS=$LIBS
19346LIBS="-luca $LIBS"
19347cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019348/* confdefs.h. */
19349_ACEOF
19350cat confdefs.h >>conftest.$ac_ext
19351cat >>conftest.$ac_ext <<_ACEOF
19352/* end confdefs.h. */
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019353
19354/* Override any gcc2 internal prototype to avoid an error. */
19355#ifdef __cplusplus
19356extern "C"
19357#endif
19358/* We use char because int might match the return type of a gcc2
19359 builtin and then its argument prototype would still apply. */
19360char __uc_get_grs ();
19361int
19362main ()
19363{
19364__uc_get_grs ();
19365 ;
19366 return 0;
19367}
19368_ACEOF
19369rm -f conftest.$ac_objext conftest$ac_exeext
19370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019371 (eval $ac_link) 2>conftest.er1
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019372 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019373 grep -v '^ *+' conftest.er1 >conftest.err
19374 rm -f conftest.er1
19375 cat conftest.err >&5
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380 (eval $ac_try) 2>&5
19381 ac_status=$?
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; } &&
19384 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19387 ac_status=$?
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; }; then
19390 ac_cv_lib_uca___uc_get_grs=yes
19391else
19392 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019393sed 's/^/| /' conftest.$ac_ext >&5
19394
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019395ac_cv_lib_uca___uc_get_grs=no
19396fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019397rm -f conftest.err conftest.$ac_objext \
19398 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019399LIBS=$ac_check_lib_save_LIBS
19400fi
19401echo "$as_me:$LINENO: result: $ac_cv_lib_uca___uc_get_grs" >&5
19402echo "${ECHO_T}$ac_cv_lib_uca___uc_get_grs" >&6
19403if test $ac_cv_lib_uca___uc_get_grs = yes; then
19404 cat >>confdefs.h <<_ACEOF
19405#define HAVE_LIBUCA 1
19406_ACEOF
19407
19408 LIBS="-luca $LIBS"
19409
19410fi
19411
19412
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019413for ac_header in atomic_ops.h
19414do
19415as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19416if eval "test \"\${$as_ac_Header+set}\" = set"; then
19417 echo "$as_me:$LINENO: checking for $ac_header" >&5
19418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19419if eval "test \"\${$as_ac_Header+set}\" = set"; then
19420 echo $ECHO_N "(cached) $ECHO_C" >&6
19421fi
19422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19423echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19424else
19425 # Is the header compilable?
19426echo "$as_me:$LINENO: checking $ac_header usability" >&5
19427echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19428cat >conftest.$ac_ext <<_ACEOF
19429/* confdefs.h. */
19430_ACEOF
19431cat confdefs.h >>conftest.$ac_ext
19432cat >>conftest.$ac_ext <<_ACEOF
19433/* end confdefs.h. */
19434$ac_includes_default
19435#include <$ac_header>
19436_ACEOF
19437rm -f conftest.$ac_objext
19438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019439 (eval $ac_compile) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019440 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019441 grep -v '^ *+' conftest.er1 >conftest.err
19442 rm -f conftest.er1
19443 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; } &&
19452 { ac_try='test -s conftest.$ac_objext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
19458 ac_header_compiler=yes
19459else
19460 echo "$as_me: failed program was:" >&5
19461sed 's/^/| /' conftest.$ac_ext >&5
19462
19463ac_header_compiler=no
19464fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019466echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19467echo "${ECHO_T}$ac_header_compiler" >&6
19468
19469# Is the header present?
19470echo "$as_me:$LINENO: checking $ac_header presence" >&5
19471echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19472cat >conftest.$ac_ext <<_ACEOF
19473/* confdefs.h. */
19474_ACEOF
19475cat confdefs.h >>conftest.$ac_ext
19476cat >>conftest.$ac_ext <<_ACEOF
19477/* end confdefs.h. */
19478#include <$ac_header>
19479_ACEOF
19480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19482 ac_status=$?
19483 grep -v '^ *+' conftest.er1 >conftest.err
19484 rm -f conftest.er1
19485 cat conftest.err >&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } >/dev/null; then
19488 if test -s conftest.err; then
19489 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019491 else
19492 ac_cpp_err=
19493 fi
19494else
19495 ac_cpp_err=yes
19496fi
19497if test -z "$ac_cpp_err"; then
19498 ac_header_preproc=yes
19499else
19500 echo "$as_me: failed program was:" >&5
19501sed 's/^/| /' conftest.$ac_ext >&5
19502
19503 ac_header_preproc=no
19504fi
19505rm -f conftest.err conftest.$ac_ext
19506echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19507echo "${ECHO_T}$ac_header_preproc" >&6
19508
19509# So? What about this header?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19511 yes:no: )
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19513echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19515echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19516 ac_header_preproc=yes
mostang.com!davidm046362a2003-12-05 06:42:28 +000019517 ;;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019518 no:yes:* )
mostang.com!davidm046362a2003-12-05 06:42:28 +000019519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19520echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19522echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19524echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19526echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +000019527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19528echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19530echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +000019531 (
19532 cat <<\_ASBOX
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019533## ----------------------------------------- ##
19534## Report this to libunwind@linux.hpl.hp.com ##
19535## ----------------------------------------- ##
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019536_ASBOX
19537 ) |
19538 sed "s/^/$as_me: WARNING: /" >&2
19539 ;;
19540esac
19541echo "$as_me:$LINENO: checking for $ac_header" >&5
19542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19543if eval "test \"\${$as_ac_Header+set}\" = set"; then
19544 echo $ECHO_N "(cached) $ECHO_C" >&6
19545else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019546 eval "$as_ac_Header=\$ac_header_preproc"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019547fi
19548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19550
19551fi
19552if test `eval echo '${'$as_ac_Header'}'` = yes; then
19553 cat >>confdefs.h <<_ACEOF
19554#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19555_ACEOF
19556
19557fi
19558
19559done
19560
19561
19562echo "$as_me:$LINENO: checking for main in -latomic_ops" >&5
19563echo $ECHO_N "checking for main in -latomic_ops... $ECHO_C" >&6
19564if test "${ac_cv_lib_atomic_ops_main+set}" = set; then
19565 echo $ECHO_N "(cached) $ECHO_C" >&6
19566else
19567 ac_check_lib_save_LIBS=$LIBS
19568LIBS="-latomic_ops $LIBS"
19569cat >conftest.$ac_ext <<_ACEOF
19570/* confdefs.h. */
19571_ACEOF
19572cat confdefs.h >>conftest.$ac_ext
19573cat >>conftest.$ac_ext <<_ACEOF
19574/* end confdefs.h. */
19575
19576
19577int
19578main ()
19579{
19580main ();
19581 ;
19582 return 0;
19583}
19584_ACEOF
19585rm -f conftest.$ac_objext conftest$ac_exeext
19586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019587 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019588 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019589 grep -v '^ *+' conftest.er1 >conftest.err
19590 rm -f conftest.er1
19591 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19596 (eval $ac_try) 2>&5
19597 ac_status=$?
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); }; } &&
19600 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602 (eval $ac_try) 2>&5
19603 ac_status=$?
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; }; then
19606 ac_cv_lib_atomic_ops_main=yes
19607else
19608 echo "$as_me: failed program was:" >&5
19609sed 's/^/| /' conftest.$ac_ext >&5
19610
19611ac_cv_lib_atomic_ops_main=no
19612fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019613rm -f conftest.err conftest.$ac_objext \
19614 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019615LIBS=$ac_check_lib_save_LIBS
19616fi
19617echo "$as_me:$LINENO: result: $ac_cv_lib_atomic_ops_main" >&5
19618echo "${ECHO_T}$ac_cv_lib_atomic_ops_main" >&6
19619if test $ac_cv_lib_atomic_ops_main = yes; then
19620 cat >>confdefs.h <<_ACEOF
19621#define HAVE_LIBATOMIC_OPS 1
19622_ACEOF
19623
19624 LIBS="-latomic_ops $LIBS"
19625
19626fi
19627
19628
19629
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019630echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19631echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19632if test "${ac_cv_header_stdc+set}" = set; then
19633 echo $ECHO_N "(cached) $ECHO_C" >&6
19634else
19635 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019636/* confdefs.h. */
19637_ACEOF
19638cat confdefs.h >>conftest.$ac_ext
19639cat >>conftest.$ac_ext <<_ACEOF
19640/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019641#include <stdlib.h>
19642#include <stdarg.h>
19643#include <string.h>
19644#include <float.h>
19645
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019646int
19647main ()
19648{
19649
19650 ;
19651 return 0;
19652}
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019653_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019654rm -f conftest.$ac_objext
19655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019656 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019657 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019658 grep -v '^ *+' conftest.er1 >conftest.err
19659 rm -f conftest.er1
19660 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019662 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665 (eval $ac_try) 2>&5
19666 ac_status=$?
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); }; } &&
19669 { ac_try='test -s conftest.$ac_objext'
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671 (eval $ac_try) 2>&5
19672 ac_status=$?
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; }; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019675 ac_cv_header_stdc=yes
19676else
19677 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019678sed 's/^/| /' conftest.$ac_ext >&5
19679
19680ac_cv_header_stdc=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019681fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019683
19684if test $ac_cv_header_stdc = yes; then
19685 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19686 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019687/* confdefs.h. */
19688_ACEOF
19689cat confdefs.h >>conftest.$ac_ext
19690cat >>conftest.$ac_ext <<_ACEOF
19691/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019692#include <string.h>
19693
19694_ACEOF
19695if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19696 $EGREP "memchr" >/dev/null 2>&1; then
19697 :
19698else
19699 ac_cv_header_stdc=no
19700fi
19701rm -f conftest*
19702
19703fi
19704
19705if test $ac_cv_header_stdc = yes; then
19706 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19707 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019708/* confdefs.h. */
19709_ACEOF
19710cat confdefs.h >>conftest.$ac_ext
19711cat >>conftest.$ac_ext <<_ACEOF
19712/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019713#include <stdlib.h>
19714
19715_ACEOF
19716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19717 $EGREP "free" >/dev/null 2>&1; then
19718 :
19719else
19720 ac_cv_header_stdc=no
19721fi
19722rm -f conftest*
19723
19724fi
19725
19726if test $ac_cv_header_stdc = yes; then
19727 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19728 if test "$cross_compiling" = yes; then
19729 :
19730else
19731 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019732/* confdefs.h. */
19733_ACEOF
19734cat confdefs.h >>conftest.$ac_ext
19735cat >>conftest.$ac_ext <<_ACEOF
19736/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019737#include <ctype.h>
19738#if ((' ' & 0x0FF) == 0x020)
19739# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19740# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19741#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019742# define ISLOWER(c) \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019743 (('a' <= (c) && (c) <= 'i') \
19744 || ('j' <= (c) && (c) <= 'r') \
19745 || ('s' <= (c) && (c) <= 'z'))
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019746# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19747#endif
19748
19749#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19750int
19751main ()
19752{
19753 int i;
19754 for (i = 0; i < 256; i++)
19755 if (XOR (islower (i), ISLOWER (i))
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019756 || toupper (i) != TOUPPER (i))
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019757 exit(2);
19758 exit (0);
19759}
19760_ACEOF
19761rm -f conftest$ac_exeext
19762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19763 (eval $ac_link) 2>&5
19764 ac_status=$?
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19768 (eval $ac_try) 2>&5
19769 ac_status=$?
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); }; }; then
19772 :
19773else
19774 echo "$as_me: program exited with status $ac_status" >&5
19775echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019776sed 's/^/| /' conftest.$ac_ext >&5
19777
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019778( exit $ac_status )
19779ac_cv_header_stdc=no
19780fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019781rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019782fi
19783fi
19784fi
19785echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19786echo "${ECHO_T}$ac_cv_header_stdc" >&6
19787if test $ac_cv_header_stdc = yes; then
19788
19789cat >>confdefs.h <<\_ACEOF
19790#define STDC_HEADERS 1
19791_ACEOF
19792
19793fi
19794
19795
mostang.com!davidm6af90d02003-02-15 08:53:55 +000019796
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019797
19798
19799
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019800
hp.com!davidm9bd061e2003-09-25 05:29:14 +000019801
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019802for ac_header in asm/ptrace_offsets.h endian.h execinfo.h ia64intrin.h \
hp.com!davidm9bd061e2003-09-25 05:29:14 +000019803 sys/uc_access.h unistd.h signal.h
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019804do
19805as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19806if eval "test \"\${$as_ac_Header+set}\" = set"; then
19807 echo "$as_me:$LINENO: checking for $ac_header" >&5
19808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19809if eval "test \"\${$as_ac_Header+set}\" = set"; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
19811fi
19812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19814else
19815 # Is the header compilable?
19816echo "$as_me:$LINENO: checking $ac_header usability" >&5
19817echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19818cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019819/* confdefs.h. */
19820_ACEOF
19821cat confdefs.h >>conftest.$ac_ext
19822cat >>conftest.$ac_ext <<_ACEOF
19823/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019824$ac_includes_default
19825#include <$ac_header>
19826_ACEOF
19827rm -f conftest.$ac_objext
19828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019829 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019830 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019831 grep -v '^ *+' conftest.er1 >conftest.err
19832 rm -f conftest.er1
19833 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19838 (eval $ac_try) 2>&5
19839 ac_status=$?
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; } &&
19842 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844 (eval $ac_try) 2>&5
19845 ac_status=$?
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; }; then
19848 ac_header_compiler=yes
19849else
19850 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019851sed 's/^/| /' conftest.$ac_ext >&5
19852
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019853ac_header_compiler=no
19854fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019856echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19857echo "${ECHO_T}$ac_header_compiler" >&6
19858
19859# Is the header present?
19860echo "$as_me:$LINENO: checking $ac_header presence" >&5
19861echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19862cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019863/* confdefs.h. */
19864_ACEOF
19865cat confdefs.h >>conftest.$ac_ext
19866cat >>conftest.$ac_ext <<_ACEOF
19867/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019868#include <$ac_header>
19869_ACEOF
19870if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19872 ac_status=$?
19873 grep -v '^ *+' conftest.er1 >conftest.err
19874 rm -f conftest.er1
19875 cat conftest.err >&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } >/dev/null; then
19878 if test -s conftest.err; then
19879 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019881 else
19882 ac_cpp_err=
19883 fi
19884else
19885 ac_cpp_err=yes
19886fi
19887if test -z "$ac_cpp_err"; then
19888 ac_header_preproc=yes
19889else
19890 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019891sed 's/^/| /' conftest.$ac_ext >&5
19892
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019893 ac_header_preproc=no
19894fi
19895rm -f conftest.err conftest.$ac_ext
19896echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19897echo "${ECHO_T}$ac_header_preproc" >&6
19898
19899# So? What about this header?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019900case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19901 yes:no: )
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19903echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19905echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19906 ac_header_preproc=yes
mostang.com!davidm046362a2003-12-05 06:42:28 +000019907 ;;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019908 no:yes:* )
mostang.com!davidm046362a2003-12-05 06:42:28 +000019909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19910echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19912echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19914echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19916echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +000019917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19918echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19920echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +000019921 (
19922 cat <<\_ASBOX
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019923## ----------------------------------------- ##
19924## Report this to libunwind@linux.hpl.hp.com ##
19925## ----------------------------------------- ##
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019926_ASBOX
19927 ) |
19928 sed "s/^/$as_me: WARNING: /" >&2
19929 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019930esac
19931echo "$as_me:$LINENO: checking for $ac_header" >&5
19932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19933if eval "test \"\${$as_ac_Header+set}\" = set"; then
19934 echo $ECHO_N "(cached) $ECHO_C" >&6
19935else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019936 eval "$as_ac_Header=\$ac_header_preproc"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019937fi
19938echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19939echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19940
19941fi
19942if test `eval echo '${'$as_ac_Header'}'` = yes; then
19943 cat >>confdefs.h <<_ACEOF
19944#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19945_ACEOF
19946
19947fi
19948
19949done
19950
19951
19952echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19953echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19954if test "${ac_cv_c_const+set}" = set; then
19955 echo $ECHO_N "(cached) $ECHO_C" >&6
19956else
19957 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019958/* confdefs.h. */
19959_ACEOF
19960cat confdefs.h >>conftest.$ac_ext
19961cat >>conftest.$ac_ext <<_ACEOF
19962/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019963
19964int
19965main ()
19966{
19967/* FIXME: Include the comments suggested by Paul. */
19968#ifndef __cplusplus
19969 /* Ultrix mips cc rejects this. */
19970 typedef int charset[2];
19971 const charset x;
19972 /* SunOS 4.1.1 cc rejects this. */
19973 char const *const *ccp;
19974 char **p;
19975 /* NEC SVR4.0.2 mips cc rejects this. */
19976 struct point {int x, y;};
19977 static struct point const zero = {0,0};
19978 /* AIX XL C 1.02.0.0 rejects this.
19979 It does not let you subtract one const X* pointer from another in
19980 an arm of an if-expression whose if-part is not a constant
19981 expression */
19982 const char *g = "string";
19983 ccp = &g + (g ? g-g : 0);
19984 /* HPUX 7.0 cc rejects these. */
19985 ++ccp;
19986 p = (char**) ccp;
19987 ccp = (char const *const *) p;
19988 { /* SCO 3.2v4 cc rejects this. */
19989 char *t;
19990 char const *s = 0 ? (char *) 0 : (char const *) 0;
19991
19992 *t++ = 0;
19993 }
19994 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19995 int x[] = {25, 17};
19996 const int *foo = &x[0];
19997 ++foo;
19998 }
19999 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20000 typedef const int *iptr;
20001 iptr p = 0;
20002 ++p;
20003 }
20004 { /* AIX XL C 1.02.0.0 rejects this saying
20005 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20006 struct s { int j; const int *ap[3]; };
20007 struct s *b; b->j = 5;
20008 }
20009 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20010 const int foo = 10;
20011 }
20012#endif
20013
20014 ;
20015 return 0;
20016}
20017_ACEOF
20018rm -f conftest.$ac_objext
20019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020020 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020021 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020022 grep -v '^ *+' conftest.er1 >conftest.err
20023 rm -f conftest.er1
20024 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029 (eval $ac_try) 2>&5
20030 ac_status=$?
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }; } &&
20033 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
20036 ac_status=$?
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; }; then
20039 ac_cv_c_const=yes
20040else
20041 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020042sed 's/^/| /' conftest.$ac_ext >&5
20043
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020044ac_cv_c_const=no
20045fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020047fi
20048echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20049echo "${ECHO_T}$ac_cv_c_const" >&6
20050if test $ac_cv_c_const = no; then
20051
20052cat >>confdefs.h <<\_ACEOF
20053#define const
20054_ACEOF
20055
20056fi
20057
20058echo "$as_me:$LINENO: checking for inline" >&5
20059echo $ECHO_N "checking for inline... $ECHO_C" >&6
20060if test "${ac_cv_c_inline+set}" = set; then
20061 echo $ECHO_N "(cached) $ECHO_C" >&6
20062else
20063 ac_cv_c_inline=no
20064for ac_kw in inline __inline__ __inline; do
20065 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020066/* confdefs.h. */
20067_ACEOF
20068cat confdefs.h >>conftest.$ac_ext
20069cat >>conftest.$ac_ext <<_ACEOF
20070/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020071#ifndef __cplusplus
20072typedef int foo_t;
20073static $ac_kw foo_t static_foo () {return 0; }
20074$ac_kw foo_t foo () {return 0; }
20075#endif
20076
20077_ACEOF
20078rm -f conftest.$ac_objext
20079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020080 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020081 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020082 grep -v '^ *+' conftest.er1 >conftest.err
20083 rm -f conftest.er1
20084 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089 (eval $ac_try) 2>&5
20090 ac_status=$?
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); }; } &&
20093 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095 (eval $ac_try) 2>&5
20096 ac_status=$?
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; }; then
20099 ac_cv_c_inline=$ac_kw; break
20100else
20101 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020102sed 's/^/| /' conftest.$ac_ext >&5
20103
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020104fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020106done
20107
20108fi
20109echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20110echo "${ECHO_T}$ac_cv_c_inline" >&6
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020111
20112
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020113case $ac_cv_c_inline in
20114 inline | yes) ;;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020115 *)
20116 case $ac_cv_c_inline in
20117 no) ac_val=;;
20118 *) ac_val=$ac_cv_c_inline;;
20119 esac
20120 cat >>confdefs.h <<_ACEOF
20121#ifndef __cplusplus
20122#define inline $ac_val
20123#endif
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020124_ACEOF
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020125 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020126esac
20127
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020128echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20129echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20130if test "${ac_cv_type_signal+set}" = set; then
20131 echo $ECHO_N "(cached) $ECHO_C" >&6
20132else
20133 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020134/* confdefs.h. */
20135_ACEOF
20136cat confdefs.h >>conftest.$ac_ext
20137cat >>conftest.$ac_ext <<_ACEOF
20138/* end confdefs.h. */
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020139#include <sys/types.h>
20140#include <signal.h>
20141#ifdef signal
20142# undef signal
20143#endif
20144#ifdef __cplusplus
20145extern "C" void (*signal (int, void (*)(int)))(int);
20146#else
20147void (*signal ()) ();
20148#endif
20149
20150int
20151main ()
20152{
20153int i;
20154 ;
20155 return 0;
20156}
20157_ACEOF
20158rm -f conftest.$ac_objext
20159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020160 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020161 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020162 grep -v '^ *+' conftest.er1 >conftest.err
20163 rm -f conftest.er1
20164 cat conftest.err >&5
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169 (eval $ac_try) 2>&5
20170 ac_status=$?
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); }; } &&
20173 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20175 (eval $ac_try) 2>&5
20176 ac_status=$?
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); }; }; then
20179 ac_cv_type_signal=void
20180else
20181 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020182sed 's/^/| /' conftest.$ac_ext >&5
20183
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020184ac_cv_type_signal=int
20185fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020187fi
20188echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20189echo "${ECHO_T}$ac_cv_type_signal" >&6
20190
20191cat >>confdefs.h <<_ACEOF
20192#define RETSIGTYPE $ac_cv_type_signal
20193_ACEOF
20194
20195
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020196echo "$as_me:$LINENO: checking for size_t" >&5
20197echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20198if test "${ac_cv_type_size_t+set}" = set; then
20199 echo $ECHO_N "(cached) $ECHO_C" >&6
20200else
20201 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020202/* confdefs.h. */
20203_ACEOF
20204cat confdefs.h >>conftest.$ac_ext
20205cat >>conftest.$ac_ext <<_ACEOF
20206/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020207$ac_includes_default
20208int
20209main ()
20210{
20211if ((size_t *) 0)
20212 return 0;
20213if (sizeof (size_t))
20214 return 0;
20215 ;
20216 return 0;
20217}
20218_ACEOF
20219rm -f conftest.$ac_objext
20220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020221 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020222 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020223 grep -v '^ *+' conftest.er1 >conftest.err
20224 rm -f conftest.er1
20225 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20230 (eval $ac_try) 2>&5
20231 ac_status=$?
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; } &&
20234 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236 (eval $ac_try) 2>&5
20237 ac_status=$?
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; }; then
20240 ac_cv_type_size_t=yes
20241else
20242 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020243sed 's/^/| /' conftest.$ac_ext >&5
20244
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020245ac_cv_type_size_t=no
20246fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020248fi
20249echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20250echo "${ECHO_T}$ac_cv_type_size_t" >&6
20251if test $ac_cv_type_size_t = yes; then
20252 :
20253else
20254
20255cat >>confdefs.h <<_ACEOF
20256#define size_t unsigned
20257_ACEOF
20258
20259fi
20260
20261
hp.com!davidm9bd061e2003-09-25 05:29:14 +000020262CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
20263if test x$enable_debug = xyes; then
20264 CPPFLAGS="${CPPFLAGS} -DDEBUG"
20265else
20266 CPPFLAGS="${CPPFLAGS} -DNDEBUG"
20267fi
20268
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020269echo "$as_me:$LINENO: checking for struct dl_phdr_info.dlpi_subs" >&5
20270echo $ECHO_N "checking for struct dl_phdr_info.dlpi_subs... $ECHO_C" >&6
20271if test "${ac_cv_member_struct_dl_phdr_info_dlpi_subs+set}" = set; then
20272 echo $ECHO_N "(cached) $ECHO_C" >&6
20273else
20274 cat >conftest.$ac_ext <<_ACEOF
20275/* confdefs.h. */
20276_ACEOF
20277cat confdefs.h >>conftest.$ac_ext
20278cat >>conftest.$ac_ext <<_ACEOF
20279/* end confdefs.h. */
20280#include <link.h>
20281
20282int
20283main ()
20284{
20285static struct dl_phdr_info ac_aggr;
20286if (ac_aggr.dlpi_subs)
20287return 0;
20288 ;
20289 return 0;
20290}
20291_ACEOF
20292rm -f conftest.$ac_objext
20293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20294 (eval $ac_compile) 2>conftest.er1
20295 ac_status=$?
20296 grep -v '^ *+' conftest.er1 >conftest.err
20297 rm -f conftest.er1
20298 cat conftest.err >&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } &&
20301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20304 ac_status=$?
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; } &&
20307 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20313 ac_cv_member_struct_dl_phdr_info_dlpi_subs=yes
20314else
20315 echo "$as_me: failed program was:" >&5
20316sed 's/^/| /' conftest.$ac_ext >&5
20317
20318cat >conftest.$ac_ext <<_ACEOF
20319/* confdefs.h. */
20320_ACEOF
20321cat confdefs.h >>conftest.$ac_ext
20322cat >>conftest.$ac_ext <<_ACEOF
20323/* end confdefs.h. */
20324#include <link.h>
20325
20326int
20327main ()
20328{
20329static struct dl_phdr_info ac_aggr;
20330if (sizeof ac_aggr.dlpi_subs)
20331return 0;
20332 ;
20333 return 0;
20334}
20335_ACEOF
20336rm -f conftest.$ac_objext
20337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20338 (eval $ac_compile) 2>conftest.er1
20339 ac_status=$?
20340 grep -v '^ *+' conftest.er1 >conftest.err
20341 rm -f conftest.er1
20342 cat conftest.err >&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); } &&
20345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
20348 ac_status=$?
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; } &&
20351 { ac_try='test -s conftest.$ac_objext'
20352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20353 (eval $ac_try) 2>&5
20354 ac_status=$?
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); }; }; then
20357 ac_cv_member_struct_dl_phdr_info_dlpi_subs=yes
20358else
20359 echo "$as_me: failed program was:" >&5
20360sed 's/^/| /' conftest.$ac_ext >&5
20361
20362ac_cv_member_struct_dl_phdr_info_dlpi_subs=no
20363fi
20364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20365fi
20366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20367fi
20368echo "$as_me:$LINENO: result: $ac_cv_member_struct_dl_phdr_info_dlpi_subs" >&5
20369echo "${ECHO_T}$ac_cv_member_struct_dl_phdr_info_dlpi_subs" >&6
20370if test $ac_cv_member_struct_dl_phdr_info_dlpi_subs = yes; then
20371
20372cat >>confdefs.h <<_ACEOF
20373#define HAVE_STRUCT_DL_PHDR_INFO_DLPI_SUBS 1
20374_ACEOF
20375
20376
20377fi
20378
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020379echo "$as_me:$LINENO: checking for sighandler_t" >&5
20380echo $ECHO_N "checking for sighandler_t... $ECHO_C" >&6
20381if test "${ac_cv_type_sighandler_t+set}" = set; then
20382 echo $ECHO_N "(cached) $ECHO_C" >&6
20383else
20384 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020385/* confdefs.h. */
20386_ACEOF
20387cat confdefs.h >>conftest.$ac_ext
20388cat >>conftest.$ac_ext <<_ACEOF
20389/* end confdefs.h. */
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020390$ac_includes_default
hp.com!davidm9bd061e2003-09-25 05:29:14 +000020391#if HAVE_SIGNAL_H
20392# include <signal.h>
20393#endif
20394
20395
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020396int
20397main ()
20398{
20399if ((sighandler_t *) 0)
20400 return 0;
20401if (sizeof (sighandler_t))
20402 return 0;
20403 ;
20404 return 0;
20405}
20406_ACEOF
20407rm -f conftest.$ac_objext
20408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020409 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020410 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020411 grep -v '^ *+' conftest.er1 >conftest.err
20412 rm -f conftest.er1
20413 cat conftest.err >&5
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20418 (eval $ac_try) 2>&5
20419 ac_status=$?
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); }; } &&
20422 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20424 (eval $ac_try) 2>&5
20425 ac_status=$?
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); }; }; then
20428 ac_cv_type_sighandler_t=yes
20429else
20430 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020431sed 's/^/| /' conftest.$ac_ext >&5
20432
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020433ac_cv_type_sighandler_t=no
20434fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020436fi
20437echo "$as_me:$LINENO: result: $ac_cv_type_sighandler_t" >&5
20438echo "${ECHO_T}$ac_cv_type_sighandler_t" >&6
mostang.com!davidm46149fd2003-03-31 18:16:54 +000020439if test $ac_cv_type_sighandler_t = yes; then
20440
20441cat >>confdefs.h <<_ACEOF
20442#define HAVE_SIGHANDLER_T 1
20443_ACEOF
20444
20445
20446fi
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020447
20448
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020449echo "$as_me:$LINENO: checking for working memcmp" >&5
20450echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20451if test "${ac_cv_func_memcmp_working+set}" = set; then
20452 echo $ECHO_N "(cached) $ECHO_C" >&6
20453else
20454 if test "$cross_compiling" = yes; then
20455 ac_cv_func_memcmp_working=no
20456else
20457 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020458/* confdefs.h. */
20459_ACEOF
20460cat confdefs.h >>conftest.$ac_ext
20461cat >>conftest.$ac_ext <<_ACEOF
20462/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020463$ac_includes_default
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020464int
20465main ()
20466{
20467
20468 /* Some versions of memcmp are not 8-bit clean. */
20469 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20470 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20471 exit (1);
20472
20473 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20474 or more and with at least one buffer not starting on a 4-byte boundary.
20475 William Lewis provided this test program. */
20476 {
20477 char foo[21];
20478 char bar[21];
20479 int i;
20480 for (i = 0; i < 4; i++)
20481 {
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020482 char *a = foo + i;
20483 char *b = bar + i;
20484 strcpy (a, "--------01111111");
20485 strcpy (b, "--------10000000");
20486 if (memcmp (a, b, 16) >= 0)
20487 exit (1);
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020488 }
20489 exit (0);
20490 }
20491
20492 ;
20493 return 0;
20494}
20495_ACEOF
20496rm -f conftest$ac_exeext
20497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20498 (eval $ac_link) 2>&5
20499 ac_status=$?
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503 (eval $ac_try) 2>&5
20504 ac_status=$?
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
20507 ac_cv_func_memcmp_working=yes
20508else
20509 echo "$as_me: program exited with status $ac_status" >&5
20510echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020511sed 's/^/| /' conftest.$ac_ext >&5
20512
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020513( exit $ac_status )
20514ac_cv_func_memcmp_working=no
20515fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020516rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020517fi
20518fi
20519echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
20520echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020521test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
20522 "memcmp.$ac_objext" | \
20523 *" memcmp.$ac_objext" | \
20524 "memcmp.$ac_objext "* | \
20525 *" memcmp.$ac_objext "* ) ;;
20526 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
20527esac
20528
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020529
20530echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20531echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20532if test "${ac_cv_type_signal+set}" = set; then
20533 echo $ECHO_N "(cached) $ECHO_C" >&6
20534else
20535 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020536/* confdefs.h. */
20537_ACEOF
20538cat confdefs.h >>conftest.$ac_ext
20539cat >>conftest.$ac_ext <<_ACEOF
20540/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020541#include <sys/types.h>
20542#include <signal.h>
20543#ifdef signal
20544# undef signal
20545#endif
20546#ifdef __cplusplus
20547extern "C" void (*signal (int, void (*)(int)))(int);
20548#else
20549void (*signal ()) ();
20550#endif
20551
20552int
20553main ()
20554{
20555int i;
20556 ;
20557 return 0;
20558}
20559_ACEOF
20560rm -f conftest.$ac_objext
20561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020562 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020563 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020564 grep -v '^ *+' conftest.er1 >conftest.err
20565 rm -f conftest.er1
20566 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20571 (eval $ac_try) 2>&5
20572 ac_status=$?
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); }; } &&
20575 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20577 (eval $ac_try) 2>&5
20578 ac_status=$?
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); }; }; then
20581 ac_cv_type_signal=void
20582else
20583 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020584sed 's/^/| /' conftest.$ac_ext >&5
20585
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020586ac_cv_type_signal=int
20587fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020589fi
20590echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20591echo "${ECHO_T}$ac_cv_type_signal" >&6
20592
20593cat >>confdefs.h <<_ACEOF
20594#define RETSIGTYPE $ac_cv_type_signal
20595_ACEOF
20596
20597
20598
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020599
20600
20601
hp.com!davidm2de17682004-04-20 16:53:44 +000020602
20603for ac_func in dl_iterate_phdr dl_phdr_removals_counter dlmodinfo getunwind \
20604 ttrace
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020605do
20606as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20607echo "$as_me:$LINENO: checking for $ac_func" >&5
20608echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20609if eval "test \"\${$as_ac_var+set}\" = set"; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20611else
20612 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020613/* confdefs.h. */
20614_ACEOF
20615cat confdefs.h >>conftest.$ac_ext
20616cat >>conftest.$ac_ext <<_ACEOF
20617/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020618/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20620#define $ac_func innocuous_$ac_func
20621
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020622/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020623 which can conflict with char $ac_func (); below.
20624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20625 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020626
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020627#ifdef __STDC__
20628# include <limits.h>
20629#else
20630# include <assert.h>
20631#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020632
20633#undef $ac_func
20634
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020635/* Override any gcc2 internal prototype to avoid an error. */
20636#ifdef __cplusplus
20637extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020638{
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020639#endif
20640/* We use char because int might match the return type of a gcc2
20641 builtin and then its argument prototype would still apply. */
20642char $ac_func ();
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020643/* The GNU C library defines this for functions which it implements
20644 to always fail with ENOSYS. Some functions are actually named
20645 something starting with __ and the normal name is an alias. */
20646#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20647choke me
20648#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020649char (*f) () = $ac_func;
20650#endif
20651#ifdef __cplusplus
20652}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020653#endif
20654
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020655int
20656main ()
20657{
20658return f != $ac_func;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020659 ;
20660 return 0;
20661}
20662_ACEOF
20663rm -f conftest.$ac_objext conftest$ac_exeext
20664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020665 (eval $ac_link) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020666 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020667 grep -v '^ *+' conftest.er1 >conftest.err
20668 rm -f conftest.er1
20669 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20674 (eval $ac_try) 2>&5
20675 ac_status=$?
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); }; } &&
20678 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680 (eval $ac_try) 2>&5
20681 ac_status=$?
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); }; }; then
20684 eval "$as_ac_var=yes"
20685else
20686 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020687sed 's/^/| /' conftest.$ac_ext >&5
20688
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020689eval "$as_ac_var=no"
20690fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020691rm -f conftest.err conftest.$ac_objext \
20692 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020693fi
20694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20695echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20696if test `eval echo '${'$as_ac_var'}'` = yes; then
20697 cat >>confdefs.h <<_ACEOF
20698#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20699_ACEOF
20700
20701fi
20702done
20703
20704
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020705get_arch() {
20706 case "$1" in
20707 i?86) echo x86;;
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000020708 hppa*) echo hppa;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020709 *) echo $1;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020710 esac
20711}
20712
20713build_arch=`get_arch $build_cpu`
20714target_arch=`get_arch $target_cpu`
20715
20716
20717
20718if test x$target_arch != x$build_arch; then
20719 REMOTE_ONLY_TRUE=
20720 REMOTE_ONLY_FALSE='#'
20721else
20722 REMOTE_ONLY_TRUE='#'
20723 REMOTE_ONLY_FALSE=
20724fi
20725
20726
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020727
mostang.com!davidmf26451a2003-01-16 03:10:11 +000020728if test x$target_arch = xia64; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020729 ARCH_IA64_TRUE=
20730 ARCH_IA64_FALSE='#'
20731else
20732 ARCH_IA64_TRUE='#'
20733 ARCH_IA64_FALSE=
20734fi
20735
20736
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020737
mostang.com!davidmf26451a2003-01-16 03:10:11 +000020738if test x$target_arch = xhppa; then
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000020739 ARCH_HPPA_TRUE=
20740 ARCH_HPPA_FALSE='#'
20741else
20742 ARCH_HPPA_TRUE='#'
20743 ARCH_HPPA_FALSE=
20744fi
20745
20746
20747
mostang.com!davidmf26451a2003-01-16 03:10:11 +000020748if test x$target_arch = xx86; then
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020749 ARCH_X86_TRUE=
20750 ARCH_X86_FALSE='#'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020751else
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020752 ARCH_X86_TRUE='#'
20753 ARCH_X86_FALSE=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020754fi
20755
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020756
mostang.com!davidma8db0b32003-02-08 10:10:59 +000020757
20758if expr x$target_os : xlinux >/dev/null; then
20759 OS_LINUX_TRUE=
20760 OS_LINUX_FALSE='#'
20761else
20762 OS_LINUX_TRUE='#'
20763 OS_LINUX_FALSE=
20764fi
20765
20766
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000020767
20768if expr x$target_os : xhpux >/dev/null; then
20769 OS_HPUX_TRUE=
20770 OS_HPUX_FALSE='#'
20771else
20772 OS_HPUX_TRUE='#'
20773 OS_HPUX_FALSE=
20774fi
20775
20776
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020777if test x$target_arch != x$build_arch; then
20778 CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020779fi
mostang.com!davidm51e4d342002-12-12 09:17:41 +000020780 ac_config_links="$ac_config_links include/libunwind.h:include/libunwind-$target_arch.h include/tdep.h:include/tdep-$target_arch.h"
20781
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020782
20783# Check whether --enable-debug or --disable-debug was given.
20784if test "${enable_debug+set}" = set; then
20785 enableval="$enable_debug"
20786 enable_debug=yes
20787fi;
20788
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020789if test "x$enable___thread" != xno; then
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +000020790 echo "$as_me:$LINENO: checking for __thread" >&5
20791echo $ECHO_N "checking for __thread... $ECHO_C" >&6
20792if test "${libc_cv_gcc___thread+set}" = set; then
20793 echo $ECHO_N "(cached) $ECHO_C" >&6
20794else
20795 cat > conftest.c <<\EOF
20796 __thread int a = 42;
20797EOF
20798 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
20799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800 (eval $ac_try) 2>&5
20801 ac_status=$?
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; }; then
20804 libc_cv_gcc___thread=yes
20805 else
20806 libc_cv_gcc___thread=no
20807 fi
20808 rm -f conftest*
20809fi
20810echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
20811echo "${ECHO_T}$libc_cv_gcc___thread" >&6
20812 if test "$libc_cv_gcc___thread" = yes; then
mostang.com!davidm57f5fae2002-12-03 08:19:58 +000020813
20814cat >>confdefs.h <<\_ACEOF
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +000020815#define HAVE___THREAD 1
20816_ACEOF
20817
20818 fi
20819else
20820 libc_cv_gcc___thread=no
20821fi
20822
hp.com!davidm2de17682004-04-20 16:53:44 +000020823save_LDFLAGS="$LDFLAGS"
20824LDFLAGS="$LDFLAGS -static-libcxa"
20825cat >conftest.$ac_ext <<_ACEOF
20826/* confdefs.h. */
20827_ACEOF
20828cat confdefs.h >>conftest.$ac_ext
20829cat >>conftest.$ac_ext <<_ACEOF
20830/* end confdefs.h. */
20831
20832int
20833main ()
20834{
20835
20836 ;
20837 return 0;
20838}
20839_ACEOF
20840rm -f conftest.$ac_objext conftest$ac_exeext
20841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20842 (eval $ac_link) 2>conftest.er1
20843 ac_status=$?
20844 grep -v '^ *+' conftest.er1 >conftest.err
20845 rm -f conftest.er1
20846 cat conftest.err >&5
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); } &&
20849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20851 (eval $ac_try) 2>&5
20852 ac_status=$?
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); }; } &&
20855 { ac_try='test -s conftest$ac_exeext'
20856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20857 (eval $ac_try) 2>&5
20858 ac_status=$?
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); }; }; then
20861 have_static_libcxa=yes
20862else
20863 echo "$as_me: failed program was:" >&5
20864sed 's/^/| /' conftest.$ac_ext >&5
20865
20866fi
20867rm -f conftest.err conftest.$ac_objext \
20868 conftest$ac_exeext conftest.$ac_ext
20869LDFLAGS="$save_LDFLAGS"
20870if test "x$have_static_libcxa" = xyes; then
20871 LDFLAGS_STATIC_LIBCXA="-XCClinker -static-libcxa"
20872fi
20873
20874cat >conftest.$ac_ext <<_ACEOF
20875/* confdefs.h. */
20876_ACEOF
20877cat confdefs.h >>conftest.$ac_ext
20878cat >>conftest.$ac_ext <<_ACEOF
20879/* end confdefs.h. */
20880
20881int
20882main ()
20883{
20884#ifndef __INTEL_COMPILER
20885#error choke me
20886#endif
20887 ;
20888 return 0;
20889}
20890_ACEOF
20891rm -f conftest.$ac_objext
20892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20893 (eval $ac_compile) 2>conftest.er1
20894 ac_status=$?
20895 grep -v '^ *+' conftest.er1 >conftest.err
20896 rm -f conftest.er1
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } &&
20900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20903 ac_status=$?
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; } &&
20906 { ac_try='test -s conftest.$ac_objext'
20907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20908 (eval $ac_try) 2>&5
20909 ac_status=$?
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); }; }; then
20912 intel_compiler=yes
20913else
20914 echo "$as_me: failed program was:" >&5
20915sed 's/^/| /' conftest.$ac_ext >&5
20916
20917fi
20918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20919
20920if test x$GCC = xyes -a x$intel_compiler != xyes; then
mostang.com!davidma8db0b32003-02-08 10:10:59 +000020921 CFLAGS="${CFLAGS} -Wall -Wsign-compare"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020922fi
20923
mostang.com!davidm6af90d02003-02-15 08:53:55 +000020924CCASFLAGS="${CCASFLAGS} ${CPPFLAGS}"
20925
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020926arch="$target_arch"
20927ARCH=`echo $target_arch | tr a-z A-Z`
20928
20929
20930
mostang.com!davidmf648f6f2003-01-17 07:48:52 +000020931
hp.com!davidm2de17682004-04-20 16:53:44 +000020932
mostang.com!davidm542e0262004-05-05 01:58:44 +000020933
20934
20935 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/check-namespace.sh doc/Makefile doc/common.tex"
mostang.com!davidmf648f6f2003-01-17 07:48:52 +000020936
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020937cat >confcache <<\_ACEOF
20938# This file is a shell script that caches the results of configure
20939# tests run on this system so they can be shared between configure
20940# scripts and configure runs, see configure's option --config-cache.
20941# It is not useful on other systems. If it contains results you don't
20942# want to keep, you may remove or edit it.
20943#
20944# config.status only pays attention to the cache file if you give it
20945# the --recheck option to rerun configure.
20946#
20947# `ac_cv_env_foo' variables (set or unset) will be overridden when
20948# loading this file, other *unset* `ac_cv_foo' will be assigned the
20949# following values.
20950
20951_ACEOF
20952
20953# The following way of writing the cache mishandles newlines in values,
20954# but we know of no workaround that is simple, portable, and efficient.
20955# So, don't put newlines in cache variables' values.
20956# Ultrix sh set writes to stderr and can't be redirected directly,
20957# and sets the high bit in the cache file unless we assign to the vars.
20958{
20959 (set) 2>&1 |
20960 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20961 *ac_space=\ *)
20962 # `set' does not quote correctly, so add quotes (double-quote
20963 # substitution turns \\\\ into \\, and sed turns \\ into \).
20964 sed -n \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020965 "s/'/'\\\\''/g;
20966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020967 ;;
20968 *)
20969 # `set' quotes correctly as required by POSIX, so do not add quotes.
20970 sed -n \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020971 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020972 ;;
20973 esac;
20974} |
20975 sed '
20976 t clear
20977 : clear
20978 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20979 t end
20980 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20981 : end' >>confcache
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020982if diff $cache_file confcache >/dev/null 2>&1; then :; else
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020983 if test -w $cache_file; then
20984 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20985 cat confcache >$cache_file
20986 else
20987 echo "not updating unwritable cache $cache_file"
20988 fi
20989fi
20990rm -f confcache
20991
20992test "x$prefix" = xNONE && prefix=$ac_default_prefix
20993# Let make expand exec_prefix.
20994test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20995
20996# VPATH may cause trouble with some makes, so we remove $(srcdir),
20997# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20998# trailing colons and then remove the whole line if VPATH becomes empty
20999# (actually we leave an empty line to preserve line numbers).
21000if test "x$srcdir" = x.; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021001 ac_vpsub='/^[ ]*VPATH[ ]*=/{
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021002s/:*\$(srcdir):*/:/;
21003s/:*\${srcdir}:*/:/;
21004s/:*@srcdir@:*/:/;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021005s/^\([^=]*=[ ]*\):*/\1/;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021006s/:*$//;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021007s/^[^=]*=[ ]*$//;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021008}'
21009fi
21010
21011DEFS=-DHAVE_CONFIG_H
21012
21013ac_libobjs=
21014ac_ltlibobjs=
21015for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21016 # 1. Remove the extension, and $U if already installed.
21017 ac_i=`echo "$ac_i" |
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021018 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021019 # 2. Add them.
21020 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21021 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21022done
21023LIBOBJS=$ac_libobjs
21024
21025LTLIBOBJS=$ac_ltlibobjs
21026
21027
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021028if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21029 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21030Usually this means the macro was only invoked conditionally." >&5
21031echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21032Usually this means the macro was only invoked conditionally." >&2;}
21033 { (exit 1); exit 1; }; }
21034fi
21035if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21036 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21037Usually this means the macro was only invoked conditionally." >&5
21038echo "$as_me: error: conditional \"AMDEP\" was never defined.
21039Usually this means the macro was only invoked conditionally." >&2;}
21040 { (exit 1); exit 1; }; }
21041fi
homeip.net!davidm34fa1222004-08-17 15:34:28 +000021042if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21043 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21044Usually this means the macro was only invoked conditionally." >&5
21045echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21046Usually this means the macro was only invoked conditionally." >&2;}
21047 { (exit 1); exit 1; }; }
21048fi
21049if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21050 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21051Usually this means the macro was only invoked conditionally." >&5
21052echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21053Usually this means the macro was only invoked conditionally." >&2;}
21054 { (exit 1); exit 1; }; }
21055fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021056if test -z "${REMOTE_ONLY_TRUE}" && test -z "${REMOTE_ONLY_FALSE}"; then
21057 { { echo "$as_me:$LINENO: error: conditional \"REMOTE_ONLY\" was never defined.
21058Usually this means the macro was only invoked conditionally." >&5
21059echo "$as_me: error: conditional \"REMOTE_ONLY\" was never defined.
21060Usually this means the macro was only invoked conditionally." >&2;}
21061 { (exit 1); exit 1; }; }
21062fi
21063if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
21064 { { echo "$as_me:$LINENO: error: conditional \"ARCH_IA64\" was never defined.
21065Usually this means the macro was only invoked conditionally." >&5
21066echo "$as_me: error: conditional \"ARCH_IA64\" was never defined.
21067Usually this means the macro was only invoked conditionally." >&2;}
21068 { (exit 1); exit 1; }; }
21069fi
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000021070if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
21071 { { echo "$as_me:$LINENO: error: conditional \"ARCH_HPPA\" was never defined.
21072Usually this means the macro was only invoked conditionally." >&5
21073echo "$as_me: error: conditional \"ARCH_HPPA\" was never defined.
21074Usually this means the macro was only invoked conditionally." >&2;}
21075 { (exit 1); exit 1; }; }
21076fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021077if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
21078 { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
21079Usually this means the macro was only invoked conditionally." >&5
21080echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
21081Usually this means the macro was only invoked conditionally." >&2;}
21082 { (exit 1); exit 1; }; }
21083fi
mostang.com!davidma8db0b32003-02-08 10:10:59 +000021084if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
21085 { { echo "$as_me:$LINENO: error: conditional \"OS_LINUX\" was never defined.
21086Usually this means the macro was only invoked conditionally." >&5
21087echo "$as_me: error: conditional \"OS_LINUX\" was never defined.
21088Usually this means the macro was only invoked conditionally." >&2;}
21089 { (exit 1); exit 1; }; }
21090fi
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000021091if test -z "${OS_HPUX_TRUE}" && test -z "${OS_HPUX_FALSE}"; then
21092 { { echo "$as_me:$LINENO: error: conditional \"OS_HPUX\" was never defined.
21093Usually this means the macro was only invoked conditionally." >&5
21094echo "$as_me: error: conditional \"OS_HPUX\" was never defined.
21095Usually this means the macro was only invoked conditionally." >&2;}
21096 { (exit 1); exit 1; }; }
21097fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021098
21099: ${CONFIG_STATUS=./config.status}
21100ac_clean_files_save=$ac_clean_files
21101ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21102{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21103echo "$as_me: creating $CONFIG_STATUS" >&6;}
21104cat >$CONFIG_STATUS <<_ACEOF
21105#! $SHELL
21106# Generated by $as_me.
21107# Run this file to recreate the current configuration.
21108# Compiler output produced by configure, useful for debugging
21109# configure, is in config.log if it exists.
21110
21111debug=false
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021112ac_cs_recheck=false
21113ac_cs_silent=false
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021114SHELL=\${CONFIG_SHELL-$SHELL}
21115_ACEOF
21116
21117cat >>$CONFIG_STATUS <<\_ACEOF
21118## --------------------- ##
21119## M4sh Initialization. ##
21120## --------------------- ##
21121
21122# Be Bourne compatible
21123if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21124 emulate sh
21125 NULLCMD=:
21126 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21127 # is contrary to our usage. Disable this feature.
21128 alias -g '${1+"$@"}'='"$@"'
21129elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21130 set -o posix
21131fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021132DUALCASE=1; export DUALCASE # for MKS sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021133
21134# Support unset when possible.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021135if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021136 as_unset=unset
21137else
21138 as_unset=false
21139fi
21140
21141
21142# Work around bugs in pre-3.0 UWIN ksh.
21143$as_unset ENV MAIL MAILPATH
21144PS1='$ '
21145PS2='> '
21146PS4='+ '
21147
21148# NLS nuisances.
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021149for as_var in \
21150 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21151 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21152 LC_TELEPHONE LC_TIME
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021153do
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021154 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021155 eval $as_var=C; export $as_var
21156 else
21157 $as_unset $as_var
21158 fi
21159done
21160
21161# Required to use basename.
21162if expr a : '\(a\)' >/dev/null 2>&1; then
21163 as_expr=expr
21164else
21165 as_expr=false
21166fi
21167
21168if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21169 as_basename=basename
21170else
21171 as_basename=false
21172fi
21173
21174
21175# Name of the executable.
21176as_me=`$as_basename "$0" ||
21177$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21178 X"$0" : 'X\(//\)$' \| \
21179 X"$0" : 'X\(/\)$' \| \
21180 . : '\(.\)' 2>/dev/null ||
21181echo X/"$0" |
21182 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21183 /^X\/\(\/\/\)$/{ s//\1/; q; }
21184 /^X\/\(\/\).*/{ s//\1/; q; }
21185 s/.*/./; q'`
21186
21187
21188# PATH needs CR, and LINENO needs CR and PATH.
21189# Avoid depending upon Character Ranges.
21190as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21191as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21192as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21193as_cr_digits='0123456789'
21194as_cr_alnum=$as_cr_Letters$as_cr_digits
21195
21196# The user is always right.
21197if test "${PATH_SEPARATOR+set}" != set; then
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021198 echo "#! /bin/sh" >conf$$.sh
21199 echo "exit 0" >>conf$$.sh
21200 chmod +x conf$$.sh
21201 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021202 PATH_SEPARATOR=';'
21203 else
21204 PATH_SEPARATOR=:
21205 fi
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021206 rm -f conf$$.sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021207fi
21208
21209
21210 as_lineno_1=$LINENO
21211 as_lineno_2=$LINENO
21212 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21213 test "x$as_lineno_1" != "x$as_lineno_2" &&
21214 test "x$as_lineno_3" = "x$as_lineno_2" || {
21215 # Find who we are. Look in the path if we contain no path at all
21216 # relative or not.
21217 case $0 in
21218 *[\\/]* ) as_myself=$0 ;;
21219 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21220for as_dir in $PATH
21221do
21222 IFS=$as_save_IFS
21223 test -z "$as_dir" && as_dir=.
21224 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21225done
21226
21227 ;;
21228 esac
21229 # We did not find ourselves, most probably we were run as `sh COMMAND'
21230 # in which case we are not to be found in the path.
21231 if test "x$as_myself" = x; then
21232 as_myself=$0
21233 fi
21234 if test ! -f "$as_myself"; then
21235 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21236echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21237 { (exit 1); exit 1; }; }
21238 fi
21239 case $CONFIG_SHELL in
21240 '')
21241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21242for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21243do
21244 IFS=$as_save_IFS
21245 test -z "$as_dir" && as_dir=.
21246 for as_base in sh bash ksh sh5; do
21247 case $as_dir in
21248 /*)
21249 if ("$as_dir/$as_base" -c '
21250 as_lineno_1=$LINENO
21251 as_lineno_2=$LINENO
21252 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21253 test "x$as_lineno_1" != "x$as_lineno_2" &&
21254 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21255 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21256 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21257 CONFIG_SHELL=$as_dir/$as_base
21258 export CONFIG_SHELL
21259 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21260 fi;;
21261 esac
21262 done
21263done
21264;;
21265 esac
21266
21267 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21268 # uniformly replaced by the line number. The first 'sed' inserts a
21269 # line-number line before each line; the second 'sed' does the real
21270 # work. The second script uses 'N' to pair each line-number line
21271 # with the numbered line, and appends trailing '-' during
21272 # substitution so that $LINENO is not a special case at line end.
21273 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21274 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21275 sed '=' <$as_myself |
21276 sed '
21277 N
21278 s,$,-,
21279 : loop
21280 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21281 t loop
21282 s,-$,,
21283 s,^['$as_cr_digits']*\n,,
21284 ' >$as_me.lineno &&
21285 chmod +x $as_me.lineno ||
21286 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21287echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21288 { (exit 1); exit 1; }; }
21289
21290 # Don't try to exec as it changes $[0], causing all sort of problems
21291 # (the dirname of $[0] is not the place where we might find the
21292 # original and so on. Autoconf is especially sensible to this).
21293 . ./$as_me.lineno
21294 # Exit status is that of the last command.
21295 exit
21296}
21297
21298
21299case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21300 *c*,-n*) ECHO_N= ECHO_C='
21301' ECHO_T=' ' ;;
21302 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21303 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21304esac
21305
21306if expr a : '\(a\)' >/dev/null 2>&1; then
21307 as_expr=expr
21308else
21309 as_expr=false
21310fi
21311
21312rm -f conf$$ conf$$.exe conf$$.file
21313echo >conf$$.file
21314if ln -s conf$$.file conf$$ 2>/dev/null; then
21315 # We could just check for DJGPP; but this test a) works b) is more generic
21316 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21317 if test -f conf$$.exe; then
21318 # Don't use ln at all; we don't have any links
21319 as_ln_s='cp -p'
21320 else
21321 as_ln_s='ln -s'
21322 fi
21323elif ln conf$$.file conf$$ 2>/dev/null; then
21324 as_ln_s=ln
21325else
21326 as_ln_s='cp -p'
21327fi
21328rm -f conf$$ conf$$.exe conf$$.file
21329
21330if mkdir -p . 2>/dev/null; then
21331 as_mkdir_p=:
21332else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021333 test -d ./-p && rmdir ./-p
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021334 as_mkdir_p=false
21335fi
21336
21337as_executable_p="test -f"
21338
21339# Sed expression to map a string onto a valid CPP name.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021340as_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 +000021341
21342# Sed expression to map a string onto a valid variable name.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021343as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021344
21345
21346# IFS
21347# We need space, tab and new line, in precisely that order.
21348as_nl='
21349'
21350IFS=" $as_nl"
21351
21352# CDPATH.
21353$as_unset CDPATH
21354
21355exec 6>&1
21356
21357# Open the log real soon, to keep \$[0] and so on meaningful, and to
21358# report actual input values of CONFIG_FILES etc. instead of their
21359# values after options handling. Logging --version etc. is OK.
21360exec 5>>config.log
21361{
21362 echo
21363 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21364## Running $as_me. ##
21365_ASBOX
21366} >&5
21367cat >&5 <<_CSEOF
21368
hp.com!davidm75f19902004-04-28 04:43:25 +000021369This file was extended by libunwind $as_me 0.97, which was
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021370generated by GNU Autoconf 2.59. Invocation command line was
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021371
21372 CONFIG_FILES = $CONFIG_FILES
21373 CONFIG_HEADERS = $CONFIG_HEADERS
21374 CONFIG_LINKS = $CONFIG_LINKS
21375 CONFIG_COMMANDS = $CONFIG_COMMANDS
21376 $ $0 $@
21377
21378_CSEOF
21379echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21380echo >&5
21381_ACEOF
21382
21383# Files that config.status was made for.
21384if test -n "$ac_config_files"; then
21385 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21386fi
21387
21388if test -n "$ac_config_headers"; then
21389 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21390fi
21391
21392if test -n "$ac_config_links"; then
21393 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21394fi
21395
21396if test -n "$ac_config_commands"; then
21397 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21398fi
21399
21400cat >>$CONFIG_STATUS <<\_ACEOF
21401
21402ac_cs_usage="\
21403\`$as_me' instantiates files from templates according to the
21404current configuration.
21405
21406Usage: $0 [OPTIONS] [FILE]...
21407
21408 -h, --help print this help, then exit
21409 -V, --version print version number, then exit
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021410 -q, --quiet do not print progress messages
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021411 -d, --debug don't remove temporary files
21412 --recheck update $as_me by reconfiguring in the same conditions
21413 --file=FILE[:TEMPLATE]
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021414 instantiate the configuration file FILE
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021415 --header=FILE[:TEMPLATE]
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021416 instantiate the configuration header FILE
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021417
21418Configuration files:
21419$config_files
21420
21421Configuration headers:
21422$config_headers
21423
21424Configuration links:
21425$config_links
21426
21427Configuration commands:
21428$config_commands
21429
21430Report bugs to <bug-autoconf@gnu.org>."
21431_ACEOF
21432
21433cat >>$CONFIG_STATUS <<_ACEOF
21434ac_cs_version="\\
hp.com!davidm75f19902004-04-28 04:43:25 +000021435libunwind config.status 0.97
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021436configured by $0, generated by GNU Autoconf 2.59,
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021437 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21438
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021439Copyright (C) 2003 Free Software Foundation, Inc.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021440This config.status script is free software; the Free Software Foundation
21441gives unlimited permission to copy, distribute and modify it."
21442srcdir=$srcdir
21443INSTALL="$INSTALL"
21444_ACEOF
21445
21446cat >>$CONFIG_STATUS <<\_ACEOF
21447# If no file are specified by the user, then we need to provide default
21448# value. By we need to know if files were specified by the user.
21449ac_need_defaults=:
21450while test $# != 0
21451do
21452 case $1 in
21453 --*=*)
21454 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21455 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21456 ac_shift=:
21457 ;;
21458 -*)
21459 ac_option=$1
21460 ac_optarg=$2
21461 ac_shift=shift
21462 ;;
21463 *) # This is not an option, so the user has probably given explicit
21464 # arguments.
21465 ac_option=$1
21466 ac_need_defaults=false;;
21467 esac
21468
21469 case $ac_option in
21470 # Handling of the options.
21471_ACEOF
mostang.com!davidma8db0b32003-02-08 10:10:59 +000021472cat >>$CONFIG_STATUS <<\_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021473 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21474 ac_cs_recheck=: ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021475 --version | --vers* | -V )
21476 echo "$ac_cs_version"; exit 0 ;;
21477 --he | --h)
21478 # Conflict between --help and --header
21479 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21480Try \`$0 --help' for more information." >&5
21481echo "$as_me: error: ambiguous option: $1
21482Try \`$0 --help' for more information." >&2;}
21483 { (exit 1); exit 1; }; };;
21484 --help | --hel | -h )
21485 echo "$ac_cs_usage"; exit 0 ;;
21486 --debug | --d* | -d )
21487 debug=: ;;
21488 --file | --fil | --fi | --f )
21489 $ac_shift
21490 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21491 ac_need_defaults=false;;
21492 --header | --heade | --head | --hea )
21493 $ac_shift
21494 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21495 ac_need_defaults=false;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021496 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21497 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21498 ac_cs_silent=: ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021499
21500 # This is an error.
21501 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21502Try \`$0 --help' for more information." >&5
21503echo "$as_me: error: unrecognized option: $1
21504Try \`$0 --help' for more information." >&2;}
21505 { (exit 1); exit 1; }; } ;;
21506
21507 *) ac_config_targets="$ac_config_targets $1" ;;
21508
21509 esac
21510 shift
21511done
21512
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021513ac_configure_extra_args=
21514
21515if $ac_cs_silent; then
21516 exec 6>/dev/null
21517 ac_configure_extra_args="$ac_configure_extra_args --silent"
21518fi
21519
21520_ACEOF
21521cat >>$CONFIG_STATUS <<_ACEOF
21522if \$ac_cs_recheck; then
21523 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21524 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21525fi
21526
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021527_ACEOF
21528
21529cat >>$CONFIG_STATUS <<_ACEOF
21530#
21531# INIT-COMMANDS section.
21532#
21533
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021534AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021535
21536_ACEOF
21537
21538
21539
21540cat >>$CONFIG_STATUS <<\_ACEOF
21541for ac_config_target in $ac_config_targets
21542do
21543 case "$ac_config_target" in
21544 # Handling of arguments.
21545 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21546 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21547 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
mostang.com!davidm542e0262004-05-05 01:58:44 +000021548 "tests/check-namespace.sh" ) CONFIG_FILES="$CONFIG_FILES tests/check-namespace.sh" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021549 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
mostang.com!davidmf648f6f2003-01-17 07:48:52 +000021550 "doc/common.tex" ) CONFIG_FILES="$CONFIG_FILES doc/common.tex" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021551 "include/libunwind.h" ) CONFIG_LINKS="$CONFIG_LINKS include/libunwind.h:include/libunwind-$target_arch.h" ;;
mostang.com!davidm51e4d342002-12-12 09:17:41 +000021552 "include/tdep.h" ) CONFIG_LINKS="$CONFIG_LINKS include/tdep.h:include/tdep-$target_arch.h" ;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021553 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021554 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21555 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21556echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21557 { (exit 1); exit 1; }; };;
21558 esac
21559done
21560
21561# If the user did not use the arguments to specify the items to instantiate,
21562# then the envvar interface is used. Set only those that are not.
21563# We use the long form for the default assignment because of an extremely
21564# bizarre bug on SunOS 4.1.3.
21565if $ac_need_defaults; then
21566 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21567 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21568 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
21569 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21570fi
21571
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021572# Have a temporary directory for convenience. Make it in the build tree
21573# simply because there is no reason to put it here, and in addition,
21574# creating and moving files from /tmp can sometimes cause problems.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021575# Create a temporary directory, and hook for its removal unless debugging.
21576$debug ||
21577{
21578 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21579 trap '{ (exit 1); exit 1; }' 1 2 13 15
21580}
21581
21582# Create a (secure) tmp directory for tmp files.
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021583
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021584{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021585 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021586 test -n "$tmp" && test -d "$tmp"
21587} ||
21588{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021589 tmp=./confstat$$-$RANDOM
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021590 (umask 077 && mkdir $tmp)
21591} ||
21592{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021593 echo "$me: cannot create a temporary directory in ." >&2
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021594 { (exit 1); exit 1; }
21595}
21596
21597_ACEOF
21598
21599cat >>$CONFIG_STATUS <<_ACEOF
21600
21601#
21602# CONFIG_FILES section.
21603#
21604
21605# No need to generate the scripts if there are no CONFIG_FILES.
21606# This happens for instance when ./config.status config.h
21607if test -n "\$CONFIG_FILES"; then
21608 # Protect against being on the right side of a sed subst in config.status.
21609 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21610 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21611s,@SHELL@,$SHELL,;t t
21612s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21613s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21614s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21615s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21616s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21617s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21618s,@exec_prefix@,$exec_prefix,;t t
21619s,@prefix@,$prefix,;t t
21620s,@program_transform_name@,$program_transform_name,;t t
21621s,@bindir@,$bindir,;t t
21622s,@sbindir@,$sbindir,;t t
21623s,@libexecdir@,$libexecdir,;t t
21624s,@datadir@,$datadir,;t t
21625s,@sysconfdir@,$sysconfdir,;t t
21626s,@sharedstatedir@,$sharedstatedir,;t t
21627s,@localstatedir@,$localstatedir,;t t
21628s,@libdir@,$libdir,;t t
21629s,@includedir@,$includedir,;t t
21630s,@oldincludedir@,$oldincludedir,;t t
21631s,@infodir@,$infodir,;t t
21632s,@mandir@,$mandir,;t t
21633s,@build_alias@,$build_alias,;t t
21634s,@host_alias@,$host_alias,;t t
21635s,@target_alias@,$target_alias,;t t
21636s,@DEFS@,$DEFS,;t t
21637s,@ECHO_C@,$ECHO_C,;t t
21638s,@ECHO_N@,$ECHO_N,;t t
21639s,@ECHO_T@,$ECHO_T,;t t
21640s,@LIBS@,$LIBS,;t t
21641s,@build@,$build,;t t
21642s,@build_cpu@,$build_cpu,;t t
21643s,@build_vendor@,$build_vendor,;t t
21644s,@build_os@,$build_os,;t t
21645s,@host@,$host,;t t
21646s,@host_cpu@,$host_cpu,;t t
21647s,@host_vendor@,$host_vendor,;t t
21648s,@host_os@,$host_os,;t t
21649s,@target@,$target,;t t
21650s,@target_cpu@,$target_cpu,;t t
21651s,@target_vendor@,$target_vendor,;t t
21652s,@target_os@,$target_os,;t t
21653s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21654s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21655s,@INSTALL_DATA@,$INSTALL_DATA,;t t
homeip.net!davidm34fa1222004-08-17 15:34:28 +000021656s,@CYGPATH_W@,$CYGPATH_W,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021657s,@PACKAGE@,$PACKAGE,;t t
21658s,@VERSION@,$VERSION,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021659s,@ACLOCAL@,$ACLOCAL,;t t
21660s,@AUTOCONF@,$AUTOCONF,;t t
21661s,@AUTOMAKE@,$AUTOMAKE,;t t
21662s,@AUTOHEADER@,$AUTOHEADER,;t t
21663s,@MAKEINFO@,$MAKEINFO,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021664s,@install_sh@,$install_sh,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021665s,@STRIP@,$STRIP,;t t
21666s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021667s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
homeip.net!davidm34fa1222004-08-17 15:34:28 +000021668s,@mkdir_p@,$mkdir_p,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021669s,@AWK@,$AWK,;t t
21670s,@SET_MAKE@,$SET_MAKE,;t t
homeip.net!davidm34fa1222004-08-17 15:34:28 +000021671s,@am__leading_dot@,$am__leading_dot,;t t
21672s,@AMTAR@,$AMTAR,;t t
21673s,@am__tar@,$am__tar,;t t
21674s,@am__untar@,$am__untar,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021675s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21676s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21677s,@MAINT@,$MAINT,;t t
21678s,@CC@,$CC,;t t
21679s,@CFLAGS@,$CFLAGS,;t t
21680s,@LDFLAGS@,$LDFLAGS,;t t
21681s,@CPPFLAGS@,$CPPFLAGS,;t t
21682s,@ac_ct_CC@,$ac_ct_CC,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021683s,@EXEEXT@,$EXEEXT,;t t
21684s,@OBJEXT@,$OBJEXT,;t t
21685s,@DEPDIR@,$DEPDIR,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021686s,@am__include@,$am__include,;t t
21687s,@am__quote@,$am__quote,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021688s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21689s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21690s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021691s,@CCDEPMODE@,$CCDEPMODE,;t t
homeip.net!davidm34fa1222004-08-17 15:34:28 +000021692s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21693s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
mostang.com!davidm4f17bce2003-03-28 07:43:22 +000021694s,@CXX@,$CXX,;t t
21695s,@CXXFLAGS@,$CXXFLAGS,;t t
21696s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21697s,@CXXDEPMODE@,$CXXDEPMODE,;t t
homeip.net!davidm34fa1222004-08-17 15:34:28 +000021698s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21699s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021700s,@EGREP@,$EGREP,;t t
mostang.com!davidmf26451a2003-01-16 03:10:11 +000021701s,@LN_S@,$LN_S,;t t
21702s,@ECHO@,$ECHO,;t t
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021703s,@AR@,$AR,;t t
21704s,@ac_ct_AR@,$ac_ct_AR,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021705s,@RANLIB@,$RANLIB,;t t
21706s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021707s,@CPP@,$CPP,;t t
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021708s,@CXXCPP@,$CXXCPP,;t t
21709s,@F77@,$F77,;t t
21710s,@FFLAGS@,$FFLAGS,;t t
21711s,@ac_ct_F77@,$ac_ct_F77,;t t
mostang.com!davidmf26451a2003-01-16 03:10:11 +000021712s,@LIBTOOL@,$LIBTOOL,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021713s,@CCAS@,$CCAS,;t t
21714s,@CCASFLAGS@,$CCASFLAGS,;t t
mostang.com!davidm6af90d02003-02-15 08:53:55 +000021715s,@LIBOBJS@,$LIBOBJS,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021716s,@REMOTE_ONLY_TRUE@,$REMOTE_ONLY_TRUE,;t t
21717s,@REMOTE_ONLY_FALSE@,$REMOTE_ONLY_FALSE,;t t
21718s,@ARCH_IA64_TRUE@,$ARCH_IA64_TRUE,;t t
21719s,@ARCH_IA64_FALSE@,$ARCH_IA64_FALSE,;t t
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000021720s,@ARCH_HPPA_TRUE@,$ARCH_HPPA_TRUE,;t t
21721s,@ARCH_HPPA_FALSE@,$ARCH_HPPA_FALSE,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021722s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t
21723s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t
mostang.com!davidma8db0b32003-02-08 10:10:59 +000021724s,@OS_LINUX_TRUE@,$OS_LINUX_TRUE,;t t
21725s,@OS_LINUX_FALSE@,$OS_LINUX_FALSE,;t t
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000021726s,@OS_HPUX_TRUE@,$OS_HPUX_TRUE,;t t
21727s,@OS_HPUX_FALSE@,$OS_HPUX_FALSE,;t t
mostang.com!davidm542e0262004-05-05 01:58:44 +000021728s,@build_arch@,$build_arch,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021729s,@arch@,$arch,;t t
21730s,@ARCH@,$ARCH,;t t
hp.com!davidm2de17682004-04-20 16:53:44 +000021731s,@LDFLAGS_STATIC_LIBCXA@,$LDFLAGS_STATIC_LIBCXA,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021732s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21733CEOF
21734
21735_ACEOF
21736
21737 cat >>$CONFIG_STATUS <<\_ACEOF
21738 # Split the substitutions into bite-sized pieces for seds with
21739 # small command number limits, like on Digital OSF/1 and HP-UX.
21740 ac_max_sed_lines=48
21741 ac_sed_frag=1 # Number of current file.
21742 ac_beg=1 # First line for current file.
21743 ac_end=$ac_max_sed_lines # Line after last line for current file.
21744 ac_more_lines=:
21745 ac_sed_cmds=
21746 while $ac_more_lines; do
21747 if test $ac_beg -gt 1; then
21748 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21749 else
21750 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21751 fi
21752 if test ! -s $tmp/subs.frag; then
21753 ac_more_lines=false
21754 else
21755 # The purpose of the label and of the branching condition is to
21756 # speed up the sed processing (if there are no `@' at all, there
21757 # is no need to browse any of the substitutions).
21758 # These are the two extra sed commands mentioned above.
21759 (echo ':t
21760 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21761 if test -z "$ac_sed_cmds"; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021762 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021763 else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021764 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021765 fi
21766 ac_sed_frag=`expr $ac_sed_frag + 1`
21767 ac_beg=$ac_end
21768 ac_end=`expr $ac_end + $ac_max_sed_lines`
21769 fi
21770 done
21771 if test -z "$ac_sed_cmds"; then
21772 ac_sed_cmds=cat
21773 fi
21774fi # test -n "$CONFIG_FILES"
21775
21776_ACEOF
21777cat >>$CONFIG_STATUS <<\_ACEOF
21778for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21779 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21780 case $ac_file in
21781 - | *:- | *:-:* ) # input from stdin
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021782 cat >$tmp/stdin
21783 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21784 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021785 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021786 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021787 * ) ac_file_in=$ac_file.in ;;
21788 esac
21789
21790 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21791 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21792$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021793 X"$ac_file" : 'X\(//\)[^/]' \| \
21794 X"$ac_file" : 'X\(//\)$' \| \
21795 X"$ac_file" : 'X\(/\)' \| \
21796 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021797echo X"$ac_file" |
21798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21799 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21800 /^X\(\/\/\)$/{ s//\1/; q; }
21801 /^X\(\/\).*/{ s//\1/; q; }
21802 s/.*/./; q'`
21803 { if $as_mkdir_p; then
21804 mkdir -p "$ac_dir"
21805 else
21806 as_dir="$ac_dir"
21807 as_dirs=
21808 while test ! -d "$as_dir"; do
21809 as_dirs="$as_dir $as_dirs"
21810 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21811$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021812 X"$as_dir" : 'X\(//\)[^/]' \| \
21813 X"$as_dir" : 'X\(//\)$' \| \
21814 X"$as_dir" : 'X\(/\)' \| \
21815 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021816echo X"$as_dir" |
21817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21819 /^X\(\/\/\)$/{ s//\1/; q; }
21820 /^X\(\/\).*/{ s//\1/; q; }
21821 s/.*/./; q'`
21822 done
21823 test ! -n "$as_dirs" || mkdir $as_dirs
21824 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21825echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21826 { (exit 1); exit 1; }; }; }
21827
21828 ac_builddir=.
21829
21830if test "$ac_dir" != .; then
21831 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21832 # A "../" for each directory in $ac_dir_suffix.
21833 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21834else
21835 ac_dir_suffix= ac_top_builddir=
21836fi
21837
21838case $srcdir in
21839 .) # No --srcdir option. We are building in place.
21840 ac_srcdir=.
21841 if test -z "$ac_top_builddir"; then
21842 ac_top_srcdir=.
21843 else
21844 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21845 fi ;;
21846 [\\/]* | ?:[\\/]* ) # Absolute path.
21847 ac_srcdir=$srcdir$ac_dir_suffix;
21848 ac_top_srcdir=$srcdir ;;
21849 *) # Relative path.
21850 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21851 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21852esac
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021853
21854# Do not use `cd foo && pwd` to compute absolute paths, because
21855# the directories may not exist.
21856case `pwd` in
21857.) ac_abs_builddir="$ac_dir";;
21858*)
21859 case "$ac_dir" in
21860 .) ac_abs_builddir=`pwd`;;
21861 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21862 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21863 esac;;
21864esac
21865case $ac_abs_builddir in
21866.) ac_abs_top_builddir=${ac_top_builddir}.;;
21867*)
21868 case ${ac_top_builddir}. in
21869 .) ac_abs_top_builddir=$ac_abs_builddir;;
21870 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21871 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21872 esac;;
21873esac
21874case $ac_abs_builddir in
21875.) ac_abs_srcdir=$ac_srcdir;;
21876*)
21877 case $ac_srcdir in
21878 .) ac_abs_srcdir=$ac_abs_builddir;;
21879 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21880 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21881 esac;;
21882esac
21883case $ac_abs_builddir in
21884.) ac_abs_top_srcdir=$ac_top_srcdir;;
21885*)
21886 case $ac_top_srcdir in
21887 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21888 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21889 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21890 esac;;
21891esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021892
21893
21894 case $INSTALL in
21895 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21896 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21897 esac
21898
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021899 # Let's still pretend it is `configure' which instantiates (i.e., don't
21900 # use $as_me), people would be surprised to read:
21901 # /* config.h. Generated by config.status. */
21902 if test x"$ac_file" = x-; then
21903 configure_input=
21904 else
21905 configure_input="$ac_file. "
21906 fi
21907 configure_input=$configure_input"Generated from `echo $ac_file_in |
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021908 sed 's,.*/,,'` by configure."
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021909
21910 # First look for the input files in the build tree, otherwise in the
21911 # src tree.
21912 ac_file_inputs=`IFS=:
21913 for f in $ac_file_in; do
21914 case $f in
21915 -) echo $tmp/stdin ;;
21916 [\\/$]*)
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021917 # Absolute (can't be DOS-style, as IFS=:)
21918 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021919echo "$as_me: error: cannot find input file: $f" >&2;}
21920 { (exit 1); exit 1; }; }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021921 echo "$f";;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021922 *) # Relative
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021923 if test -f "$f"; then
21924 # Build tree
21925 echo "$f"
21926 elif test -f "$srcdir/$f"; then
21927 # Source tree
21928 echo "$srcdir/$f"
21929 else
21930 # /dev/null tree
21931 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021932echo "$as_me: error: cannot find input file: $f" >&2;}
21933 { (exit 1); exit 1; }; }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021934 fi;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021935 esac
21936 done` || { (exit 1); exit 1; }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021937
21938 if test x"$ac_file" != x-; then
21939 { echo "$as_me:$LINENO: creating $ac_file" >&5
21940echo "$as_me: creating $ac_file" >&6;}
21941 rm -f "$ac_file"
21942 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021943_ACEOF
21944cat >>$CONFIG_STATUS <<_ACEOF
21945 sed "$ac_vpsub
21946$extrasub
21947_ACEOF
21948cat >>$CONFIG_STATUS <<\_ACEOF
21949:t
21950/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21951s,@configure_input@,$configure_input,;t t
21952s,@srcdir@,$ac_srcdir,;t t
21953s,@abs_srcdir@,$ac_abs_srcdir,;t t
21954s,@top_srcdir@,$ac_top_srcdir,;t t
21955s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21956s,@builddir@,$ac_builddir,;t t
21957s,@abs_builddir@,$ac_abs_builddir,;t t
21958s,@top_builddir@,$ac_top_builddir,;t t
21959s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21960s,@INSTALL@,$ac_INSTALL,;t t
21961" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21962 rm -f $tmp/stdin
21963 if test x"$ac_file" != x-; then
21964 mv $tmp/out $ac_file
21965 else
21966 cat $tmp/out
21967 rm -f $tmp/out
21968 fi
21969
21970done
21971_ACEOF
21972cat >>$CONFIG_STATUS <<\_ACEOF
21973
21974#
21975# CONFIG_HEADER section.
21976#
21977
21978# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21979# NAME is the cpp macro being defined and VALUE is the value it is being given.
21980#
21981# ac_d sets the value in "#define NAME VALUE" lines.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021982ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21983ac_dB='[ ].*$,\1#\2'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021984ac_dC=' '
21985ac_dD=',;t'
21986# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021987ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021988ac_uB='$,\1#\2define\3'
21989ac_uC=' '
21990ac_uD=',;t'
21991
21992for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21993 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21994 case $ac_file in
21995 - | *:- | *:-:* ) # input from stdin
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021996 cat >$tmp/stdin
21997 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21998 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021999 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022000 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022001 * ) ac_file_in=$ac_file.in ;;
22002 esac
22003
22004 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22005echo "$as_me: creating $ac_file" >&6;}
22006
22007 # First look for the input files in the build tree, otherwise in the
22008 # src tree.
22009 ac_file_inputs=`IFS=:
22010 for f in $ac_file_in; do
22011 case $f in
22012 -) echo $tmp/stdin ;;
22013 [\\/$]*)
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022014 # Absolute (can't be DOS-style, as IFS=:)
22015 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022016echo "$as_me: error: cannot find input file: $f" >&2;}
22017 { (exit 1); exit 1; }; }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022018 # Do quote $f, to prevent DOS paths from being IFS'd.
22019 echo "$f";;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022020 *) # Relative
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022021 if test -f "$f"; then
22022 # Build tree
22023 echo "$f"
22024 elif test -f "$srcdir/$f"; then
22025 # Source tree
22026 echo "$srcdir/$f"
22027 else
22028 # /dev/null tree
22029 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022030echo "$as_me: error: cannot find input file: $f" >&2;}
22031 { (exit 1); exit 1; }; }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022032 fi;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022033 esac
22034 done` || { (exit 1); exit 1; }
22035 # Remove the trailing spaces.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022036 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022037
22038_ACEOF
22039
22040# Transform confdefs.h into two sed scripts, `conftest.defines' and
22041# `conftest.undefs', that substitutes the proper values into
22042# config.h.in to produce config.h. The first handles `#define'
22043# templates, and the second `#undef' templates.
22044# And first: Protect against being on the right side of a sed subst in
22045# config.status. Protect against being in an unquoted here document
22046# in config.status.
22047rm -f conftest.defines conftest.undefs
22048# Using a here document instead of a string reduces the quoting nightmare.
22049# Putting comments in sed scripts is not portable.
22050#
22051# `end' is used to avoid that the second main sed command (meant for
22052# 0-ary CPP macros) applies to n-ary macro definitions.
22053# See the Autoconf documentation for `clear'.
22054cat >confdef2sed.sed <<\_ACEOF
22055s/[\\&,]/\\&/g
22056s,[\\$`],\\&,g
22057t clear
22058: clear
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022059s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022060t end
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022061s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022062: end
22063_ACEOF
22064# If some macros were called several times there might be several times
22065# the same #defines, which is useless. Nevertheless, we may not want to
22066# sort them, since we want the *last* AC-DEFINE to be honored.
22067uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22068sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22069rm -f confdef2sed.sed
22070
22071# This sed command replaces #undef with comments. This is necessary, for
22072# example, in the case of _POSIX_SOURCE, which is predefined and required
22073# on some systems where configure will not decide to define it.
22074cat >>conftest.undefs <<\_ACEOF
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022075s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022076_ACEOF
22077
22078# Break up conftest.defines because some shells have a limit on the size
22079# of here documents, and old seds have small limits too (100 cmds).
22080echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022081echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022082echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22083echo ' :' >>$CONFIG_STATUS
22084rm -f conftest.tail
22085while grep . conftest.defines >/dev/null
22086do
22087 # Write a limited-size here document to $tmp/defines.sed.
22088 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22089 # Speed up: don't consider the non `#define' lines.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022090 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022091 # Work around the forget-to-reset-the-flag bug.
22092 echo 't clr' >>$CONFIG_STATUS
22093 echo ': clr' >>$CONFIG_STATUS
22094 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22095 echo 'CEOF
22096 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22097 rm -f $tmp/in
22098 mv $tmp/out $tmp/in
22099' >>$CONFIG_STATUS
22100 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22101 rm -f conftest.defines
22102 mv conftest.tail conftest.defines
22103done
22104rm -f conftest.defines
22105echo ' fi # grep' >>$CONFIG_STATUS
22106echo >>$CONFIG_STATUS
22107
22108# Break up conftest.undefs because some shells have a limit on the size
22109# of here documents, and old seds have small limits too (100 cmds).
22110echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22111rm -f conftest.tail
22112while grep . conftest.undefs >/dev/null
22113do
22114 # Write a limited-size here document to $tmp/undefs.sed.
22115 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22116 # Speed up: don't consider the non `#undef'
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022117 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022118 # Work around the forget-to-reset-the-flag bug.
22119 echo 't clr' >>$CONFIG_STATUS
22120 echo ': clr' >>$CONFIG_STATUS
22121 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22122 echo 'CEOF
22123 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22124 rm -f $tmp/in
22125 mv $tmp/out $tmp/in
22126' >>$CONFIG_STATUS
22127 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22128 rm -f conftest.undefs
22129 mv conftest.tail conftest.undefs
22130done
22131rm -f conftest.undefs
22132
22133cat >>$CONFIG_STATUS <<\_ACEOF
22134 # Let's still pretend it is `configure' which instantiates (i.e., don't
22135 # use $as_me), people would be surprised to read:
22136 # /* config.h. Generated by config.status. */
22137 if test x"$ac_file" = x-; then
22138 echo "/* Generated by configure. */" >$tmp/config.h
22139 else
22140 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22141 fi
22142 cat $tmp/in >>$tmp/config.h
22143 rm -f $tmp/in
22144 if test x"$ac_file" != x-; then
hp.com!davidm01b02dd2003-09-24 21:51:53 +000022145 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022146 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22147echo "$as_me: $ac_file is unchanged" >&6;}
22148 else
22149 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22150$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022151 X"$ac_file" : 'X\(//\)[^/]' \| \
22152 X"$ac_file" : 'X\(//\)$' \| \
22153 X"$ac_file" : 'X\(/\)' \| \
22154 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022155echo X"$ac_file" |
22156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22157 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22158 /^X\(\/\/\)$/{ s//\1/; q; }
22159 /^X\(\/\).*/{ s//\1/; q; }
22160 s/.*/./; q'`
22161 { if $as_mkdir_p; then
22162 mkdir -p "$ac_dir"
22163 else
22164 as_dir="$ac_dir"
22165 as_dirs=
22166 while test ! -d "$as_dir"; do
22167 as_dirs="$as_dir $as_dirs"
22168 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22169$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022170 X"$as_dir" : 'X\(//\)[^/]' \| \
22171 X"$as_dir" : 'X\(//\)$' \| \
22172 X"$as_dir" : 'X\(/\)' \| \
22173 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022174echo X"$as_dir" |
22175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22176 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22177 /^X\(\/\/\)$/{ s//\1/; q; }
22178 /^X\(\/\).*/{ s//\1/; q; }
22179 s/.*/./; q'`
22180 done
22181 test ! -n "$as_dirs" || mkdir $as_dirs
22182 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22183echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22184 { (exit 1); exit 1; }; }; }
22185
22186 rm -f $ac_file
22187 mv $tmp/config.h $ac_file
22188 fi
22189 else
22190 cat $tmp/config.h
22191 rm -f $tmp/config.h
22192 fi
homeip.net!davidm34fa1222004-08-17 15:34:28 +000022193# Compute $ac_file's index in $config_headers.
22194_am_stamp_count=1
22195for _am_header in $config_headers :; do
22196 case $_am_header in
22197 $ac_file | $ac_file:* )
22198 break ;;
22199 * )
22200 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022201 esac
22202done
homeip.net!davidm34fa1222004-08-17 15:34:28 +000022203echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22204$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22205 X$ac_file : 'X\(//\)[^/]' \| \
22206 X$ac_file : 'X\(//\)$' \| \
22207 X$ac_file : 'X\(/\)' \| \
22208 . : '\(.\)' 2>/dev/null ||
22209echo X$ac_file |
22210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22211 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22212 /^X\(\/\/\)$/{ s//\1/; q; }
22213 /^X\(\/\).*/{ s//\1/; q; }
22214 s/.*/./; q'`/stamp-h$_am_stamp_count
22215done
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022216_ACEOF
22217cat >>$CONFIG_STATUS <<\_ACEOF
22218
22219#
22220# CONFIG_LINKS section.
22221#
22222
22223for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22224 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22225 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22226
22227 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22228echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22229
22230 if test ! -r $srcdir/$ac_source; then
22231 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22232echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22233 { (exit 1); exit 1; }; }
22234 fi
22235 rm -f $ac_dest
22236
22237 # Make relative symlinks.
22238 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22239$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022240 X"$ac_dest" : 'X\(//\)[^/]' \| \
22241 X"$ac_dest" : 'X\(//\)$' \| \
22242 X"$ac_dest" : 'X\(/\)' \| \
22243 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022244echo X"$ac_dest" |
22245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22247 /^X\(\/\/\)$/{ s//\1/; q; }
22248 /^X\(\/\).*/{ s//\1/; q; }
22249 s/.*/./; q'`
22250 { if $as_mkdir_p; then
22251 mkdir -p "$ac_dest_dir"
22252 else
22253 as_dir="$ac_dest_dir"
22254 as_dirs=
22255 while test ! -d "$as_dir"; do
22256 as_dirs="$as_dir $as_dirs"
22257 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22258$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022259 X"$as_dir" : 'X\(//\)[^/]' \| \
22260 X"$as_dir" : 'X\(//\)$' \| \
22261 X"$as_dir" : 'X\(/\)' \| \
22262 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022263echo X"$as_dir" |
22264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22266 /^X\(\/\/\)$/{ s//\1/; q; }
22267 /^X\(\/\).*/{ s//\1/; q; }
22268 s/.*/./; q'`
22269 done
22270 test ! -n "$as_dirs" || mkdir $as_dirs
22271 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22272echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22273 { (exit 1); exit 1; }; }; }
22274
22275 ac_builddir=.
22276
22277if test "$ac_dest_dir" != .; then
22278 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22279 # A "../" for each directory in $ac_dir_suffix.
22280 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22281else
22282 ac_dir_suffix= ac_top_builddir=
22283fi
22284
22285case $srcdir in
22286 .) # No --srcdir option. We are building in place.
22287 ac_srcdir=.
22288 if test -z "$ac_top_builddir"; then
22289 ac_top_srcdir=.
22290 else
22291 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22292 fi ;;
22293 [\\/]* | ?:[\\/]* ) # Absolute path.
22294 ac_srcdir=$srcdir$ac_dir_suffix;
22295 ac_top_srcdir=$srcdir ;;
22296 *) # Relative path.
22297 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22298 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22299esac
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022300
22301# Do not use `cd foo && pwd` to compute absolute paths, because
22302# the directories may not exist.
22303case `pwd` in
22304.) ac_abs_builddir="$ac_dest_dir";;
22305*)
22306 case "$ac_dest_dir" in
22307 .) ac_abs_builddir=`pwd`;;
22308 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
22309 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
22310 esac;;
22311esac
22312case $ac_abs_builddir in
22313.) ac_abs_top_builddir=${ac_top_builddir}.;;
22314*)
22315 case ${ac_top_builddir}. in
22316 .) ac_abs_top_builddir=$ac_abs_builddir;;
22317 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22318 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22319 esac;;
22320esac
22321case $ac_abs_builddir in
22322.) ac_abs_srcdir=$ac_srcdir;;
22323*)
22324 case $ac_srcdir in
22325 .) ac_abs_srcdir=$ac_abs_builddir;;
22326 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22327 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22328 esac;;
22329esac
22330case $ac_abs_builddir in
22331.) ac_abs_top_srcdir=$ac_top_srcdir;;
22332*)
22333 case $ac_top_srcdir in
22334 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22335 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22336 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22337 esac;;
22338esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022339
22340
22341 case $srcdir in
22342 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
22343 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
22344 esac
22345
22346 # Try a symlink, then a hard link, then a copy.
22347 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22348 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
22349 cp -p $srcdir/$ac_source $ac_dest ||
22350 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
22351echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
22352 { (exit 1); exit 1; }; }
22353done
22354_ACEOF
22355cat >>$CONFIG_STATUS <<\_ACEOF
22356
22357#
22358# CONFIG_COMMANDS section.
22359#
22360for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22361 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22362 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22363 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22364$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022365 X"$ac_dest" : 'X\(//\)[^/]' \| \
22366 X"$ac_dest" : 'X\(//\)$' \| \
22367 X"$ac_dest" : 'X\(/\)' \| \
22368 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022369echo X"$ac_dest" |
22370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22371 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22372 /^X\(\/\/\)$/{ s//\1/; q; }
22373 /^X\(\/\).*/{ s//\1/; q; }
22374 s/.*/./; q'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022375 { if $as_mkdir_p; then
22376 mkdir -p "$ac_dir"
22377 else
22378 as_dir="$ac_dir"
22379 as_dirs=
22380 while test ! -d "$as_dir"; do
22381 as_dirs="$as_dir $as_dirs"
22382 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22383$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22384 X"$as_dir" : 'X\(//\)[^/]' \| \
22385 X"$as_dir" : 'X\(//\)$' \| \
22386 X"$as_dir" : 'X\(/\)' \| \
22387 . : '\(.\)' 2>/dev/null ||
22388echo X"$as_dir" |
22389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22390 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22391 /^X\(\/\/\)$/{ s//\1/; q; }
22392 /^X\(\/\).*/{ s//\1/; q; }
22393 s/.*/./; q'`
22394 done
22395 test ! -n "$as_dirs" || mkdir $as_dirs
22396 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22397echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22398 { (exit 1); exit 1; }; }; }
22399
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022400 ac_builddir=.
22401
22402if test "$ac_dir" != .; then
22403 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22404 # A "../" for each directory in $ac_dir_suffix.
22405 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22406else
22407 ac_dir_suffix= ac_top_builddir=
22408fi
22409
22410case $srcdir in
22411 .) # No --srcdir option. We are building in place.
22412 ac_srcdir=.
22413 if test -z "$ac_top_builddir"; then
22414 ac_top_srcdir=.
22415 else
22416 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22417 fi ;;
22418 [\\/]* | ?:[\\/]* ) # Absolute path.
22419 ac_srcdir=$srcdir$ac_dir_suffix;
22420 ac_top_srcdir=$srcdir ;;
22421 *) # Relative path.
22422 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22423 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22424esac
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022425
22426# Do not use `cd foo && pwd` to compute absolute paths, because
22427# the directories may not exist.
22428case `pwd` in
22429.) ac_abs_builddir="$ac_dir";;
22430*)
22431 case "$ac_dir" in
22432 .) ac_abs_builddir=`pwd`;;
22433 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22434 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22435 esac;;
22436esac
22437case $ac_abs_builddir in
22438.) ac_abs_top_builddir=${ac_top_builddir}.;;
22439*)
22440 case ${ac_top_builddir}. in
22441 .) ac_abs_top_builddir=$ac_abs_builddir;;
22442 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22443 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22444 esac;;
22445esac
22446case $ac_abs_builddir in
22447.) ac_abs_srcdir=$ac_srcdir;;
22448*)
22449 case $ac_srcdir in
22450 .) ac_abs_srcdir=$ac_abs_builddir;;
22451 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22452 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22453 esac;;
22454esac
22455case $ac_abs_builddir in
22456.) ac_abs_top_srcdir=$ac_top_srcdir;;
22457*)
22458 case $ac_top_srcdir in
22459 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22460 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22461 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22462 esac;;
22463esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022464
22465
22466 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22467echo "$as_me: executing $ac_dest commands" >&6;}
22468 case $ac_dest in
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022469 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22470 # Strip MF so we end up with the name of the file.
22471 mf=`echo "$mf" | sed -e 's/:.*$//'`
22472 # Check whether this is an Automake generated Makefile or not.
22473 # We used to match only the files named `Makefile.in', but
22474 # some people rename them; so instead we look at the file content.
22475 # Grep'ing the first line is not enough: some people post-process
22476 # each Makefile.in and add a new line on top of each file to say so.
22477 # So let's grep whole file.
22478 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22479 dirpart=`(dirname "$mf") 2>/dev/null ||
22480$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022481 X"$mf" : 'X\(//\)[^/]' \| \
22482 X"$mf" : 'X\(//\)$' \| \
22483 X"$mf" : 'X\(/\)' \| \
22484 . : '\(.\)' 2>/dev/null ||
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022485echo X"$mf" |
22486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22488 /^X\(\/\/\)$/{ s//\1/; q; }
22489 /^X\(\/\).*/{ s//\1/; q; }
22490 s/.*/./; q'`
22491 else
22492 continue
22493 fi
homeip.net!davidm34fa1222004-08-17 15:34:28 +000022494 # Extract the definition of DEPDIR, am__include, and am__quote
22495 # from the Makefile without running `make'.
22496 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022497 test -z "$DEPDIR" && continue
homeip.net!davidm34fa1222004-08-17 15:34:28 +000022498 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22499 test -z "am__include" && continue
22500 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022501 # When using ansi2knr, U may be empty or an underscore; expand it
homeip.net!davidm34fa1222004-08-17 15:34:28 +000022502 U=`sed -n 's/^U = //p' < "$mf"`
22503 # Find all dependency output files, they are included files with
22504 # $(DEPDIR) in their names. We invoke sed twice because it is the
22505 # simplest approach to changing $(DEPDIR) to its actual value in the
22506 # expansion.
22507 for file in `sed -n "
22508 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022509 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22510 # Make sure the directory exists.
22511 test -f "$dirpart/$file" && continue
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022512 fdir=`(dirname "$file") 2>/dev/null ||
22513$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022514 X"$file" : 'X\(//\)[^/]' \| \
22515 X"$file" : 'X\(//\)$' \| \
22516 X"$file" : 'X\(/\)' \| \
22517 . : '\(.\)' 2>/dev/null ||
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022518echo X"$file" |
22519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22520 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22521 /^X\(\/\/\)$/{ s//\1/; q; }
22522 /^X\(\/\).*/{ s//\1/; q; }
22523 s/.*/./; q'`
22524 { if $as_mkdir_p; then
22525 mkdir -p $dirpart/$fdir
22526 else
22527 as_dir=$dirpart/$fdir
22528 as_dirs=
22529 while test ! -d "$as_dir"; do
22530 as_dirs="$as_dir $as_dirs"
22531 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22532$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022533 X"$as_dir" : 'X\(//\)[^/]' \| \
22534 X"$as_dir" : 'X\(//\)$' \| \
22535 X"$as_dir" : 'X\(/\)' \| \
22536 . : '\(.\)' 2>/dev/null ||
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022537echo X"$as_dir" |
22538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22539 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22540 /^X\(\/\/\)$/{ s//\1/; q; }
22541 /^X\(\/\).*/{ s//\1/; q; }
22542 s/.*/./; q'`
22543 done
22544 test ! -n "$as_dirs" || mkdir $as_dirs
22545 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22546echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22547 { (exit 1); exit 1; }; }; }
22548
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022549 # echo "creating $dirpart/$file"
22550 echo '# dummy' > "$dirpart/$file"
22551 done
22552done
22553 ;;
22554 esac
22555done
22556_ACEOF
22557
22558cat >>$CONFIG_STATUS <<\_ACEOF
22559
22560{ (exit 0); exit 0; }
22561_ACEOF
22562chmod +x $CONFIG_STATUS
22563ac_clean_files=$ac_clean_files_save
22564
22565
22566# configure is writing to config.log, and then calls config.status.
22567# config.status does its own redirection, appending to config.log.
22568# Unfortunately, on DOS this fails, as config.log is still kept open
22569# by configure, so config.status won't be able to write to it; its
22570# output is simply discarded. So we exec the FD to /dev/null,
22571# effectively closing config.log, so it can be properly (re)opened and
22572# appended to by config.status. When coming back to configure, we
22573# need to make the FD available again.
22574if test "$no_create" != yes; then
22575 ac_cs_success=:
hp.com!davidm01b02dd2003-09-24 21:51:53 +000022576 ac_config_status_args=
22577 test "$silent" = yes &&
22578 ac_config_status_args="$ac_config_status_args --quiet"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022579 exec 5>/dev/null
hp.com!davidm01b02dd2003-09-24 21:51:53 +000022580 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022581 exec 5>>config.log
22582 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22583 # would make configure fail if this is the last instruction.
22584 $ac_cs_success || { (exit 1); exit 1; }
22585fi
22586