blob: 1d2990b9f65f4aea2f8ca33e8b82768d1a191382 [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
mostang.com!davidm542e0262004-05-05 01:58:44 +0000468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CCAS CCASFLAGS LIBOBJS REMOTE_ONLY_TRUE REMOTE_ONLY_FALSE ARCH_IA64_TRUE ARCH_IA64_FALSE ARCH_HPPA_TRUE ARCH_HPPA_FALSE ARCH_X86_TRUE ARCH_X86_FALSE OS_LINUX_TRUE OS_LINUX_FALSE OS_HPUX_TRUE OS_HPUX_FALSE 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
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
hp.com!davidm75f19902004-04-28 04:43:25 +0000957\`configure' configures libunwind 0.97 to adapt to many kinds of systems.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE. See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979 cat <<_ACEOF
980Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
mostang.com!davidmc325d9c2004-01-24 06:45:18 +0000982 [$ac_default_prefix]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
mostang.com!davidmc325d9c2004-01-24 06:45:18 +0000984 [PREFIX]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006_ACEOF
1007
1008 cat <<\_ACEOF
1009
1010Program names:
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014
1015System types:
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018 --target=TARGET configure for building compilers for TARGET [HOST]
1019_ACEOF
1020fi
1021
1022if test -n "$ac_init_help"; then
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001023 case $ac_init_help in
hp.com!davidm75f19902004-04-28 04:43:25 +00001024 short | recursive ) echo "Configuration of libunwind 0.97:";;
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001025 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001026 cat <<\_ACEOF
1027
1028Optional Features:
1029 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1030 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001031 --enable-maintainer-mode enable make rules and dependencies not useful
1032 (and sometimes confusing) to the casual installer
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001033 --disable-dependency-tracking Speeds up one-time builds
1034 --enable-dependency-tracking Do not reject slow dependency extractors
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001035 --enable-shared[=PKGS]
1036 build shared libraries [default=yes]
1037 --enable-static[=PKGS]
1038 build static libraries [default=yes]
1039 --enable-fast-install[=PKGS]
1040 optimize for fast installation [default=yes]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001041 --disable-libtool-lock avoid locking (might break parallel builds)
1042 --enable-debug turn on debug support (slows down execution)
1043
1044Optional Packages:
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1048 --with-pic try to use only PIC/non-PIC objects [default=use
1049 both]
1050 --with-tags[=TAGS]
1051 include additional configurations [automatic]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001052
1053Some influential environment variables:
1054 CC C compiler command
1055 CFLAGS C compiler flags
1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1057 nonstandard directory <lib dir>
1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059 headers in a nonstandard directory <include dir>
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00001060 CXX C++ compiler command
1061 CXXFLAGS C++ compiler flags
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001062 CPP C preprocessor
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001063 CXXCPP C++ preprocessor
1064 F77 Fortran 77 compiler command
1065 FFLAGS Fortran 77 compiler flags
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001066
1067Use these variables to override the choices made by `configure' or to help
1068it to find libraries and programs with nonstandard names/locations.
1069
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001070Report bugs to <libunwind@linux.hpl.hp.com>.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001071_ACEOF
1072fi
1073
1074if test "$ac_init_help" = "recursive"; then
1075 # If there are subdirs, report their specific --help.
1076 ac_popdir=`pwd`
1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078 test -d $ac_dir || continue
1079 ac_builddir=.
1080
1081if test "$ac_dir" != .; then
1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1083 # A "../" for each directory in $ac_dir_suffix.
1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1085else
1086 ac_dir_suffix= ac_top_builddir=
1087fi
1088
1089case $srcdir in
1090 .) # No --srcdir option. We are building in place.
1091 ac_srcdir=.
1092 if test -z "$ac_top_builddir"; then
1093 ac_top_srcdir=.
1094 else
1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1096 fi ;;
1097 [\\/]* | ?:[\\/]* ) # Absolute path.
1098 ac_srcdir=$srcdir$ac_dir_suffix;
1099 ac_top_srcdir=$srcdir ;;
1100 *) # Relative path.
1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1103esac
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001104
1105# Do not use `cd foo && pwd` to compute absolute paths, because
1106# the directories may not exist.
1107case `pwd` in
1108.) ac_abs_builddir="$ac_dir";;
1109*)
1110 case "$ac_dir" in
1111 .) ac_abs_builddir=`pwd`;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1114 esac;;
1115esac
1116case $ac_abs_builddir in
1117.) ac_abs_top_builddir=${ac_top_builddir}.;;
1118*)
1119 case ${ac_top_builddir}. in
1120 .) ac_abs_top_builddir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1123 esac;;
1124esac
1125case $ac_abs_builddir in
1126.) ac_abs_srcdir=$ac_srcdir;;
1127*)
1128 case $ac_srcdir in
1129 .) ac_abs_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1132 esac;;
1133esac
1134case $ac_abs_builddir in
1135.) ac_abs_top_srcdir=$ac_top_srcdir;;
1136*)
1137 case $ac_top_srcdir in
1138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1141 esac;;
1142esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001143
1144 cd $ac_dir
1145 # Check for guested configure; otherwise get Cygnus style configure.
1146 if test -f $ac_srcdir/configure.gnu; then
1147 echo
1148 $SHELL $ac_srcdir/configure.gnu --help=recursive
1149 elif test -f $ac_srcdir/configure; then
1150 echo
1151 $SHELL $ac_srcdir/configure --help=recursive
1152 elif test -f $ac_srcdir/configure.ac ||
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001153 test -f $ac_srcdir/configure.in; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001154 echo
1155 $ac_configure --help
1156 else
1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001159 cd "$ac_popdir"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001160 done
1161fi
1162
1163test -n "$ac_init_help" && exit 0
1164if $ac_init_version; then
1165 cat <<\_ACEOF
hp.com!davidm75f19902004-04-28 04:43:25 +00001166libunwind configure 0.97
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001167generated by GNU Autoconf 2.59
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001168
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001169Copyright (C) 2003 Free Software Foundation, Inc.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001170This configure script is free software; the Free Software Foundation
1171gives unlimited permission to copy, distribute and modify it.
1172_ACEOF
1173 exit 0
1174fi
1175exec 5>config.log
1176cat >&5 <<_ACEOF
1177This file contains any messages produced by compilers while
1178running configure, to aid debugging if configure makes a mistake.
1179
hp.com!davidm75f19902004-04-28 04:43:25 +00001180It was created by libunwind $as_me 0.97, which was
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001181generated by GNU Autoconf 2.59. Invocation command line was
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001182
1183 $ $0 $@
1184
1185_ACEOF
1186{
1187cat <<_ASUNAME
1188## --------- ##
1189## Platform. ##
1190## --------- ##
1191
1192hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197
1198/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1200
1201/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1202/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1203/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1205/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1206/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1207/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1208
1209_ASUNAME
1210
1211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1212for as_dir in $PATH
1213do
1214 IFS=$as_save_IFS
1215 test -z "$as_dir" && as_dir=.
1216 echo "PATH: $as_dir"
1217done
1218
1219} >&5
1220
1221cat >&5 <<_ACEOF
1222
1223
1224## ----------- ##
1225## Core tests. ##
1226## ----------- ##
1227
1228_ACEOF
1229
1230
1231# Keep a trace of the command line.
1232# Strip out --no-create and --no-recursion so they do not pile up.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001233# Strip out --silent because we don't want to record it for future runs.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001234# Also quote any args containing shell meta-characters.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001235# Make two passes to allow for proper duplicate-argument suppression.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001236ac_configure_args=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001237ac_configure_args0=
1238ac_configure_args1=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001239ac_sep=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001240ac_must_keep_next=false
1241for ac_pass in 1 2
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001242do
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001243 for ac_arg
1244 do
1245 case $ac_arg in
1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1249 continue ;;
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1252 esac
1253 case $ac_pass in
1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255 2)
1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257 if test $ac_must_keep_next = true; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001258 ac_must_keep_next=false # Got value, back to normal.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001259 else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001260 case $ac_arg in
1261 *=* | --config-cache | -C | -disable-* | --disable-* \
1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264 | -with-* | --with-* | -without-* | --without-* | --x)
1265 case "$ac_configure_args0 " in
1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1267 esac
1268 ;;
1269 -* ) ac_must_keep_next=true ;;
1270 esac
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001271 fi
1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273 # Get rid of the leading space.
1274 ac_sep=" "
1275 ;;
1276 esac
1277 done
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001278done
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001279$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001281
1282# When interrupted or exit'd, cleanup temporary files, and complete
1283# config.log. We remove comments because anyway the quotes in there
1284# would cause problems or look ugly.
1285# WARNING: Be sure not to use single quotes in there, as some shells,
1286# such as our DU 5.0 friend, will then `close' the trap.
1287trap 'exit_status=$?
1288 # Save into config.log some information that might help in debugging.
1289 {
1290 echo
1291
1292 cat <<\_ASBOX
1293## ---------------- ##
1294## Cache variables. ##
1295## ---------------- ##
1296_ASBOX
1297 echo
1298 # The following way of writing the cache mishandles newlines in values,
1299{
1300 (set) 2>&1 |
1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302 *ac_space=\ *)
1303 sed -n \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001306 ;;
1307 *)
1308 sed -n \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001310 ;;
1311 esac;
1312}
1313 echo
1314
1315 cat <<\_ASBOX
1316## ----------------- ##
1317## Output variables. ##
1318## ----------------- ##
1319_ASBOX
1320 echo
1321 for ac_var in $ac_subst_vars
1322 do
1323 eval ac_val=$`echo $ac_var`
1324 echo "$ac_var='"'"'$ac_val'"'"'"
1325 done | sort
1326 echo
1327
1328 if test -n "$ac_subst_files"; then
1329 cat <<\_ASBOX
1330## ------------- ##
1331## Output files. ##
1332## ------------- ##
1333_ASBOX
1334 echo
1335 for ac_var in $ac_subst_files
1336 do
1337 eval ac_val=$`echo $ac_var`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001338 echo "$ac_var='"'"'$ac_val'"'"'"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001339 done | sort
1340 echo
1341 fi
1342
1343 if test -s confdefs.h; then
1344 cat <<\_ASBOX
1345## ----------- ##
1346## confdefs.h. ##
1347## ----------- ##
1348_ASBOX
1349 echo
1350 sed "/^$/d" confdefs.h | sort
1351 echo
1352 fi
1353 test "$ac_signal" != 0 &&
1354 echo "$as_me: caught signal $ac_signal"
1355 echo "$as_me: exit $exit_status"
1356 } >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001357 rm -f core *.core &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001358 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1359 exit $exit_status
1360 ' 0
1361for ac_signal in 1 2 13 15; do
1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1363done
1364ac_signal=0
1365
1366# confdefs.h avoids OS command line length limits that DEFS can exceed.
1367rm -rf conftest* confdefs.h
1368# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369echo >confdefs.h
1370
1371# Predefined preprocessor variables.
1372
1373cat >>confdefs.h <<_ACEOF
1374#define PACKAGE_NAME "$PACKAGE_NAME"
1375_ACEOF
1376
1377
1378cat >>confdefs.h <<_ACEOF
1379#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1380_ACEOF
1381
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_VERSION "$PACKAGE_VERSION"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_STRING "$PACKAGE_STRING"
1390_ACEOF
1391
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1395_ACEOF
1396
1397
1398# Let the site file select an alternate cache file if it wants to.
1399# Prefer explicitly selected file to automatically selected ones.
1400if test -z "$CONFIG_SITE"; then
1401 if test "x$prefix" != xNONE; then
1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1403 else
1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405 fi
1406fi
1407for ac_site_file in $CONFIG_SITE; do
1408 if test -r "$ac_site_file"; then
1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410echo "$as_me: loading site script $ac_site_file" >&6;}
1411 sed 's/^/| /' "$ac_site_file" >&5
1412 . "$ac_site_file"
1413 fi
1414done
1415
1416if test -r "$cache_file"; then
1417 # Some versions of bash will fail to source /dev/null (special
1418 # files actually), so we avoid doing that.
1419 if test -f "$cache_file"; then
1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421echo "$as_me: loading cache $cache_file" >&6;}
1422 case $cache_file in
1423 [\\/]* | ?:[\\/]* ) . $cache_file;;
1424 *) . ./$cache_file;;
1425 esac
1426 fi
1427else
1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429echo "$as_me: creating cache $cache_file" >&6;}
1430 >$cache_file
1431fi
1432
1433# Check that the precious variables saved in the cache have kept the same
1434# value.
1435ac_cache_corrupted=false
1436for ac_var in `(set) 2>&1 |
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439 eval ac_new_set=\$ac_env_${ac_var}_set
1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441 eval ac_new_val="\$ac_env_${ac_var}_value"
1442 case $ac_old_set,$ac_new_set in
1443 set,)
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1447 ,set)
1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450 ac_cache_corrupted=: ;;
1451 ,);;
1452 *)
1453 if test "x$ac_old_val" != "x$ac_new_val"; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001454 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001455echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001456 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001457echo "$as_me: former value: $ac_old_val" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001458 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001459echo "$as_me: current value: $ac_new_val" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001460 ac_cache_corrupted=:
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001461 fi;;
1462 esac
1463 # Pass precious variables to config.status.
1464 if test "$ac_new_set" = set; then
1465 case $ac_new_val in
1466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468 *) ac_arg=$ac_var=$ac_new_val ;;
1469 esac
1470 case " $ac_configure_args " in
1471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1472 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1473 esac
1474 fi
1475done
1476if $ac_cache_corrupted; then
1477 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1478echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1479 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1480echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1481 { (exit 1); exit 1; }; }
1482fi
1483
1484ac_ext=c
1485ac_cpp='$CPP $CPPFLAGS'
1486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488ac_compiler_gnu=$ac_cv_c_compiler_gnu
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001508
1509
1510
1511
1512
1513
1514
1515
1516
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001517ac_aux_dir=
hp.com!davidm16230292004-07-15 17:39:59 +00001518for ac_dir in config $srcdir/config; do
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001519 if test -f $ac_dir/install-sh; then
1520 ac_aux_dir=$ac_dir
1521 ac_install_sh="$ac_aux_dir/install-sh -c"
1522 break
1523 elif test -f $ac_dir/install.sh; then
1524 ac_aux_dir=$ac_dir
1525 ac_install_sh="$ac_aux_dir/install.sh -c"
1526 break
1527 elif test -f $ac_dir/shtool; then
1528 ac_aux_dir=$ac_dir
1529 ac_install_sh="$ac_aux_dir/shtool install -c"
1530 break
1531 fi
1532done
1533if test -z "$ac_aux_dir"; then
hp.com!davidm16230292004-07-15 17:39:59 +00001534 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1535echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001536 { (exit 1); exit 1; }; }
1537fi
1538ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1539ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1540ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1541
1542# Make sure we can run config.sub.
1543$ac_config_sub sun4 >/dev/null 2>&1 ||
1544 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1545echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1546 { (exit 1); exit 1; }; }
1547
1548echo "$as_me:$LINENO: checking build system type" >&5
1549echo $ECHO_N "checking build system type... $ECHO_C" >&6
1550if test "${ac_cv_build+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1552else
1553 ac_cv_build_alias=$build_alias
1554test -z "$ac_cv_build_alias" &&
1555 ac_cv_build_alias=`$ac_config_guess`
1556test -z "$ac_cv_build_alias" &&
1557 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1558echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1559 { (exit 1); exit 1; }; }
1560ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1561 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1562echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1563 { (exit 1); exit 1; }; }
1564
1565fi
1566echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1567echo "${ECHO_T}$ac_cv_build" >&6
1568build=$ac_cv_build
1569build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1572
1573
1574echo "$as_me:$LINENO: checking host system type" >&5
1575echo $ECHO_N "checking host system type... $ECHO_C" >&6
1576if test "${ac_cv_host+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578else
1579 ac_cv_host_alias=$host_alias
1580test -z "$ac_cv_host_alias" &&
1581 ac_cv_host_alias=$ac_cv_build_alias
1582ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1583 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1584echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1585 { (exit 1); exit 1; }; }
1586
1587fi
1588echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1589echo "${ECHO_T}$ac_cv_host" >&6
1590host=$ac_cv_host
1591host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1592host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1593host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1594
1595
1596echo "$as_me:$LINENO: checking target system type" >&5
1597echo $ECHO_N "checking target system type... $ECHO_C" >&6
1598if test "${ac_cv_target+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1600else
1601 ac_cv_target_alias=$target_alias
1602test "x$ac_cv_target_alias" = "x" &&
1603 ac_cv_target_alias=$ac_cv_host_alias
1604ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1605 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1606echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1607 { (exit 1); exit 1; }; }
1608
1609fi
1610echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1611echo "${ECHO_T}$ac_cv_target" >&6
1612target=$ac_cv_target
1613target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1614target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1615target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1616
1617
1618# The aliases save the names the user supplied, while $host etc.
1619# will get canonicalized.
1620test -n "$target_alias" &&
1621 test "$program_prefix$program_suffix$program_transform_name" = \
1622 NONENONEs,x,x, &&
1623 program_prefix=${target_alias}-
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001624am__api_version="1.6"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001625# Find a good install program. We prefer a C program (faster),
1626# so one script is as good as another. But avoid the broken or
1627# incompatible versions:
1628# SysV /etc/install, /usr/sbin/install
1629# SunOS /usr/etc/install
1630# IRIX /sbin/install
1631# AIX /bin/install
1632# AmigaOS /C/install, which installs bootblocks on floppy discs
1633# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1634# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1635# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001636# OS/2's system install, which has a completely different semantic
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001637# ./install, which can be erroneously created by make from ./install.sh.
1638echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1639echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1640if test -z "$INSTALL"; then
1641if test "${ac_cv_path_install+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1643else
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645for as_dir in $PATH
1646do
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 # Account for people who put trailing slashes in PATH elements.
1650case $as_dir/ in
1651 ./ | .// | /cC/* | \
1652 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001653 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001654 /usr/ucb/* ) ;;
1655 *)
1656 # OSF1 and SCO ODT 3.0 have their own names for install.
1657 # Don't use installbsd from OSF since it installs stuff as root
1658 # by default.
1659 for ac_prog in ginstall scoinst install; do
1660 for ac_exec_ext in '' $ac_executable_extensions; do
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001661 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1662 if test $ac_prog = install &&
1663 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1664 # AIX install. It has an incompatible calling convention.
1665 :
1666 elif test $ac_prog = install &&
1667 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1668 # program-specific install script used by HP pwplus--don't use.
1669 :
1670 else
1671 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1672 break 3
1673 fi
1674 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001675 done
1676 done
1677 ;;
1678esac
1679done
1680
1681
1682fi
1683 if test "${ac_cv_path_install+set}" = set; then
1684 INSTALL=$ac_cv_path_install
1685 else
1686 # As a last resort, use the slow shell script. We don't cache a
1687 # path for INSTALL within a source directory, because that will
1688 # break other packages using the cache if that directory is
1689 # removed, or if the path is relative.
1690 INSTALL=$ac_install_sh
1691 fi
1692fi
1693echo "$as_me:$LINENO: result: $INSTALL" >&5
1694echo "${ECHO_T}$INSTALL" >&6
1695
1696# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1697# It thinks the first close brace ends the variable substitution.
1698test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1699
1700test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1701
1702test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1703
1704echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1705echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1706# Just in case
1707sleep 1
1708echo timestamp > conftest.file
1709# Do `set' in a subshell so we don't clobber the current shell's
1710# arguments. Must try -L first in case configure is actually a
1711# symlink; some systems play weird games with the mod time of symlinks
1712# (eg FreeBSD returns the mod time of the symlink's containing
1713# directory).
1714if (
1715 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1716 if test "$*" = "X"; then
1717 # -L didn't work.
1718 set X `ls -t $srcdir/configure conftest.file`
1719 fi
1720 rm -f conftest.file
1721 if test "$*" != "X $srcdir/configure conftest.file" \
1722 && test "$*" != "X conftest.file $srcdir/configure"; then
1723
1724 # If neither matched, then we have a broken ls. This can happen
1725 # if, for instance, CONFIG_SHELL is bash and it inherits a
1726 # broken ls alias from the environment. This has actually
1727 # happened. Such a system could not be considered "sane".
1728 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1729alias in your environment" >&5
1730echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1731alias in your environment" >&2;}
1732 { (exit 1); exit 1; }; }
1733 fi
1734
1735 test "$2" = conftest.file
1736 )
1737then
1738 # Ok.
1739 :
1740else
1741 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1742Check your system clock" >&5
1743echo "$as_me: error: newly created file is older than distributed files!
1744Check your system clock" >&2;}
1745 { (exit 1); exit 1; }; }
1746fi
1747echo "$as_me:$LINENO: result: yes" >&5
1748echo "${ECHO_T}yes" >&6
1749test "$program_prefix" != NONE &&
1750 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1751# Use a double $ so make ignores it.
1752test "$program_suffix" != NONE &&
1753 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1754# Double any \ or $. echo might interpret backslashes.
1755# By default was `s,x,x', remove it if useless.
1756cat <<\_ACEOF >conftest.sed
1757s/[\\$]/&&/g;s/;s,x,x,$//
1758_ACEOF
1759program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1760rm conftest.sed
1761
1762
1763# expand $ac_aux_dir to an absolute path
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001764am_aux_dir=`cd $ac_aux_dir && pwd`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001765
1766test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1767# Use eval to expand $SHELL
1768if eval "$MISSING --run true"; then
1769 am_missing_run="$MISSING --run "
1770else
1771 am_missing_run=
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001772 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1773echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001774fi
1775
1776for ac_prog in gawk mawk nawk awk
1777do
1778 # Extract the first word of "$ac_prog", so it can be a program name with args.
1779set dummy $ac_prog; ac_word=$2
1780echo "$as_me:$LINENO: checking for $ac_word" >&5
1781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1782if test "${ac_cv_prog_AWK+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1784else
1785 if test -n "$AWK"; then
1786 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1787else
1788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789for as_dir in $PATH
1790do
1791 IFS=$as_save_IFS
1792 test -z "$as_dir" && as_dir=.
1793 for ac_exec_ext in '' $ac_executable_extensions; do
1794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1795 ac_cv_prog_AWK="$ac_prog"
1796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1797 break 2
1798 fi
1799done
1800done
1801
1802fi
1803fi
1804AWK=$ac_cv_prog_AWK
1805if test -n "$AWK"; then
1806 echo "$as_me:$LINENO: result: $AWK" >&5
1807echo "${ECHO_T}$AWK" >&6
1808else
1809 echo "$as_me:$LINENO: result: no" >&5
1810echo "${ECHO_T}no" >&6
1811fi
1812
1813 test -n "$AWK" && break
1814done
1815
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001816echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1817echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001818set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001819if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1821else
1822 cat >conftest.make <<\_ACEOF
1823all:
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001824 @echo 'ac_maketemp="$(MAKE)"'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001825_ACEOF
1826# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1827eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1828if test -n "$ac_maketemp"; then
1829 eval ac_cv_prog_make_${ac_make}_set=yes
1830else
1831 eval ac_cv_prog_make_${ac_make}_set=no
1832fi
1833rm -f conftest.make
1834fi
1835if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1836 echo "$as_me:$LINENO: result: yes" >&5
1837echo "${ECHO_T}yes" >&6
1838 SET_MAKE=
1839else
1840 echo "$as_me:$LINENO: result: no" >&5
1841echo "${ECHO_T}no" >&6
1842 SET_MAKE="MAKE=${MAKE-make}"
1843fi
1844
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001845 # test to see if srcdir already configured
1846if test "`cd $srcdir && pwd`" != "`pwd`" &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001847 test -f $srcdir/config.status; then
1848 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1849echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1850 { (exit 1); exit 1; }; }
1851fi
1852
1853# Define the identity of the package.
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001854 PACKAGE=libunwind
hp.com!davidm75f19902004-04-28 04:43:25 +00001855 VERSION=0.97
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001856
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001857
1858cat >>confdefs.h <<_ACEOF
1859#define PACKAGE "$PACKAGE"
1860_ACEOF
1861
1862
1863cat >>confdefs.h <<_ACEOF
1864#define VERSION "$VERSION"
1865_ACEOF
1866
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001867# Some tools Automake needs.
1868
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001869ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001870
1871
1872AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1873
1874
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001875AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001876
1877
1878AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1879
1880
1881MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1882
1883
1884AMTAR=${AMTAR-"${am_missing_run}tar"}
1885
1886install_sh=${install_sh-"$am_aux_dir/install-sh"}
1887
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001888# Installed binaries are usually stripped using `strip' when the user
1889# run `make install-strip'. However `strip' might not be the right
1890# tool to use in cross-compilation environments, therefore Automake
1891# will honor the `STRIP' environment variable to overrule this program.
1892if test "$cross_compiling" != no; then
1893 if test -n "$ac_tool_prefix"; then
1894 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1895set dummy ${ac_tool_prefix}strip; ac_word=$2
1896echo "$as_me:$LINENO: checking for $ac_word" >&5
1897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898if test "${ac_cv_prog_STRIP+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1900else
1901 if test -n "$STRIP"; then
1902 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1903else
1904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905for as_dir in $PATH
1906do
1907 IFS=$as_save_IFS
1908 test -z "$as_dir" && as_dir=.
1909 for ac_exec_ext in '' $ac_executable_extensions; do
1910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 break 2
1914 fi
1915done
1916done
1917
1918fi
1919fi
1920STRIP=$ac_cv_prog_STRIP
1921if test -n "$STRIP"; then
1922 echo "$as_me:$LINENO: result: $STRIP" >&5
1923echo "${ECHO_T}$STRIP" >&6
1924else
1925 echo "$as_me:$LINENO: result: no" >&5
1926echo "${ECHO_T}no" >&6
1927fi
1928
1929fi
1930if test -z "$ac_cv_prog_STRIP"; then
1931 ac_ct_STRIP=$STRIP
1932 # Extract the first word of "strip", so it can be a program name with args.
1933set dummy strip; ac_word=$2
1934echo "$as_me:$LINENO: checking for $ac_word" >&5
1935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1938else
1939 if test -n "$ac_ct_STRIP"; then
1940 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1941else
1942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943for as_dir in $PATH
1944do
1945 IFS=$as_save_IFS
1946 test -z "$as_dir" && as_dir=.
1947 for ac_exec_ext in '' $ac_executable_extensions; do
1948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949 ac_cv_prog_ac_ct_STRIP="strip"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 break 2
1952 fi
1953done
1954done
1955
1956 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1957fi
1958fi
1959ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1960if test -n "$ac_ct_STRIP"; then
1961 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1962echo "${ECHO_T}$ac_ct_STRIP" >&6
1963else
1964 echo "$as_me:$LINENO: result: no" >&5
1965echo "${ECHO_T}no" >&6
1966fi
1967
1968 STRIP=$ac_ct_STRIP
1969else
1970 STRIP="$ac_cv_prog_STRIP"
1971fi
1972
1973fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001974INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1975
1976# We need awk for the "check" target. The system "awk" is bad on
1977# some platforms.
1978
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001979
1980
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001981echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1982echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1983 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1984if test "${enable_maintainer_mode+set}" = set; then
1985 enableval="$enable_maintainer_mode"
1986 USE_MAINTAINER_MODE=$enableval
1987else
1988 USE_MAINTAINER_MODE=no
1989fi;
1990 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1991echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1992
1993
1994if test $USE_MAINTAINER_MODE = yes; then
1995 MAINTAINER_MODE_TRUE=
1996 MAINTAINER_MODE_FALSE='#'
1997else
1998 MAINTAINER_MODE_TRUE='#'
1999 MAINTAINER_MODE_FALSE=
2000fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002001
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002002 MAINT=$MAINTAINER_MODE_TRUE
2003
2004
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002005# Add the stamp file to the list of files AC keeps track of,
2006# along with our hook.
2007 ac_config_headers="$ac_config_headers include/config.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002008
2009
2010
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002011
2012ac_ext=c
2013ac_cpp='$CPP $CPPFLAGS'
2014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2016ac_compiler_gnu=$ac_cv_c_compiler_gnu
2017if test -n "$ac_tool_prefix"; then
2018 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2019set dummy ${ac_tool_prefix}gcc; ac_word=$2
2020echo "$as_me:$LINENO: checking for $ac_word" >&5
2021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2022if test "${ac_cv_prog_CC+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2024else
2025 if test -n "$CC"; then
2026 ac_cv_prog_CC="$CC" # Let the user override the test.
2027else
2028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029for as_dir in $PATH
2030do
2031 IFS=$as_save_IFS
2032 test -z "$as_dir" && as_dir=.
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2035 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037 break 2
2038 fi
2039done
2040done
2041
2042fi
2043fi
2044CC=$ac_cv_prog_CC
2045if test -n "$CC"; then
2046 echo "$as_me:$LINENO: result: $CC" >&5
2047echo "${ECHO_T}$CC" >&6
2048else
2049 echo "$as_me:$LINENO: result: no" >&5
2050echo "${ECHO_T}no" >&6
2051fi
2052
2053fi
2054if test -z "$ac_cv_prog_CC"; then
2055 ac_ct_CC=$CC
2056 # Extract the first word of "gcc", so it can be a program name with args.
2057set dummy gcc; ac_word=$2
2058echo "$as_me:$LINENO: checking for $ac_word" >&5
2059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2062else
2063 if test -n "$ac_ct_CC"; then
2064 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2065else
2066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067for as_dir in $PATH
2068do
2069 IFS=$as_save_IFS
2070 test -z "$as_dir" && as_dir=.
2071 for ac_exec_ext in '' $ac_executable_extensions; do
2072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073 ac_cv_prog_ac_ct_CC="gcc"
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 break 2
2076 fi
2077done
2078done
2079
2080fi
2081fi
2082ac_ct_CC=$ac_cv_prog_ac_ct_CC
2083if test -n "$ac_ct_CC"; then
2084 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2085echo "${ECHO_T}$ac_ct_CC" >&6
2086else
2087 echo "$as_me:$LINENO: result: no" >&5
2088echo "${ECHO_T}no" >&6
2089fi
2090
2091 CC=$ac_ct_CC
2092else
2093 CC="$ac_cv_prog_CC"
2094fi
2095
2096if test -z "$CC"; then
2097 if test -n "$ac_tool_prefix"; then
2098 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2099set dummy ${ac_tool_prefix}cc; ac_word=$2
2100echo "$as_me:$LINENO: checking for $ac_word" >&5
2101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102if test "${ac_cv_prog_CC+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2104else
2105 if test -n "$CC"; then
2106 ac_cv_prog_CC="$CC" # Let the user override the test.
2107else
2108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109for as_dir in $PATH
2110do
2111 IFS=$as_save_IFS
2112 test -z "$as_dir" && as_dir=.
2113 for ac_exec_ext in '' $ac_executable_extensions; do
2114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2115 ac_cv_prog_CC="${ac_tool_prefix}cc"
2116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117 break 2
2118 fi
2119done
2120done
2121
2122fi
2123fi
2124CC=$ac_cv_prog_CC
2125if test -n "$CC"; then
2126 echo "$as_me:$LINENO: result: $CC" >&5
2127echo "${ECHO_T}$CC" >&6
2128else
2129 echo "$as_me:$LINENO: result: no" >&5
2130echo "${ECHO_T}no" >&6
2131fi
2132
2133fi
2134if test -z "$ac_cv_prog_CC"; then
2135 ac_ct_CC=$CC
2136 # Extract the first word of "cc", so it can be a program name with args.
2137set dummy cc; ac_word=$2
2138echo "$as_me:$LINENO: checking for $ac_word" >&5
2139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2140if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2142else
2143 if test -n "$ac_ct_CC"; then
2144 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2145else
2146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147for as_dir in $PATH
2148do
2149 IFS=$as_save_IFS
2150 test -z "$as_dir" && as_dir=.
2151 for ac_exec_ext in '' $ac_executable_extensions; do
2152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2153 ac_cv_prog_ac_ct_CC="cc"
2154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155 break 2
2156 fi
2157done
2158done
2159
2160fi
2161fi
2162ac_ct_CC=$ac_cv_prog_ac_ct_CC
2163if test -n "$ac_ct_CC"; then
2164 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2165echo "${ECHO_T}$ac_ct_CC" >&6
2166else
2167 echo "$as_me:$LINENO: result: no" >&5
2168echo "${ECHO_T}no" >&6
2169fi
2170
2171 CC=$ac_ct_CC
2172else
2173 CC="$ac_cv_prog_CC"
2174fi
2175
2176fi
2177if test -z "$CC"; then
2178 # Extract the first word of "cc", so it can be a program name with args.
2179set dummy cc; ac_word=$2
2180echo "$as_me:$LINENO: checking for $ac_word" >&5
2181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2182if test "${ac_cv_prog_CC+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184else
2185 if test -n "$CC"; then
2186 ac_cv_prog_CC="$CC" # Let the user override the test.
2187else
2188 ac_prog_rejected=no
2189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190for as_dir in $PATH
2191do
2192 IFS=$as_save_IFS
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
2195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2196 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2197 ac_prog_rejected=yes
2198 continue
2199 fi
2200 ac_cv_prog_CC="cc"
2201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202 break 2
2203 fi
2204done
2205done
2206
2207if test $ac_prog_rejected = yes; then
2208 # We found a bogon in the path, so make sure we never use it.
2209 set dummy $ac_cv_prog_CC
2210 shift
2211 if test $# != 0; then
2212 # We chose a different compiler from the bogus one.
2213 # However, it has the same basename, so the bogon will be chosen
2214 # first if we set CC to just the basename; use the full file name.
2215 shift
2216 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2217 fi
2218fi
2219fi
2220fi
2221CC=$ac_cv_prog_CC
2222if test -n "$CC"; then
2223 echo "$as_me:$LINENO: result: $CC" >&5
2224echo "${ECHO_T}$CC" >&6
2225else
2226 echo "$as_me:$LINENO: result: no" >&5
2227echo "${ECHO_T}no" >&6
2228fi
2229
2230fi
2231if test -z "$CC"; then
2232 if test -n "$ac_tool_prefix"; then
2233 for ac_prog in cl
2234 do
2235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2236set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2237echo "$as_me:$LINENO: checking for $ac_word" >&5
2238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2239if test "${ac_cv_prog_CC+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2241else
2242 if test -n "$CC"; then
2243 ac_cv_prog_CC="$CC" # Let the user override the test.
2244else
2245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246for as_dir in $PATH
2247do
2248 IFS=$as_save_IFS
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2252 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254 break 2
2255 fi
2256done
2257done
2258
2259fi
2260fi
2261CC=$ac_cv_prog_CC
2262if test -n "$CC"; then
2263 echo "$as_me:$LINENO: result: $CC" >&5
2264echo "${ECHO_T}$CC" >&6
2265else
2266 echo "$as_me:$LINENO: result: no" >&5
2267echo "${ECHO_T}no" >&6
2268fi
2269
2270 test -n "$CC" && break
2271 done
2272fi
2273if test -z "$CC"; then
2274 ac_ct_CC=$CC
2275 for ac_prog in cl
2276do
2277 # Extract the first word of "$ac_prog", so it can be a program name with args.
2278set dummy $ac_prog; ac_word=$2
2279echo "$as_me:$LINENO: checking for $ac_word" >&5
2280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2281if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2283else
2284 if test -n "$ac_ct_CC"; then
2285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2286else
2287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288for as_dir in $PATH
2289do
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 for ac_exec_ext in '' $ac_executable_extensions; do
2293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2294 ac_cv_prog_ac_ct_CC="$ac_prog"
2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296 break 2
2297 fi
2298done
2299done
2300
2301fi
2302fi
2303ac_ct_CC=$ac_cv_prog_ac_ct_CC
2304if test -n "$ac_ct_CC"; then
2305 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2306echo "${ECHO_T}$ac_ct_CC" >&6
2307else
2308 echo "$as_me:$LINENO: result: no" >&5
2309echo "${ECHO_T}no" >&6
2310fi
2311
2312 test -n "$ac_ct_CC" && break
2313done
2314
2315 CC=$ac_ct_CC
2316fi
2317
2318fi
2319
2320
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002321test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2322See \`config.log' for more details." >&5
2323echo "$as_me: error: no acceptable C compiler found in \$PATH
2324See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002325 { (exit 1); exit 1; }; }
2326
2327# Provide some information about the compiler.
2328echo "$as_me:$LINENO:" \
2329 "checking for C compiler version" >&5
2330ac_compiler=`set X $ac_compile; echo $2`
2331{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2332 (eval $ac_compiler --version </dev/null >&5) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }
2336{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2337 (eval $ac_compiler -v </dev/null >&5) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }
2341{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2342 (eval $ac_compiler -V </dev/null >&5) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }
2346
2347cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002348/* confdefs.h. */
2349_ACEOF
2350cat confdefs.h >>conftest.$ac_ext
2351cat >>conftest.$ac_ext <<_ACEOF
2352/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002353
2354int
2355main ()
2356{
2357
2358 ;
2359 return 0;
2360}
2361_ACEOF
2362ac_clean_files_save=$ac_clean_files
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002363ac_clean_files="$ac_clean_files a.out a.exe b.out"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002364# Try to create an executable without -o first, disregard a.out.
2365# It will help us diagnose broken compilers, and finding out an intuition
2366# of exeext.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002367echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2368echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002369ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2370if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2371 (eval $ac_link_default) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; then
2375 # Find the output, starting from the most likely. This scheme is
2376# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2377# resort.
2378
2379# Be careful to initialize this variable, since it used to be cached.
2380# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2381ac_cv_exeext=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002382# b.out is created by i960 compilers.
2383for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2384do
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002385 test -f "$ac_file" || continue
2386 case $ac_file in
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002388 ;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002389 conftest.$ac_ext )
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002390 # This is the source file.
2391 ;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002392 [ab].out )
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002393 # We found the default executable, but exeext='' is most
2394 # certainly right.
2395 break;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002396 *.* )
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002397 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2398 # FIXME: I believe we export ac_cv_exeext for Libtool,
2399 # but it would be cool to find out if it's true. Does anybody
2400 # maintain Libtool? --akim.
2401 export ac_cv_exeext
2402 break;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002403 * )
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002404 break;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002405 esac
2406done
2407else
2408 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002409sed 's/^/| /' conftest.$ac_ext >&5
2410
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002411{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002412See \`config.log' for more details." >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002413echo "$as_me: error: C compiler cannot create executables
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002414See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002415 { (exit 77); exit 77; }; }
2416fi
2417
2418ac_exeext=$ac_cv_exeext
2419echo "$as_me:$LINENO: result: $ac_file" >&5
2420echo "${ECHO_T}$ac_file" >&6
2421
2422# Check the compiler produces executables we can run. If not, either
2423# the compiler is broken, or we cross compile.
2424echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2425echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2426# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2427# If not cross compiling, check that we can run a simple program.
2428if test "$cross_compiling" != yes; then
2429 if { ac_try='./$ac_file'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 (eval $ac_try) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2435 cross_compiling=no
2436 else
2437 if test "$cross_compiling" = maybe; then
2438 cross_compiling=yes
2439 else
2440 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002441If you meant to cross compile, use \`--host'.
2442See \`config.log' for more details." >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002443echo "$as_me: error: cannot run C compiled programs.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002444If you meant to cross compile, use \`--host'.
2445See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002446 { (exit 1); exit 1; }; }
2447 fi
2448 fi
2449fi
2450echo "$as_me:$LINENO: result: yes" >&5
2451echo "${ECHO_T}yes" >&6
2452
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002453rm -f a.out a.exe conftest$ac_cv_exeext b.out
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002454ac_clean_files=$ac_clean_files_save
2455# Check the compiler produces executables we can run. If not, either
2456# the compiler is broken, or we cross compile.
2457echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2458echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2459echo "$as_me:$LINENO: result: $cross_compiling" >&5
2460echo "${ECHO_T}$cross_compiling" >&6
2461
2462echo "$as_me:$LINENO: checking for suffix of executables" >&5
2463echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2465 (eval $ac_link) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; then
2469 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2470# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2471# work properly (i.e., refer to `conftest.exe'), while it won't with
2472# `rm'.
2473for ac_file in conftest.exe conftest conftest.*; do
2474 test -f "$ac_file" || continue
2475 case $ac_file in
2476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2477 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002478 export ac_cv_exeext
2479 break;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002480 * ) break;;
2481 esac
2482done
2483else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002484 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2485See \`config.log' for more details." >&5
2486echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2487See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002488 { (exit 1); exit 1; }; }
2489fi
2490
2491rm -f conftest$ac_cv_exeext
2492echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2493echo "${ECHO_T}$ac_cv_exeext" >&6
2494
2495rm -f conftest.$ac_ext
2496EXEEXT=$ac_cv_exeext
2497ac_exeext=$EXEEXT
2498echo "$as_me:$LINENO: checking for suffix of object files" >&5
2499echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2500if test "${ac_cv_objext+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2502else
2503 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002504/* confdefs.h. */
2505_ACEOF
2506cat confdefs.h >>conftest.$ac_ext
2507cat >>conftest.$ac_ext <<_ACEOF
2508/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002509
2510int
2511main ()
2512{
2513
2514 ;
2515 return 0;
2516}
2517_ACEOF
2518rm -f conftest.o conftest.obj
2519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520 (eval $ac_compile) 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; then
2524 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2525 case $ac_file in
2526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2527 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2528 break;;
2529 esac
2530done
2531else
2532 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002533sed 's/^/| /' conftest.$ac_ext >&5
2534
2535{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2536See \`config.log' for more details." >&5
2537echo "$as_me: error: cannot compute suffix of object files: cannot compile
2538See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002539 { (exit 1); exit 1; }; }
2540fi
2541
2542rm -f conftest.$ac_cv_objext conftest.$ac_ext
2543fi
2544echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2545echo "${ECHO_T}$ac_cv_objext" >&6
2546OBJEXT=$ac_cv_objext
2547ac_objext=$OBJEXT
2548echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2549echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2550if test "${ac_cv_c_compiler_gnu+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2552else
2553 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002554/* confdefs.h. */
2555_ACEOF
2556cat confdefs.h >>conftest.$ac_ext
2557cat >>conftest.$ac_ext <<_ACEOF
2558/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002559
2560int
2561main ()
2562{
2563#ifndef __GNUC__
2564 choke me
2565#endif
2566
2567 ;
2568 return 0;
2569}
2570_ACEOF
2571rm -f conftest.$ac_objext
2572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002573 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002574 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002575 grep -v '^ *+' conftest.er1 >conftest.err
2576 rm -f conftest.er1
2577 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 (eval $ac_try) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; } &&
2586 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 (eval $ac_try) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2592 ac_compiler_gnu=yes
2593else
2594 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002595sed 's/^/| /' conftest.$ac_ext >&5
2596
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002597ac_compiler_gnu=no
2598fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002600ac_cv_c_compiler_gnu=$ac_compiler_gnu
2601
2602fi
2603echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2604echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2605GCC=`test $ac_compiler_gnu = yes && echo yes`
2606ac_test_CFLAGS=${CFLAGS+set}
2607ac_save_CFLAGS=$CFLAGS
2608CFLAGS="-g"
2609echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2610echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2611if test "${ac_cv_prog_cc_g+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2613else
2614 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002615/* confdefs.h. */
2616_ACEOF
2617cat confdefs.h >>conftest.$ac_ext
2618cat >>conftest.$ac_ext <<_ACEOF
2619/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002620
2621int
2622main ()
2623{
2624
2625 ;
2626 return 0;
2627}
2628_ACEOF
2629rm -f conftest.$ac_objext
2630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002631 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002632 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002633 grep -v '^ *+' conftest.er1 >conftest.err
2634 rm -f conftest.er1
2635 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 (eval $ac_try) 2>&5
2641 ac_status=$?
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; } &&
2644 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; }; then
2650 ac_cv_prog_cc_g=yes
2651else
2652 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002653sed 's/^/| /' conftest.$ac_ext >&5
2654
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002655ac_cv_prog_cc_g=no
2656fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002658fi
2659echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2660echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2661if test "$ac_test_CFLAGS" = set; then
2662 CFLAGS=$ac_save_CFLAGS
2663elif test $ac_cv_prog_cc_g = yes; then
2664 if test "$GCC" = yes; then
2665 CFLAGS="-g -O2"
2666 else
2667 CFLAGS="-g"
2668 fi
2669else
2670 if test "$GCC" = yes; then
2671 CFLAGS="-O2"
2672 else
2673 CFLAGS=
2674 fi
2675fi
2676echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2677echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2678if test "${ac_cv_prog_cc_stdc+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680else
2681 ac_cv_prog_cc_stdc=no
2682ac_save_CC=$CC
2683cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002684/* confdefs.h. */
2685_ACEOF
2686cat confdefs.h >>conftest.$ac_ext
2687cat >>conftest.$ac_ext <<_ACEOF
2688/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002689#include <stdarg.h>
2690#include <stdio.h>
2691#include <sys/types.h>
2692#include <sys/stat.h>
2693/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2694struct buf { int x; };
2695FILE * (*rcsopen) (struct buf *, struct stat *, int);
2696static char *e (p, i)
2697 char **p;
2698 int i;
2699{
2700 return p[i];
2701}
2702static char *f (char * (*g) (char **, int), char **p, ...)
2703{
2704 char *s;
2705 va_list v;
2706 va_start (v,p);
2707 s = g (p, va_arg (v,int));
2708 va_end (v);
2709 return s;
2710}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002711
2712/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2713 function prototypes and stuff, but not '\xHH' hex character constants.
2714 These don't provoke an error unfortunately, instead are silently treated
2715 as 'x'. The following induces an error, until -std1 is added to get
2716 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2717 array size at least. It's necessary to write '\x00'==0 to get something
2718 that's true only with -std1. */
2719int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2720
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002721int test (int i, double x);
2722struct s1 {int (*f) (int a);};
2723struct s2 {int (*f) (double a);};
2724int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2725int argc;
2726char **argv;
2727int
2728main ()
2729{
2730return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2731 ;
2732 return 0;
2733}
2734_ACEOF
2735# Don't try gcc -ansi; that turns off useful extensions and
2736# breaks some systems' header files.
2737# AIX -qlanglvl=ansi
2738# Ultrix and OSF/1 -std1
2739# HP-UX 10.20 and later -Ae
2740# HP-UX older versions -Aa -D_HPUX_SOURCE
2741# SVR4 -Xc -D__EXTENSIONS__
2742for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2743do
2744 CC="$ac_save_CC $ac_arg"
2745 rm -f conftest.$ac_objext
2746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002747 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002748 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002749 grep -v '^ *+' conftest.er1 >conftest.err
2750 rm -f conftest.er1
2751 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 (eval $ac_try) 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; } &&
2760 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 (eval $ac_try) 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2766 ac_cv_prog_cc_stdc=$ac_arg
2767break
2768else
2769 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002770sed 's/^/| /' conftest.$ac_ext >&5
2771
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002772fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002773rm -f conftest.err conftest.$ac_objext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002774done
2775rm -f conftest.$ac_ext conftest.$ac_objext
2776CC=$ac_save_CC
2777
2778fi
2779
2780case "x$ac_cv_prog_cc_stdc" in
2781 x|xno)
2782 echo "$as_me:$LINENO: result: none needed" >&5
2783echo "${ECHO_T}none needed" >&6 ;;
2784 *)
2785 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2786echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2787 CC="$CC $ac_cv_prog_cc_stdc" ;;
2788esac
2789
2790# Some people use a C++ compiler to compile C. Since we use `exit',
2791# in C++ we need to declare it. In case someone uses the same compiler
2792# for both compiling C and C++ we need to have the C++ compiler decide
2793# the declaration of exit, since it's the most demanding environment.
2794cat >conftest.$ac_ext <<_ACEOF
2795#ifndef __cplusplus
2796 choke me
2797#endif
2798_ACEOF
2799rm -f conftest.$ac_objext
2800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002801 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002802 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002803 grep -v '^ *+' conftest.er1 >conftest.err
2804 rm -f conftest.er1
2805 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810 (eval $ac_try) 2>&5
2811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; } &&
2814 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816 (eval $ac_try) 2>&5
2817 ac_status=$?
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }; }; then
2820 for ac_declaration in \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002821 '' \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002822 'extern "C" void std::exit (int) throw (); using std::exit;' \
2823 'extern "C" void std::exit (int); using std::exit;' \
2824 'extern "C" void exit (int) throw ();' \
2825 'extern "C" void exit (int);' \
2826 'void exit (int);'
2827do
2828 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002829/* confdefs.h. */
2830_ACEOF
2831cat confdefs.h >>conftest.$ac_ext
2832cat >>conftest.$ac_ext <<_ACEOF
2833/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002834$ac_declaration
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002835#include <stdlib.h>
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002836int
2837main ()
2838{
2839exit (42);
2840 ;
2841 return 0;
2842}
2843_ACEOF
2844rm -f conftest.$ac_objext
2845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002846 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002847 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002848 grep -v '^ *+' conftest.er1 >conftest.err
2849 rm -f conftest.er1
2850 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 (eval $ac_try) 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; } &&
2859 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 (eval $ac_try) 2>&5
2862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2865 :
2866else
2867 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002868sed 's/^/| /' conftest.$ac_ext >&5
2869
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002870continue
2871fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002873 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002874/* confdefs.h. */
2875_ACEOF
2876cat confdefs.h >>conftest.$ac_ext
2877cat >>conftest.$ac_ext <<_ACEOF
2878/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002879$ac_declaration
2880int
2881main ()
2882{
2883exit (42);
2884 ;
2885 return 0;
2886}
2887_ACEOF
2888rm -f conftest.$ac_objext
2889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002890 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002891 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002892 grep -v '^ *+' conftest.er1 >conftest.err
2893 rm -f conftest.er1
2894 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899 (eval $ac_try) 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; } &&
2903 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905 (eval $ac_try) 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; }; then
2909 break
2910else
2911 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002912sed 's/^/| /' conftest.$ac_ext >&5
2913
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002914fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002916done
2917rm -f conftest*
2918if test -n "$ac_declaration"; then
2919 echo '#ifdef __cplusplus' >>confdefs.h
2920 echo $ac_declaration >>confdefs.h
2921 echo '#endif' >>confdefs.h
2922fi
2923
2924else
2925 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002926sed 's/^/| /' conftest.$ac_ext >&5
2927
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002928fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002930ac_ext=c
2931ac_cpp='$CPP $CPPFLAGS'
2932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934ac_compiler_gnu=$ac_cv_c_compiler_gnu
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002935rm -f .deps 2>/dev/null
2936mkdir .deps 2>/dev/null
2937if test -d .deps; then
2938 DEPDIR=.deps
2939else
2940 # MS-DOS does not allow filenames that begin with a dot.
2941 DEPDIR=_deps
2942fi
2943rmdir .deps 2>/dev/null
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002944
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002945
2946 ac_config_commands="$ac_config_commands depfiles"
2947
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002948
2949am_make=${MAKE-make}
2950cat > confinc << 'END'
2951doit:
2952 @echo done
2953END
2954# If we don't find an include directive, just comment out the code.
2955echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2956echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002957am__include="#"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002958am__quote=
2959_am_result=none
2960# First try GNU make style include.
2961echo "include confinc" > confmf
2962# We grep out `Entering directory' and `Leaving directory'
2963# messages which can occur if `w' ends up in MAKEFLAGS.
2964# In particular we don't look at `^make:' because GNU make might
2965# be invoked under some other name (usually "gmake"), in which
2966# case it prints its new name instead of `make'.
2967if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2968 am__include=include
2969 am__quote=
2970 _am_result=GNU
2971fi
2972# Now try BSD make style include.
2973if test "$am__include" = "#"; then
2974 echo '.include "confinc"' > confmf
2975 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2976 am__include=.include
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002977 am__quote="\""
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002978 _am_result=BSD
2979 fi
2980fi
2981
2982
2983echo "$as_me:$LINENO: result: $_am_result" >&5
2984echo "${ECHO_T}$_am_result" >&6
2985rm -f confinc confmf
2986
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002987# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2988if test "${enable_dependency_tracking+set}" = set; then
2989 enableval="$enable_dependency_tracking"
2990
2991fi;
2992if test "x$enable_dependency_tracking" != xno; then
2993 am_depcomp="$ac_aux_dir/depcomp"
2994 AMDEPBACKSLASH='\'
2995fi
2996
2997
2998if test "x$enable_dependency_tracking" != xno; then
2999 AMDEP_TRUE=
3000 AMDEP_FALSE='#'
3001else
3002 AMDEP_TRUE='#'
3003 AMDEP_FALSE=
3004fi
3005
3006
3007
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003008
3009depcc="$CC" am_compiler_list=
3010
3011echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3012echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3013if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3015else
3016 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3017 # We make a subdir and do the tests there. Otherwise we can end up
3018 # making bogus files that we don't know about and never remove. For
3019 # instance it was reported that on HP-UX the gcc test will end up
3020 # making a dummy file named `D' -- because `-MD' means `put the output
3021 # in D'.
3022 mkdir conftest.dir
3023 # Copy depcomp to subdir because otherwise we won't find it if we're
3024 # using a relative directory.
3025 cp "$am_depcomp" conftest.dir
3026 cd conftest.dir
3027
3028 am_cv_CC_dependencies_compiler_type=none
3029 if test "$am_compiler_list" = ""; then
3030 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3031 fi
3032 for depmode in $am_compiler_list; do
3033 # We need to recreate these files for each test, as the compiler may
3034 # overwrite some of them when testing with obscure command lines.
3035 # This happens at least with the AIX C compiler.
3036 echo '#include "conftest.h"' > conftest.c
3037 echo 'int i;' > conftest.h
3038 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3039
3040 case $depmode in
3041 nosideeffect)
3042 # after this tag, mechanisms are not by side-effect, so they'll
3043 # only be used when explicitly requested
3044 if test "x$enable_dependency_tracking" = xyes; then
3045 continue
3046 else
3047 break
3048 fi
3049 ;;
3050 none) break ;;
3051 esac
3052 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3053 # mode. It turns out that the SunPro C++ compiler does not properly
3054 # handle `-M -o', and we need to detect this.
3055 if depmode=$depmode \
3056 source=conftest.c object=conftest.o \
3057 depfile=conftest.Po tmpdepfile=conftest.TPo \
3058 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3059 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3060 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3061 am_cv_CC_dependencies_compiler_type=$depmode
3062 break
3063 fi
3064 done
3065
3066 cd ..
3067 rm -rf conftest.dir
3068else
3069 am_cv_CC_dependencies_compiler_type=none
3070fi
3071
3072fi
3073echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3074echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00003075CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003076
3077
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003078ac_ext=cc
3079ac_cpp='$CXXCPP $CPPFLAGS'
3080ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3083if test -n "$ac_tool_prefix"; then
3084 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3085 do
3086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3087set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3088echo "$as_me:$LINENO: checking for $ac_word" >&5
3089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3090if test "${ac_cv_prog_CXX+set}" = set; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
3092else
3093 if test -n "$CXX"; then
3094 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3095else
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH
3098do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3106 fi
3107done
3108done
3109
3110fi
3111fi
3112CXX=$ac_cv_prog_CXX
3113if test -n "$CXX"; then
3114 echo "$as_me:$LINENO: result: $CXX" >&5
3115echo "${ECHO_T}$CXX" >&6
3116else
3117 echo "$as_me:$LINENO: result: no" >&5
3118echo "${ECHO_T}no" >&6
3119fi
3120
3121 test -n "$CXX" && break
3122 done
3123fi
3124if test -z "$CXX"; then
3125 ac_ct_CXX=$CXX
3126 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3127do
3128 # Extract the first word of "$ac_prog", so it can be a program name with args.
3129set dummy $ac_prog; ac_word=$2
3130echo "$as_me:$LINENO: checking for $ac_word" >&5
3131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3132if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134else
3135 if test -n "$ac_ct_CXX"; then
3136 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3137else
3138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139for as_dir in $PATH
3140do
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3145 ac_cv_prog_ac_ct_CXX="$ac_prog"
3146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 break 2
3148 fi
3149done
3150done
3151
3152fi
3153fi
3154ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3155if test -n "$ac_ct_CXX"; then
3156 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3157echo "${ECHO_T}$ac_ct_CXX" >&6
3158else
3159 echo "$as_me:$LINENO: result: no" >&5
3160echo "${ECHO_T}no" >&6
3161fi
3162
3163 test -n "$ac_ct_CXX" && break
3164done
3165test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3166
3167 CXX=$ac_ct_CXX
3168fi
3169
3170
3171# Provide some information about the compiler.
3172echo "$as_me:$LINENO:" \
3173 "checking for C++ compiler version" >&5
3174ac_compiler=`set X $ac_compile; echo $2`
3175{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3176 (eval $ac_compiler --version </dev/null >&5) 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }
3180{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3181 (eval $ac_compiler -v </dev/null >&5) 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }
3185{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3186 (eval $ac_compiler -V </dev/null >&5) 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }
3190
3191echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3192echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3193if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195else
3196 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003197/* confdefs.h. */
3198_ACEOF
3199cat confdefs.h >>conftest.$ac_ext
3200cat >>conftest.$ac_ext <<_ACEOF
3201/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003202
3203int
3204main ()
3205{
3206#ifndef __GNUC__
3207 choke me
3208#endif
3209
3210 ;
3211 return 0;
3212}
3213_ACEOF
3214rm -f conftest.$ac_objext
3215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003216 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003217 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003218 grep -v '^ *+' conftest.er1 >conftest.err
3219 rm -f conftest.er1
3220 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225 (eval $ac_try) 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; } &&
3229 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231 (eval $ac_try) 2>&5
3232 ac_status=$?
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; }; then
3235 ac_compiler_gnu=yes
3236else
3237 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003238sed 's/^/| /' conftest.$ac_ext >&5
3239
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003240ac_compiler_gnu=no
3241fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003243ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3244
3245fi
3246echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3247echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3248GXX=`test $ac_compiler_gnu = yes && echo yes`
3249ac_test_CXXFLAGS=${CXXFLAGS+set}
3250ac_save_CXXFLAGS=$CXXFLAGS
3251CXXFLAGS="-g"
3252echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3253echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3254if test "${ac_cv_prog_cxx_g+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256else
3257 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003258/* confdefs.h. */
3259_ACEOF
3260cat confdefs.h >>conftest.$ac_ext
3261cat >>conftest.$ac_ext <<_ACEOF
3262/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003263
3264int
3265main ()
3266{
3267
3268 ;
3269 return 0;
3270}
3271_ACEOF
3272rm -f conftest.$ac_objext
3273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003274 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003275 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003276 grep -v '^ *+' conftest.er1 >conftest.err
3277 rm -f conftest.er1
3278 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283 (eval $ac_try) 2>&5
3284 ac_status=$?
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; } &&
3287 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 ac_cv_prog_cxx_g=yes
3294else
3295 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003296sed 's/^/| /' conftest.$ac_ext >&5
3297
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003298ac_cv_prog_cxx_g=no
3299fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003301fi
3302echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3303echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3304if test "$ac_test_CXXFLAGS" = set; then
3305 CXXFLAGS=$ac_save_CXXFLAGS
3306elif test $ac_cv_prog_cxx_g = yes; then
3307 if test "$GXX" = yes; then
3308 CXXFLAGS="-g -O2"
3309 else
3310 CXXFLAGS="-g"
3311 fi
3312else
3313 if test "$GXX" = yes; then
3314 CXXFLAGS="-O2"
3315 else
3316 CXXFLAGS=
3317 fi
3318fi
3319for ac_declaration in \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003320 '' \
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003321 'extern "C" void std::exit (int) throw (); using std::exit;' \
3322 'extern "C" void std::exit (int); using std::exit;' \
3323 'extern "C" void exit (int) throw ();' \
3324 'extern "C" void exit (int);' \
3325 'void exit (int);'
3326do
3327 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003328/* confdefs.h. */
3329_ACEOF
3330cat confdefs.h >>conftest.$ac_ext
3331cat >>conftest.$ac_ext <<_ACEOF
3332/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003333$ac_declaration
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003334#include <stdlib.h>
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003335int
3336main ()
3337{
3338exit (42);
3339 ;
3340 return 0;
3341}
3342_ACEOF
3343rm -f conftest.$ac_objext
3344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003345 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003346 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003347 grep -v '^ *+' conftest.er1 >conftest.err
3348 rm -f conftest.er1
3349 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; } &&
3358 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 (eval $ac_try) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 :
3365else
3366 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003367sed 's/^/| /' conftest.$ac_ext >&5
3368
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003369continue
3370fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003372 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003373/* confdefs.h. */
3374_ACEOF
3375cat confdefs.h >>conftest.$ac_ext
3376cat >>conftest.$ac_ext <<_ACEOF
3377/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003378$ac_declaration
3379int
3380main ()
3381{
3382exit (42);
3383 ;
3384 return 0;
3385}
3386_ACEOF
3387rm -f conftest.$ac_objext
3388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003389 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003390 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003391 grep -v '^ *+' conftest.er1 >conftest.err
3392 rm -f conftest.er1
3393 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003396 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 (eval $ac_try) 2>&5
3399 ac_status=$?
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }; } &&
3402 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 (eval $ac_try) 2>&5
3405 ac_status=$?
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); }; }; then
3408 break
3409else
3410 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003411sed 's/^/| /' conftest.$ac_ext >&5
3412
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003413fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003415done
3416rm -f conftest*
3417if test -n "$ac_declaration"; then
3418 echo '#ifdef __cplusplus' >>confdefs.h
3419 echo $ac_declaration >>confdefs.h
3420 echo '#endif' >>confdefs.h
3421fi
3422
3423ac_ext=c
3424ac_cpp='$CPP $CPPFLAGS'
3425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428
3429depcc="$CXX" am_compiler_list=
3430
3431echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3432echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3433if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3435else
3436 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3437 # We make a subdir and do the tests there. Otherwise we can end up
3438 # making bogus files that we don't know about and never remove. For
3439 # instance it was reported that on HP-UX the gcc test will end up
3440 # making a dummy file named `D' -- because `-MD' means `put the output
3441 # in D'.
3442 mkdir conftest.dir
3443 # Copy depcomp to subdir because otherwise we won't find it if we're
3444 # using a relative directory.
3445 cp "$am_depcomp" conftest.dir
3446 cd conftest.dir
3447
3448 am_cv_CXX_dependencies_compiler_type=none
3449 if test "$am_compiler_list" = ""; then
3450 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3451 fi
3452 for depmode in $am_compiler_list; do
3453 # We need to recreate these files for each test, as the compiler may
3454 # overwrite some of them when testing with obscure command lines.
3455 # This happens at least with the AIX C compiler.
3456 echo '#include "conftest.h"' > conftest.c
3457 echo 'int i;' > conftest.h
3458 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3459
3460 case $depmode in
3461 nosideeffect)
3462 # after this tag, mechanisms are not by side-effect, so they'll
3463 # only be used when explicitly requested
3464 if test "x$enable_dependency_tracking" = xyes; then
3465 continue
3466 else
3467 break
3468 fi
3469 ;;
3470 none) break ;;
3471 esac
3472 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3473 # mode. It turns out that the SunPro C++ compiler does not properly
3474 # handle `-M -o', and we need to detect this.
3475 if depmode=$depmode \
3476 source=conftest.c object=conftest.o \
3477 depfile=conftest.Po tmpdepfile=conftest.TPo \
3478 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3479 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3480 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3481 am_cv_CXX_dependencies_compiler_type=$depmode
3482 break
3483 fi
3484 done
3485
3486 cd ..
3487 rm -rf conftest.dir
3488else
3489 am_cv_CXX_dependencies_compiler_type=none
3490fi
3491
3492fi
3493echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3494echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3495CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3496
3497
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003498# Find a good install program. We prefer a C program (faster),
3499# so one script is as good as another. But avoid the broken or
3500# incompatible versions:
3501# SysV /etc/install, /usr/sbin/install
3502# SunOS /usr/etc/install
3503# IRIX /sbin/install
3504# AIX /bin/install
3505# AmigaOS /C/install, which installs bootblocks on floppy discs
3506# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3507# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3508# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003509# OS/2's system install, which has a completely different semantic
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003510# ./install, which can be erroneously created by make from ./install.sh.
3511echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3512echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3513if test -z "$INSTALL"; then
3514if test "${ac_cv_path_install+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3516else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518for as_dir in $PATH
3519do
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 # Account for people who put trailing slashes in PATH elements.
3523case $as_dir/ in
3524 ./ | .// | /cC/* | \
3525 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003526 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003527 /usr/ucb/* ) ;;
3528 *)
3529 # OSF1 and SCO ODT 3.0 have their own names for install.
3530 # Don't use installbsd from OSF since it installs stuff as root
3531 # by default.
3532 for ac_prog in ginstall scoinst install; do
3533 for ac_exec_ext in '' $ac_executable_extensions; do
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003534 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3535 if test $ac_prog = install &&
3536 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3537 # AIX install. It has an incompatible calling convention.
3538 :
3539 elif test $ac_prog = install &&
3540 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3541 # program-specific install script used by HP pwplus--don't use.
3542 :
3543 else
3544 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3545 break 3
3546 fi
3547 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003548 done
3549 done
3550 ;;
3551esac
3552done
3553
3554
3555fi
3556 if test "${ac_cv_path_install+set}" = set; then
3557 INSTALL=$ac_cv_path_install
3558 else
3559 # As a last resort, use the slow shell script. We don't cache a
3560 # path for INSTALL within a source directory, because that will
3561 # break other packages using the cache if that directory is
3562 # removed, or if the path is relative.
3563 INSTALL=$ac_install_sh
3564 fi
3565fi
3566echo "$as_me:$LINENO: result: $INSTALL" >&5
3567echo "${ECHO_T}$INSTALL" >&6
3568
3569# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3570# It thinks the first close brace ends the variable substitution.
3571test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3572
3573test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3574
3575test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3576
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003577echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3578echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003579set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003580if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3582else
3583 cat >conftest.make <<\_ACEOF
3584all:
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003585 @echo 'ac_maketemp="$(MAKE)"'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003586_ACEOF
3587# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3588eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3589if test -n "$ac_maketemp"; then
3590 eval ac_cv_prog_make_${ac_make}_set=yes
3591else
3592 eval ac_cv_prog_make_${ac_make}_set=no
3593fi
3594rm -f conftest.make
3595fi
3596if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3597 echo "$as_me:$LINENO: result: yes" >&5
3598echo "${ECHO_T}yes" >&6
3599 SET_MAKE=
3600else
3601 echo "$as_me:$LINENO: result: no" >&5
3602echo "${ECHO_T}no" >&6
3603 SET_MAKE="MAKE=${MAKE-make}"
3604fi
3605
3606# Check whether --enable-shared or --disable-shared was given.
3607if test "${enable_shared+set}" = set; then
3608 enableval="$enable_shared"
3609 p=${PACKAGE-default}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003610 case $enableval in
3611 yes) enable_shared=yes ;;
3612 no) enable_shared=no ;;
3613 *)
3614 enable_shared=no
3615 # Look at the argument we got. We use all the common list separators.
3616 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3617 for pkg in $enableval; do
3618 IFS="$lt_save_ifs"
3619 if test "X$pkg" = "X$p"; then
3620 enable_shared=yes
3621 fi
3622 done
3623 IFS="$lt_save_ifs"
3624 ;;
3625 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003626else
3627 enable_shared=yes
3628fi;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003629
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003630# Check whether --enable-static or --disable-static was given.
3631if test "${enable_static+set}" = set; then
3632 enableval="$enable_static"
3633 p=${PACKAGE-default}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003634 case $enableval in
3635 yes) enable_static=yes ;;
3636 no) enable_static=no ;;
3637 *)
3638 enable_static=no
3639 # Look at the argument we got. We use all the common list separators.
3640 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3641 for pkg in $enableval; do
3642 IFS="$lt_save_ifs"
3643 if test "X$pkg" = "X$p"; then
3644 enable_static=yes
3645 fi
3646 done
3647 IFS="$lt_save_ifs"
3648 ;;
3649 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003650else
3651 enable_static=yes
3652fi;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003653
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003654# Check whether --enable-fast-install or --disable-fast-install was given.
3655if test "${enable_fast_install+set}" = set; then
3656 enableval="$enable_fast_install"
3657 p=${PACKAGE-default}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003658 case $enableval in
3659 yes) enable_fast_install=yes ;;
3660 no) enable_fast_install=no ;;
3661 *)
3662 enable_fast_install=no
3663 # Look at the argument we got. We use all the common list separators.
3664 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3665 for pkg in $enableval; do
3666 IFS="$lt_save_ifs"
3667 if test "X$pkg" = "X$p"; then
3668 enable_fast_install=yes
3669 fi
3670 done
3671 IFS="$lt_save_ifs"
3672 ;;
3673 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003674else
3675 enable_fast_install=yes
3676fi;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003677
3678echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3679echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3680if test "${lt_cv_path_SED+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3682else
3683 # Loop through the user's path and test for sed and gsed.
3684# Then use that list of sed's as ones to test for truncation.
3685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686for as_dir in $PATH
3687do
3688 IFS=$as_save_IFS
3689 test -z "$as_dir" && as_dir=.
3690 for lt_ac_prog in sed gsed; do
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3693 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3694 fi
3695 done
3696 done
3697done
3698lt_ac_max=0
3699lt_ac_count=0
3700# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3701# along with /bin/sed that truncates output.
3702for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3703 test ! -f $lt_ac_sed && break
3704 cat /dev/null > conftest.in
3705 lt_ac_count=0
3706 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3707 # Check for GNU sed and select it if it is found.
3708 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3709 lt_cv_path_SED=$lt_ac_sed
3710 break
3711 fi
3712 while true; do
3713 cat conftest.in conftest.in >conftest.tmp
3714 mv conftest.tmp conftest.in
3715 cp conftest.in conftest.nl
3716 echo >>conftest.nl
3717 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3718 cmp -s conftest.out conftest.nl || break
3719 # 10000 chars as input seems more than enough
3720 test $lt_ac_count -gt 10 && break
3721 lt_ac_count=`expr $lt_ac_count + 1`
3722 if test $lt_ac_count -gt $lt_ac_max; then
3723 lt_ac_max=$lt_ac_count
3724 lt_cv_path_SED=$lt_ac_sed
3725 fi
3726 done
3727done
3728SED=$lt_cv_path_SED
3729
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003730fi
3731
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003732echo "$as_me:$LINENO: result: $SED" >&5
3733echo "${ECHO_T}$SED" >&6
3734
3735echo "$as_me:$LINENO: checking for egrep" >&5
3736echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3737if test "${ac_cv_prog_egrep+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3741 then ac_cv_prog_egrep='grep -E'
3742 else ac_cv_prog_egrep='egrep'
3743 fi
3744fi
3745echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3746echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3747 EGREP=$ac_cv_prog_egrep
3748
3749
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003750
3751# Check whether --with-gnu-ld or --without-gnu-ld was given.
3752if test "${with_gnu_ld+set}" = set; then
3753 withval="$with_gnu_ld"
3754 test "$withval" = no || with_gnu_ld=yes
3755else
3756 with_gnu_ld=no
3757fi;
3758ac_prog=ld
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003759if test "$GCC" = yes; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003760 # Check if gcc -print-prog-name=ld gives a path.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003761 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3762echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003763 case $host in
3764 *-*-mingw*)
3765 # gcc leaves a trailing carriage return which upsets mingw
3766 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3767 *)
3768 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3769 esac
3770 case $ac_prog in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003771 # Accept absolute paths.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003772 [\\/]* | ?:[\\/]*)
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003773 re_direlt='/[^/][^/]*/\.\./'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003774 # Canonicalize the pathname of ld
3775 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003776 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003777 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003778 done
3779 test -z "$LD" && LD="$ac_prog"
3780 ;;
3781 "")
3782 # If it fails, then pretend we aren't using GCC.
3783 ac_prog=ld
3784 ;;
3785 *)
3786 # If it is relative, then search for the first ld in PATH.
3787 with_gnu_ld=unknown
3788 ;;
3789 esac
3790elif test "$with_gnu_ld" = yes; then
3791 echo "$as_me:$LINENO: checking for GNU ld" >&5
3792echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3793else
3794 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3795echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3796fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003797if test "${lt_cv_path_LD+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799else
3800 if test -z "$LD"; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003801 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003802 for ac_dir in $PATH; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003803 IFS="$lt_save_ifs"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003804 test -z "$ac_dir" && ac_dir=.
3805 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003806 lt_cv_path_LD="$ac_dir/$ac_prog"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003807 # Check to see if the program is GNU ld. I'd rather use --version,
3808 # but apparently some GNU ld's only accept -v.
3809 # Break only if it was the GNU/non-GNU ld that we prefer.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003810 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3811 *GNU* | *'with BFD'*)
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003812 test "$with_gnu_ld" != no && break
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003813 ;;
3814 *)
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003815 test "$with_gnu_ld" != yes && break
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003816 ;;
3817 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003818 fi
3819 done
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003820 IFS="$lt_save_ifs"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003821else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003822 lt_cv_path_LD="$LD" # Let the user override the test with a path.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003823fi
3824fi
3825
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003826LD="$lt_cv_path_LD"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003827if test -n "$LD"; then
3828 echo "$as_me:$LINENO: result: $LD" >&5
3829echo "${ECHO_T}$LD" >&6
3830else
3831 echo "$as_me:$LINENO: result: no" >&5
3832echo "${ECHO_T}no" >&6
3833fi
3834test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3835echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3836 { (exit 1); exit 1; }; }
3837echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3838echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003839if test "${lt_cv_prog_gnu_ld+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003840 echo $ECHO_N "(cached) $ECHO_C" >&6
3841else
3842 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003843case `$LD -v 2>&1 </dev/null` in
3844*GNU* | *'with BFD'*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003845 lt_cv_prog_gnu_ld=yes
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003846 ;;
3847*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003848 lt_cv_prog_gnu_ld=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003849 ;;
3850esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003851fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003852echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3853echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3854with_gnu_ld=$lt_cv_prog_gnu_ld
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003855
3856
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003857echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3858echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3859if test "${lt_cv_ld_reload_flag+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861else
3862 lt_cv_ld_reload_flag='-r'
3863fi
3864echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3865echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3866reload_flag=$lt_cv_ld_reload_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003867case $reload_flag in
3868"" | " "*) ;;
3869*) reload_flag=" $reload_flag" ;;
3870esac
3871reload_cmds='$LD$reload_flag -o $output$reload_objs'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003872
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003873echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3874echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003875if test "${lt_cv_path_NM+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877else
3878 if test -n "$NM"; then
3879 # Let the user override the test.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003880 lt_cv_path_NM="$NM"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003881else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003883 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003884 IFS="$lt_save_ifs"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003885 test -z "$ac_dir" && ac_dir=.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003886 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3887 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003888 # Check to see if the nm accepts a BSD-compat flag.
3889 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3890 # nm: unknown option "B" ignored
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003891 # Tru64's nm complains that /dev/null is an invalid object file
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003892 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3893 */dev/null* | *'Invalid file or object type'*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003894 lt_cv_path_NM="$tmp_nm -B"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003895 break
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003896 ;;
3897 *)
3898 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3899 */dev/null*)
3900 lt_cv_path_NM="$tmp_nm -p"
3901 break
3902 ;;
3903 *)
3904 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3905 continue # so that we can try to find one that supports BSD flags
3906 ;;
3907 esac
3908 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003909 fi
3910 done
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003911 IFS="$lt_save_ifs"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003912 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003913fi
3914fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003915echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3916echo "${ECHO_T}$lt_cv_path_NM" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003917NM="$lt_cv_path_NM"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003918
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003919echo "$as_me:$LINENO: checking whether ln -s works" >&5
3920echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3921LN_S=$as_ln_s
3922if test "$LN_S" = "ln -s"; then
3923 echo "$as_me:$LINENO: result: yes" >&5
3924echo "${ECHO_T}yes" >&6
3925else
3926 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3927echo "${ECHO_T}no, using $LN_S" >&6
3928fi
3929
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003930echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3931echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3932if test "${lt_cv_deplibs_check_method+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3934else
3935 lt_cv_file_magic_cmd='$MAGIC_CMD'
3936lt_cv_file_magic_test_file=
3937lt_cv_deplibs_check_method='unknown'
3938# Need to set the preceding variable on all platforms that support
3939# interlibrary dependencies.
3940# 'none' -- dependencies not supported.
3941# `unknown' -- same as none, but documents that we really don't know.
3942# 'pass_all' -- all dependencies passed with no checks.
3943# 'test_compile' -- check by making test program.
3944# 'file_magic [[regex]]' -- check by looking for files in library path
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003945# which responds to the $file_magic_cmd with a given extended regex.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003946# If you have `file' or equivalent on your system and you're not sure
3947# whether `pass_all' will *always* work, you probably want this one.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003948
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003949case $host_os in
3950aix4* | aix5*)
3951 lt_cv_deplibs_check_method=pass_all
3952 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003953
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003954beos*)
3955 lt_cv_deplibs_check_method=pass_all
3956 ;;
3957
3958bsdi4*)
3959 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3960 lt_cv_file_magic_cmd='/usr/bin/file -L'
3961 lt_cv_file_magic_test_file=/shlib/libc.so
3962 ;;
3963
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003964cygwin*)
hp.com!davidm2de17682004-04-20 16:53:44 +00003965 # func_win32_libid is a shell function defined in ltmain.sh
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003966 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
hp.com!davidm2de17682004-04-20 16:53:44 +00003967 lt_cv_file_magic_cmd='func_win32_libid'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003968 ;;
3969
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003970mingw* | pw32*)
3971 # Base MSYS/MinGW do not provide the 'file' command needed by
hp.com!davidm2de17682004-04-20 16:53:44 +00003972 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003973 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3974 lt_cv_file_magic_cmd='$OBJDUMP -f'
3975 ;;
3976
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003977darwin* | rhapsody*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003978 lt_cv_deplibs_check_method=pass_all
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003979 ;;
3980
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003981freebsd* | kfreebsd*-gnu)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003982 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3983 case $host_cpu in
3984 i*86 )
3985 # Not sure whether the presence of OpenBSD here was a mistake.
3986 # Let's accept both of them until this is cleared up.
3987 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3988 lt_cv_file_magic_cmd=/usr/bin/file
3989 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3990 ;;
3991 esac
3992 else
3993 lt_cv_deplibs_check_method=pass_all
3994 fi
3995 ;;
3996
3997gnu*)
3998 lt_cv_deplibs_check_method=pass_all
3999 ;;
4000
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004001hpux10.20* | hpux11*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004002 lt_cv_file_magic_cmd=/usr/bin/file
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004003 case "$host_cpu" in
4004 ia64*)
4005 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4006 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4007 ;;
4008 hppa*64*)
4009 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4010 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4011 ;;
4012 *)
4013 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4014 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4015 ;;
4016 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004017 ;;
4018
4019irix5* | irix6* | nonstopux*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004020 case $LD in
4021 *-32|*"-32 ") libmagic=32-bit;;
4022 *-n32|*"-n32 ") libmagic=N32;;
4023 *-64|*"-64 ") libmagic=64-bit;;
4024 *) libmagic=never-match;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004025 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004026 lt_cv_deplibs_check_method=pass_all
4027 ;;
4028
4029# This must be Linux ELF.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004030linux*)
4031 lt_cv_deplibs_check_method=pass_all
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004032 ;;
4033
hp.com!davidm16230292004-07-15 17:39:59 +00004034netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004035 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004037 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004039 fi
4040 ;;
4041
4042newos6*)
4043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4044 lt_cv_file_magic_cmd=/usr/bin/file
4045 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4046 ;;
4047
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004048nto-qnx*)
4049 lt_cv_deplibs_check_method=unknown
4050 ;;
4051
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004052openbsd*)
4053 lt_cv_file_magic_cmd=/usr/bin/file
4054 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4055 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4056 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4057 else
4058 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4059 fi
4060 ;;
4061
4062osf3* | osf4* | osf5*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004063 lt_cv_deplibs_check_method=pass_all
4064 ;;
4065
4066sco3.2v5*)
4067 lt_cv_deplibs_check_method=pass_all
4068 ;;
4069
4070solaris*)
4071 lt_cv_deplibs_check_method=pass_all
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004072 ;;
4073
4074sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4075 case $host_vendor in
4076 motorola)
4077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4078 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4079 ;;
4080 ncr)
4081 lt_cv_deplibs_check_method=pass_all
4082 ;;
4083 sequent)
4084 lt_cv_file_magic_cmd='/bin/file'
4085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4086 ;;
4087 sni)
4088 lt_cv_file_magic_cmd='/bin/file'
4089 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4090 lt_cv_file_magic_test_file=/lib/libc.so
4091 ;;
4092 siemens)
4093 lt_cv_deplibs_check_method=pass_all
4094 ;;
4095 esac
4096 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004097
4098sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4099 lt_cv_deplibs_check_method=pass_all
4100 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004101esac
4102
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004103fi
4104echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4105echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4106file_magic_cmd=$lt_cv_file_magic_cmd
4107deplibs_check_method=$lt_cv_deplibs_check_method
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004108test -z "$deplibs_check_method" && deplibs_check_method=unknown
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004109
4110
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004111
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004112
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004113# If no C compiler was specified, use CC.
4114LTCC=${LTCC-"$CC"}
4115
4116# Allow CC to be a program name with arguments.
4117compiler=$CC
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004118
4119
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004120# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4121if test "${enable_libtool_lock+set}" = set; then
4122 enableval="$enable_libtool_lock"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004123
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004124fi;
4125test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004126
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004127# Some flags need to be propagated to the compiler or linker for good
4128# libtool support.
4129case $host in
4130ia64-*-hpux*)
4131 # Find out which ABI we are using.
4132 echo 'int i;' > conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134 (eval $ac_compile) 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004138 case `/usr/bin/file conftest.$ac_objext` in
4139 *ELF-32*)
4140 HPUX_IA64_MODE="32"
4141 ;;
4142 *ELF-64*)
4143 HPUX_IA64_MODE="64"
4144 ;;
4145 esac
4146 fi
4147 rm -rf conftest*
4148 ;;
4149*-*-irix6*)
4150 # Find out which ABI we are using.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004151 echo '#line 4151 "configure"' > conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4153 (eval $ac_compile) 2>&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004156 (exit $ac_status); }; then
4157 if test "$lt_cv_prog_gnu_ld" = yes; then
4158 case `/usr/bin/file conftest.$ac_objext` in
4159 *32-bit*)
4160 LD="${LD-ld} -melf32bsmip"
4161 ;;
4162 *N32*)
4163 LD="${LD-ld} -melf32bmipn32"
4164 ;;
4165 *64-bit*)
4166 LD="${LD-ld} -melf64bmip"
4167 ;;
4168 esac
4169 else
4170 case `/usr/bin/file conftest.$ac_objext` in
4171 *32-bit*)
4172 LD="${LD-ld} -32"
4173 ;;
4174 *N32*)
4175 LD="${LD-ld} -n32"
4176 ;;
4177 *64-bit*)
4178 LD="${LD-ld} -64"
4179 ;;
4180 esac
4181 fi
4182 fi
4183 rm -rf conftest*
4184 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004185
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004186x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4187 # Find out which ABI we are using.
4188 echo 'int i;' > conftest.$ac_ext
4189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4190 (eval $ac_compile) 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; then
4194 case "`/usr/bin/file conftest.o`" in
4195 *32-bit*)
4196 case $host in
4197 x86_64-*linux*)
4198 LD="${LD-ld} -m elf_i386"
4199 ;;
4200 ppc64-*linux*|powerpc64-*linux*)
4201 LD="${LD-ld} -m elf32ppclinux"
4202 ;;
4203 s390x-*linux*)
4204 LD="${LD-ld} -m elf_s390"
4205 ;;
4206 sparc64-*linux*)
4207 LD="${LD-ld} -m elf32_sparc"
4208 ;;
4209 esac
4210 ;;
4211 *64-bit*)
4212 case $host in
4213 x86_64-*linux*)
4214 LD="${LD-ld} -m elf_x86_64"
4215 ;;
4216 ppc*-*linux*|powerpc*-*linux*)
4217 LD="${LD-ld} -m elf64ppc"
4218 ;;
4219 s390*-*linux*)
4220 LD="${LD-ld} -m elf64_s390"
4221 ;;
4222 sparc*-*linux*)
4223 LD="${LD-ld} -m elf64_sparc"
4224 ;;
4225 esac
4226 ;;
4227 esac
4228 fi
4229 rm -rf conftest*
4230 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004231
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004232*-*-sco3.2v5*)
4233 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4234 SAVE_CFLAGS="$CFLAGS"
4235 CFLAGS="$CFLAGS -belf"
4236 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4237echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4238if test "${lt_cv_cc_needs_belf+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240else
4241 ac_ext=c
4242ac_cpp='$CPP $CPPFLAGS'
4243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245ac_compiler_gnu=$ac_cv_c_compiler_gnu
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004246
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004247 cat >conftest.$ac_ext <<_ACEOF
4248/* confdefs.h. */
4249_ACEOF
4250cat confdefs.h >>conftest.$ac_ext
4251cat >>conftest.$ac_ext <<_ACEOF
4252/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004253
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004254int
4255main ()
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004256{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004257
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004258 ;
4259 return 0;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004260}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004261_ACEOF
4262rm -f conftest.$ac_objext conftest$ac_exeext
4263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004264 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004265 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004266 grep -v '^ *+' conftest.er1 >conftest.err
4267 rm -f conftest.er1
4268 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 (eval $ac_try) 2>&5
4274 ac_status=$?
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; } &&
4277 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 (eval $ac_try) 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 lt_cv_cc_needs_belf=yes
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004284else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004285 echo "$as_me: failed program was:" >&5
4286sed 's/^/| /' conftest.$ac_ext >&5
4287
4288lt_cv_cc_needs_belf=no
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004289fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004290rm -f conftest.err conftest.$ac_objext \
4291 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004292 ac_ext=c
4293ac_cpp='$CPP $CPPFLAGS'
4294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004298fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004299echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4300echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4301 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4302 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4303 CFLAGS="$SAVE_CFLAGS"
4304 fi
4305 ;;
4306
4307esac
4308
4309need_locks="$enable_libtool_lock"
4310
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004311
4312ac_ext=c
4313ac_cpp='$CPP $CPPFLAGS'
4314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4318echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4319# On Suns, sometimes $CPP names a directory.
4320if test -n "$CPP" && test -d "$CPP"; then
4321 CPP=
4322fi
4323if test -z "$CPP"; then
4324 if test "${ac_cv_prog_CPP+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4326else
4327 # Double quotes because CPP needs to be expanded
4328 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4329 do
4330 ac_preproc_ok=false
4331for ac_c_preproc_warn_flag in '' yes
4332do
4333 # Use a header file that comes with gcc, so configuring glibc
4334 # with a fresh cross-compiler works.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336 # <limits.h> exists even on freestanding compilers.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004337 # On the NeXT, cc -E runs the code through the compiler's parser,
4338 # not just through cpp. "Syntax error" is here to catch this case.
4339 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004340/* confdefs.h. */
4341_ACEOF
4342cat confdefs.h >>conftest.$ac_ext
4343cat >>conftest.$ac_ext <<_ACEOF
4344/* end confdefs.h. */
4345#ifdef __STDC__
4346# include <limits.h>
4347#else
4348# include <assert.h>
4349#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004350 Syntax error
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004351_ACEOF
4352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4354 ac_status=$?
4355 grep -v '^ *+' conftest.er1 >conftest.err
4356 rm -f conftest.er1
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } >/dev/null; then
4360 if test -s conftest.err; then
4361 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004363 else
4364 ac_cpp_err=
4365 fi
4366else
4367 ac_cpp_err=yes
4368fi
4369if test -z "$ac_cpp_err"; then
4370 :
4371else
4372 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004373sed 's/^/| /' conftest.$ac_ext >&5
4374
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004375 # Broken: fails on valid input.
4376continue
4377fi
4378rm -f conftest.err conftest.$ac_ext
4379
4380 # OK, works on sane cases. Now check whether non-existent headers
4381 # can be detected and how.
4382 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004383/* confdefs.h. */
4384_ACEOF
4385cat confdefs.h >>conftest.$ac_ext
4386cat >>conftest.$ac_ext <<_ACEOF
4387/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004388#include <ac_nonexistent.h>
4389_ACEOF
4390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4392 ac_status=$?
4393 grep -v '^ *+' conftest.er1 >conftest.err
4394 rm -f conftest.er1
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } >/dev/null; then
4398 if test -s conftest.err; then
4399 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004401 else
4402 ac_cpp_err=
4403 fi
4404else
4405 ac_cpp_err=yes
4406fi
4407if test -z "$ac_cpp_err"; then
4408 # Broken: success on invalid input.
4409continue
4410else
4411 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004412sed 's/^/| /' conftest.$ac_ext >&5
4413
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004414 # Passes both tests.
4415ac_preproc_ok=:
4416break
4417fi
4418rm -f conftest.err conftest.$ac_ext
4419
4420done
4421# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4422rm -f conftest.err conftest.$ac_ext
4423if $ac_preproc_ok; then
4424 break
4425fi
4426
4427 done
4428 ac_cv_prog_CPP=$CPP
4429
4430fi
4431 CPP=$ac_cv_prog_CPP
4432else
4433 ac_cv_prog_CPP=$CPP
4434fi
4435echo "$as_me:$LINENO: result: $CPP" >&5
4436echo "${ECHO_T}$CPP" >&6
4437ac_preproc_ok=false
4438for ac_c_preproc_warn_flag in '' yes
4439do
4440 # Use a header file that comes with gcc, so configuring glibc
4441 # with a fresh cross-compiler works.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4443 # <limits.h> exists even on freestanding compilers.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004444 # On the NeXT, cc -E runs the code through the compiler's parser,
4445 # not just through cpp. "Syntax error" is here to catch this case.
4446 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004447/* confdefs.h. */
4448_ACEOF
4449cat confdefs.h >>conftest.$ac_ext
4450cat >>conftest.$ac_ext <<_ACEOF
4451/* end confdefs.h. */
4452#ifdef __STDC__
4453# include <limits.h>
4454#else
4455# include <assert.h>
4456#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004457 Syntax error
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004458_ACEOF
4459if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4461 ac_status=$?
4462 grep -v '^ *+' conftest.er1 >conftest.err
4463 rm -f conftest.er1
4464 cat conftest.err >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } >/dev/null; then
4467 if test -s conftest.err; then
4468 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004470 else
4471 ac_cpp_err=
4472 fi
4473else
4474 ac_cpp_err=yes
4475fi
4476if test -z "$ac_cpp_err"; then
4477 :
4478else
4479 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004480sed 's/^/| /' conftest.$ac_ext >&5
4481
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004482 # Broken: fails on valid input.
4483continue
4484fi
4485rm -f conftest.err conftest.$ac_ext
4486
4487 # OK, works on sane cases. Now check whether non-existent headers
4488 # can be detected and how.
4489 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004490/* confdefs.h. */
4491_ACEOF
4492cat confdefs.h >>conftest.$ac_ext
4493cat >>conftest.$ac_ext <<_ACEOF
4494/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004495#include <ac_nonexistent.h>
4496_ACEOF
4497if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4499 ac_status=$?
4500 grep -v '^ *+' conftest.er1 >conftest.err
4501 rm -f conftest.er1
4502 cat conftest.err >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } >/dev/null; then
4505 if test -s conftest.err; then
4506 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004508 else
4509 ac_cpp_err=
4510 fi
4511else
4512 ac_cpp_err=yes
4513fi
4514if test -z "$ac_cpp_err"; then
4515 # Broken: success on invalid input.
4516continue
4517else
4518 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004519sed 's/^/| /' conftest.$ac_ext >&5
4520
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004521 # Passes both tests.
4522ac_preproc_ok=:
4523break
4524fi
4525rm -f conftest.err conftest.$ac_ext
4526
4527done
4528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4529rm -f conftest.err conftest.$ac_ext
4530if $ac_preproc_ok; then
4531 :
4532else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004533 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4534See \`config.log' for more details." >&5
4535echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4536See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004537 { (exit 1); exit 1; }; }
4538fi
4539
4540ac_ext=c
4541ac_cpp='$CPP $CPPFLAGS'
4542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545
4546
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004547echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4548echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4549if test "${ac_cv_header_stdc+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4551else
4552 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004553/* confdefs.h. */
4554_ACEOF
4555cat confdefs.h >>conftest.$ac_ext
4556cat >>conftest.$ac_ext <<_ACEOF
4557/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004558#include <stdlib.h>
4559#include <stdarg.h>
4560#include <string.h>
4561#include <float.h>
4562
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004563int
4564main ()
4565{
4566
4567 ;
4568 return 0;
4569}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004570_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004571rm -f conftest.$ac_objext
4572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004573 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004574 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004575 grep -v '^ *+' conftest.er1 >conftest.err
4576 rm -f conftest.er1
4577 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004579 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 (eval $ac_try) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; } &&
4586 { ac_try='test -s conftest.$ac_objext'
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 (eval $ac_try) 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004592 ac_cv_header_stdc=yes
4593else
4594 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004595sed 's/^/| /' conftest.$ac_ext >&5
4596
4597ac_cv_header_stdc=no
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004598fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004600
4601if test $ac_cv_header_stdc = yes; then
4602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4603 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004604/* confdefs.h. */
4605_ACEOF
4606cat confdefs.h >>conftest.$ac_ext
4607cat >>conftest.$ac_ext <<_ACEOF
4608/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004609#include <string.h>
4610
4611_ACEOF
4612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613 $EGREP "memchr" >/dev/null 2>&1; then
4614 :
4615else
4616 ac_cv_header_stdc=no
4617fi
4618rm -f conftest*
4619
4620fi
4621
4622if test $ac_cv_header_stdc = yes; then
4623 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4624 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004625/* confdefs.h. */
4626_ACEOF
4627cat confdefs.h >>conftest.$ac_ext
4628cat >>conftest.$ac_ext <<_ACEOF
4629/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004630#include <stdlib.h>
4631
4632_ACEOF
4633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4634 $EGREP "free" >/dev/null 2>&1; then
4635 :
4636else
4637 ac_cv_header_stdc=no
4638fi
4639rm -f conftest*
4640
4641fi
4642
4643if test $ac_cv_header_stdc = yes; then
4644 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4645 if test "$cross_compiling" = yes; then
4646 :
4647else
4648 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004649/* confdefs.h. */
4650_ACEOF
4651cat confdefs.h >>conftest.$ac_ext
4652cat >>conftest.$ac_ext <<_ACEOF
4653/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004654#include <ctype.h>
4655#if ((' ' & 0x0FF) == 0x020)
4656# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4657# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4658#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004659# define ISLOWER(c) \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004660 (('a' <= (c) && (c) <= 'i') \
4661 || ('j' <= (c) && (c) <= 'r') \
4662 || ('s' <= (c) && (c) <= 'z'))
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004663# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4664#endif
4665
4666#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4667int
4668main ()
4669{
4670 int i;
4671 for (i = 0; i < 256; i++)
4672 if (XOR (islower (i), ISLOWER (i))
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004673 || toupper (i) != TOUPPER (i))
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004674 exit(2);
4675 exit (0);
4676}
4677_ACEOF
4678rm -f conftest$ac_exeext
4679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4680 (eval $ac_link) 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 (eval $ac_try) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }; then
4689 :
4690else
4691 echo "$as_me: program exited with status $ac_status" >&5
4692echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004693sed 's/^/| /' conftest.$ac_ext >&5
4694
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004695( exit $ac_status )
4696ac_cv_header_stdc=no
4697fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004698rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004699fi
4700fi
4701fi
4702echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4703echo "${ECHO_T}$ac_cv_header_stdc" >&6
4704if test $ac_cv_header_stdc = yes; then
4705
4706cat >>confdefs.h <<\_ACEOF
4707#define STDC_HEADERS 1
4708_ACEOF
4709
4710fi
4711
4712# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004723 inttypes.h stdint.h unistd.h
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004724do
4725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4726echo "$as_me:$LINENO: checking for $ac_header" >&5
4727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4728if eval "test \"\${$as_ac_Header+set}\" = set"; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4730else
4731 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004732/* confdefs.h. */
4733_ACEOF
4734cat confdefs.h >>conftest.$ac_ext
4735cat >>conftest.$ac_ext <<_ACEOF
4736/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004737$ac_includes_default
4738
4739#include <$ac_header>
4740_ACEOF
4741rm -f conftest.$ac_objext
4742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004743 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004744 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004745 grep -v '^ *+' conftest.er1 >conftest.err
4746 rm -f conftest.er1
4747 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 (eval $ac_try) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; } &&
4756 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 (eval $ac_try) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; }; then
4762 eval "$as_ac_Header=yes"
4763else
4764 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004765sed 's/^/| /' conftest.$ac_ext >&5
4766
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004767eval "$as_ac_Header=no"
4768fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004770fi
4771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4773if test `eval echo '${'$as_ac_Header'}'` = yes; then
4774 cat >>confdefs.h <<_ACEOF
4775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4776_ACEOF
4777
4778fi
4779
4780done
4781
4782
4783
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004784for ac_header in dlfcn.h
4785do
4786as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4787if eval "test \"\${$as_ac_Header+set}\" = set"; then
4788 echo "$as_me:$LINENO: checking for $ac_header" >&5
4789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4790if eval "test \"\${$as_ac_Header+set}\" = set"; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4792fi
4793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4794echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4795else
4796 # Is the header compilable?
4797echo "$as_me:$LINENO: checking $ac_header usability" >&5
4798echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4799cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004800/* confdefs.h. */
4801_ACEOF
4802cat confdefs.h >>conftest.$ac_ext
4803cat >>conftest.$ac_ext <<_ACEOF
4804/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004805$ac_includes_default
4806#include <$ac_header>
4807_ACEOF
4808rm -f conftest.$ac_objext
4809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004810 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004811 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004812 grep -v '^ *+' conftest.er1 >conftest.err
4813 rm -f conftest.er1
4814 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 (eval $ac_try) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; } &&
4823 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 ac_header_compiler=yes
4830else
4831 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004832sed 's/^/| /' conftest.$ac_ext >&5
4833
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004834ac_header_compiler=no
4835fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004837echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4838echo "${ECHO_T}$ac_header_compiler" >&6
4839
4840# Is the header present?
4841echo "$as_me:$LINENO: checking $ac_header presence" >&5
4842echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4843cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004844/* confdefs.h. */
4845_ACEOF
4846cat confdefs.h >>conftest.$ac_ext
4847cat >>conftest.$ac_ext <<_ACEOF
4848/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004849#include <$ac_header>
4850_ACEOF
4851if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4853 ac_status=$?
4854 grep -v '^ *+' conftest.er1 >conftest.err
4855 rm -f conftest.er1
4856 cat conftest.err >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } >/dev/null; then
4859 if test -s conftest.err; then
4860 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004862 else
4863 ac_cpp_err=
4864 fi
4865else
4866 ac_cpp_err=yes
4867fi
4868if test -z "$ac_cpp_err"; then
4869 ac_header_preproc=yes
4870else
4871 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004872sed 's/^/| /' conftest.$ac_ext >&5
4873
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004874 ac_header_preproc=no
4875fi
4876rm -f conftest.err conftest.$ac_ext
4877echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4878echo "${ECHO_T}$ac_header_preproc" >&6
4879
4880# So? What about this header?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004881case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4882 yes:no: )
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4884echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4886echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4887 ac_header_preproc=yes
mostang.com!davidm046362a2003-12-05 06:42:28 +00004888 ;;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004889 no:yes:* )
mostang.com!davidm046362a2003-12-05 06:42:28 +00004890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4891echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4893echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4895echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4897echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +00004898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4901echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +00004902 (
4903 cat <<\_ASBOX
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004904## ----------------------------------------- ##
4905## Report this to libunwind@linux.hpl.hp.com ##
4906## ----------------------------------------- ##
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004907_ASBOX
4908 ) |
4909 sed "s/^/$as_me: WARNING: /" >&2
4910 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004911esac
4912echo "$as_me:$LINENO: checking for $ac_header" >&5
4913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4914if eval "test \"\${$as_ac_Header+set}\" = set"; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4916else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004917 eval "$as_ac_Header=\$ac_header_preproc"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004918fi
4919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4920echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4921
4922fi
4923if test `eval echo '${'$as_ac_Header'}'` = yes; then
4924 cat >>confdefs.h <<_ACEOF
4925#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4926_ACEOF
4927
4928fi
4929
4930done
4931
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004932ac_ext=cc
4933ac_cpp='$CXXCPP $CPPFLAGS'
4934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4937echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4938echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4939if test -z "$CXXCPP"; then
4940 if test "${ac_cv_prog_CXXCPP+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004943 # Double quotes because CXXCPP needs to be expanded
4944 for CXXCPP in "$CXX -E" "/lib/cpp"
4945 do
4946 ac_preproc_ok=false
4947for ac_cxx_preproc_warn_flag in '' yes
4948do
4949 # Use a header file that comes with gcc, so configuring glibc
4950 # with a fresh cross-compiler works.
4951 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4952 # <limits.h> exists even on freestanding compilers.
4953 # On the NeXT, cc -E runs the code through the compiler's parser,
4954 # not just through cpp. "Syntax error" is here to catch this case.
4955 cat >conftest.$ac_ext <<_ACEOF
4956/* confdefs.h. */
4957_ACEOF
4958cat confdefs.h >>conftest.$ac_ext
4959cat >>conftest.$ac_ext <<_ACEOF
4960/* end confdefs.h. */
4961#ifdef __STDC__
4962# include <limits.h>
4963#else
4964# include <assert.h>
4965#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004966 Syntax error
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004967_ACEOF
4968if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4970 ac_status=$?
4971 grep -v '^ *+' conftest.er1 >conftest.err
4972 rm -f conftest.er1
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } >/dev/null; then
4976 if test -s conftest.err; then
4977 ac_cpp_err=$ac_cxx_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004978 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004979 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004980 ac_cpp_err=
4981 fi
4982else
4983 ac_cpp_err=yes
4984fi
4985if test -z "$ac_cpp_err"; then
4986 :
4987else
4988 echo "$as_me: failed program was:" >&5
4989sed 's/^/| /' conftest.$ac_ext >&5
4990
4991 # Broken: fails on valid input.
4992continue
4993fi
4994rm -f conftest.err conftest.$ac_ext
4995
4996 # OK, works on sane cases. Now check whether non-existent headers
4997 # can be detected and how.
4998 cat >conftest.$ac_ext <<_ACEOF
4999/* confdefs.h. */
5000_ACEOF
5001cat confdefs.h >>conftest.$ac_ext
5002cat >>conftest.$ac_ext <<_ACEOF
5003/* end confdefs.h. */
5004#include <ac_nonexistent.h>
5005_ACEOF
5006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5008 ac_status=$?
5009 grep -v '^ *+' conftest.er1 >conftest.err
5010 rm -f conftest.er1
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } >/dev/null; then
5014 if test -s conftest.err; then
5015 ac_cpp_err=$ac_cxx_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005016 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005017 else
5018 ac_cpp_err=
5019 fi
5020else
5021 ac_cpp_err=yes
5022fi
5023if test -z "$ac_cpp_err"; then
5024 # Broken: success on invalid input.
5025continue
5026else
5027 echo "$as_me: failed program was:" >&5
5028sed 's/^/| /' conftest.$ac_ext >&5
5029
5030 # Passes both tests.
5031ac_preproc_ok=:
5032break
5033fi
5034rm -f conftest.err conftest.$ac_ext
5035
5036done
5037# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5038rm -f conftest.err conftest.$ac_ext
5039if $ac_preproc_ok; then
5040 break
5041fi
5042
5043 done
5044 ac_cv_prog_CXXCPP=$CXXCPP
5045
5046fi
5047 CXXCPP=$ac_cv_prog_CXXCPP
5048else
5049 ac_cv_prog_CXXCPP=$CXXCPP
5050fi
5051echo "$as_me:$LINENO: result: $CXXCPP" >&5
5052echo "${ECHO_T}$CXXCPP" >&6
5053ac_preproc_ok=false
5054for ac_cxx_preproc_warn_flag in '' yes
5055do
5056 # Use a header file that comes with gcc, so configuring glibc
5057 # with a fresh cross-compiler works.
5058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5059 # <limits.h> exists even on freestanding compilers.
5060 # On the NeXT, cc -E runs the code through the compiler's parser,
5061 # not just through cpp. "Syntax error" is here to catch this case.
5062 cat >conftest.$ac_ext <<_ACEOF
5063/* confdefs.h. */
5064_ACEOF
5065cat confdefs.h >>conftest.$ac_ext
5066cat >>conftest.$ac_ext <<_ACEOF
5067/* end confdefs.h. */
5068#ifdef __STDC__
5069# include <limits.h>
5070#else
5071# include <assert.h>
5072#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005073 Syntax error
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005074_ACEOF
5075if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } >/dev/null; then
5083 if test -s conftest.err; then
5084 ac_cpp_err=$ac_cxx_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005085 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005086 else
5087 ac_cpp_err=
5088 fi
5089else
5090 ac_cpp_err=yes
5091fi
5092if test -z "$ac_cpp_err"; then
5093 :
5094else
5095 echo "$as_me: failed program was:" >&5
5096sed 's/^/| /' conftest.$ac_ext >&5
5097
5098 # Broken: fails on valid input.
5099continue
5100fi
5101rm -f conftest.err conftest.$ac_ext
5102
5103 # OK, works on sane cases. Now check whether non-existent headers
5104 # can be detected and how.
5105 cat >conftest.$ac_ext <<_ACEOF
5106/* confdefs.h. */
5107_ACEOF
5108cat confdefs.h >>conftest.$ac_ext
5109cat >>conftest.$ac_ext <<_ACEOF
5110/* end confdefs.h. */
5111#include <ac_nonexistent.h>
5112_ACEOF
5113if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5115 ac_status=$?
5116 grep -v '^ *+' conftest.er1 >conftest.err
5117 rm -f conftest.er1
5118 cat conftest.err >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } >/dev/null; then
5121 if test -s conftest.err; then
5122 ac_cpp_err=$ac_cxx_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005123 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005124 else
5125 ac_cpp_err=
5126 fi
5127else
5128 ac_cpp_err=yes
5129fi
5130if test -z "$ac_cpp_err"; then
5131 # Broken: success on invalid input.
5132continue
5133else
5134 echo "$as_me: failed program was:" >&5
5135sed 's/^/| /' conftest.$ac_ext >&5
5136
5137 # Passes both tests.
5138ac_preproc_ok=:
5139break
5140fi
5141rm -f conftest.err conftest.$ac_ext
5142
5143done
5144# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5145rm -f conftest.err conftest.$ac_ext
5146if $ac_preproc_ok; then
5147 :
5148else
5149 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5150See \`config.log' for more details." >&5
5151echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5152See \`config.log' for more details." >&2;}
5153 { (exit 1); exit 1; }; }
5154fi
5155
5156ac_ext=cc
5157ac_cpp='$CXXCPP $CPPFLAGS'
5158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5161
5162
5163ac_ext=f
5164ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5165ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5166ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5167if test -n "$ac_tool_prefix"; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005168 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005169 do
5170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5171set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5172echo "$as_me:$LINENO: checking for $ac_word" >&5
5173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5174if test "${ac_cv_prog_F77+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5176else
5177 if test -n "$F77"; then
5178 ac_cv_prog_F77="$F77" # Let the user override the test.
5179else
5180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181for as_dir in $PATH
5182do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5190 fi
5191done
5192done
5193
5194fi
5195fi
5196F77=$ac_cv_prog_F77
5197if test -n "$F77"; then
5198 echo "$as_me:$LINENO: result: $F77" >&5
5199echo "${ECHO_T}$F77" >&6
5200else
5201 echo "$as_me:$LINENO: result: no" >&5
5202echo "${ECHO_T}no" >&6
5203fi
5204
5205 test -n "$F77" && break
5206 done
5207fi
5208if test -z "$F77"; then
5209 ac_ct_F77=$F77
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005210 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005211do
5212 # Extract the first word of "$ac_prog", so it can be a program name with args.
5213set dummy $ac_prog; ac_word=$2
5214echo "$as_me:$LINENO: checking for $ac_word" >&5
5215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5216if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5218else
5219 if test -n "$ac_ct_F77"; then
5220 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5221else
5222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223for as_dir in $PATH
5224do
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5229 ac_cv_prog_ac_ct_F77="$ac_prog"
5230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5232 fi
5233done
5234done
5235
5236fi
5237fi
5238ac_ct_F77=$ac_cv_prog_ac_ct_F77
5239if test -n "$ac_ct_F77"; then
5240 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5241echo "${ECHO_T}$ac_ct_F77" >&6
5242else
5243 echo "$as_me:$LINENO: result: no" >&5
5244echo "${ECHO_T}no" >&6
5245fi
5246
5247 test -n "$ac_ct_F77" && break
5248done
5249
5250 F77=$ac_ct_F77
5251fi
5252
5253
5254# Provide some information about the compiler.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005255echo "$as_me:5255:" \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005256 "checking for Fortran 77 compiler version" >&5
5257ac_compiler=`set X $ac_compile; echo $2`
5258{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5259 (eval $ac_compiler --version </dev/null >&5) 2>&5
5260 ac_status=$?
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }
5263{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5264 (eval $ac_compiler -v </dev/null >&5) 2>&5
5265 ac_status=$?
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }
5268{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5269 (eval $ac_compiler -V </dev/null >&5) 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005273rm -f a.out
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005274
5275# If we don't use `.F' as extension, the preprocessor is not run on the
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005276# input file. (Note that this only needs to work for GNU compilers.)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005277ac_save_ext=$ac_ext
5278ac_ext=F
5279echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5280echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5281if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283else
5284 cat >conftest.$ac_ext <<_ACEOF
5285 program main
5286#ifndef __GNUC__
5287 choke me
5288#endif
5289
5290 end
5291_ACEOF
5292rm -f conftest.$ac_objext
5293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005294 (eval $ac_compile) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005295 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005296 grep -v '^ *+' conftest.er1 >conftest.err
5297 rm -f conftest.er1
5298 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005301 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 (eval $ac_try) 2>&5
5304 ac_status=$?
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; } &&
5307 { ac_try='test -s conftest.$ac_objext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 (eval $ac_try) 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 ac_compiler_gnu=yes
5314else
5315 echo "$as_me: failed program was:" >&5
5316sed 's/^/| /' conftest.$ac_ext >&5
5317
5318ac_compiler_gnu=no
5319fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005321ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5322
5323fi
5324echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5325echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5326ac_ext=$ac_save_ext
5327ac_test_FFLAGS=${FFLAGS+set}
5328ac_save_FFLAGS=$FFLAGS
5329FFLAGS=
5330echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5331echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5332if test "${ac_cv_prog_f77_g+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5334else
5335 FFLAGS=-g
5336cat >conftest.$ac_ext <<_ACEOF
5337 program main
5338
5339 end
5340_ACEOF
5341rm -f conftest.$ac_objext
5342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005343 (eval $ac_compile) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005344 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005345 grep -v '^ *+' conftest.er1 >conftest.err
5346 rm -f conftest.er1
5347 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005350 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 (eval $ac_try) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; } &&
5356 { ac_try='test -s conftest.$ac_objext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 (eval $ac_try) 2>&5
5359 ac_status=$?
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5362 ac_cv_prog_f77_g=yes
5363else
5364 echo "$as_me: failed program was:" >&5
5365sed 's/^/| /' conftest.$ac_ext >&5
5366
5367ac_cv_prog_f77_g=no
5368fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005370
5371fi
5372echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5373echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5374if test "$ac_test_FFLAGS" = set; then
5375 FFLAGS=$ac_save_FFLAGS
5376elif test $ac_cv_prog_f77_g = yes; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005377 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005378 FFLAGS="-g -O2"
5379 else
5380 FFLAGS="-g"
5381 fi
5382else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005383 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005384 FFLAGS="-O2"
5385 else
5386 FFLAGS=
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005387 fi
5388fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005389
5390G77=`test $ac_compiler_gnu = yes && echo yes`
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005391ac_ext=c
5392ac_cpp='$CPP $CPPFLAGS'
5393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395ac_compiler_gnu=$ac_cv_c_compiler_gnu
5396
5397
5398
5399# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5400
5401# find the maximum length of command line arguments
5402echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5403echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5404if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5406else
5407 i=0
hp.com!davidm2de17682004-04-20 16:53:44 +00005408 teststring="ABCD"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005409
5410 case $build_os in
5411 msdosdjgpp*)
5412 # On DJGPP, this test can blow up pretty badly due to problems in libc
5413 # (any single argument exceeding 2000 bytes causes a buffer overrun
5414 # during glob expansion). Even if it were fixed, the result of this
5415 # check would be larger than it should be.
5416 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5417 ;;
5418
5419 gnu*)
5420 # Under GNU Hurd, this test is not required because there is
5421 # no limit to the length of command line arguments.
5422 # Libtool will interpret -1 as no limit whatsoever
5423 lt_cv_sys_max_cmd_len=-1;
5424 ;;
5425
5426 cygwin* | mingw*)
5427 # On Win9x/ME, this test blows up -- it succeeds, but takes
5428 # about 5 minutes as the teststring grows exponentially.
5429 # Worse, since 9x/ME are not pre-emptively multitasking,
5430 # you end up with a "frozen" computer, even though with patience
5431 # the test eventually succeeds (with a max line length of 256k).
5432 # Instead, let's just punt: use the minimum linelength reported by
5433 # all of the supported platforms: 8192 (on NT/2K/XP).
5434 lt_cv_sys_max_cmd_len=8192;
5435 ;;
5436
5437 amigaos*)
5438 # On AmigaOS with pdksh, this test takes hours, literally.
5439 # So we just punt and use a minimum line length of 8192.
5440 lt_cv_sys_max_cmd_len=8192;
5441 ;;
5442
5443 *)
5444 # If test is not a shell built-in, we'll probably end up computing a
5445 # maximum length that is only half of the actual maximum length, but
5446 # we can't tell.
hp.com!davidm2de17682004-04-20 16:53:44 +00005447 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5448 = "XX$teststring") >/dev/null 2>&1 &&
5449 new_result=`expr "X$teststring" : ".*" 2>&1` &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005450 lt_cv_sys_max_cmd_len=$new_result &&
5451 test $i != 17 # 1/2 MB should be enough
5452 do
5453 i=`expr $i + 1`
hp.com!davidm2de17682004-04-20 16:53:44 +00005454 teststring=$teststring$teststring
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005455 done
hp.com!davidm2de17682004-04-20 16:53:44 +00005456 teststring=
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005457 # Add a significant safety factor because C++ compilers can tack on massive
5458 # amounts of additional arguments before passing them to the linker.
5459 # It appears as though 1/2 is a usable value.
5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5461 ;;
5462 esac
5463
5464fi
5465
5466if test -n $lt_cv_sys_max_cmd_len ; then
5467 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5468echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5469else
5470 echo "$as_me:$LINENO: result: none" >&5
5471echo "${ECHO_T}none" >&6
5472fi
5473
5474
5475
5476
5477# Check for command to grab the raw symbol name followed by C symbol from nm.
5478echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5479echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5480if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482else
5483
5484# These are sane defaults that work on at least a few old systems.
5485# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5486
5487# Character class describing NM global symbol codes.
5488symcode='[BCDEGRST]'
5489
5490# Regexp to match symbols that can be accessed directly from C.
5491sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5492
5493# Transform the above into a raw symbol and a C symbol.
5494symxfrm='\1 \2\3 \3'
5495
5496# Transform an extracted symbol line into a proper C declaration
5497lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5498
5499# Transform an extracted symbol line into symbol name and symbol address
5500lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5501
5502# Define system-specific variables.
5503case $host_os in
5504aix*)
5505 symcode='[BCDT]'
5506 ;;
5507cygwin* | mingw* | pw32*)
5508 symcode='[ABCDGISTW]'
5509 ;;
5510hpux*) # Its linker distinguishes data from code symbols
5511 if test "$host_cpu" = ia64; then
5512 symcode='[ABCDEGRST]'
5513 fi
5514 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5515 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5516 ;;
5517irix* | nonstopux*)
5518 symcode='[BCDEGRST]'
5519 ;;
5520osf*)
5521 symcode='[BCDEGQRST]'
5522 ;;
5523solaris* | sysv5*)
5524 symcode='[BDRT]'
5525 ;;
5526sysv4)
5527 symcode='[DFNSTU]'
5528 ;;
5529esac
5530
5531# Handle CRLF in mingw tool chain
5532opt_cr=
5533case $build_os in
5534mingw*)
5535 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5536 ;;
5537esac
5538
5539# If we're using GNU nm, then use its standard symbol codes.
5540case `$NM -V 2>&1` in
5541*GNU* | *'with BFD'*)
5542 symcode='[ABCDGIRSTW]' ;;
5543esac
5544
5545# Try without a prefix undercore, then with it.
5546for ac_symprfx in "" "_"; do
5547
5548 # Write the raw and C identifiers.
5549 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5550
5551 # Check to see that the pipe works correctly.
5552 pipe_works=no
5553
5554 rm -f conftest*
5555 cat > conftest.$ac_ext <<EOF
5556#ifdef __cplusplus
5557extern "C" {
5558#endif
5559char nm_test_var;
5560void nm_test_func(){}
5561#ifdef __cplusplus
5562}
5563#endif
5564int main(){nm_test_var='a';nm_test_func();return(0);}
5565EOF
5566
5567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5568 (eval $ac_compile) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; then
5572 # Now try to grab the symbols.
5573 nlist=conftest.nm
5574 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5575 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } && test -s "$nlist"; then
5579 # Try sorting and uniquifying the output.
5580 if sort "$nlist" | uniq > "$nlist"T; then
5581 mv -f "$nlist"T "$nlist"
5582 else
5583 rm -f "$nlist"T
5584 fi
5585
5586 # Make sure that we snagged all the symbols we need.
5587 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5588 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5589 cat <<EOF > conftest.$ac_ext
5590#ifdef __cplusplus
5591extern "C" {
5592#endif
5593
5594EOF
5595 # Now generate the symbol file.
5596 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5597
5598 cat <<EOF >> conftest.$ac_ext
5599#if defined (__STDC__) && __STDC__
5600# define lt_ptr_t void *
5601#else
5602# define lt_ptr_t char *
5603# define const
5604#endif
5605
5606/* The mapping between symbol names and symbols. */
5607const struct {
5608 const char *name;
5609 lt_ptr_t address;
5610}
5611lt_preloaded_symbols[] =
5612{
5613EOF
5614 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5615 cat <<\EOF >> conftest.$ac_ext
5616 {0, (lt_ptr_t) 0}
5617};
5618
5619#ifdef __cplusplus
5620}
5621#endif
5622EOF
5623 # Now try linking the two files.
5624 mv conftest.$ac_objext conftstm.$ac_objext
5625 lt_save_LIBS="$LIBS"
5626 lt_save_CFLAGS="$CFLAGS"
5627 LIBS="conftstm.$ac_objext"
5628 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5630 (eval $ac_link) 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5634 pipe_works=yes
5635 fi
5636 LIBS="$lt_save_LIBS"
5637 CFLAGS="$lt_save_CFLAGS"
5638 else
5639 echo "cannot find nm_test_func in $nlist" >&5
5640 fi
5641 else
5642 echo "cannot find nm_test_var in $nlist" >&5
5643 fi
5644 else
5645 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5646 fi
5647 else
5648 echo "$progname: failed program was:" >&5
5649 cat conftest.$ac_ext >&5
5650 fi
5651 rm -f conftest* conftst*
5652
5653 # Do not use the global_symbol_pipe unless it works.
5654 if test "$pipe_works" = yes; then
5655 break
5656 else
5657 lt_cv_sys_global_symbol_pipe=
5658 fi
5659done
5660
5661fi
5662
5663if test -z "$lt_cv_sys_global_symbol_pipe"; then
5664 lt_cv_sys_global_symbol_to_cdecl=
5665fi
5666if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5667 echo "$as_me:$LINENO: result: failed" >&5
5668echo "${ECHO_T}failed" >&6
5669else
5670 echo "$as_me:$LINENO: result: ok" >&5
5671echo "${ECHO_T}ok" >&6
5672fi
5673
5674echo "$as_me:$LINENO: checking for objdir" >&5
5675echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5676if test "${lt_cv_objdir+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5678else
5679 rm -f .libs 2>/dev/null
5680mkdir .libs 2>/dev/null
5681if test -d .libs; then
5682 lt_cv_objdir=.libs
5683else
5684 # MS-DOS does not allow filenames that begin with a dot.
5685 lt_cv_objdir=_libs
5686fi
5687rmdir .libs 2>/dev/null
5688fi
5689echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5690echo "${ECHO_T}$lt_cv_objdir" >&6
5691objdir=$lt_cv_objdir
5692
5693
5694
5695
5696
5697case $host_os in
5698aix3*)
5699 # AIX sometimes has problems with the GCC collect2 program. For some
5700 # reason, if we set the COLLECT_NAMES environment variable, the problems
5701 # vanish in a puff of smoke.
5702 if test "X${COLLECT_NAMES+set}" != Xset; then
5703 COLLECT_NAMES=
5704 export COLLECT_NAMES
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005705 fi
5706 ;;
5707esac
5708
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005709# Sed substitution that helps us do robust quoting. It backslashifies
5710# metacharacters that are still active within double-quoted strings.
5711Xsed='sed -e s/^X//'
5712sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5713
5714# Same as above, but do not quote variable references.
5715double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5716
5717# Sed substitution to delay expansion of an escaped shell variable in a
5718# double_quote_subst'ed string.
5719delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5720
5721# Sed substitution to avoid accidental globbing in evaled expressions
5722no_glob_subst='s/\*/\\\*/g'
5723
5724# Constants:
5725rm="rm -f"
5726
5727# Global variables:
5728default_ofile=libtool
5729can_build_shared=yes
5730
5731# All known linkers require a `.a' archive for static linking (except M$VC,
5732# which needs '.lib').
5733libext=a
5734ltmain="$ac_aux_dir/ltmain.sh"
5735ofile="$default_ofile"
5736with_gnu_ld="$lt_cv_prog_gnu_ld"
5737
5738if test -n "$ac_tool_prefix"; then
5739 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5740set dummy ${ac_tool_prefix}ar; ac_word=$2
5741echo "$as_me:$LINENO: checking for $ac_word" >&5
5742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5743if test "${ac_cv_prog_AR+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5745else
5746 if test -n "$AR"; then
5747 ac_cv_prog_AR="$AR" # Let the user override the test.
5748else
5749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750for as_dir in $PATH
5751do
5752 IFS=$as_save_IFS
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_AR="${ac_tool_prefix}ar"
5757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 break 2
5759 fi
5760done
5761done
5762
5763fi
5764fi
5765AR=$ac_cv_prog_AR
5766if test -n "$AR"; then
5767 echo "$as_me:$LINENO: result: $AR" >&5
5768echo "${ECHO_T}$AR" >&6
5769else
5770 echo "$as_me:$LINENO: result: no" >&5
5771echo "${ECHO_T}no" >&6
5772fi
5773
5774fi
5775if test -z "$ac_cv_prog_AR"; then
5776 ac_ct_AR=$AR
5777 # Extract the first word of "ar", so it can be a program name with args.
5778set dummy ar; ac_word=$2
5779echo "$as_me:$LINENO: checking for $ac_word" >&5
5780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5781if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5783else
5784 if test -n "$ac_ct_AR"; then
5785 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5786else
5787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788for as_dir in $PATH
5789do
5790 IFS=$as_save_IFS
5791 test -z "$as_dir" && as_dir=.
5792 for ac_exec_ext in '' $ac_executable_extensions; do
5793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794 ac_cv_prog_ac_ct_AR="ar"
5795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5796 break 2
5797 fi
5798done
5799done
5800
5801 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5802fi
5803fi
5804ac_ct_AR=$ac_cv_prog_ac_ct_AR
5805if test -n "$ac_ct_AR"; then
5806 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5807echo "${ECHO_T}$ac_ct_AR" >&6
5808else
5809 echo "$as_me:$LINENO: result: no" >&5
5810echo "${ECHO_T}no" >&6
5811fi
5812
5813 AR=$ac_ct_AR
5814else
5815 AR="$ac_cv_prog_AR"
5816fi
5817
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005818if test -n "$ac_tool_prefix"; then
5819 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5820set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5821echo "$as_me:$LINENO: checking for $ac_word" >&5
5822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5823if test "${ac_cv_prog_RANLIB+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5825else
5826 if test -n "$RANLIB"; then
5827 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5828else
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5836 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 break 2
5839 fi
5840done
5841done
5842
5843fi
5844fi
5845RANLIB=$ac_cv_prog_RANLIB
5846if test -n "$RANLIB"; then
5847 echo "$as_me:$LINENO: result: $RANLIB" >&5
5848echo "${ECHO_T}$RANLIB" >&6
5849else
5850 echo "$as_me:$LINENO: result: no" >&5
5851echo "${ECHO_T}no" >&6
5852fi
5853
5854fi
5855if test -z "$ac_cv_prog_RANLIB"; then
5856 ac_ct_RANLIB=$RANLIB
5857 # Extract the first word of "ranlib", so it can be a program name with args.
5858set dummy ranlib; ac_word=$2
5859echo "$as_me:$LINENO: checking for $ac_word" >&5
5860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5861if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5863else
5864 if test -n "$ac_ct_RANLIB"; then
5865 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5866else
5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874 ac_cv_prog_ac_ct_RANLIB="ranlib"
5875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 break 2
5877 fi
5878done
5879done
5880
5881 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5882fi
5883fi
5884ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5885if test -n "$ac_ct_RANLIB"; then
5886 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5887echo "${ECHO_T}$ac_ct_RANLIB" >&6
5888else
5889 echo "$as_me:$LINENO: result: no" >&5
5890echo "${ECHO_T}no" >&6
5891fi
5892
5893 RANLIB=$ac_ct_RANLIB
5894else
5895 RANLIB="$ac_cv_prog_RANLIB"
5896fi
5897
5898if test -n "$ac_tool_prefix"; then
5899 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5900set dummy ${ac_tool_prefix}strip; ac_word=$2
5901echo "$as_me:$LINENO: checking for $ac_word" >&5
5902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5903if test "${ac_cv_prog_STRIP+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5905else
5906 if test -n "$STRIP"; then
5907 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5908else
5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910for as_dir in $PATH
5911do
5912 IFS=$as_save_IFS
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 break 2
5919 fi
5920done
5921done
5922
5923fi
5924fi
5925STRIP=$ac_cv_prog_STRIP
5926if test -n "$STRIP"; then
5927 echo "$as_me:$LINENO: result: $STRIP" >&5
5928echo "${ECHO_T}$STRIP" >&6
5929else
5930 echo "$as_me:$LINENO: result: no" >&5
5931echo "${ECHO_T}no" >&6
5932fi
5933
5934fi
5935if test -z "$ac_cv_prog_STRIP"; then
5936 ac_ct_STRIP=$STRIP
5937 # Extract the first word of "strip", so it can be a program name with args.
5938set dummy strip; ac_word=$2
5939echo "$as_me:$LINENO: checking for $ac_word" >&5
5940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5941if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5943else
5944 if test -n "$ac_ct_STRIP"; then
5945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5946else
5947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948for as_dir in $PATH
5949do
5950 IFS=$as_save_IFS
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954 ac_cv_prog_ac_ct_STRIP="strip"
5955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 break 2
5957 fi
5958done
5959done
5960
5961 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5962fi
5963fi
5964ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5965if test -n "$ac_ct_STRIP"; then
5966 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5967echo "${ECHO_T}$ac_ct_STRIP" >&6
5968else
5969 echo "$as_me:$LINENO: result: no" >&5
5970echo "${ECHO_T}no" >&6
5971fi
5972
5973 STRIP=$ac_ct_STRIP
5974else
5975 STRIP="$ac_cv_prog_STRIP"
5976fi
5977
5978
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005979old_CC="$CC"
5980old_CFLAGS="$CFLAGS"
5981
5982# Set sane defaults for various variables
5983test -z "$AR" && AR=ar
5984test -z "$AR_FLAGS" && AR_FLAGS=cru
5985test -z "$AS" && AS=as
5986test -z "$CC" && CC=cc
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005987test -z "$LTCC" && LTCC=$CC
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005988test -z "$DLLTOOL" && DLLTOOL=dlltool
5989test -z "$LD" && LD=ld
5990test -z "$LN_S" && LN_S="ln -s"
5991test -z "$MAGIC_CMD" && MAGIC_CMD=file
5992test -z "$NM" && NM=nm
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005993test -z "$SED" && SED=sed
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005994test -z "$OBJDUMP" && OBJDUMP=objdump
5995test -z "$RANLIB" && RANLIB=:
5996test -z "$STRIP" && STRIP=:
5997test -z "$ac_objext" && ac_objext=o
5998
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005999# Determine commands to create old-style static archives.
6000old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6001old_postinstall_cmds='chmod 644 $oldlib'
6002old_postuninstall_cmds=
6003
6004if test -n "$RANLIB"; then
6005 case $host_os in
6006 openbsd*)
6007 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6008 ;;
6009 *)
6010 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6011 ;;
6012 esac
6013 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6014fi
6015
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006016# Only perform the check for file, if the check method requires it
6017case $deplibs_check_method in
6018file_magic*)
6019 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6020 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6021echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6022if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006024else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006025 case $MAGIC_CMD in
6026[\\/*] | ?:[\\/]*)
6027 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6028 ;;
6029*)
6030 lt_save_MAGIC_CMD="$MAGIC_CMD"
6031 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6032 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6033 for ac_dir in $ac_dummy; do
6034 IFS="$lt_save_ifs"
6035 test -z "$ac_dir" && ac_dir=.
6036 if test -f $ac_dir/${ac_tool_prefix}file; then
6037 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6038 if test -n "$file_magic_test_file"; then
6039 case $deplibs_check_method in
6040 "file_magic "*)
6041 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6043 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6044 $EGREP "$file_magic_regex" > /dev/null; then
6045 :
6046 else
6047 cat <<EOF 1>&2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006048
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006049*** Warning: the command libtool uses to detect shared libraries,
6050*** $file_magic_cmd, produces output that libtool cannot recognize.
6051*** The result is that libtool may fail to recognize shared libraries
6052*** as such. This will affect the creation of libtool libraries that
6053*** depend on shared libraries, but programs linked with such libtool
6054*** libraries will work regardless of this problem. Nevertheless, you
6055*** may want to report the problem to your system manager and/or to
6056*** bug-libtool@gnu.org
6057
6058EOF
6059 fi ;;
6060 esac
6061 fi
6062 break
6063 fi
6064 done
6065 IFS="$lt_save_ifs"
6066 MAGIC_CMD="$lt_save_MAGIC_CMD"
6067 ;;
6068esac
6069fi
6070
6071MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6072if test -n "$MAGIC_CMD"; then
6073 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6074echo "${ECHO_T}$MAGIC_CMD" >&6
6075else
6076 echo "$as_me:$LINENO: result: no" >&5
6077echo "${ECHO_T}no" >&6
6078fi
6079
6080if test -z "$lt_cv_path_MAGIC_CMD"; then
6081 if test -n "$ac_tool_prefix"; then
6082 echo "$as_me:$LINENO: checking for file" >&5
6083echo $ECHO_N "checking for file... $ECHO_C" >&6
6084if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6086else
6087 case $MAGIC_CMD in
6088[\\/*] | ?:[\\/]*)
6089 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6090 ;;
6091*)
6092 lt_save_MAGIC_CMD="$MAGIC_CMD"
6093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6094 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6095 for ac_dir in $ac_dummy; do
6096 IFS="$lt_save_ifs"
6097 test -z "$ac_dir" && ac_dir=.
6098 if test -f $ac_dir/file; then
6099 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6100 if test -n "$file_magic_test_file"; then
6101 case $deplibs_check_method in
6102 "file_magic "*)
6103 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6104 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6105 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6106 $EGREP "$file_magic_regex" > /dev/null; then
6107 :
6108 else
6109 cat <<EOF 1>&2
6110
6111*** Warning: the command libtool uses to detect shared libraries,
6112*** $file_magic_cmd, produces output that libtool cannot recognize.
6113*** The result is that libtool may fail to recognize shared libraries
6114*** as such. This will affect the creation of libtool libraries that
6115*** depend on shared libraries, but programs linked with such libtool
6116*** libraries will work regardless of this problem. Nevertheless, you
6117*** may want to report the problem to your system manager and/or to
6118*** bug-libtool@gnu.org
6119
6120EOF
6121 fi ;;
6122 esac
6123 fi
6124 break
6125 fi
6126 done
6127 IFS="$lt_save_ifs"
6128 MAGIC_CMD="$lt_save_MAGIC_CMD"
6129 ;;
6130esac
6131fi
6132
6133MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6134if test -n "$MAGIC_CMD"; then
6135 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6136echo "${ECHO_T}$MAGIC_CMD" >&6
6137else
6138 echo "$as_me:$LINENO: result: no" >&5
6139echo "${ECHO_T}no" >&6
6140fi
6141
6142 else
6143 MAGIC_CMD=:
6144 fi
6145fi
6146
6147 fi
6148 ;;
6149esac
6150
6151enable_dlopen=no
6152enable_win32_dll=no
6153
6154# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6155if test "${enable_libtool_lock+set}" = set; then
6156 enableval="$enable_libtool_lock"
6157
6158fi;
6159test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006160
6161
6162# Check whether --with-pic or --without-pic was given.
6163if test "${with_pic+set}" = set; then
6164 withval="$with_pic"
6165 pic_mode="$withval"
6166else
6167 pic_mode=default
6168fi;
6169test -z "$pic_mode" && pic_mode=default
6170
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006171# Use C for the default configuration in the libtool script
6172tagname=
6173lt_save_CC="$CC"
6174ac_ext=c
6175ac_cpp='$CPP $CPPFLAGS'
6176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178ac_compiler_gnu=$ac_cv_c_compiler_gnu
6179
6180
6181# Source file extension for C test sources.
6182ac_ext=c
6183
6184# Object file extension for compiled C test sources.
6185objext=o
6186objext=$objext
6187
6188# Code to be used in simple compile tests
6189lt_simple_compile_test_code="int some_variable = 0;\n"
6190
6191# Code to be used in simple link tests
6192lt_simple_link_test_code='int main(){return(0);}\n'
6193
6194
6195# If no C compiler was specified, use CC.
6196LTCC=${LTCC-"$CC"}
6197
6198# Allow CC to be a program name with arguments.
6199compiler=$CC
6200
6201
6202#
6203# Check for any special shared library compilation flags.
6204#
6205lt_prog_cc_shlib=
6206if test "$GCC" = no; then
6207 case $host_os in
6208 sco3.2v5*)
6209 lt_prog_cc_shlib='-belf'
6210 ;;
6211 esac
6212fi
6213if test -n "$lt_prog_cc_shlib"; then
6214 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6215echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6216 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6217 else
6218 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6219echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6220 lt_cv_prog_cc_can_build_shared=no
6221 fi
6222fi
6223
6224
6225#
6226# Check to make sure the static flag actually works.
6227#
6228echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6229echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6230if test "${lt_prog_compiler_static_works+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006233 lt_prog_compiler_static_works=no
6234 save_LDFLAGS="$LDFLAGS"
6235 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6236 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6237 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6238 # The compiler can only warn and ignore the option if not recognized
6239 # So say no if there are warnings
6240 if test -s conftest.err; then
6241 # Append any errors to the config.log.
6242 cat conftest.err 1>&5
6243 else
6244 lt_prog_compiler_static_works=yes
6245 fi
6246 fi
6247 $rm conftest*
6248 LDFLAGS="$save_LDFLAGS"
6249
6250fi
6251echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6252echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6253
6254if test x"$lt_prog_compiler_static_works" = xyes; then
6255 :
6256else
6257 lt_prog_compiler_static=
6258fi
6259
6260
6261
6262
6263lt_prog_compiler_no_builtin_flag=
6264
6265if test "$GCC" = yes; then
6266 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6267
6268
6269echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6270echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6271if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6273else
6274 lt_cv_prog_compiler_rtti_exceptions=no
6275 ac_outfile=conftest.$ac_objext
6276 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6277 lt_compiler_flag="-fno-rtti -fno-exceptions"
6278 # Insert the option either (1) after the last *FLAGS variable, or
6279 # (2) before a word containing "conftest.", or (3) at the end.
6280 # Note that $ac_compile itself does not contain backslashes and begins
6281 # with a dollar sign (not a hyphen), so the echo should work correctly.
6282 # The option is referenced via a variable to avoid confusing sed.
6283 lt_compile=`echo "$ac_compile" | $SED \
6284 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6286 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006287 (eval echo "\"\$as_me:6287: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006288 (eval "$lt_compile" 2>conftest.err)
6289 ac_status=$?
6290 cat conftest.err >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006291 echo "$as_me:6291: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006292 if (exit $ac_status) && test -s "$ac_outfile"; then
6293 # The compiler can only warn and ignore the option if not recognized
6294 # So say no if there are warnings
6295 if test ! -s conftest.err; then
6296 lt_cv_prog_compiler_rtti_exceptions=yes
6297 fi
6298 fi
6299 $rm conftest*
6300
6301fi
6302echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6303echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6304
6305if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6306 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6307else
6308 :
6309fi
6310
6311fi
6312
6313lt_prog_compiler_wl=
6314lt_prog_compiler_pic=
6315lt_prog_compiler_static=
6316
6317echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6318echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006319
6320 if test "$GCC" = yes; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006321 lt_prog_compiler_wl='-Wl,'
6322 lt_prog_compiler_static='-static'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006323
6324 case $host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006325 aix*)
6326 # All AIX code is PIC.
6327 if test "$host_cpu" = ia64; then
6328 # AIX 5 now supports IA64 processor
6329 lt_prog_compiler_static='-Bstatic'
6330 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006331 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006332
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006333 amigaos*)
6334 # FIXME: we need at least 68020 code to build shared libraries, but
6335 # adding the `-m68020' flag to GCC prevents building anything better,
6336 # like `-m68040'.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006337 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006338 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006339
6340 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006341 # PIC is the default for these OSes.
6342 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006343
6344 mingw* | pw32* | os2*)
6345 # This hack is so that the source file can tell whether it is being
6346 # built for inclusion in a dll (and should export symbols for example).
6347 lt_prog_compiler_pic='-DDLL_EXPORT'
6348 ;;
6349
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006350 darwin* | rhapsody*)
6351 # PIC is the default on this platform
6352 # Common symbols not allowed in MH_DYLIB files
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006353 lt_prog_compiler_pic='-fno-common'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006354 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006355
6356 msdosdjgpp*)
6357 # Just because we use GCC doesn't mean we suddenly get shared libraries
6358 # on systems that don't support them.
6359 lt_prog_compiler_can_build_shared=no
6360 enable_shared=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006361 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006362
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006363 sysv4*MP*)
6364 if test -d /usr/nec; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006365 lt_prog_compiler_pic=-Kconform_pic
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006366 fi
6367 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006368
6369 hpux*)
6370 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6371 # not for PA HP-UX.
6372 case "$host_cpu" in
6373 hppa*64*|ia64*)
6374 # +Z the default
6375 ;;
6376 *)
6377 lt_prog_compiler_pic='-fPIC'
6378 ;;
6379 esac
6380 ;;
6381
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006382 *)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006383 lt_prog_compiler_pic='-fPIC'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006384 ;;
6385 esac
6386 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006387 # PORTME Check for flag to pass linker flags through the system compiler.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006388 case $host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006389 aix*)
6390 lt_prog_compiler_wl='-Wl,'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006391 if test "$host_cpu" = ia64; then
6392 # AIX 5 now supports IA64 processor
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006393 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006394 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006395 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006396 fi
6397 ;;
6398
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006399 mingw* | pw32* | os2*)
6400 # This hack is so that the source file can tell whether it is being
6401 # built for inclusion in a dll (and should export symbols for example).
6402 lt_prog_compiler_pic='-DDLL_EXPORT'
6403 ;;
6404
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006405 hpux9* | hpux10* | hpux11*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006406 lt_prog_compiler_wl='-Wl,'
6407 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6408 # not for PA HP-UX.
6409 case "$host_cpu" in
6410 hppa*64*|ia64*)
6411 # +Z the default
6412 ;;
6413 *)
6414 lt_prog_compiler_pic='+Z'
6415 ;;
6416 esac
6417 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6418 lt_prog_compiler_static='${wl}-a ${wl}archive'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006419 ;;
6420
6421 irix5* | irix6* | nonstopux*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006422 lt_prog_compiler_wl='-Wl,'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006423 # PIC (with -KPIC) is the default.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006424 lt_prog_compiler_static='-non_shared'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006425 ;;
6426
6427 newsos6)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006428 lt_prog_compiler_pic='-KPIC'
6429 lt_prog_compiler_static='-Bstatic'
6430 ;;
6431
6432 linux*)
6433 case $CC in
6434 icc* | ecc*)
6435 lt_prog_compiler_wl='-Wl,'
6436 lt_prog_compiler_pic='-KPIC'
6437 lt_prog_compiler_static='-static'
6438 ;;
6439 ccc*)
6440 lt_prog_compiler_wl='-Wl,'
6441 # All Alpha code is PIC.
6442 lt_prog_compiler_static='-non_shared'
6443 ;;
6444 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006445 ;;
6446
6447 osf3* | osf4* | osf5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006448 lt_prog_compiler_wl='-Wl,'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006449 # All OSF/1 code is PIC.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006450 lt_prog_compiler_static='-non_shared'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006451 ;;
6452
6453 sco3.2v5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006454 lt_prog_compiler_pic='-Kpic'
6455 lt_prog_compiler_static='-dn'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006456 ;;
6457
6458 solaris*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006459 lt_prog_compiler_wl='-Wl,'
6460 lt_prog_compiler_pic='-KPIC'
6461 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006462 ;;
6463
6464 sunos4*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006465 lt_prog_compiler_wl='-Qoption ld '
6466 lt_prog_compiler_pic='-PIC'
6467 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006468 ;;
6469
6470 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006471 lt_prog_compiler_wl='-Wl,'
6472 lt_prog_compiler_pic='-KPIC'
6473 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006474 ;;
6475
6476 sysv4*MP*)
6477 if test -d /usr/nec ;then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006478 lt_prog_compiler_pic='-Kconform_pic'
6479 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006480 fi
6481 ;;
6482
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006483 uts4*)
6484 lt_prog_compiler_pic='-pic'
6485 lt_prog_compiler_static='-Bstatic'
6486 ;;
6487
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006488 *)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006489 lt_prog_compiler_can_build_shared=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006490 ;;
6491 esac
6492 fi
6493
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006494echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6495echo "${ECHO_T}$lt_prog_compiler_pic" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006496
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006497#
6498# Check to make sure the PIC flag actually works.
6499#
6500if test -n "$lt_prog_compiler_pic"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006501
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006502echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6503echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6504if test "${lt_prog_compiler_pic_works+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006507 lt_prog_compiler_pic_works=no
6508 ac_outfile=conftest.$ac_objext
6509 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6510 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6511 # Insert the option either (1) after the last *FLAGS variable, or
6512 # (2) before a word containing "conftest.", or (3) at the end.
6513 # Note that $ac_compile itself does not contain backslashes and begins
6514 # with a dollar sign (not a hyphen), so the echo should work correctly.
6515 # The option is referenced via a variable to avoid confusing sed.
6516 lt_compile=`echo "$ac_compile" | $SED \
6517 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6519 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006520 (eval echo "\"\$as_me:6520: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006521 (eval "$lt_compile" 2>conftest.err)
6522 ac_status=$?
6523 cat conftest.err >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006524 echo "$as_me:6524: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006525 if (exit $ac_status) && test -s "$ac_outfile"; then
6526 # The compiler can only warn and ignore the option if not recognized
6527 # So say no if there are warnings
6528 if test ! -s conftest.err; then
6529 lt_prog_compiler_pic_works=yes
6530 fi
6531 fi
6532 $rm conftest*
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006533
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006534fi
6535echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6536echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006537
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006538if test x"$lt_prog_compiler_pic_works" = xyes; then
6539 case $lt_prog_compiler_pic in
6540 "" | " "*) ;;
6541 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6542 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006543else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006544 lt_prog_compiler_pic=
6545 lt_prog_compiler_can_build_shared=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006546fi
6547
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006548fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006549case "$host_os" in
6550 # For platforms which do not support PIC, -DPIC is meaningless:
6551 *djgpp*)
6552 lt_prog_compiler_pic=
6553 ;;
6554 *)
6555 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6556 ;;
6557esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006558
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006559echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6560echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006561if test "${lt_cv_prog_compiler_c_o+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006562 echo $ECHO_N "(cached) $ECHO_C" >&6
6563else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006564 lt_cv_prog_compiler_c_o=no
6565 $rm -r conftest 2>/dev/null
6566 mkdir conftest
6567 cd conftest
6568 mkdir out
6569 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006570
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006571 lt_compiler_flag="-o out/conftest2.$ac_objext"
6572 # Insert the option either (1) after the last *FLAGS variable, or
6573 # (2) before a word containing "conftest.", or (3) at the end.
6574 # Note that $ac_compile itself does not contain backslashes and begins
6575 # with a dollar sign (not a hyphen), so the echo should work correctly.
6576 lt_compile=`echo "$ac_compile" | $SED \
6577 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6579 -e 's:$: $lt_compiler_flag:'`
hp.com!davidm2de17682004-04-20 16:53:44 +00006580 (eval echo "\"\$as_me:6580: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006581 (eval "$lt_compile" 2>out/conftest.err)
6582 ac_status=$?
6583 cat out/conftest.err >&5
hp.com!davidm2de17682004-04-20 16:53:44 +00006584 echo "$as_me:6584: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006585 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6586 then
6587 # The compiler can only warn and ignore the option if not recognized
6588 # So say no if there are warnings
6589 if test ! -s out/conftest.err; then
6590 lt_cv_prog_compiler_c_o=yes
6591 fi
6592 fi
6593 chmod u+w .
6594 $rm conftest*
6595 # SGI C++ compiler will create directory out/ii_files/ for
6596 # template instantiation
6597 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6598 $rm out/* && rmdir out
6599 cd ..
6600 rmdir conftest
6601 $rm conftest*
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006602
6603fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006604echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6605echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006606
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006607
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006608hard_links="nottested"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006609if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006610 # do not overwrite the value of need_locks provided by the user
6611 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6612echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6613 hard_links=yes
6614 $rm conftest*
6615 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6616 touch conftest.a
6617 ln conftest.a conftest.b 2>&5 || hard_links=no
6618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6619 echo "$as_me:$LINENO: result: $hard_links" >&5
6620echo "${ECHO_T}$hard_links" >&6
6621 if test "$hard_links" = no; then
6622 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6623echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6624 need_locks=warn
6625 fi
6626else
6627 need_locks=no
6628fi
6629
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006630echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6631echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006632
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006633 runpath_var=
6634 allow_undefined_flag=
6635 enable_shared_with_static_runtimes=no
6636 archive_cmds=
6637 archive_expsym_cmds=
6638 old_archive_From_new_cmds=
6639 old_archive_from_expsyms_cmds=
6640 export_dynamic_flag_spec=
6641 whole_archive_flag_spec=
6642 thread_safe_flag_spec=
6643 hardcode_libdir_flag_spec=
6644 hardcode_libdir_flag_spec_ld=
6645 hardcode_libdir_separator=
6646 hardcode_direct=no
6647 hardcode_minus_L=no
6648 hardcode_shlibpath_var=unsupported
6649 link_all_deplibs=unknown
6650 hardcode_automatic=no
6651 module_cmds=
6652 module_expsym_cmds=
6653 always_export_symbols=no
6654 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6655 # include_expsyms should be a list of space-separated symbols to be *always*
6656 # included in the symbol list
6657 include_expsyms=
6658 # exclude_expsyms can be an extended regexp of symbols to exclude
6659 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6660 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6661 # as well as any symbol that contains `d'.
6662 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6663 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6664 # platforms (ab)use it in PIC code, but their linkers get confused if
6665 # the symbol is explicitly referenced. Since portable code cannot
6666 # rely on this symbol name, it's probably fine to never include it in
6667 # preloaded symbol tables.
6668 extract_expsyms_cmds=
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006669
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006670 case $host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006671 cygwin* | mingw* | pw32*)
6672 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6673 # When not using gcc, we currently assume that we are using
6674 # Microsoft Visual C++.
6675 if test "$GCC" != yes; then
6676 with_gnu_ld=no
6677 fi
6678 ;;
6679 openbsd*)
6680 with_gnu_ld=no
6681 ;;
6682 esac
6683
6684 ld_shlibs=yes
6685 if test "$with_gnu_ld" = yes; then
6686 # If archive_cmds runs LD, not CC, wlarc should be empty
6687 wlarc='${wl}'
6688
6689 # See if GNU ld supports shared libraries.
6690 case $host_os in
6691 aix3* | aix4* | aix5*)
6692 # On AIX/PPC, the GNU linker is very broken
6693 if test "$host_cpu" != ia64; then
6694 ld_shlibs=no
6695 cat <<EOF 1>&2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006696
6697*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6698*** to be unable to reliably create shared libraries on AIX.
6699*** Therefore, libtool is disabling shared libraries support. If you
6700*** really care for shared libraries, you may want to modify your PATH
6701*** so that a non-GNU linker is found, and then restart.
6702
6703EOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006704 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006705 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006706
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006707 amigaos*)
6708 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)'
6709 hardcode_libdir_flag_spec='-L$libdir'
6710 hardcode_minus_L=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006711
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006712 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6713 # that the semantics of dynamic libraries on AmigaOS, at least up
6714 # to version 4, is to share data among multiple programs linked
6715 # with the same dynamic library. Since this doesn't match the
6716 # behavior of shared libraries on other platforms, we can't use
6717 # them.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006718 ld_shlibs=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006719 ;;
6720
6721 beos*)
6722 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6723 allow_undefined_flag=unsupported
6724 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6725 # support --undefined. This deserves some investigation. FIXME
6726 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6727 else
6728 ld_shlibs=no
6729 fi
6730 ;;
6731
6732 cygwin* | mingw* | pw32*)
6733 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6734 # as there is no search path for DLLs.
6735 hardcode_libdir_flag_spec='-L$libdir'
6736 allow_undefined_flag=unsupported
6737 always_export_symbols=no
6738 enable_shared_with_static_runtimes=yes
6739 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6740
6741 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6743 # If the export-symbols file already is a .def file (1st line
6744 # is EXPORTS), use it as is; otherwise, prepend...
6745 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6746 cp $export_symbols $output_objdir/$soname.def;
6747 else
6748 echo EXPORTS > $output_objdir/$soname.def;
6749 cat $export_symbols >> $output_objdir/$soname.def;
6750 fi~
6751 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6752 else
6753 ld_shlibs=no
6754 fi
6755 ;;
6756
hp.com!davidm16230292004-07-15 17:39:59 +00006757 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006758 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6759 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6760 wlarc=
6761 else
6762 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6763 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6764 fi
6765 ;;
6766
6767 solaris* | sysv5*)
6768 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6769 ld_shlibs=no
6770 cat <<EOF 1>&2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006771
6772*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6773*** create shared libraries on Solaris systems. Therefore, libtool
6774*** is disabling shared libraries support. We urge you to upgrade GNU
6775*** binutils to release 2.9.1 or newer. Another option is to modify
6776*** your PATH or compiler configuration so that the native linker is
6777*** used, and then restart.
6778
6779EOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006780 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6782 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 +00006783 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006784 ld_shlibs=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006785 fi
6786 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006787
6788 sunos4*)
6789 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6790 wlarc=
6791 hardcode_direct=yes
6792 hardcode_shlibpath_var=no
6793 ;;
6794
6795 linux*)
hp.com!davidm2de17682004-04-20 16:53:44 +00006796 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006797 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6798 archive_cmds="$tmp_archive_cmds"
6799 supports_anon_versioning=no
6800 case `$LD -v 2>/dev/null` in
6801 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6802 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6803 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6804 *\ 2.11.*) ;; # other 2.11 versions
6805 *) supports_anon_versioning=yes ;;
6806 esac
6807 if test $supports_anon_versioning = yes; then
6808 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6809cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6810$echo "local: *; };" >> $output_objdir/$libname.ver~
6811 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6812 else
6813 archive_expsym_cmds="$tmp_archive_cmds"
6814 fi
hp.com!davidm2de17682004-04-20 16:53:44 +00006815 link_all_deplibs=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006816 else
6817 ld_shlibs=no
6818 fi
6819 ;;
6820
6821 *)
6822 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6824 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6825 else
6826 ld_shlibs=no
6827 fi
6828 ;;
6829 esac
6830
6831 if test "$ld_shlibs" = yes; then
6832 runpath_var=LD_RUN_PATH
6833 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6834 export_dynamic_flag_spec='${wl}--export-dynamic'
6835 # ancient GNU ld didn't support --whole-archive et. al.
6836 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6837 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6838 else
6839 whole_archive_flag_spec=
6840 fi
6841 fi
6842 else
6843 # PORTME fill in a description of your system's linker (not GNU ld)
6844 case $host_os in
6845 aix3*)
6846 allow_undefined_flag=unsupported
6847 always_export_symbols=yes
6848 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'
6849 # Note: this linker hardcodes the directories in LIBPATH if there
6850 # are no directories specified by -L.
6851 hardcode_minus_L=yes
6852 if test "$GCC" = yes && test -z "$link_static_flag"; then
6853 # Neither direct hardcoding nor static linking is supported with a
6854 # broken collect2.
6855 hardcode_direct=unsupported
6856 fi
6857 ;;
6858
6859 aix4* | aix5*)
6860 if test "$host_cpu" = ia64; then
6861 # On IA64, the linker does run time linking by default, so we don't
6862 # have to do anything special.
6863 aix_use_runtimelinking=no
6864 exp_sym_flag='-Bexport'
6865 no_entry_flag=""
6866 else
6867 # If we're using GNU nm, then we don't want the "-C" option.
6868 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6869 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6870 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'
6871 else
6872 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'
6873 fi
6874 aix_use_runtimelinking=no
6875
6876 # Test if we are trying to use run time linking or normal
6877 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6878 # need to do runtime linking.
6879 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6880 for ld_flag in $LDFLAGS; do
6881 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6882 aix_use_runtimelinking=yes
6883 break
6884 fi
6885 done
6886 esac
6887
6888 exp_sym_flag='-bexport'
6889 no_entry_flag='-bnoentry'
6890 fi
6891
6892 # When large executables or shared objects are built, AIX ld can
6893 # have problems creating the table of contents. If linking a library
6894 # or program results in "error TOC overflow" add -mminimal-toc to
6895 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6896 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6897
6898 archive_cmds=''
6899 hardcode_direct=yes
6900 hardcode_libdir_separator=':'
6901 link_all_deplibs=yes
6902
6903 if test "$GCC" = yes; then
6904 case $host_os in aix4.012|aix4.012.*)
6905 # We only want to do this on AIX 4.2 and lower, the check
6906 # below for broken collect2 doesn't work under 4.3+
6907 collect2name=`${CC} -print-prog-name=collect2`
6908 if test -f "$collect2name" && \
6909 strings "$collect2name" | grep resolve_lib_name >/dev/null
6910 then
6911 # We have reworked collect2
6912 hardcode_direct=yes
6913 else
6914 # We have old collect2
6915 hardcode_direct=unsupported
6916 # It fails to find uninstalled libraries when the uninstalled
6917 # path is not listed in the libpath. Setting hardcode_minus_L
6918 # to unsupported forces relinking
6919 hardcode_minus_L=yes
6920 hardcode_libdir_flag_spec='-L$libdir'
6921 hardcode_libdir_separator=
6922 fi
6923 esac
6924 shared_flag='-shared'
6925 else
6926 # not using gcc
6927 if test "$host_cpu" = ia64; then
6928 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6929 # chokes on -Wl,-G. The following line is correct:
6930 shared_flag='-G'
6931 else
6932 if test "$aix_use_runtimelinking" = yes; then
6933 shared_flag='${wl}-G'
6934 else
6935 shared_flag='${wl}-bM:SRE'
6936 fi
6937 fi
6938 fi
6939
6940 # It seems that -bexpall does not export symbols beginning with
6941 # underscore (_), so it is better to generate a list of symbols to export.
6942 always_export_symbols=yes
6943 if test "$aix_use_runtimelinking" = yes; then
6944 # Warning - without using the other runtime loading flags (-brtl),
6945 # -berok will link without error, but may produce a broken library.
6946 allow_undefined_flag='-berok'
6947 # Determine the default libpath from the value encoded in an empty executable.
6948 cat >conftest.$ac_ext <<_ACEOF
6949/* confdefs.h. */
6950_ACEOF
6951cat confdefs.h >>conftest.$ac_ext
6952cat >>conftest.$ac_ext <<_ACEOF
6953/* end confdefs.h. */
6954
6955int
6956main ()
6957{
6958
6959 ;
6960 return 0;
6961}
6962_ACEOF
6963rm -f conftest.$ac_objext conftest$ac_exeext
6964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006965 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006966 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006967 grep -v '^ *+' conftest.er1 >conftest.err
6968 rm -f conftest.er1
6969 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 (eval $ac_try) 2>&5
6975 ac_status=$?
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; } &&
6978 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 (eval $ac_try) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; }; then
6984
6985aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6986}'`
6987# Check for a 64-bit object if we didn't find anything.
6988if 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; }
6989}'`; fi
6990else
6991 echo "$as_me: failed program was:" >&5
6992sed 's/^/| /' conftest.$ac_ext >&5
6993
6994fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006995rm -f conftest.err conftest.$ac_objext \
6996 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006997if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6998
6999 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7000 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"
7001 else
7002 if test "$host_cpu" = ia64; then
7003 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7004 allow_undefined_flag="-z nodefs"
7005 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"
7006 else
7007 # Determine the default libpath from the value encoded in an empty executable.
7008 cat >conftest.$ac_ext <<_ACEOF
7009/* confdefs.h. */
7010_ACEOF
7011cat confdefs.h >>conftest.$ac_ext
7012cat >>conftest.$ac_ext <<_ACEOF
7013/* end confdefs.h. */
7014
7015int
7016main ()
7017{
7018
7019 ;
7020 return 0;
7021}
7022_ACEOF
7023rm -f conftest.$ac_objext conftest$ac_exeext
7024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007025 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007026 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007027 grep -v '^ *+' conftest.er1 >conftest.err
7028 rm -f conftest.er1
7029 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 (eval $ac_try) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; } &&
7038 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 (eval $ac_try) 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; }; then
7044
7045aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7046}'`
7047# Check for a 64-bit object if we didn't find anything.
7048if 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; }
7049}'`; fi
7050else
7051 echo "$as_me: failed program was:" >&5
7052sed 's/^/| /' conftest.$ac_ext >&5
7053
7054fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007055rm -f conftest.err conftest.$ac_objext \
7056 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007057if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7058
7059 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7060 # Warning - without using the other run time loading flags,
7061 # -berok will link without error, but may produce a broken library.
7062 no_undefined_flag=' ${wl}-bernotok'
7063 allow_undefined_flag=' ${wl}-berok'
7064 # -bexpall does not export symbols beginning with underscore (_)
7065 always_export_symbols=yes
7066 # Exported symbols can be pulled into shared objects from archives
7067 whole_archive_flag_spec=' '
7068 archive_cmds_need_lc=yes
7069 # This is similar to how AIX traditionally builds it's shared libraries.
7070 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'
7071 fi
7072 fi
7073 ;;
7074
7075 amigaos*)
7076 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)'
7077 hardcode_libdir_flag_spec='-L$libdir'
7078 hardcode_minus_L=yes
7079 # see comment about different semantics on the GNU ld section
7080 ld_shlibs=no
7081 ;;
7082
7083 bsdi4*)
7084 export_dynamic_flag_spec=-rdynamic
7085 ;;
7086
7087 cygwin* | mingw* | pw32*)
7088 # When not using gcc, we currently assume that we are using
7089 # Microsoft Visual C++.
7090 # hardcode_libdir_flag_spec is actually meaningless, as there is
7091 # no search path for DLLs.
7092 hardcode_libdir_flag_spec=' '
7093 allow_undefined_flag=unsupported
7094 # Tell ltmain to make .lib files, not .a files.
7095 libext=lib
7096 # Tell ltmain to make .dll files, not .so files.
hp.com!davidm2de17682004-04-20 16:53:44 +00007097 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007098 # FIXME: Setting linknames here is a bad hack.
7099 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7100 # The linker will automatically build a .lib file if we build a DLL.
7101 old_archive_From_new_cmds='true'
7102 # FIXME: Should let the user specify the lib program.
7103 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7104 fix_srcfile_path='`cygpath -w "$srcfile"`'
7105 enable_shared_with_static_runtimes=yes
7106 ;;
7107
7108 darwin* | rhapsody*)
7109 if test "$GXX" = yes ; then
7110 archive_cmds_need_lc=no
7111 case "$host_os" in
7112 rhapsody* | darwin1.[012])
7113 allow_undefined_flag='-undefined suppress'
7114 ;;
7115 *) # Darwin 1.3 on
7116 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7117 allow_undefined_flag='-flat_namespace -undefined suppress'
7118 else
7119 case ${MACOSX_DEPLOYMENT_TARGET} in
7120 10.[012])
7121 allow_undefined_flag='-flat_namespace -undefined suppress'
7122 ;;
7123 10.*)
7124 allow_undefined_flag='-undefined dynamic_lookup'
7125 ;;
7126 esac
7127 fi
7128 ;;
7129 esac
7130 lt_int_apple_cc_single_mod=no
7131 output_verbose_link_cmd='echo'
7132 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7133 lt_int_apple_cc_single_mod=yes
7134 fi
7135 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7136 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7137 else
7138 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'
7139 fi
7140 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7141 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7142 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7143 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}'
7144 else
7145 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}'
7146 fi
7147 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}'
7148 hardcode_direct=no
7149 hardcode_automatic=yes
7150 hardcode_shlibpath_var=unsupported
7151 whole_archive_flag_spec='-all_load $convenience'
7152 link_all_deplibs=yes
7153 else
7154 ld_shlibs=no
7155 fi
7156 ;;
7157
7158 dgux*)
7159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7160 hardcode_libdir_flag_spec='-L$libdir'
7161 hardcode_shlibpath_var=no
7162 ;;
7163
7164 freebsd1*)
7165 ld_shlibs=no
7166 ;;
7167
7168 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7169 # support. Future versions do this automatically, but an explicit c++rt0.o
7170 # does not break anything, and helps significantly (at the cost of a little
7171 # extra space).
7172 freebsd2.2*)
7173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7174 hardcode_libdir_flag_spec='-R$libdir'
7175 hardcode_direct=yes
7176 hardcode_shlibpath_var=no
7177 ;;
7178
7179 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7180 freebsd2*)
7181 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7182 hardcode_direct=yes
7183 hardcode_minus_L=yes
7184 hardcode_shlibpath_var=no
7185 ;;
7186
7187 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7188 freebsd* | kfreebsd*-gnu)
7189 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7190 hardcode_libdir_flag_spec='-R$libdir'
7191 hardcode_direct=yes
7192 hardcode_shlibpath_var=no
7193 ;;
7194
7195 hpux9*)
7196 if test "$GCC" = yes; then
7197 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'
7198 else
7199 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'
7200 fi
7201 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7202 hardcode_libdir_separator=:
7203 hardcode_direct=yes
7204
7205 # hardcode_minus_L: Not really in the search PATH,
7206 # but as the default location of the library.
7207 hardcode_minus_L=yes
7208 export_dynamic_flag_spec='${wl}-E'
7209 ;;
7210
7211 hpux10* | hpux11*)
7212 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7213 case "$host_cpu" in
7214 hppa*64*|ia64*)
7215 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7216 ;;
7217 *)
7218 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7219 ;;
7220 esac
7221 else
7222 case "$host_cpu" in
7223 hppa*64*|ia64*)
7224 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7225 ;;
7226 *)
7227 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7228 ;;
7229 esac
7230 fi
7231 if test "$with_gnu_ld" = no; then
7232 case "$host_cpu" in
7233 hppa*64*)
7234 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7235 hardcode_libdir_flag_spec_ld='+b $libdir'
7236 hardcode_libdir_separator=:
7237 hardcode_direct=no
7238 hardcode_shlibpath_var=no
7239 ;;
7240 ia64*)
7241 hardcode_libdir_flag_spec='-L$libdir'
7242 hardcode_direct=no
7243 hardcode_shlibpath_var=no
7244
7245 # hardcode_minus_L: Not really in the search PATH,
7246 # but as the default location of the library.
7247 hardcode_minus_L=yes
7248 ;;
7249 *)
7250 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7251 hardcode_libdir_separator=:
7252 hardcode_direct=yes
7253 export_dynamic_flag_spec='${wl}-E'
7254
7255 # hardcode_minus_L: Not really in the search PATH,
7256 # but as the default location of the library.
7257 hardcode_minus_L=yes
7258 ;;
7259 esac
7260 fi
7261 ;;
7262
7263 irix5* | irix6* | nonstopux*)
7264 if test "$GCC" = yes; then
7265 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'
7266 else
7267 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'
7268 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7269 fi
7270 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7271 hardcode_libdir_separator=:
7272 link_all_deplibs=yes
7273 ;;
7274
hp.com!davidm16230292004-07-15 17:39:59 +00007275 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007276 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7278 else
7279 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7280 fi
7281 hardcode_libdir_flag_spec='-R$libdir'
7282 hardcode_direct=yes
7283 hardcode_shlibpath_var=no
7284 ;;
7285
7286 newsos6)
7287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7288 hardcode_direct=yes
7289 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7290 hardcode_libdir_separator=:
7291 hardcode_shlibpath_var=no
7292 ;;
7293
7294 openbsd*)
7295 hardcode_direct=yes
7296 hardcode_shlibpath_var=no
7297 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7298 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7299 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7300 export_dynamic_flag_spec='${wl}-E'
7301 else
7302 case $host_os in
7303 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7304 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7305 hardcode_libdir_flag_spec='-R$libdir'
7306 ;;
7307 *)
7308 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7309 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7310 ;;
7311 esac
7312 fi
7313 ;;
7314
7315 os2*)
7316 hardcode_libdir_flag_spec='-L$libdir'
7317 hardcode_minus_L=yes
7318 allow_undefined_flag=unsupported
7319 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'
7320 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7321 ;;
7322
7323 osf3*)
7324 if test "$GCC" = yes; then
7325 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7326 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'
7327 else
7328 allow_undefined_flag=' -expect_unresolved \*'
7329 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'
7330 fi
7331 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7332 hardcode_libdir_separator=:
7333 ;;
7334
7335 osf4* | osf5*) # as osf3* with the addition of -msym flag
7336 if test "$GCC" = yes; then
7337 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7338 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'
7339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7340 else
7341 allow_undefined_flag=' -expect_unresolved \*'
7342 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'
7343 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7344 $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'
7345
7346 # Both c and cxx compiler support -rpath directly
7347 hardcode_libdir_flag_spec='-rpath $libdir'
7348 fi
7349 hardcode_libdir_separator=:
7350 ;;
7351
7352 sco3.2v5*)
7353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7354 hardcode_shlibpath_var=no
7355 export_dynamic_flag_spec='${wl}-Bexport'
7356 runpath_var=LD_RUN_PATH
7357 hardcode_runpath_var=yes
7358 ;;
7359
7360 solaris*)
7361 no_undefined_flag=' -z text'
7362 if test "$GCC" = yes; then
7363 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7364 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7365 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7366 else
7367 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7368 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7369 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7370 fi
7371 hardcode_libdir_flag_spec='-R$libdir'
7372 hardcode_shlibpath_var=no
7373 case $host_os in
7374 solaris2.[0-5] | solaris2.[0-5].*) ;;
7375 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7376 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7377 esac
7378 link_all_deplibs=yes
7379 ;;
7380
7381 sunos4*)
7382 if test "x$host_vendor" = xsequent; then
7383 # Use $CC to link under sequent, because it throws in some extra .o
7384 # files that make .init and .fini sections work.
7385 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7386 else
7387 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7388 fi
7389 hardcode_libdir_flag_spec='-L$libdir'
7390 hardcode_direct=yes
7391 hardcode_minus_L=yes
7392 hardcode_shlibpath_var=no
7393 ;;
7394
7395 sysv4)
7396 case $host_vendor in
7397 sni)
7398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7399 hardcode_direct=yes # is this really true???
7400 ;;
7401 siemens)
7402 ## LD is ld it makes a PLAMLIB
7403 ## CC just makes a GrossModule.
7404 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7405 reload_cmds='$CC -r -o $output$reload_objs'
7406 hardcode_direct=no
7407 ;;
7408 motorola)
7409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7410 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7411 ;;
7412 esac
7413 runpath_var='LD_RUN_PATH'
7414 hardcode_shlibpath_var=no
7415 ;;
7416
7417 sysv4.3*)
7418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7419 hardcode_shlibpath_var=no
7420 export_dynamic_flag_spec='-Bexport'
7421 ;;
7422
7423 sysv4*MP*)
7424 if test -d /usr/nec; then
7425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7426 hardcode_shlibpath_var=no
7427 runpath_var=LD_RUN_PATH
7428 hardcode_runpath_var=yes
7429 ld_shlibs=yes
7430 fi
7431 ;;
7432
7433 sysv4.2uw2*)
7434 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7435 hardcode_direct=yes
7436 hardcode_minus_L=no
7437 hardcode_shlibpath_var=no
7438 hardcode_runpath_var=yes
7439 runpath_var=LD_RUN_PATH
7440 ;;
7441
7442 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7443 no_undefined_flag='${wl}-z ${wl}text'
7444 if test "$GCC" = yes; then
7445 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7446 else
7447 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7448 fi
7449 runpath_var='LD_RUN_PATH'
7450 hardcode_shlibpath_var=no
7451 ;;
7452
7453 sysv5*)
7454 no_undefined_flag=' -z text'
7455 # $CC -shared without GNU ld will not create a library from C++
7456 # object files and a static libstdc++, better avoid it by now
7457 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7458 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7459 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7460 hardcode_libdir_flag_spec=
7461 hardcode_shlibpath_var=no
7462 runpath_var='LD_RUN_PATH'
7463 ;;
7464
7465 uts4*)
7466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7467 hardcode_libdir_flag_spec='-L$libdir'
7468 hardcode_shlibpath_var=no
7469 ;;
7470
7471 *)
7472 ld_shlibs=no
7473 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007474 esac
7475 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007476
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007477echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7478echo "${ECHO_T}$ld_shlibs" >&6
7479test "$ld_shlibs" = no && can_build_shared=no
7480
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007481variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7482if test "$GCC" = yes; then
7483 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7484fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007485
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007486#
7487# Do we need to explicitly link libc?
7488#
7489case "x$archive_cmds_need_lc" in
7490x|xyes)
7491 # Assume -lc should be added
7492 archive_cmds_need_lc=yes
7493
7494 if test "$enable_shared" = yes && test "$GCC" = yes; then
7495 case $archive_cmds in
7496 *'~'*)
7497 # FIXME: we may have to deal with multi-command sequences.
7498 ;;
7499 '$CC '*)
7500 # Test whether the compiler implicitly links with -lc since on some
7501 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7502 # to ld, don't add -lc before -lgcc.
7503 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7504echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7505 $rm conftest*
7506 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7507
7508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7509 (eval $ac_compile) 2>&5
7510 ac_status=$?
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } 2>conftest.err; then
7513 soname=conftest
7514 lib=conftest
7515 libobjs=conftest.$ac_objext
7516 deplibs=
7517 wl=$lt_prog_compiler_wl
7518 compiler_flags=-v
7519 linker_flags=-v
7520 verstring=
7521 output_objdir=.
7522 libname=conftest
7523 lt_save_allow_undefined_flag=$allow_undefined_flag
7524 allow_undefined_flag=
7525 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7526 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7527 ac_status=$?
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }
7530 then
7531 archive_cmds_need_lc=no
7532 else
7533 archive_cmds_need_lc=yes
7534 fi
7535 allow_undefined_flag=$lt_save_allow_undefined_flag
7536 else
7537 cat conftest.err 1>&5
7538 fi
7539 $rm conftest*
7540 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7541echo "${ECHO_T}$archive_cmds_need_lc" >&6
7542 ;;
7543 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007544 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007545 ;;
7546esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007547
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007548echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7549echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7550library_names_spec=
7551libname_spec='lib$name'
7552soname_spec=
hp.com!davidm2de17682004-04-20 16:53:44 +00007553shrext_cmds=".so"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007554postinstall_cmds=
7555postuninstall_cmds=
7556finish_cmds=
7557finish_eval=
7558shlibpath_var=
7559shlibpath_overrides_runpath=unknown
7560version_type=none
7561dynamic_linker="$host_os ld.so"
7562sys_lib_dlsearch_path_spec="/lib /usr/lib"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007563if test "$GCC" = yes; then
7564 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7565 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7566 # if the path contains ";" then we assume it to be the separator
7567 # otherwise default to the standard path separator (i.e. ":") - it is
7568 # assumed that no part of a normal pathname contains ";" but that should
7569 # okay in the real world where ";" in dirpaths is itself problematic.
7570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7571 else
7572 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7573 fi
7574else
7575 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7576fi
7577need_lib_prefix=unknown
7578hardcode_into_libs=no
7579
7580# when you set need_version to no, make sure it does not cause -set_version
7581# flags to be left without arguments
7582need_version=unknown
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007583
7584case $host_os in
7585aix3*)
7586 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007587 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007588 shlibpath_var=LIBPATH
7589
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007590 # AIX 3 has no versioning support, so we append a major version to the name.
7591 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007592 ;;
7593
7594aix4* | aix5*)
7595 version_type=linux
7596 need_lib_prefix=no
7597 need_version=no
7598 hardcode_into_libs=yes
7599 if test "$host_cpu" = ia64; then
7600 # AIX 5 supports IA64
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007601 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007602 shlibpath_var=LD_LIBRARY_PATH
7603 else
7604 # With GCC up to 2.95.x, collect2 would create an import file
7605 # for dependence libraries. The import file would start with
7606 # the line `#! .'. This would cause the generated library to
7607 # depend on `.', always an invalid library. This was fixed in
7608 # development snapshots of GCC prior to 3.0.
7609 case $host_os in
7610 aix4 | aix4.[01] | aix4.[01].*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007611 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7612 echo ' yes '
7613 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7614 :
7615 else
7616 can_build_shared=no
7617 fi
7618 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007619 esac
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007620 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7621 # soname into executable. Probably we can add versioning support to
7622 # collect2, so additional links can be useful in future.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007623 if test "$aix_use_runtimelinking" = yes; then
7624 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7625 # instead of lib<name>.a to let people know that these are not
7626 # typical AIX shared libraries.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007628 else
7629 # We preserve .a as extension for shared libraries through AIX4.2
7630 # and later when we are not doing run time linking.
7631 library_names_spec='${libname}${release}.a $libname.a'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007632 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007633 fi
7634 shlibpath_var=LIBPATH
7635 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007636 ;;
7637
7638amigaos*)
7639 library_names_spec='$libname.ixlibrary $libname.a'
7640 # Create ${libname}_ixlibrary.a entries in /sys/libs.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007641 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 +00007642 ;;
7643
7644beos*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007645 library_names_spec='${libname}${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007646 dynamic_linker="$host_os ld.so"
7647 shlibpath_var=LIBRARY_PATH
7648 ;;
7649
7650bsdi4*)
7651 version_type=linux
7652 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7654 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007655 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7656 shlibpath_var=LD_LIBRARY_PATH
7657 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7658 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007659 # the default ld.so.conf also contains /usr/contrib/lib and
7660 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7661 # libtool to hard-code these into programs
7662 ;;
7663
7664cygwin* | mingw* | pw32*)
7665 version_type=windows
hp.com!davidm2de17682004-04-20 16:53:44 +00007666 shrext_cmds=".dll"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007667 need_version=no
7668 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007669
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007670 case $GCC,$host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007671 yes,cygwin* | yes,mingw* | yes,pw32*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007672 library_names_spec='$libname.dll.a'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007673 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7674 postinstall_cmds='base_file=`basename \${file}`~
7675 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007676 dldir=$destdir/`dirname \$dlpath`~
7677 test -d \$dldir || mkdir -p \$dldir~
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007678 $install_prog $dir/$dlname \$dldir/$dlname'
7679 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007680 dlpath=$dir/\$dldll~
7681 $rm \$dlpath'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007682 shlibpath_overrides_runpath=yes
7683
7684 case $host_os in
7685 cygwin*)
7686 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7687 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7688 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7689 ;;
7690 mingw*)
7691 # MinGW DLLs use traditional 'lib' prefix
7692 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7693 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7694 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7695 # It is most probably a Windows format PATH printed by
7696 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7697 # path with ; separators, and with drive letters. We can handle the
7698 # drive letters (cygwin fileutils understands them), so leave them,
7699 # especially as we might pass files found there to a mingw objdump,
7700 # which wouldn't understand a cygwinified path. Ahh.
7701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7702 else
7703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7704 fi
7705 ;;
7706 pw32*)
7707 # pw32 DLLs use 'pw' prefix rather than 'lib'
7708 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7709 ;;
7710 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007711 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007712
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007713 *)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007714 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007715 ;;
7716 esac
7717 dynamic_linker='Win32 ld.exe'
7718 # FIXME: first we should search . and the directory the executable is in
7719 shlibpath_var=PATH
7720 ;;
7721
7722darwin* | rhapsody*)
7723 dynamic_linker="$host_os dyld"
7724 version_type=darwin
7725 need_lib_prefix=no
7726 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007727 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7728 soname_spec='${libname}${release}${major}$shared_ext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007729 shlibpath_overrides_runpath=yes
7730 shlibpath_var=DYLD_LIBRARY_PATH
hp.com!davidm2de17682004-04-20 16:53:44 +00007731 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007732 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7733 if test "$GCC" = yes; then
7734 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"`
7735 else
7736 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7737 fi
7738 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7739 ;;
7740
7741dgux*)
7742 version_type=linux
7743 need_lib_prefix=no
7744 need_version=no
7745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7746 soname_spec='${libname}${release}${shared_ext}$major'
7747 shlibpath_var=LD_LIBRARY_PATH
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007748 ;;
7749
7750freebsd1*)
7751 dynamic_linker=no
7752 ;;
7753
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007754kfreebsd*-gnu)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007755 version_type=linux
7756 need_lib_prefix=no
7757 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7759 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007760 shlibpath_var=LD_LIBRARY_PATH
7761 shlibpath_overrides_runpath=no
7762 hardcode_into_libs=yes
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007763 dynamic_linker='GNU ld.so'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007764 ;;
7765
7766freebsd*)
7767 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7768 version_type=freebsd-$objformat
7769 case $version_type in
7770 freebsd-elf*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007772 need_version=no
7773 need_lib_prefix=no
7774 ;;
7775 freebsd-*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007776 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007777 need_version=yes
7778 ;;
7779 esac
7780 shlibpath_var=LD_LIBRARY_PATH
7781 case $host_os in
7782 freebsd2*)
7783 shlibpath_overrides_runpath=yes
7784 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007785 freebsd3.01* | freebsdelf3.01*)
7786 shlibpath_overrides_runpath=yes
7787 hardcode_into_libs=yes
7788 ;;
7789 *) # from 3.2 on
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007790 shlibpath_overrides_runpath=no
7791 hardcode_into_libs=yes
7792 ;;
7793 esac
7794 ;;
7795
7796gnu*)
7797 version_type=linux
7798 need_lib_prefix=no
7799 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7801 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007802 shlibpath_var=LD_LIBRARY_PATH
7803 hardcode_into_libs=yes
7804 ;;
7805
7806hpux9* | hpux10* | hpux11*)
7807 # Give a soname corresponding to the major version so that dld.sl refuses to
7808 # link against other versions.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007809 version_type=sunos
7810 need_lib_prefix=no
7811 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007812 case "$host_cpu" in
7813 ia64*)
hp.com!davidm2de17682004-04-20 16:53:44 +00007814 shrext_cmds='.so'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007815 hardcode_into_libs=yes
7816 dynamic_linker="$host_os dld.so"
7817 shlibpath_var=LD_LIBRARY_PATH
7818 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7820 soname_spec='${libname}${release}${shared_ext}$major'
7821 if test "X$HPUX_IA64_MODE" = X32; then
7822 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7823 else
7824 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7825 fi
7826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7827 ;;
7828 hppa*64*)
hp.com!davidm2de17682004-04-20 16:53:44 +00007829 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007830 hardcode_into_libs=yes
7831 dynamic_linker="$host_os dld.sl"
7832 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7835 soname_spec='${libname}${release}${shared_ext}$major'
7836 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7837 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7838 ;;
7839 *)
hp.com!davidm2de17682004-04-20 16:53:44 +00007840 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007841 dynamic_linker="$host_os dld.sl"
7842 shlibpath_var=SHLIB_PATH
7843 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7845 soname_spec='${libname}${release}${shared_ext}$major'
7846 ;;
7847 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007848 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7849 postinstall_cmds='chmod 555 $lib'
7850 ;;
7851
7852irix5* | irix6* | nonstopux*)
7853 case $host_os in
7854 nonstopux*) version_type=nonstopux ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007855 *)
7856 if test "$lt_cv_prog_gnu_ld" = yes; then
7857 version_type=linux
7858 else
7859 version_type=irix
7860 fi ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007861 esac
7862 need_lib_prefix=no
7863 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007864 soname_spec='${libname}${release}${shared_ext}$major'
7865 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 +00007866 case $host_os in
7867 irix5* | nonstopux*)
7868 libsuff= shlibsuff=
7869 ;;
7870 *)
7871 case $LD in # libtool.m4 will add one of these switches to LD
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007872 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7873 libsuff= shlibsuff= libmagic=32-bit;;
7874 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7875 libsuff=32 shlibsuff=N32 libmagic=N32;;
7876 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7877 libsuff=64 shlibsuff=64 libmagic=64-bit;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007878 *) libsuff= shlibsuff= libmagic=never-match;;
7879 esac
7880 ;;
7881 esac
7882 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7883 shlibpath_overrides_runpath=no
7884 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7885 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007886 hardcode_into_libs=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007887 ;;
7888
7889# No shared lib support for Linux oldld, aout, or coff.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007890linux*oldld* | linux*aout* | linux*coff*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007891 dynamic_linker=no
7892 ;;
7893
7894# This must be Linux ELF.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007895linux*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007896 version_type=linux
7897 need_lib_prefix=no
7898 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7900 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7902 shlibpath_var=LD_LIBRARY_PATH
7903 shlibpath_overrides_runpath=no
7904 # This implies no fast_install, which is unacceptable.
7905 # Some rework will be needed to allow for fast_install
7906 # before this can be enabled.
7907 hardcode_into_libs=yes
7908
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007909 # Append ld.so.conf contents to the search path
7910 if test -f /etc/ld.so.conf; then
hp.com!davidm2de17682004-04-20 16:53:44 +00007911 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7912 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007913 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007914
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007915 # We used to test for /lib/ld.so.1 and disable shared libraries on
7916 # powerpc, because MkLinux only supported shared libraries with the
7917 # GNU dynamic linker. Since this was broken with cross compilers,
7918 # most powerpc-linux boxes support dynamic linking these days and
7919 # people can always --disable-shared, the test was removed, and we
7920 # assume the GNU/Linux dynamic linker is in use.
7921 dynamic_linker='GNU/Linux ld.so'
7922 ;;
7923
hp.com!davidm16230292004-07-15 17:39:59 +00007924netbsdelf*-gnu)
7925 version_type=linux
7926 need_lib_prefix=no
7927 need_version=no
7928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7929 soname_spec='${libname}${release}${shared_ext}$major'
7930 shlibpath_var=LD_LIBRARY_PATH
7931 shlibpath_overrides_runpath=no
7932 hardcode_into_libs=yes
7933 dynamic_linker='NetBSD ld.elf_so'
7934 ;;
7935
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007936knetbsd*-gnu)
7937 version_type=linux
7938 need_lib_prefix=no
7939 need_version=no
7940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7941 soname_spec='${libname}${release}${shared_ext}$major'
7942 shlibpath_var=LD_LIBRARY_PATH
7943 shlibpath_overrides_runpath=no
7944 hardcode_into_libs=yes
7945 dynamic_linker='GNU ld.so'
7946 ;;
7947
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007948netbsd*)
7949 version_type=sunos
7950 need_lib_prefix=no
7951 need_version=no
7952 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7955 dynamic_linker='NetBSD (a.out) ld.so'
7956 else
hp.com!davidm2de17682004-04-20 16:53:44 +00007957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007958 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007959 dynamic_linker='NetBSD ld.elf_so'
7960 fi
7961 shlibpath_var=LD_LIBRARY_PATH
7962 shlibpath_overrides_runpath=yes
7963 hardcode_into_libs=yes
7964 ;;
7965
7966newsos6)
7967 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7969 shlibpath_var=LD_LIBRARY_PATH
7970 shlibpath_overrides_runpath=yes
7971 ;;
7972
7973nto-qnx*)
7974 version_type=linux
7975 need_lib_prefix=no
7976 need_version=no
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'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007979 shlibpath_var=LD_LIBRARY_PATH
7980 shlibpath_overrides_runpath=yes
7981 ;;
7982
7983openbsd*)
7984 version_type=sunos
7985 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007986 need_version=yes
7987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7989 shlibpath_var=LD_LIBRARY_PATH
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007990 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 +00007991 case $host_os in
7992 openbsd2.[89] | openbsd2.[89].*)
7993 shlibpath_overrides_runpath=no
7994 ;;
7995 *)
7996 shlibpath_overrides_runpath=yes
7997 ;;
7998 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007999 else
8000 shlibpath_overrides_runpath=yes
8001 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008002 ;;
8003
8004os2*)
8005 libname_spec='$name'
hp.com!davidm2de17682004-04-20 16:53:44 +00008006 shrext_cmds=".dll"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008007 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008008 library_names_spec='$libname${shared_ext} $libname.a'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008009 dynamic_linker='OS/2 ld.exe'
8010 shlibpath_var=LIBPATH
8011 ;;
8012
8013osf3* | osf4* | osf5*)
8014 version_type=osf
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008015 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008016 need_version=no
8017 soname_spec='${libname}${release}${shared_ext}$major'
8018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008019 shlibpath_var=LD_LIBRARY_PATH
8020 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8021 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008022 ;;
8023
8024sco3.2v5*)
8025 version_type=osf
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008026 soname_spec='${libname}${release}${shared_ext}$major'
8027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008028 shlibpath_var=LD_LIBRARY_PATH
8029 ;;
8030
8031solaris*)
8032 version_type=linux
8033 need_lib_prefix=no
8034 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8036 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008037 shlibpath_var=LD_LIBRARY_PATH
8038 shlibpath_overrides_runpath=yes
8039 hardcode_into_libs=yes
8040 # ldd complains unless libraries are executable
8041 postinstall_cmds='chmod +x $lib'
8042 ;;
8043
8044sunos4*)
8045 version_type=sunos
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008047 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8048 shlibpath_var=LD_LIBRARY_PATH
8049 shlibpath_overrides_runpath=yes
8050 if test "$with_gnu_ld" = yes; then
8051 need_lib_prefix=no
8052 fi
8053 need_version=yes
8054 ;;
8055
8056sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8057 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8059 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008060 shlibpath_var=LD_LIBRARY_PATH
8061 case $host_vendor in
8062 sni)
8063 shlibpath_overrides_runpath=no
8064 need_lib_prefix=no
8065 export_dynamic_flag_spec='${wl}-Blargedynsym'
8066 runpath_var=LD_RUN_PATH
8067 ;;
8068 siemens)
8069 need_lib_prefix=no
8070 ;;
8071 motorola)
8072 need_lib_prefix=no
8073 need_version=no
8074 shlibpath_overrides_runpath=no
8075 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8076 ;;
8077 esac
8078 ;;
8079
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008080sysv4*MP*)
8081 if test -d /usr/nec ;then
8082 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008083 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8084 soname_spec='$libname${shared_ext}.$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008085 shlibpath_var=LD_LIBRARY_PATH
8086 fi
8087 ;;
8088
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008089uts4*)
8090 version_type=linux
8091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8092 soname_spec='${libname}${release}${shared_ext}$major'
8093 shlibpath_var=LD_LIBRARY_PATH
8094 ;;
8095
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008096*)
8097 dynamic_linker=no
8098 ;;
8099esac
8100echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8101echo "${ECHO_T}$dynamic_linker" >&6
8102test "$dynamic_linker" = no && can_build_shared=no
8103
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008104echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8105echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8106hardcode_action=
8107if test -n "$hardcode_libdir_flag_spec" || \
8108 test -n "$runpath_var " || \
8109 test "X$hardcode_automatic"="Xyes" ; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008110
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008111 # We can hardcode non-existant directories.
8112 if test "$hardcode_direct" != no &&
8113 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8114 # have to relink, otherwise we might link with an installed library
8115 # when we should be linking with a yet-to-be-installed one
8116 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8117 test "$hardcode_minus_L" != no; then
8118 # Linking always hardcodes the temporary library directory.
8119 hardcode_action=relink
8120 else
8121 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8122 hardcode_action=immediate
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008123 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008124else
8125 # We cannot hardcode anything, or else we can only hardcode existing
8126 # directories.
8127 hardcode_action=unsupported
8128fi
8129echo "$as_me:$LINENO: result: $hardcode_action" >&5
8130echo "${ECHO_T}$hardcode_action" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008131
8132if test "$hardcode_action" = relink; then
8133 # Fast installation is not supported
8134 enable_fast_install=no
8135elif test "$shlibpath_overrides_runpath" = yes ||
8136 test "$enable_shared" = no; then
8137 # Fast installation is not necessary
8138 enable_fast_install=needless
8139fi
8140
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008141striplib=
8142old_striplib=
8143echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8144echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8145if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8146 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8147 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8148 echo "$as_me:$LINENO: result: yes" >&5
8149echo "${ECHO_T}yes" >&6
8150else
8151# FIXME - insert some real tests, host_os isn't really good enough
8152 case $host_os in
8153 darwin*)
8154 if test -n "$STRIP" ; then
8155 striplib="$STRIP -x"
8156 echo "$as_me:$LINENO: result: yes" >&5
8157echo "${ECHO_T}yes" >&6
8158 else
8159 echo "$as_me:$LINENO: result: no" >&5
8160echo "${ECHO_T}no" >&6
8161fi
8162 ;;
8163 *)
8164 echo "$as_me:$LINENO: result: no" >&5
8165echo "${ECHO_T}no" >&6
8166 ;;
8167 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008168fi
8169
8170if test "x$enable_dlopen" != xyes; then
8171 enable_dlopen=unknown
8172 enable_dlopen_self=unknown
8173 enable_dlopen_self_static=unknown
8174else
8175 lt_cv_dlopen=no
8176 lt_cv_dlopen_libs=
8177
8178 case $host_os in
8179 beos*)
8180 lt_cv_dlopen="load_add_on"
8181 lt_cv_dlopen_libs=
8182 lt_cv_dlopen_self=yes
8183 ;;
8184
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008185 mingw* | pw32*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008186 lt_cv_dlopen="LoadLibrary"
8187 lt_cv_dlopen_libs=
8188 ;;
8189
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008190 cygwin*)
8191 lt_cv_dlopen="dlopen"
8192 lt_cv_dlopen_libs=
8193 ;;
8194
8195 darwin*)
8196 # if libdl is installed we need to link against it
8197 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8198echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8199if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8201else
8202 ac_check_lib_save_LIBS=$LIBS
8203LIBS="-ldl $LIBS"
8204cat >conftest.$ac_ext <<_ACEOF
8205/* confdefs.h. */
8206_ACEOF
8207cat confdefs.h >>conftest.$ac_ext
8208cat >>conftest.$ac_ext <<_ACEOF
8209/* end confdefs.h. */
8210
8211/* Override any gcc2 internal prototype to avoid an error. */
8212#ifdef __cplusplus
8213extern "C"
8214#endif
8215/* We use char because int might match the return type of a gcc2
8216 builtin and then its argument prototype would still apply. */
8217char dlopen ();
8218int
8219main ()
8220{
8221dlopen ();
8222 ;
8223 return 0;
8224}
8225_ACEOF
8226rm -f conftest.$ac_objext conftest$ac_exeext
8227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008228 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008229 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008230 grep -v '^ *+' conftest.er1 >conftest.err
8231 rm -f conftest.er1
8232 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237 (eval $ac_try) 2>&5
8238 ac_status=$?
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; } &&
8241 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243 (eval $ac_try) 2>&5
8244 ac_status=$?
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); }; }; then
8247 ac_cv_lib_dl_dlopen=yes
8248else
8249 echo "$as_me: failed program was:" >&5
8250sed 's/^/| /' conftest.$ac_ext >&5
8251
8252ac_cv_lib_dl_dlopen=no
8253fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008254rm -f conftest.err conftest.$ac_objext \
8255 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008256LIBS=$ac_check_lib_save_LIBS
8257fi
8258echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8259echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8260if test $ac_cv_lib_dl_dlopen = yes; then
8261 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8262else
8263
8264 lt_cv_dlopen="dyld"
8265 lt_cv_dlopen_libs=
8266 lt_cv_dlopen_self=yes
8267
8268fi
8269
8270 ;;
8271
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008272 *)
8273 echo "$as_me:$LINENO: checking for shl_load" >&5
8274echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8275if test "${ac_cv_func_shl_load+set}" = set; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8277else
8278 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008279/* confdefs.h. */
8280_ACEOF
8281cat confdefs.h >>conftest.$ac_ext
8282cat >>conftest.$ac_ext <<_ACEOF
8283/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008284/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8286#define shl_load innocuous_shl_load
8287
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008288/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008289 which can conflict with char shl_load (); below.
8290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8291 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008292
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008293#ifdef __STDC__
8294# include <limits.h>
8295#else
8296# include <assert.h>
8297#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008298
8299#undef shl_load
8300
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008301/* Override any gcc2 internal prototype to avoid an error. */
8302#ifdef __cplusplus
8303extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008304{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008305#endif
8306/* We use char because int might match the return type of a gcc2
8307 builtin and then its argument prototype would still apply. */
8308char shl_load ();
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008309/* The GNU C library defines this for functions which it implements
8310 to always fail with ENOSYS. Some functions are actually named
8311 something starting with __ and the normal name is an alias. */
8312#if defined (__stub_shl_load) || defined (__stub___shl_load)
8313choke me
8314#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008315char (*f) () = shl_load;
8316#endif
8317#ifdef __cplusplus
8318}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008319#endif
8320
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008321int
8322main ()
8323{
8324return f != shl_load;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008325 ;
8326 return 0;
8327}
8328_ACEOF
8329rm -f conftest.$ac_objext conftest$ac_exeext
8330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008331 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008332 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008333 grep -v '^ *+' conftest.er1 >conftest.err
8334 rm -f conftest.er1
8335 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 (eval $ac_try) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; } &&
8344 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
8350 ac_cv_func_shl_load=yes
8351else
8352 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008353sed 's/^/| /' conftest.$ac_ext >&5
8354
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008355ac_cv_func_shl_load=no
8356fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008357rm -f conftest.err conftest.$ac_objext \
8358 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008359fi
8360echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8361echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8362if test $ac_cv_func_shl_load = yes; then
8363 lt_cv_dlopen="shl_load"
8364else
8365 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8366echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8367if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8369else
8370 ac_check_lib_save_LIBS=$LIBS
8371LIBS="-ldld $LIBS"
8372cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008373/* confdefs.h. */
8374_ACEOF
8375cat confdefs.h >>conftest.$ac_ext
8376cat >>conftest.$ac_ext <<_ACEOF
8377/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008378
8379/* Override any gcc2 internal prototype to avoid an error. */
8380#ifdef __cplusplus
8381extern "C"
8382#endif
8383/* We use char because int might match the return type of a gcc2
8384 builtin and then its argument prototype would still apply. */
8385char shl_load ();
8386int
8387main ()
8388{
8389shl_load ();
8390 ;
8391 return 0;
8392}
8393_ACEOF
8394rm -f conftest.$ac_objext conftest$ac_exeext
8395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008396 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008397 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 (eval $ac_try) 2>&5
8406 ac_status=$?
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; } &&
8409 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 (eval $ac_try) 2>&5
8412 ac_status=$?
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; }; then
8415 ac_cv_lib_dld_shl_load=yes
8416else
8417 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008418sed 's/^/| /' conftest.$ac_ext >&5
8419
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008420ac_cv_lib_dld_shl_load=no
8421fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008422rm -f conftest.err conftest.$ac_objext \
8423 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008424LIBS=$ac_check_lib_save_LIBS
8425fi
8426echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8427echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8428if test $ac_cv_lib_dld_shl_load = yes; then
8429 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8430else
8431 echo "$as_me:$LINENO: checking for dlopen" >&5
8432echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8433if test "${ac_cv_func_dlopen+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8435else
8436 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008437/* confdefs.h. */
8438_ACEOF
8439cat confdefs.h >>conftest.$ac_ext
8440cat >>conftest.$ac_ext <<_ACEOF
8441/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008442/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8444#define dlopen innocuous_dlopen
8445
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008446/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008447 which can conflict with char dlopen (); below.
8448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8449 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008450
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008451#ifdef __STDC__
8452# include <limits.h>
8453#else
8454# include <assert.h>
8455#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008456
8457#undef dlopen
8458
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008459/* Override any gcc2 internal prototype to avoid an error. */
8460#ifdef __cplusplus
8461extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008462{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008463#endif
8464/* We use char because int might match the return type of a gcc2
8465 builtin and then its argument prototype would still apply. */
8466char dlopen ();
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008467/* The GNU C library defines this for functions which it implements
8468 to always fail with ENOSYS. Some functions are actually named
8469 something starting with __ and the normal name is an alias. */
8470#if defined (__stub_dlopen) || defined (__stub___dlopen)
8471choke me
8472#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008473char (*f) () = dlopen;
8474#endif
8475#ifdef __cplusplus
8476}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008477#endif
8478
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008479int
8480main ()
8481{
8482return f != dlopen;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008483 ;
8484 return 0;
8485}
8486_ACEOF
8487rm -f conftest.$ac_objext conftest$ac_exeext
8488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008489 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008490 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008491 grep -v '^ *+' conftest.er1 >conftest.err
8492 rm -f conftest.er1
8493 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 (eval $ac_try) 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; } &&
8502 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 (eval $ac_try) 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; }; then
8508 ac_cv_func_dlopen=yes
8509else
8510 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008511sed 's/^/| /' conftest.$ac_ext >&5
8512
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008513ac_cv_func_dlopen=no
8514fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008515rm -f conftest.err conftest.$ac_objext \
8516 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008517fi
8518echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8519echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8520if test $ac_cv_func_dlopen = yes; then
8521 lt_cv_dlopen="dlopen"
8522else
8523 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8524echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8525if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8526 echo $ECHO_N "(cached) $ECHO_C" >&6
8527else
8528 ac_check_lib_save_LIBS=$LIBS
8529LIBS="-ldl $LIBS"
8530cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008531/* confdefs.h. */
8532_ACEOF
8533cat confdefs.h >>conftest.$ac_ext
8534cat >>conftest.$ac_ext <<_ACEOF
8535/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008536
8537/* Override any gcc2 internal prototype to avoid an error. */
8538#ifdef __cplusplus
8539extern "C"
8540#endif
8541/* We use char because int might match the return type of a gcc2
8542 builtin and then its argument prototype would still apply. */
8543char dlopen ();
8544int
8545main ()
8546{
8547dlopen ();
8548 ;
8549 return 0;
8550}
8551_ACEOF
8552rm -f conftest.$ac_objext conftest$ac_exeext
8553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008554 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008555 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008556 grep -v '^ *+' conftest.er1 >conftest.err
8557 rm -f conftest.er1
8558 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563 (eval $ac_try) 2>&5
8564 ac_status=$?
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; } &&
8567 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569 (eval $ac_try) 2>&5
8570 ac_status=$?
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 ac_cv_lib_dl_dlopen=yes
8574else
8575 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008576sed 's/^/| /' conftest.$ac_ext >&5
8577
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008578ac_cv_lib_dl_dlopen=no
8579fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008580rm -f conftest.err conftest.$ac_objext \
8581 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008582LIBS=$ac_check_lib_save_LIBS
8583fi
8584echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8585echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8586if test $ac_cv_lib_dl_dlopen = yes; then
8587 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8588else
8589 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8590echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8591if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8593else
8594 ac_check_lib_save_LIBS=$LIBS
8595LIBS="-lsvld $LIBS"
8596cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008597/* confdefs.h. */
8598_ACEOF
8599cat confdefs.h >>conftest.$ac_ext
8600cat >>conftest.$ac_ext <<_ACEOF
8601/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008602
8603/* Override any gcc2 internal prototype to avoid an error. */
8604#ifdef __cplusplus
8605extern "C"
8606#endif
8607/* We use char because int might match the return type of a gcc2
8608 builtin and then its argument prototype would still apply. */
8609char dlopen ();
8610int
8611main ()
8612{
8613dlopen ();
8614 ;
8615 return 0;
8616}
8617_ACEOF
8618rm -f conftest.$ac_objext conftest$ac_exeext
8619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008620 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008621 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008622 grep -v '^ *+' conftest.er1 >conftest.err
8623 rm -f conftest.er1
8624 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 (eval $ac_try) 2>&5
8630 ac_status=$?
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; } &&
8633 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 (eval $ac_try) 2>&5
8636 ac_status=$?
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; }; then
8639 ac_cv_lib_svld_dlopen=yes
8640else
8641 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008642sed 's/^/| /' conftest.$ac_ext >&5
8643
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008644ac_cv_lib_svld_dlopen=no
8645fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008646rm -f conftest.err conftest.$ac_objext \
8647 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008648LIBS=$ac_check_lib_save_LIBS
8649fi
8650echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8651echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8652if test $ac_cv_lib_svld_dlopen = yes; then
8653 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8654else
8655 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8656echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8657if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8659else
8660 ac_check_lib_save_LIBS=$LIBS
8661LIBS="-ldld $LIBS"
8662cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008663/* confdefs.h. */
8664_ACEOF
8665cat confdefs.h >>conftest.$ac_ext
8666cat >>conftest.$ac_ext <<_ACEOF
8667/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008668
8669/* Override any gcc2 internal prototype to avoid an error. */
8670#ifdef __cplusplus
8671extern "C"
8672#endif
8673/* We use char because int might match the return type of a gcc2
8674 builtin and then its argument prototype would still apply. */
8675char dld_link ();
8676int
8677main ()
8678{
8679dld_link ();
8680 ;
8681 return 0;
8682}
8683_ACEOF
8684rm -f conftest.$ac_objext conftest$ac_exeext
8685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008686 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008687 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008688 grep -v '^ *+' conftest.er1 >conftest.err
8689 rm -f conftest.er1
8690 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695 (eval $ac_try) 2>&5
8696 ac_status=$?
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; } &&
8699 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701 (eval $ac_try) 2>&5
8702 ac_status=$?
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; }; then
8705 ac_cv_lib_dld_dld_link=yes
8706else
8707 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008708sed 's/^/| /' conftest.$ac_ext >&5
8709
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008710ac_cv_lib_dld_dld_link=no
8711fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008712rm -f conftest.err conftest.$ac_objext \
8713 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008714LIBS=$ac_check_lib_save_LIBS
8715fi
8716echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8717echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8718if test $ac_cv_lib_dld_dld_link = yes; then
8719 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8720fi
8721
8722
8723fi
8724
8725
8726fi
8727
8728
8729fi
8730
8731
8732fi
8733
8734
8735fi
8736
8737 ;;
8738 esac
8739
8740 if test "x$lt_cv_dlopen" != xno; then
8741 enable_dlopen=yes
8742 else
8743 enable_dlopen=no
8744 fi
8745
8746 case $lt_cv_dlopen in
8747 dlopen)
8748 save_CPPFLAGS="$CPPFLAGS"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008749 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008750
8751 save_LDFLAGS="$LDFLAGS"
8752 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8753
8754 save_LIBS="$LIBS"
8755 LIBS="$lt_cv_dlopen_libs $LIBS"
8756
8757 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8758echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8759if test "${lt_cv_dlopen_self+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8761else
8762 if test "$cross_compiling" = yes; then :
8763 lt_cv_dlopen_self=cross
8764else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008765 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008766 lt_status=$lt_dlunknown
8767 cat > conftest.$ac_ext <<EOF
hp.com!davidm16230292004-07-15 17:39:59 +00008768#line 8768 "configure"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008769#include "confdefs.h"
8770
8771#if HAVE_DLFCN_H
8772#include <dlfcn.h>
8773#endif
8774
8775#include <stdio.h>
8776
8777#ifdef RTLD_GLOBAL
8778# define LT_DLGLOBAL RTLD_GLOBAL
8779#else
8780# ifdef DL_GLOBAL
8781# define LT_DLGLOBAL DL_GLOBAL
8782# else
8783# define LT_DLGLOBAL 0
8784# endif
8785#endif
8786
8787/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8788 find out it does not work in some platform. */
8789#ifndef LT_DLLAZY_OR_NOW
8790# ifdef RTLD_LAZY
8791# define LT_DLLAZY_OR_NOW RTLD_LAZY
8792# else
8793# ifdef DL_LAZY
8794# define LT_DLLAZY_OR_NOW DL_LAZY
8795# else
8796# ifdef RTLD_NOW
8797# define LT_DLLAZY_OR_NOW RTLD_NOW
8798# else
8799# ifdef DL_NOW
8800# define LT_DLLAZY_OR_NOW DL_NOW
8801# else
8802# define LT_DLLAZY_OR_NOW 0
8803# endif
8804# endif
8805# endif
8806# endif
8807#endif
8808
8809#ifdef __cplusplus
8810extern "C" void exit (int);
8811#endif
8812
8813void fnord() { int i=42;}
8814int main ()
8815{
8816 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8817 int status = $lt_dlunknown;
8818
8819 if (self)
8820 {
8821 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8822 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8823 /* dlclose (self); */
8824 }
8825
8826 exit (status);
8827}
8828EOF
8829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8830 (eval $ac_link) 2>&5
8831 ac_status=$?
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8834 (./conftest; exit; ) 2>/dev/null
8835 lt_status=$?
8836 case x$lt_status in
8837 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8838 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8839 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8840 esac
8841 else :
8842 # compilation failed
8843 lt_cv_dlopen_self=no
8844 fi
8845fi
8846rm -fr conftest*
8847
8848
8849fi
8850echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8851echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8852
8853 if test "x$lt_cv_dlopen_self" = xyes; then
8854 LDFLAGS="$LDFLAGS $link_static_flag"
8855 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8856echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8857if test "${lt_cv_dlopen_self_static+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8859else
8860 if test "$cross_compiling" = yes; then :
8861 lt_cv_dlopen_self_static=cross
8862else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008863 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008864 lt_status=$lt_dlunknown
8865 cat > conftest.$ac_ext <<EOF
hp.com!davidm16230292004-07-15 17:39:59 +00008866#line 8866 "configure"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008867#include "confdefs.h"
8868
8869#if HAVE_DLFCN_H
8870#include <dlfcn.h>
8871#endif
8872
8873#include <stdio.h>
8874
8875#ifdef RTLD_GLOBAL
8876# define LT_DLGLOBAL RTLD_GLOBAL
8877#else
8878# ifdef DL_GLOBAL
8879# define LT_DLGLOBAL DL_GLOBAL
8880# else
8881# define LT_DLGLOBAL 0
8882# endif
8883#endif
8884
8885/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8886 find out it does not work in some platform. */
8887#ifndef LT_DLLAZY_OR_NOW
8888# ifdef RTLD_LAZY
8889# define LT_DLLAZY_OR_NOW RTLD_LAZY
8890# else
8891# ifdef DL_LAZY
8892# define LT_DLLAZY_OR_NOW DL_LAZY
8893# else
8894# ifdef RTLD_NOW
8895# define LT_DLLAZY_OR_NOW RTLD_NOW
8896# else
8897# ifdef DL_NOW
8898# define LT_DLLAZY_OR_NOW DL_NOW
8899# else
8900# define LT_DLLAZY_OR_NOW 0
8901# endif
8902# endif
8903# endif
8904# endif
8905#endif
8906
8907#ifdef __cplusplus
8908extern "C" void exit (int);
8909#endif
8910
8911void fnord() { int i=42;}
8912int main ()
8913{
8914 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8915 int status = $lt_dlunknown;
8916
8917 if (self)
8918 {
8919 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8920 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8921 /* dlclose (self); */
8922 }
8923
8924 exit (status);
8925}
8926EOF
8927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8928 (eval $ac_link) 2>&5
8929 ac_status=$?
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8932 (./conftest; exit; ) 2>/dev/null
8933 lt_status=$?
8934 case x$lt_status in
8935 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8936 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8937 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8938 esac
8939 else :
8940 # compilation failed
8941 lt_cv_dlopen_self_static=no
8942 fi
8943fi
8944rm -fr conftest*
8945
8946
8947fi
8948echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8949echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8950 fi
8951
8952 CPPFLAGS="$save_CPPFLAGS"
8953 LDFLAGS="$save_LDFLAGS"
8954 LIBS="$save_LIBS"
8955 ;;
8956 esac
8957
8958 case $lt_cv_dlopen_self in
8959 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8960 *) enable_dlopen_self=unknown ;;
8961 esac
8962
8963 case $lt_cv_dlopen_self_static in
8964 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8965 *) enable_dlopen_self_static=unknown ;;
8966 esac
8967fi
8968
8969
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008970# Report which librarie types wil actually be built
8971echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8972echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8973echo "$as_me:$LINENO: result: $can_build_shared" >&5
8974echo "${ECHO_T}$can_build_shared" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008975
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008976echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8977echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8978test "$can_build_shared" = "no" && enable_shared=no
8979
8980# On AIX, shared libraries and static libraries use the same namespace, and
8981# are all built from PIC.
8982case "$host_os" in
8983aix3*)
8984 test "$enable_shared" = yes && enable_static=no
8985 if test -n "$RANLIB"; then
8986 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8987 postinstall_cmds='$RANLIB $lib'
8988 fi
8989 ;;
8990
hp.com!davidm2de17682004-04-20 16:53:44 +00008991aix4* | aix5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008992 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8993 test "$enable_shared" = yes && enable_static=no
8994 fi
8995 ;;
8996 darwin* | rhapsody*)
8997 if test "$GCC" = yes; then
8998 archive_cmds_need_lc=no
8999 case "$host_os" in
9000 rhapsody* | darwin1.[012])
9001 allow_undefined_flag='-undefined suppress'
9002 ;;
9003 *) # Darwin 1.3 on
9004 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9005 allow_undefined_flag='-flat_namespace -undefined suppress'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009006 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009007 case ${MACOSX_DEPLOYMENT_TARGET} in
9008 10.[012])
9009 allow_undefined_flag='-flat_namespace -undefined suppress'
9010 ;;
9011 10.*)
9012 allow_undefined_flag='-undefined dynamic_lookup'
9013 ;;
9014 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009015 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009016 ;;
9017 esac
9018 output_verbose_link_cmd='echo'
9019 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9020 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9021 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9022 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}'
9023 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}'
9024 hardcode_direct=no
9025 hardcode_automatic=yes
9026 hardcode_shlibpath_var=unsupported
9027 whole_archive_flag_spec='-all_load $convenience'
9028 link_all_deplibs=yes
9029 else
9030 ld_shlibs=no
9031 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009032 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009033esac
9034echo "$as_me:$LINENO: result: $enable_shared" >&5
9035echo "${ECHO_T}$enable_shared" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009036
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009037echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9038echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9039# Make sure either enable_shared or enable_static is yes.
9040test "$enable_shared" = yes || enable_static=yes
9041echo "$as_me:$LINENO: result: $enable_static" >&5
9042echo "${ECHO_T}$enable_static" >&6
9043
9044# The else clause should only fire when bootstrapping the
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009045# libtool distribution, otherwise you forgot to ship ltmain.sh
9046# with your package, and you will get complaints that there are
9047# no rules to generate ltmain.sh.
9048if test -f "$ltmain"; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009049 # See if we are running on zsh, and set the options which allow our commands through
9050 # without removal of \ escapes.
9051 if test -n "${ZSH_VERSION+set}" ; then
9052 setopt NO_GLOB_SUBST
9053 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009054 # Now quote all the things that may contain metacharacters while being
9055 # careful not to overquote the AC_SUBSTed values. We take copies of the
9056 # variables and quote the copies for generation of the libtool script.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009057 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9058 SED SHELL STRIP \
9059 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9060 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9061 deplibs_check_method reload_flag reload_cmds need_locks \
9062 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9063 lt_cv_sys_global_symbol_to_c_name_address \
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009064 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009065 old_postinstall_cmds old_postuninstall_cmds \
9066 compiler \
9067 CC \
9068 LD \
9069 lt_prog_compiler_wl \
9070 lt_prog_compiler_pic \
9071 lt_prog_compiler_static \
9072 lt_prog_compiler_no_builtin_flag \
9073 export_dynamic_flag_spec \
9074 thread_safe_flag_spec \
9075 whole_archive_flag_spec \
9076 enable_shared_with_static_runtimes \
9077 old_archive_cmds \
9078 old_archive_from_new_cmds \
9079 predep_objects \
9080 postdep_objects \
9081 predeps \
9082 postdeps \
9083 compiler_lib_search_path \
9084 archive_cmds \
9085 archive_expsym_cmds \
9086 postinstall_cmds \
9087 postuninstall_cmds \
9088 old_archive_from_expsyms_cmds \
9089 allow_undefined_flag \
9090 no_undefined_flag \
9091 export_symbols_cmds \
9092 hardcode_libdir_flag_spec \
9093 hardcode_libdir_flag_spec_ld \
9094 hardcode_libdir_separator \
9095 hardcode_automatic \
9096 module_cmds \
9097 module_expsym_cmds \
9098 lt_cv_prog_compiler_c_o \
9099 exclude_expsyms \
9100 include_expsyms; do
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009101
9102 case $var in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009103 old_archive_cmds | \
9104 old_archive_from_new_cmds | \
9105 archive_cmds | \
9106 archive_expsym_cmds | \
9107 module_cmds | \
9108 module_expsym_cmds | \
9109 old_archive_from_expsyms_cmds | \
9110 export_symbols_cmds | \
9111 extract_expsyms_cmds | reload_cmds | finish_cmds | \
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009112 postinstall_cmds | postuninstall_cmds | \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009113 old_postinstall_cmds | old_postuninstall_cmds | \
9114 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009115 # Double-quote double-evaled strings.
9116 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9117 ;;
9118 *)
9119 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9120 ;;
9121 esac
9122 done
9123
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009124 case $lt_echo in
9125 *'\$0 --fallback-echo"')
9126 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9127 ;;
9128 esac
9129
9130cfgfile="${ofile}T"
9131 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9132 $rm -f "$cfgfile"
9133 { echo "$as_me:$LINENO: creating $ofile" >&5
9134echo "$as_me: creating $ofile" >&6;}
9135
9136 cat <<__EOF__ >> "$cfgfile"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009137#! $SHELL
9138
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009139# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009140# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9141# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9142#
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009143# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9144# Free Software Foundation, Inc.
9145#
9146# This file is part of GNU Libtool:
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009147# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9148#
9149# This program is free software; you can redistribute it and/or modify
9150# it under the terms of the GNU General Public License as published by
9151# the Free Software Foundation; either version 2 of the License, or
9152# (at your option) any later version.
9153#
9154# This program is distributed in the hope that it will be useful, but
9155# WITHOUT ANY WARRANTY; without even the implied warranty of
9156# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9157# General Public License for more details.
9158#
9159# You should have received a copy of the GNU General Public License
9160# along with this program; if not, write to the Free Software
9161# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9162#
9163# As a special exception to the GNU General Public License, if you
9164# distribute this file as part of a program that contains a
9165# configuration script generated by Autoconf, you may include it under
9166# the same distribution terms that you use for the rest of that program.
9167
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009168# A sed program that does not truncate output.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009169SED=$lt_SED
9170
9171# Sed that helps us avoid accidentally triggering echo(1) options like -n.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009172Xsed="$SED -e s/^X//"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009173
9174# The HP-UX ksh and POSIX shell print the target directory to stdout
9175# if CDPATH is set.
9176if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9177
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009178# The names of the tagged configurations supported by this script.
9179available_tags=
9180
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009181# ### BEGIN LIBTOOL CONFIG
9182
9183# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9184
9185# Shell to use when invoking shell scripts.
9186SHELL=$lt_SHELL
9187
9188# Whether or not to build shared libraries.
9189build_libtool_libs=$enable_shared
9190
9191# Whether or not to build static libraries.
9192build_old_libs=$enable_static
9193
9194# Whether or not to add -lc for building shared libraries.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009195build_libtool_need_lc=$archive_cmds_need_lc
9196
9197# Whether or not to disallow shared libs when runtime libs are static
9198allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009199
9200# Whether or not to optimize for fast installation.
9201fast_install=$enable_fast_install
9202
9203# The host system.
9204host_alias=$host_alias
9205host=$host
9206
9207# An echo program that does not interpret backslashes.
9208echo=$lt_echo
9209
9210# The archiver.
9211AR=$lt_AR
9212AR_FLAGS=$lt_AR_FLAGS
9213
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009214# A C compiler.
9215LTCC=$lt_LTCC
9216
9217# A language-specific compiler.
9218CC=$lt_compiler
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009219
9220# Is the compiler the GNU C compiler?
9221with_gcc=$GCC
9222
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009223# An ERE matcher.
9224EGREP=$lt_EGREP
9225
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009226# The linker used to build libraries.
9227LD=$lt_LD
9228
9229# Whether we need hard or soft links.
9230LN_S=$lt_LN_S
9231
9232# A BSD-compatible nm program.
9233NM=$lt_NM
9234
9235# A symbol stripping program
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009236STRIP=$lt_STRIP
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009237
9238# Used to examine libraries when file_magic_cmd begins "file"
9239MAGIC_CMD=$MAGIC_CMD
9240
9241# Used on cygwin: DLL creation program.
9242DLLTOOL="$DLLTOOL"
9243
9244# Used on cygwin: object dumper.
9245OBJDUMP="$OBJDUMP"
9246
9247# Used on cygwin: assembler.
9248AS="$AS"
9249
9250# The name of the directory that contains temporary libtool files.
9251objdir=$objdir
9252
9253# How to create reloadable object files.
9254reload_flag=$lt_reload_flag
9255reload_cmds=$lt_reload_cmds
9256
9257# How to pass a linker flag through the compiler.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009258wl=$lt_lt_prog_compiler_wl
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009259
9260# Object file suffix (normally "o").
9261objext="$ac_objext"
9262
9263# Old archive suffix (normally "a").
9264libext="$libext"
9265
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009266# Shared library suffix (normally ".so").
hp.com!davidm2de17682004-04-20 16:53:44 +00009267shrext_cmds='$shrext_cmds'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009268
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009269# Executable file suffix (normally "").
9270exeext="$exeext"
9271
9272# Additional compiler flags for building library objects.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009273pic_flag=$lt_lt_prog_compiler_pic
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009274pic_mode=$pic_mode
9275
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009276# What is the maximum length of a command?
9277max_cmd_len=$lt_cv_sys_max_cmd_len
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009278
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009279# Does compiler simultaneously support -c and -o options?
9280compiler_c_o=$lt_lt_cv_prog_compiler_c_o
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009281
9282# Must we lock files when doing compilation ?
9283need_locks=$lt_need_locks
9284
9285# Do we need the lib prefix for modules?
9286need_lib_prefix=$need_lib_prefix
9287
9288# Do we need a version for libraries?
9289need_version=$need_version
9290
9291# Whether dlopen is supported.
9292dlopen_support=$enable_dlopen
9293
9294# Whether dlopen of programs is supported.
9295dlopen_self=$enable_dlopen_self
9296
9297# Whether dlopen of statically linked programs is supported.
9298dlopen_self_static=$enable_dlopen_self_static
9299
9300# Compiler flag to prevent dynamic linking.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009301link_static_flag=$lt_lt_prog_compiler_static
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009302
9303# Compiler flag to turn off builtin functions.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009304no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009305
9306# Compiler flag to allow reflexive dlopens.
9307export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9308
9309# Compiler flag to generate shared objects directly from archives.
9310whole_archive_flag_spec=$lt_whole_archive_flag_spec
9311
9312# Compiler flag to generate thread-safe objects.
9313thread_safe_flag_spec=$lt_thread_safe_flag_spec
9314
9315# Library versioning type.
9316version_type=$version_type
9317
9318# Format of library name prefix.
9319libname_spec=$lt_libname_spec
9320
9321# List of archive names. First name is the real one, the rest are links.
9322# The last name is the one that the linker finds with -lNAME.
9323library_names_spec=$lt_library_names_spec
9324
9325# The coded name of the library, if different from the real name.
9326soname_spec=$lt_soname_spec
9327
9328# Commands used to build and install an old-style archive.
9329RANLIB=$lt_RANLIB
9330old_archive_cmds=$lt_old_archive_cmds
9331old_postinstall_cmds=$lt_old_postinstall_cmds
9332old_postuninstall_cmds=$lt_old_postuninstall_cmds
9333
9334# Create an old-style archive from a shared archive.
9335old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9336
9337# Create a temporary old-style archive to link instead of a shared archive.
9338old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9339
9340# Commands used to build and install a shared archive.
9341archive_cmds=$lt_archive_cmds
9342archive_expsym_cmds=$lt_archive_expsym_cmds
9343postinstall_cmds=$lt_postinstall_cmds
9344postuninstall_cmds=$lt_postuninstall_cmds
9345
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009346# Commands used to build a loadable module (assumed same as above if empty)
9347module_cmds=$lt_module_cmds
9348module_expsym_cmds=$lt_module_expsym_cmds
9349
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009350# Commands to strip libraries.
9351old_striplib=$lt_old_striplib
9352striplib=$lt_striplib
9353
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009354# Dependencies to place before the objects being linked to create a
9355# shared library.
9356predep_objects=$lt_predep_objects
9357
9358# Dependencies to place after the objects being linked to create a
9359# shared library.
9360postdep_objects=$lt_postdep_objects
9361
9362# Dependencies to place before the objects being linked to create a
9363# shared library.
9364predeps=$lt_predeps
9365
9366# Dependencies to place after the objects being linked to create a
9367# shared library.
9368postdeps=$lt_postdeps
9369
9370# The library search path used internally by the compiler when linking
9371# a shared library.
9372compiler_lib_search_path=$lt_compiler_lib_search_path
9373
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009374# Method to check whether dependent libraries are shared objects.
9375deplibs_check_method=$lt_deplibs_check_method
9376
9377# Command to use when deplibs_check_method == file_magic.
9378file_magic_cmd=$lt_file_magic_cmd
9379
9380# Flag that allows shared libraries with undefined symbols to be built.
9381allow_undefined_flag=$lt_allow_undefined_flag
9382
9383# Flag that forces no undefined symbols.
9384no_undefined_flag=$lt_no_undefined_flag
9385
9386# Commands used to finish a libtool library installation in a directory.
9387finish_cmds=$lt_finish_cmds
9388
9389# Same as above, but a single script fragment to be evaled but not shown.
9390finish_eval=$lt_finish_eval
9391
9392# Take the output of nm and produce a listing of raw symbols and C names.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009393global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009394
9395# Transform the output of nm in a proper C declaration
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009396global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009397
9398# Transform the output of nm in a C name address pair
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009399global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009400
9401# This is the shared library runtime path variable.
9402runpath_var=$runpath_var
9403
9404# This is the shared library path variable.
9405shlibpath_var=$shlibpath_var
9406
9407# Is shlibpath searched before the hard-coded library search path?
9408shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9409
9410# How to hardcode a shared library path into an executable.
9411hardcode_action=$hardcode_action
9412
9413# Whether we should hardcode library paths into libraries.
9414hardcode_into_libs=$hardcode_into_libs
9415
9416# Flag to hardcode \$libdir into a binary during linking.
9417# This must work even if \$libdir does not exist.
9418hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9419
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009420# If ld is used when linking, flag to hardcode \$libdir into
9421# a binary during linking. This must work even if \$libdir does
9422# not exist.
9423hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9424
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009425# Whether we need a single -rpath flag with a separated argument.
9426hardcode_libdir_separator=$lt_hardcode_libdir_separator
9427
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009428# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009429# resulting binary.
9430hardcode_direct=$hardcode_direct
9431
9432# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9433# resulting binary.
9434hardcode_minus_L=$hardcode_minus_L
9435
9436# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9437# the resulting binary.
9438hardcode_shlibpath_var=$hardcode_shlibpath_var
9439
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009440# Set to yes if building a shared library automatically hardcodes DIR into the library
9441# and all subsequent libraries and executables linked against it.
9442hardcode_automatic=$hardcode_automatic
9443
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009444# Variables whose values should be saved in libtool wrapper scripts and
9445# restored at relink time.
9446variables_saved_for_relink="$variables_saved_for_relink"
9447
9448# Whether libtool must link a program against all its dependency libraries.
9449link_all_deplibs=$link_all_deplibs
9450
9451# Compile-time system search path for libraries
9452sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9453
9454# Run-time system search path for libraries
9455sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9456
9457# Fix the shell variable \$srcfile for the compiler.
9458fix_srcfile_path="$fix_srcfile_path"
9459
9460# Set to yes if exported symbols are required.
9461always_export_symbols=$always_export_symbols
9462
9463# The commands to list exported symbols.
9464export_symbols_cmds=$lt_export_symbols_cmds
9465
9466# The commands to extract the exported symbol list from a shared archive.
9467extract_expsyms_cmds=$lt_extract_expsyms_cmds
9468
9469# Symbols that should not be listed in the preloaded symbols.
9470exclude_expsyms=$lt_exclude_expsyms
9471
9472# Symbols that must always be exported.
9473include_expsyms=$lt_include_expsyms
9474
9475# ### END LIBTOOL CONFIG
9476
9477__EOF__
9478
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009479
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009480 case $host_os in
9481 aix3*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009482 cat <<\EOF >> "$cfgfile"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009483
9484# AIX sometimes has problems with the GCC collect2 program. For some
9485# reason, if we set the COLLECT_NAMES environment variable, the problems
9486# vanish in a puff of smoke.
9487if test "X${COLLECT_NAMES+set}" != Xset; then
9488 COLLECT_NAMES=
9489 export COLLECT_NAMES
9490fi
9491EOF
9492 ;;
9493 esac
9494
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009495 # We use sed instead of cat because bash on DJGPP gets confused if
9496 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9497 # text mode, it properly converts lines to CR/LF. This bash problem
9498 # is reportedly fixed, but why not run on old versions too?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009499 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009500
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009501 mv -f "$cfgfile" "$ofile" || \
9502 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009503 chmod +x "$ofile"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009504
9505else
9506 # If there is no Makefile yet, we rely on a make rule to execute
9507 # `config.status --recheck' to rerun these tests and create the
9508 # libtool script then.
9509 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9510 if test -f "$ltmain_in"; then
9511 test -f Makefile && make "$ltmain"
9512 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009513fi
9514
9515
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009516ac_ext=c
9517ac_cpp='$CPP $CPPFLAGS'
9518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9520ac_compiler_gnu=$ac_cv_c_compiler_gnu
9521
9522CC="$lt_save_CC"
9523
9524
9525# Check whether --with-tags or --without-tags was given.
9526if test "${with_tags+set}" = set; then
9527 withval="$with_tags"
9528 tagnames="$withval"
9529fi;
9530
9531if test -f "$ltmain" && test -n "$tagnames"; then
9532 if test ! -f "${ofile}"; then
9533 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9534echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9535 fi
9536
9537 if test -z "$LTCC"; then
9538 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9539 if test -z "$LTCC"; then
9540 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9541echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9542 else
9543 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9544echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9545 fi
9546 fi
9547
9548 # Extract list of available tagged configurations in $ofile.
9549 # Note that this assumes the entire list is on one line.
9550 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9551
9552 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9553 for tagname in $tagnames; do
9554 IFS="$lt_save_ifs"
9555 # Check whether tagname contains only valid characters
9556 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9557 "") ;;
9558 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9559echo "$as_me: error: invalid tag name: $tagname" >&2;}
9560 { (exit 1); exit 1; }; }
9561 ;;
9562 esac
9563
9564 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9565 then
9566 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9567echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9568 { (exit 1); exit 1; }; }
9569 fi
9570
9571 # Update the list of available tags.
9572 if test -n "$tagname"; then
9573 echo appending configuration tag \"$tagname\" to $ofile
9574
9575 case $tagname in
9576 CXX)
9577 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9578 ac_ext=cc
9579ac_cpp='$CXXCPP $CPPFLAGS'
9580ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9581ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9582ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9583
9584
9585
9586
9587archive_cmds_need_lc_CXX=no
9588allow_undefined_flag_CXX=
9589always_export_symbols_CXX=no
9590archive_expsym_cmds_CXX=
9591export_dynamic_flag_spec_CXX=
9592hardcode_direct_CXX=no
9593hardcode_libdir_flag_spec_CXX=
9594hardcode_libdir_flag_spec_ld_CXX=
9595hardcode_libdir_separator_CXX=
9596hardcode_minus_L_CXX=no
9597hardcode_automatic_CXX=no
9598module_cmds_CXX=
9599module_expsym_cmds_CXX=
9600link_all_deplibs_CXX=unknown
9601old_archive_cmds_CXX=$old_archive_cmds
9602no_undefined_flag_CXX=
9603whole_archive_flag_spec_CXX=
9604enable_shared_with_static_runtimes_CXX=no
9605
9606# Dependencies to place before and after the object being linked:
9607predep_objects_CXX=
9608postdep_objects_CXX=
9609predeps_CXX=
9610postdeps_CXX=
9611compiler_lib_search_path_CXX=
9612
9613# Source file extension for C++ test sources.
9614ac_ext=cc
9615
9616# Object file extension for compiled C++ test sources.
9617objext=o
9618objext_CXX=$objext
9619
9620# Code to be used in simple compile tests
9621lt_simple_compile_test_code="int some_variable = 0;\n"
9622
9623# Code to be used in simple link tests
9624lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9625
9626# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9627
9628# If no C compiler was specified, use CC.
9629LTCC=${LTCC-"$CC"}
9630
9631# Allow CC to be a program name with arguments.
9632compiler=$CC
9633
9634
9635# Allow CC to be a program name with arguments.
9636lt_save_CC=$CC
9637lt_save_LD=$LD
9638lt_save_GCC=$GCC
9639GCC=$GXX
9640lt_save_with_gnu_ld=$with_gnu_ld
9641lt_save_path_LD=$lt_cv_path_LD
9642if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9643 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9644else
9645 unset lt_cv_prog_gnu_ld
9646fi
9647if test -n "${lt_cv_path_LDCXX+set}"; then
9648 lt_cv_path_LD=$lt_cv_path_LDCXX
9649else
9650 unset lt_cv_path_LD
9651fi
9652test -z "${LDCXX+set}" || LD=$LDCXX
9653CC=${CXX-"c++"}
9654compiler=$CC
9655compiler_CXX=$CC
9656cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9657
9658# We don't want -fno-exception wen compiling C++ code, so set the
9659# no_builtin_flag separately
9660if test "$GXX" = yes; then
9661 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9662else
9663 lt_prog_compiler_no_builtin_flag_CXX=
9664fi
9665
9666if test "$GXX" = yes; then
9667 # Set up default GNU C++ configuration
9668
9669
9670# Check whether --with-gnu-ld or --without-gnu-ld was given.
9671if test "${with_gnu_ld+set}" = set; then
9672 withval="$with_gnu_ld"
9673 test "$withval" = no || with_gnu_ld=yes
9674else
9675 with_gnu_ld=no
9676fi;
9677ac_prog=ld
9678if test "$GCC" = yes; then
9679 # Check if gcc -print-prog-name=ld gives a path.
9680 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9681echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9682 case $host in
9683 *-*-mingw*)
9684 # gcc leaves a trailing carriage return which upsets mingw
9685 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9686 *)
9687 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9688 esac
9689 case $ac_prog in
9690 # Accept absolute paths.
9691 [\\/]* | ?:[\\/]*)
9692 re_direlt='/[^/][^/]*/\.\./'
9693 # Canonicalize the pathname of ld
9694 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9695 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9696 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9697 done
9698 test -z "$LD" && LD="$ac_prog"
9699 ;;
9700 "")
9701 # If it fails, then pretend we aren't using GCC.
9702 ac_prog=ld
9703 ;;
9704 *)
9705 # If it is relative, then search for the first ld in PATH.
9706 with_gnu_ld=unknown
9707 ;;
9708 esac
9709elif test "$with_gnu_ld" = yes; then
9710 echo "$as_me:$LINENO: checking for GNU ld" >&5
9711echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9712else
9713 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9714echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9715fi
9716if test "${lt_cv_path_LD+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9718else
9719 if test -z "$LD"; then
9720 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9721 for ac_dir in $PATH; do
9722 IFS="$lt_save_ifs"
9723 test -z "$ac_dir" && ac_dir=.
9724 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9725 lt_cv_path_LD="$ac_dir/$ac_prog"
9726 # Check to see if the program is GNU ld. I'd rather use --version,
9727 # but apparently some GNU ld's only accept -v.
9728 # Break only if it was the GNU/non-GNU ld that we prefer.
9729 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9730 *GNU* | *'with BFD'*)
9731 test "$with_gnu_ld" != no && break
9732 ;;
9733 *)
9734 test "$with_gnu_ld" != yes && break
9735 ;;
9736 esac
9737 fi
9738 done
9739 IFS="$lt_save_ifs"
9740else
9741 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9742fi
9743fi
9744
9745LD="$lt_cv_path_LD"
9746if test -n "$LD"; then
9747 echo "$as_me:$LINENO: result: $LD" >&5
9748echo "${ECHO_T}$LD" >&6
9749else
9750 echo "$as_me:$LINENO: result: no" >&5
9751echo "${ECHO_T}no" >&6
9752fi
9753test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9754echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9755 { (exit 1); exit 1; }; }
9756echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9757echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9758if test "${lt_cv_prog_gnu_ld+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9760else
9761 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9762case `$LD -v 2>&1 </dev/null` in
9763*GNU* | *'with BFD'*)
9764 lt_cv_prog_gnu_ld=yes
9765 ;;
9766*)
9767 lt_cv_prog_gnu_ld=no
9768 ;;
9769esac
9770fi
9771echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9772echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9773with_gnu_ld=$lt_cv_prog_gnu_ld
9774
9775
9776
9777 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9778 # archiving commands below assume that GNU ld is being used.
9779 if test "$with_gnu_ld" = yes; then
9780 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9781 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'
9782
9783 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9784 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9785
9786 # If archive_cmds runs LD, not CC, wlarc should be empty
9787 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9788 # investigate it a little bit more. (MM)
9789 wlarc='${wl}'
9790
9791 # ancient GNU ld didn't support --whole-archive et. al.
9792 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9793 grep 'no-whole-archive' > /dev/null; then
9794 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9795 else
9796 whole_archive_flag_spec_CXX=
9797 fi
9798 else
9799 with_gnu_ld=no
9800 wlarc=
9801
9802 # A generic and very simple default shared library creation
9803 # command for GNU C++ for the case where it uses the native
9804 # linker, instead of GNU ld. If possible, this setting should
9805 # overridden to take advantage of the native linker features on
9806 # the platform it is being used on.
9807 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9808 fi
9809
9810 # Commands to make compiler produce verbose output that lists
9811 # what "hidden" libraries, object files and flags are used when
9812 # linking a shared library.
9813 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9814
9815else
9816 GXX=no
9817 with_gnu_ld=no
9818 wlarc=
9819fi
9820
9821# PORTME: fill in a description of your system's C++ link characteristics
9822echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9823echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9824ld_shlibs_CXX=yes
9825case $host_os in
9826 aix3*)
9827 # FIXME: insert proper C++ library support
9828 ld_shlibs_CXX=no
9829 ;;
9830 aix4* | aix5*)
9831 if test "$host_cpu" = ia64; then
9832 # On IA64, the linker does run time linking by default, so we don't
9833 # have to do anything special.
9834 aix_use_runtimelinking=no
9835 exp_sym_flag='-Bexport'
9836 no_entry_flag=""
9837 else
9838 aix_use_runtimelinking=no
9839
9840 # Test if we are trying to use run time linking or normal
9841 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9842 # need to do runtime linking.
9843 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9844 for ld_flag in $LDFLAGS; do
9845 case $ld_flag in
9846 *-brtl*)
9847 aix_use_runtimelinking=yes
9848 break
9849 ;;
9850 esac
9851 done
9852 esac
9853
9854 exp_sym_flag='-bexport'
9855 no_entry_flag='-bnoentry'
9856 fi
9857
9858 # When large executables or shared objects are built, AIX ld can
9859 # have problems creating the table of contents. If linking a library
9860 # or program results in "error TOC overflow" add -mminimal-toc to
9861 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9862 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9863
9864 archive_cmds_CXX=''
9865 hardcode_direct_CXX=yes
9866 hardcode_libdir_separator_CXX=':'
9867 link_all_deplibs_CXX=yes
9868
9869 if test "$GXX" = yes; then
9870 case $host_os in aix4.012|aix4.012.*)
9871 # We only want to do this on AIX 4.2 and lower, the check
9872 # below for broken collect2 doesn't work under 4.3+
9873 collect2name=`${CC} -print-prog-name=collect2`
9874 if test -f "$collect2name" && \
9875 strings "$collect2name" | grep resolve_lib_name >/dev/null
9876 then
9877 # We have reworked collect2
9878 hardcode_direct_CXX=yes
9879 else
9880 # We have old collect2
9881 hardcode_direct_CXX=unsupported
9882 # It fails to find uninstalled libraries when the uninstalled
9883 # path is not listed in the libpath. Setting hardcode_minus_L
9884 # to unsupported forces relinking
9885 hardcode_minus_L_CXX=yes
9886 hardcode_libdir_flag_spec_CXX='-L$libdir'
9887 hardcode_libdir_separator_CXX=
9888 fi
9889 esac
9890 shared_flag='-shared'
9891 else
9892 # not using gcc
9893 if test "$host_cpu" = ia64; then
9894 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9895 # chokes on -Wl,-G. The following line is correct:
9896 shared_flag='-G'
9897 else
9898 if test "$aix_use_runtimelinking" = yes; then
9899 shared_flag='${wl}-G'
9900 else
9901 shared_flag='${wl}-bM:SRE'
9902 fi
9903 fi
9904 fi
9905
9906 # It seems that -bexpall does not export symbols beginning with
9907 # underscore (_), so it is better to generate a list of symbols to export.
9908 always_export_symbols_CXX=yes
9909 if test "$aix_use_runtimelinking" = yes; then
9910 # Warning - without using the other runtime loading flags (-brtl),
9911 # -berok will link without error, but may produce a broken library.
9912 allow_undefined_flag_CXX='-berok'
9913 # Determine the default libpath from the value encoded in an empty executable.
9914 cat >conftest.$ac_ext <<_ACEOF
9915/* confdefs.h. */
9916_ACEOF
9917cat confdefs.h >>conftest.$ac_ext
9918cat >>conftest.$ac_ext <<_ACEOF
9919/* end confdefs.h. */
9920
9921int
9922main ()
9923{
9924
9925 ;
9926 return 0;
9927}
9928_ACEOF
9929rm -f conftest.$ac_objext conftest$ac_exeext
9930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00009931 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009932 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00009933 grep -v '^ *+' conftest.er1 >conftest.err
9934 rm -f conftest.er1
9935 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00009938 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 (eval $ac_try) 2>&5
9941 ac_status=$?
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; } &&
9944 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946 (eval $ac_try) 2>&5
9947 ac_status=$?
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); }; }; then
9950
9951aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9952}'`
9953# Check for a 64-bit object if we didn't find anything.
9954if 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; }
9955}'`; fi
9956else
9957 echo "$as_me: failed program was:" >&5
9958sed 's/^/| /' conftest.$ac_ext >&5
9959
9960fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00009961rm -f conftest.err conftest.$ac_objext \
9962 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009963if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9964
9965 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9966
9967 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"
9968 else
9969 if test "$host_cpu" = ia64; then
9970 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9971 allow_undefined_flag_CXX="-z nodefs"
9972 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"
9973 else
9974 # Determine the default libpath from the value encoded in an empty executable.
9975 cat >conftest.$ac_ext <<_ACEOF
9976/* confdefs.h. */
9977_ACEOF
9978cat confdefs.h >>conftest.$ac_ext
9979cat >>conftest.$ac_ext <<_ACEOF
9980/* end confdefs.h. */
9981
9982int
9983main ()
9984{
9985
9986 ;
9987 return 0;
9988}
9989_ACEOF
9990rm -f conftest.$ac_objext conftest$ac_exeext
9991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00009992 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009993 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00009994 grep -v '^ *+' conftest.er1 >conftest.err
9995 rm -f conftest.er1
9996 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00009999 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 (eval $ac_try) 2>&5
10002 ac_status=$?
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; } &&
10005 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007 (eval $ac_try) 2>&5
10008 ac_status=$?
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; }; then
10011
10012aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10013}'`
10014# Check for a 64-bit object if we didn't find anything.
10015if 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; }
10016}'`; fi
10017else
10018 echo "$as_me: failed program was:" >&5
10019sed 's/^/| /' conftest.$ac_ext >&5
10020
10021fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000010022rm -f conftest.err conftest.$ac_objext \
10023 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010024if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10025
10026 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10027 # Warning - without using the other run time loading flags,
10028 # -berok will link without error, but may produce a broken library.
10029 no_undefined_flag_CXX=' ${wl}-bernotok'
10030 allow_undefined_flag_CXX=' ${wl}-berok'
10031 # -bexpall does not export symbols beginning with underscore (_)
10032 always_export_symbols_CXX=yes
10033 # Exported symbols can be pulled into shared objects from archives
10034 whole_archive_flag_spec_CXX=' '
10035 archive_cmds_need_lc_CXX=yes
10036 # This is similar to how AIX traditionally builds it's shared libraries.
10037 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'
10038 fi
10039 fi
10040 ;;
10041 chorus*)
10042 case $cc_basename in
10043 *)
10044 # FIXME: insert proper C++ library support
10045 ld_shlibs_CXX=no
10046 ;;
10047 esac
10048 ;;
10049
10050 cygwin* | mingw* | pw32*)
10051 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10052 # as there is no search path for DLLs.
10053 hardcode_libdir_flag_spec_CXX='-L$libdir'
10054 allow_undefined_flag_CXX=unsupported
10055 always_export_symbols_CXX=no
10056 enable_shared_with_static_runtimes_CXX=yes
10057
10058 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10059 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'
10060 # If the export-symbols file already is a .def file (1st line
10061 # is EXPORTS), use it as is; otherwise, prepend...
10062 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10063 cp $export_symbols $output_objdir/$soname.def;
10064 else
10065 echo EXPORTS > $output_objdir/$soname.def;
10066 cat $export_symbols >> $output_objdir/$soname.def;
10067 fi~
10068 $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'
10069 else
10070 ld_shlibs_CXX=no
10071 fi
10072 ;;
10073
10074 darwin* | rhapsody*)
10075 if test "$GXX" = yes; then
10076 archive_cmds_need_lc_CXX=no
10077 case "$host_os" in
10078 rhapsody* | darwin1.[012])
10079 allow_undefined_flag_CXX='-undefined suppress'
10080 ;;
10081 *) # Darwin 1.3 on
10082 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10083 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10084 else
10085 case ${MACOSX_DEPLOYMENT_TARGET} in
10086 10.[012])
10087 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10088 ;;
10089 10.*)
10090 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10091 ;;
10092 esac
10093 fi
10094 ;;
10095 esac
10096 lt_int_apple_cc_single_mod=no
10097 output_verbose_link_cmd='echo'
10098 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10099 lt_int_apple_cc_single_mod=yes
10100 fi
10101 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10102 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10103 else
10104 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'
10105 fi
10106 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10107
10108 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10109 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10110 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}'
10111 else
10112 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}'
10113 fi
10114 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}'
10115 hardcode_direct_CXX=no
10116 hardcode_automatic_CXX=yes
10117 hardcode_shlibpath_var_CXX=unsupported
10118 whole_archive_flag_spec_CXX='-all_load $convenience'
10119 link_all_deplibs_CXX=yes
10120 else
10121 ld_shlibs_CXX=no
10122 fi
10123 ;;
10124
10125 dgux*)
10126 case $cc_basename in
10127 ec++)
10128 # FIXME: insert proper C++ library support
10129 ld_shlibs_CXX=no
10130 ;;
10131 ghcx)
10132 # Green Hills C++ Compiler
10133 # FIXME: insert proper C++ library support
10134 ld_shlibs_CXX=no
10135 ;;
10136 *)
10137 # FIXME: insert proper C++ library support
10138 ld_shlibs_CXX=no
10139 ;;
10140 esac
10141 ;;
10142 freebsd12*)
10143 # C++ shared libraries reported to be fairly broken before switch to ELF
10144 ld_shlibs_CXX=no
10145 ;;
10146 freebsd-elf*)
10147 archive_cmds_need_lc_CXX=no
10148 ;;
10149 freebsd* | kfreebsd*-gnu)
10150 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10151 # conventions
10152 ld_shlibs_CXX=yes
10153 ;;
10154 gnu*)
10155 ;;
10156 hpux9*)
10157 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10158 hardcode_libdir_separator_CXX=:
10159 export_dynamic_flag_spec_CXX='${wl}-E'
10160 hardcode_direct_CXX=yes
10161 hardcode_minus_L_CXX=yes # Not in the search PATH,
10162 # but as the default
10163 # location of the library.
10164
10165 case $cc_basename in
10166 CC)
10167 # FIXME: insert proper C++ library support
10168 ld_shlibs_CXX=no
10169 ;;
10170 aCC)
10171 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'
10172 # Commands to make compiler produce verbose output that lists
10173 # what "hidden" libraries, object files and flags are used when
10174 # linking a shared library.
10175 #
10176 # There doesn't appear to be a way to prevent this compiler from
10177 # explicitly linking system object files so we need to strip them
10178 # from the output so that they don't get included in the library
10179 # dependencies.
hp.com!davidm2de17682004-04-20 16:53:44 +000010180 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 +000010181 ;;
10182 *)
10183 if test "$GXX" = yes; then
10184 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'
10185 else
10186 # FIXME: insert proper C++ library support
10187 ld_shlibs_CXX=no
10188 fi
10189 ;;
10190 esac
10191 ;;
10192 hpux10*|hpux11*)
10193 if test $with_gnu_ld = no; then
10194 case "$host_cpu" in
10195 hppa*64*)
10196 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10197 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10198 hardcode_libdir_separator_CXX=:
10199 ;;
10200 ia64*)
10201 hardcode_libdir_flag_spec_CXX='-L$libdir'
10202 ;;
10203 *)
10204 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10205 hardcode_libdir_separator_CXX=:
10206 export_dynamic_flag_spec_CXX='${wl}-E'
10207 ;;
10208 esac
10209 fi
10210 case "$host_cpu" in
10211 hppa*64*)
10212 hardcode_direct_CXX=no
10213 hardcode_shlibpath_var_CXX=no
10214 ;;
10215 ia64*)
10216 hardcode_direct_CXX=no
10217 hardcode_shlibpath_var_CXX=no
10218 hardcode_minus_L_CXX=yes # Not in the search PATH,
10219 # but as the default
10220 # location of the library.
10221 ;;
10222 *)
10223 hardcode_direct_CXX=yes
10224 hardcode_minus_L_CXX=yes # Not in the search PATH,
10225 # but as the default
10226 # location of the library.
10227 ;;
10228 esac
10229
10230 case $cc_basename in
10231 CC)
10232 # FIXME: insert proper C++ library support
10233 ld_shlibs_CXX=no
10234 ;;
10235 aCC)
10236 case "$host_cpu" in
10237 hppa*64*|ia64*)
10238 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10239 ;;
10240 *)
10241 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10242 ;;
10243 esac
10244 # Commands to make compiler produce verbose output that lists
10245 # what "hidden" libraries, object files and flags are used when
10246 # linking a shared library.
10247 #
10248 # There doesn't appear to be a way to prevent this compiler from
10249 # explicitly linking system object files so we need to strip them
10250 # from the output so that they don't get included in the library
10251 # dependencies.
10252 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'
10253 ;;
10254 *)
10255 if test "$GXX" = yes; then
10256 if test $with_gnu_ld = no; then
10257 case "$host_cpu" in
10258 ia64*|hppa*64*)
10259 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10260 ;;
10261 *)
10262 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'
10263 ;;
10264 esac
10265 fi
10266 else
10267 # FIXME: insert proper C++ library support
10268 ld_shlibs_CXX=no
10269 fi
10270 ;;
10271 esac
10272 ;;
10273 irix5* | irix6*)
10274 case $cc_basename in
10275 CC)
10276 # SGI C++
10277 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'
10278
10279 # Archives containing C++ object files must be created using
10280 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10281 # necessary to make sure instantiated templates are included
10282 # in the archive.
10283 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10284 ;;
10285 *)
10286 if test "$GXX" = yes; then
10287 if test "$with_gnu_ld" = no; then
10288 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'
10289 else
10290 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'
10291 fi
10292 fi
10293 link_all_deplibs_CXX=yes
10294 ;;
10295 esac
10296 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10297 hardcode_libdir_separator_CXX=:
10298 ;;
10299 linux*)
10300 case $cc_basename in
10301 KCC)
10302 # Kuck and Associates, Inc. (KAI) C++ Compiler
10303
10304 # KCC will only create a shared library if the output file
10305 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10306 # to its proper name (with version) after linking.
10307 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'
10308 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'
10309 # Commands to make compiler produce verbose output that lists
10310 # what "hidden" libraries, object files and flags are used when
10311 # linking a shared library.
10312 #
10313 # There doesn't appear to be a way to prevent this compiler from
10314 # explicitly linking system object files so we need to strip them
10315 # from the output so that they don't get included in the library
10316 # dependencies.
10317 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'
10318
10319 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10320 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10321
10322 # Archives containing C++ object files must be created using
10323 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10324 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10325 ;;
10326 icpc)
10327 # Intel C++
10328 with_gnu_ld=yes
10329 archive_cmds_need_lc_CXX=no
10330 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10331 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'
10332 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10333 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10334 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10335 ;;
10336 cxx)
10337 # Compaq C++
10338 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10339 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'
10340
10341 runpath_var=LD_RUN_PATH
10342 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10343 hardcode_libdir_separator_CXX=:
10344
10345 # Commands to make compiler produce verbose output that lists
10346 # what "hidden" libraries, object files and flags are used when
10347 # linking a shared library.
10348 #
10349 # There doesn't appear to be a way to prevent this compiler from
10350 # explicitly linking system object files so we need to strip them
10351 # from the output so that they don't get included in the library
10352 # dependencies.
10353 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'
10354 ;;
10355 esac
10356 ;;
10357 lynxos*)
10358 # FIXME: insert proper C++ library support
10359 ld_shlibs_CXX=no
10360 ;;
10361 m88k*)
10362 # FIXME: insert proper C++ library support
10363 ld_shlibs_CXX=no
10364 ;;
10365 mvs*)
10366 case $cc_basename in
10367 cxx)
10368 # FIXME: insert proper C++ library support
10369 ld_shlibs_CXX=no
10370 ;;
10371 *)
10372 # FIXME: insert proper C++ library support
10373 ld_shlibs_CXX=no
10374 ;;
10375 esac
10376 ;;
hp.com!davidm16230292004-07-15 17:39:59 +000010377 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010378 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10379 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10380 wlarc=
10381 hardcode_libdir_flag_spec_CXX='-R$libdir'
10382 hardcode_direct_CXX=yes
10383 hardcode_shlibpath_var_CXX=no
10384 fi
10385 # Workaround some broken pre-1.5 toolchains
10386 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10387 ;;
10388 osf3*)
10389 case $cc_basename in
10390 KCC)
10391 # Kuck and Associates, Inc. (KAI) C++ Compiler
10392
10393 # KCC will only create a shared library if the output file
10394 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10395 # to its proper name (with version) after linking.
10396 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'
10397
10398 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10399 hardcode_libdir_separator_CXX=:
10400
10401 # Archives containing C++ object files must be created using
10402 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10403 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10404
10405 ;;
10406 RCC)
10407 # Rational C++ 2.4.1
10408 # FIXME: insert proper C++ library support
10409 ld_shlibs_CXX=no
10410 ;;
10411 cxx)
10412 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10413 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'
10414
10415 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10416 hardcode_libdir_separator_CXX=:
10417
10418 # Commands to make compiler produce verbose output that lists
10419 # what "hidden" libraries, object files and flags are used when
10420 # linking a shared library.
10421 #
10422 # There doesn't appear to be a way to prevent this compiler from
10423 # explicitly linking system object files so we need to strip them
10424 # from the output so that they don't get included in the library
10425 # dependencies.
10426 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'
10427 ;;
10428 *)
10429 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10430 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10431 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'
10432
10433 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10434 hardcode_libdir_separator_CXX=:
10435
10436 # Commands to make compiler produce verbose output that lists
10437 # what "hidden" libraries, object files and flags are used when
10438 # linking a shared library.
10439 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10440
10441 else
10442 # FIXME: insert proper C++ library support
10443 ld_shlibs_CXX=no
10444 fi
10445 ;;
10446 esac
10447 ;;
10448 osf4* | osf5*)
10449 case $cc_basename in
10450 KCC)
10451 # Kuck and Associates, Inc. (KAI) C++ Compiler
10452
10453 # KCC will only create a shared library if the output file
10454 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10455 # to its proper name (with version) after linking.
10456 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'
10457
10458 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10459 hardcode_libdir_separator_CXX=:
10460
10461 # Archives containing C++ object files must be created using
10462 # the KAI C++ compiler.
10463 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10464 ;;
10465 RCC)
10466 # Rational C++ 2.4.1
10467 # FIXME: insert proper C++ library support
10468 ld_shlibs_CXX=no
10469 ;;
10470 cxx)
10471 allow_undefined_flag_CXX=' -expect_unresolved \*'
10472 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'
10473 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10474 echo "-hidden">> $lib.exp~
10475 $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~
10476 $rm $lib.exp'
10477
10478 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10479 hardcode_libdir_separator_CXX=:
10480
10481 # Commands to make compiler produce verbose output that lists
10482 # what "hidden" libraries, object files and flags are used when
10483 # linking a shared library.
10484 #
10485 # There doesn't appear to be a way to prevent this compiler from
10486 # explicitly linking system object files so we need to strip them
10487 # from the output so that they don't get included in the library
10488 # dependencies.
10489 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'
10490 ;;
10491 *)
10492 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10493 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10494 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'
10495
10496 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10497 hardcode_libdir_separator_CXX=:
10498
10499 # Commands to make compiler produce verbose output that lists
10500 # what "hidden" libraries, object files and flags are used when
10501 # linking a shared library.
10502 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10503
10504 else
10505 # FIXME: insert proper C++ library support
10506 ld_shlibs_CXX=no
10507 fi
10508 ;;
10509 esac
10510 ;;
10511 psos*)
10512 # FIXME: insert proper C++ library support
10513 ld_shlibs_CXX=no
10514 ;;
10515 sco*)
10516 archive_cmds_need_lc_CXX=no
10517 case $cc_basename in
10518 CC)
10519 # FIXME: insert proper C++ library support
10520 ld_shlibs_CXX=no
10521 ;;
10522 *)
10523 # FIXME: insert proper C++ library support
10524 ld_shlibs_CXX=no
10525 ;;
10526 esac
10527 ;;
10528 sunos4*)
10529 case $cc_basename in
10530 CC)
10531 # Sun C++ 4.x
10532 # FIXME: insert proper C++ library support
10533 ld_shlibs_CXX=no
10534 ;;
10535 lcc)
10536 # Lucid
10537 # FIXME: insert proper C++ library support
10538 ld_shlibs_CXX=no
10539 ;;
10540 *)
10541 # FIXME: insert proper C++ library support
10542 ld_shlibs_CXX=no
10543 ;;
10544 esac
10545 ;;
10546 solaris*)
10547 case $cc_basename in
10548 CC)
10549 # Sun C++ 4.2, 5.x and Centerline C++
10550 no_undefined_flag_CXX=' -zdefs'
10551 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10552 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10553 $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'
10554
10555 hardcode_libdir_flag_spec_CXX='-R$libdir'
10556 hardcode_shlibpath_var_CXX=no
10557 case $host_os in
10558 solaris2.0-5 | solaris2.0-5.*) ;;
10559 *)
10560 # The C++ compiler is used as linker so we must use $wl
10561 # flag to pass the commands to the underlying system
10562 # linker.
10563 # Supported since Solaris 2.6 (maybe 2.5.1?)
10564 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10565 ;;
10566 esac
10567 link_all_deplibs_CXX=yes
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 #
10573 # There doesn't appear to be a way to prevent this compiler from
10574 # explicitly linking system object files so we need to strip them
10575 # from the output so that they don't get included in the library
10576 # dependencies.
10577 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'
10578
10579 # Archives containing C++ object files must be created using
10580 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10581 # necessary to make sure instantiated templates are included
10582 # in the archive.
10583 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10584 ;;
10585 gcx)
10586 # Green Hills C++ Compiler
10587 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10588
10589 # The C++ compiler must be used to create the archive.
10590 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10591 ;;
10592 *)
10593 # GNU C++ compiler with Solaris linker
10594 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10595 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10596 if $CC --version | grep -v '^2\.7' > /dev/null; then
10597 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10598 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10599 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10600
10601 # Commands to make compiler produce verbose output that lists
10602 # what "hidden" libraries, object files and flags are used when
10603 # linking a shared library.
10604 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10605 else
10606 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10607 # platform.
10608 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10609 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10610 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10611
10612 # Commands to make compiler produce verbose output that lists
10613 # what "hidden" libraries, object files and flags are used when
10614 # linking a shared library.
10615 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10616 fi
10617
10618 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10619 fi
10620 ;;
10621 esac
10622 ;;
10623 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10624 archive_cmds_need_lc_CXX=no
10625 ;;
10626 tandem*)
10627 case $cc_basename in
10628 NCC)
10629 # NonStop-UX NCC 3.20
10630 # FIXME: insert proper C++ library support
10631 ld_shlibs_CXX=no
10632 ;;
10633 *)
10634 # FIXME: insert proper C++ library support
10635 ld_shlibs_CXX=no
10636 ;;
10637 esac
10638 ;;
10639 vxworks*)
10640 # FIXME: insert proper C++ library support
10641 ld_shlibs_CXX=no
10642 ;;
10643 *)
10644 # FIXME: insert proper C++ library support
10645 ld_shlibs_CXX=no
10646 ;;
10647esac
10648echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10649echo "${ECHO_T}$ld_shlibs_CXX" >&6
10650test "$ld_shlibs_CXX" = no && can_build_shared=no
10651
10652GCC_CXX="$GXX"
10653LD_CXX="$LD"
10654
10655
10656cat > conftest.$ac_ext <<EOF
10657class Foo
10658{
10659public:
10660 Foo (void) { a = 0; }
10661private:
10662 int a;
10663};
10664EOF
10665
10666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10667 (eval $ac_compile) 2>&5
10668 ac_status=$?
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; then
10671 # Parse the compiler output and extract the necessary
10672 # objects, libraries and library flags.
10673
10674 # Sentinel used to keep track of whether or not we are before
10675 # the conftest object file.
10676 pre_test_object_deps_done=no
10677
10678 # The `*' in the case matches for architectures that use `case' in
10679 # $output_verbose_cmd can trigger glob expansion during the loop
10680 # eval without this substitution.
10681 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10682
10683 for p in `eval $output_verbose_link_cmd`; do
10684 case $p in
10685
10686 -L* | -R* | -l*)
10687 # Some compilers place space between "-{L,R}" and the path.
10688 # Remove the space.
10689 if test $p = "-L" \
10690 || test $p = "-R"; then
10691 prev=$p
10692 continue
10693 else
10694 prev=
10695 fi
10696
10697 if test "$pre_test_object_deps_done" = no; then
10698 case $p in
10699 -L* | -R*)
10700 # Internal compiler library paths should come after those
10701 # provided the user. The postdeps already come after the
10702 # user supplied libs so there is no need to process them.
10703 if test -z "$compiler_lib_search_path_CXX"; then
10704 compiler_lib_search_path_CXX="${prev}${p}"
10705 else
10706 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10707 fi
10708 ;;
10709 # The "-l" case would never come before the object being
10710 # linked, so don't bother handling this case.
10711 esac
10712 else
10713 if test -z "$postdeps_CXX"; then
10714 postdeps_CXX="${prev}${p}"
10715 else
10716 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10717 fi
10718 fi
10719 ;;
10720
10721 *.$objext)
10722 # This assumes that the test object file only shows up
10723 # once in the compiler output.
10724 if test "$p" = "conftest.$objext"; then
10725 pre_test_object_deps_done=yes
10726 continue
10727 fi
10728
10729 if test "$pre_test_object_deps_done" = no; then
10730 if test -z "$predep_objects_CXX"; then
10731 predep_objects_CXX="$p"
10732 else
10733 predep_objects_CXX="$predep_objects_CXX $p"
10734 fi
10735 else
10736 if test -z "$postdep_objects_CXX"; then
10737 postdep_objects_CXX="$p"
10738 else
10739 postdep_objects_CXX="$postdep_objects_CXX $p"
10740 fi
10741 fi
10742 ;;
10743
10744 *) ;; # Ignore the rest.
10745
10746 esac
10747 done
10748
10749 # Clean up.
10750 rm -f a.out a.exe
10751else
10752 echo "libtool.m4: error: problem compiling CXX test program"
10753fi
10754
10755$rm -f confest.$objext
10756
10757case " $postdeps_CXX " in
10758*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10759esac
10760
10761lt_prog_compiler_wl_CXX=
10762lt_prog_compiler_pic_CXX=
10763lt_prog_compiler_static_CXX=
10764
10765echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10766echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10767
10768 # C++ specific cases for pic, static, wl, etc.
10769 if test "$GXX" = yes; then
10770 lt_prog_compiler_wl_CXX='-Wl,'
10771 lt_prog_compiler_static_CXX='-static'
10772
10773 case $host_os in
10774 aix*)
10775 # All AIX code is PIC.
10776 if test "$host_cpu" = ia64; then
10777 # AIX 5 now supports IA64 processor
10778 lt_prog_compiler_static_CXX='-Bstatic'
10779 fi
10780 ;;
10781 amigaos*)
10782 # FIXME: we need at least 68020 code to build shared libraries, but
10783 # adding the `-m68020' flag to GCC prevents building anything better,
10784 # like `-m68040'.
10785 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10786 ;;
10787 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10788 # PIC is the default for these OSes.
10789 ;;
10790 mingw* | os2* | pw32*)
10791 # This hack is so that the source file can tell whether it is being
10792 # built for inclusion in a dll (and should export symbols for example).
10793 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10794 ;;
10795 darwin* | rhapsody*)
10796 # PIC is the default on this platform
10797 # Common symbols not allowed in MH_DYLIB files
10798 lt_prog_compiler_pic_CXX='-fno-common'
10799 ;;
10800 *djgpp*)
10801 # DJGPP does not support shared libraries at all
10802 lt_prog_compiler_pic_CXX=
10803 ;;
10804 sysv4*MP*)
10805 if test -d /usr/nec; then
10806 lt_prog_compiler_pic_CXX=-Kconform_pic
10807 fi
10808 ;;
10809 hpux*)
10810 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10811 # not for PA HP-UX.
10812 case "$host_cpu" in
10813 hppa*64*|ia64*)
10814 ;;
10815 *)
10816 lt_prog_compiler_pic_CXX='-fPIC'
10817 ;;
10818 esac
10819 ;;
10820 *)
10821 lt_prog_compiler_pic_CXX='-fPIC'
10822 ;;
10823 esac
10824 else
10825 case $host_os in
10826 aix4* | aix5*)
10827 # All AIX code is PIC.
10828 if test "$host_cpu" = ia64; then
10829 # AIX 5 now supports IA64 processor
10830 lt_prog_compiler_static_CXX='-Bstatic'
10831 else
10832 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10833 fi
10834 ;;
10835 chorus*)
10836 case $cc_basename in
10837 cxch68)
10838 # Green Hills C++ Compiler
10839 # _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"
10840 ;;
10841 esac
10842 ;;
10843 dgux*)
10844 case $cc_basename in
10845 ec++)
10846 lt_prog_compiler_pic_CXX='-KPIC'
10847 ;;
10848 ghcx)
10849 # Green Hills C++ Compiler
10850 lt_prog_compiler_pic_CXX='-pic'
10851 ;;
10852 *)
10853 ;;
10854 esac
10855 ;;
10856 freebsd* | kfreebsd*-gnu)
10857 # FreeBSD uses GNU C++
10858 ;;
10859 hpux9* | hpux10* | hpux11*)
10860 case $cc_basename in
10861 CC)
10862 lt_prog_compiler_wl_CXX='-Wl,'
10863 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10864 if test "$host_cpu" != ia64; then
10865 lt_prog_compiler_pic_CXX='+Z'
10866 fi
10867 ;;
10868 aCC)
10869 lt_prog_compiler_wl_CXX='-Wl,'
10870 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10871 case "$host_cpu" in
10872 hppa*64*|ia64*)
10873 # +Z the default
10874 ;;
10875 *)
10876 lt_prog_compiler_pic_CXX='+Z'
10877 ;;
10878 esac
10879 ;;
10880 *)
10881 ;;
10882 esac
10883 ;;
10884 irix5* | irix6* | nonstopux*)
10885 case $cc_basename in
10886 CC)
10887 lt_prog_compiler_wl_CXX='-Wl,'
10888 lt_prog_compiler_static_CXX='-non_shared'
10889 # CC pic flag -KPIC is the default.
10890 ;;
10891 *)
10892 ;;
10893 esac
10894 ;;
10895 linux*)
10896 case $cc_basename in
10897 KCC)
10898 # KAI C++ Compiler
10899 lt_prog_compiler_wl_CXX='--backend -Wl,'
10900 lt_prog_compiler_pic_CXX='-fPIC'
10901 ;;
10902 icpc)
10903 # Intel C++
10904 lt_prog_compiler_wl_CXX='-Wl,'
10905 lt_prog_compiler_pic_CXX='-KPIC'
10906 lt_prog_compiler_static_CXX='-static'
10907 ;;
10908 cxx)
10909 # Compaq C++
10910 # Make sure the PIC flag is empty. It appears that all Alpha
10911 # Linux and Compaq Tru64 Unix objects are PIC.
10912 lt_prog_compiler_pic_CXX=
10913 lt_prog_compiler_static_CXX='-non_shared'
10914 ;;
10915 *)
10916 ;;
10917 esac
10918 ;;
10919 lynxos*)
10920 ;;
10921 m88k*)
10922 ;;
10923 mvs*)
10924 case $cc_basename in
10925 cxx)
10926 lt_prog_compiler_pic_CXX='-W c,exportall'
10927 ;;
10928 *)
10929 ;;
10930 esac
10931 ;;
hp.com!davidm16230292004-07-15 17:39:59 +000010932 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010933 ;;
10934 osf3* | osf4* | osf5*)
10935 case $cc_basename in
10936 KCC)
10937 lt_prog_compiler_wl_CXX='--backend -Wl,'
10938 ;;
10939 RCC)
10940 # Rational C++ 2.4.1
10941 lt_prog_compiler_pic_CXX='-pic'
10942 ;;
10943 cxx)
10944 # Digital/Compaq C++
10945 lt_prog_compiler_wl_CXX='-Wl,'
10946 # Make sure the PIC flag is empty. It appears that all Alpha
10947 # Linux and Compaq Tru64 Unix objects are PIC.
10948 lt_prog_compiler_pic_CXX=
10949 lt_prog_compiler_static_CXX='-non_shared'
10950 ;;
10951 *)
10952 ;;
10953 esac
10954 ;;
10955 psos*)
10956 ;;
10957 sco*)
10958 case $cc_basename in
10959 CC)
10960 lt_prog_compiler_pic_CXX='-fPIC'
10961 ;;
10962 *)
10963 ;;
10964 esac
10965 ;;
10966 solaris*)
10967 case $cc_basename in
10968 CC)
10969 # Sun C++ 4.2, 5.x and Centerline C++
10970 lt_prog_compiler_pic_CXX='-KPIC'
10971 lt_prog_compiler_static_CXX='-Bstatic'
10972 lt_prog_compiler_wl_CXX='-Qoption ld '
10973 ;;
10974 gcx)
10975 # Green Hills C++ Compiler
10976 lt_prog_compiler_pic_CXX='-PIC'
10977 ;;
10978 *)
10979 ;;
10980 esac
10981 ;;
10982 sunos4*)
10983 case $cc_basename in
10984 CC)
10985 # Sun C++ 4.x
10986 lt_prog_compiler_pic_CXX='-pic'
10987 lt_prog_compiler_static_CXX='-Bstatic'
10988 ;;
10989 lcc)
10990 # Lucid
10991 lt_prog_compiler_pic_CXX='-pic'
10992 ;;
10993 *)
10994 ;;
10995 esac
10996 ;;
10997 tandem*)
10998 case $cc_basename in
10999 NCC)
11000 # NonStop-UX NCC 3.20
11001 lt_prog_compiler_pic_CXX='-KPIC'
11002 ;;
11003 *)
11004 ;;
11005 esac
11006 ;;
11007 unixware*)
11008 ;;
11009 vxworks*)
11010 ;;
11011 *)
11012 lt_prog_compiler_can_build_shared_CXX=no
11013 ;;
11014 esac
11015 fi
11016
11017echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11018echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11019
11020#
11021# Check to make sure the PIC flag actually works.
11022#
11023if test -n "$lt_prog_compiler_pic_CXX"; then
11024
11025echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11026echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11027if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11029else
11030 lt_prog_compiler_pic_works_CXX=no
11031 ac_outfile=conftest.$ac_objext
11032 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11033 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11034 # Insert the option either (1) after the last *FLAGS variable, or
11035 # (2) before a word containing "conftest.", or (3) at the end.
11036 # Note that $ac_compile itself does not contain backslashes and begins
11037 # with a dollar sign (not a hyphen), so the echo should work correctly.
11038 # The option is referenced via a variable to avoid confusing sed.
11039 lt_compile=`echo "$ac_compile" | $SED \
11040 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11041 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11042 -e 's:$: $lt_compiler_flag:'`
hp.com!davidm16230292004-07-15 17:39:59 +000011043 (eval echo "\"\$as_me:11043: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011044 (eval "$lt_compile" 2>conftest.err)
11045 ac_status=$?
11046 cat conftest.err >&5
hp.com!davidm16230292004-07-15 17:39:59 +000011047 echo "$as_me:11047: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011048 if (exit $ac_status) && test -s "$ac_outfile"; then
11049 # The compiler can only warn and ignore the option if not recognized
11050 # So say no if there are warnings
11051 if test ! -s conftest.err; then
11052 lt_prog_compiler_pic_works_CXX=yes
11053 fi
11054 fi
11055 $rm conftest*
11056
11057fi
11058echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11059echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11060
11061if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11062 case $lt_prog_compiler_pic_CXX in
11063 "" | " "*) ;;
11064 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11065 esac
11066else
11067 lt_prog_compiler_pic_CXX=
11068 lt_prog_compiler_can_build_shared_CXX=no
11069fi
11070
11071fi
11072case "$host_os" in
11073 # For platforms which do not support PIC, -DPIC is meaningless:
11074 *djgpp*)
11075 lt_prog_compiler_pic_CXX=
11076 ;;
11077 *)
11078 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11079 ;;
11080esac
11081
11082echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11083echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11084if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11086else
11087 lt_cv_prog_compiler_c_o_CXX=no
11088 $rm -r conftest 2>/dev/null
11089 mkdir conftest
11090 cd conftest
11091 mkdir out
11092 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11093
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011094 lt_compiler_flag="-o out/conftest2.$ac_objext"
11095 # Insert the option either (1) after the last *FLAGS variable, or
11096 # (2) before a word containing "conftest.", or (3) at the end.
11097 # Note that $ac_compile itself does not contain backslashes and begins
11098 # with a dollar sign (not a hyphen), so the echo should work correctly.
11099 lt_compile=`echo "$ac_compile" | $SED \
11100 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11102 -e 's:$: $lt_compiler_flag:'`
hp.com!davidm16230292004-07-15 17:39:59 +000011103 (eval echo "\"\$as_me:11103: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011104 (eval "$lt_compile" 2>out/conftest.err)
11105 ac_status=$?
11106 cat out/conftest.err >&5
hp.com!davidm16230292004-07-15 17:39:59 +000011107 echo "$as_me:11107: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011108 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11109 then
11110 # The compiler can only warn and ignore the option if not recognized
11111 # So say no if there are warnings
11112 if test ! -s out/conftest.err; then
11113 lt_cv_prog_compiler_c_o_CXX=yes
11114 fi
11115 fi
11116 chmod u+w .
11117 $rm conftest*
11118 # SGI C++ compiler will create directory out/ii_files/ for
11119 # template instantiation
11120 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11121 $rm out/* && rmdir out
11122 cd ..
11123 rmdir conftest
11124 $rm conftest*
11125
11126fi
11127echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11128echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11129
11130
11131hard_links="nottested"
11132if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11133 # do not overwrite the value of need_locks provided by the user
11134 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11135echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11136 hard_links=yes
11137 $rm conftest*
11138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11139 touch conftest.a
11140 ln conftest.a conftest.b 2>&5 || hard_links=no
11141 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11142 echo "$as_me:$LINENO: result: $hard_links" >&5
11143echo "${ECHO_T}$hard_links" >&6
11144 if test "$hard_links" = no; then
11145 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11146echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11147 need_locks=warn
11148 fi
11149else
11150 need_locks=no
11151fi
11152
11153echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11154echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11155
11156 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11157 case $host_os in
11158 aix4* | aix5*)
11159 # If we're using GNU nm, then we don't want the "-C" option.
11160 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11161 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11162 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'
11163 else
11164 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'
11165 fi
11166 ;;
11167 pw32*)
11168 export_symbols_cmds_CXX="$ltdll_cmds"
11169 ;;
11170 cygwin* | mingw*)
11171 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11172 ;;
hp.com!davidm2de17682004-04-20 16:53:44 +000011173 linux*)
11174 link_all_deplibs_CXX=no
11175 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011176 *)
11177 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11178 ;;
11179 esac
11180
11181echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11182echo "${ECHO_T}$ld_shlibs_CXX" >&6
11183test "$ld_shlibs_CXX" = no && can_build_shared=no
11184
11185variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11186if test "$GCC" = yes; then
11187 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11188fi
11189
11190#
11191# Do we need to explicitly link libc?
11192#
11193case "x$archive_cmds_need_lc_CXX" in
11194x|xyes)
11195 # Assume -lc should be added
11196 archive_cmds_need_lc_CXX=yes
11197
11198 if test "$enable_shared" = yes && test "$GCC" = yes; then
11199 case $archive_cmds_CXX in
11200 *'~'*)
11201 # FIXME: we may have to deal with multi-command sequences.
11202 ;;
11203 '$CC '*)
11204 # Test whether the compiler implicitly links with -lc since on some
11205 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11206 # to ld, don't add -lc before -lgcc.
11207 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11208echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11209 $rm conftest*
11210 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11211
11212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11213 (eval $ac_compile) 2>&5
11214 ac_status=$?
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } 2>conftest.err; then
11217 soname=conftest
11218 lib=conftest
11219 libobjs=conftest.$ac_objext
11220 deplibs=
11221 wl=$lt_prog_compiler_wl_CXX
11222 compiler_flags=-v
11223 linker_flags=-v
11224 verstring=
11225 output_objdir=.
11226 libname=conftest
11227 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11228 allow_undefined_flag_CXX=
11229 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11230 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11231 ac_status=$?
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }
11234 then
11235 archive_cmds_need_lc_CXX=no
11236 else
11237 archive_cmds_need_lc_CXX=yes
11238 fi
11239 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11240 else
11241 cat conftest.err 1>&5
11242 fi
11243 $rm conftest*
11244 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11245echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11246 ;;
11247 esac
11248 fi
11249 ;;
11250esac
11251
11252echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11253echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11254library_names_spec=
11255libname_spec='lib$name'
11256soname_spec=
hp.com!davidm2de17682004-04-20 16:53:44 +000011257shrext_cmds=".so"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011258postinstall_cmds=
11259postuninstall_cmds=
11260finish_cmds=
11261finish_eval=
11262shlibpath_var=
11263shlibpath_overrides_runpath=unknown
11264version_type=none
11265dynamic_linker="$host_os ld.so"
11266sys_lib_dlsearch_path_spec="/lib /usr/lib"
11267if test "$GCC" = yes; then
11268 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11269 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11270 # if the path contains ";" then we assume it to be the separator
11271 # otherwise default to the standard path separator (i.e. ":") - it is
11272 # assumed that no part of a normal pathname contains ";" but that should
11273 # okay in the real world where ";" in dirpaths is itself problematic.
11274 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11275 else
11276 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11277 fi
11278else
11279 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11280fi
11281need_lib_prefix=unknown
11282hardcode_into_libs=no
11283
11284# when you set need_version to no, make sure it does not cause -set_version
11285# flags to be left without arguments
11286need_version=unknown
11287
11288case $host_os in
11289aix3*)
11290 version_type=linux
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11292 shlibpath_var=LIBPATH
11293
11294 # AIX 3 has no versioning support, so we append a major version to the name.
11295 soname_spec='${libname}${release}${shared_ext}$major'
11296 ;;
11297
11298aix4* | aix5*)
11299 version_type=linux
11300 need_lib_prefix=no
11301 need_version=no
11302 hardcode_into_libs=yes
11303 if test "$host_cpu" = ia64; then
11304 # AIX 5 supports IA64
11305 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11306 shlibpath_var=LD_LIBRARY_PATH
11307 else
11308 # With GCC up to 2.95.x, collect2 would create an import file
11309 # for dependence libraries. The import file would start with
11310 # the line `#! .'. This would cause the generated library to
11311 # depend on `.', always an invalid library. This was fixed in
11312 # development snapshots of GCC prior to 3.0.
11313 case $host_os in
11314 aix4 | aix4.[01] | aix4.[01].*)
11315 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11316 echo ' yes '
11317 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11318 :
11319 else
11320 can_build_shared=no
11321 fi
11322 ;;
11323 esac
11324 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11325 # soname into executable. Probably we can add versioning support to
11326 # collect2, so additional links can be useful in future.
11327 if test "$aix_use_runtimelinking" = yes; then
11328 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11329 # instead of lib<name>.a to let people know that these are not
11330 # typical AIX shared libraries.
11331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11332 else
11333 # We preserve .a as extension for shared libraries through AIX4.2
11334 # and later when we are not doing run time linking.
11335 library_names_spec='${libname}${release}.a $libname.a'
11336 soname_spec='${libname}${release}${shared_ext}$major'
11337 fi
11338 shlibpath_var=LIBPATH
11339 fi
11340 ;;
11341
11342amigaos*)
11343 library_names_spec='$libname.ixlibrary $libname.a'
11344 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11345 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'
11346 ;;
11347
11348beos*)
11349 library_names_spec='${libname}${shared_ext}'
11350 dynamic_linker="$host_os ld.so"
11351 shlibpath_var=LIBRARY_PATH
11352 ;;
11353
11354bsdi4*)
11355 version_type=linux
11356 need_version=no
11357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11358 soname_spec='${libname}${release}${shared_ext}$major'
11359 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11360 shlibpath_var=LD_LIBRARY_PATH
11361 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11362 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11363 # the default ld.so.conf also contains /usr/contrib/lib and
11364 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11365 # libtool to hard-code these into programs
11366 ;;
11367
11368cygwin* | mingw* | pw32*)
11369 version_type=windows
hp.com!davidm2de17682004-04-20 16:53:44 +000011370 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011371 need_version=no
11372 need_lib_prefix=no
11373
11374 case $GCC,$host_os in
11375 yes,cygwin* | yes,mingw* | yes,pw32*)
11376 library_names_spec='$libname.dll.a'
11377 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11378 postinstall_cmds='base_file=`basename \${file}`~
11379 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11380 dldir=$destdir/`dirname \$dlpath`~
11381 test -d \$dldir || mkdir -p \$dldir~
11382 $install_prog $dir/$dlname \$dldir/$dlname'
11383 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11384 dlpath=$dir/\$dldll~
11385 $rm \$dlpath'
11386 shlibpath_overrides_runpath=yes
11387
11388 case $host_os in
11389 cygwin*)
11390 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11391 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11392 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11393 ;;
11394 mingw*)
11395 # MinGW DLLs use traditional 'lib' prefix
11396 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11397 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11398 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11399 # It is most probably a Windows format PATH printed by
11400 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11401 # path with ; separators, and with drive letters. We can handle the
11402 # drive letters (cygwin fileutils understands them), so leave them,
11403 # especially as we might pass files found there to a mingw objdump,
11404 # which wouldn't understand a cygwinified path. Ahh.
11405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11406 else
11407 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11408 fi
11409 ;;
11410 pw32*)
11411 # pw32 DLLs use 'pw' prefix rather than 'lib'
11412 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11413 ;;
11414 esac
11415 ;;
11416
11417 *)
11418 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11419 ;;
11420 esac
11421 dynamic_linker='Win32 ld.exe'
11422 # FIXME: first we should search . and the directory the executable is in
11423 shlibpath_var=PATH
11424 ;;
11425
11426darwin* | rhapsody*)
11427 dynamic_linker="$host_os dyld"
11428 version_type=darwin
11429 need_lib_prefix=no
11430 need_version=no
11431 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11432 soname_spec='${libname}${release}${major}$shared_ext'
11433 shlibpath_overrides_runpath=yes
11434 shlibpath_var=DYLD_LIBRARY_PATH
hp.com!davidm2de17682004-04-20 16:53:44 +000011435 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011436 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11437 if test "$GCC" = yes; then
11438 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"`
11439 else
11440 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11441 fi
11442 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11443 ;;
11444
11445dgux*)
11446 version_type=linux
11447 need_lib_prefix=no
11448 need_version=no
11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11450 soname_spec='${libname}${release}${shared_ext}$major'
11451 shlibpath_var=LD_LIBRARY_PATH
11452 ;;
11453
11454freebsd1*)
11455 dynamic_linker=no
11456 ;;
11457
11458kfreebsd*-gnu)
11459 version_type=linux
11460 need_lib_prefix=no
11461 need_version=no
11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11463 soname_spec='${libname}${release}${shared_ext}$major'
11464 shlibpath_var=LD_LIBRARY_PATH
11465 shlibpath_overrides_runpath=no
11466 hardcode_into_libs=yes
11467 dynamic_linker='GNU ld.so'
11468 ;;
11469
11470freebsd*)
11471 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11472 version_type=freebsd-$objformat
11473 case $version_type in
11474 freebsd-elf*)
11475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11476 need_version=no
11477 need_lib_prefix=no
11478 ;;
11479 freebsd-*)
11480 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11481 need_version=yes
11482 ;;
11483 esac
11484 shlibpath_var=LD_LIBRARY_PATH
11485 case $host_os in
11486 freebsd2*)
11487 shlibpath_overrides_runpath=yes
11488 ;;
11489 freebsd3.01* | freebsdelf3.01*)
11490 shlibpath_overrides_runpath=yes
11491 hardcode_into_libs=yes
11492 ;;
11493 *) # from 3.2 on
11494 shlibpath_overrides_runpath=no
11495 hardcode_into_libs=yes
11496 ;;
11497 esac
11498 ;;
11499
11500gnu*)
11501 version_type=linux
11502 need_lib_prefix=no
11503 need_version=no
11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11505 soname_spec='${libname}${release}${shared_ext}$major'
11506 shlibpath_var=LD_LIBRARY_PATH
11507 hardcode_into_libs=yes
11508 ;;
11509
11510hpux9* | hpux10* | hpux11*)
11511 # Give a soname corresponding to the major version so that dld.sl refuses to
11512 # link against other versions.
11513 version_type=sunos
11514 need_lib_prefix=no
11515 need_version=no
11516 case "$host_cpu" in
11517 ia64*)
hp.com!davidm2de17682004-04-20 16:53:44 +000011518 shrext_cmds='.so'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011519 hardcode_into_libs=yes
11520 dynamic_linker="$host_os dld.so"
11521 shlibpath_var=LD_LIBRARY_PATH
11522 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524 soname_spec='${libname}${release}${shared_ext}$major'
11525 if test "X$HPUX_IA64_MODE" = X32; then
11526 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11527 else
11528 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11529 fi
11530 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11531 ;;
11532 hppa*64*)
hp.com!davidm2de17682004-04-20 16:53:44 +000011533 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011534 hardcode_into_libs=yes
11535 dynamic_linker="$host_os dld.sl"
11536 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11537 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539 soname_spec='${libname}${release}${shared_ext}$major'
11540 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11541 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11542 ;;
11543 *)
hp.com!davidm2de17682004-04-20 16:53:44 +000011544 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011545 dynamic_linker="$host_os dld.sl"
11546 shlibpath_var=SHLIB_PATH
11547 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11549 soname_spec='${libname}${release}${shared_ext}$major'
11550 ;;
11551 esac
11552 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11553 postinstall_cmds='chmod 555 $lib'
11554 ;;
11555
11556irix5* | irix6* | nonstopux*)
11557 case $host_os in
11558 nonstopux*) version_type=nonstopux ;;
11559 *)
11560 if test "$lt_cv_prog_gnu_ld" = yes; then
11561 version_type=linux
11562 else
11563 version_type=irix
11564 fi ;;
11565 esac
11566 need_lib_prefix=no
11567 need_version=no
11568 soname_spec='${libname}${release}${shared_ext}$major'
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11570 case $host_os in
11571 irix5* | nonstopux*)
11572 libsuff= shlibsuff=
11573 ;;
11574 *)
11575 case $LD in # libtool.m4 will add one of these switches to LD
11576 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11577 libsuff= shlibsuff= libmagic=32-bit;;
11578 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11579 libsuff=32 shlibsuff=N32 libmagic=N32;;
11580 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11581 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11582 *) libsuff= shlibsuff= libmagic=never-match;;
11583 esac
11584 ;;
11585 esac
11586 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11587 shlibpath_overrides_runpath=no
11588 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11589 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11590 hardcode_into_libs=yes
11591 ;;
11592
11593# No shared lib support for Linux oldld, aout, or coff.
11594linux*oldld* | linux*aout* | linux*coff*)
11595 dynamic_linker=no
11596 ;;
11597
11598# This must be Linux ELF.
11599linux*)
11600 version_type=linux
11601 need_lib_prefix=no
11602 need_version=no
11603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11604 soname_spec='${libname}${release}${shared_ext}$major'
11605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11606 shlibpath_var=LD_LIBRARY_PATH
11607 shlibpath_overrides_runpath=no
11608 # This implies no fast_install, which is unacceptable.
11609 # Some rework will be needed to allow for fast_install
11610 # before this can be enabled.
11611 hardcode_into_libs=yes
11612
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011613 # Append ld.so.conf contents to the search path
11614 if test -f /etc/ld.so.conf; then
hp.com!davidm2de17682004-04-20 16:53:44 +000011615 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11616 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011617 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011618
11619 # We used to test for /lib/ld.so.1 and disable shared libraries on
11620 # powerpc, because MkLinux only supported shared libraries with the
11621 # GNU dynamic linker. Since this was broken with cross compilers,
11622 # most powerpc-linux boxes support dynamic linking these days and
11623 # people can always --disable-shared, the test was removed, and we
11624 # assume the GNU/Linux dynamic linker is in use.
11625 dynamic_linker='GNU/Linux ld.so'
11626 ;;
11627
hp.com!davidm16230292004-07-15 17:39:59 +000011628netbsdelf*-gnu)
11629 version_type=linux
11630 need_lib_prefix=no
11631 need_version=no
11632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11633 soname_spec='${libname}${release}${shared_ext}$major'
11634 shlibpath_var=LD_LIBRARY_PATH
11635 shlibpath_overrides_runpath=no
11636 hardcode_into_libs=yes
11637 dynamic_linker='NetBSD ld.elf_so'
11638 ;;
11639
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011640knetbsd*-gnu)
11641 version_type=linux
11642 need_lib_prefix=no
11643 need_version=no
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11645 soname_spec='${libname}${release}${shared_ext}$major'
11646 shlibpath_var=LD_LIBRARY_PATH
11647 shlibpath_overrides_runpath=no
11648 hardcode_into_libs=yes
11649 dynamic_linker='GNU ld.so'
11650 ;;
11651
11652netbsd*)
11653 version_type=sunos
11654 need_lib_prefix=no
11655 need_version=no
11656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11659 dynamic_linker='NetBSD (a.out) ld.so'
11660 else
hp.com!davidm2de17682004-04-20 16:53:44 +000011661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011662 soname_spec='${libname}${release}${shared_ext}$major'
11663 dynamic_linker='NetBSD ld.elf_so'
11664 fi
11665 shlibpath_var=LD_LIBRARY_PATH
11666 shlibpath_overrides_runpath=yes
11667 hardcode_into_libs=yes
11668 ;;
11669
11670newsos6)
11671 version_type=linux
11672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11673 shlibpath_var=LD_LIBRARY_PATH
11674 shlibpath_overrides_runpath=yes
11675 ;;
11676
11677nto-qnx*)
11678 version_type=linux
11679 need_lib_prefix=no
11680 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
11684 shlibpath_overrides_runpath=yes
11685 ;;
11686
11687openbsd*)
11688 version_type=sunos
11689 need_lib_prefix=no
11690 need_version=yes
11691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11693 shlibpath_var=LD_LIBRARY_PATH
11694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11695 case $host_os in
11696 openbsd2.[89] | openbsd2.[89].*)
11697 shlibpath_overrides_runpath=no
11698 ;;
11699 *)
11700 shlibpath_overrides_runpath=yes
11701 ;;
11702 esac
11703 else
11704 shlibpath_overrides_runpath=yes
11705 fi
11706 ;;
11707
11708os2*)
11709 libname_spec='$name'
hp.com!davidm2de17682004-04-20 16:53:44 +000011710 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011711 need_lib_prefix=no
11712 library_names_spec='$libname${shared_ext} $libname.a'
11713 dynamic_linker='OS/2 ld.exe'
11714 shlibpath_var=LIBPATH
11715 ;;
11716
11717osf3* | osf4* | osf5*)
11718 version_type=osf
11719 need_lib_prefix=no
11720 need_version=no
11721 soname_spec='${libname}${release}${shared_ext}$major'
11722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11723 shlibpath_var=LD_LIBRARY_PATH
11724 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11725 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11726 ;;
11727
11728sco3.2v5*)
11729 version_type=osf
11730 soname_spec='${libname}${release}${shared_ext}$major'
11731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11732 shlibpath_var=LD_LIBRARY_PATH
11733 ;;
11734
11735solaris*)
11736 version_type=linux
11737 need_lib_prefix=no
11738 need_version=no
11739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11740 soname_spec='${libname}${release}${shared_ext}$major'
11741 shlibpath_var=LD_LIBRARY_PATH
11742 shlibpath_overrides_runpath=yes
11743 hardcode_into_libs=yes
11744 # ldd complains unless libraries are executable
11745 postinstall_cmds='chmod +x $lib'
11746 ;;
11747
11748sunos4*)
11749 version_type=sunos
11750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11752 shlibpath_var=LD_LIBRARY_PATH
11753 shlibpath_overrides_runpath=yes
11754 if test "$with_gnu_ld" = yes; then
11755 need_lib_prefix=no
11756 fi
11757 need_version=yes
11758 ;;
11759
11760sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11761 version_type=linux
11762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11763 soname_spec='${libname}${release}${shared_ext}$major'
11764 shlibpath_var=LD_LIBRARY_PATH
11765 case $host_vendor in
11766 sni)
11767 shlibpath_overrides_runpath=no
11768 need_lib_prefix=no
11769 export_dynamic_flag_spec='${wl}-Blargedynsym'
11770 runpath_var=LD_RUN_PATH
11771 ;;
11772 siemens)
11773 need_lib_prefix=no
11774 ;;
11775 motorola)
11776 need_lib_prefix=no
11777 need_version=no
11778 shlibpath_overrides_runpath=no
11779 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11780 ;;
11781 esac
11782 ;;
11783
11784sysv4*MP*)
11785 if test -d /usr/nec ;then
11786 version_type=linux
11787 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11788 soname_spec='$libname${shared_ext}.$major'
11789 shlibpath_var=LD_LIBRARY_PATH
11790 fi
11791 ;;
11792
11793uts4*)
11794 version_type=linux
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796 soname_spec='${libname}${release}${shared_ext}$major'
11797 shlibpath_var=LD_LIBRARY_PATH
11798 ;;
11799
11800*)
11801 dynamic_linker=no
11802 ;;
11803esac
11804echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11805echo "${ECHO_T}$dynamic_linker" >&6
11806test "$dynamic_linker" = no && can_build_shared=no
11807
11808echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11809echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11810hardcode_action_CXX=
11811if test -n "$hardcode_libdir_flag_spec_CXX" || \
11812 test -n "$runpath_var CXX" || \
11813 test "X$hardcode_automatic_CXX"="Xyes" ; then
11814
11815 # We can hardcode non-existant directories.
11816 if test "$hardcode_direct_CXX" != no &&
11817 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11818 # have to relink, otherwise we might link with an installed library
11819 # when we should be linking with a yet-to-be-installed one
11820 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11821 test "$hardcode_minus_L_CXX" != no; then
11822 # Linking always hardcodes the temporary library directory.
11823 hardcode_action_CXX=relink
11824 else
11825 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11826 hardcode_action_CXX=immediate
11827 fi
11828else
11829 # We cannot hardcode anything, or else we can only hardcode existing
11830 # directories.
11831 hardcode_action_CXX=unsupported
11832fi
11833echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11834echo "${ECHO_T}$hardcode_action_CXX" >&6
11835
11836if test "$hardcode_action_CXX" = relink; then
11837 # Fast installation is not supported
11838 enable_fast_install=no
11839elif test "$shlibpath_overrides_runpath" = yes ||
11840 test "$enable_shared" = no; then
11841 # Fast installation is not necessary
11842 enable_fast_install=needless
11843fi
11844
11845striplib=
11846old_striplib=
11847echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11848echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11849if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11850 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11851 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11852 echo "$as_me:$LINENO: result: yes" >&5
11853echo "${ECHO_T}yes" >&6
11854else
11855# FIXME - insert some real tests, host_os isn't really good enough
11856 case $host_os in
11857 darwin*)
11858 if test -n "$STRIP" ; then
11859 striplib="$STRIP -x"
11860 echo "$as_me:$LINENO: result: yes" >&5
11861echo "${ECHO_T}yes" >&6
11862 else
11863 echo "$as_me:$LINENO: result: no" >&5
11864echo "${ECHO_T}no" >&6
11865fi
11866 ;;
11867 *)
11868 echo "$as_me:$LINENO: result: no" >&5
11869echo "${ECHO_T}no" >&6
11870 ;;
11871 esac
11872fi
11873
11874if test "x$enable_dlopen" != xyes; then
11875 enable_dlopen=unknown
11876 enable_dlopen_self=unknown
11877 enable_dlopen_self_static=unknown
11878else
11879 lt_cv_dlopen=no
11880 lt_cv_dlopen_libs=
11881
11882 case $host_os in
11883 beos*)
11884 lt_cv_dlopen="load_add_on"
11885 lt_cv_dlopen_libs=
11886 lt_cv_dlopen_self=yes
11887 ;;
11888
11889 mingw* | pw32*)
11890 lt_cv_dlopen="LoadLibrary"
11891 lt_cv_dlopen_libs=
11892 ;;
11893
11894 cygwin*)
11895 lt_cv_dlopen="dlopen"
11896 lt_cv_dlopen_libs=
11897 ;;
11898
11899 darwin*)
11900 # if libdl is installed we need to link against it
11901 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11902echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11903if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11905else
11906 ac_check_lib_save_LIBS=$LIBS
11907LIBS="-ldl $LIBS"
11908cat >conftest.$ac_ext <<_ACEOF
11909/* confdefs.h. */
11910_ACEOF
11911cat confdefs.h >>conftest.$ac_ext
11912cat >>conftest.$ac_ext <<_ACEOF
11913/* end confdefs.h. */
11914
11915/* Override any gcc2 internal prototype to avoid an error. */
11916#ifdef __cplusplus
11917extern "C"
11918#endif
11919/* We use char because int might match the return type of a gcc2
11920 builtin and then its argument prototype would still apply. */
11921char dlopen ();
11922int
11923main ()
11924{
11925dlopen ();
11926 ;
11927 return 0;
11928}
11929_ACEOF
11930rm -f conftest.$ac_objext conftest$ac_exeext
11931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011932 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011933 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011934 grep -v '^ *+' conftest.er1 >conftest.err
11935 rm -f conftest.er1
11936 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011939 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; } &&
11945 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
11951 ac_cv_lib_dl_dlopen=yes
11952else
11953 echo "$as_me: failed program was:" >&5
11954sed 's/^/| /' conftest.$ac_ext >&5
11955
11956ac_cv_lib_dl_dlopen=no
11957fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011958rm -f conftest.err conftest.$ac_objext \
11959 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011960LIBS=$ac_check_lib_save_LIBS
11961fi
11962echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11963echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11964if test $ac_cv_lib_dl_dlopen = yes; then
11965 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11966else
11967
11968 lt_cv_dlopen="dyld"
11969 lt_cv_dlopen_libs=
11970 lt_cv_dlopen_self=yes
11971
11972fi
11973
11974 ;;
11975
11976 *)
11977 echo "$as_me:$LINENO: checking for shl_load" >&5
11978echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11979if test "${ac_cv_func_shl_load+set}" = set; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11981else
11982 cat >conftest.$ac_ext <<_ACEOF
11983/* confdefs.h. */
11984_ACEOF
11985cat confdefs.h >>conftest.$ac_ext
11986cat >>conftest.$ac_ext <<_ACEOF
11987/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011988/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11990#define shl_load innocuous_shl_load
11991
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011992/* System header to define __stub macros and hopefully few prototypes,
11993 which can conflict with char shl_load (); below.
11994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11995 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011996
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011997#ifdef __STDC__
11998# include <limits.h>
11999#else
12000# include <assert.h>
12001#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012002
12003#undef shl_load
12004
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012005/* Override any gcc2 internal prototype to avoid an error. */
12006#ifdef __cplusplus
12007extern "C"
12008{
12009#endif
12010/* We use char because int might match the return type of a gcc2
12011 builtin and then its argument prototype would still apply. */
12012char shl_load ();
12013/* The GNU C library defines this for functions which it implements
12014 to always fail with ENOSYS. Some functions are actually named
12015 something starting with __ and the normal name is an alias. */
12016#if defined (__stub_shl_load) || defined (__stub___shl_load)
12017choke me
12018#else
12019char (*f) () = shl_load;
12020#endif
12021#ifdef __cplusplus
12022}
12023#endif
12024
12025int
12026main ()
12027{
12028return f != shl_load;
12029 ;
12030 return 0;
12031}
12032_ACEOF
12033rm -f conftest.$ac_objext conftest$ac_exeext
12034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012035 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012036 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012037 grep -v '^ *+' conftest.er1 >conftest.err
12038 rm -f conftest.er1
12039 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; } &&
12048 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; }; then
12054 ac_cv_func_shl_load=yes
12055else
12056 echo "$as_me: failed program was:" >&5
12057sed 's/^/| /' conftest.$ac_ext >&5
12058
12059ac_cv_func_shl_load=no
12060fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012061rm -f conftest.err conftest.$ac_objext \
12062 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012063fi
12064echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12065echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12066if test $ac_cv_func_shl_load = yes; then
12067 lt_cv_dlopen="shl_load"
12068else
12069 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12070echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12071if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12073else
12074 ac_check_lib_save_LIBS=$LIBS
12075LIBS="-ldld $LIBS"
12076cat >conftest.$ac_ext <<_ACEOF
12077/* confdefs.h. */
12078_ACEOF
12079cat confdefs.h >>conftest.$ac_ext
12080cat >>conftest.$ac_ext <<_ACEOF
12081/* end confdefs.h. */
12082
12083/* Override any gcc2 internal prototype to avoid an error. */
12084#ifdef __cplusplus
12085extern "C"
12086#endif
12087/* We use char because int might match the return type of a gcc2
12088 builtin and then its argument prototype would still apply. */
12089char shl_load ();
12090int
12091main ()
12092{
12093shl_load ();
12094 ;
12095 return 0;
12096}
12097_ACEOF
12098rm -f conftest.$ac_objext conftest$ac_exeext
12099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012100 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012101 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012102 grep -v '^ *+' conftest.er1 >conftest.err
12103 rm -f conftest.er1
12104 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109 (eval $ac_try) 2>&5
12110 ac_status=$?
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; } &&
12113 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12116 ac_status=$?
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; }; then
12119 ac_cv_lib_dld_shl_load=yes
12120else
12121 echo "$as_me: failed program was:" >&5
12122sed 's/^/| /' conftest.$ac_ext >&5
12123
12124ac_cv_lib_dld_shl_load=no
12125fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012126rm -f conftest.err conftest.$ac_objext \
12127 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012128LIBS=$ac_check_lib_save_LIBS
12129fi
12130echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12131echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12132if test $ac_cv_lib_dld_shl_load = yes; then
12133 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12134else
12135 echo "$as_me:$LINENO: checking for dlopen" >&5
12136echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12137if test "${ac_cv_func_dlopen+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12139else
12140 cat >conftest.$ac_ext <<_ACEOF
12141/* confdefs.h. */
12142_ACEOF
12143cat confdefs.h >>conftest.$ac_ext
12144cat >>conftest.$ac_ext <<_ACEOF
12145/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012146/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12148#define dlopen innocuous_dlopen
12149
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012150/* System header to define __stub macros and hopefully few prototypes,
12151 which can conflict with char dlopen (); below.
12152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12153 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012154
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012155#ifdef __STDC__
12156# include <limits.h>
12157#else
12158# include <assert.h>
12159#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012160
12161#undef dlopen
12162
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012163/* Override any gcc2 internal prototype to avoid an error. */
12164#ifdef __cplusplus
12165extern "C"
12166{
12167#endif
12168/* We use char because int might match the return type of a gcc2
12169 builtin and then its argument prototype would still apply. */
12170char dlopen ();
12171/* The GNU C library defines this for functions which it implements
12172 to always fail with ENOSYS. Some functions are actually named
12173 something starting with __ and the normal name is an alias. */
12174#if defined (__stub_dlopen) || defined (__stub___dlopen)
12175choke me
12176#else
12177char (*f) () = dlopen;
12178#endif
12179#ifdef __cplusplus
12180}
12181#endif
12182
12183int
12184main ()
12185{
12186return f != dlopen;
12187 ;
12188 return 0;
12189}
12190_ACEOF
12191rm -f conftest.$ac_objext conftest$ac_exeext
12192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012193 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012194 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012195 grep -v '^ *+' conftest.er1 >conftest.err
12196 rm -f conftest.er1
12197 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12209 ac_status=$?
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 ac_cv_func_dlopen=yes
12213else
12214 echo "$as_me: failed program was:" >&5
12215sed 's/^/| /' conftest.$ac_ext >&5
12216
12217ac_cv_func_dlopen=no
12218fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012219rm -f conftest.err conftest.$ac_objext \
12220 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012221fi
12222echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12223echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12224if test $ac_cv_func_dlopen = yes; then
12225 lt_cv_dlopen="dlopen"
12226else
12227 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12228echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12229if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12231else
12232 ac_check_lib_save_LIBS=$LIBS
12233LIBS="-ldl $LIBS"
12234cat >conftest.$ac_ext <<_ACEOF
12235/* confdefs.h. */
12236_ACEOF
12237cat confdefs.h >>conftest.$ac_ext
12238cat >>conftest.$ac_ext <<_ACEOF
12239/* end confdefs.h. */
12240
12241/* Override any gcc2 internal prototype to avoid an error. */
12242#ifdef __cplusplus
12243extern "C"
12244#endif
12245/* We use char because int might match the return type of a gcc2
12246 builtin and then its argument prototype would still apply. */
12247char dlopen ();
12248int
12249main ()
12250{
12251dlopen ();
12252 ;
12253 return 0;
12254}
12255_ACEOF
12256rm -f conftest.$ac_objext conftest$ac_exeext
12257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012258 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012259 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267 (eval $ac_try) 2>&5
12268 ac_status=$?
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; } &&
12271 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12274 ac_status=$?
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; }; then
12277 ac_cv_lib_dl_dlopen=yes
12278else
12279 echo "$as_me: failed program was:" >&5
12280sed 's/^/| /' conftest.$ac_ext >&5
12281
12282ac_cv_lib_dl_dlopen=no
12283fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012284rm -f conftest.err conftest.$ac_objext \
12285 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012286LIBS=$ac_check_lib_save_LIBS
12287fi
12288echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12289echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12290if test $ac_cv_lib_dl_dlopen = yes; then
12291 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12292else
12293 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12294echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12295if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12297else
12298 ac_check_lib_save_LIBS=$LIBS
12299LIBS="-lsvld $LIBS"
12300cat >conftest.$ac_ext <<_ACEOF
12301/* confdefs.h. */
12302_ACEOF
12303cat confdefs.h >>conftest.$ac_ext
12304cat >>conftest.$ac_ext <<_ACEOF
12305/* end confdefs.h. */
12306
12307/* Override any gcc2 internal prototype to avoid an error. */
12308#ifdef __cplusplus
12309extern "C"
12310#endif
12311/* We use char because int might match the return type of a gcc2
12312 builtin and then its argument prototype would still apply. */
12313char dlopen ();
12314int
12315main ()
12316{
12317dlopen ();
12318 ;
12319 return 0;
12320}
12321_ACEOF
12322rm -f conftest.$ac_objext conftest$ac_exeext
12323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012324 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012325 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012326 grep -v '^ *+' conftest.er1 >conftest.err
12327 rm -f conftest.er1
12328 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; } &&
12337 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; }; then
12343 ac_cv_lib_svld_dlopen=yes
12344else
12345 echo "$as_me: failed program was:" >&5
12346sed 's/^/| /' conftest.$ac_ext >&5
12347
12348ac_cv_lib_svld_dlopen=no
12349fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012350rm -f conftest.err conftest.$ac_objext \
12351 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012352LIBS=$ac_check_lib_save_LIBS
12353fi
12354echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12355echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12356if test $ac_cv_lib_svld_dlopen = yes; then
12357 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12358else
12359 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12360echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12361if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
12363else
12364 ac_check_lib_save_LIBS=$LIBS
12365LIBS="-ldld $LIBS"
12366cat >conftest.$ac_ext <<_ACEOF
12367/* confdefs.h. */
12368_ACEOF
12369cat confdefs.h >>conftest.$ac_ext
12370cat >>conftest.$ac_ext <<_ACEOF
12371/* end confdefs.h. */
12372
12373/* Override any gcc2 internal prototype to avoid an error. */
12374#ifdef __cplusplus
12375extern "C"
12376#endif
12377/* We use char because int might match the return type of a gcc2
12378 builtin and then its argument prototype would still apply. */
12379char dld_link ();
12380int
12381main ()
12382{
12383dld_link ();
12384 ;
12385 return 0;
12386}
12387_ACEOF
12388rm -f conftest.$ac_objext conftest$ac_exeext
12389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012390 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012391 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012392 grep -v '^ *+' conftest.er1 >conftest.err
12393 rm -f conftest.er1
12394 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012397 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; } &&
12403 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405 (eval $ac_try) 2>&5
12406 ac_status=$?
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; }; then
12409 ac_cv_lib_dld_dld_link=yes
12410else
12411 echo "$as_me: failed program was:" >&5
12412sed 's/^/| /' conftest.$ac_ext >&5
12413
12414ac_cv_lib_dld_dld_link=no
12415fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012416rm -f conftest.err conftest.$ac_objext \
12417 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012418LIBS=$ac_check_lib_save_LIBS
12419fi
12420echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12421echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12422if test $ac_cv_lib_dld_dld_link = yes; then
12423 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12424fi
12425
12426
12427fi
12428
12429
12430fi
12431
12432
12433fi
12434
12435
12436fi
12437
12438
12439fi
12440
12441 ;;
12442 esac
12443
12444 if test "x$lt_cv_dlopen" != xno; then
12445 enable_dlopen=yes
12446 else
12447 enable_dlopen=no
12448 fi
12449
12450 case $lt_cv_dlopen in
12451 dlopen)
12452 save_CPPFLAGS="$CPPFLAGS"
12453 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12454
12455 save_LDFLAGS="$LDFLAGS"
12456 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12457
12458 save_LIBS="$LIBS"
12459 LIBS="$lt_cv_dlopen_libs $LIBS"
12460
12461 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12462echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12463if test "${lt_cv_dlopen_self+set}" = set; then
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
12465else
12466 if test "$cross_compiling" = yes; then :
12467 lt_cv_dlopen_self=cross
12468else
12469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12470 lt_status=$lt_dlunknown
12471 cat > conftest.$ac_ext <<EOF
hp.com!davidm16230292004-07-15 17:39:59 +000012472#line 12472 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012473#include "confdefs.h"
12474
12475#if HAVE_DLFCN_H
12476#include <dlfcn.h>
12477#endif
12478
12479#include <stdio.h>
12480
12481#ifdef RTLD_GLOBAL
12482# define LT_DLGLOBAL RTLD_GLOBAL
12483#else
12484# ifdef DL_GLOBAL
12485# define LT_DLGLOBAL DL_GLOBAL
12486# else
12487# define LT_DLGLOBAL 0
12488# endif
12489#endif
12490
12491/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12492 find out it does not work in some platform. */
12493#ifndef LT_DLLAZY_OR_NOW
12494# ifdef RTLD_LAZY
12495# define LT_DLLAZY_OR_NOW RTLD_LAZY
12496# else
12497# ifdef DL_LAZY
12498# define LT_DLLAZY_OR_NOW DL_LAZY
12499# else
12500# ifdef RTLD_NOW
12501# define LT_DLLAZY_OR_NOW RTLD_NOW
12502# else
12503# ifdef DL_NOW
12504# define LT_DLLAZY_OR_NOW DL_NOW
12505# else
12506# define LT_DLLAZY_OR_NOW 0
12507# endif
12508# endif
12509# endif
12510# endif
12511#endif
12512
12513#ifdef __cplusplus
12514extern "C" void exit (int);
12515#endif
12516
12517void fnord() { int i=42;}
12518int main ()
12519{
12520 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12521 int status = $lt_dlunknown;
12522
12523 if (self)
12524 {
12525 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12526 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12527 /* dlclose (self); */
12528 }
12529
12530 exit (status);
12531}
12532EOF
12533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12534 (eval $ac_link) 2>&5
12535 ac_status=$?
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12538 (./conftest; exit; ) 2>/dev/null
12539 lt_status=$?
12540 case x$lt_status in
12541 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12542 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12543 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12544 esac
12545 else :
12546 # compilation failed
12547 lt_cv_dlopen_self=no
12548 fi
12549fi
12550rm -fr conftest*
12551
12552
12553fi
12554echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12555echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12556
12557 if test "x$lt_cv_dlopen_self" = xyes; then
12558 LDFLAGS="$LDFLAGS $link_static_flag"
12559 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12560echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12561if test "${lt_cv_dlopen_self_static+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12563else
12564 if test "$cross_compiling" = yes; then :
12565 lt_cv_dlopen_self_static=cross
12566else
12567 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12568 lt_status=$lt_dlunknown
12569 cat > conftest.$ac_ext <<EOF
hp.com!davidm16230292004-07-15 17:39:59 +000012570#line 12570 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012571#include "confdefs.h"
12572
12573#if HAVE_DLFCN_H
12574#include <dlfcn.h>
12575#endif
12576
12577#include <stdio.h>
12578
12579#ifdef RTLD_GLOBAL
12580# define LT_DLGLOBAL RTLD_GLOBAL
12581#else
12582# ifdef DL_GLOBAL
12583# define LT_DLGLOBAL DL_GLOBAL
12584# else
12585# define LT_DLGLOBAL 0
12586# endif
12587#endif
12588
12589/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12590 find out it does not work in some platform. */
12591#ifndef LT_DLLAZY_OR_NOW
12592# ifdef RTLD_LAZY
12593# define LT_DLLAZY_OR_NOW RTLD_LAZY
12594# else
12595# ifdef DL_LAZY
12596# define LT_DLLAZY_OR_NOW DL_LAZY
12597# else
12598# ifdef RTLD_NOW
12599# define LT_DLLAZY_OR_NOW RTLD_NOW
12600# else
12601# ifdef DL_NOW
12602# define LT_DLLAZY_OR_NOW DL_NOW
12603# else
12604# define LT_DLLAZY_OR_NOW 0
12605# endif
12606# endif
12607# endif
12608# endif
12609#endif
12610
12611#ifdef __cplusplus
12612extern "C" void exit (int);
12613#endif
12614
12615void fnord() { int i=42;}
12616int main ()
12617{
12618 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12619 int status = $lt_dlunknown;
12620
12621 if (self)
12622 {
12623 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12624 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12625 /* dlclose (self); */
12626 }
12627
12628 exit (status);
12629}
12630EOF
12631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12632 (eval $ac_link) 2>&5
12633 ac_status=$?
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12636 (./conftest; exit; ) 2>/dev/null
12637 lt_status=$?
12638 case x$lt_status in
12639 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12640 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12641 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12642 esac
12643 else :
12644 # compilation failed
12645 lt_cv_dlopen_self_static=no
12646 fi
12647fi
12648rm -fr conftest*
12649
12650
12651fi
12652echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12653echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12654 fi
12655
12656 CPPFLAGS="$save_CPPFLAGS"
12657 LDFLAGS="$save_LDFLAGS"
12658 LIBS="$save_LIBS"
12659 ;;
12660 esac
12661
12662 case $lt_cv_dlopen_self in
12663 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12664 *) enable_dlopen_self=unknown ;;
12665 esac
12666
12667 case $lt_cv_dlopen_self_static in
12668 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12669 *) enable_dlopen_self_static=unknown ;;
12670 esac
12671fi
12672
12673
12674# The else clause should only fire when bootstrapping the
12675# libtool distribution, otherwise you forgot to ship ltmain.sh
12676# with your package, and you will get complaints that there are
12677# no rules to generate ltmain.sh.
12678if test -f "$ltmain"; then
12679 # See if we are running on zsh, and set the options which allow our commands through
12680 # without removal of \ escapes.
12681 if test -n "${ZSH_VERSION+set}" ; then
12682 setopt NO_GLOB_SUBST
12683 fi
12684 # Now quote all the things that may contain metacharacters while being
12685 # careful not to overquote the AC_SUBSTed values. We take copies of the
12686 # variables and quote the copies for generation of the libtool script.
12687 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12688 SED SHELL STRIP \
12689 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12690 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12691 deplibs_check_method reload_flag reload_cmds need_locks \
12692 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12693 lt_cv_sys_global_symbol_to_c_name_address \
12694 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12695 old_postinstall_cmds old_postuninstall_cmds \
12696 compiler_CXX \
12697 CC_CXX \
12698 LD_CXX \
12699 lt_prog_compiler_wl_CXX \
12700 lt_prog_compiler_pic_CXX \
12701 lt_prog_compiler_static_CXX \
12702 lt_prog_compiler_no_builtin_flag_CXX \
12703 export_dynamic_flag_spec_CXX \
12704 thread_safe_flag_spec_CXX \
12705 whole_archive_flag_spec_CXX \
12706 enable_shared_with_static_runtimes_CXX \
12707 old_archive_cmds_CXX \
12708 old_archive_from_new_cmds_CXX \
12709 predep_objects_CXX \
12710 postdep_objects_CXX \
12711 predeps_CXX \
12712 postdeps_CXX \
12713 compiler_lib_search_path_CXX \
12714 archive_cmds_CXX \
12715 archive_expsym_cmds_CXX \
12716 postinstall_cmds_CXX \
12717 postuninstall_cmds_CXX \
12718 old_archive_from_expsyms_cmds_CXX \
12719 allow_undefined_flag_CXX \
12720 no_undefined_flag_CXX \
12721 export_symbols_cmds_CXX \
12722 hardcode_libdir_flag_spec_CXX \
12723 hardcode_libdir_flag_spec_ld_CXX \
12724 hardcode_libdir_separator_CXX \
12725 hardcode_automatic_CXX \
12726 module_cmds_CXX \
12727 module_expsym_cmds_CXX \
12728 lt_cv_prog_compiler_c_o_CXX \
12729 exclude_expsyms_CXX \
12730 include_expsyms_CXX; do
12731
12732 case $var in
12733 old_archive_cmds_CXX | \
12734 old_archive_from_new_cmds_CXX | \
12735 archive_cmds_CXX | \
12736 archive_expsym_cmds_CXX | \
12737 module_cmds_CXX | \
12738 module_expsym_cmds_CXX | \
12739 old_archive_from_expsyms_cmds_CXX | \
12740 export_symbols_cmds_CXX | \
12741 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12742 postinstall_cmds | postuninstall_cmds | \
12743 old_postinstall_cmds | old_postuninstall_cmds | \
12744 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12745 # Double-quote double-evaled strings.
12746 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12747 ;;
12748 *)
12749 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12750 ;;
12751 esac
12752 done
12753
12754 case $lt_echo in
12755 *'\$0 --fallback-echo"')
12756 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12757 ;;
12758 esac
12759
12760cfgfile="$ofile"
12761
12762 cat <<__EOF__ >> "$cfgfile"
12763# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12764
12765# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12766
12767# Shell to use when invoking shell scripts.
12768SHELL=$lt_SHELL
12769
12770# Whether or not to build shared libraries.
12771build_libtool_libs=$enable_shared
12772
12773# Whether or not to build static libraries.
12774build_old_libs=$enable_static
12775
12776# Whether or not to add -lc for building shared libraries.
12777build_libtool_need_lc=$archive_cmds_need_lc_CXX
12778
12779# Whether or not to disallow shared libs when runtime libs are static
12780allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12781
12782# Whether or not to optimize for fast installation.
12783fast_install=$enable_fast_install
12784
12785# The host system.
12786host_alias=$host_alias
12787host=$host
12788
12789# An echo program that does not interpret backslashes.
12790echo=$lt_echo
12791
12792# The archiver.
12793AR=$lt_AR
12794AR_FLAGS=$lt_AR_FLAGS
12795
12796# A C compiler.
12797LTCC=$lt_LTCC
12798
12799# A language-specific compiler.
12800CC=$lt_compiler_CXX
12801
12802# Is the compiler the GNU C compiler?
12803with_gcc=$GCC_CXX
12804
12805# An ERE matcher.
12806EGREP=$lt_EGREP
12807
12808# The linker used to build libraries.
12809LD=$lt_LD_CXX
12810
12811# Whether we need hard or soft links.
12812LN_S=$lt_LN_S
12813
12814# A BSD-compatible nm program.
12815NM=$lt_NM
12816
12817# A symbol stripping program
12818STRIP=$lt_STRIP
12819
12820# Used to examine libraries when file_magic_cmd begins "file"
12821MAGIC_CMD=$MAGIC_CMD
12822
12823# Used on cygwin: DLL creation program.
12824DLLTOOL="$DLLTOOL"
12825
12826# Used on cygwin: object dumper.
12827OBJDUMP="$OBJDUMP"
12828
12829# Used on cygwin: assembler.
12830AS="$AS"
12831
12832# The name of the directory that contains temporary libtool files.
12833objdir=$objdir
12834
12835# How to create reloadable object files.
12836reload_flag=$lt_reload_flag
12837reload_cmds=$lt_reload_cmds
12838
12839# How to pass a linker flag through the compiler.
12840wl=$lt_lt_prog_compiler_wl_CXX
12841
12842# Object file suffix (normally "o").
12843objext="$ac_objext"
12844
12845# Old archive suffix (normally "a").
12846libext="$libext"
12847
12848# Shared library suffix (normally ".so").
hp.com!davidm2de17682004-04-20 16:53:44 +000012849shrext_cmds='$shrext_cmds'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012850
12851# Executable file suffix (normally "").
12852exeext="$exeext"
12853
12854# Additional compiler flags for building library objects.
12855pic_flag=$lt_lt_prog_compiler_pic_CXX
12856pic_mode=$pic_mode
12857
12858# What is the maximum length of a command?
12859max_cmd_len=$lt_cv_sys_max_cmd_len
12860
12861# Does compiler simultaneously support -c and -o options?
12862compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12863
12864# Must we lock files when doing compilation ?
12865need_locks=$lt_need_locks
12866
12867# Do we need the lib prefix for modules?
12868need_lib_prefix=$need_lib_prefix
12869
12870# Do we need a version for libraries?
12871need_version=$need_version
12872
12873# Whether dlopen is supported.
12874dlopen_support=$enable_dlopen
12875
12876# Whether dlopen of programs is supported.
12877dlopen_self=$enable_dlopen_self
12878
12879# Whether dlopen of statically linked programs is supported.
12880dlopen_self_static=$enable_dlopen_self_static
12881
12882# Compiler flag to prevent dynamic linking.
12883link_static_flag=$lt_lt_prog_compiler_static_CXX
12884
12885# Compiler flag to turn off builtin functions.
12886no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12887
12888# Compiler flag to allow reflexive dlopens.
12889export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12890
12891# Compiler flag to generate shared objects directly from archives.
12892whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12893
12894# Compiler flag to generate thread-safe objects.
12895thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12896
12897# Library versioning type.
12898version_type=$version_type
12899
12900# Format of library name prefix.
12901libname_spec=$lt_libname_spec
12902
12903# List of archive names. First name is the real one, the rest are links.
12904# The last name is the one that the linker finds with -lNAME.
12905library_names_spec=$lt_library_names_spec
12906
12907# The coded name of the library, if different from the real name.
12908soname_spec=$lt_soname_spec
12909
12910# Commands used to build and install an old-style archive.
12911RANLIB=$lt_RANLIB
12912old_archive_cmds=$lt_old_archive_cmds_CXX
12913old_postinstall_cmds=$lt_old_postinstall_cmds
12914old_postuninstall_cmds=$lt_old_postuninstall_cmds
12915
12916# Create an old-style archive from a shared archive.
12917old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12918
12919# Create a temporary old-style archive to link instead of a shared archive.
12920old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12921
12922# Commands used to build and install a shared archive.
12923archive_cmds=$lt_archive_cmds_CXX
12924archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12925postinstall_cmds=$lt_postinstall_cmds
12926postuninstall_cmds=$lt_postuninstall_cmds
12927
12928# Commands used to build a loadable module (assumed same as above if empty)
12929module_cmds=$lt_module_cmds_CXX
12930module_expsym_cmds=$lt_module_expsym_cmds_CXX
12931
12932# Commands to strip libraries.
12933old_striplib=$lt_old_striplib
12934striplib=$lt_striplib
12935
12936# Dependencies to place before the objects being linked to create a
12937# shared library.
12938predep_objects=$lt_predep_objects_CXX
12939
12940# Dependencies to place after the objects being linked to create a
12941# shared library.
12942postdep_objects=$lt_postdep_objects_CXX
12943
12944# Dependencies to place before the objects being linked to create a
12945# shared library.
12946predeps=$lt_predeps_CXX
12947
12948# Dependencies to place after the objects being linked to create a
12949# shared library.
12950postdeps=$lt_postdeps_CXX
12951
12952# The library search path used internally by the compiler when linking
12953# a shared library.
12954compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12955
12956# Method to check whether dependent libraries are shared objects.
12957deplibs_check_method=$lt_deplibs_check_method
12958
12959# Command to use when deplibs_check_method == file_magic.
12960file_magic_cmd=$lt_file_magic_cmd
12961
12962# Flag that allows shared libraries with undefined symbols to be built.
12963allow_undefined_flag=$lt_allow_undefined_flag_CXX
12964
12965# Flag that forces no undefined symbols.
12966no_undefined_flag=$lt_no_undefined_flag_CXX
12967
12968# Commands used to finish a libtool library installation in a directory.
12969finish_cmds=$lt_finish_cmds
12970
12971# Same as above, but a single script fragment to be evaled but not shown.
12972finish_eval=$lt_finish_eval
12973
12974# Take the output of nm and produce a listing of raw symbols and C names.
12975global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12976
12977# Transform the output of nm in a proper C declaration
12978global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12979
12980# Transform the output of nm in a C name address pair
12981global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12982
12983# This is the shared library runtime path variable.
12984runpath_var=$runpath_var
12985
12986# This is the shared library path variable.
12987shlibpath_var=$shlibpath_var
12988
12989# Is shlibpath searched before the hard-coded library search path?
12990shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12991
12992# How to hardcode a shared library path into an executable.
12993hardcode_action=$hardcode_action_CXX
12994
12995# Whether we should hardcode library paths into libraries.
12996hardcode_into_libs=$hardcode_into_libs
12997
12998# Flag to hardcode \$libdir into a binary during linking.
12999# This must work even if \$libdir does not exist.
13000hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13001
13002# If ld is used when linking, flag to hardcode \$libdir into
13003# a binary during linking. This must work even if \$libdir does
13004# not exist.
13005hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13006
13007# Whether we need a single -rpath flag with a separated argument.
13008hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13009
13010# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13011# resulting binary.
13012hardcode_direct=$hardcode_direct_CXX
13013
13014# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13015# resulting binary.
13016hardcode_minus_L=$hardcode_minus_L_CXX
13017
13018# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13019# the resulting binary.
13020hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13021
13022# Set to yes if building a shared library automatically hardcodes DIR into the library
13023# and all subsequent libraries and executables linked against it.
13024hardcode_automatic=$hardcode_automatic_CXX
13025
13026# Variables whose values should be saved in libtool wrapper scripts and
13027# restored at relink time.
13028variables_saved_for_relink="$variables_saved_for_relink"
13029
13030# Whether libtool must link a program against all its dependency libraries.
13031link_all_deplibs=$link_all_deplibs_CXX
13032
13033# Compile-time system search path for libraries
13034sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13035
13036# Run-time system search path for libraries
13037sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13038
13039# Fix the shell variable \$srcfile for the compiler.
13040fix_srcfile_path="$fix_srcfile_path_CXX"
13041
13042# Set to yes if exported symbols are required.
13043always_export_symbols=$always_export_symbols_CXX
13044
13045# The commands to list exported symbols.
13046export_symbols_cmds=$lt_export_symbols_cmds_CXX
13047
13048# The commands to extract the exported symbol list from a shared archive.
13049extract_expsyms_cmds=$lt_extract_expsyms_cmds
13050
13051# Symbols that should not be listed in the preloaded symbols.
13052exclude_expsyms=$lt_exclude_expsyms_CXX
13053
13054# Symbols that must always be exported.
13055include_expsyms=$lt_include_expsyms_CXX
13056
13057# ### END LIBTOOL TAG CONFIG: $tagname
13058
13059__EOF__
13060
13061
13062else
13063 # If there is no Makefile yet, we rely on a make rule to execute
13064 # `config.status --recheck' to rerun these tests and create the
13065 # libtool script then.
13066 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13067 if test -f "$ltmain_in"; then
13068 test -f Makefile && make "$ltmain"
13069 fi
13070fi
13071
13072
13073ac_ext=c
13074ac_cpp='$CPP $CPPFLAGS'
13075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13077ac_compiler_gnu=$ac_cv_c_compiler_gnu
13078
13079CC=$lt_save_CC
13080LDCXX=$LD
13081LD=$lt_save_LD
13082GCC=$lt_save_GCC
13083with_gnu_ldcxx=$with_gnu_ld
13084with_gnu_ld=$lt_save_with_gnu_ld
13085lt_cv_path_LDCXX=$lt_cv_path_LD
13086lt_cv_path_LD=$lt_save_path_LD
13087lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13088lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13089
13090 else
13091 tagname=""
13092 fi
13093 ;;
13094
13095 F77)
13096 if test -n "$F77" && test "X$F77" != "Xno"; then
13097
13098ac_ext=f
13099ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13100ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13101ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13102
13103
13104archive_cmds_need_lc_F77=no
13105allow_undefined_flag_F77=
13106always_export_symbols_F77=no
13107archive_expsym_cmds_F77=
13108export_dynamic_flag_spec_F77=
13109hardcode_direct_F77=no
13110hardcode_libdir_flag_spec_F77=
13111hardcode_libdir_flag_spec_ld_F77=
13112hardcode_libdir_separator_F77=
13113hardcode_minus_L_F77=no
13114hardcode_automatic_F77=no
13115module_cmds_F77=
13116module_expsym_cmds_F77=
13117link_all_deplibs_F77=unknown
13118old_archive_cmds_F77=$old_archive_cmds
13119no_undefined_flag_F77=
13120whole_archive_flag_spec_F77=
13121enable_shared_with_static_runtimes_F77=no
13122
13123# Source file extension for f77 test sources.
13124ac_ext=f
13125
13126# Object file extension for compiled f77 test sources.
13127objext=o
13128objext_F77=$objext
13129
13130# Code to be used in simple compile tests
13131lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13132
13133# Code to be used in simple link tests
13134lt_simple_link_test_code=" program t\n end\n"
13135
13136# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13137
13138# If no C compiler was specified, use CC.
13139LTCC=${LTCC-"$CC"}
13140
13141# Allow CC to be a program name with arguments.
13142compiler=$CC
13143
13144
13145# Allow CC to be a program name with arguments.
13146lt_save_CC="$CC"
13147CC=${F77-"f77"}
13148compiler=$CC
13149compiler_F77=$CC
13150cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13151
13152echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13153echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13154echo "$as_me:$LINENO: result: $can_build_shared" >&5
13155echo "${ECHO_T}$can_build_shared" >&6
13156
13157echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13158echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13159test "$can_build_shared" = "no" && enable_shared=no
13160
13161# On AIX, shared libraries and static libraries use the same namespace, and
13162# are all built from PIC.
13163case "$host_os" in
13164aix3*)
13165 test "$enable_shared" = yes && enable_static=no
13166 if test -n "$RANLIB"; then
13167 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13168 postinstall_cmds='$RANLIB $lib'
13169 fi
13170 ;;
hp.com!davidm2de17682004-04-20 16:53:44 +000013171aix4* | aix5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013172 test "$enable_shared" = yes && enable_static=no
13173 ;;
13174esac
13175echo "$as_me:$LINENO: result: $enable_shared" >&5
13176echo "${ECHO_T}$enable_shared" >&6
13177
13178echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13179echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13180# Make sure either enable_shared or enable_static is yes.
13181test "$enable_shared" = yes || enable_static=yes
13182echo "$as_me:$LINENO: result: $enable_static" >&5
13183echo "${ECHO_T}$enable_static" >&6
13184
13185test "$ld_shlibs_F77" = no && can_build_shared=no
13186
13187GCC_F77="$G77"
13188LD_F77="$LD"
13189
13190lt_prog_compiler_wl_F77=
13191lt_prog_compiler_pic_F77=
13192lt_prog_compiler_static_F77=
13193
13194echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13195echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13196
13197 if test "$GCC" = yes; then
13198 lt_prog_compiler_wl_F77='-Wl,'
13199 lt_prog_compiler_static_F77='-static'
13200
13201 case $host_os in
13202 aix*)
13203 # All AIX code is PIC.
13204 if test "$host_cpu" = ia64; then
13205 # AIX 5 now supports IA64 processor
13206 lt_prog_compiler_static_F77='-Bstatic'
13207 fi
13208 ;;
13209
13210 amigaos*)
13211 # FIXME: we need at least 68020 code to build shared libraries, but
13212 # adding the `-m68020' flag to GCC prevents building anything better,
13213 # like `-m68040'.
13214 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13215 ;;
13216
13217 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13218 # PIC is the default for these OSes.
13219 ;;
13220
13221 mingw* | pw32* | os2*)
13222 # This hack is so that the source file can tell whether it is being
13223 # built for inclusion in a dll (and should export symbols for example).
13224 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13225 ;;
13226
13227 darwin* | rhapsody*)
13228 # PIC is the default on this platform
13229 # Common symbols not allowed in MH_DYLIB files
13230 lt_prog_compiler_pic_F77='-fno-common'
13231 ;;
13232
13233 msdosdjgpp*)
13234 # Just because we use GCC doesn't mean we suddenly get shared libraries
13235 # on systems that don't support them.
13236 lt_prog_compiler_can_build_shared_F77=no
13237 enable_shared=no
13238 ;;
13239
13240 sysv4*MP*)
13241 if test -d /usr/nec; then
13242 lt_prog_compiler_pic_F77=-Kconform_pic
13243 fi
13244 ;;
13245
13246 hpux*)
13247 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13248 # not for PA HP-UX.
13249 case "$host_cpu" in
13250 hppa*64*|ia64*)
13251 # +Z the default
13252 ;;
13253 *)
13254 lt_prog_compiler_pic_F77='-fPIC'
13255 ;;
13256 esac
13257 ;;
13258
13259 *)
13260 lt_prog_compiler_pic_F77='-fPIC'
13261 ;;
13262 esac
13263 else
13264 # PORTME Check for flag to pass linker flags through the system compiler.
13265 case $host_os in
13266 aix*)
13267 lt_prog_compiler_wl_F77='-Wl,'
13268 if test "$host_cpu" = ia64; then
13269 # AIX 5 now supports IA64 processor
13270 lt_prog_compiler_static_F77='-Bstatic'
13271 else
13272 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13273 fi
13274 ;;
13275
13276 mingw* | pw32* | os2*)
13277 # This hack is so that the source file can tell whether it is being
13278 # built for inclusion in a dll (and should export symbols for example).
13279 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13280 ;;
13281
13282 hpux9* | hpux10* | hpux11*)
13283 lt_prog_compiler_wl_F77='-Wl,'
13284 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13285 # not for PA HP-UX.
13286 case "$host_cpu" in
13287 hppa*64*|ia64*)
13288 # +Z the default
13289 ;;
13290 *)
13291 lt_prog_compiler_pic_F77='+Z'
13292 ;;
13293 esac
13294 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13295 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13296 ;;
13297
13298 irix5* | irix6* | nonstopux*)
13299 lt_prog_compiler_wl_F77='-Wl,'
13300 # PIC (with -KPIC) is the default.
13301 lt_prog_compiler_static_F77='-non_shared'
13302 ;;
13303
13304 newsos6)
13305 lt_prog_compiler_pic_F77='-KPIC'
13306 lt_prog_compiler_static_F77='-Bstatic'
13307 ;;
13308
13309 linux*)
13310 case $CC in
13311 icc* | ecc*)
13312 lt_prog_compiler_wl_F77='-Wl,'
13313 lt_prog_compiler_pic_F77='-KPIC'
13314 lt_prog_compiler_static_F77='-static'
13315 ;;
13316 ccc*)
13317 lt_prog_compiler_wl_F77='-Wl,'
13318 # All Alpha code is PIC.
13319 lt_prog_compiler_static_F77='-non_shared'
13320 ;;
13321 esac
13322 ;;
13323
13324 osf3* | osf4* | osf5*)
13325 lt_prog_compiler_wl_F77='-Wl,'
13326 # All OSF/1 code is PIC.
13327 lt_prog_compiler_static_F77='-non_shared'
13328 ;;
13329
13330 sco3.2v5*)
13331 lt_prog_compiler_pic_F77='-Kpic'
13332 lt_prog_compiler_static_F77='-dn'
13333 ;;
13334
13335 solaris*)
13336 lt_prog_compiler_wl_F77='-Wl,'
13337 lt_prog_compiler_pic_F77='-KPIC'
13338 lt_prog_compiler_static_F77='-Bstatic'
13339 ;;
13340
13341 sunos4*)
13342 lt_prog_compiler_wl_F77='-Qoption ld '
13343 lt_prog_compiler_pic_F77='-PIC'
13344 lt_prog_compiler_static_F77='-Bstatic'
13345 ;;
13346
13347 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13348 lt_prog_compiler_wl_F77='-Wl,'
13349 lt_prog_compiler_pic_F77='-KPIC'
13350 lt_prog_compiler_static_F77='-Bstatic'
13351 ;;
13352
13353 sysv4*MP*)
13354 if test -d /usr/nec ;then
13355 lt_prog_compiler_pic_F77='-Kconform_pic'
13356 lt_prog_compiler_static_F77='-Bstatic'
13357 fi
13358 ;;
13359
13360 uts4*)
13361 lt_prog_compiler_pic_F77='-pic'
13362 lt_prog_compiler_static_F77='-Bstatic'
13363 ;;
13364
13365 *)
13366 lt_prog_compiler_can_build_shared_F77=no
13367 ;;
13368 esac
13369 fi
13370
13371echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13372echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13373
13374#
13375# Check to make sure the PIC flag actually works.
13376#
13377if test -n "$lt_prog_compiler_pic_F77"; then
13378
13379echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13380echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13381if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13382 echo $ECHO_N "(cached) $ECHO_C" >&6
13383else
13384 lt_prog_compiler_pic_works_F77=no
13385 ac_outfile=conftest.$ac_objext
13386 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13387 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13388 # Insert the option either (1) after the last *FLAGS variable, or
13389 # (2) before a word containing "conftest.", or (3) at the end.
13390 # Note that $ac_compile itself does not contain backslashes and begins
13391 # with a dollar sign (not a hyphen), so the echo should work correctly.
13392 # The option is referenced via a variable to avoid confusing sed.
13393 lt_compile=`echo "$ac_compile" | $SED \
13394 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13396 -e 's:$: $lt_compiler_flag:'`
hp.com!davidm16230292004-07-15 17:39:59 +000013397 (eval echo "\"\$as_me:13397: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013398 (eval "$lt_compile" 2>conftest.err)
13399 ac_status=$?
13400 cat conftest.err >&5
hp.com!davidm16230292004-07-15 17:39:59 +000013401 echo "$as_me:13401: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013402 if (exit $ac_status) && test -s "$ac_outfile"; then
13403 # The compiler can only warn and ignore the option if not recognized
13404 # So say no if there are warnings
13405 if test ! -s conftest.err; then
13406 lt_prog_compiler_pic_works_F77=yes
13407 fi
13408 fi
13409 $rm conftest*
13410
13411fi
13412echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13413echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13414
13415if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13416 case $lt_prog_compiler_pic_F77 in
13417 "" | " "*) ;;
13418 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13419 esac
13420else
13421 lt_prog_compiler_pic_F77=
13422 lt_prog_compiler_can_build_shared_F77=no
13423fi
13424
13425fi
13426case "$host_os" in
13427 # For platforms which do not support PIC, -DPIC is meaningless:
13428 *djgpp*)
13429 lt_prog_compiler_pic_F77=
13430 ;;
13431 *)
13432 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13433 ;;
13434esac
13435
13436echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13437echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13438if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13440else
13441 lt_cv_prog_compiler_c_o_F77=no
13442 $rm -r conftest 2>/dev/null
13443 mkdir conftest
13444 cd conftest
13445 mkdir out
13446 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13447
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013448 lt_compiler_flag="-o out/conftest2.$ac_objext"
13449 # Insert the option either (1) after the last *FLAGS variable, or
13450 # (2) before a word containing "conftest.", or (3) at the end.
13451 # Note that $ac_compile itself does not contain backslashes and begins
13452 # with a dollar sign (not a hyphen), so the echo should work correctly.
13453 lt_compile=`echo "$ac_compile" | $SED \
13454 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13456 -e 's:$: $lt_compiler_flag:'`
hp.com!davidm16230292004-07-15 17:39:59 +000013457 (eval echo "\"\$as_me:13457: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013458 (eval "$lt_compile" 2>out/conftest.err)
13459 ac_status=$?
13460 cat out/conftest.err >&5
hp.com!davidm16230292004-07-15 17:39:59 +000013461 echo "$as_me:13461: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013462 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13463 then
13464 # The compiler can only warn and ignore the option if not recognized
13465 # So say no if there are warnings
13466 if test ! -s out/conftest.err; then
13467 lt_cv_prog_compiler_c_o_F77=yes
13468 fi
13469 fi
13470 chmod u+w .
13471 $rm conftest*
13472 # SGI C++ compiler will create directory out/ii_files/ for
13473 # template instantiation
13474 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13475 $rm out/* && rmdir out
13476 cd ..
13477 rmdir conftest
13478 $rm conftest*
13479
13480fi
13481echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13482echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13483
13484
13485hard_links="nottested"
13486if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13487 # do not overwrite the value of need_locks provided by the user
13488 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13489echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13490 hard_links=yes
13491 $rm conftest*
13492 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13493 touch conftest.a
13494 ln conftest.a conftest.b 2>&5 || hard_links=no
13495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13496 echo "$as_me:$LINENO: result: $hard_links" >&5
13497echo "${ECHO_T}$hard_links" >&6
13498 if test "$hard_links" = no; then
13499 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13500echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13501 need_locks=warn
13502 fi
13503else
13504 need_locks=no
13505fi
13506
13507echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13508echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13509
13510 runpath_var=
13511 allow_undefined_flag_F77=
13512 enable_shared_with_static_runtimes_F77=no
13513 archive_cmds_F77=
13514 archive_expsym_cmds_F77=
13515 old_archive_From_new_cmds_F77=
13516 old_archive_from_expsyms_cmds_F77=
13517 export_dynamic_flag_spec_F77=
13518 whole_archive_flag_spec_F77=
13519 thread_safe_flag_spec_F77=
13520 hardcode_libdir_flag_spec_F77=
13521 hardcode_libdir_flag_spec_ld_F77=
13522 hardcode_libdir_separator_F77=
13523 hardcode_direct_F77=no
13524 hardcode_minus_L_F77=no
13525 hardcode_shlibpath_var_F77=unsupported
13526 link_all_deplibs_F77=unknown
13527 hardcode_automatic_F77=no
13528 module_cmds_F77=
13529 module_expsym_cmds_F77=
13530 always_export_symbols_F77=no
13531 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13532 # include_expsyms should be a list of space-separated symbols to be *always*
13533 # included in the symbol list
13534 include_expsyms_F77=
13535 # exclude_expsyms can be an extended regexp of symbols to exclude
13536 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13537 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13538 # as well as any symbol that contains `d'.
13539 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13540 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13541 # platforms (ab)use it in PIC code, but their linkers get confused if
13542 # the symbol is explicitly referenced. Since portable code cannot
13543 # rely on this symbol name, it's probably fine to never include it in
13544 # preloaded symbol tables.
13545 extract_expsyms_cmds=
13546
13547 case $host_os in
13548 cygwin* | mingw* | pw32*)
13549 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13550 # When not using gcc, we currently assume that we are using
13551 # Microsoft Visual C++.
13552 if test "$GCC" != yes; then
13553 with_gnu_ld=no
13554 fi
13555 ;;
13556 openbsd*)
13557 with_gnu_ld=no
13558 ;;
13559 esac
13560
13561 ld_shlibs_F77=yes
13562 if test "$with_gnu_ld" = yes; then
13563 # If archive_cmds runs LD, not CC, wlarc should be empty
13564 wlarc='${wl}'
13565
13566 # See if GNU ld supports shared libraries.
13567 case $host_os in
13568 aix3* | aix4* | aix5*)
13569 # On AIX/PPC, the GNU linker is very broken
13570 if test "$host_cpu" != ia64; then
13571 ld_shlibs_F77=no
13572 cat <<EOF 1>&2
13573
13574*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13575*** to be unable to reliably create shared libraries on AIX.
13576*** Therefore, libtool is disabling shared libraries support. If you
13577*** really care for shared libraries, you may want to modify your PATH
13578*** so that a non-GNU linker is found, and then restart.
13579
13580EOF
13581 fi
13582 ;;
13583
13584 amigaos*)
13585 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)'
13586 hardcode_libdir_flag_spec_F77='-L$libdir'
13587 hardcode_minus_L_F77=yes
13588
13589 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13590 # that the semantics of dynamic libraries on AmigaOS, at least up
13591 # to version 4, is to share data among multiple programs linked
13592 # with the same dynamic library. Since this doesn't match the
13593 # behavior of shared libraries on other platforms, we can't use
13594 # them.
13595 ld_shlibs_F77=no
13596 ;;
13597
13598 beos*)
13599 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13600 allow_undefined_flag_F77=unsupported
13601 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13602 # support --undefined. This deserves some investigation. FIXME
13603 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13604 else
13605 ld_shlibs_F77=no
13606 fi
13607 ;;
13608
13609 cygwin* | mingw* | pw32*)
13610 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13611 # as there is no search path for DLLs.
13612 hardcode_libdir_flag_spec_F77='-L$libdir'
13613 allow_undefined_flag_F77=unsupported
13614 always_export_symbols_F77=no
13615 enable_shared_with_static_runtimes_F77=yes
13616 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13617
13618 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13619 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13620 # If the export-symbols file already is a .def file (1st line
13621 # is EXPORTS), use it as is; otherwise, prepend...
13622 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13623 cp $export_symbols $output_objdir/$soname.def;
13624 else
13625 echo EXPORTS > $output_objdir/$soname.def;
13626 cat $export_symbols >> $output_objdir/$soname.def;
13627 fi~
13628 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13629 else
13630 ld_shlibs=no
13631 fi
13632 ;;
13633
hp.com!davidm16230292004-07-15 17:39:59 +000013634 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013635 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13636 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13637 wlarc=
13638 else
13639 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13640 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13641 fi
13642 ;;
13643
13644 solaris* | sysv5*)
13645 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13646 ld_shlibs_F77=no
13647 cat <<EOF 1>&2
13648
13649*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13650*** create shared libraries on Solaris systems. Therefore, libtool
13651*** is disabling shared libraries support. We urge you to upgrade GNU
13652*** binutils to release 2.9.1 or newer. Another option is to modify
13653*** your PATH or compiler configuration so that the native linker is
13654*** used, and then restart.
13655
13656EOF
13657 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13658 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13659 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13660 else
13661 ld_shlibs_F77=no
13662 fi
13663 ;;
13664
13665 sunos4*)
13666 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13667 wlarc=
13668 hardcode_direct_F77=yes
13669 hardcode_shlibpath_var_F77=no
13670 ;;
13671
13672 linux*)
hp.com!davidm2de17682004-04-20 16:53:44 +000013673 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013674 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13675 archive_cmds_F77="$tmp_archive_cmds"
13676 supports_anon_versioning=no
13677 case `$LD -v 2>/dev/null` in
13678 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13679 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13680 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13681 *\ 2.11.*) ;; # other 2.11 versions
13682 *) supports_anon_versioning=yes ;;
13683 esac
13684 if test $supports_anon_versioning = yes; then
13685 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13686cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13687$echo "local: *; };" >> $output_objdir/$libname.ver~
13688 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13689 else
13690 archive_expsym_cmds_F77="$tmp_archive_cmds"
13691 fi
hp.com!davidm2de17682004-04-20 16:53:44 +000013692 link_all_deplibs_F77=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013693 else
13694 ld_shlibs_F77=no
13695 fi
13696 ;;
13697
13698 *)
13699 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13700 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13701 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13702 else
13703 ld_shlibs_F77=no
13704 fi
13705 ;;
13706 esac
13707
13708 if test "$ld_shlibs_F77" = yes; then
13709 runpath_var=LD_RUN_PATH
13710 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13711 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13712 # ancient GNU ld didn't support --whole-archive et. al.
13713 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13714 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13715 else
13716 whole_archive_flag_spec_F77=
13717 fi
13718 fi
13719 else
13720 # PORTME fill in a description of your system's linker (not GNU ld)
13721 case $host_os in
13722 aix3*)
13723 allow_undefined_flag_F77=unsupported
13724 always_export_symbols_F77=yes
13725 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'
13726 # Note: this linker hardcodes the directories in LIBPATH if there
13727 # are no directories specified by -L.
13728 hardcode_minus_L_F77=yes
13729 if test "$GCC" = yes && test -z "$link_static_flag"; then
13730 # Neither direct hardcoding nor static linking is supported with a
13731 # broken collect2.
13732 hardcode_direct_F77=unsupported
13733 fi
13734 ;;
13735
13736 aix4* | aix5*)
13737 if test "$host_cpu" = ia64; then
13738 # On IA64, the linker does run time linking by default, so we don't
13739 # have to do anything special.
13740 aix_use_runtimelinking=no
13741 exp_sym_flag='-Bexport'
13742 no_entry_flag=""
13743 else
13744 # If we're using GNU nm, then we don't want the "-C" option.
13745 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13746 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13747 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'
13748 else
13749 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'
13750 fi
13751 aix_use_runtimelinking=no
13752
13753 # Test if we are trying to use run time linking or normal
13754 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13755 # need to do runtime linking.
13756 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13757 for ld_flag in $LDFLAGS; do
13758 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13759 aix_use_runtimelinking=yes
13760 break
13761 fi
13762 done
13763 esac
13764
13765 exp_sym_flag='-bexport'
13766 no_entry_flag='-bnoentry'
13767 fi
13768
13769 # When large executables or shared objects are built, AIX ld can
13770 # have problems creating the table of contents. If linking a library
13771 # or program results in "error TOC overflow" add -mminimal-toc to
13772 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13773 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13774
13775 archive_cmds_F77=''
13776 hardcode_direct_F77=yes
13777 hardcode_libdir_separator_F77=':'
13778 link_all_deplibs_F77=yes
13779
13780 if test "$GCC" = yes; then
13781 case $host_os in aix4.012|aix4.012.*)
13782 # We only want to do this on AIX 4.2 and lower, the check
13783 # below for broken collect2 doesn't work under 4.3+
13784 collect2name=`${CC} -print-prog-name=collect2`
13785 if test -f "$collect2name" && \
13786 strings "$collect2name" | grep resolve_lib_name >/dev/null
13787 then
13788 # We have reworked collect2
13789 hardcode_direct_F77=yes
13790 else
13791 # We have old collect2
13792 hardcode_direct_F77=unsupported
13793 # It fails to find uninstalled libraries when the uninstalled
13794 # path is not listed in the libpath. Setting hardcode_minus_L
13795 # to unsupported forces relinking
13796 hardcode_minus_L_F77=yes
13797 hardcode_libdir_flag_spec_F77='-L$libdir'
13798 hardcode_libdir_separator_F77=
13799 fi
13800 esac
13801 shared_flag='-shared'
13802 else
13803 # not using gcc
13804 if test "$host_cpu" = ia64; then
13805 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13806 # chokes on -Wl,-G. The following line is correct:
13807 shared_flag='-G'
13808 else
13809 if test "$aix_use_runtimelinking" = yes; then
13810 shared_flag='${wl}-G'
13811 else
13812 shared_flag='${wl}-bM:SRE'
13813 fi
13814 fi
13815 fi
13816
13817 # It seems that -bexpall does not export symbols beginning with
13818 # underscore (_), so it is better to generate a list of symbols to export.
13819 always_export_symbols_F77=yes
13820 if test "$aix_use_runtimelinking" = yes; then
13821 # Warning - without using the other runtime loading flags (-brtl),
13822 # -berok will link without error, but may produce a broken library.
13823 allow_undefined_flag_F77='-berok'
13824 # Determine the default libpath from the value encoded in an empty executable.
13825 cat >conftest.$ac_ext <<_ACEOF
13826 program main
13827
13828 end
13829_ACEOF
13830rm -f conftest.$ac_objext conftest$ac_exeext
13831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013832 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013833 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013834 grep -v '^ *+' conftest.er1 >conftest.err
13835 rm -f conftest.er1
13836 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013839 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841 (eval $ac_try) 2>&5
13842 ac_status=$?
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; } &&
13845 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13848 ac_status=$?
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; }; then
13851
13852aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13853}'`
13854# Check for a 64-bit object if we didn't find anything.
13855if 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; }
13856}'`; fi
13857else
13858 echo "$as_me: failed program was:" >&5
13859sed 's/^/| /' conftest.$ac_ext >&5
13860
13861fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013862rm -f conftest.err conftest.$ac_objext \
13863 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013864if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13865
13866 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13867 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"
13868 else
13869 if test "$host_cpu" = ia64; then
13870 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13871 allow_undefined_flag_F77="-z nodefs"
13872 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"
13873 else
13874 # Determine the default libpath from the value encoded in an empty executable.
13875 cat >conftest.$ac_ext <<_ACEOF
13876 program main
13877
13878 end
13879_ACEOF
13880rm -f conftest.$ac_objext conftest$ac_exeext
13881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013882 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013883 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013884 grep -v '^ *+' conftest.er1 >conftest.err
13885 rm -f conftest.er1
13886 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013889 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891 (eval $ac_try) 2>&5
13892 ac_status=$?
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; } &&
13895 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13901
13902aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13903}'`
13904# Check for a 64-bit object if we didn't find anything.
13905if 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; }
13906}'`; fi
13907else
13908 echo "$as_me: failed program was:" >&5
13909sed 's/^/| /' conftest.$ac_ext >&5
13910
13911fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013912rm -f conftest.err conftest.$ac_objext \
13913 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013914if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13915
13916 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13917 # Warning - without using the other run time loading flags,
13918 # -berok will link without error, but may produce a broken library.
13919 no_undefined_flag_F77=' ${wl}-bernotok'
13920 allow_undefined_flag_F77=' ${wl}-berok'
13921 # -bexpall does not export symbols beginning with underscore (_)
13922 always_export_symbols_F77=yes
13923 # Exported symbols can be pulled into shared objects from archives
13924 whole_archive_flag_spec_F77=' '
13925 archive_cmds_need_lc_F77=yes
13926 # This is similar to how AIX traditionally builds it's shared libraries.
13927 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'
13928 fi
13929 fi
13930 ;;
13931
13932 amigaos*)
13933 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)'
13934 hardcode_libdir_flag_spec_F77='-L$libdir'
13935 hardcode_minus_L_F77=yes
13936 # see comment about different semantics on the GNU ld section
13937 ld_shlibs_F77=no
13938 ;;
13939
13940 bsdi4*)
13941 export_dynamic_flag_spec_F77=-rdynamic
13942 ;;
13943
13944 cygwin* | mingw* | pw32*)
13945 # When not using gcc, we currently assume that we are using
13946 # Microsoft Visual C++.
13947 # hardcode_libdir_flag_spec is actually meaningless, as there is
13948 # no search path for DLLs.
13949 hardcode_libdir_flag_spec_F77=' '
13950 allow_undefined_flag_F77=unsupported
13951 # Tell ltmain to make .lib files, not .a files.
13952 libext=lib
13953 # Tell ltmain to make .dll files, not .so files.
hp.com!davidm2de17682004-04-20 16:53:44 +000013954 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013955 # FIXME: Setting linknames here is a bad hack.
13956 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13957 # The linker will automatically build a .lib file if we build a DLL.
13958 old_archive_From_new_cmds_F77='true'
13959 # FIXME: Should let the user specify the lib program.
13960 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13961 fix_srcfile_path='`cygpath -w "$srcfile"`'
13962 enable_shared_with_static_runtimes_F77=yes
13963 ;;
13964
13965 darwin* | rhapsody*)
13966 if test "$GXX" = yes ; then
13967 archive_cmds_need_lc_F77=no
13968 case "$host_os" in
13969 rhapsody* | darwin1.[012])
13970 allow_undefined_flag_F77='-undefined suppress'
13971 ;;
13972 *) # Darwin 1.3 on
13973 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13974 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13975 else
13976 case ${MACOSX_DEPLOYMENT_TARGET} in
13977 10.[012])
13978 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13979 ;;
13980 10.*)
13981 allow_undefined_flag_F77='-undefined dynamic_lookup'
13982 ;;
13983 esac
13984 fi
13985 ;;
13986 esac
13987 lt_int_apple_cc_single_mod=no
13988 output_verbose_link_cmd='echo'
13989 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13990 lt_int_apple_cc_single_mod=yes
13991 fi
13992 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13993 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13994 else
13995 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'
13996 fi
13997 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13998 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13999 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14000 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}'
14001 else
14002 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}'
14003 fi
14004 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}'
14005 hardcode_direct_F77=no
14006 hardcode_automatic_F77=yes
14007 hardcode_shlibpath_var_F77=unsupported
14008 whole_archive_flag_spec_F77='-all_load $convenience'
14009 link_all_deplibs_F77=yes
14010 else
14011 ld_shlibs_F77=no
14012 fi
14013 ;;
14014
14015 dgux*)
14016 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14017 hardcode_libdir_flag_spec_F77='-L$libdir'
14018 hardcode_shlibpath_var_F77=no
14019 ;;
14020
14021 freebsd1*)
14022 ld_shlibs_F77=no
14023 ;;
14024
14025 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14026 # support. Future versions do this automatically, but an explicit c++rt0.o
14027 # does not break anything, and helps significantly (at the cost of a little
14028 # extra space).
14029 freebsd2.2*)
14030 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14031 hardcode_libdir_flag_spec_F77='-R$libdir'
14032 hardcode_direct_F77=yes
14033 hardcode_shlibpath_var_F77=no
14034 ;;
14035
14036 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14037 freebsd2*)
14038 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14039 hardcode_direct_F77=yes
14040 hardcode_minus_L_F77=yes
14041 hardcode_shlibpath_var_F77=no
14042 ;;
14043
14044 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14045 freebsd* | kfreebsd*-gnu)
14046 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14047 hardcode_libdir_flag_spec_F77='-R$libdir'
14048 hardcode_direct_F77=yes
14049 hardcode_shlibpath_var_F77=no
14050 ;;
14051
14052 hpux9*)
14053 if test "$GCC" = yes; then
14054 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'
14055 else
14056 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'
14057 fi
14058 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14059 hardcode_libdir_separator_F77=:
14060 hardcode_direct_F77=yes
14061
14062 # hardcode_minus_L: Not really in the search PATH,
14063 # but as the default location of the library.
14064 hardcode_minus_L_F77=yes
14065 export_dynamic_flag_spec_F77='${wl}-E'
14066 ;;
14067
14068 hpux10* | hpux11*)
14069 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14070 case "$host_cpu" in
14071 hppa*64*|ia64*)
14072 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14073 ;;
14074 *)
14075 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14076 ;;
14077 esac
14078 else
14079 case "$host_cpu" in
14080 hppa*64*|ia64*)
14081 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14082 ;;
14083 *)
14084 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14085 ;;
14086 esac
14087 fi
14088 if test "$with_gnu_ld" = no; then
14089 case "$host_cpu" in
14090 hppa*64*)
14091 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14092 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14093 hardcode_libdir_separator_F77=:
14094 hardcode_direct_F77=no
14095 hardcode_shlibpath_var_F77=no
14096 ;;
14097 ia64*)
14098 hardcode_libdir_flag_spec_F77='-L$libdir'
14099 hardcode_direct_F77=no
14100 hardcode_shlibpath_var_F77=no
14101
14102 # hardcode_minus_L: Not really in the search PATH,
14103 # but as the default location of the library.
14104 hardcode_minus_L_F77=yes
14105 ;;
14106 *)
14107 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14108 hardcode_libdir_separator_F77=:
14109 hardcode_direct_F77=yes
14110 export_dynamic_flag_spec_F77='${wl}-E'
14111
14112 # hardcode_minus_L: Not really in the search PATH,
14113 # but as the default location of the library.
14114 hardcode_minus_L_F77=yes
14115 ;;
14116 esac
14117 fi
14118 ;;
14119
14120 irix5* | irix6* | nonstopux*)
14121 if test "$GCC" = yes; then
14122 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'
14123 else
14124 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'
14125 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14126 fi
14127 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14128 hardcode_libdir_separator_F77=:
14129 link_all_deplibs_F77=yes
14130 ;;
14131
hp.com!davidm16230292004-07-15 17:39:59 +000014132 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014133 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14134 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14135 else
14136 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14137 fi
14138 hardcode_libdir_flag_spec_F77='-R$libdir'
14139 hardcode_direct_F77=yes
14140 hardcode_shlibpath_var_F77=no
14141 ;;
14142
14143 newsos6)
14144 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14145 hardcode_direct_F77=yes
14146 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14147 hardcode_libdir_separator_F77=:
14148 hardcode_shlibpath_var_F77=no
14149 ;;
14150
14151 openbsd*)
14152 hardcode_direct_F77=yes
14153 hardcode_shlibpath_var_F77=no
14154 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14155 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14156 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14157 export_dynamic_flag_spec_F77='${wl}-E'
14158 else
14159 case $host_os in
14160 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14161 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14162 hardcode_libdir_flag_spec_F77='-R$libdir'
14163 ;;
14164 *)
14165 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14166 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14167 ;;
14168 esac
14169 fi
14170 ;;
14171
14172 os2*)
14173 hardcode_libdir_flag_spec_F77='-L$libdir'
14174 hardcode_minus_L_F77=yes
14175 allow_undefined_flag_F77=unsupported
14176 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'
14177 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14178 ;;
14179
14180 osf3*)
14181 if test "$GCC" = yes; then
14182 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14183 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'
14184 else
14185 allow_undefined_flag_F77=' -expect_unresolved \*'
14186 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'
14187 fi
14188 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14189 hardcode_libdir_separator_F77=:
14190 ;;
14191
14192 osf4* | osf5*) # as osf3* with the addition of -msym flag
14193 if test "$GCC" = yes; then
14194 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14195 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'
14196 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14197 else
14198 allow_undefined_flag_F77=' -expect_unresolved \*'
14199 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'
14200 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~
14201 $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'
14202
14203 # Both c and cxx compiler support -rpath directly
14204 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14205 fi
14206 hardcode_libdir_separator_F77=:
14207 ;;
14208
14209 sco3.2v5*)
14210 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14211 hardcode_shlibpath_var_F77=no
14212 export_dynamic_flag_spec_F77='${wl}-Bexport'
14213 runpath_var=LD_RUN_PATH
14214 hardcode_runpath_var=yes
14215 ;;
14216
14217 solaris*)
14218 no_undefined_flag_F77=' -z text'
14219 if test "$GCC" = yes; then
14220 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14221 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14222 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14223 else
14224 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14225 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14226 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14227 fi
14228 hardcode_libdir_flag_spec_F77='-R$libdir'
14229 hardcode_shlibpath_var_F77=no
14230 case $host_os in
14231 solaris2.[0-5] | solaris2.[0-5].*) ;;
14232 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14233 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14234 esac
14235 link_all_deplibs_F77=yes
14236 ;;
14237
14238 sunos4*)
14239 if test "x$host_vendor" = xsequent; then
14240 # Use $CC to link under sequent, because it throws in some extra .o
14241 # files that make .init and .fini sections work.
14242 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14243 else
14244 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14245 fi
14246 hardcode_libdir_flag_spec_F77='-L$libdir'
14247 hardcode_direct_F77=yes
14248 hardcode_minus_L_F77=yes
14249 hardcode_shlibpath_var_F77=no
14250 ;;
14251
14252 sysv4)
14253 case $host_vendor in
14254 sni)
14255 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14256 hardcode_direct_F77=yes # is this really true???
14257 ;;
14258 siemens)
14259 ## LD is ld it makes a PLAMLIB
14260 ## CC just makes a GrossModule.
14261 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14262 reload_cmds_F77='$CC -r -o $output$reload_objs'
14263 hardcode_direct_F77=no
14264 ;;
14265 motorola)
14266 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14267 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14268 ;;
14269 esac
14270 runpath_var='LD_RUN_PATH'
14271 hardcode_shlibpath_var_F77=no
14272 ;;
14273
14274 sysv4.3*)
14275 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14276 hardcode_shlibpath_var_F77=no
14277 export_dynamic_flag_spec_F77='-Bexport'
14278 ;;
14279
14280 sysv4*MP*)
14281 if test -d /usr/nec; then
14282 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14283 hardcode_shlibpath_var_F77=no
14284 runpath_var=LD_RUN_PATH
14285 hardcode_runpath_var=yes
14286 ld_shlibs_F77=yes
14287 fi
14288 ;;
14289
14290 sysv4.2uw2*)
14291 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14292 hardcode_direct_F77=yes
14293 hardcode_minus_L_F77=no
14294 hardcode_shlibpath_var_F77=no
14295 hardcode_runpath_var=yes
14296 runpath_var=LD_RUN_PATH
14297 ;;
14298
14299 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14300 no_undefined_flag_F77='${wl}-z ${wl}text'
14301 if test "$GCC" = yes; then
14302 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14303 else
14304 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14305 fi
14306 runpath_var='LD_RUN_PATH'
14307 hardcode_shlibpath_var_F77=no
14308 ;;
14309
14310 sysv5*)
14311 no_undefined_flag_F77=' -z text'
14312 # $CC -shared without GNU ld will not create a library from C++
14313 # object files and a static libstdc++, better avoid it by now
14314 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14315 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14316 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14317 hardcode_libdir_flag_spec_F77=
14318 hardcode_shlibpath_var_F77=no
14319 runpath_var='LD_RUN_PATH'
14320 ;;
14321
14322 uts4*)
14323 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14324 hardcode_libdir_flag_spec_F77='-L$libdir'
14325 hardcode_shlibpath_var_F77=no
14326 ;;
14327
14328 *)
14329 ld_shlibs_F77=no
14330 ;;
14331 esac
14332 fi
14333
14334echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14335echo "${ECHO_T}$ld_shlibs_F77" >&6
14336test "$ld_shlibs_F77" = no && can_build_shared=no
14337
14338variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14339if test "$GCC" = yes; then
14340 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14341fi
14342
14343#
14344# Do we need to explicitly link libc?
14345#
14346case "x$archive_cmds_need_lc_F77" in
14347x|xyes)
14348 # Assume -lc should be added
14349 archive_cmds_need_lc_F77=yes
14350
14351 if test "$enable_shared" = yes && test "$GCC" = yes; then
14352 case $archive_cmds_F77 in
14353 *'~'*)
14354 # FIXME: we may have to deal with multi-command sequences.
14355 ;;
14356 '$CC '*)
14357 # Test whether the compiler implicitly links with -lc since on some
14358 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14359 # to ld, don't add -lc before -lgcc.
14360 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14361echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14362 $rm conftest*
14363 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14364
14365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14366 (eval $ac_compile) 2>&5
14367 ac_status=$?
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } 2>conftest.err; then
14370 soname=conftest
14371 lib=conftest
14372 libobjs=conftest.$ac_objext
14373 deplibs=
14374 wl=$lt_prog_compiler_wl_F77
14375 compiler_flags=-v
14376 linker_flags=-v
14377 verstring=
14378 output_objdir=.
14379 libname=conftest
14380 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14381 allow_undefined_flag_F77=
14382 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14383 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14384 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }
14387 then
14388 archive_cmds_need_lc_F77=no
14389 else
14390 archive_cmds_need_lc_F77=yes
14391 fi
14392 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14393 else
14394 cat conftest.err 1>&5
14395 fi
14396 $rm conftest*
14397 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14398echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14399 ;;
14400 esac
14401 fi
14402 ;;
14403esac
14404
14405echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14406echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14407library_names_spec=
14408libname_spec='lib$name'
14409soname_spec=
hp.com!davidm2de17682004-04-20 16:53:44 +000014410shrext_cmds=".so"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014411postinstall_cmds=
14412postuninstall_cmds=
14413finish_cmds=
14414finish_eval=
14415shlibpath_var=
14416shlibpath_overrides_runpath=unknown
14417version_type=none
14418dynamic_linker="$host_os ld.so"
14419sys_lib_dlsearch_path_spec="/lib /usr/lib"
14420if test "$GCC" = yes; then
14421 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14422 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14423 # if the path contains ";" then we assume it to be the separator
14424 # otherwise default to the standard path separator (i.e. ":") - it is
14425 # assumed that no part of a normal pathname contains ";" but that should
14426 # okay in the real world where ";" in dirpaths is itself problematic.
14427 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14428 else
14429 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14430 fi
14431else
14432 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14433fi
14434need_lib_prefix=unknown
14435hardcode_into_libs=no
14436
14437# when you set need_version to no, make sure it does not cause -set_version
14438# flags to be left without arguments
14439need_version=unknown
14440
14441case $host_os in
14442aix3*)
14443 version_type=linux
14444 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14445 shlibpath_var=LIBPATH
14446
14447 # AIX 3 has no versioning support, so we append a major version to the name.
14448 soname_spec='${libname}${release}${shared_ext}$major'
14449 ;;
14450
14451aix4* | aix5*)
14452 version_type=linux
14453 need_lib_prefix=no
14454 need_version=no
14455 hardcode_into_libs=yes
14456 if test "$host_cpu" = ia64; then
14457 # AIX 5 supports IA64
14458 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14459 shlibpath_var=LD_LIBRARY_PATH
14460 else
14461 # With GCC up to 2.95.x, collect2 would create an import file
14462 # for dependence libraries. The import file would start with
14463 # the line `#! .'. This would cause the generated library to
14464 # depend on `.', always an invalid library. This was fixed in
14465 # development snapshots of GCC prior to 3.0.
14466 case $host_os in
14467 aix4 | aix4.[01] | aix4.[01].*)
14468 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14469 echo ' yes '
14470 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14471 :
14472 else
14473 can_build_shared=no
14474 fi
14475 ;;
14476 esac
14477 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14478 # soname into executable. Probably we can add versioning support to
14479 # collect2, so additional links can be useful in future.
14480 if test "$aix_use_runtimelinking" = yes; then
14481 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14482 # instead of lib<name>.a to let people know that these are not
14483 # typical AIX shared libraries.
14484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14485 else
14486 # We preserve .a as extension for shared libraries through AIX4.2
14487 # and later when we are not doing run time linking.
14488 library_names_spec='${libname}${release}.a $libname.a'
14489 soname_spec='${libname}${release}${shared_ext}$major'
14490 fi
14491 shlibpath_var=LIBPATH
14492 fi
14493 ;;
14494
14495amigaos*)
14496 library_names_spec='$libname.ixlibrary $libname.a'
14497 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14498 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'
14499 ;;
14500
14501beos*)
14502 library_names_spec='${libname}${shared_ext}'
14503 dynamic_linker="$host_os ld.so"
14504 shlibpath_var=LIBRARY_PATH
14505 ;;
14506
14507bsdi4*)
14508 version_type=linux
14509 need_version=no
14510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14511 soname_spec='${libname}${release}${shared_ext}$major'
14512 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14513 shlibpath_var=LD_LIBRARY_PATH
14514 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14515 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14516 # the default ld.so.conf also contains /usr/contrib/lib and
14517 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14518 # libtool to hard-code these into programs
14519 ;;
14520
14521cygwin* | mingw* | pw32*)
14522 version_type=windows
hp.com!davidm2de17682004-04-20 16:53:44 +000014523 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014524 need_version=no
14525 need_lib_prefix=no
14526
14527 case $GCC,$host_os in
14528 yes,cygwin* | yes,mingw* | yes,pw32*)
14529 library_names_spec='$libname.dll.a'
14530 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14531 postinstall_cmds='base_file=`basename \${file}`~
14532 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14533 dldir=$destdir/`dirname \$dlpath`~
14534 test -d \$dldir || mkdir -p \$dldir~
14535 $install_prog $dir/$dlname \$dldir/$dlname'
14536 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14537 dlpath=$dir/\$dldll~
14538 $rm \$dlpath'
14539 shlibpath_overrides_runpath=yes
14540
14541 case $host_os in
14542 cygwin*)
14543 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14544 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14545 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14546 ;;
14547 mingw*)
14548 # MinGW DLLs use traditional 'lib' prefix
14549 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14550 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14551 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14552 # It is most probably a Windows format PATH printed by
14553 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14554 # path with ; separators, and with drive letters. We can handle the
14555 # drive letters (cygwin fileutils understands them), so leave them,
14556 # especially as we might pass files found there to a mingw objdump,
14557 # which wouldn't understand a cygwinified path. Ahh.
14558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14559 else
14560 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14561 fi
14562 ;;
14563 pw32*)
14564 # pw32 DLLs use 'pw' prefix rather than 'lib'
14565 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14566 ;;
14567 esac
14568 ;;
14569
14570 *)
14571 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14572 ;;
14573 esac
14574 dynamic_linker='Win32 ld.exe'
14575 # FIXME: first we should search . and the directory the executable is in
14576 shlibpath_var=PATH
14577 ;;
14578
14579darwin* | rhapsody*)
14580 dynamic_linker="$host_os dyld"
14581 version_type=darwin
14582 need_lib_prefix=no
14583 need_version=no
14584 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14585 soname_spec='${libname}${release}${major}$shared_ext'
14586 shlibpath_overrides_runpath=yes
14587 shlibpath_var=DYLD_LIBRARY_PATH
hp.com!davidm2de17682004-04-20 16:53:44 +000014588 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014589 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14590 if test "$GCC" = yes; then
14591 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"`
14592 else
14593 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14594 fi
14595 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14596 ;;
14597
14598dgux*)
14599 version_type=linux
14600 need_lib_prefix=no
14601 need_version=no
14602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14603 soname_spec='${libname}${release}${shared_ext}$major'
14604 shlibpath_var=LD_LIBRARY_PATH
14605 ;;
14606
14607freebsd1*)
14608 dynamic_linker=no
14609 ;;
14610
14611kfreebsd*-gnu)
14612 version_type=linux
14613 need_lib_prefix=no
14614 need_version=no
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14616 soname_spec='${libname}${release}${shared_ext}$major'
14617 shlibpath_var=LD_LIBRARY_PATH
14618 shlibpath_overrides_runpath=no
14619 hardcode_into_libs=yes
14620 dynamic_linker='GNU ld.so'
14621 ;;
14622
14623freebsd*)
14624 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14625 version_type=freebsd-$objformat
14626 case $version_type in
14627 freebsd-elf*)
14628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14629 need_version=no
14630 need_lib_prefix=no
14631 ;;
14632 freebsd-*)
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14634 need_version=yes
14635 ;;
14636 esac
14637 shlibpath_var=LD_LIBRARY_PATH
14638 case $host_os in
14639 freebsd2*)
14640 shlibpath_overrides_runpath=yes
14641 ;;
14642 freebsd3.01* | freebsdelf3.01*)
14643 shlibpath_overrides_runpath=yes
14644 hardcode_into_libs=yes
14645 ;;
14646 *) # from 3.2 on
14647 shlibpath_overrides_runpath=no
14648 hardcode_into_libs=yes
14649 ;;
14650 esac
14651 ;;
14652
14653gnu*)
14654 version_type=linux
14655 need_lib_prefix=no
14656 need_version=no
14657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14658 soname_spec='${libname}${release}${shared_ext}$major'
14659 shlibpath_var=LD_LIBRARY_PATH
14660 hardcode_into_libs=yes
14661 ;;
14662
14663hpux9* | hpux10* | hpux11*)
14664 # Give a soname corresponding to the major version so that dld.sl refuses to
14665 # link against other versions.
14666 version_type=sunos
14667 need_lib_prefix=no
14668 need_version=no
14669 case "$host_cpu" in
14670 ia64*)
hp.com!davidm2de17682004-04-20 16:53:44 +000014671 shrext_cmds='.so'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014672 hardcode_into_libs=yes
14673 dynamic_linker="$host_os dld.so"
14674 shlibpath_var=LD_LIBRARY_PATH
14675 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14677 soname_spec='${libname}${release}${shared_ext}$major'
14678 if test "X$HPUX_IA64_MODE" = X32; then
14679 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14680 else
14681 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14682 fi
14683 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14684 ;;
14685 hppa*64*)
hp.com!davidm2de17682004-04-20 16:53:44 +000014686 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014687 hardcode_into_libs=yes
14688 dynamic_linker="$host_os dld.sl"
14689 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14690 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14692 soname_spec='${libname}${release}${shared_ext}$major'
14693 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14694 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14695 ;;
14696 *)
hp.com!davidm2de17682004-04-20 16:53:44 +000014697 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014698 dynamic_linker="$host_os dld.sl"
14699 shlibpath_var=SHLIB_PATH
14700 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14702 soname_spec='${libname}${release}${shared_ext}$major'
14703 ;;
14704 esac
14705 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14706 postinstall_cmds='chmod 555 $lib'
14707 ;;
14708
14709irix5* | irix6* | nonstopux*)
14710 case $host_os in
14711 nonstopux*) version_type=nonstopux ;;
14712 *)
14713 if test "$lt_cv_prog_gnu_ld" = yes; then
14714 version_type=linux
14715 else
14716 version_type=irix
14717 fi ;;
14718 esac
14719 need_lib_prefix=no
14720 need_version=no
14721 soname_spec='${libname}${release}${shared_ext}$major'
14722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14723 case $host_os in
14724 irix5* | nonstopux*)
14725 libsuff= shlibsuff=
14726 ;;
14727 *)
14728 case $LD in # libtool.m4 will add one of these switches to LD
14729 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14730 libsuff= shlibsuff= libmagic=32-bit;;
14731 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14732 libsuff=32 shlibsuff=N32 libmagic=N32;;
14733 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14734 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14735 *) libsuff= shlibsuff= libmagic=never-match;;
14736 esac
14737 ;;
14738 esac
14739 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14740 shlibpath_overrides_runpath=no
14741 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14742 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14743 hardcode_into_libs=yes
14744 ;;
14745
14746# No shared lib support for Linux oldld, aout, or coff.
14747linux*oldld* | linux*aout* | linux*coff*)
14748 dynamic_linker=no
14749 ;;
14750
14751# This must be Linux ELF.
14752linux*)
14753 version_type=linux
14754 need_lib_prefix=no
14755 need_version=no
14756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14757 soname_spec='${libname}${release}${shared_ext}$major'
14758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14759 shlibpath_var=LD_LIBRARY_PATH
14760 shlibpath_overrides_runpath=no
14761 # This implies no fast_install, which is unacceptable.
14762 # Some rework will be needed to allow for fast_install
14763 # before this can be enabled.
14764 hardcode_into_libs=yes
14765
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000014766 # Append ld.so.conf contents to the search path
14767 if test -f /etc/ld.so.conf; then
hp.com!davidm2de17682004-04-20 16:53:44 +000014768 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14769 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000014770 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014771
14772 # We used to test for /lib/ld.so.1 and disable shared libraries on
14773 # powerpc, because MkLinux only supported shared libraries with the
14774 # GNU dynamic linker. Since this was broken with cross compilers,
14775 # most powerpc-linux boxes support dynamic linking these days and
14776 # people can always --disable-shared, the test was removed, and we
14777 # assume the GNU/Linux dynamic linker is in use.
14778 dynamic_linker='GNU/Linux ld.so'
14779 ;;
14780
hp.com!davidm16230292004-07-15 17:39:59 +000014781netbsdelf*-gnu)
14782 version_type=linux
14783 need_lib_prefix=no
14784 need_version=no
14785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14786 soname_spec='${libname}${release}${shared_ext}$major'
14787 shlibpath_var=LD_LIBRARY_PATH
14788 shlibpath_overrides_runpath=no
14789 hardcode_into_libs=yes
14790 dynamic_linker='NetBSD ld.elf_so'
14791 ;;
14792
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014793knetbsd*-gnu)
14794 version_type=linux
14795 need_lib_prefix=no
14796 need_version=no
14797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14798 soname_spec='${libname}${release}${shared_ext}$major'
14799 shlibpath_var=LD_LIBRARY_PATH
14800 shlibpath_overrides_runpath=no
14801 hardcode_into_libs=yes
14802 dynamic_linker='GNU ld.so'
14803 ;;
14804
14805netbsd*)
14806 version_type=sunos
14807 need_lib_prefix=no
14808 need_version=no
14809 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14812 dynamic_linker='NetBSD (a.out) ld.so'
14813 else
hp.com!davidm2de17682004-04-20 16:53:44 +000014814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014815 soname_spec='${libname}${release}${shared_ext}$major'
14816 dynamic_linker='NetBSD ld.elf_so'
14817 fi
14818 shlibpath_var=LD_LIBRARY_PATH
14819 shlibpath_overrides_runpath=yes
14820 hardcode_into_libs=yes
14821 ;;
14822
14823newsos6)
14824 version_type=linux
14825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14826 shlibpath_var=LD_LIBRARY_PATH
14827 shlibpath_overrides_runpath=yes
14828 ;;
14829
14830nto-qnx*)
14831 version_type=linux
14832 need_lib_prefix=no
14833 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
14837 shlibpath_overrides_runpath=yes
14838 ;;
14839
14840openbsd*)
14841 version_type=sunos
14842 need_lib_prefix=no
14843 need_version=yes
14844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14846 shlibpath_var=LD_LIBRARY_PATH
14847 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14848 case $host_os in
14849 openbsd2.[89] | openbsd2.[89].*)
14850 shlibpath_overrides_runpath=no
14851 ;;
14852 *)
14853 shlibpath_overrides_runpath=yes
14854 ;;
14855 esac
14856 else
14857 shlibpath_overrides_runpath=yes
14858 fi
14859 ;;
14860
14861os2*)
14862 libname_spec='$name'
hp.com!davidm2de17682004-04-20 16:53:44 +000014863 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014864 need_lib_prefix=no
14865 library_names_spec='$libname${shared_ext} $libname.a'
14866 dynamic_linker='OS/2 ld.exe'
14867 shlibpath_var=LIBPATH
14868 ;;
14869
14870osf3* | osf4* | osf5*)
14871 version_type=osf
14872 need_lib_prefix=no
14873 need_version=no
14874 soname_spec='${libname}${release}${shared_ext}$major'
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876 shlibpath_var=LD_LIBRARY_PATH
14877 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14878 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14879 ;;
14880
14881sco3.2v5*)
14882 version_type=osf
14883 soname_spec='${libname}${release}${shared_ext}$major'
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885 shlibpath_var=LD_LIBRARY_PATH
14886 ;;
14887
14888solaris*)
14889 version_type=linux
14890 need_lib_prefix=no
14891 need_version=no
14892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14893 soname_spec='${libname}${release}${shared_ext}$major'
14894 shlibpath_var=LD_LIBRARY_PATH
14895 shlibpath_overrides_runpath=yes
14896 hardcode_into_libs=yes
14897 # ldd complains unless libraries are executable
14898 postinstall_cmds='chmod +x $lib'
14899 ;;
14900
14901sunos4*)
14902 version_type=sunos
14903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14904 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14905 shlibpath_var=LD_LIBRARY_PATH
14906 shlibpath_overrides_runpath=yes
14907 if test "$with_gnu_ld" = yes; then
14908 need_lib_prefix=no
14909 fi
14910 need_version=yes
14911 ;;
14912
14913sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14914 version_type=linux
14915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14916 soname_spec='${libname}${release}${shared_ext}$major'
14917 shlibpath_var=LD_LIBRARY_PATH
14918 case $host_vendor in
14919 sni)
14920 shlibpath_overrides_runpath=no
14921 need_lib_prefix=no
14922 export_dynamic_flag_spec='${wl}-Blargedynsym'
14923 runpath_var=LD_RUN_PATH
14924 ;;
14925 siemens)
14926 need_lib_prefix=no
14927 ;;
14928 motorola)
14929 need_lib_prefix=no
14930 need_version=no
14931 shlibpath_overrides_runpath=no
14932 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14933 ;;
14934 esac
14935 ;;
14936
14937sysv4*MP*)
14938 if test -d /usr/nec ;then
14939 version_type=linux
14940 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14941 soname_spec='$libname${shared_ext}.$major'
14942 shlibpath_var=LD_LIBRARY_PATH
14943 fi
14944 ;;
14945
14946uts4*)
14947 version_type=linux
14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949 soname_spec='${libname}${release}${shared_ext}$major'
14950 shlibpath_var=LD_LIBRARY_PATH
14951 ;;
14952
14953*)
14954 dynamic_linker=no
14955 ;;
14956esac
14957echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14958echo "${ECHO_T}$dynamic_linker" >&6
14959test "$dynamic_linker" = no && can_build_shared=no
14960
14961echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14962echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14963hardcode_action_F77=
14964if test -n "$hardcode_libdir_flag_spec_F77" || \
14965 test -n "$runpath_var F77" || \
14966 test "X$hardcode_automatic_F77"="Xyes" ; then
14967
14968 # We can hardcode non-existant directories.
14969 if test "$hardcode_direct_F77" != no &&
14970 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14971 # have to relink, otherwise we might link with an installed library
14972 # when we should be linking with a yet-to-be-installed one
14973 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14974 test "$hardcode_minus_L_F77" != no; then
14975 # Linking always hardcodes the temporary library directory.
14976 hardcode_action_F77=relink
14977 else
14978 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14979 hardcode_action_F77=immediate
14980 fi
14981else
14982 # We cannot hardcode anything, or else we can only hardcode existing
14983 # directories.
14984 hardcode_action_F77=unsupported
14985fi
14986echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14987echo "${ECHO_T}$hardcode_action_F77" >&6
14988
14989if test "$hardcode_action_F77" = relink; then
14990 # Fast installation is not supported
14991 enable_fast_install=no
14992elif test "$shlibpath_overrides_runpath" = yes ||
14993 test "$enable_shared" = no; then
14994 # Fast installation is not necessary
14995 enable_fast_install=needless
14996fi
14997
14998striplib=
14999old_striplib=
15000echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15001echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15002if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15003 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15004 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15005 echo "$as_me:$LINENO: result: yes" >&5
15006echo "${ECHO_T}yes" >&6
15007else
15008# FIXME - insert some real tests, host_os isn't really good enough
15009 case $host_os in
15010 darwin*)
15011 if test -n "$STRIP" ; then
15012 striplib="$STRIP -x"
15013 echo "$as_me:$LINENO: result: yes" >&5
15014echo "${ECHO_T}yes" >&6
15015 else
15016 echo "$as_me:$LINENO: result: no" >&5
15017echo "${ECHO_T}no" >&6
15018fi
15019 ;;
15020 *)
15021 echo "$as_me:$LINENO: result: no" >&5
15022echo "${ECHO_T}no" >&6
15023 ;;
15024 esac
15025fi
15026
15027
15028
15029# The else clause should only fire when bootstrapping the
15030# libtool distribution, otherwise you forgot to ship ltmain.sh
15031# with your package, and you will get complaints that there are
15032# no rules to generate ltmain.sh.
15033if test -f "$ltmain"; then
15034 # See if we are running on zsh, and set the options which allow our commands through
15035 # without removal of \ escapes.
15036 if test -n "${ZSH_VERSION+set}" ; then
15037 setopt NO_GLOB_SUBST
15038 fi
15039 # Now quote all the things that may contain metacharacters while being
15040 # careful not to overquote the AC_SUBSTed values. We take copies of the
15041 # variables and quote the copies for generation of the libtool script.
15042 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15043 SED SHELL STRIP \
15044 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15045 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15046 deplibs_check_method reload_flag reload_cmds need_locks \
15047 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15048 lt_cv_sys_global_symbol_to_c_name_address \
15049 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15050 old_postinstall_cmds old_postuninstall_cmds \
15051 compiler_F77 \
15052 CC_F77 \
15053 LD_F77 \
15054 lt_prog_compiler_wl_F77 \
15055 lt_prog_compiler_pic_F77 \
15056 lt_prog_compiler_static_F77 \
15057 lt_prog_compiler_no_builtin_flag_F77 \
15058 export_dynamic_flag_spec_F77 \
15059 thread_safe_flag_spec_F77 \
15060 whole_archive_flag_spec_F77 \
15061 enable_shared_with_static_runtimes_F77 \
15062 old_archive_cmds_F77 \
15063 old_archive_from_new_cmds_F77 \
15064 predep_objects_F77 \
15065 postdep_objects_F77 \
15066 predeps_F77 \
15067 postdeps_F77 \
15068 compiler_lib_search_path_F77 \
15069 archive_cmds_F77 \
15070 archive_expsym_cmds_F77 \
15071 postinstall_cmds_F77 \
15072 postuninstall_cmds_F77 \
15073 old_archive_from_expsyms_cmds_F77 \
15074 allow_undefined_flag_F77 \
15075 no_undefined_flag_F77 \
15076 export_symbols_cmds_F77 \
15077 hardcode_libdir_flag_spec_F77 \
15078 hardcode_libdir_flag_spec_ld_F77 \
15079 hardcode_libdir_separator_F77 \
15080 hardcode_automatic_F77 \
15081 module_cmds_F77 \
15082 module_expsym_cmds_F77 \
15083 lt_cv_prog_compiler_c_o_F77 \
15084 exclude_expsyms_F77 \
15085 include_expsyms_F77; do
15086
15087 case $var in
15088 old_archive_cmds_F77 | \
15089 old_archive_from_new_cmds_F77 | \
15090 archive_cmds_F77 | \
15091 archive_expsym_cmds_F77 | \
15092 module_cmds_F77 | \
15093 module_expsym_cmds_F77 | \
15094 old_archive_from_expsyms_cmds_F77 | \
15095 export_symbols_cmds_F77 | \
15096 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15097 postinstall_cmds | postuninstall_cmds | \
15098 old_postinstall_cmds | old_postuninstall_cmds | \
15099 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15100 # Double-quote double-evaled strings.
15101 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15102 ;;
15103 *)
15104 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15105 ;;
15106 esac
15107 done
15108
15109 case $lt_echo in
15110 *'\$0 --fallback-echo"')
15111 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15112 ;;
15113 esac
15114
15115cfgfile="$ofile"
15116
15117 cat <<__EOF__ >> "$cfgfile"
15118# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15119
15120# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15121
15122# Shell to use when invoking shell scripts.
15123SHELL=$lt_SHELL
15124
15125# Whether or not to build shared libraries.
15126build_libtool_libs=$enable_shared
15127
15128# Whether or not to build static libraries.
15129build_old_libs=$enable_static
15130
15131# Whether or not to add -lc for building shared libraries.
15132build_libtool_need_lc=$archive_cmds_need_lc_F77
15133
15134# Whether or not to disallow shared libs when runtime libs are static
15135allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15136
15137# Whether or not to optimize for fast installation.
15138fast_install=$enable_fast_install
15139
15140# The host system.
15141host_alias=$host_alias
15142host=$host
15143
15144# An echo program that does not interpret backslashes.
15145echo=$lt_echo
15146
15147# The archiver.
15148AR=$lt_AR
15149AR_FLAGS=$lt_AR_FLAGS
15150
15151# A C compiler.
15152LTCC=$lt_LTCC
15153
15154# A language-specific compiler.
15155CC=$lt_compiler_F77
15156
15157# Is the compiler the GNU C compiler?
15158with_gcc=$GCC_F77
15159
15160# An ERE matcher.
15161EGREP=$lt_EGREP
15162
15163# The linker used to build libraries.
15164LD=$lt_LD_F77
15165
15166# Whether we need hard or soft links.
15167LN_S=$lt_LN_S
15168
15169# A BSD-compatible nm program.
15170NM=$lt_NM
15171
15172# A symbol stripping program
15173STRIP=$lt_STRIP
15174
15175# Used to examine libraries when file_magic_cmd begins "file"
15176MAGIC_CMD=$MAGIC_CMD
15177
15178# Used on cygwin: DLL creation program.
15179DLLTOOL="$DLLTOOL"
15180
15181# Used on cygwin: object dumper.
15182OBJDUMP="$OBJDUMP"
15183
15184# Used on cygwin: assembler.
15185AS="$AS"
15186
15187# The name of the directory that contains temporary libtool files.
15188objdir=$objdir
15189
15190# How to create reloadable object files.
15191reload_flag=$lt_reload_flag
15192reload_cmds=$lt_reload_cmds
15193
15194# How to pass a linker flag through the compiler.
15195wl=$lt_lt_prog_compiler_wl_F77
15196
15197# Object file suffix (normally "o").
15198objext="$ac_objext"
15199
15200# Old archive suffix (normally "a").
15201libext="$libext"
15202
15203# Shared library suffix (normally ".so").
hp.com!davidm2de17682004-04-20 16:53:44 +000015204shrext_cmds='$shrext_cmds'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015205
15206# Executable file suffix (normally "").
15207exeext="$exeext"
15208
15209# Additional compiler flags for building library objects.
15210pic_flag=$lt_lt_prog_compiler_pic_F77
15211pic_mode=$pic_mode
15212
15213# What is the maximum length of a command?
15214max_cmd_len=$lt_cv_sys_max_cmd_len
15215
15216# Does compiler simultaneously support -c and -o options?
15217compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15218
15219# Must we lock files when doing compilation ?
15220need_locks=$lt_need_locks
15221
15222# Do we need the lib prefix for modules?
15223need_lib_prefix=$need_lib_prefix
15224
15225# Do we need a version for libraries?
15226need_version=$need_version
15227
15228# Whether dlopen is supported.
15229dlopen_support=$enable_dlopen
15230
15231# Whether dlopen of programs is supported.
15232dlopen_self=$enable_dlopen_self
15233
15234# Whether dlopen of statically linked programs is supported.
15235dlopen_self_static=$enable_dlopen_self_static
15236
15237# Compiler flag to prevent dynamic linking.
15238link_static_flag=$lt_lt_prog_compiler_static_F77
15239
15240# Compiler flag to turn off builtin functions.
15241no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15242
15243# Compiler flag to allow reflexive dlopens.
15244export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15245
15246# Compiler flag to generate shared objects directly from archives.
15247whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15248
15249# Compiler flag to generate thread-safe objects.
15250thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15251
15252# Library versioning type.
15253version_type=$version_type
15254
15255# Format of library name prefix.
15256libname_spec=$lt_libname_spec
15257
15258# List of archive names. First name is the real one, the rest are links.
15259# The last name is the one that the linker finds with -lNAME.
15260library_names_spec=$lt_library_names_spec
15261
15262# The coded name of the library, if different from the real name.
15263soname_spec=$lt_soname_spec
15264
15265# Commands used to build and install an old-style archive.
15266RANLIB=$lt_RANLIB
15267old_archive_cmds=$lt_old_archive_cmds_F77
15268old_postinstall_cmds=$lt_old_postinstall_cmds
15269old_postuninstall_cmds=$lt_old_postuninstall_cmds
15270
15271# Create an old-style archive from a shared archive.
15272old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15273
15274# Create a temporary old-style archive to link instead of a shared archive.
15275old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15276
15277# Commands used to build and install a shared archive.
15278archive_cmds=$lt_archive_cmds_F77
15279archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15280postinstall_cmds=$lt_postinstall_cmds
15281postuninstall_cmds=$lt_postuninstall_cmds
15282
15283# Commands used to build a loadable module (assumed same as above if empty)
15284module_cmds=$lt_module_cmds_F77
15285module_expsym_cmds=$lt_module_expsym_cmds_F77
15286
15287# Commands to strip libraries.
15288old_striplib=$lt_old_striplib
15289striplib=$lt_striplib
15290
15291# Dependencies to place before the objects being linked to create a
15292# shared library.
15293predep_objects=$lt_predep_objects_F77
15294
15295# Dependencies to place after the objects being linked to create a
15296# shared library.
15297postdep_objects=$lt_postdep_objects_F77
15298
15299# Dependencies to place before the objects being linked to create a
15300# shared library.
15301predeps=$lt_predeps_F77
15302
15303# Dependencies to place after the objects being linked to create a
15304# shared library.
15305postdeps=$lt_postdeps_F77
15306
15307# The library search path used internally by the compiler when linking
15308# a shared library.
15309compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15310
15311# Method to check whether dependent libraries are shared objects.
15312deplibs_check_method=$lt_deplibs_check_method
15313
15314# Command to use when deplibs_check_method == file_magic.
15315file_magic_cmd=$lt_file_magic_cmd
15316
15317# Flag that allows shared libraries with undefined symbols to be built.
15318allow_undefined_flag=$lt_allow_undefined_flag_F77
15319
15320# Flag that forces no undefined symbols.
15321no_undefined_flag=$lt_no_undefined_flag_F77
15322
15323# Commands used to finish a libtool library installation in a directory.
15324finish_cmds=$lt_finish_cmds
15325
15326# Same as above, but a single script fragment to be evaled but not shown.
15327finish_eval=$lt_finish_eval
15328
15329# Take the output of nm and produce a listing of raw symbols and C names.
15330global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15331
15332# Transform the output of nm in a proper C declaration
15333global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15334
15335# Transform the output of nm in a C name address pair
15336global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15337
15338# This is the shared library runtime path variable.
15339runpath_var=$runpath_var
15340
15341# This is the shared library path variable.
15342shlibpath_var=$shlibpath_var
15343
15344# Is shlibpath searched before the hard-coded library search path?
15345shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15346
15347# How to hardcode a shared library path into an executable.
15348hardcode_action=$hardcode_action_F77
15349
15350# Whether we should hardcode library paths into libraries.
15351hardcode_into_libs=$hardcode_into_libs
15352
15353# Flag to hardcode \$libdir into a binary during linking.
15354# This must work even if \$libdir does not exist.
15355hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15356
15357# If ld is used when linking, flag to hardcode \$libdir into
15358# a binary during linking. This must work even if \$libdir does
15359# not exist.
15360hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15361
15362# Whether we need a single -rpath flag with a separated argument.
15363hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15364
15365# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15366# resulting binary.
15367hardcode_direct=$hardcode_direct_F77
15368
15369# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15370# resulting binary.
15371hardcode_minus_L=$hardcode_minus_L_F77
15372
15373# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15374# the resulting binary.
15375hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15376
15377# Set to yes if building a shared library automatically hardcodes DIR into the library
15378# and all subsequent libraries and executables linked against it.
15379hardcode_automatic=$hardcode_automatic_F77
15380
15381# Variables whose values should be saved in libtool wrapper scripts and
15382# restored at relink time.
15383variables_saved_for_relink="$variables_saved_for_relink"
15384
15385# Whether libtool must link a program against all its dependency libraries.
15386link_all_deplibs=$link_all_deplibs_F77
15387
15388# Compile-time system search path for libraries
15389sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15390
15391# Run-time system search path for libraries
15392sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15393
15394# Fix the shell variable \$srcfile for the compiler.
15395fix_srcfile_path="$fix_srcfile_path_F77"
15396
15397# Set to yes if exported symbols are required.
15398always_export_symbols=$always_export_symbols_F77
15399
15400# The commands to list exported symbols.
15401export_symbols_cmds=$lt_export_symbols_cmds_F77
15402
15403# The commands to extract the exported symbol list from a shared archive.
15404extract_expsyms_cmds=$lt_extract_expsyms_cmds
15405
15406# Symbols that should not be listed in the preloaded symbols.
15407exclude_expsyms=$lt_exclude_expsyms_F77
15408
15409# Symbols that must always be exported.
15410include_expsyms=$lt_include_expsyms_F77
15411
15412# ### END LIBTOOL TAG CONFIG: $tagname
15413
15414__EOF__
15415
15416
15417else
15418 # If there is no Makefile yet, we rely on a make rule to execute
15419 # `config.status --recheck' to rerun these tests and create the
15420 # libtool script then.
15421 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15422 if test -f "$ltmain_in"; then
15423 test -f Makefile && make "$ltmain"
15424 fi
15425fi
15426
15427
15428ac_ext=c
15429ac_cpp='$CPP $CPPFLAGS'
15430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15432ac_compiler_gnu=$ac_cv_c_compiler_gnu
15433
15434CC="$lt_save_CC"
15435
15436 else
15437 tagname=""
15438 fi
15439 ;;
15440
15441 GCJ)
15442 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15443
15444
15445
15446# Source file extension for Java test sources.
15447ac_ext=java
15448
15449# Object file extension for compiled Java test sources.
15450objext=o
15451objext_GCJ=$objext
15452
15453# Code to be used in simple compile tests
15454lt_simple_compile_test_code="class foo {}\n"
15455
15456# Code to be used in simple link tests
15457lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15458
15459# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15460
15461# If no C compiler was specified, use CC.
15462LTCC=${LTCC-"$CC"}
15463
15464# Allow CC to be a program name with arguments.
15465compiler=$CC
15466
15467
15468# Allow CC to be a program name with arguments.
15469lt_save_CC="$CC"
15470CC=${GCJ-"gcj"}
15471compiler=$CC
15472compiler_GCJ=$CC
15473
15474# GCJ did not exist at the time GCC didn't implicitly link libc in.
15475archive_cmds_need_lc_GCJ=no
15476
15477
15478lt_prog_compiler_no_builtin_flag_GCJ=
15479
15480if test "$GCC" = yes; then
15481 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15482
15483
15484echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15485echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15486if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15487 echo $ECHO_N "(cached) $ECHO_C" >&6
15488else
15489 lt_cv_prog_compiler_rtti_exceptions=no
15490 ac_outfile=conftest.$ac_objext
15491 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15492 lt_compiler_flag="-fno-rtti -fno-exceptions"
15493 # Insert the option either (1) after the last *FLAGS variable, or
15494 # (2) before a word containing "conftest.", or (3) at the end.
15495 # Note that $ac_compile itself does not contain backslashes and begins
15496 # with a dollar sign (not a hyphen), so the echo should work correctly.
15497 # The option is referenced via a variable to avoid confusing sed.
15498 lt_compile=`echo "$ac_compile" | $SED \
15499 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15501 -e 's:$: $lt_compiler_flag:'`
hp.com!davidm16230292004-07-15 17:39:59 +000015502 (eval echo "\"\$as_me:15502: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015503 (eval "$lt_compile" 2>conftest.err)
15504 ac_status=$?
15505 cat conftest.err >&5
hp.com!davidm16230292004-07-15 17:39:59 +000015506 echo "$as_me:15506: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015507 if (exit $ac_status) && test -s "$ac_outfile"; then
15508 # The compiler can only warn and ignore the option if not recognized
15509 # So say no if there are warnings
15510 if test ! -s conftest.err; then
15511 lt_cv_prog_compiler_rtti_exceptions=yes
15512 fi
15513 fi
15514 $rm conftest*
15515
15516fi
15517echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15518echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15519
15520if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15521 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15522else
15523 :
15524fi
15525
15526fi
15527
15528lt_prog_compiler_wl_GCJ=
15529lt_prog_compiler_pic_GCJ=
15530lt_prog_compiler_static_GCJ=
15531
15532echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15533echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15534
15535 if test "$GCC" = yes; then
15536 lt_prog_compiler_wl_GCJ='-Wl,'
15537 lt_prog_compiler_static_GCJ='-static'
15538
15539 case $host_os in
15540 aix*)
15541 # All AIX code is PIC.
15542 if test "$host_cpu" = ia64; then
15543 # AIX 5 now supports IA64 processor
15544 lt_prog_compiler_static_GCJ='-Bstatic'
15545 fi
15546 ;;
15547
15548 amigaos*)
15549 # FIXME: we need at least 68020 code to build shared libraries, but
15550 # adding the `-m68020' flag to GCC prevents building anything better,
15551 # like `-m68040'.
15552 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15553 ;;
15554
15555 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15556 # PIC is the default for these OSes.
15557 ;;
15558
15559 mingw* | pw32* | os2*)
15560 # This hack is so that the source file can tell whether it is being
15561 # built for inclusion in a dll (and should export symbols for example).
15562 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15563 ;;
15564
15565 darwin* | rhapsody*)
15566 # PIC is the default on this platform
15567 # Common symbols not allowed in MH_DYLIB files
15568 lt_prog_compiler_pic_GCJ='-fno-common'
15569 ;;
15570
15571 msdosdjgpp*)
15572 # Just because we use GCC doesn't mean we suddenly get shared libraries
15573 # on systems that don't support them.
15574 lt_prog_compiler_can_build_shared_GCJ=no
15575 enable_shared=no
15576 ;;
15577
15578 sysv4*MP*)
15579 if test -d /usr/nec; then
15580 lt_prog_compiler_pic_GCJ=-Kconform_pic
15581 fi
15582 ;;
15583
15584 hpux*)
15585 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15586 # not for PA HP-UX.
15587 case "$host_cpu" in
15588 hppa*64*|ia64*)
15589 # +Z the default
15590 ;;
15591 *)
15592 lt_prog_compiler_pic_GCJ='-fPIC'
15593 ;;
15594 esac
15595 ;;
15596
15597 *)
15598 lt_prog_compiler_pic_GCJ='-fPIC'
15599 ;;
15600 esac
15601 else
15602 # PORTME Check for flag to pass linker flags through the system compiler.
15603 case $host_os in
15604 aix*)
15605 lt_prog_compiler_wl_GCJ='-Wl,'
15606 if test "$host_cpu" = ia64; then
15607 # AIX 5 now supports IA64 processor
15608 lt_prog_compiler_static_GCJ='-Bstatic'
15609 else
15610 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15611 fi
15612 ;;
15613
15614 mingw* | pw32* | os2*)
15615 # This hack is so that the source file can tell whether it is being
15616 # built for inclusion in a dll (and should export symbols for example).
15617 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15618 ;;
15619
15620 hpux9* | hpux10* | hpux11*)
15621 lt_prog_compiler_wl_GCJ='-Wl,'
15622 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15623 # not for PA HP-UX.
15624 case "$host_cpu" in
15625 hppa*64*|ia64*)
15626 # +Z the default
15627 ;;
15628 *)
15629 lt_prog_compiler_pic_GCJ='+Z'
15630 ;;
15631 esac
15632 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15633 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15634 ;;
15635
15636 irix5* | irix6* | nonstopux*)
15637 lt_prog_compiler_wl_GCJ='-Wl,'
15638 # PIC (with -KPIC) is the default.
15639 lt_prog_compiler_static_GCJ='-non_shared'
15640 ;;
15641
15642 newsos6)
15643 lt_prog_compiler_pic_GCJ='-KPIC'
15644 lt_prog_compiler_static_GCJ='-Bstatic'
15645 ;;
15646
15647 linux*)
15648 case $CC in
15649 icc* | ecc*)
15650 lt_prog_compiler_wl_GCJ='-Wl,'
15651 lt_prog_compiler_pic_GCJ='-KPIC'
15652 lt_prog_compiler_static_GCJ='-static'
15653 ;;
15654 ccc*)
15655 lt_prog_compiler_wl_GCJ='-Wl,'
15656 # All Alpha code is PIC.
15657 lt_prog_compiler_static_GCJ='-non_shared'
15658 ;;
15659 esac
15660 ;;
15661
15662 osf3* | osf4* | osf5*)
15663 lt_prog_compiler_wl_GCJ='-Wl,'
15664 # All OSF/1 code is PIC.
15665 lt_prog_compiler_static_GCJ='-non_shared'
15666 ;;
15667
15668 sco3.2v5*)
15669 lt_prog_compiler_pic_GCJ='-Kpic'
15670 lt_prog_compiler_static_GCJ='-dn'
15671 ;;
15672
15673 solaris*)
15674 lt_prog_compiler_wl_GCJ='-Wl,'
15675 lt_prog_compiler_pic_GCJ='-KPIC'
15676 lt_prog_compiler_static_GCJ='-Bstatic'
15677 ;;
15678
15679 sunos4*)
15680 lt_prog_compiler_wl_GCJ='-Qoption ld '
15681 lt_prog_compiler_pic_GCJ='-PIC'
15682 lt_prog_compiler_static_GCJ='-Bstatic'
15683 ;;
15684
15685 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15686 lt_prog_compiler_wl_GCJ='-Wl,'
15687 lt_prog_compiler_pic_GCJ='-KPIC'
15688 lt_prog_compiler_static_GCJ='-Bstatic'
15689 ;;
15690
15691 sysv4*MP*)
15692 if test -d /usr/nec ;then
15693 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15694 lt_prog_compiler_static_GCJ='-Bstatic'
15695 fi
15696 ;;
15697
15698 uts4*)
15699 lt_prog_compiler_pic_GCJ='-pic'
15700 lt_prog_compiler_static_GCJ='-Bstatic'
15701 ;;
15702
15703 *)
15704 lt_prog_compiler_can_build_shared_GCJ=no
15705 ;;
15706 esac
15707 fi
15708
15709echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15710echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15711
15712#
15713# Check to make sure the PIC flag actually works.
15714#
15715if test -n "$lt_prog_compiler_pic_GCJ"; then
15716
15717echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15718echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15719if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15720 echo $ECHO_N "(cached) $ECHO_C" >&6
15721else
15722 lt_prog_compiler_pic_works_GCJ=no
15723 ac_outfile=conftest.$ac_objext
15724 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15725 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15726 # Insert the option either (1) after the last *FLAGS variable, or
15727 # (2) before a word containing "conftest.", or (3) at the end.
15728 # Note that $ac_compile itself does not contain backslashes and begins
15729 # with a dollar sign (not a hyphen), so the echo should work correctly.
15730 # The option is referenced via a variable to avoid confusing sed.
15731 lt_compile=`echo "$ac_compile" | $SED \
15732 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15734 -e 's:$: $lt_compiler_flag:'`
hp.com!davidm16230292004-07-15 17:39:59 +000015735 (eval echo "\"\$as_me:15735: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015736 (eval "$lt_compile" 2>conftest.err)
15737 ac_status=$?
15738 cat conftest.err >&5
hp.com!davidm16230292004-07-15 17:39:59 +000015739 echo "$as_me:15739: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015740 if (exit $ac_status) && test -s "$ac_outfile"; then
15741 # The compiler can only warn and ignore the option if not recognized
15742 # So say no if there are warnings
15743 if test ! -s conftest.err; then
15744 lt_prog_compiler_pic_works_GCJ=yes
15745 fi
15746 fi
15747 $rm conftest*
15748
15749fi
15750echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15751echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15752
15753if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15754 case $lt_prog_compiler_pic_GCJ in
15755 "" | " "*) ;;
15756 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15757 esac
15758else
15759 lt_prog_compiler_pic_GCJ=
15760 lt_prog_compiler_can_build_shared_GCJ=no
15761fi
15762
15763fi
15764case "$host_os" in
15765 # For platforms which do not support PIC, -DPIC is meaningless:
15766 *djgpp*)
15767 lt_prog_compiler_pic_GCJ=
15768 ;;
15769 *)
15770 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15771 ;;
15772esac
15773
15774echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15775echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15776if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15777 echo $ECHO_N "(cached) $ECHO_C" >&6
15778else
15779 lt_cv_prog_compiler_c_o_GCJ=no
15780 $rm -r conftest 2>/dev/null
15781 mkdir conftest
15782 cd conftest
15783 mkdir out
15784 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15785
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015786 lt_compiler_flag="-o out/conftest2.$ac_objext"
15787 # Insert the option either (1) after the last *FLAGS variable, or
15788 # (2) before a word containing "conftest.", or (3) at the end.
15789 # Note that $ac_compile itself does not contain backslashes and begins
15790 # with a dollar sign (not a hyphen), so the echo should work correctly.
15791 lt_compile=`echo "$ac_compile" | $SED \
15792 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15794 -e 's:$: $lt_compiler_flag:'`
hp.com!davidm16230292004-07-15 17:39:59 +000015795 (eval echo "\"\$as_me:15795: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015796 (eval "$lt_compile" 2>out/conftest.err)
15797 ac_status=$?
15798 cat out/conftest.err >&5
hp.com!davidm16230292004-07-15 17:39:59 +000015799 echo "$as_me:15799: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015800 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15801 then
15802 # The compiler can only warn and ignore the option if not recognized
15803 # So say no if there are warnings
15804 if test ! -s out/conftest.err; then
15805 lt_cv_prog_compiler_c_o_GCJ=yes
15806 fi
15807 fi
15808 chmod u+w .
15809 $rm conftest*
15810 # SGI C++ compiler will create directory out/ii_files/ for
15811 # template instantiation
15812 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15813 $rm out/* && rmdir out
15814 cd ..
15815 rmdir conftest
15816 $rm conftest*
15817
15818fi
15819echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15820echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15821
15822
15823hard_links="nottested"
15824if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15825 # do not overwrite the value of need_locks provided by the user
15826 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15827echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15828 hard_links=yes
15829 $rm conftest*
15830 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15831 touch conftest.a
15832 ln conftest.a conftest.b 2>&5 || hard_links=no
15833 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15834 echo "$as_me:$LINENO: result: $hard_links" >&5
15835echo "${ECHO_T}$hard_links" >&6
15836 if test "$hard_links" = no; then
15837 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15838echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15839 need_locks=warn
15840 fi
15841else
15842 need_locks=no
15843fi
15844
15845echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15846echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15847
15848 runpath_var=
15849 allow_undefined_flag_GCJ=
15850 enable_shared_with_static_runtimes_GCJ=no
15851 archive_cmds_GCJ=
15852 archive_expsym_cmds_GCJ=
15853 old_archive_From_new_cmds_GCJ=
15854 old_archive_from_expsyms_cmds_GCJ=
15855 export_dynamic_flag_spec_GCJ=
15856 whole_archive_flag_spec_GCJ=
15857 thread_safe_flag_spec_GCJ=
15858 hardcode_libdir_flag_spec_GCJ=
15859 hardcode_libdir_flag_spec_ld_GCJ=
15860 hardcode_libdir_separator_GCJ=
15861 hardcode_direct_GCJ=no
15862 hardcode_minus_L_GCJ=no
15863 hardcode_shlibpath_var_GCJ=unsupported
15864 link_all_deplibs_GCJ=unknown
15865 hardcode_automatic_GCJ=no
15866 module_cmds_GCJ=
15867 module_expsym_cmds_GCJ=
15868 always_export_symbols_GCJ=no
15869 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15870 # include_expsyms should be a list of space-separated symbols to be *always*
15871 # included in the symbol list
15872 include_expsyms_GCJ=
15873 # exclude_expsyms can be an extended regexp of symbols to exclude
15874 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15875 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15876 # as well as any symbol that contains `d'.
15877 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15878 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15879 # platforms (ab)use it in PIC code, but their linkers get confused if
15880 # the symbol is explicitly referenced. Since portable code cannot
15881 # rely on this symbol name, it's probably fine to never include it in
15882 # preloaded symbol tables.
15883 extract_expsyms_cmds=
15884
15885 case $host_os in
15886 cygwin* | mingw* | pw32*)
15887 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15888 # When not using gcc, we currently assume that we are using
15889 # Microsoft Visual C++.
15890 if test "$GCC" != yes; then
15891 with_gnu_ld=no
15892 fi
15893 ;;
15894 openbsd*)
15895 with_gnu_ld=no
15896 ;;
15897 esac
15898
15899 ld_shlibs_GCJ=yes
15900 if test "$with_gnu_ld" = yes; then
15901 # If archive_cmds runs LD, not CC, wlarc should be empty
15902 wlarc='${wl}'
15903
15904 # See if GNU ld supports shared libraries.
15905 case $host_os in
15906 aix3* | aix4* | aix5*)
15907 # On AIX/PPC, the GNU linker is very broken
15908 if test "$host_cpu" != ia64; then
15909 ld_shlibs_GCJ=no
15910 cat <<EOF 1>&2
15911
15912*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15913*** to be unable to reliably create shared libraries on AIX.
15914*** Therefore, libtool is disabling shared libraries support. If you
15915*** really care for shared libraries, you may want to modify your PATH
15916*** so that a non-GNU linker is found, and then restart.
15917
15918EOF
15919 fi
15920 ;;
15921
15922 amigaos*)
15923 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)'
15924 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15925 hardcode_minus_L_GCJ=yes
15926
15927 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15928 # that the semantics of dynamic libraries on AmigaOS, at least up
15929 # to version 4, is to share data among multiple programs linked
15930 # with the same dynamic library. Since this doesn't match the
15931 # behavior of shared libraries on other platforms, we can't use
15932 # them.
15933 ld_shlibs_GCJ=no
15934 ;;
15935
15936 beos*)
15937 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15938 allow_undefined_flag_GCJ=unsupported
15939 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15940 # support --undefined. This deserves some investigation. FIXME
15941 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15942 else
15943 ld_shlibs_GCJ=no
15944 fi
15945 ;;
15946
15947 cygwin* | mingw* | pw32*)
15948 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15949 # as there is no search path for DLLs.
15950 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15951 allow_undefined_flag_GCJ=unsupported
15952 always_export_symbols_GCJ=no
15953 enable_shared_with_static_runtimes_GCJ=yes
15954 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15955
15956 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15957 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15958 # If the export-symbols file already is a .def file (1st line
15959 # is EXPORTS), use it as is; otherwise, prepend...
15960 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15961 cp $export_symbols $output_objdir/$soname.def;
15962 else
15963 echo EXPORTS > $output_objdir/$soname.def;
15964 cat $export_symbols >> $output_objdir/$soname.def;
15965 fi~
15966 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15967 else
15968 ld_shlibs=no
15969 fi
15970 ;;
15971
hp.com!davidm16230292004-07-15 17:39:59 +000015972 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15974 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15975 wlarc=
15976 else
15977 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15978 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15979 fi
15980 ;;
15981
15982 solaris* | sysv5*)
15983 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15984 ld_shlibs_GCJ=no
15985 cat <<EOF 1>&2
15986
15987*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15988*** create shared libraries on Solaris systems. Therefore, libtool
15989*** is disabling shared libraries support. We urge you to upgrade GNU
15990*** binutils to release 2.9.1 or newer. Another option is to modify
15991*** your PATH or compiler configuration so that the native linker is
15992*** used, and then restart.
15993
15994EOF
15995 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15996 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15997 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15998 else
15999 ld_shlibs_GCJ=no
16000 fi
16001 ;;
16002
16003 sunos4*)
16004 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16005 wlarc=
16006 hardcode_direct_GCJ=yes
16007 hardcode_shlibpath_var_GCJ=no
16008 ;;
16009
16010 linux*)
hp.com!davidm2de17682004-04-20 16:53:44 +000016011 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016012 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16013 archive_cmds_GCJ="$tmp_archive_cmds"
16014 supports_anon_versioning=no
16015 case `$LD -v 2>/dev/null` in
16016 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16017 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16018 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16019 *\ 2.11.*) ;; # other 2.11 versions
16020 *) supports_anon_versioning=yes ;;
16021 esac
16022 if test $supports_anon_versioning = yes; then
16023 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16024cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16025$echo "local: *; };" >> $output_objdir/$libname.ver~
16026 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16027 else
16028 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16029 fi
hp.com!davidm2de17682004-04-20 16:53:44 +000016030 link_all_deplibs_GCJ=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016031 else
16032 ld_shlibs_GCJ=no
16033 fi
16034 ;;
16035
16036 *)
16037 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16038 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16039 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16040 else
16041 ld_shlibs_GCJ=no
16042 fi
16043 ;;
16044 esac
16045
16046 if test "$ld_shlibs_GCJ" = yes; then
16047 runpath_var=LD_RUN_PATH
16048 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16049 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16050 # ancient GNU ld didn't support --whole-archive et. al.
16051 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16052 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16053 else
16054 whole_archive_flag_spec_GCJ=
16055 fi
16056 fi
16057 else
16058 # PORTME fill in a description of your system's linker (not GNU ld)
16059 case $host_os in
16060 aix3*)
16061 allow_undefined_flag_GCJ=unsupported
16062 always_export_symbols_GCJ=yes
16063 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'
16064 # Note: this linker hardcodes the directories in LIBPATH if there
16065 # are no directories specified by -L.
16066 hardcode_minus_L_GCJ=yes
16067 if test "$GCC" = yes && test -z "$link_static_flag"; then
16068 # Neither direct hardcoding nor static linking is supported with a
16069 # broken collect2.
16070 hardcode_direct_GCJ=unsupported
16071 fi
16072 ;;
16073
16074 aix4* | aix5*)
16075 if test "$host_cpu" = ia64; then
16076 # On IA64, the linker does run time linking by default, so we don't
16077 # have to do anything special.
16078 aix_use_runtimelinking=no
16079 exp_sym_flag='-Bexport'
16080 no_entry_flag=""
16081 else
16082 # If we're using GNU nm, then we don't want the "-C" option.
16083 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16084 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16085 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'
16086 else
16087 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'
16088 fi
16089 aix_use_runtimelinking=no
16090
16091 # Test if we are trying to use run time linking or normal
16092 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16093 # need to do runtime linking.
16094 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16095 for ld_flag in $LDFLAGS; do
16096 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16097 aix_use_runtimelinking=yes
16098 break
16099 fi
16100 done
16101 esac
16102
16103 exp_sym_flag='-bexport'
16104 no_entry_flag='-bnoentry'
16105 fi
16106
16107 # When large executables or shared objects are built, AIX ld can
16108 # have problems creating the table of contents. If linking a library
16109 # or program results in "error TOC overflow" add -mminimal-toc to
16110 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16111 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16112
16113 archive_cmds_GCJ=''
16114 hardcode_direct_GCJ=yes
16115 hardcode_libdir_separator_GCJ=':'
16116 link_all_deplibs_GCJ=yes
16117
16118 if test "$GCC" = yes; then
16119 case $host_os in aix4.012|aix4.012.*)
16120 # We only want to do this on AIX 4.2 and lower, the check
16121 # below for broken collect2 doesn't work under 4.3+
16122 collect2name=`${CC} -print-prog-name=collect2`
16123 if test -f "$collect2name" && \
16124 strings "$collect2name" | grep resolve_lib_name >/dev/null
16125 then
16126 # We have reworked collect2
16127 hardcode_direct_GCJ=yes
16128 else
16129 # We have old collect2
16130 hardcode_direct_GCJ=unsupported
16131 # It fails to find uninstalled libraries when the uninstalled
16132 # path is not listed in the libpath. Setting hardcode_minus_L
16133 # to unsupported forces relinking
16134 hardcode_minus_L_GCJ=yes
16135 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16136 hardcode_libdir_separator_GCJ=
16137 fi
16138 esac
16139 shared_flag='-shared'
16140 else
16141 # not using gcc
16142 if test "$host_cpu" = ia64; then
16143 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16144 # chokes on -Wl,-G. The following line is correct:
16145 shared_flag='-G'
16146 else
16147 if test "$aix_use_runtimelinking" = yes; then
16148 shared_flag='${wl}-G'
16149 else
16150 shared_flag='${wl}-bM:SRE'
16151 fi
16152 fi
16153 fi
16154
16155 # It seems that -bexpall does not export symbols beginning with
16156 # underscore (_), so it is better to generate a list of symbols to export.
16157 always_export_symbols_GCJ=yes
16158 if test "$aix_use_runtimelinking" = yes; then
16159 # Warning - without using the other runtime loading flags (-brtl),
16160 # -berok will link without error, but may produce a broken library.
16161 allow_undefined_flag_GCJ='-berok'
16162 # Determine the default libpath from the value encoded in an empty executable.
16163 cat >conftest.$ac_ext <<_ACEOF
16164/* confdefs.h. */
16165_ACEOF
16166cat confdefs.h >>conftest.$ac_ext
16167cat >>conftest.$ac_ext <<_ACEOF
16168/* end confdefs.h. */
16169
16170int
16171main ()
16172{
16173
16174 ;
16175 return 0;
16176}
16177_ACEOF
16178rm -f conftest.$ac_objext conftest$ac_exeext
16179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016180 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016181 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016182 grep -v '^ *+' conftest.er1 >conftest.err
16183 rm -f conftest.er1
16184 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16190 ac_status=$?
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; } &&
16193 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195 (eval $ac_try) 2>&5
16196 ac_status=$?
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; }; then
16199
16200aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16201}'`
16202# Check for a 64-bit object if we didn't find anything.
16203if 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; }
16204}'`; fi
16205else
16206 echo "$as_me: failed program was:" >&5
16207sed 's/^/| /' conftest.$ac_ext >&5
16208
16209fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016210rm -f conftest.err conftest.$ac_objext \
16211 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016212if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16213
16214 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16215 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"
16216 else
16217 if test "$host_cpu" = ia64; then
16218 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16219 allow_undefined_flag_GCJ="-z nodefs"
16220 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"
16221 else
16222 # Determine the default libpath from the value encoded in an empty executable.
16223 cat >conftest.$ac_ext <<_ACEOF
16224/* confdefs.h. */
16225_ACEOF
16226cat confdefs.h >>conftest.$ac_ext
16227cat >>conftest.$ac_ext <<_ACEOF
16228/* end confdefs.h. */
16229
16230int
16231main ()
16232{
16233
16234 ;
16235 return 0;
16236}
16237_ACEOF
16238rm -f conftest.$ac_objext conftest$ac_exeext
16239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016240 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016241 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016242 grep -v '^ *+' conftest.er1 >conftest.err
16243 rm -f conftest.er1
16244 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; } &&
16253 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16256 ac_status=$?
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; }; then
16259
16260aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16261}'`
16262# Check for a 64-bit object if we didn't find anything.
16263if 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; }
16264}'`; fi
16265else
16266 echo "$as_me: failed program was:" >&5
16267sed 's/^/| /' conftest.$ac_ext >&5
16268
16269fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016270rm -f conftest.err conftest.$ac_objext \
16271 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016272if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16273
16274 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16275 # Warning - without using the other run time loading flags,
16276 # -berok will link without error, but may produce a broken library.
16277 no_undefined_flag_GCJ=' ${wl}-bernotok'
16278 allow_undefined_flag_GCJ=' ${wl}-berok'
16279 # -bexpall does not export symbols beginning with underscore (_)
16280 always_export_symbols_GCJ=yes
16281 # Exported symbols can be pulled into shared objects from archives
16282 whole_archive_flag_spec_GCJ=' '
16283 archive_cmds_need_lc_GCJ=yes
16284 # This is similar to how AIX traditionally builds it's shared libraries.
16285 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'
16286 fi
16287 fi
16288 ;;
16289
16290 amigaos*)
16291 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)'
16292 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16293 hardcode_minus_L_GCJ=yes
16294 # see comment about different semantics on the GNU ld section
16295 ld_shlibs_GCJ=no
16296 ;;
16297
16298 bsdi4*)
16299 export_dynamic_flag_spec_GCJ=-rdynamic
16300 ;;
16301
16302 cygwin* | mingw* | pw32*)
16303 # When not using gcc, we currently assume that we are using
16304 # Microsoft Visual C++.
16305 # hardcode_libdir_flag_spec is actually meaningless, as there is
16306 # no search path for DLLs.
16307 hardcode_libdir_flag_spec_GCJ=' '
16308 allow_undefined_flag_GCJ=unsupported
16309 # Tell ltmain to make .lib files, not .a files.
16310 libext=lib
16311 # Tell ltmain to make .dll files, not .so files.
hp.com!davidm2de17682004-04-20 16:53:44 +000016312 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016313 # FIXME: Setting linknames here is a bad hack.
16314 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16315 # The linker will automatically build a .lib file if we build a DLL.
16316 old_archive_From_new_cmds_GCJ='true'
16317 # FIXME: Should let the user specify the lib program.
16318 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16319 fix_srcfile_path='`cygpath -w "$srcfile"`'
16320 enable_shared_with_static_runtimes_GCJ=yes
16321 ;;
16322
16323 darwin* | rhapsody*)
16324 if test "$GXX" = yes ; then
16325 archive_cmds_need_lc_GCJ=no
16326 case "$host_os" in
16327 rhapsody* | darwin1.[012])
16328 allow_undefined_flag_GCJ='-undefined suppress'
16329 ;;
16330 *) # Darwin 1.3 on
16331 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16332 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16333 else
16334 case ${MACOSX_DEPLOYMENT_TARGET} in
16335 10.[012])
16336 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16337 ;;
16338 10.*)
16339 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16340 ;;
16341 esac
16342 fi
16343 ;;
16344 esac
16345 lt_int_apple_cc_single_mod=no
16346 output_verbose_link_cmd='echo'
16347 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16348 lt_int_apple_cc_single_mod=yes
16349 fi
16350 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16351 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16352 else
16353 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'
16354 fi
16355 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16356 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16357 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16358 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}'
16359 else
16360 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}'
16361 fi
16362 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}'
16363 hardcode_direct_GCJ=no
16364 hardcode_automatic_GCJ=yes
16365 hardcode_shlibpath_var_GCJ=unsupported
16366 whole_archive_flag_spec_GCJ='-all_load $convenience'
16367 link_all_deplibs_GCJ=yes
16368 else
16369 ld_shlibs_GCJ=no
16370 fi
16371 ;;
16372
16373 dgux*)
16374 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16375 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16376 hardcode_shlibpath_var_GCJ=no
16377 ;;
16378
16379 freebsd1*)
16380 ld_shlibs_GCJ=no
16381 ;;
16382
16383 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16384 # support. Future versions do this automatically, but an explicit c++rt0.o
16385 # does not break anything, and helps significantly (at the cost of a little
16386 # extra space).
16387 freebsd2.2*)
16388 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16389 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16390 hardcode_direct_GCJ=yes
16391 hardcode_shlibpath_var_GCJ=no
16392 ;;
16393
16394 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16395 freebsd2*)
16396 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16397 hardcode_direct_GCJ=yes
16398 hardcode_minus_L_GCJ=yes
16399 hardcode_shlibpath_var_GCJ=no
16400 ;;
16401
16402 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16403 freebsd* | kfreebsd*-gnu)
16404 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16405 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16406 hardcode_direct_GCJ=yes
16407 hardcode_shlibpath_var_GCJ=no
16408 ;;
16409
16410 hpux9*)
16411 if test "$GCC" = yes; then
16412 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'
16413 else
16414 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'
16415 fi
16416 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16417 hardcode_libdir_separator_GCJ=:
16418 hardcode_direct_GCJ=yes
16419
16420 # hardcode_minus_L: Not really in the search PATH,
16421 # but as the default location of the library.
16422 hardcode_minus_L_GCJ=yes
16423 export_dynamic_flag_spec_GCJ='${wl}-E'
16424 ;;
16425
16426 hpux10* | hpux11*)
16427 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16428 case "$host_cpu" in
16429 hppa*64*|ia64*)
16430 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16431 ;;
16432 *)
16433 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16434 ;;
16435 esac
16436 else
16437 case "$host_cpu" in
16438 hppa*64*|ia64*)
16439 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16440 ;;
16441 *)
16442 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16443 ;;
16444 esac
16445 fi
16446 if test "$with_gnu_ld" = no; then
16447 case "$host_cpu" in
16448 hppa*64*)
16449 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16450 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16451 hardcode_libdir_separator_GCJ=:
16452 hardcode_direct_GCJ=no
16453 hardcode_shlibpath_var_GCJ=no
16454 ;;
16455 ia64*)
16456 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16457 hardcode_direct_GCJ=no
16458 hardcode_shlibpath_var_GCJ=no
16459
16460 # hardcode_minus_L: Not really in the search PATH,
16461 # but as the default location of the library.
16462 hardcode_minus_L_GCJ=yes
16463 ;;
16464 *)
16465 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16466 hardcode_libdir_separator_GCJ=:
16467 hardcode_direct_GCJ=yes
16468 export_dynamic_flag_spec_GCJ='${wl}-E'
16469
16470 # hardcode_minus_L: Not really in the search PATH,
16471 # but as the default location of the library.
16472 hardcode_minus_L_GCJ=yes
16473 ;;
16474 esac
16475 fi
16476 ;;
16477
16478 irix5* | irix6* | nonstopux*)
16479 if test "$GCC" = yes; then
16480 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'
16481 else
16482 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'
16483 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16484 fi
16485 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16486 hardcode_libdir_separator_GCJ=:
16487 link_all_deplibs_GCJ=yes
16488 ;;
16489
hp.com!davidm16230292004-07-15 17:39:59 +000016490 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016491 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16492 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16493 else
16494 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16495 fi
16496 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16497 hardcode_direct_GCJ=yes
16498 hardcode_shlibpath_var_GCJ=no
16499 ;;
16500
16501 newsos6)
16502 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16503 hardcode_direct_GCJ=yes
16504 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16505 hardcode_libdir_separator_GCJ=:
16506 hardcode_shlibpath_var_GCJ=no
16507 ;;
16508
16509 openbsd*)
16510 hardcode_direct_GCJ=yes
16511 hardcode_shlibpath_var_GCJ=no
16512 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16513 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16514 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16515 export_dynamic_flag_spec_GCJ='${wl}-E'
16516 else
16517 case $host_os in
16518 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16519 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16520 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16521 ;;
16522 *)
16523 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16524 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16525 ;;
16526 esac
16527 fi
16528 ;;
16529
16530 os2*)
16531 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16532 hardcode_minus_L_GCJ=yes
16533 allow_undefined_flag_GCJ=unsupported
16534 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'
16535 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16536 ;;
16537
16538 osf3*)
16539 if test "$GCC" = yes; then
16540 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16541 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'
16542 else
16543 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16544 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'
16545 fi
16546 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16547 hardcode_libdir_separator_GCJ=:
16548 ;;
16549
16550 osf4* | osf5*) # as osf3* with the addition of -msym flag
16551 if test "$GCC" = yes; then
16552 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16553 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'
16554 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16555 else
16556 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16557 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'
16558 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~
16559 $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'
16560
16561 # Both c and cxx compiler support -rpath directly
16562 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16563 fi
16564 hardcode_libdir_separator_GCJ=:
16565 ;;
16566
16567 sco3.2v5*)
16568 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16569 hardcode_shlibpath_var_GCJ=no
16570 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16571 runpath_var=LD_RUN_PATH
16572 hardcode_runpath_var=yes
16573 ;;
16574
16575 solaris*)
16576 no_undefined_flag_GCJ=' -z text'
16577 if test "$GCC" = yes; then
16578 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16579 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16580 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16581 else
16582 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16583 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16584 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16585 fi
16586 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16587 hardcode_shlibpath_var_GCJ=no
16588 case $host_os in
16589 solaris2.[0-5] | solaris2.[0-5].*) ;;
16590 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16591 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16592 esac
16593 link_all_deplibs_GCJ=yes
16594 ;;
16595
16596 sunos4*)
16597 if test "x$host_vendor" = xsequent; then
16598 # Use $CC to link under sequent, because it throws in some extra .o
16599 # files that make .init and .fini sections work.
16600 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16601 else
16602 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16603 fi
16604 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16605 hardcode_direct_GCJ=yes
16606 hardcode_minus_L_GCJ=yes
16607 hardcode_shlibpath_var_GCJ=no
16608 ;;
16609
16610 sysv4)
16611 case $host_vendor in
16612 sni)
16613 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16614 hardcode_direct_GCJ=yes # is this really true???
16615 ;;
16616 siemens)
16617 ## LD is ld it makes a PLAMLIB
16618 ## CC just makes a GrossModule.
16619 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16620 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16621 hardcode_direct_GCJ=no
16622 ;;
16623 motorola)
16624 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16625 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16626 ;;
16627 esac
16628 runpath_var='LD_RUN_PATH'
16629 hardcode_shlibpath_var_GCJ=no
16630 ;;
16631
16632 sysv4.3*)
16633 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16634 hardcode_shlibpath_var_GCJ=no
16635 export_dynamic_flag_spec_GCJ='-Bexport'
16636 ;;
16637
16638 sysv4*MP*)
16639 if test -d /usr/nec; then
16640 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16641 hardcode_shlibpath_var_GCJ=no
16642 runpath_var=LD_RUN_PATH
16643 hardcode_runpath_var=yes
16644 ld_shlibs_GCJ=yes
16645 fi
16646 ;;
16647
16648 sysv4.2uw2*)
16649 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16650 hardcode_direct_GCJ=yes
16651 hardcode_minus_L_GCJ=no
16652 hardcode_shlibpath_var_GCJ=no
16653 hardcode_runpath_var=yes
16654 runpath_var=LD_RUN_PATH
16655 ;;
16656
16657 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16658 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16659 if test "$GCC" = yes; then
16660 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16661 else
16662 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16663 fi
16664 runpath_var='LD_RUN_PATH'
16665 hardcode_shlibpath_var_GCJ=no
16666 ;;
16667
16668 sysv5*)
16669 no_undefined_flag_GCJ=' -z text'
16670 # $CC -shared without GNU ld will not create a library from C++
16671 # object files and a static libstdc++, better avoid it by now
16672 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16673 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16674 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16675 hardcode_libdir_flag_spec_GCJ=
16676 hardcode_shlibpath_var_GCJ=no
16677 runpath_var='LD_RUN_PATH'
16678 ;;
16679
16680 uts4*)
16681 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16682 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16683 hardcode_shlibpath_var_GCJ=no
16684 ;;
16685
16686 *)
16687 ld_shlibs_GCJ=no
16688 ;;
16689 esac
16690 fi
16691
16692echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16693echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16694test "$ld_shlibs_GCJ" = no && can_build_shared=no
16695
16696variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16697if test "$GCC" = yes; then
16698 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16699fi
16700
16701#
16702# Do we need to explicitly link libc?
16703#
16704case "x$archive_cmds_need_lc_GCJ" in
16705x|xyes)
16706 # Assume -lc should be added
16707 archive_cmds_need_lc_GCJ=yes
16708
16709 if test "$enable_shared" = yes && test "$GCC" = yes; then
16710 case $archive_cmds_GCJ in
16711 *'~'*)
16712 # FIXME: we may have to deal with multi-command sequences.
16713 ;;
16714 '$CC '*)
16715 # Test whether the compiler implicitly links with -lc since on some
16716 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16717 # to ld, don't add -lc before -lgcc.
16718 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16719echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16720 $rm conftest*
16721 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16722
16723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16724 (eval $ac_compile) 2>&5
16725 ac_status=$?
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); } 2>conftest.err; then
16728 soname=conftest
16729 lib=conftest
16730 libobjs=conftest.$ac_objext
16731 deplibs=
16732 wl=$lt_prog_compiler_wl_GCJ
16733 compiler_flags=-v
16734 linker_flags=-v
16735 verstring=
16736 output_objdir=.
16737 libname=conftest
16738 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16739 allow_undefined_flag_GCJ=
16740 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16741 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16742 ac_status=$?
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }
16745 then
16746 archive_cmds_need_lc_GCJ=no
16747 else
16748 archive_cmds_need_lc_GCJ=yes
16749 fi
16750 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16751 else
16752 cat conftest.err 1>&5
16753 fi
16754 $rm conftest*
16755 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16756echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16757 ;;
16758 esac
16759 fi
16760 ;;
16761esac
16762
16763echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16764echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16765library_names_spec=
16766libname_spec='lib$name'
16767soname_spec=
hp.com!davidm2de17682004-04-20 16:53:44 +000016768shrext_cmds=".so"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016769postinstall_cmds=
16770postuninstall_cmds=
16771finish_cmds=
16772finish_eval=
16773shlibpath_var=
16774shlibpath_overrides_runpath=unknown
16775version_type=none
16776dynamic_linker="$host_os ld.so"
16777sys_lib_dlsearch_path_spec="/lib /usr/lib"
16778if test "$GCC" = yes; then
16779 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16780 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16781 # if the path contains ";" then we assume it to be the separator
16782 # otherwise default to the standard path separator (i.e. ":") - it is
16783 # assumed that no part of a normal pathname contains ";" but that should
16784 # okay in the real world where ";" in dirpaths is itself problematic.
16785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16786 else
16787 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16788 fi
16789else
16790 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16791fi
16792need_lib_prefix=unknown
16793hardcode_into_libs=no
16794
16795# when you set need_version to no, make sure it does not cause -set_version
16796# flags to be left without arguments
16797need_version=unknown
16798
16799case $host_os in
16800aix3*)
16801 version_type=linux
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16803 shlibpath_var=LIBPATH
16804
16805 # AIX 3 has no versioning support, so we append a major version to the name.
16806 soname_spec='${libname}${release}${shared_ext}$major'
16807 ;;
16808
16809aix4* | aix5*)
16810 version_type=linux
16811 need_lib_prefix=no
16812 need_version=no
16813 hardcode_into_libs=yes
16814 if test "$host_cpu" = ia64; then
16815 # AIX 5 supports IA64
16816 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16817 shlibpath_var=LD_LIBRARY_PATH
16818 else
16819 # With GCC up to 2.95.x, collect2 would create an import file
16820 # for dependence libraries. The import file would start with
16821 # the line `#! .'. This would cause the generated library to
16822 # depend on `.', always an invalid library. This was fixed in
16823 # development snapshots of GCC prior to 3.0.
16824 case $host_os in
16825 aix4 | aix4.[01] | aix4.[01].*)
16826 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16827 echo ' yes '
16828 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16829 :
16830 else
16831 can_build_shared=no
16832 fi
16833 ;;
16834 esac
16835 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16836 # soname into executable. Probably we can add versioning support to
16837 # collect2, so additional links can be useful in future.
16838 if test "$aix_use_runtimelinking" = yes; then
16839 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16840 # instead of lib<name>.a to let people know that these are not
16841 # typical AIX shared libraries.
16842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16843 else
16844 # We preserve .a as extension for shared libraries through AIX4.2
16845 # and later when we are not doing run time linking.
16846 library_names_spec='${libname}${release}.a $libname.a'
16847 soname_spec='${libname}${release}${shared_ext}$major'
16848 fi
16849 shlibpath_var=LIBPATH
16850 fi
16851 ;;
16852
16853amigaos*)
16854 library_names_spec='$libname.ixlibrary $libname.a'
16855 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16856 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'
16857 ;;
16858
16859beos*)
16860 library_names_spec='${libname}${shared_ext}'
16861 dynamic_linker="$host_os ld.so"
16862 shlibpath_var=LIBRARY_PATH
16863 ;;
16864
16865bsdi4*)
16866 version_type=linux
16867 need_version=no
16868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16869 soname_spec='${libname}${release}${shared_ext}$major'
16870 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16871 shlibpath_var=LD_LIBRARY_PATH
16872 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16873 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16874 # the default ld.so.conf also contains /usr/contrib/lib and
16875 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16876 # libtool to hard-code these into programs
16877 ;;
16878
16879cygwin* | mingw* | pw32*)
16880 version_type=windows
hp.com!davidm2de17682004-04-20 16:53:44 +000016881 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016882 need_version=no
16883 need_lib_prefix=no
16884
16885 case $GCC,$host_os in
16886 yes,cygwin* | yes,mingw* | yes,pw32*)
16887 library_names_spec='$libname.dll.a'
16888 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16889 postinstall_cmds='base_file=`basename \${file}`~
16890 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16891 dldir=$destdir/`dirname \$dlpath`~
16892 test -d \$dldir || mkdir -p \$dldir~
16893 $install_prog $dir/$dlname \$dldir/$dlname'
16894 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16895 dlpath=$dir/\$dldll~
16896 $rm \$dlpath'
16897 shlibpath_overrides_runpath=yes
16898
16899 case $host_os in
16900 cygwin*)
16901 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16902 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16903 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16904 ;;
16905 mingw*)
16906 # MinGW DLLs use traditional 'lib' prefix
16907 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16908 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16909 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16910 # It is most probably a Windows format PATH printed by
16911 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16912 # path with ; separators, and with drive letters. We can handle the
16913 # drive letters (cygwin fileutils understands them), so leave them,
16914 # especially as we might pass files found there to a mingw objdump,
16915 # which wouldn't understand a cygwinified path. Ahh.
16916 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16917 else
16918 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16919 fi
16920 ;;
16921 pw32*)
16922 # pw32 DLLs use 'pw' prefix rather than 'lib'
16923 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16924 ;;
16925 esac
16926 ;;
16927
16928 *)
16929 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16930 ;;
16931 esac
16932 dynamic_linker='Win32 ld.exe'
16933 # FIXME: first we should search . and the directory the executable is in
16934 shlibpath_var=PATH
16935 ;;
16936
16937darwin* | rhapsody*)
16938 dynamic_linker="$host_os dyld"
16939 version_type=darwin
16940 need_lib_prefix=no
16941 need_version=no
16942 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16943 soname_spec='${libname}${release}${major}$shared_ext'
16944 shlibpath_overrides_runpath=yes
16945 shlibpath_var=DYLD_LIBRARY_PATH
hp.com!davidm2de17682004-04-20 16:53:44 +000016946 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016947 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16948 if test "$GCC" = yes; then
16949 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"`
16950 else
16951 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16952 fi
16953 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16954 ;;
16955
16956dgux*)
16957 version_type=linux
16958 need_lib_prefix=no
16959 need_version=no
16960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16961 soname_spec='${libname}${release}${shared_ext}$major'
16962 shlibpath_var=LD_LIBRARY_PATH
16963 ;;
16964
16965freebsd1*)
16966 dynamic_linker=no
16967 ;;
16968
16969kfreebsd*-gnu)
16970 version_type=linux
16971 need_lib_prefix=no
16972 need_version=no
16973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16974 soname_spec='${libname}${release}${shared_ext}$major'
16975 shlibpath_var=LD_LIBRARY_PATH
16976 shlibpath_overrides_runpath=no
16977 hardcode_into_libs=yes
16978 dynamic_linker='GNU ld.so'
16979 ;;
16980
16981freebsd*)
16982 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16983 version_type=freebsd-$objformat
16984 case $version_type in
16985 freebsd-elf*)
16986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16987 need_version=no
16988 need_lib_prefix=no
16989 ;;
16990 freebsd-*)
16991 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16992 need_version=yes
16993 ;;
16994 esac
16995 shlibpath_var=LD_LIBRARY_PATH
16996 case $host_os in
16997 freebsd2*)
16998 shlibpath_overrides_runpath=yes
16999 ;;
17000 freebsd3.01* | freebsdelf3.01*)
17001 shlibpath_overrides_runpath=yes
17002 hardcode_into_libs=yes
17003 ;;
17004 *) # from 3.2 on
17005 shlibpath_overrides_runpath=no
17006 hardcode_into_libs=yes
17007 ;;
17008 esac
17009 ;;
17010
17011gnu*)
17012 version_type=linux
17013 need_lib_prefix=no
17014 need_version=no
17015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17016 soname_spec='${libname}${release}${shared_ext}$major'
17017 shlibpath_var=LD_LIBRARY_PATH
17018 hardcode_into_libs=yes
17019 ;;
17020
17021hpux9* | hpux10* | hpux11*)
17022 # Give a soname corresponding to the major version so that dld.sl refuses to
17023 # link against other versions.
17024 version_type=sunos
17025 need_lib_prefix=no
17026 need_version=no
17027 case "$host_cpu" in
17028 ia64*)
hp.com!davidm2de17682004-04-20 16:53:44 +000017029 shrext_cmds='.so'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017030 hardcode_into_libs=yes
17031 dynamic_linker="$host_os dld.so"
17032 shlibpath_var=LD_LIBRARY_PATH
17033 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17035 soname_spec='${libname}${release}${shared_ext}$major'
17036 if test "X$HPUX_IA64_MODE" = X32; then
17037 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17038 else
17039 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17040 fi
17041 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17042 ;;
17043 hppa*64*)
hp.com!davidm2de17682004-04-20 16:53:44 +000017044 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017045 hardcode_into_libs=yes
17046 dynamic_linker="$host_os dld.sl"
17047 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17048 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17050 soname_spec='${libname}${release}${shared_ext}$major'
17051 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17052 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17053 ;;
17054 *)
hp.com!davidm2de17682004-04-20 16:53:44 +000017055 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017056 dynamic_linker="$host_os dld.sl"
17057 shlibpath_var=SHLIB_PATH
17058 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17060 soname_spec='${libname}${release}${shared_ext}$major'
17061 ;;
17062 esac
17063 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17064 postinstall_cmds='chmod 555 $lib'
17065 ;;
17066
17067irix5* | irix6* | nonstopux*)
17068 case $host_os in
17069 nonstopux*) version_type=nonstopux ;;
17070 *)
17071 if test "$lt_cv_prog_gnu_ld" = yes; then
17072 version_type=linux
17073 else
17074 version_type=irix
17075 fi ;;
17076 esac
17077 need_lib_prefix=no
17078 need_version=no
17079 soname_spec='${libname}${release}${shared_ext}$major'
17080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17081 case $host_os in
17082 irix5* | nonstopux*)
17083 libsuff= shlibsuff=
17084 ;;
17085 *)
17086 case $LD in # libtool.m4 will add one of these switches to LD
17087 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17088 libsuff= shlibsuff= libmagic=32-bit;;
17089 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17090 libsuff=32 shlibsuff=N32 libmagic=N32;;
17091 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17092 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17093 *) libsuff= shlibsuff= libmagic=never-match;;
17094 esac
17095 ;;
17096 esac
17097 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17098 shlibpath_overrides_runpath=no
17099 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17100 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17101 hardcode_into_libs=yes
17102 ;;
17103
17104# No shared lib support for Linux oldld, aout, or coff.
17105linux*oldld* | linux*aout* | linux*coff*)
17106 dynamic_linker=no
17107 ;;
17108
17109# This must be Linux ELF.
17110linux*)
17111 version_type=linux
17112 need_lib_prefix=no
17113 need_version=no
17114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17115 soname_spec='${libname}${release}${shared_ext}$major'
17116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17117 shlibpath_var=LD_LIBRARY_PATH
17118 shlibpath_overrides_runpath=no
17119 # This implies no fast_install, which is unacceptable.
17120 # Some rework will be needed to allow for fast_install
17121 # before this can be enabled.
17122 hardcode_into_libs=yes
17123
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017124 # Append ld.so.conf contents to the search path
17125 if test -f /etc/ld.so.conf; then
hp.com!davidm2de17682004-04-20 16:53:44 +000017126 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17127 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017128 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017129
17130 # We used to test for /lib/ld.so.1 and disable shared libraries on
17131 # powerpc, because MkLinux only supported shared libraries with the
17132 # GNU dynamic linker. Since this was broken with cross compilers,
17133 # most powerpc-linux boxes support dynamic linking these days and
17134 # people can always --disable-shared, the test was removed, and we
17135 # assume the GNU/Linux dynamic linker is in use.
17136 dynamic_linker='GNU/Linux ld.so'
17137 ;;
17138
hp.com!davidm16230292004-07-15 17:39:59 +000017139netbsdelf*-gnu)
17140 version_type=linux
17141 need_lib_prefix=no
17142 need_version=no
17143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17144 soname_spec='${libname}${release}${shared_ext}$major'
17145 shlibpath_var=LD_LIBRARY_PATH
17146 shlibpath_overrides_runpath=no
17147 hardcode_into_libs=yes
17148 dynamic_linker='NetBSD ld.elf_so'
17149 ;;
17150
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017151knetbsd*-gnu)
17152 version_type=linux
17153 need_lib_prefix=no
17154 need_version=no
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17156 soname_spec='${libname}${release}${shared_ext}$major'
17157 shlibpath_var=LD_LIBRARY_PATH
17158 shlibpath_overrides_runpath=no
17159 hardcode_into_libs=yes
17160 dynamic_linker='GNU ld.so'
17161 ;;
17162
17163netbsd*)
17164 version_type=sunos
17165 need_lib_prefix=no
17166 need_version=no
17167 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17170 dynamic_linker='NetBSD (a.out) ld.so'
17171 else
hp.com!davidm2de17682004-04-20 16:53:44 +000017172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017173 soname_spec='${libname}${release}${shared_ext}$major'
17174 dynamic_linker='NetBSD ld.elf_so'
17175 fi
17176 shlibpath_var=LD_LIBRARY_PATH
17177 shlibpath_overrides_runpath=yes
17178 hardcode_into_libs=yes
17179 ;;
17180
17181newsos6)
17182 version_type=linux
17183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17184 shlibpath_var=LD_LIBRARY_PATH
17185 shlibpath_overrides_runpath=yes
17186 ;;
17187
17188nto-qnx*)
17189 version_type=linux
17190 need_lib_prefix=no
17191 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
17195 shlibpath_overrides_runpath=yes
17196 ;;
17197
17198openbsd*)
17199 version_type=sunos
17200 need_lib_prefix=no
17201 need_version=yes
17202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17204 shlibpath_var=LD_LIBRARY_PATH
17205 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17206 case $host_os in
17207 openbsd2.[89] | openbsd2.[89].*)
17208 shlibpath_overrides_runpath=no
17209 ;;
17210 *)
17211 shlibpath_overrides_runpath=yes
17212 ;;
17213 esac
17214 else
17215 shlibpath_overrides_runpath=yes
17216 fi
17217 ;;
17218
17219os2*)
17220 libname_spec='$name'
hp.com!davidm2de17682004-04-20 16:53:44 +000017221 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017222 need_lib_prefix=no
17223 library_names_spec='$libname${shared_ext} $libname.a'
17224 dynamic_linker='OS/2 ld.exe'
17225 shlibpath_var=LIBPATH
17226 ;;
17227
17228osf3* | osf4* | osf5*)
17229 version_type=osf
17230 need_lib_prefix=no
17231 need_version=no
17232 soname_spec='${libname}${release}${shared_ext}$major'
17233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17234 shlibpath_var=LD_LIBRARY_PATH
17235 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17236 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17237 ;;
17238
17239sco3.2v5*)
17240 version_type=osf
17241 soname_spec='${libname}${release}${shared_ext}$major'
17242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17243 shlibpath_var=LD_LIBRARY_PATH
17244 ;;
17245
17246solaris*)
17247 version_type=linux
17248 need_lib_prefix=no
17249 need_version=no
17250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17251 soname_spec='${libname}${release}${shared_ext}$major'
17252 shlibpath_var=LD_LIBRARY_PATH
17253 shlibpath_overrides_runpath=yes
17254 hardcode_into_libs=yes
17255 # ldd complains unless libraries are executable
17256 postinstall_cmds='chmod +x $lib'
17257 ;;
17258
17259sunos4*)
17260 version_type=sunos
17261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17262 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17263 shlibpath_var=LD_LIBRARY_PATH
17264 shlibpath_overrides_runpath=yes
17265 if test "$with_gnu_ld" = yes; then
17266 need_lib_prefix=no
17267 fi
17268 need_version=yes
17269 ;;
17270
17271sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17272 version_type=linux
17273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17274 soname_spec='${libname}${release}${shared_ext}$major'
17275 shlibpath_var=LD_LIBRARY_PATH
17276 case $host_vendor in
17277 sni)
17278 shlibpath_overrides_runpath=no
17279 need_lib_prefix=no
17280 export_dynamic_flag_spec='${wl}-Blargedynsym'
17281 runpath_var=LD_RUN_PATH
17282 ;;
17283 siemens)
17284 need_lib_prefix=no
17285 ;;
17286 motorola)
17287 need_lib_prefix=no
17288 need_version=no
17289 shlibpath_overrides_runpath=no
17290 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17291 ;;
17292 esac
17293 ;;
17294
17295sysv4*MP*)
17296 if test -d /usr/nec ;then
17297 version_type=linux
17298 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17299 soname_spec='$libname${shared_ext}.$major'
17300 shlibpath_var=LD_LIBRARY_PATH
17301 fi
17302 ;;
17303
17304uts4*)
17305 version_type=linux
17306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17307 soname_spec='${libname}${release}${shared_ext}$major'
17308 shlibpath_var=LD_LIBRARY_PATH
17309 ;;
17310
17311*)
17312 dynamic_linker=no
17313 ;;
17314esac
17315echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17316echo "${ECHO_T}$dynamic_linker" >&6
17317test "$dynamic_linker" = no && can_build_shared=no
17318
17319echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17320echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17321hardcode_action_GCJ=
17322if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17323 test -n "$runpath_var GCJ" || \
17324 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17325
17326 # We can hardcode non-existant directories.
17327 if test "$hardcode_direct_GCJ" != no &&
17328 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17329 # have to relink, otherwise we might link with an installed library
17330 # when we should be linking with a yet-to-be-installed one
17331 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17332 test "$hardcode_minus_L_GCJ" != no; then
17333 # Linking always hardcodes the temporary library directory.
17334 hardcode_action_GCJ=relink
17335 else
17336 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17337 hardcode_action_GCJ=immediate
17338 fi
17339else
17340 # We cannot hardcode anything, or else we can only hardcode existing
17341 # directories.
17342 hardcode_action_GCJ=unsupported
17343fi
17344echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17345echo "${ECHO_T}$hardcode_action_GCJ" >&6
17346
17347if test "$hardcode_action_GCJ" = relink; then
17348 # Fast installation is not supported
17349 enable_fast_install=no
17350elif test "$shlibpath_overrides_runpath" = yes ||
17351 test "$enable_shared" = no; then
17352 # Fast installation is not necessary
17353 enable_fast_install=needless
17354fi
17355
17356striplib=
17357old_striplib=
17358echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17359echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17360if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17361 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17362 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17363 echo "$as_me:$LINENO: result: yes" >&5
17364echo "${ECHO_T}yes" >&6
17365else
17366# FIXME - insert some real tests, host_os isn't really good enough
17367 case $host_os in
17368 darwin*)
17369 if test -n "$STRIP" ; then
17370 striplib="$STRIP -x"
17371 echo "$as_me:$LINENO: result: yes" >&5
17372echo "${ECHO_T}yes" >&6
17373 else
17374 echo "$as_me:$LINENO: result: no" >&5
17375echo "${ECHO_T}no" >&6
17376fi
17377 ;;
17378 *)
17379 echo "$as_me:$LINENO: result: no" >&5
17380echo "${ECHO_T}no" >&6
17381 ;;
17382 esac
17383fi
17384
17385if test "x$enable_dlopen" != xyes; then
17386 enable_dlopen=unknown
17387 enable_dlopen_self=unknown
17388 enable_dlopen_self_static=unknown
17389else
17390 lt_cv_dlopen=no
17391 lt_cv_dlopen_libs=
17392
17393 case $host_os in
17394 beos*)
17395 lt_cv_dlopen="load_add_on"
17396 lt_cv_dlopen_libs=
17397 lt_cv_dlopen_self=yes
17398 ;;
17399
17400 mingw* | pw32*)
17401 lt_cv_dlopen="LoadLibrary"
17402 lt_cv_dlopen_libs=
17403 ;;
17404
17405 cygwin*)
17406 lt_cv_dlopen="dlopen"
17407 lt_cv_dlopen_libs=
17408 ;;
17409
17410 darwin*)
17411 # if libdl is installed we need to link against it
17412 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17413echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17414if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17415 echo $ECHO_N "(cached) $ECHO_C" >&6
17416else
17417 ac_check_lib_save_LIBS=$LIBS
17418LIBS="-ldl $LIBS"
17419cat >conftest.$ac_ext <<_ACEOF
17420/* confdefs.h. */
17421_ACEOF
17422cat confdefs.h >>conftest.$ac_ext
17423cat >>conftest.$ac_ext <<_ACEOF
17424/* end confdefs.h. */
17425
17426/* Override any gcc2 internal prototype to avoid an error. */
17427#ifdef __cplusplus
17428extern "C"
17429#endif
17430/* We use char because int might match the return type of a gcc2
17431 builtin and then its argument prototype would still apply. */
17432char dlopen ();
17433int
17434main ()
17435{
17436dlopen ();
17437 ;
17438 return 0;
17439}
17440_ACEOF
17441rm -f conftest.$ac_objext conftest$ac_exeext
17442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017443 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017444 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017445 grep -v '^ *+' conftest.er1 >conftest.err
17446 rm -f conftest.er1
17447 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452 (eval $ac_try) 2>&5
17453 ac_status=$?
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; } &&
17456 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17458 (eval $ac_try) 2>&5
17459 ac_status=$?
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); }; }; then
17462 ac_cv_lib_dl_dlopen=yes
17463else
17464 echo "$as_me: failed program was:" >&5
17465sed 's/^/| /' conftest.$ac_ext >&5
17466
17467ac_cv_lib_dl_dlopen=no
17468fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017469rm -f conftest.err conftest.$ac_objext \
17470 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017471LIBS=$ac_check_lib_save_LIBS
17472fi
17473echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17474echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17475if test $ac_cv_lib_dl_dlopen = yes; then
17476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17477else
17478
17479 lt_cv_dlopen="dyld"
17480 lt_cv_dlopen_libs=
17481 lt_cv_dlopen_self=yes
17482
17483fi
17484
17485 ;;
17486
17487 *)
17488 echo "$as_me:$LINENO: checking for shl_load" >&5
17489echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17490if test "${ac_cv_func_shl_load+set}" = set; then
17491 echo $ECHO_N "(cached) $ECHO_C" >&6
17492else
17493 cat >conftest.$ac_ext <<_ACEOF
17494/* confdefs.h. */
17495_ACEOF
17496cat confdefs.h >>conftest.$ac_ext
17497cat >>conftest.$ac_ext <<_ACEOF
17498/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017499/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17501#define shl_load innocuous_shl_load
17502
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017503/* System header to define __stub macros and hopefully few prototypes,
17504 which can conflict with char shl_load (); below.
17505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17506 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017507
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017508#ifdef __STDC__
17509# include <limits.h>
17510#else
17511# include <assert.h>
17512#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017513
17514#undef shl_load
17515
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017516/* Override any gcc2 internal prototype to avoid an error. */
17517#ifdef __cplusplus
17518extern "C"
17519{
17520#endif
17521/* We use char because int might match the return type of a gcc2
17522 builtin and then its argument prototype would still apply. */
17523char shl_load ();
17524/* The GNU C library defines this for functions which it implements
17525 to always fail with ENOSYS. Some functions are actually named
17526 something starting with __ and the normal name is an alias. */
17527#if defined (__stub_shl_load) || defined (__stub___shl_load)
17528choke me
17529#else
17530char (*f) () = shl_load;
17531#endif
17532#ifdef __cplusplus
17533}
17534#endif
17535
17536int
17537main ()
17538{
17539return f != shl_load;
17540 ;
17541 return 0;
17542}
17543_ACEOF
17544rm -f conftest.$ac_objext conftest$ac_exeext
17545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017546 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017547 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017548 grep -v '^ *+' conftest.er1 >conftest.err
17549 rm -f conftest.er1
17550 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; } &&
17559 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17565 ac_cv_func_shl_load=yes
17566else
17567 echo "$as_me: failed program was:" >&5
17568sed 's/^/| /' conftest.$ac_ext >&5
17569
17570ac_cv_func_shl_load=no
17571fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017572rm -f conftest.err conftest.$ac_objext \
17573 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017574fi
17575echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17576echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17577if test $ac_cv_func_shl_load = yes; then
17578 lt_cv_dlopen="shl_load"
17579else
17580 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17581echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17582if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17583 echo $ECHO_N "(cached) $ECHO_C" >&6
17584else
17585 ac_check_lib_save_LIBS=$LIBS
17586LIBS="-ldld $LIBS"
17587cat >conftest.$ac_ext <<_ACEOF
17588/* confdefs.h. */
17589_ACEOF
17590cat confdefs.h >>conftest.$ac_ext
17591cat >>conftest.$ac_ext <<_ACEOF
17592/* end confdefs.h. */
17593
17594/* Override any gcc2 internal prototype to avoid an error. */
17595#ifdef __cplusplus
17596extern "C"
17597#endif
17598/* We use char because int might match the return type of a gcc2
17599 builtin and then its argument prototype would still apply. */
17600char shl_load ();
17601int
17602main ()
17603{
17604shl_load ();
17605 ;
17606 return 0;
17607}
17608_ACEOF
17609rm -f conftest.$ac_objext conftest$ac_exeext
17610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017611 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017612 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017613 grep -v '^ *+' conftest.er1 >conftest.err
17614 rm -f conftest.er1
17615 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620 (eval $ac_try) 2>&5
17621 ac_status=$?
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; } &&
17624 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17626 (eval $ac_try) 2>&5
17627 ac_status=$?
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); }; }; then
17630 ac_cv_lib_dld_shl_load=yes
17631else
17632 echo "$as_me: failed program was:" >&5
17633sed 's/^/| /' conftest.$ac_ext >&5
17634
17635ac_cv_lib_dld_shl_load=no
17636fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017637rm -f conftest.err conftest.$ac_objext \
17638 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017639LIBS=$ac_check_lib_save_LIBS
17640fi
17641echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17642echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17643if test $ac_cv_lib_dld_shl_load = yes; then
17644 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17645else
17646 echo "$as_me:$LINENO: checking for dlopen" >&5
17647echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17648if test "${ac_cv_func_dlopen+set}" = set; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17650else
17651 cat >conftest.$ac_ext <<_ACEOF
17652/* confdefs.h. */
17653_ACEOF
17654cat confdefs.h >>conftest.$ac_ext
17655cat >>conftest.$ac_ext <<_ACEOF
17656/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017657/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17659#define dlopen innocuous_dlopen
17660
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017661/* System header to define __stub macros and hopefully few prototypes,
17662 which can conflict with char dlopen (); below.
17663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17664 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017665
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017666#ifdef __STDC__
17667# include <limits.h>
17668#else
17669# include <assert.h>
17670#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017671
17672#undef dlopen
17673
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017674/* Override any gcc2 internal prototype to avoid an error. */
17675#ifdef __cplusplus
17676extern "C"
17677{
17678#endif
17679/* We use char because int might match the return type of a gcc2
17680 builtin and then its argument prototype would still apply. */
17681char dlopen ();
17682/* The GNU C library defines this for functions which it implements
17683 to always fail with ENOSYS. Some functions are actually named
17684 something starting with __ and the normal name is an alias. */
17685#if defined (__stub_dlopen) || defined (__stub___dlopen)
17686choke me
17687#else
17688char (*f) () = dlopen;
17689#endif
17690#ifdef __cplusplus
17691}
17692#endif
17693
17694int
17695main ()
17696{
17697return f != dlopen;
17698 ;
17699 return 0;
17700}
17701_ACEOF
17702rm -f conftest.$ac_objext conftest$ac_exeext
17703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017704 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017705 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017706 grep -v '^ *+' conftest.er1 >conftest.err
17707 rm -f conftest.er1
17708 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713 (eval $ac_try) 2>&5
17714 ac_status=$?
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; } &&
17717 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17720 ac_status=$?
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; }; then
17723 ac_cv_func_dlopen=yes
17724else
17725 echo "$as_me: failed program was:" >&5
17726sed 's/^/| /' conftest.$ac_ext >&5
17727
17728ac_cv_func_dlopen=no
17729fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017730rm -f conftest.err conftest.$ac_objext \
17731 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017732fi
17733echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17734echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17735if test $ac_cv_func_dlopen = yes; then
17736 lt_cv_dlopen="dlopen"
17737else
17738 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17739echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17740if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17741 echo $ECHO_N "(cached) $ECHO_C" >&6
17742else
17743 ac_check_lib_save_LIBS=$LIBS
17744LIBS="-ldl $LIBS"
17745cat >conftest.$ac_ext <<_ACEOF
17746/* confdefs.h. */
17747_ACEOF
17748cat confdefs.h >>conftest.$ac_ext
17749cat >>conftest.$ac_ext <<_ACEOF
17750/* end confdefs.h. */
17751
17752/* Override any gcc2 internal prototype to avoid an error. */
17753#ifdef __cplusplus
17754extern "C"
17755#endif
17756/* We use char because int might match the return type of a gcc2
17757 builtin and then its argument prototype would still apply. */
17758char dlopen ();
17759int
17760main ()
17761{
17762dlopen ();
17763 ;
17764 return 0;
17765}
17766_ACEOF
17767rm -f conftest.$ac_objext conftest$ac_exeext
17768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017769 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017770 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017771 grep -v '^ *+' conftest.er1 >conftest.err
17772 rm -f conftest.er1
17773 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 (eval $ac_try) 2>&5
17779 ac_status=$?
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; } &&
17782 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17785 ac_status=$?
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; }; then
17788 ac_cv_lib_dl_dlopen=yes
17789else
17790 echo "$as_me: failed program was:" >&5
17791sed 's/^/| /' conftest.$ac_ext >&5
17792
17793ac_cv_lib_dl_dlopen=no
17794fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017795rm -f conftest.err conftest.$ac_objext \
17796 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017797LIBS=$ac_check_lib_save_LIBS
17798fi
17799echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17800echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17801if test $ac_cv_lib_dl_dlopen = yes; then
17802 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17803else
17804 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17805echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17806if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17807 echo $ECHO_N "(cached) $ECHO_C" >&6
17808else
17809 ac_check_lib_save_LIBS=$LIBS
17810LIBS="-lsvld $LIBS"
17811cat >conftest.$ac_ext <<_ACEOF
17812/* confdefs.h. */
17813_ACEOF
17814cat confdefs.h >>conftest.$ac_ext
17815cat >>conftest.$ac_ext <<_ACEOF
17816/* end confdefs.h. */
17817
17818/* Override any gcc2 internal prototype to avoid an error. */
17819#ifdef __cplusplus
17820extern "C"
17821#endif
17822/* We use char because int might match the return type of a gcc2
17823 builtin and then its argument prototype would still apply. */
17824char dlopen ();
17825int
17826main ()
17827{
17828dlopen ();
17829 ;
17830 return 0;
17831}
17832_ACEOF
17833rm -f conftest.$ac_objext conftest$ac_exeext
17834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017835 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017836 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017837 grep -v '^ *+' conftest.er1 >conftest.err
17838 rm -f conftest.er1
17839 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844 (eval $ac_try) 2>&5
17845 ac_status=$?
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; } &&
17848 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17851 ac_status=$?
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; }; then
17854 ac_cv_lib_svld_dlopen=yes
17855else
17856 echo "$as_me: failed program was:" >&5
17857sed 's/^/| /' conftest.$ac_ext >&5
17858
17859ac_cv_lib_svld_dlopen=no
17860fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017861rm -f conftest.err conftest.$ac_objext \
17862 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017863LIBS=$ac_check_lib_save_LIBS
17864fi
17865echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17866echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17867if test $ac_cv_lib_svld_dlopen = yes; then
17868 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17869else
17870 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17871echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17872if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17873 echo $ECHO_N "(cached) $ECHO_C" >&6
17874else
17875 ac_check_lib_save_LIBS=$LIBS
17876LIBS="-ldld $LIBS"
17877cat >conftest.$ac_ext <<_ACEOF
17878/* confdefs.h. */
17879_ACEOF
17880cat confdefs.h >>conftest.$ac_ext
17881cat >>conftest.$ac_ext <<_ACEOF
17882/* end confdefs.h. */
17883
17884/* Override any gcc2 internal prototype to avoid an error. */
17885#ifdef __cplusplus
17886extern "C"
17887#endif
17888/* We use char because int might match the return type of a gcc2
17889 builtin and then its argument prototype would still apply. */
17890char dld_link ();
17891int
17892main ()
17893{
17894dld_link ();
17895 ;
17896 return 0;
17897}
17898_ACEOF
17899rm -f conftest.$ac_objext conftest$ac_exeext
17900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017901 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017902 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017903 grep -v '^ *+' conftest.er1 >conftest.err
17904 rm -f conftest.er1
17905 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910 (eval $ac_try) 2>&5
17911 ac_status=$?
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; } &&
17914 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916 (eval $ac_try) 2>&5
17917 ac_status=$?
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; }; then
17920 ac_cv_lib_dld_dld_link=yes
17921else
17922 echo "$as_me: failed program was:" >&5
17923sed 's/^/| /' conftest.$ac_ext >&5
17924
17925ac_cv_lib_dld_dld_link=no
17926fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017927rm -f conftest.err conftest.$ac_objext \
17928 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017929LIBS=$ac_check_lib_save_LIBS
17930fi
17931echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17932echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17933if test $ac_cv_lib_dld_dld_link = yes; then
17934 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17935fi
17936
17937
17938fi
17939
17940
17941fi
17942
17943
17944fi
17945
17946
17947fi
17948
17949
17950fi
17951
17952 ;;
17953 esac
17954
17955 if test "x$lt_cv_dlopen" != xno; then
17956 enable_dlopen=yes
17957 else
17958 enable_dlopen=no
17959 fi
17960
17961 case $lt_cv_dlopen in
17962 dlopen)
17963 save_CPPFLAGS="$CPPFLAGS"
17964 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17965
17966 save_LDFLAGS="$LDFLAGS"
17967 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17968
17969 save_LIBS="$LIBS"
17970 LIBS="$lt_cv_dlopen_libs $LIBS"
17971
17972 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17973echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17974if test "${lt_cv_dlopen_self+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17976else
17977 if test "$cross_compiling" = yes; then :
17978 lt_cv_dlopen_self=cross
17979else
17980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17981 lt_status=$lt_dlunknown
17982 cat > conftest.$ac_ext <<EOF
hp.com!davidm16230292004-07-15 17:39:59 +000017983#line 17983 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017984#include "confdefs.h"
17985
17986#if HAVE_DLFCN_H
17987#include <dlfcn.h>
17988#endif
17989
17990#include <stdio.h>
17991
17992#ifdef RTLD_GLOBAL
17993# define LT_DLGLOBAL RTLD_GLOBAL
17994#else
17995# ifdef DL_GLOBAL
17996# define LT_DLGLOBAL DL_GLOBAL
17997# else
17998# define LT_DLGLOBAL 0
17999# endif
18000#endif
18001
18002/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18003 find out it does not work in some platform. */
18004#ifndef LT_DLLAZY_OR_NOW
18005# ifdef RTLD_LAZY
18006# define LT_DLLAZY_OR_NOW RTLD_LAZY
18007# else
18008# ifdef DL_LAZY
18009# define LT_DLLAZY_OR_NOW DL_LAZY
18010# else
18011# ifdef RTLD_NOW
18012# define LT_DLLAZY_OR_NOW RTLD_NOW
18013# else
18014# ifdef DL_NOW
18015# define LT_DLLAZY_OR_NOW DL_NOW
18016# else
18017# define LT_DLLAZY_OR_NOW 0
18018# endif
18019# endif
18020# endif
18021# endif
18022#endif
18023
18024#ifdef __cplusplus
18025extern "C" void exit (int);
18026#endif
18027
18028void fnord() { int i=42;}
18029int main ()
18030{
18031 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18032 int status = $lt_dlunknown;
18033
18034 if (self)
18035 {
18036 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18037 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18038 /* dlclose (self); */
18039 }
18040
18041 exit (status);
18042}
18043EOF
18044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18045 (eval $ac_link) 2>&5
18046 ac_status=$?
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18049 (./conftest; exit; ) 2>/dev/null
18050 lt_status=$?
18051 case x$lt_status in
18052 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18053 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18054 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18055 esac
18056 else :
18057 # compilation failed
18058 lt_cv_dlopen_self=no
18059 fi
18060fi
18061rm -fr conftest*
18062
18063
18064fi
18065echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18066echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18067
18068 if test "x$lt_cv_dlopen_self" = xyes; then
18069 LDFLAGS="$LDFLAGS $link_static_flag"
18070 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18071echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18072if test "${lt_cv_dlopen_self_static+set}" = set; then
18073 echo $ECHO_N "(cached) $ECHO_C" >&6
18074else
18075 if test "$cross_compiling" = yes; then :
18076 lt_cv_dlopen_self_static=cross
18077else
18078 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18079 lt_status=$lt_dlunknown
18080 cat > conftest.$ac_ext <<EOF
hp.com!davidm16230292004-07-15 17:39:59 +000018081#line 18081 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018082#include "confdefs.h"
18083
18084#if HAVE_DLFCN_H
18085#include <dlfcn.h>
18086#endif
18087
18088#include <stdio.h>
18089
18090#ifdef RTLD_GLOBAL
18091# define LT_DLGLOBAL RTLD_GLOBAL
18092#else
18093# ifdef DL_GLOBAL
18094# define LT_DLGLOBAL DL_GLOBAL
18095# else
18096# define LT_DLGLOBAL 0
18097# endif
18098#endif
18099
18100/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18101 find out it does not work in some platform. */
18102#ifndef LT_DLLAZY_OR_NOW
18103# ifdef RTLD_LAZY
18104# define LT_DLLAZY_OR_NOW RTLD_LAZY
18105# else
18106# ifdef DL_LAZY
18107# define LT_DLLAZY_OR_NOW DL_LAZY
18108# else
18109# ifdef RTLD_NOW
18110# define LT_DLLAZY_OR_NOW RTLD_NOW
18111# else
18112# ifdef DL_NOW
18113# define LT_DLLAZY_OR_NOW DL_NOW
18114# else
18115# define LT_DLLAZY_OR_NOW 0
18116# endif
18117# endif
18118# endif
18119# endif
18120#endif
18121
18122#ifdef __cplusplus
18123extern "C" void exit (int);
18124#endif
18125
18126void fnord() { int i=42;}
18127int main ()
18128{
18129 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18130 int status = $lt_dlunknown;
18131
18132 if (self)
18133 {
18134 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18135 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18136 /* dlclose (self); */
18137 }
18138
18139 exit (status);
18140}
18141EOF
18142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18143 (eval $ac_link) 2>&5
18144 ac_status=$?
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18147 (./conftest; exit; ) 2>/dev/null
18148 lt_status=$?
18149 case x$lt_status in
18150 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18151 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18152 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18153 esac
18154 else :
18155 # compilation failed
18156 lt_cv_dlopen_self_static=no
18157 fi
18158fi
18159rm -fr conftest*
18160
18161
18162fi
18163echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18164echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18165 fi
18166
18167 CPPFLAGS="$save_CPPFLAGS"
18168 LDFLAGS="$save_LDFLAGS"
18169 LIBS="$save_LIBS"
18170 ;;
18171 esac
18172
18173 case $lt_cv_dlopen_self in
18174 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18175 *) enable_dlopen_self=unknown ;;
18176 esac
18177
18178 case $lt_cv_dlopen_self_static in
18179 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18180 *) enable_dlopen_self_static=unknown ;;
18181 esac
18182fi
18183
18184
18185# The else clause should only fire when bootstrapping the
18186# libtool distribution, otherwise you forgot to ship ltmain.sh
18187# with your package, and you will get complaints that there are
18188# no rules to generate ltmain.sh.
18189if test -f "$ltmain"; then
18190 # See if we are running on zsh, and set the options which allow our commands through
18191 # without removal of \ escapes.
18192 if test -n "${ZSH_VERSION+set}" ; then
18193 setopt NO_GLOB_SUBST
18194 fi
18195 # Now quote all the things that may contain metacharacters while being
18196 # careful not to overquote the AC_SUBSTed values. We take copies of the
18197 # variables and quote the copies for generation of the libtool script.
18198 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18199 SED SHELL STRIP \
18200 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18201 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18202 deplibs_check_method reload_flag reload_cmds need_locks \
18203 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18204 lt_cv_sys_global_symbol_to_c_name_address \
18205 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18206 old_postinstall_cmds old_postuninstall_cmds \
18207 compiler_GCJ \
18208 CC_GCJ \
18209 LD_GCJ \
18210 lt_prog_compiler_wl_GCJ \
18211 lt_prog_compiler_pic_GCJ \
18212 lt_prog_compiler_static_GCJ \
18213 lt_prog_compiler_no_builtin_flag_GCJ \
18214 export_dynamic_flag_spec_GCJ \
18215 thread_safe_flag_spec_GCJ \
18216 whole_archive_flag_spec_GCJ \
18217 enable_shared_with_static_runtimes_GCJ \
18218 old_archive_cmds_GCJ \
18219 old_archive_from_new_cmds_GCJ \
18220 predep_objects_GCJ \
18221 postdep_objects_GCJ \
18222 predeps_GCJ \
18223 postdeps_GCJ \
18224 compiler_lib_search_path_GCJ \
18225 archive_cmds_GCJ \
18226 archive_expsym_cmds_GCJ \
18227 postinstall_cmds_GCJ \
18228 postuninstall_cmds_GCJ \
18229 old_archive_from_expsyms_cmds_GCJ \
18230 allow_undefined_flag_GCJ \
18231 no_undefined_flag_GCJ \
18232 export_symbols_cmds_GCJ \
18233 hardcode_libdir_flag_spec_GCJ \
18234 hardcode_libdir_flag_spec_ld_GCJ \
18235 hardcode_libdir_separator_GCJ \
18236 hardcode_automatic_GCJ \
18237 module_cmds_GCJ \
18238 module_expsym_cmds_GCJ \
18239 lt_cv_prog_compiler_c_o_GCJ \
18240 exclude_expsyms_GCJ \
18241 include_expsyms_GCJ; do
18242
18243 case $var in
18244 old_archive_cmds_GCJ | \
18245 old_archive_from_new_cmds_GCJ | \
18246 archive_cmds_GCJ | \
18247 archive_expsym_cmds_GCJ | \
18248 module_cmds_GCJ | \
18249 module_expsym_cmds_GCJ | \
18250 old_archive_from_expsyms_cmds_GCJ | \
18251 export_symbols_cmds_GCJ | \
18252 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18253 postinstall_cmds | postuninstall_cmds | \
18254 old_postinstall_cmds | old_postuninstall_cmds | \
18255 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18256 # Double-quote double-evaled strings.
18257 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18258 ;;
18259 *)
18260 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18261 ;;
18262 esac
18263 done
18264
18265 case $lt_echo in
18266 *'\$0 --fallback-echo"')
18267 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18268 ;;
18269 esac
18270
18271cfgfile="$ofile"
18272
18273 cat <<__EOF__ >> "$cfgfile"
18274# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18275
18276# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18277
18278# Shell to use when invoking shell scripts.
18279SHELL=$lt_SHELL
18280
18281# Whether or not to build shared libraries.
18282build_libtool_libs=$enable_shared
18283
18284# Whether or not to build static libraries.
18285build_old_libs=$enable_static
18286
18287# Whether or not to add -lc for building shared libraries.
18288build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18289
18290# Whether or not to disallow shared libs when runtime libs are static
18291allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18292
18293# Whether or not to optimize for fast installation.
18294fast_install=$enable_fast_install
18295
18296# The host system.
18297host_alias=$host_alias
18298host=$host
18299
18300# An echo program that does not interpret backslashes.
18301echo=$lt_echo
18302
18303# The archiver.
18304AR=$lt_AR
18305AR_FLAGS=$lt_AR_FLAGS
18306
18307# A C compiler.
18308LTCC=$lt_LTCC
18309
18310# A language-specific compiler.
18311CC=$lt_compiler_GCJ
18312
18313# Is the compiler the GNU C compiler?
18314with_gcc=$GCC_GCJ
18315
18316# An ERE matcher.
18317EGREP=$lt_EGREP
18318
18319# The linker used to build libraries.
18320LD=$lt_LD_GCJ
18321
18322# Whether we need hard or soft links.
18323LN_S=$lt_LN_S
18324
18325# A BSD-compatible nm program.
18326NM=$lt_NM
18327
18328# A symbol stripping program
18329STRIP=$lt_STRIP
18330
18331# Used to examine libraries when file_magic_cmd begins "file"
18332MAGIC_CMD=$MAGIC_CMD
18333
18334# Used on cygwin: DLL creation program.
18335DLLTOOL="$DLLTOOL"
18336
18337# Used on cygwin: object dumper.
18338OBJDUMP="$OBJDUMP"
18339
18340# Used on cygwin: assembler.
18341AS="$AS"
18342
18343# The name of the directory that contains temporary libtool files.
18344objdir=$objdir
18345
18346# How to create reloadable object files.
18347reload_flag=$lt_reload_flag
18348reload_cmds=$lt_reload_cmds
18349
18350# How to pass a linker flag through the compiler.
18351wl=$lt_lt_prog_compiler_wl_GCJ
18352
18353# Object file suffix (normally "o").
18354objext="$ac_objext"
18355
18356# Old archive suffix (normally "a").
18357libext="$libext"
18358
18359# Shared library suffix (normally ".so").
hp.com!davidm2de17682004-04-20 16:53:44 +000018360shrext_cmds='$shrext_cmds'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018361
18362# Executable file suffix (normally "").
18363exeext="$exeext"
18364
18365# Additional compiler flags for building library objects.
18366pic_flag=$lt_lt_prog_compiler_pic_GCJ
18367pic_mode=$pic_mode
18368
18369# What is the maximum length of a command?
18370max_cmd_len=$lt_cv_sys_max_cmd_len
18371
18372# Does compiler simultaneously support -c and -o options?
18373compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18374
18375# Must we lock files when doing compilation ?
18376need_locks=$lt_need_locks
18377
18378# Do we need the lib prefix for modules?
18379need_lib_prefix=$need_lib_prefix
18380
18381# Do we need a version for libraries?
18382need_version=$need_version
18383
18384# Whether dlopen is supported.
18385dlopen_support=$enable_dlopen
18386
18387# Whether dlopen of programs is supported.
18388dlopen_self=$enable_dlopen_self
18389
18390# Whether dlopen of statically linked programs is supported.
18391dlopen_self_static=$enable_dlopen_self_static
18392
18393# Compiler flag to prevent dynamic linking.
18394link_static_flag=$lt_lt_prog_compiler_static_GCJ
18395
18396# Compiler flag to turn off builtin functions.
18397no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18398
18399# Compiler flag to allow reflexive dlopens.
18400export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18401
18402# Compiler flag to generate shared objects directly from archives.
18403whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18404
18405# Compiler flag to generate thread-safe objects.
18406thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18407
18408# Library versioning type.
18409version_type=$version_type
18410
18411# Format of library name prefix.
18412libname_spec=$lt_libname_spec
18413
18414# List of archive names. First name is the real one, the rest are links.
18415# The last name is the one that the linker finds with -lNAME.
18416library_names_spec=$lt_library_names_spec
18417
18418# The coded name of the library, if different from the real name.
18419soname_spec=$lt_soname_spec
18420
18421# Commands used to build and install an old-style archive.
18422RANLIB=$lt_RANLIB
18423old_archive_cmds=$lt_old_archive_cmds_GCJ
18424old_postinstall_cmds=$lt_old_postinstall_cmds
18425old_postuninstall_cmds=$lt_old_postuninstall_cmds
18426
18427# Create an old-style archive from a shared archive.
18428old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18429
18430# Create a temporary old-style archive to link instead of a shared archive.
18431old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18432
18433# Commands used to build and install a shared archive.
18434archive_cmds=$lt_archive_cmds_GCJ
18435archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18436postinstall_cmds=$lt_postinstall_cmds
18437postuninstall_cmds=$lt_postuninstall_cmds
18438
18439# Commands used to build a loadable module (assumed same as above if empty)
18440module_cmds=$lt_module_cmds_GCJ
18441module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18442
18443# Commands to strip libraries.
18444old_striplib=$lt_old_striplib
18445striplib=$lt_striplib
18446
18447# Dependencies to place before the objects being linked to create a
18448# shared library.
18449predep_objects=$lt_predep_objects_GCJ
18450
18451# Dependencies to place after the objects being linked to create a
18452# shared library.
18453postdep_objects=$lt_postdep_objects_GCJ
18454
18455# Dependencies to place before the objects being linked to create a
18456# shared library.
18457predeps=$lt_predeps_GCJ
18458
18459# Dependencies to place after the objects being linked to create a
18460# shared library.
18461postdeps=$lt_postdeps_GCJ
18462
18463# The library search path used internally by the compiler when linking
18464# a shared library.
18465compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18466
18467# Method to check whether dependent libraries are shared objects.
18468deplibs_check_method=$lt_deplibs_check_method
18469
18470# Command to use when deplibs_check_method == file_magic.
18471file_magic_cmd=$lt_file_magic_cmd
18472
18473# Flag that allows shared libraries with undefined symbols to be built.
18474allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18475
18476# Flag that forces no undefined symbols.
18477no_undefined_flag=$lt_no_undefined_flag_GCJ
18478
18479# Commands used to finish a libtool library installation in a directory.
18480finish_cmds=$lt_finish_cmds
18481
18482# Same as above, but a single script fragment to be evaled but not shown.
18483finish_eval=$lt_finish_eval
18484
18485# Take the output of nm and produce a listing of raw symbols and C names.
18486global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18487
18488# Transform the output of nm in a proper C declaration
18489global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18490
18491# Transform the output of nm in a C name address pair
18492global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18493
18494# This is the shared library runtime path variable.
18495runpath_var=$runpath_var
18496
18497# This is the shared library path variable.
18498shlibpath_var=$shlibpath_var
18499
18500# Is shlibpath searched before the hard-coded library search path?
18501shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18502
18503# How to hardcode a shared library path into an executable.
18504hardcode_action=$hardcode_action_GCJ
18505
18506# Whether we should hardcode library paths into libraries.
18507hardcode_into_libs=$hardcode_into_libs
18508
18509# Flag to hardcode \$libdir into a binary during linking.
18510# This must work even if \$libdir does not exist.
18511hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18512
18513# If ld is used when linking, flag to hardcode \$libdir into
18514# a binary during linking. This must work even if \$libdir does
18515# not exist.
18516hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18517
18518# Whether we need a single -rpath flag with a separated argument.
18519hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18520
18521# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18522# resulting binary.
18523hardcode_direct=$hardcode_direct_GCJ
18524
18525# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18526# resulting binary.
18527hardcode_minus_L=$hardcode_minus_L_GCJ
18528
18529# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18530# the resulting binary.
18531hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18532
18533# Set to yes if building a shared library automatically hardcodes DIR into the library
18534# and all subsequent libraries and executables linked against it.
18535hardcode_automatic=$hardcode_automatic_GCJ
18536
18537# Variables whose values should be saved in libtool wrapper scripts and
18538# restored at relink time.
18539variables_saved_for_relink="$variables_saved_for_relink"
18540
18541# Whether libtool must link a program against all its dependency libraries.
18542link_all_deplibs=$link_all_deplibs_GCJ
18543
18544# Compile-time system search path for libraries
18545sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18546
18547# Run-time system search path for libraries
18548sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18549
18550# Fix the shell variable \$srcfile for the compiler.
18551fix_srcfile_path="$fix_srcfile_path_GCJ"
18552
18553# Set to yes if exported symbols are required.
18554always_export_symbols=$always_export_symbols_GCJ
18555
18556# The commands to list exported symbols.
18557export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18558
18559# The commands to extract the exported symbol list from a shared archive.
18560extract_expsyms_cmds=$lt_extract_expsyms_cmds
18561
18562# Symbols that should not be listed in the preloaded symbols.
18563exclude_expsyms=$lt_exclude_expsyms_GCJ
18564
18565# Symbols that must always be exported.
18566include_expsyms=$lt_include_expsyms_GCJ
18567
18568# ### END LIBTOOL TAG CONFIG: $tagname
18569
18570__EOF__
18571
18572
18573else
18574 # If there is no Makefile yet, we rely on a make rule to execute
18575 # `config.status --recheck' to rerun these tests and create the
18576 # libtool script then.
18577 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18578 if test -f "$ltmain_in"; then
18579 test -f Makefile && make "$ltmain"
18580 fi
18581fi
18582
18583
18584ac_ext=c
18585ac_cpp='$CPP $CPPFLAGS'
18586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18588ac_compiler_gnu=$ac_cv_c_compiler_gnu
18589
18590CC="$lt_save_CC"
18591
18592 else
18593 tagname=""
18594 fi
18595 ;;
18596
18597 RC)
18598
18599
18600
18601# Source file extension for RC test sources.
18602ac_ext=rc
18603
18604# Object file extension for compiled RC test sources.
18605objext=o
18606objext_RC=$objext
18607
18608# Code to be used in simple compile tests
18609lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18610
18611# Code to be used in simple link tests
18612lt_simple_link_test_code="$lt_simple_compile_test_code"
18613
18614# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18615
18616# If no C compiler was specified, use CC.
18617LTCC=${LTCC-"$CC"}
18618
18619# Allow CC to be a program name with arguments.
18620compiler=$CC
18621
18622
18623# Allow CC to be a program name with arguments.
18624lt_save_CC="$CC"
18625CC=${RC-"windres"}
18626compiler=$CC
18627compiler_RC=$CC
18628lt_cv_prog_compiler_c_o_RC=yes
18629
18630# The else clause should only fire when bootstrapping the
18631# libtool distribution, otherwise you forgot to ship ltmain.sh
18632# with your package, and you will get complaints that there are
18633# no rules to generate ltmain.sh.
18634if test -f "$ltmain"; then
18635 # See if we are running on zsh, and set the options which allow our commands through
18636 # without removal of \ escapes.
18637 if test -n "${ZSH_VERSION+set}" ; then
18638 setopt NO_GLOB_SUBST
18639 fi
18640 # Now quote all the things that may contain metacharacters while being
18641 # careful not to overquote the AC_SUBSTed values. We take copies of the
18642 # variables and quote the copies for generation of the libtool script.
18643 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18644 SED SHELL STRIP \
18645 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18646 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18647 deplibs_check_method reload_flag reload_cmds need_locks \
18648 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18649 lt_cv_sys_global_symbol_to_c_name_address \
18650 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18651 old_postinstall_cmds old_postuninstall_cmds \
18652 compiler_RC \
18653 CC_RC \
18654 LD_RC \
18655 lt_prog_compiler_wl_RC \
18656 lt_prog_compiler_pic_RC \
18657 lt_prog_compiler_static_RC \
18658 lt_prog_compiler_no_builtin_flag_RC \
18659 export_dynamic_flag_spec_RC \
18660 thread_safe_flag_spec_RC \
18661 whole_archive_flag_spec_RC \
18662 enable_shared_with_static_runtimes_RC \
18663 old_archive_cmds_RC \
18664 old_archive_from_new_cmds_RC \
18665 predep_objects_RC \
18666 postdep_objects_RC \
18667 predeps_RC \
18668 postdeps_RC \
18669 compiler_lib_search_path_RC \
18670 archive_cmds_RC \
18671 archive_expsym_cmds_RC \
18672 postinstall_cmds_RC \
18673 postuninstall_cmds_RC \
18674 old_archive_from_expsyms_cmds_RC \
18675 allow_undefined_flag_RC \
18676 no_undefined_flag_RC \
18677 export_symbols_cmds_RC \
18678 hardcode_libdir_flag_spec_RC \
18679 hardcode_libdir_flag_spec_ld_RC \
18680 hardcode_libdir_separator_RC \
18681 hardcode_automatic_RC \
18682 module_cmds_RC \
18683 module_expsym_cmds_RC \
18684 lt_cv_prog_compiler_c_o_RC \
18685 exclude_expsyms_RC \
18686 include_expsyms_RC; do
18687
18688 case $var in
18689 old_archive_cmds_RC | \
18690 old_archive_from_new_cmds_RC | \
18691 archive_cmds_RC | \
18692 archive_expsym_cmds_RC | \
18693 module_cmds_RC | \
18694 module_expsym_cmds_RC | \
18695 old_archive_from_expsyms_cmds_RC | \
18696 export_symbols_cmds_RC | \
18697 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18698 postinstall_cmds | postuninstall_cmds | \
18699 old_postinstall_cmds | old_postuninstall_cmds | \
18700 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18701 # Double-quote double-evaled strings.
18702 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18703 ;;
18704 *)
18705 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18706 ;;
18707 esac
18708 done
18709
18710 case $lt_echo in
18711 *'\$0 --fallback-echo"')
18712 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18713 ;;
18714 esac
18715
18716cfgfile="$ofile"
18717
18718 cat <<__EOF__ >> "$cfgfile"
18719# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18720
18721# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18722
18723# Shell to use when invoking shell scripts.
18724SHELL=$lt_SHELL
18725
18726# Whether or not to build shared libraries.
18727build_libtool_libs=$enable_shared
18728
18729# Whether or not to build static libraries.
18730build_old_libs=$enable_static
18731
18732# Whether or not to add -lc for building shared libraries.
18733build_libtool_need_lc=$archive_cmds_need_lc_RC
18734
18735# Whether or not to disallow shared libs when runtime libs are static
18736allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18737
18738# Whether or not to optimize for fast installation.
18739fast_install=$enable_fast_install
18740
18741# The host system.
18742host_alias=$host_alias
18743host=$host
18744
18745# An echo program that does not interpret backslashes.
18746echo=$lt_echo
18747
18748# The archiver.
18749AR=$lt_AR
18750AR_FLAGS=$lt_AR_FLAGS
18751
18752# A C compiler.
18753LTCC=$lt_LTCC
18754
18755# A language-specific compiler.
18756CC=$lt_compiler_RC
18757
18758# Is the compiler the GNU C compiler?
18759with_gcc=$GCC_RC
18760
18761# An ERE matcher.
18762EGREP=$lt_EGREP
18763
18764# The linker used to build libraries.
18765LD=$lt_LD_RC
18766
18767# Whether we need hard or soft links.
18768LN_S=$lt_LN_S
18769
18770# A BSD-compatible nm program.
18771NM=$lt_NM
18772
18773# A symbol stripping program
18774STRIP=$lt_STRIP
18775
18776# Used to examine libraries when file_magic_cmd begins "file"
18777MAGIC_CMD=$MAGIC_CMD
18778
18779# Used on cygwin: DLL creation program.
18780DLLTOOL="$DLLTOOL"
18781
18782# Used on cygwin: object dumper.
18783OBJDUMP="$OBJDUMP"
18784
18785# Used on cygwin: assembler.
18786AS="$AS"
18787
18788# The name of the directory that contains temporary libtool files.
18789objdir=$objdir
18790
18791# How to create reloadable object files.
18792reload_flag=$lt_reload_flag
18793reload_cmds=$lt_reload_cmds
18794
18795# How to pass a linker flag through the compiler.
18796wl=$lt_lt_prog_compiler_wl_RC
18797
18798# Object file suffix (normally "o").
18799objext="$ac_objext"
18800
18801# Old archive suffix (normally "a").
18802libext="$libext"
18803
18804# Shared library suffix (normally ".so").
hp.com!davidm2de17682004-04-20 16:53:44 +000018805shrext_cmds='$shrext_cmds'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018806
18807# Executable file suffix (normally "").
18808exeext="$exeext"
18809
18810# Additional compiler flags for building library objects.
18811pic_flag=$lt_lt_prog_compiler_pic_RC
18812pic_mode=$pic_mode
18813
18814# What is the maximum length of a command?
18815max_cmd_len=$lt_cv_sys_max_cmd_len
18816
18817# Does compiler simultaneously support -c and -o options?
18818compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18819
18820# Must we lock files when doing compilation ?
18821need_locks=$lt_need_locks
18822
18823# Do we need the lib prefix for modules?
18824need_lib_prefix=$need_lib_prefix
18825
18826# Do we need a version for libraries?
18827need_version=$need_version
18828
18829# Whether dlopen is supported.
18830dlopen_support=$enable_dlopen
18831
18832# Whether dlopen of programs is supported.
18833dlopen_self=$enable_dlopen_self
18834
18835# Whether dlopen of statically linked programs is supported.
18836dlopen_self_static=$enable_dlopen_self_static
18837
18838# Compiler flag to prevent dynamic linking.
18839link_static_flag=$lt_lt_prog_compiler_static_RC
18840
18841# Compiler flag to turn off builtin functions.
18842no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18843
18844# Compiler flag to allow reflexive dlopens.
18845export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18846
18847# Compiler flag to generate shared objects directly from archives.
18848whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18849
18850# Compiler flag to generate thread-safe objects.
18851thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18852
18853# Library versioning type.
18854version_type=$version_type
18855
18856# Format of library name prefix.
18857libname_spec=$lt_libname_spec
18858
18859# List of archive names. First name is the real one, the rest are links.
18860# The last name is the one that the linker finds with -lNAME.
18861library_names_spec=$lt_library_names_spec
18862
18863# The coded name of the library, if different from the real name.
18864soname_spec=$lt_soname_spec
18865
18866# Commands used to build and install an old-style archive.
18867RANLIB=$lt_RANLIB
18868old_archive_cmds=$lt_old_archive_cmds_RC
18869old_postinstall_cmds=$lt_old_postinstall_cmds
18870old_postuninstall_cmds=$lt_old_postuninstall_cmds
18871
18872# Create an old-style archive from a shared archive.
18873old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18874
18875# Create a temporary old-style archive to link instead of a shared archive.
18876old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18877
18878# Commands used to build and install a shared archive.
18879archive_cmds=$lt_archive_cmds_RC
18880archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18881postinstall_cmds=$lt_postinstall_cmds
18882postuninstall_cmds=$lt_postuninstall_cmds
18883
18884# Commands used to build a loadable module (assumed same as above if empty)
18885module_cmds=$lt_module_cmds_RC
18886module_expsym_cmds=$lt_module_expsym_cmds_RC
18887
18888# Commands to strip libraries.
18889old_striplib=$lt_old_striplib
18890striplib=$lt_striplib
18891
18892# Dependencies to place before the objects being linked to create a
18893# shared library.
18894predep_objects=$lt_predep_objects_RC
18895
18896# Dependencies to place after the objects being linked to create a
18897# shared library.
18898postdep_objects=$lt_postdep_objects_RC
18899
18900# Dependencies to place before the objects being linked to create a
18901# shared library.
18902predeps=$lt_predeps_RC
18903
18904# Dependencies to place after the objects being linked to create a
18905# shared library.
18906postdeps=$lt_postdeps_RC
18907
18908# The library search path used internally by the compiler when linking
18909# a shared library.
18910compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18911
18912# Method to check whether dependent libraries are shared objects.
18913deplibs_check_method=$lt_deplibs_check_method
18914
18915# Command to use when deplibs_check_method == file_magic.
18916file_magic_cmd=$lt_file_magic_cmd
18917
18918# Flag that allows shared libraries with undefined symbols to be built.
18919allow_undefined_flag=$lt_allow_undefined_flag_RC
18920
18921# Flag that forces no undefined symbols.
18922no_undefined_flag=$lt_no_undefined_flag_RC
18923
18924# Commands used to finish a libtool library installation in a directory.
18925finish_cmds=$lt_finish_cmds
18926
18927# Same as above, but a single script fragment to be evaled but not shown.
18928finish_eval=$lt_finish_eval
18929
18930# Take the output of nm and produce a listing of raw symbols and C names.
18931global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18932
18933# Transform the output of nm in a proper C declaration
18934global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18935
18936# Transform the output of nm in a C name address pair
18937global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18938
18939# This is the shared library runtime path variable.
18940runpath_var=$runpath_var
18941
18942# This is the shared library path variable.
18943shlibpath_var=$shlibpath_var
18944
18945# Is shlibpath searched before the hard-coded library search path?
18946shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18947
18948# How to hardcode a shared library path into an executable.
18949hardcode_action=$hardcode_action_RC
18950
18951# Whether we should hardcode library paths into libraries.
18952hardcode_into_libs=$hardcode_into_libs
18953
18954# Flag to hardcode \$libdir into a binary during linking.
18955# This must work even if \$libdir does not exist.
18956hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18957
18958# If ld is used when linking, flag to hardcode \$libdir into
18959# a binary during linking. This must work even if \$libdir does
18960# not exist.
18961hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18962
18963# Whether we need a single -rpath flag with a separated argument.
18964hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18965
18966# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18967# resulting binary.
18968hardcode_direct=$hardcode_direct_RC
18969
18970# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18971# resulting binary.
18972hardcode_minus_L=$hardcode_minus_L_RC
18973
18974# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18975# the resulting binary.
18976hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18977
18978# Set to yes if building a shared library automatically hardcodes DIR into the library
18979# and all subsequent libraries and executables linked against it.
18980hardcode_automatic=$hardcode_automatic_RC
18981
18982# Variables whose values should be saved in libtool wrapper scripts and
18983# restored at relink time.
18984variables_saved_for_relink="$variables_saved_for_relink"
18985
18986# Whether libtool must link a program against all its dependency libraries.
18987link_all_deplibs=$link_all_deplibs_RC
18988
18989# Compile-time system search path for libraries
18990sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18991
18992# Run-time system search path for libraries
18993sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18994
18995# Fix the shell variable \$srcfile for the compiler.
18996fix_srcfile_path="$fix_srcfile_path_RC"
18997
18998# Set to yes if exported symbols are required.
18999always_export_symbols=$always_export_symbols_RC
19000
19001# The commands to list exported symbols.
19002export_symbols_cmds=$lt_export_symbols_cmds_RC
19003
19004# The commands to extract the exported symbol list from a shared archive.
19005extract_expsyms_cmds=$lt_extract_expsyms_cmds
19006
19007# Symbols that should not be listed in the preloaded symbols.
19008exclude_expsyms=$lt_exclude_expsyms_RC
19009
19010# Symbols that must always be exported.
19011include_expsyms=$lt_include_expsyms_RC
19012
19013# ### END LIBTOOL TAG CONFIG: $tagname
19014
19015__EOF__
19016
19017
19018else
19019 # If there is no Makefile yet, we rely on a make rule to execute
19020 # `config.status --recheck' to rerun these tests and create the
19021 # libtool script then.
19022 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19023 if test -f "$ltmain_in"; then
19024 test -f Makefile && make "$ltmain"
19025 fi
19026fi
19027
19028
19029ac_ext=c
19030ac_cpp='$CPP $CPPFLAGS'
19031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19033ac_compiler_gnu=$ac_cv_c_compiler_gnu
19034
19035CC="$lt_save_CC"
19036
19037 ;;
19038
19039 *)
19040 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19041echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19042 { (exit 1); exit 1; }; }
19043 ;;
19044 esac
19045
19046 # Append the new tag name to the list of available tags.
19047 if test -n "$tagname" ; then
19048 available_tags="$available_tags $tagname"
19049 fi
19050 fi
19051 done
19052 IFS="$lt_save_ifs"
19053
19054 # Now substitute the updated list of available tags.
19055 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19056 mv "${ofile}T" "$ofile"
19057 chmod +x "$ofile"
19058 else
19059 rm -f "${ofile}T"
19060 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19061echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19062 { (exit 1); exit 1; }; }
19063 fi
19064fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019065
19066
19067
19068# This can be used to rebuild libtool when needed
19069LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19070
19071# Always use our own libtool.
19072LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19073
19074# Prevent multiple expansion
19075
19076
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
mostang.com!davidm6af90d02003-02-15 08:53:55 +000019095# By default we simply use the C compiler to build assembly code.
19096
19097: ${CCAS='$(CC)'}
19098# Set ASFLAGS if not already set.
19099: ${CCASFLAGS='$(CFLAGS)'}
19100
19101
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019102
19103
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019104echo "$as_me:$LINENO: checking for __uc_get_grs in -luca" >&5
19105echo $ECHO_N "checking for __uc_get_grs in -luca... $ECHO_C" >&6
19106if test "${ac_cv_lib_uca___uc_get_grs+set}" = set; then
19107 echo $ECHO_N "(cached) $ECHO_C" >&6
19108else
19109 ac_check_lib_save_LIBS=$LIBS
19110LIBS="-luca $LIBS"
19111cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019112/* confdefs.h. */
19113_ACEOF
19114cat confdefs.h >>conftest.$ac_ext
19115cat >>conftest.$ac_ext <<_ACEOF
19116/* end confdefs.h. */
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019117
19118/* Override any gcc2 internal prototype to avoid an error. */
19119#ifdef __cplusplus
19120extern "C"
19121#endif
19122/* We use char because int might match the return type of a gcc2
19123 builtin and then its argument prototype would still apply. */
19124char __uc_get_grs ();
19125int
19126main ()
19127{
19128__uc_get_grs ();
19129 ;
19130 return 0;
19131}
19132_ACEOF
19133rm -f conftest.$ac_objext conftest$ac_exeext
19134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019135 (eval $ac_link) 2>conftest.er1
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019136 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019137 grep -v '^ *+' conftest.er1 >conftest.err
19138 rm -f conftest.er1
19139 cat conftest.err >&5
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19145 ac_status=$?
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; } &&
19148 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150 (eval $ac_try) 2>&5
19151 ac_status=$?
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; }; then
19154 ac_cv_lib_uca___uc_get_grs=yes
19155else
19156 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019157sed 's/^/| /' conftest.$ac_ext >&5
19158
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019159ac_cv_lib_uca___uc_get_grs=no
19160fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019161rm -f conftest.err conftest.$ac_objext \
19162 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019163LIBS=$ac_check_lib_save_LIBS
19164fi
19165echo "$as_me:$LINENO: result: $ac_cv_lib_uca___uc_get_grs" >&5
19166echo "${ECHO_T}$ac_cv_lib_uca___uc_get_grs" >&6
19167if test $ac_cv_lib_uca___uc_get_grs = yes; then
19168 cat >>confdefs.h <<_ACEOF
19169#define HAVE_LIBUCA 1
19170_ACEOF
19171
19172 LIBS="-luca $LIBS"
19173
19174fi
19175
19176
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019177for ac_header in atomic_ops.h
19178do
19179as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19180if eval "test \"\${$as_ac_Header+set}\" = set"; then
19181 echo "$as_me:$LINENO: checking for $ac_header" >&5
19182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19183if eval "test \"\${$as_ac_Header+set}\" = set"; then
19184 echo $ECHO_N "(cached) $ECHO_C" >&6
19185fi
19186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19187echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19188else
19189 # Is the header compilable?
19190echo "$as_me:$LINENO: checking $ac_header usability" >&5
19191echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19192cat >conftest.$ac_ext <<_ACEOF
19193/* confdefs.h. */
19194_ACEOF
19195cat confdefs.h >>conftest.$ac_ext
19196cat >>conftest.$ac_ext <<_ACEOF
19197/* end confdefs.h. */
19198$ac_includes_default
19199#include <$ac_header>
19200_ACEOF
19201rm -f conftest.$ac_objext
19202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019203 (eval $ac_compile) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019204 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019205 grep -v '^ *+' conftest.er1 >conftest.err
19206 rm -f conftest.er1
19207 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19212 (eval $ac_try) 2>&5
19213 ac_status=$?
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); }; } &&
19216 { ac_try='test -s conftest.$ac_objext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19218 (eval $ac_try) 2>&5
19219 ac_status=$?
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); }; }; then
19222 ac_header_compiler=yes
19223else
19224 echo "$as_me: failed program was:" >&5
19225sed 's/^/| /' conftest.$ac_ext >&5
19226
19227ac_header_compiler=no
19228fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019230echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19231echo "${ECHO_T}$ac_header_compiler" >&6
19232
19233# Is the header present?
19234echo "$as_me:$LINENO: checking $ac_header presence" >&5
19235echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19236cat >conftest.$ac_ext <<_ACEOF
19237/* confdefs.h. */
19238_ACEOF
19239cat confdefs.h >>conftest.$ac_ext
19240cat >>conftest.$ac_ext <<_ACEOF
19241/* end confdefs.h. */
19242#include <$ac_header>
19243_ACEOF
19244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19246 ac_status=$?
19247 grep -v '^ *+' conftest.er1 >conftest.err
19248 rm -f conftest.er1
19249 cat conftest.err >&5
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); } >/dev/null; then
19252 if test -s conftest.err; then
19253 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019255 else
19256 ac_cpp_err=
19257 fi
19258else
19259 ac_cpp_err=yes
19260fi
19261if test -z "$ac_cpp_err"; then
19262 ac_header_preproc=yes
19263else
19264 echo "$as_me: failed program was:" >&5
19265sed 's/^/| /' conftest.$ac_ext >&5
19266
19267 ac_header_preproc=no
19268fi
19269rm -f conftest.err conftest.$ac_ext
19270echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19271echo "${ECHO_T}$ac_header_preproc" >&6
19272
19273# So? What about this header?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019274case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19275 yes:no: )
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19277echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19279echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19280 ac_header_preproc=yes
mostang.com!davidm046362a2003-12-05 06:42:28 +000019281 ;;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019282 no:yes:* )
mostang.com!davidm046362a2003-12-05 06:42:28 +000019283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19284echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19286echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19288echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19290echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +000019291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19292echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19294echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +000019295 (
19296 cat <<\_ASBOX
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019297## ----------------------------------------- ##
19298## Report this to libunwind@linux.hpl.hp.com ##
19299## ----------------------------------------- ##
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019300_ASBOX
19301 ) |
19302 sed "s/^/$as_me: WARNING: /" >&2
19303 ;;
19304esac
19305echo "$as_me:$LINENO: checking for $ac_header" >&5
19306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19307if eval "test \"\${$as_ac_Header+set}\" = set"; then
19308 echo $ECHO_N "(cached) $ECHO_C" >&6
19309else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019310 eval "$as_ac_Header=\$ac_header_preproc"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019311fi
19312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19313echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19314
19315fi
19316if test `eval echo '${'$as_ac_Header'}'` = yes; then
19317 cat >>confdefs.h <<_ACEOF
19318#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19319_ACEOF
19320
19321fi
19322
19323done
19324
19325
19326echo "$as_me:$LINENO: checking for main in -latomic_ops" >&5
19327echo $ECHO_N "checking for main in -latomic_ops... $ECHO_C" >&6
19328if test "${ac_cv_lib_atomic_ops_main+set}" = set; then
19329 echo $ECHO_N "(cached) $ECHO_C" >&6
19330else
19331 ac_check_lib_save_LIBS=$LIBS
19332LIBS="-latomic_ops $LIBS"
19333cat >conftest.$ac_ext <<_ACEOF
19334/* confdefs.h. */
19335_ACEOF
19336cat confdefs.h >>conftest.$ac_ext
19337cat >>conftest.$ac_ext <<_ACEOF
19338/* end confdefs.h. */
19339
19340
19341int
19342main ()
19343{
19344main ();
19345 ;
19346 return 0;
19347}
19348_ACEOF
19349rm -f conftest.$ac_objext conftest$ac_exeext
19350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019351 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019352 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019353 grep -v '^ *+' conftest.er1 >conftest.err
19354 rm -f conftest.er1
19355 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360 (eval $ac_try) 2>&5
19361 ac_status=$?
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; } &&
19364 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366 (eval $ac_try) 2>&5
19367 ac_status=$?
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; }; then
19370 ac_cv_lib_atomic_ops_main=yes
19371else
19372 echo "$as_me: failed program was:" >&5
19373sed 's/^/| /' conftest.$ac_ext >&5
19374
19375ac_cv_lib_atomic_ops_main=no
19376fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019377rm -f conftest.err conftest.$ac_objext \
19378 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019379LIBS=$ac_check_lib_save_LIBS
19380fi
19381echo "$as_me:$LINENO: result: $ac_cv_lib_atomic_ops_main" >&5
19382echo "${ECHO_T}$ac_cv_lib_atomic_ops_main" >&6
19383if test $ac_cv_lib_atomic_ops_main = yes; then
19384 cat >>confdefs.h <<_ACEOF
19385#define HAVE_LIBATOMIC_OPS 1
19386_ACEOF
19387
19388 LIBS="-latomic_ops $LIBS"
19389
19390fi
19391
19392
19393
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019394echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19395echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19396if test "${ac_cv_header_stdc+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
19398else
19399 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019400/* confdefs.h. */
19401_ACEOF
19402cat confdefs.h >>conftest.$ac_ext
19403cat >>conftest.$ac_ext <<_ACEOF
19404/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019405#include <stdlib.h>
19406#include <stdarg.h>
19407#include <string.h>
19408#include <float.h>
19409
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019410int
19411main ()
19412{
19413
19414 ;
19415 return 0;
19416}
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019417_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019418rm -f conftest.$ac_objext
19419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019420 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019421 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019422 grep -v '^ *+' conftest.er1 >conftest.err
19423 rm -f conftest.er1
19424 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019426 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429 (eval $ac_try) 2>&5
19430 ac_status=$?
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; } &&
19433 { ac_try='test -s conftest.$ac_objext'
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435 (eval $ac_try) 2>&5
19436 ac_status=$?
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; }; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019439 ac_cv_header_stdc=yes
19440else
19441 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019442sed 's/^/| /' conftest.$ac_ext >&5
19443
19444ac_cv_header_stdc=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019445fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019447
19448if test $ac_cv_header_stdc = yes; then
19449 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19450 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019451/* confdefs.h. */
19452_ACEOF
19453cat confdefs.h >>conftest.$ac_ext
19454cat >>conftest.$ac_ext <<_ACEOF
19455/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019456#include <string.h>
19457
19458_ACEOF
19459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19460 $EGREP "memchr" >/dev/null 2>&1; then
19461 :
19462else
19463 ac_cv_header_stdc=no
19464fi
19465rm -f conftest*
19466
19467fi
19468
19469if test $ac_cv_header_stdc = yes; then
19470 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19471 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019472/* confdefs.h. */
19473_ACEOF
19474cat confdefs.h >>conftest.$ac_ext
19475cat >>conftest.$ac_ext <<_ACEOF
19476/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019477#include <stdlib.h>
19478
19479_ACEOF
19480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19481 $EGREP "free" >/dev/null 2>&1; then
19482 :
19483else
19484 ac_cv_header_stdc=no
19485fi
19486rm -f conftest*
19487
19488fi
19489
19490if test $ac_cv_header_stdc = yes; then
19491 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19492 if test "$cross_compiling" = yes; then
19493 :
19494else
19495 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019496/* confdefs.h. */
19497_ACEOF
19498cat confdefs.h >>conftest.$ac_ext
19499cat >>conftest.$ac_ext <<_ACEOF
19500/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019501#include <ctype.h>
19502#if ((' ' & 0x0FF) == 0x020)
19503# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19504# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19505#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019506# define ISLOWER(c) \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019507 (('a' <= (c) && (c) <= 'i') \
19508 || ('j' <= (c) && (c) <= 'r') \
19509 || ('s' <= (c) && (c) <= 'z'))
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019510# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19511#endif
19512
19513#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19514int
19515main ()
19516{
19517 int i;
19518 for (i = 0; i < 256; i++)
19519 if (XOR (islower (i), ISLOWER (i))
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019520 || toupper (i) != TOUPPER (i))
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019521 exit(2);
19522 exit (0);
19523}
19524_ACEOF
19525rm -f conftest$ac_exeext
19526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19527 (eval $ac_link) 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19532 (eval $ac_try) 2>&5
19533 ac_status=$?
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); }; }; then
19536 :
19537else
19538 echo "$as_me: program exited with status $ac_status" >&5
19539echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019540sed 's/^/| /' conftest.$ac_ext >&5
19541
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019542( exit $ac_status )
19543ac_cv_header_stdc=no
19544fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019545rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019546fi
19547fi
19548fi
19549echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19550echo "${ECHO_T}$ac_cv_header_stdc" >&6
19551if test $ac_cv_header_stdc = yes; then
19552
19553cat >>confdefs.h <<\_ACEOF
19554#define STDC_HEADERS 1
19555_ACEOF
19556
19557fi
19558
19559
mostang.com!davidm6af90d02003-02-15 08:53:55 +000019560
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019561
19562
19563
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019564
hp.com!davidm9bd061e2003-09-25 05:29:14 +000019565
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019566for ac_header in asm/ptrace_offsets.h endian.h execinfo.h ia64intrin.h \
hp.com!davidm9bd061e2003-09-25 05:29:14 +000019567 sys/uc_access.h unistd.h signal.h
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019568do
19569as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19570if eval "test \"\${$as_ac_Header+set}\" = set"; then
19571 echo "$as_me:$LINENO: checking for $ac_header" >&5
19572echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19573if eval "test \"\${$as_ac_Header+set}\" = set"; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19575fi
19576echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19577echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19578else
19579 # Is the header compilable?
19580echo "$as_me:$LINENO: checking $ac_header usability" >&5
19581echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19582cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019583/* confdefs.h. */
19584_ACEOF
19585cat confdefs.h >>conftest.$ac_ext
19586cat >>conftest.$ac_ext <<_ACEOF
19587/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019588$ac_includes_default
19589#include <$ac_header>
19590_ACEOF
19591rm -f conftest.$ac_objext
19592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019593 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019594 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019595 grep -v '^ *+' conftest.er1 >conftest.err
19596 rm -f conftest.er1
19597 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19601 { (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); }; } &&
19606 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608 (eval $ac_try) 2>&5
19609 ac_status=$?
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; }; then
19612 ac_header_compiler=yes
19613else
19614 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019615sed 's/^/| /' conftest.$ac_ext >&5
19616
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019617ac_header_compiler=no
19618fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019620echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19621echo "${ECHO_T}$ac_header_compiler" >&6
19622
19623# Is the header present?
19624echo "$as_me:$LINENO: checking $ac_header presence" >&5
19625echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19626cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019627/* confdefs.h. */
19628_ACEOF
19629cat confdefs.h >>conftest.$ac_ext
19630cat >>conftest.$ac_ext <<_ACEOF
19631/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019632#include <$ac_header>
19633_ACEOF
19634if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19636 ac_status=$?
19637 grep -v '^ *+' conftest.er1 >conftest.err
19638 rm -f conftest.er1
19639 cat conftest.err >&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); } >/dev/null; then
19642 if test -s conftest.err; then
19643 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019645 else
19646 ac_cpp_err=
19647 fi
19648else
19649 ac_cpp_err=yes
19650fi
19651if test -z "$ac_cpp_err"; then
19652 ac_header_preproc=yes
19653else
19654 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019655sed 's/^/| /' conftest.$ac_ext >&5
19656
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019657 ac_header_preproc=no
19658fi
19659rm -f conftest.err conftest.$ac_ext
19660echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19661echo "${ECHO_T}$ac_header_preproc" >&6
19662
19663# So? What about this header?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19665 yes:no: )
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19667echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19669echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19670 ac_header_preproc=yes
mostang.com!davidm046362a2003-12-05 06:42:28 +000019671 ;;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019672 no:yes:* )
mostang.com!davidm046362a2003-12-05 06:42:28 +000019673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19674echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19676echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19678echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19680echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +000019681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19682echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19684echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +000019685 (
19686 cat <<\_ASBOX
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019687## ----------------------------------------- ##
19688## Report this to libunwind@linux.hpl.hp.com ##
19689## ----------------------------------------- ##
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019690_ASBOX
19691 ) |
19692 sed "s/^/$as_me: WARNING: /" >&2
19693 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019694esac
19695echo "$as_me:$LINENO: checking for $ac_header" >&5
19696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19697if eval "test \"\${$as_ac_Header+set}\" = set"; then
19698 echo $ECHO_N "(cached) $ECHO_C" >&6
19699else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019700 eval "$as_ac_Header=\$ac_header_preproc"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019701fi
19702echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19703echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19704
19705fi
19706if test `eval echo '${'$as_ac_Header'}'` = yes; then
19707 cat >>confdefs.h <<_ACEOF
19708#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19709_ACEOF
19710
19711fi
19712
19713done
19714
19715
19716echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19717echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19718if test "${ac_cv_c_const+set}" = set; then
19719 echo $ECHO_N "(cached) $ECHO_C" >&6
19720else
19721 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019722/* confdefs.h. */
19723_ACEOF
19724cat confdefs.h >>conftest.$ac_ext
19725cat >>conftest.$ac_ext <<_ACEOF
19726/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019727
19728int
19729main ()
19730{
19731/* FIXME: Include the comments suggested by Paul. */
19732#ifndef __cplusplus
19733 /* Ultrix mips cc rejects this. */
19734 typedef int charset[2];
19735 const charset x;
19736 /* SunOS 4.1.1 cc rejects this. */
19737 char const *const *ccp;
19738 char **p;
19739 /* NEC SVR4.0.2 mips cc rejects this. */
19740 struct point {int x, y;};
19741 static struct point const zero = {0,0};
19742 /* AIX XL C 1.02.0.0 rejects this.
19743 It does not let you subtract one const X* pointer from another in
19744 an arm of an if-expression whose if-part is not a constant
19745 expression */
19746 const char *g = "string";
19747 ccp = &g + (g ? g-g : 0);
19748 /* HPUX 7.0 cc rejects these. */
19749 ++ccp;
19750 p = (char**) ccp;
19751 ccp = (char const *const *) p;
19752 { /* SCO 3.2v4 cc rejects this. */
19753 char *t;
19754 char const *s = 0 ? (char *) 0 : (char const *) 0;
19755
19756 *t++ = 0;
19757 }
19758 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19759 int x[] = {25, 17};
19760 const int *foo = &x[0];
19761 ++foo;
19762 }
19763 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19764 typedef const int *iptr;
19765 iptr p = 0;
19766 ++p;
19767 }
19768 { /* AIX XL C 1.02.0.0 rejects this saying
19769 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19770 struct s { int j; const int *ap[3]; };
19771 struct s *b; b->j = 5;
19772 }
19773 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19774 const int foo = 10;
19775 }
19776#endif
19777
19778 ;
19779 return 0;
19780}
19781_ACEOF
19782rm -f conftest.$ac_objext
19783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019784 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019785 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019786 grep -v '^ *+' conftest.er1 >conftest.err
19787 rm -f conftest.er1
19788 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19793 (eval $ac_try) 2>&5
19794 ac_status=$?
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); }; } &&
19797 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799 (eval $ac_try) 2>&5
19800 ac_status=$?
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; }; then
19803 ac_cv_c_const=yes
19804else
19805 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019806sed 's/^/| /' conftest.$ac_ext >&5
19807
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019808ac_cv_c_const=no
19809fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019811fi
19812echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19813echo "${ECHO_T}$ac_cv_c_const" >&6
19814if test $ac_cv_c_const = no; then
19815
19816cat >>confdefs.h <<\_ACEOF
19817#define const
19818_ACEOF
19819
19820fi
19821
19822echo "$as_me:$LINENO: checking for inline" >&5
19823echo $ECHO_N "checking for inline... $ECHO_C" >&6
19824if test "${ac_cv_c_inline+set}" = set; then
19825 echo $ECHO_N "(cached) $ECHO_C" >&6
19826else
19827 ac_cv_c_inline=no
19828for ac_kw in inline __inline__ __inline; do
19829 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019830/* confdefs.h. */
19831_ACEOF
19832cat confdefs.h >>conftest.$ac_ext
19833cat >>conftest.$ac_ext <<_ACEOF
19834/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019835#ifndef __cplusplus
19836typedef int foo_t;
19837static $ac_kw foo_t static_foo () {return 0; }
19838$ac_kw foo_t foo () {return 0; }
19839#endif
19840
19841_ACEOF
19842rm -f conftest.$ac_objext
19843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019844 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019845 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019846 grep -v '^ *+' conftest.er1 >conftest.err
19847 rm -f conftest.er1
19848 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19854 ac_status=$?
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; } &&
19857 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859 (eval $ac_try) 2>&5
19860 ac_status=$?
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); }; }; then
19863 ac_cv_c_inline=$ac_kw; break
19864else
19865 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019866sed 's/^/| /' conftest.$ac_ext >&5
19867
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019868fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019870done
19871
19872fi
19873echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19874echo "${ECHO_T}$ac_cv_c_inline" >&6
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019875
19876
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019877case $ac_cv_c_inline in
19878 inline | yes) ;;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019879 *)
19880 case $ac_cv_c_inline in
19881 no) ac_val=;;
19882 *) ac_val=$ac_cv_c_inline;;
19883 esac
19884 cat >>confdefs.h <<_ACEOF
19885#ifndef __cplusplus
19886#define inline $ac_val
19887#endif
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019888_ACEOF
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019889 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019890esac
19891
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019892echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19893echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
19894if test "${ac_cv_type_signal+set}" = set; then
19895 echo $ECHO_N "(cached) $ECHO_C" >&6
19896else
19897 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019898/* confdefs.h. */
19899_ACEOF
19900cat confdefs.h >>conftest.$ac_ext
19901cat >>conftest.$ac_ext <<_ACEOF
19902/* end confdefs.h. */
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019903#include <sys/types.h>
19904#include <signal.h>
19905#ifdef signal
19906# undef signal
19907#endif
19908#ifdef __cplusplus
19909extern "C" void (*signal (int, void (*)(int)))(int);
19910#else
19911void (*signal ()) ();
19912#endif
19913
19914int
19915main ()
19916{
19917int i;
19918 ;
19919 return 0;
19920}
19921_ACEOF
19922rm -f conftest.$ac_objext
19923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019924 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019925 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019926 grep -v '^ *+' conftest.er1 >conftest.err
19927 rm -f conftest.er1
19928 cat conftest.err >&5
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19933 (eval $ac_try) 2>&5
19934 ac_status=$?
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); }; } &&
19937 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
19940 ac_status=$?
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; }; then
19943 ac_cv_type_signal=void
19944else
19945 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019946sed 's/^/| /' conftest.$ac_ext >&5
19947
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019948ac_cv_type_signal=int
19949fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019951fi
19952echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19953echo "${ECHO_T}$ac_cv_type_signal" >&6
19954
19955cat >>confdefs.h <<_ACEOF
19956#define RETSIGTYPE $ac_cv_type_signal
19957_ACEOF
19958
19959
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019960echo "$as_me:$LINENO: checking for size_t" >&5
19961echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19962if test "${ac_cv_type_size_t+set}" = set; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
19964else
19965 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019966/* confdefs.h. */
19967_ACEOF
19968cat confdefs.h >>conftest.$ac_ext
19969cat >>conftest.$ac_ext <<_ACEOF
19970/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019971$ac_includes_default
19972int
19973main ()
19974{
19975if ((size_t *) 0)
19976 return 0;
19977if (sizeof (size_t))
19978 return 0;
19979 ;
19980 return 0;
19981}
19982_ACEOF
19983rm -f conftest.$ac_objext
19984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019985 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019986 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019987 grep -v '^ *+' conftest.er1 >conftest.err
19988 rm -f conftest.er1
19989 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994 (eval $ac_try) 2>&5
19995 ac_status=$?
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }; } &&
19998 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000 (eval $ac_try) 2>&5
20001 ac_status=$?
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; }; then
20004 ac_cv_type_size_t=yes
20005else
20006 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020007sed 's/^/| /' conftest.$ac_ext >&5
20008
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020009ac_cv_type_size_t=no
20010fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020012fi
20013echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20014echo "${ECHO_T}$ac_cv_type_size_t" >&6
20015if test $ac_cv_type_size_t = yes; then
20016 :
20017else
20018
20019cat >>confdefs.h <<_ACEOF
20020#define size_t unsigned
20021_ACEOF
20022
20023fi
20024
20025
hp.com!davidm9bd061e2003-09-25 05:29:14 +000020026CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
20027if test x$enable_debug = xyes; then
20028 CPPFLAGS="${CPPFLAGS} -DDEBUG"
20029else
20030 CPPFLAGS="${CPPFLAGS} -DNDEBUG"
20031fi
20032
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020033echo "$as_me:$LINENO: checking for struct dl_phdr_info.dlpi_subs" >&5
20034echo $ECHO_N "checking for struct dl_phdr_info.dlpi_subs... $ECHO_C" >&6
20035if test "${ac_cv_member_struct_dl_phdr_info_dlpi_subs+set}" = set; then
20036 echo $ECHO_N "(cached) $ECHO_C" >&6
20037else
20038 cat >conftest.$ac_ext <<_ACEOF
20039/* confdefs.h. */
20040_ACEOF
20041cat confdefs.h >>conftest.$ac_ext
20042cat >>conftest.$ac_ext <<_ACEOF
20043/* end confdefs.h. */
20044#include <link.h>
20045
20046int
20047main ()
20048{
20049static struct dl_phdr_info ac_aggr;
20050if (ac_aggr.dlpi_subs)
20051return 0;
20052 ;
20053 return 0;
20054}
20055_ACEOF
20056rm -f conftest.$ac_objext
20057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20058 (eval $ac_compile) 2>conftest.er1
20059 ac_status=$?
20060 grep -v '^ *+' conftest.er1 >conftest.err
20061 rm -f conftest.er1
20062 cat conftest.err >&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); } &&
20065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20067 (eval $ac_try) 2>&5
20068 ac_status=$?
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); }; } &&
20071 { ac_try='test -s conftest.$ac_objext'
20072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20073 (eval $ac_try) 2>&5
20074 ac_status=$?
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); }; }; then
20077 ac_cv_member_struct_dl_phdr_info_dlpi_subs=yes
20078else
20079 echo "$as_me: failed program was:" >&5
20080sed 's/^/| /' conftest.$ac_ext >&5
20081
20082cat >conftest.$ac_ext <<_ACEOF
20083/* confdefs.h. */
20084_ACEOF
20085cat confdefs.h >>conftest.$ac_ext
20086cat >>conftest.$ac_ext <<_ACEOF
20087/* end confdefs.h. */
20088#include <link.h>
20089
20090int
20091main ()
20092{
20093static struct dl_phdr_info ac_aggr;
20094if (sizeof ac_aggr.dlpi_subs)
20095return 0;
20096 ;
20097 return 0;
20098}
20099_ACEOF
20100rm -f conftest.$ac_objext
20101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20102 (eval $ac_compile) 2>conftest.er1
20103 ac_status=$?
20104 grep -v '^ *+' conftest.er1 >conftest.err
20105 rm -f conftest.er1
20106 cat conftest.err >&5
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); } &&
20109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111 (eval $ac_try) 2>&5
20112 ac_status=$?
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; } &&
20115 { ac_try='test -s conftest.$ac_objext'
20116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20117 (eval $ac_try) 2>&5
20118 ac_status=$?
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); }; }; then
20121 ac_cv_member_struct_dl_phdr_info_dlpi_subs=yes
20122else
20123 echo "$as_me: failed program was:" >&5
20124sed 's/^/| /' conftest.$ac_ext >&5
20125
20126ac_cv_member_struct_dl_phdr_info_dlpi_subs=no
20127fi
20128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20129fi
20130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20131fi
20132echo "$as_me:$LINENO: result: $ac_cv_member_struct_dl_phdr_info_dlpi_subs" >&5
20133echo "${ECHO_T}$ac_cv_member_struct_dl_phdr_info_dlpi_subs" >&6
20134if test $ac_cv_member_struct_dl_phdr_info_dlpi_subs = yes; then
20135
20136cat >>confdefs.h <<_ACEOF
20137#define HAVE_STRUCT_DL_PHDR_INFO_DLPI_SUBS 1
20138_ACEOF
20139
20140
20141fi
20142
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020143echo "$as_me:$LINENO: checking for sighandler_t" >&5
20144echo $ECHO_N "checking for sighandler_t... $ECHO_C" >&6
20145if test "${ac_cv_type_sighandler_t+set}" = set; then
20146 echo $ECHO_N "(cached) $ECHO_C" >&6
20147else
20148 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020149/* confdefs.h. */
20150_ACEOF
20151cat confdefs.h >>conftest.$ac_ext
20152cat >>conftest.$ac_ext <<_ACEOF
20153/* end confdefs.h. */
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020154$ac_includes_default
hp.com!davidm9bd061e2003-09-25 05:29:14 +000020155#if HAVE_SIGNAL_H
20156# include <signal.h>
20157#endif
20158
20159
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020160int
20161main ()
20162{
20163if ((sighandler_t *) 0)
20164 return 0;
20165if (sizeof (sighandler_t))
20166 return 0;
20167 ;
20168 return 0;
20169}
20170_ACEOF
20171rm -f conftest.$ac_objext
20172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020173 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020174 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020175 grep -v '^ *+' conftest.er1 >conftest.err
20176 rm -f conftest.er1
20177 cat conftest.err >&5
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182 (eval $ac_try) 2>&5
20183 ac_status=$?
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; } &&
20186 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188 (eval $ac_try) 2>&5
20189 ac_status=$?
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; }; then
20192 ac_cv_type_sighandler_t=yes
20193else
20194 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020195sed 's/^/| /' conftest.$ac_ext >&5
20196
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020197ac_cv_type_sighandler_t=no
20198fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020200fi
20201echo "$as_me:$LINENO: result: $ac_cv_type_sighandler_t" >&5
20202echo "${ECHO_T}$ac_cv_type_sighandler_t" >&6
mostang.com!davidm46149fd2003-03-31 18:16:54 +000020203if test $ac_cv_type_sighandler_t = yes; then
20204
20205cat >>confdefs.h <<_ACEOF
20206#define HAVE_SIGHANDLER_T 1
20207_ACEOF
20208
20209
20210fi
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020211
20212
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020213echo "$as_me:$LINENO: checking for working memcmp" >&5
20214echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20215if test "${ac_cv_func_memcmp_working+set}" = set; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20217else
20218 if test "$cross_compiling" = yes; then
20219 ac_cv_func_memcmp_working=no
20220else
20221 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020222/* confdefs.h. */
20223_ACEOF
20224cat confdefs.h >>conftest.$ac_ext
20225cat >>conftest.$ac_ext <<_ACEOF
20226/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020227$ac_includes_default
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020228int
20229main ()
20230{
20231
20232 /* Some versions of memcmp are not 8-bit clean. */
20233 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20234 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20235 exit (1);
20236
20237 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20238 or more and with at least one buffer not starting on a 4-byte boundary.
20239 William Lewis provided this test program. */
20240 {
20241 char foo[21];
20242 char bar[21];
20243 int i;
20244 for (i = 0; i < 4; i++)
20245 {
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020246 char *a = foo + i;
20247 char *b = bar + i;
20248 strcpy (a, "--------01111111");
20249 strcpy (b, "--------10000000");
20250 if (memcmp (a, b, 16) >= 0)
20251 exit (1);
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020252 }
20253 exit (0);
20254 }
20255
20256 ;
20257 return 0;
20258}
20259_ACEOF
20260rm -f conftest$ac_exeext
20261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20262 (eval $ac_link) 2>&5
20263 ac_status=$?
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20268 ac_status=$?
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; }; then
20271 ac_cv_func_memcmp_working=yes
20272else
20273 echo "$as_me: program exited with status $ac_status" >&5
20274echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020275sed 's/^/| /' conftest.$ac_ext >&5
20276
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020277( exit $ac_status )
20278ac_cv_func_memcmp_working=no
20279fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020280rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020281fi
20282fi
20283echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
20284echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020285test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
20286 "memcmp.$ac_objext" | \
20287 *" memcmp.$ac_objext" | \
20288 "memcmp.$ac_objext "* | \
20289 *" memcmp.$ac_objext "* ) ;;
20290 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
20291esac
20292
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020293
20294echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20295echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20296if test "${ac_cv_type_signal+set}" = set; then
20297 echo $ECHO_N "(cached) $ECHO_C" >&6
20298else
20299 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020300/* confdefs.h. */
20301_ACEOF
20302cat confdefs.h >>conftest.$ac_ext
20303cat >>conftest.$ac_ext <<_ACEOF
20304/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020305#include <sys/types.h>
20306#include <signal.h>
20307#ifdef signal
20308# undef signal
20309#endif
20310#ifdef __cplusplus
20311extern "C" void (*signal (int, void (*)(int)))(int);
20312#else
20313void (*signal ()) ();
20314#endif
20315
20316int
20317main ()
20318{
20319int i;
20320 ;
20321 return 0;
20322}
20323_ACEOF
20324rm -f conftest.$ac_objext
20325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020326 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020327 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020328 grep -v '^ *+' conftest.er1 >conftest.err
20329 rm -f conftest.er1
20330 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335 (eval $ac_try) 2>&5
20336 ac_status=$?
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; } &&
20339 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20342 ac_status=$?
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; }; then
20345 ac_cv_type_signal=void
20346else
20347 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020348sed 's/^/| /' conftest.$ac_ext >&5
20349
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020350ac_cv_type_signal=int
20351fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020353fi
20354echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20355echo "${ECHO_T}$ac_cv_type_signal" >&6
20356
20357cat >>confdefs.h <<_ACEOF
20358#define RETSIGTYPE $ac_cv_type_signal
20359_ACEOF
20360
20361
20362
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020363
20364
20365
hp.com!davidm2de17682004-04-20 16:53:44 +000020366
20367for ac_func in dl_iterate_phdr dl_phdr_removals_counter dlmodinfo getunwind \
20368 ttrace
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020369do
20370as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20371echo "$as_me:$LINENO: checking for $ac_func" >&5
20372echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20373if eval "test \"\${$as_ac_var+set}\" = set"; then
20374 echo $ECHO_N "(cached) $ECHO_C" >&6
20375else
20376 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020377/* confdefs.h. */
20378_ACEOF
20379cat confdefs.h >>conftest.$ac_ext
20380cat >>conftest.$ac_ext <<_ACEOF
20381/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020382/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20384#define $ac_func innocuous_$ac_func
20385
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020386/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020387 which can conflict with char $ac_func (); below.
20388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20389 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020390
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020391#ifdef __STDC__
20392# include <limits.h>
20393#else
20394# include <assert.h>
20395#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020396
20397#undef $ac_func
20398
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020399/* Override any gcc2 internal prototype to avoid an error. */
20400#ifdef __cplusplus
20401extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020402{
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020403#endif
20404/* We use char because int might match the return type of a gcc2
20405 builtin and then its argument prototype would still apply. */
20406char $ac_func ();
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020407/* The GNU C library defines this for functions which it implements
20408 to always fail with ENOSYS. Some functions are actually named
20409 something starting with __ and the normal name is an alias. */
20410#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20411choke me
20412#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020413char (*f) () = $ac_func;
20414#endif
20415#ifdef __cplusplus
20416}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020417#endif
20418
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020419int
20420main ()
20421{
20422return f != $ac_func;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020423 ;
20424 return 0;
20425}
20426_ACEOF
20427rm -f conftest.$ac_objext conftest$ac_exeext
20428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020429 (eval $ac_link) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020430 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020431 grep -v '^ *+' conftest.er1 >conftest.err
20432 rm -f conftest.er1
20433 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438 (eval $ac_try) 2>&5
20439 ac_status=$?
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; } &&
20442 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20444 (eval $ac_try) 2>&5
20445 ac_status=$?
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); }; }; then
20448 eval "$as_ac_var=yes"
20449else
20450 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020451sed 's/^/| /' conftest.$ac_ext >&5
20452
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020453eval "$as_ac_var=no"
20454fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020455rm -f conftest.err conftest.$ac_objext \
20456 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020457fi
20458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20459echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20460if test `eval echo '${'$as_ac_var'}'` = yes; then
20461 cat >>confdefs.h <<_ACEOF
20462#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20463_ACEOF
20464
20465fi
20466done
20467
20468
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020469get_arch() {
20470 case "$1" in
20471 i?86) echo x86;;
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000020472 hppa*) echo hppa;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020473 *) echo $1;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020474 esac
20475}
20476
20477build_arch=`get_arch $build_cpu`
20478target_arch=`get_arch $target_cpu`
20479
20480
20481
20482if test x$target_arch != x$build_arch; then
20483 REMOTE_ONLY_TRUE=
20484 REMOTE_ONLY_FALSE='#'
20485else
20486 REMOTE_ONLY_TRUE='#'
20487 REMOTE_ONLY_FALSE=
20488fi
20489
20490
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020491
mostang.com!davidmf26451a2003-01-16 03:10:11 +000020492if test x$target_arch = xia64; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020493 ARCH_IA64_TRUE=
20494 ARCH_IA64_FALSE='#'
20495else
20496 ARCH_IA64_TRUE='#'
20497 ARCH_IA64_FALSE=
20498fi
20499
20500
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020501
mostang.com!davidmf26451a2003-01-16 03:10:11 +000020502if test x$target_arch = xhppa; then
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000020503 ARCH_HPPA_TRUE=
20504 ARCH_HPPA_FALSE='#'
20505else
20506 ARCH_HPPA_TRUE='#'
20507 ARCH_HPPA_FALSE=
20508fi
20509
20510
20511
mostang.com!davidmf26451a2003-01-16 03:10:11 +000020512if test x$target_arch = xx86; then
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020513 ARCH_X86_TRUE=
20514 ARCH_X86_FALSE='#'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020515else
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020516 ARCH_X86_TRUE='#'
20517 ARCH_X86_FALSE=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020518fi
20519
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020520
mostang.com!davidma8db0b32003-02-08 10:10:59 +000020521
20522if expr x$target_os : xlinux >/dev/null; then
20523 OS_LINUX_TRUE=
20524 OS_LINUX_FALSE='#'
20525else
20526 OS_LINUX_TRUE='#'
20527 OS_LINUX_FALSE=
20528fi
20529
20530
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000020531
20532if expr x$target_os : xhpux >/dev/null; then
20533 OS_HPUX_TRUE=
20534 OS_HPUX_FALSE='#'
20535else
20536 OS_HPUX_TRUE='#'
20537 OS_HPUX_FALSE=
20538fi
20539
20540
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020541if test x$target_arch != x$build_arch; then
20542 CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020543fi
mostang.com!davidm51e4d342002-12-12 09:17:41 +000020544 ac_config_links="$ac_config_links include/libunwind.h:include/libunwind-$target_arch.h include/tdep.h:include/tdep-$target_arch.h"
20545
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020546
20547# Check whether --enable-debug or --disable-debug was given.
20548if test "${enable_debug+set}" = set; then
20549 enableval="$enable_debug"
20550 enable_debug=yes
20551fi;
20552
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020553if test "x$enable___thread" != xno; then
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +000020554 echo "$as_me:$LINENO: checking for __thread" >&5
20555echo $ECHO_N "checking for __thread... $ECHO_C" >&6
20556if test "${libc_cv_gcc___thread+set}" = set; then
20557 echo $ECHO_N "(cached) $ECHO_C" >&6
20558else
20559 cat > conftest.c <<\EOF
20560 __thread int a = 42;
20561EOF
20562 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20565 ac_status=$?
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; }; then
20568 libc_cv_gcc___thread=yes
20569 else
20570 libc_cv_gcc___thread=no
20571 fi
20572 rm -f conftest*
20573fi
20574echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
20575echo "${ECHO_T}$libc_cv_gcc___thread" >&6
20576 if test "$libc_cv_gcc___thread" = yes; then
mostang.com!davidm57f5fae2002-12-03 08:19:58 +000020577
20578cat >>confdefs.h <<\_ACEOF
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +000020579#define HAVE___THREAD 1
20580_ACEOF
20581
20582 fi
20583else
20584 libc_cv_gcc___thread=no
20585fi
20586
hp.com!davidm2de17682004-04-20 16:53:44 +000020587save_LDFLAGS="$LDFLAGS"
20588LDFLAGS="$LDFLAGS -static-libcxa"
20589cat >conftest.$ac_ext <<_ACEOF
20590/* confdefs.h. */
20591_ACEOF
20592cat confdefs.h >>conftest.$ac_ext
20593cat >>conftest.$ac_ext <<_ACEOF
20594/* end confdefs.h. */
20595
20596int
20597main ()
20598{
20599
20600 ;
20601 return 0;
20602}
20603_ACEOF
20604rm -f conftest.$ac_objext conftest$ac_exeext
20605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20606 (eval $ac_link) 2>conftest.er1
20607 ac_status=$?
20608 grep -v '^ *+' conftest.er1 >conftest.err
20609 rm -f conftest.er1
20610 cat conftest.err >&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } &&
20613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20615 (eval $ac_try) 2>&5
20616 ac_status=$?
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); }; } &&
20619 { ac_try='test -s conftest$ac_exeext'
20620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20621 (eval $ac_try) 2>&5
20622 ac_status=$?
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); }; }; then
20625 have_static_libcxa=yes
20626else
20627 echo "$as_me: failed program was:" >&5
20628sed 's/^/| /' conftest.$ac_ext >&5
20629
20630fi
20631rm -f conftest.err conftest.$ac_objext \
20632 conftest$ac_exeext conftest.$ac_ext
20633LDFLAGS="$save_LDFLAGS"
20634if test "x$have_static_libcxa" = xyes; then
20635 LDFLAGS_STATIC_LIBCXA="-XCClinker -static-libcxa"
20636fi
20637
20638cat >conftest.$ac_ext <<_ACEOF
20639/* confdefs.h. */
20640_ACEOF
20641cat confdefs.h >>conftest.$ac_ext
20642cat >>conftest.$ac_ext <<_ACEOF
20643/* end confdefs.h. */
20644
20645int
20646main ()
20647{
20648#ifndef __INTEL_COMPILER
20649#error choke me
20650#endif
20651 ;
20652 return 0;
20653}
20654_ACEOF
20655rm -f conftest.$ac_objext
20656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20657 (eval $ac_compile) 2>conftest.er1
20658 ac_status=$?
20659 grep -v '^ *+' conftest.er1 >conftest.err
20660 rm -f conftest.er1
20661 cat conftest.err >&5
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); } &&
20664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20666 (eval $ac_try) 2>&5
20667 ac_status=$?
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); }; } &&
20670 { ac_try='test -s conftest.$ac_objext'
20671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20672 (eval $ac_try) 2>&5
20673 ac_status=$?
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); }; }; then
20676 intel_compiler=yes
20677else
20678 echo "$as_me: failed program was:" >&5
20679sed 's/^/| /' conftest.$ac_ext >&5
20680
20681fi
20682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20683
20684if test x$GCC = xyes -a x$intel_compiler != xyes; then
mostang.com!davidma8db0b32003-02-08 10:10:59 +000020685 CFLAGS="${CFLAGS} -Wall -Wsign-compare"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020686fi
20687
mostang.com!davidm6af90d02003-02-15 08:53:55 +000020688CCASFLAGS="${CCASFLAGS} ${CPPFLAGS}"
20689
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020690arch="$target_arch"
20691ARCH=`echo $target_arch | tr a-z A-Z`
20692
20693
20694
mostang.com!davidmf648f6f2003-01-17 07:48:52 +000020695
hp.com!davidm2de17682004-04-20 16:53:44 +000020696
mostang.com!davidm542e0262004-05-05 01:58:44 +000020697
20698
20699 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 +000020700
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020701cat >confcache <<\_ACEOF
20702# This file is a shell script that caches the results of configure
20703# tests run on this system so they can be shared between configure
20704# scripts and configure runs, see configure's option --config-cache.
20705# It is not useful on other systems. If it contains results you don't
20706# want to keep, you may remove or edit it.
20707#
20708# config.status only pays attention to the cache file if you give it
20709# the --recheck option to rerun configure.
20710#
20711# `ac_cv_env_foo' variables (set or unset) will be overridden when
20712# loading this file, other *unset* `ac_cv_foo' will be assigned the
20713# following values.
20714
20715_ACEOF
20716
20717# The following way of writing the cache mishandles newlines in values,
20718# but we know of no workaround that is simple, portable, and efficient.
20719# So, don't put newlines in cache variables' values.
20720# Ultrix sh set writes to stderr and can't be redirected directly,
20721# and sets the high bit in the cache file unless we assign to the vars.
20722{
20723 (set) 2>&1 |
20724 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20725 *ac_space=\ *)
20726 # `set' does not quote correctly, so add quotes (double-quote
20727 # substitution turns \\\\ into \\, and sed turns \\ into \).
20728 sed -n \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020729 "s/'/'\\\\''/g;
20730 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020731 ;;
20732 *)
20733 # `set' quotes correctly as required by POSIX, so do not add quotes.
20734 sed -n \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020735 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020736 ;;
20737 esac;
20738} |
20739 sed '
20740 t clear
20741 : clear
20742 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20743 t end
20744 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20745 : end' >>confcache
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020746if diff $cache_file confcache >/dev/null 2>&1; then :; else
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020747 if test -w $cache_file; then
20748 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20749 cat confcache >$cache_file
20750 else
20751 echo "not updating unwritable cache $cache_file"
20752 fi
20753fi
20754rm -f confcache
20755
20756test "x$prefix" = xNONE && prefix=$ac_default_prefix
20757# Let make expand exec_prefix.
20758test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20759
20760# VPATH may cause trouble with some makes, so we remove $(srcdir),
20761# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20762# trailing colons and then remove the whole line if VPATH becomes empty
20763# (actually we leave an empty line to preserve line numbers).
20764if test "x$srcdir" = x.; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020765 ac_vpsub='/^[ ]*VPATH[ ]*=/{
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020766s/:*\$(srcdir):*/:/;
20767s/:*\${srcdir}:*/:/;
20768s/:*@srcdir@:*/:/;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020769s/^\([^=]*=[ ]*\):*/\1/;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020770s/:*$//;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020771s/^[^=]*=[ ]*$//;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020772}'
20773fi
20774
20775DEFS=-DHAVE_CONFIG_H
20776
20777ac_libobjs=
20778ac_ltlibobjs=
20779for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20780 # 1. Remove the extension, and $U if already installed.
20781 ac_i=`echo "$ac_i" |
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020782 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020783 # 2. Add them.
20784 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20785 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20786done
20787LIBOBJS=$ac_libobjs
20788
20789LTLIBOBJS=$ac_ltlibobjs
20790
20791
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020792if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20793 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20794Usually this means the macro was only invoked conditionally." >&5
20795echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20796Usually this means the macro was only invoked conditionally." >&2;}
20797 { (exit 1); exit 1; }; }
20798fi
20799if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20800 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20801Usually this means the macro was only invoked conditionally." >&5
20802echo "$as_me: error: conditional \"AMDEP\" was never defined.
20803Usually this means the macro was only invoked conditionally." >&2;}
20804 { (exit 1); exit 1; }; }
20805fi
20806if test -z "${REMOTE_ONLY_TRUE}" && test -z "${REMOTE_ONLY_FALSE}"; then
20807 { { echo "$as_me:$LINENO: error: conditional \"REMOTE_ONLY\" was never defined.
20808Usually this means the macro was only invoked conditionally." >&5
20809echo "$as_me: error: conditional \"REMOTE_ONLY\" was never defined.
20810Usually this means the macro was only invoked conditionally." >&2;}
20811 { (exit 1); exit 1; }; }
20812fi
20813if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
20814 { { echo "$as_me:$LINENO: error: conditional \"ARCH_IA64\" was never defined.
20815Usually this means the macro was only invoked conditionally." >&5
20816echo "$as_me: error: conditional \"ARCH_IA64\" was never defined.
20817Usually this means the macro was only invoked conditionally." >&2;}
20818 { (exit 1); exit 1; }; }
20819fi
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000020820if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
20821 { { echo "$as_me:$LINENO: error: conditional \"ARCH_HPPA\" was never defined.
20822Usually this means the macro was only invoked conditionally." >&5
20823echo "$as_me: error: conditional \"ARCH_HPPA\" was never defined.
20824Usually this means the macro was only invoked conditionally." >&2;}
20825 { (exit 1); exit 1; }; }
20826fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020827if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
20828 { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
20829Usually this means the macro was only invoked conditionally." >&5
20830echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
20831Usually this means the macro was only invoked conditionally." >&2;}
20832 { (exit 1); exit 1; }; }
20833fi
mostang.com!davidma8db0b32003-02-08 10:10:59 +000020834if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
20835 { { echo "$as_me:$LINENO: error: conditional \"OS_LINUX\" was never defined.
20836Usually this means the macro was only invoked conditionally." >&5
20837echo "$as_me: error: conditional \"OS_LINUX\" was never defined.
20838Usually this means the macro was only invoked conditionally." >&2;}
20839 { (exit 1); exit 1; }; }
20840fi
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000020841if test -z "${OS_HPUX_TRUE}" && test -z "${OS_HPUX_FALSE}"; then
20842 { { echo "$as_me:$LINENO: error: conditional \"OS_HPUX\" was never defined.
20843Usually this means the macro was only invoked conditionally." >&5
20844echo "$as_me: error: conditional \"OS_HPUX\" was never defined.
20845Usually this means the macro was only invoked conditionally." >&2;}
20846 { (exit 1); exit 1; }; }
20847fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020848
20849: ${CONFIG_STATUS=./config.status}
20850ac_clean_files_save=$ac_clean_files
20851ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20852{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20853echo "$as_me: creating $CONFIG_STATUS" >&6;}
20854cat >$CONFIG_STATUS <<_ACEOF
20855#! $SHELL
20856# Generated by $as_me.
20857# Run this file to recreate the current configuration.
20858# Compiler output produced by configure, useful for debugging
20859# configure, is in config.log if it exists.
20860
20861debug=false
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020862ac_cs_recheck=false
20863ac_cs_silent=false
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020864SHELL=\${CONFIG_SHELL-$SHELL}
20865_ACEOF
20866
20867cat >>$CONFIG_STATUS <<\_ACEOF
20868## --------------------- ##
20869## M4sh Initialization. ##
20870## --------------------- ##
20871
20872# Be Bourne compatible
20873if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20874 emulate sh
20875 NULLCMD=:
20876 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20877 # is contrary to our usage. Disable this feature.
20878 alias -g '${1+"$@"}'='"$@"'
20879elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20880 set -o posix
20881fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020882DUALCASE=1; export DUALCASE # for MKS sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020883
20884# Support unset when possible.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020885if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020886 as_unset=unset
20887else
20888 as_unset=false
20889fi
20890
20891
20892# Work around bugs in pre-3.0 UWIN ksh.
20893$as_unset ENV MAIL MAILPATH
20894PS1='$ '
20895PS2='> '
20896PS4='+ '
20897
20898# NLS nuisances.
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020899for as_var in \
20900 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20901 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20902 LC_TELEPHONE LC_TIME
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020903do
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020904 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020905 eval $as_var=C; export $as_var
20906 else
20907 $as_unset $as_var
20908 fi
20909done
20910
20911# Required to use basename.
20912if expr a : '\(a\)' >/dev/null 2>&1; then
20913 as_expr=expr
20914else
20915 as_expr=false
20916fi
20917
20918if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20919 as_basename=basename
20920else
20921 as_basename=false
20922fi
20923
20924
20925# Name of the executable.
20926as_me=`$as_basename "$0" ||
20927$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20928 X"$0" : 'X\(//\)$' \| \
20929 X"$0" : 'X\(/\)$' \| \
20930 . : '\(.\)' 2>/dev/null ||
20931echo X/"$0" |
20932 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20933 /^X\/\(\/\/\)$/{ s//\1/; q; }
20934 /^X\/\(\/\).*/{ s//\1/; q; }
20935 s/.*/./; q'`
20936
20937
20938# PATH needs CR, and LINENO needs CR and PATH.
20939# Avoid depending upon Character Ranges.
20940as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20941as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20942as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20943as_cr_digits='0123456789'
20944as_cr_alnum=$as_cr_Letters$as_cr_digits
20945
20946# The user is always right.
20947if test "${PATH_SEPARATOR+set}" != set; then
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020948 echo "#! /bin/sh" >conf$$.sh
20949 echo "exit 0" >>conf$$.sh
20950 chmod +x conf$$.sh
20951 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020952 PATH_SEPARATOR=';'
20953 else
20954 PATH_SEPARATOR=:
20955 fi
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020956 rm -f conf$$.sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020957fi
20958
20959
20960 as_lineno_1=$LINENO
20961 as_lineno_2=$LINENO
20962 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20963 test "x$as_lineno_1" != "x$as_lineno_2" &&
20964 test "x$as_lineno_3" = "x$as_lineno_2" || {
20965 # Find who we are. Look in the path if we contain no path at all
20966 # relative or not.
20967 case $0 in
20968 *[\\/]* ) as_myself=$0 ;;
20969 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20970for as_dir in $PATH
20971do
20972 IFS=$as_save_IFS
20973 test -z "$as_dir" && as_dir=.
20974 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20975done
20976
20977 ;;
20978 esac
20979 # We did not find ourselves, most probably we were run as `sh COMMAND'
20980 # in which case we are not to be found in the path.
20981 if test "x$as_myself" = x; then
20982 as_myself=$0
20983 fi
20984 if test ! -f "$as_myself"; then
20985 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20986echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20987 { (exit 1); exit 1; }; }
20988 fi
20989 case $CONFIG_SHELL in
20990 '')
20991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20992for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20993do
20994 IFS=$as_save_IFS
20995 test -z "$as_dir" && as_dir=.
20996 for as_base in sh bash ksh sh5; do
20997 case $as_dir in
20998 /*)
20999 if ("$as_dir/$as_base" -c '
21000 as_lineno_1=$LINENO
21001 as_lineno_2=$LINENO
21002 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21003 test "x$as_lineno_1" != "x$as_lineno_2" &&
21004 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21005 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21006 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21007 CONFIG_SHELL=$as_dir/$as_base
21008 export CONFIG_SHELL
21009 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21010 fi;;
21011 esac
21012 done
21013done
21014;;
21015 esac
21016
21017 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21018 # uniformly replaced by the line number. The first 'sed' inserts a
21019 # line-number line before each line; the second 'sed' does the real
21020 # work. The second script uses 'N' to pair each line-number line
21021 # with the numbered line, and appends trailing '-' during
21022 # substitution so that $LINENO is not a special case at line end.
21023 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21024 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21025 sed '=' <$as_myself |
21026 sed '
21027 N
21028 s,$,-,
21029 : loop
21030 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21031 t loop
21032 s,-$,,
21033 s,^['$as_cr_digits']*\n,,
21034 ' >$as_me.lineno &&
21035 chmod +x $as_me.lineno ||
21036 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21037echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21038 { (exit 1); exit 1; }; }
21039
21040 # Don't try to exec as it changes $[0], causing all sort of problems
21041 # (the dirname of $[0] is not the place where we might find the
21042 # original and so on. Autoconf is especially sensible to this).
21043 . ./$as_me.lineno
21044 # Exit status is that of the last command.
21045 exit
21046}
21047
21048
21049case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21050 *c*,-n*) ECHO_N= ECHO_C='
21051' ECHO_T=' ' ;;
21052 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21053 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21054esac
21055
21056if expr a : '\(a\)' >/dev/null 2>&1; then
21057 as_expr=expr
21058else
21059 as_expr=false
21060fi
21061
21062rm -f conf$$ conf$$.exe conf$$.file
21063echo >conf$$.file
21064if ln -s conf$$.file conf$$ 2>/dev/null; then
21065 # We could just check for DJGPP; but this test a) works b) is more generic
21066 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21067 if test -f conf$$.exe; then
21068 # Don't use ln at all; we don't have any links
21069 as_ln_s='cp -p'
21070 else
21071 as_ln_s='ln -s'
21072 fi
21073elif ln conf$$.file conf$$ 2>/dev/null; then
21074 as_ln_s=ln
21075else
21076 as_ln_s='cp -p'
21077fi
21078rm -f conf$$ conf$$.exe conf$$.file
21079
21080if mkdir -p . 2>/dev/null; then
21081 as_mkdir_p=:
21082else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021083 test -d ./-p && rmdir ./-p
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021084 as_mkdir_p=false
21085fi
21086
21087as_executable_p="test -f"
21088
21089# Sed expression to map a string onto a valid CPP name.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021090as_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 +000021091
21092# Sed expression to map a string onto a valid variable name.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021093as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021094
21095
21096# IFS
21097# We need space, tab and new line, in precisely that order.
21098as_nl='
21099'
21100IFS=" $as_nl"
21101
21102# CDPATH.
21103$as_unset CDPATH
21104
21105exec 6>&1
21106
21107# Open the log real soon, to keep \$[0] and so on meaningful, and to
21108# report actual input values of CONFIG_FILES etc. instead of their
21109# values after options handling. Logging --version etc. is OK.
21110exec 5>>config.log
21111{
21112 echo
21113 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21114## Running $as_me. ##
21115_ASBOX
21116} >&5
21117cat >&5 <<_CSEOF
21118
hp.com!davidm75f19902004-04-28 04:43:25 +000021119This file was extended by libunwind $as_me 0.97, which was
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021120generated by GNU Autoconf 2.59. Invocation command line was
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021121
21122 CONFIG_FILES = $CONFIG_FILES
21123 CONFIG_HEADERS = $CONFIG_HEADERS
21124 CONFIG_LINKS = $CONFIG_LINKS
21125 CONFIG_COMMANDS = $CONFIG_COMMANDS
21126 $ $0 $@
21127
21128_CSEOF
21129echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21130echo >&5
21131_ACEOF
21132
21133# Files that config.status was made for.
21134if test -n "$ac_config_files"; then
21135 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21136fi
21137
21138if test -n "$ac_config_headers"; then
21139 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21140fi
21141
21142if test -n "$ac_config_links"; then
21143 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21144fi
21145
21146if test -n "$ac_config_commands"; then
21147 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21148fi
21149
21150cat >>$CONFIG_STATUS <<\_ACEOF
21151
21152ac_cs_usage="\
21153\`$as_me' instantiates files from templates according to the
21154current configuration.
21155
21156Usage: $0 [OPTIONS] [FILE]...
21157
21158 -h, --help print this help, then exit
21159 -V, --version print version number, then exit
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021160 -q, --quiet do not print progress messages
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021161 -d, --debug don't remove temporary files
21162 --recheck update $as_me by reconfiguring in the same conditions
21163 --file=FILE[:TEMPLATE]
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021164 instantiate the configuration file FILE
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021165 --header=FILE[:TEMPLATE]
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021166 instantiate the configuration header FILE
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021167
21168Configuration files:
21169$config_files
21170
21171Configuration headers:
21172$config_headers
21173
21174Configuration links:
21175$config_links
21176
21177Configuration commands:
21178$config_commands
21179
21180Report bugs to <bug-autoconf@gnu.org>."
21181_ACEOF
21182
21183cat >>$CONFIG_STATUS <<_ACEOF
21184ac_cs_version="\\
hp.com!davidm75f19902004-04-28 04:43:25 +000021185libunwind config.status 0.97
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021186configured by $0, generated by GNU Autoconf 2.59,
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021187 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21188
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021189Copyright (C) 2003 Free Software Foundation, Inc.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021190This config.status script is free software; the Free Software Foundation
21191gives unlimited permission to copy, distribute and modify it."
21192srcdir=$srcdir
21193INSTALL="$INSTALL"
21194_ACEOF
21195
21196cat >>$CONFIG_STATUS <<\_ACEOF
21197# If no file are specified by the user, then we need to provide default
21198# value. By we need to know if files were specified by the user.
21199ac_need_defaults=:
21200while test $# != 0
21201do
21202 case $1 in
21203 --*=*)
21204 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21205 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21206 ac_shift=:
21207 ;;
21208 -*)
21209 ac_option=$1
21210 ac_optarg=$2
21211 ac_shift=shift
21212 ;;
21213 *) # This is not an option, so the user has probably given explicit
21214 # arguments.
21215 ac_option=$1
21216 ac_need_defaults=false;;
21217 esac
21218
21219 case $ac_option in
21220 # Handling of the options.
21221_ACEOF
mostang.com!davidma8db0b32003-02-08 10:10:59 +000021222cat >>$CONFIG_STATUS <<\_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021223 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21224 ac_cs_recheck=: ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021225 --version | --vers* | -V )
21226 echo "$ac_cs_version"; exit 0 ;;
21227 --he | --h)
21228 # Conflict between --help and --header
21229 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21230Try \`$0 --help' for more information." >&5
21231echo "$as_me: error: ambiguous option: $1
21232Try \`$0 --help' for more information." >&2;}
21233 { (exit 1); exit 1; }; };;
21234 --help | --hel | -h )
21235 echo "$ac_cs_usage"; exit 0 ;;
21236 --debug | --d* | -d )
21237 debug=: ;;
21238 --file | --fil | --fi | --f )
21239 $ac_shift
21240 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21241 ac_need_defaults=false;;
21242 --header | --heade | --head | --hea )
21243 $ac_shift
21244 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21245 ac_need_defaults=false;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21247 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21248 ac_cs_silent=: ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021249
21250 # This is an error.
21251 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21252Try \`$0 --help' for more information." >&5
21253echo "$as_me: error: unrecognized option: $1
21254Try \`$0 --help' for more information." >&2;}
21255 { (exit 1); exit 1; }; } ;;
21256
21257 *) ac_config_targets="$ac_config_targets $1" ;;
21258
21259 esac
21260 shift
21261done
21262
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021263ac_configure_extra_args=
21264
21265if $ac_cs_silent; then
21266 exec 6>/dev/null
21267 ac_configure_extra_args="$ac_configure_extra_args --silent"
21268fi
21269
21270_ACEOF
21271cat >>$CONFIG_STATUS <<_ACEOF
21272if \$ac_cs_recheck; then
21273 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21274 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21275fi
21276
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021277_ACEOF
21278
21279cat >>$CONFIG_STATUS <<_ACEOF
21280#
21281# INIT-COMMANDS section.
21282#
21283
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021284AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021285
21286_ACEOF
21287
21288
21289
21290cat >>$CONFIG_STATUS <<\_ACEOF
21291for ac_config_target in $ac_config_targets
21292do
21293 case "$ac_config_target" in
21294 # Handling of arguments.
21295 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21296 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21297 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
mostang.com!davidm542e0262004-05-05 01:58:44 +000021298 "tests/check-namespace.sh" ) CONFIG_FILES="$CONFIG_FILES tests/check-namespace.sh" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021299 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
mostang.com!davidmf648f6f2003-01-17 07:48:52 +000021300 "doc/common.tex" ) CONFIG_FILES="$CONFIG_FILES doc/common.tex" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021301 "include/libunwind.h" ) CONFIG_LINKS="$CONFIG_LINKS include/libunwind.h:include/libunwind-$target_arch.h" ;;
mostang.com!davidm51e4d342002-12-12 09:17:41 +000021302 "include/tdep.h" ) CONFIG_LINKS="$CONFIG_LINKS include/tdep.h:include/tdep-$target_arch.h" ;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021303 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021304 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21305 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21306echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21307 { (exit 1); exit 1; }; };;
21308 esac
21309done
21310
21311# If the user did not use the arguments to specify the items to instantiate,
21312# then the envvar interface is used. Set only those that are not.
21313# We use the long form for the default assignment because of an extremely
21314# bizarre bug on SunOS 4.1.3.
21315if $ac_need_defaults; then
21316 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21317 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21318 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
21319 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21320fi
21321
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021322# Have a temporary directory for convenience. Make it in the build tree
21323# simply because there is no reason to put it here, and in addition,
21324# creating and moving files from /tmp can sometimes cause problems.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021325# Create a temporary directory, and hook for its removal unless debugging.
21326$debug ||
21327{
21328 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21329 trap '{ (exit 1); exit 1; }' 1 2 13 15
21330}
21331
21332# Create a (secure) tmp directory for tmp files.
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021333
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021334{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021335 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021336 test -n "$tmp" && test -d "$tmp"
21337} ||
21338{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021339 tmp=./confstat$$-$RANDOM
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021340 (umask 077 && mkdir $tmp)
21341} ||
21342{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021343 echo "$me: cannot create a temporary directory in ." >&2
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021344 { (exit 1); exit 1; }
21345}
21346
21347_ACEOF
21348
21349cat >>$CONFIG_STATUS <<_ACEOF
21350
21351#
21352# CONFIG_FILES section.
21353#
21354
21355# No need to generate the scripts if there are no CONFIG_FILES.
21356# This happens for instance when ./config.status config.h
21357if test -n "\$CONFIG_FILES"; then
21358 # Protect against being on the right side of a sed subst in config.status.
21359 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21360 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21361s,@SHELL@,$SHELL,;t t
21362s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21363s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21364s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21365s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21366s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21367s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21368s,@exec_prefix@,$exec_prefix,;t t
21369s,@prefix@,$prefix,;t t
21370s,@program_transform_name@,$program_transform_name,;t t
21371s,@bindir@,$bindir,;t t
21372s,@sbindir@,$sbindir,;t t
21373s,@libexecdir@,$libexecdir,;t t
21374s,@datadir@,$datadir,;t t
21375s,@sysconfdir@,$sysconfdir,;t t
21376s,@sharedstatedir@,$sharedstatedir,;t t
21377s,@localstatedir@,$localstatedir,;t t
21378s,@libdir@,$libdir,;t t
21379s,@includedir@,$includedir,;t t
21380s,@oldincludedir@,$oldincludedir,;t t
21381s,@infodir@,$infodir,;t t
21382s,@mandir@,$mandir,;t t
21383s,@build_alias@,$build_alias,;t t
21384s,@host_alias@,$host_alias,;t t
21385s,@target_alias@,$target_alias,;t t
21386s,@DEFS@,$DEFS,;t t
21387s,@ECHO_C@,$ECHO_C,;t t
21388s,@ECHO_N@,$ECHO_N,;t t
21389s,@ECHO_T@,$ECHO_T,;t t
21390s,@LIBS@,$LIBS,;t t
21391s,@build@,$build,;t t
21392s,@build_cpu@,$build_cpu,;t t
21393s,@build_vendor@,$build_vendor,;t t
21394s,@build_os@,$build_os,;t t
21395s,@host@,$host,;t t
21396s,@host_cpu@,$host_cpu,;t t
21397s,@host_vendor@,$host_vendor,;t t
21398s,@host_os@,$host_os,;t t
21399s,@target@,$target,;t t
21400s,@target_cpu@,$target_cpu,;t t
21401s,@target_vendor@,$target_vendor,;t t
21402s,@target_os@,$target_os,;t t
21403s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21404s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21405s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21406s,@PACKAGE@,$PACKAGE,;t t
21407s,@VERSION@,$VERSION,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021408s,@ACLOCAL@,$ACLOCAL,;t t
21409s,@AUTOCONF@,$AUTOCONF,;t t
21410s,@AUTOMAKE@,$AUTOMAKE,;t t
21411s,@AUTOHEADER@,$AUTOHEADER,;t t
21412s,@MAKEINFO@,$MAKEINFO,;t t
21413s,@AMTAR@,$AMTAR,;t t
21414s,@install_sh@,$install_sh,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021415s,@STRIP@,$STRIP,;t t
21416s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021417s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21418s,@AWK@,$AWK,;t t
21419s,@SET_MAKE@,$SET_MAKE,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021420s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21421s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21422s,@MAINT@,$MAINT,;t t
21423s,@CC@,$CC,;t t
21424s,@CFLAGS@,$CFLAGS,;t t
21425s,@LDFLAGS@,$LDFLAGS,;t t
21426s,@CPPFLAGS@,$CPPFLAGS,;t t
21427s,@ac_ct_CC@,$ac_ct_CC,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021428s,@EXEEXT@,$EXEEXT,;t t
21429s,@OBJEXT@,$OBJEXT,;t t
21430s,@DEPDIR@,$DEPDIR,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021431s,@am__include@,$am__include,;t t
21432s,@am__quote@,$am__quote,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021433s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21434s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21435s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021436s,@CCDEPMODE@,$CCDEPMODE,;t t
mostang.com!davidm4f17bce2003-03-28 07:43:22 +000021437s,@CXX@,$CXX,;t t
21438s,@CXXFLAGS@,$CXXFLAGS,;t t
21439s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21440s,@CXXDEPMODE@,$CXXDEPMODE,;t t
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021441s,@EGREP@,$EGREP,;t t
mostang.com!davidmf26451a2003-01-16 03:10:11 +000021442s,@LN_S@,$LN_S,;t t
21443s,@ECHO@,$ECHO,;t t
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021444s,@AR@,$AR,;t t
21445s,@ac_ct_AR@,$ac_ct_AR,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021446s,@RANLIB@,$RANLIB,;t t
21447s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021448s,@CPP@,$CPP,;t t
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021449s,@CXXCPP@,$CXXCPP,;t t
21450s,@F77@,$F77,;t t
21451s,@FFLAGS@,$FFLAGS,;t t
21452s,@ac_ct_F77@,$ac_ct_F77,;t t
mostang.com!davidmf26451a2003-01-16 03:10:11 +000021453s,@LIBTOOL@,$LIBTOOL,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021454s,@CCAS@,$CCAS,;t t
21455s,@CCASFLAGS@,$CCASFLAGS,;t t
mostang.com!davidm6af90d02003-02-15 08:53:55 +000021456s,@LIBOBJS@,$LIBOBJS,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021457s,@REMOTE_ONLY_TRUE@,$REMOTE_ONLY_TRUE,;t t
21458s,@REMOTE_ONLY_FALSE@,$REMOTE_ONLY_FALSE,;t t
21459s,@ARCH_IA64_TRUE@,$ARCH_IA64_TRUE,;t t
21460s,@ARCH_IA64_FALSE@,$ARCH_IA64_FALSE,;t t
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000021461s,@ARCH_HPPA_TRUE@,$ARCH_HPPA_TRUE,;t t
21462s,@ARCH_HPPA_FALSE@,$ARCH_HPPA_FALSE,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021463s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t
21464s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t
mostang.com!davidma8db0b32003-02-08 10:10:59 +000021465s,@OS_LINUX_TRUE@,$OS_LINUX_TRUE,;t t
21466s,@OS_LINUX_FALSE@,$OS_LINUX_FALSE,;t t
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000021467s,@OS_HPUX_TRUE@,$OS_HPUX_TRUE,;t t
21468s,@OS_HPUX_FALSE@,$OS_HPUX_FALSE,;t t
mostang.com!davidm542e0262004-05-05 01:58:44 +000021469s,@build_arch@,$build_arch,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021470s,@arch@,$arch,;t t
21471s,@ARCH@,$ARCH,;t t
hp.com!davidm2de17682004-04-20 16:53:44 +000021472s,@LDFLAGS_STATIC_LIBCXA@,$LDFLAGS_STATIC_LIBCXA,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021473s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21474CEOF
21475
21476_ACEOF
21477
21478 cat >>$CONFIG_STATUS <<\_ACEOF
21479 # Split the substitutions into bite-sized pieces for seds with
21480 # small command number limits, like on Digital OSF/1 and HP-UX.
21481 ac_max_sed_lines=48
21482 ac_sed_frag=1 # Number of current file.
21483 ac_beg=1 # First line for current file.
21484 ac_end=$ac_max_sed_lines # Line after last line for current file.
21485 ac_more_lines=:
21486 ac_sed_cmds=
21487 while $ac_more_lines; do
21488 if test $ac_beg -gt 1; then
21489 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21490 else
21491 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21492 fi
21493 if test ! -s $tmp/subs.frag; then
21494 ac_more_lines=false
21495 else
21496 # The purpose of the label and of the branching condition is to
21497 # speed up the sed processing (if there are no `@' at all, there
21498 # is no need to browse any of the substitutions).
21499 # These are the two extra sed commands mentioned above.
21500 (echo ':t
21501 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21502 if test -z "$ac_sed_cmds"; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021503 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021504 else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021505 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021506 fi
21507 ac_sed_frag=`expr $ac_sed_frag + 1`
21508 ac_beg=$ac_end
21509 ac_end=`expr $ac_end + $ac_max_sed_lines`
21510 fi
21511 done
21512 if test -z "$ac_sed_cmds"; then
21513 ac_sed_cmds=cat
21514 fi
21515fi # test -n "$CONFIG_FILES"
21516
21517_ACEOF
21518cat >>$CONFIG_STATUS <<\_ACEOF
21519for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21520 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21521 case $ac_file in
21522 - | *:- | *:-:* ) # input from stdin
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021523 cat >$tmp/stdin
21524 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21525 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021526 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021527 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021528 * ) ac_file_in=$ac_file.in ;;
21529 esac
21530
21531 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21532 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21533$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021534 X"$ac_file" : 'X\(//\)[^/]' \| \
21535 X"$ac_file" : 'X\(//\)$' \| \
21536 X"$ac_file" : 'X\(/\)' \| \
21537 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021538echo X"$ac_file" |
21539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21540 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21541 /^X\(\/\/\)$/{ s//\1/; q; }
21542 /^X\(\/\).*/{ s//\1/; q; }
21543 s/.*/./; q'`
21544 { if $as_mkdir_p; then
21545 mkdir -p "$ac_dir"
21546 else
21547 as_dir="$ac_dir"
21548 as_dirs=
21549 while test ! -d "$as_dir"; do
21550 as_dirs="$as_dir $as_dirs"
21551 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21552$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021553 X"$as_dir" : 'X\(//\)[^/]' \| \
21554 X"$as_dir" : 'X\(//\)$' \| \
21555 X"$as_dir" : 'X\(/\)' \| \
21556 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021557echo X"$as_dir" |
21558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21559 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21560 /^X\(\/\/\)$/{ s//\1/; q; }
21561 /^X\(\/\).*/{ s//\1/; q; }
21562 s/.*/./; q'`
21563 done
21564 test ! -n "$as_dirs" || mkdir $as_dirs
21565 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21566echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21567 { (exit 1); exit 1; }; }; }
21568
21569 ac_builddir=.
21570
21571if test "$ac_dir" != .; then
21572 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21573 # A "../" for each directory in $ac_dir_suffix.
21574 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21575else
21576 ac_dir_suffix= ac_top_builddir=
21577fi
21578
21579case $srcdir in
21580 .) # No --srcdir option. We are building in place.
21581 ac_srcdir=.
21582 if test -z "$ac_top_builddir"; then
21583 ac_top_srcdir=.
21584 else
21585 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21586 fi ;;
21587 [\\/]* | ?:[\\/]* ) # Absolute path.
21588 ac_srcdir=$srcdir$ac_dir_suffix;
21589 ac_top_srcdir=$srcdir ;;
21590 *) # Relative path.
21591 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21592 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21593esac
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021594
21595# Do not use `cd foo && pwd` to compute absolute paths, because
21596# the directories may not exist.
21597case `pwd` in
21598.) ac_abs_builddir="$ac_dir";;
21599*)
21600 case "$ac_dir" in
21601 .) ac_abs_builddir=`pwd`;;
21602 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21603 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21604 esac;;
21605esac
21606case $ac_abs_builddir in
21607.) ac_abs_top_builddir=${ac_top_builddir}.;;
21608*)
21609 case ${ac_top_builddir}. in
21610 .) ac_abs_top_builddir=$ac_abs_builddir;;
21611 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21612 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21613 esac;;
21614esac
21615case $ac_abs_builddir in
21616.) ac_abs_srcdir=$ac_srcdir;;
21617*)
21618 case $ac_srcdir in
21619 .) ac_abs_srcdir=$ac_abs_builddir;;
21620 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21621 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21622 esac;;
21623esac
21624case $ac_abs_builddir in
21625.) ac_abs_top_srcdir=$ac_top_srcdir;;
21626*)
21627 case $ac_top_srcdir in
21628 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21629 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21630 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21631 esac;;
21632esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021633
21634
21635 case $INSTALL in
21636 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21637 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21638 esac
21639
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021640 # Let's still pretend it is `configure' which instantiates (i.e., don't
21641 # use $as_me), people would be surprised to read:
21642 # /* config.h. Generated by config.status. */
21643 if test x"$ac_file" = x-; then
21644 configure_input=
21645 else
21646 configure_input="$ac_file. "
21647 fi
21648 configure_input=$configure_input"Generated from `echo $ac_file_in |
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021649 sed 's,.*/,,'` by configure."
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021650
21651 # First look for the input files in the build tree, otherwise in the
21652 # src tree.
21653 ac_file_inputs=`IFS=:
21654 for f in $ac_file_in; do
21655 case $f in
21656 -) echo $tmp/stdin ;;
21657 [\\/$]*)
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021658 # Absolute (can't be DOS-style, as IFS=:)
21659 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021660echo "$as_me: error: cannot find input file: $f" >&2;}
21661 { (exit 1); exit 1; }; }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021662 echo "$f";;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021663 *) # Relative
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021664 if test -f "$f"; then
21665 # Build tree
21666 echo "$f"
21667 elif test -f "$srcdir/$f"; then
21668 # Source tree
21669 echo "$srcdir/$f"
21670 else
21671 # /dev/null tree
21672 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021673echo "$as_me: error: cannot find input file: $f" >&2;}
21674 { (exit 1); exit 1; }; }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021675 fi;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021676 esac
21677 done` || { (exit 1); exit 1; }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021678
21679 if test x"$ac_file" != x-; then
21680 { echo "$as_me:$LINENO: creating $ac_file" >&5
21681echo "$as_me: creating $ac_file" >&6;}
21682 rm -f "$ac_file"
21683 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021684_ACEOF
21685cat >>$CONFIG_STATUS <<_ACEOF
21686 sed "$ac_vpsub
21687$extrasub
21688_ACEOF
21689cat >>$CONFIG_STATUS <<\_ACEOF
21690:t
21691/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21692s,@configure_input@,$configure_input,;t t
21693s,@srcdir@,$ac_srcdir,;t t
21694s,@abs_srcdir@,$ac_abs_srcdir,;t t
21695s,@top_srcdir@,$ac_top_srcdir,;t t
21696s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21697s,@builddir@,$ac_builddir,;t t
21698s,@abs_builddir@,$ac_abs_builddir,;t t
21699s,@top_builddir@,$ac_top_builddir,;t t
21700s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21701s,@INSTALL@,$ac_INSTALL,;t t
21702" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21703 rm -f $tmp/stdin
21704 if test x"$ac_file" != x-; then
21705 mv $tmp/out $ac_file
21706 else
21707 cat $tmp/out
21708 rm -f $tmp/out
21709 fi
21710
21711done
21712_ACEOF
21713cat >>$CONFIG_STATUS <<\_ACEOF
21714
21715#
21716# CONFIG_HEADER section.
21717#
21718
21719# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21720# NAME is the cpp macro being defined and VALUE is the value it is being given.
21721#
21722# ac_d sets the value in "#define NAME VALUE" lines.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021723ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21724ac_dB='[ ].*$,\1#\2'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021725ac_dC=' '
21726ac_dD=',;t'
21727# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021728ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021729ac_uB='$,\1#\2define\3'
21730ac_uC=' '
21731ac_uD=',;t'
21732
21733for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21734 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21735 case $ac_file in
21736 - | *:- | *:-:* ) # input from stdin
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021737 cat >$tmp/stdin
21738 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21739 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021740 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021741 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021742 * ) ac_file_in=$ac_file.in ;;
21743 esac
21744
21745 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21746echo "$as_me: creating $ac_file" >&6;}
21747
21748 # First look for the input files in the build tree, otherwise in the
21749 # src tree.
21750 ac_file_inputs=`IFS=:
21751 for f in $ac_file_in; do
21752 case $f in
21753 -) echo $tmp/stdin ;;
21754 [\\/$]*)
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021755 # Absolute (can't be DOS-style, as IFS=:)
21756 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021757echo "$as_me: error: cannot find input file: $f" >&2;}
21758 { (exit 1); exit 1; }; }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021759 # Do quote $f, to prevent DOS paths from being IFS'd.
21760 echo "$f";;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021761 *) # Relative
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021762 if test -f "$f"; then
21763 # Build tree
21764 echo "$f"
21765 elif test -f "$srcdir/$f"; then
21766 # Source tree
21767 echo "$srcdir/$f"
21768 else
21769 # /dev/null tree
21770 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021771echo "$as_me: error: cannot find input file: $f" >&2;}
21772 { (exit 1); exit 1; }; }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021773 fi;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021774 esac
21775 done` || { (exit 1); exit 1; }
21776 # Remove the trailing spaces.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021777 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021778
21779_ACEOF
21780
21781# Transform confdefs.h into two sed scripts, `conftest.defines' and
21782# `conftest.undefs', that substitutes the proper values into
21783# config.h.in to produce config.h. The first handles `#define'
21784# templates, and the second `#undef' templates.
21785# And first: Protect against being on the right side of a sed subst in
21786# config.status. Protect against being in an unquoted here document
21787# in config.status.
21788rm -f conftest.defines conftest.undefs
21789# Using a here document instead of a string reduces the quoting nightmare.
21790# Putting comments in sed scripts is not portable.
21791#
21792# `end' is used to avoid that the second main sed command (meant for
21793# 0-ary CPP macros) applies to n-ary macro definitions.
21794# See the Autoconf documentation for `clear'.
21795cat >confdef2sed.sed <<\_ACEOF
21796s/[\\&,]/\\&/g
21797s,[\\$`],\\&,g
21798t clear
21799: clear
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021800s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021801t end
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021802s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021803: end
21804_ACEOF
21805# If some macros were called several times there might be several times
21806# the same #defines, which is useless. Nevertheless, we may not want to
21807# sort them, since we want the *last* AC-DEFINE to be honored.
21808uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21809sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21810rm -f confdef2sed.sed
21811
21812# This sed command replaces #undef with comments. This is necessary, for
21813# example, in the case of _POSIX_SOURCE, which is predefined and required
21814# on some systems where configure will not decide to define it.
21815cat >>conftest.undefs <<\_ACEOF
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021816s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021817_ACEOF
21818
21819# Break up conftest.defines because some shells have a limit on the size
21820# of here documents, and old seds have small limits too (100 cmds).
21821echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021822echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021823echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21824echo ' :' >>$CONFIG_STATUS
21825rm -f conftest.tail
21826while grep . conftest.defines >/dev/null
21827do
21828 # Write a limited-size here document to $tmp/defines.sed.
21829 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21830 # Speed up: don't consider the non `#define' lines.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021831 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021832 # Work around the forget-to-reset-the-flag bug.
21833 echo 't clr' >>$CONFIG_STATUS
21834 echo ': clr' >>$CONFIG_STATUS
21835 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21836 echo 'CEOF
21837 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21838 rm -f $tmp/in
21839 mv $tmp/out $tmp/in
21840' >>$CONFIG_STATUS
21841 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21842 rm -f conftest.defines
21843 mv conftest.tail conftest.defines
21844done
21845rm -f conftest.defines
21846echo ' fi # grep' >>$CONFIG_STATUS
21847echo >>$CONFIG_STATUS
21848
21849# Break up conftest.undefs because some shells have a limit on the size
21850# of here documents, and old seds have small limits too (100 cmds).
21851echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21852rm -f conftest.tail
21853while grep . conftest.undefs >/dev/null
21854do
21855 # Write a limited-size here document to $tmp/undefs.sed.
21856 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21857 # Speed up: don't consider the non `#undef'
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021858 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021859 # Work around the forget-to-reset-the-flag bug.
21860 echo 't clr' >>$CONFIG_STATUS
21861 echo ': clr' >>$CONFIG_STATUS
21862 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21863 echo 'CEOF
21864 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21865 rm -f $tmp/in
21866 mv $tmp/out $tmp/in
21867' >>$CONFIG_STATUS
21868 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21869 rm -f conftest.undefs
21870 mv conftest.tail conftest.undefs
21871done
21872rm -f conftest.undefs
21873
21874cat >>$CONFIG_STATUS <<\_ACEOF
21875 # Let's still pretend it is `configure' which instantiates (i.e., don't
21876 # use $as_me), people would be surprised to read:
21877 # /* config.h. Generated by config.status. */
21878 if test x"$ac_file" = x-; then
21879 echo "/* Generated by configure. */" >$tmp/config.h
21880 else
21881 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21882 fi
21883 cat $tmp/in >>$tmp/config.h
21884 rm -f $tmp/in
21885 if test x"$ac_file" != x-; then
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021886 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021887 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21888echo "$as_me: $ac_file is unchanged" >&6;}
21889 else
21890 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21891$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021892 X"$ac_file" : 'X\(//\)[^/]' \| \
21893 X"$ac_file" : 'X\(//\)$' \| \
21894 X"$ac_file" : 'X\(/\)' \| \
21895 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021896echo X"$ac_file" |
21897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21898 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21899 /^X\(\/\/\)$/{ s//\1/; q; }
21900 /^X\(\/\).*/{ s//\1/; q; }
21901 s/.*/./; q'`
21902 { if $as_mkdir_p; then
21903 mkdir -p "$ac_dir"
21904 else
21905 as_dir="$ac_dir"
21906 as_dirs=
21907 while test ! -d "$as_dir"; do
21908 as_dirs="$as_dir $as_dirs"
21909 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21910$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021911 X"$as_dir" : 'X\(//\)[^/]' \| \
21912 X"$as_dir" : 'X\(//\)$' \| \
21913 X"$as_dir" : 'X\(/\)' \| \
21914 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021915echo X"$as_dir" |
21916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21917 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21918 /^X\(\/\/\)$/{ s//\1/; q; }
21919 /^X\(\/\).*/{ s//\1/; q; }
21920 s/.*/./; q'`
21921 done
21922 test ! -n "$as_dirs" || mkdir $as_dirs
21923 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21924echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21925 { (exit 1); exit 1; }; }; }
21926
21927 rm -f $ac_file
21928 mv $tmp/config.h $ac_file
21929 fi
21930 else
21931 cat $tmp/config.h
21932 rm -f $tmp/config.h
21933 fi
21934 # Run the commands associated with the file.
21935 case $ac_file in
21936 include/config.h ) # update the timestamp
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021937echo 'timestamp for include/config.h' >"include/stamp-h1"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021938 ;;
21939 esac
21940done
21941_ACEOF
21942cat >>$CONFIG_STATUS <<\_ACEOF
21943
21944#
21945# CONFIG_LINKS section.
21946#
21947
21948for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
21949 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21950 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21951
21952 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
21953echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
21954
21955 if test ! -r $srcdir/$ac_source; then
21956 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
21957echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
21958 { (exit 1); exit 1; }; }
21959 fi
21960 rm -f $ac_dest
21961
21962 # Make relative symlinks.
21963 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
21964$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021965 X"$ac_dest" : 'X\(//\)[^/]' \| \
21966 X"$ac_dest" : 'X\(//\)$' \| \
21967 X"$ac_dest" : 'X\(/\)' \| \
21968 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021969echo X"$ac_dest" |
21970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21971 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21972 /^X\(\/\/\)$/{ s//\1/; q; }
21973 /^X\(\/\).*/{ s//\1/; q; }
21974 s/.*/./; q'`
21975 { if $as_mkdir_p; then
21976 mkdir -p "$ac_dest_dir"
21977 else
21978 as_dir="$ac_dest_dir"
21979 as_dirs=
21980 while test ! -d "$as_dir"; do
21981 as_dirs="$as_dir $as_dirs"
21982 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21983$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021984 X"$as_dir" : 'X\(//\)[^/]' \| \
21985 X"$as_dir" : 'X\(//\)$' \| \
21986 X"$as_dir" : 'X\(/\)' \| \
21987 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021988echo X"$as_dir" |
21989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21990 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21991 /^X\(\/\/\)$/{ s//\1/; q; }
21992 /^X\(\/\).*/{ s//\1/; q; }
21993 s/.*/./; q'`
21994 done
21995 test ! -n "$as_dirs" || mkdir $as_dirs
21996 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
21997echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
21998 { (exit 1); exit 1; }; }; }
21999
22000 ac_builddir=.
22001
22002if test "$ac_dest_dir" != .; then
22003 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22004 # A "../" for each directory in $ac_dir_suffix.
22005 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22006else
22007 ac_dir_suffix= ac_top_builddir=
22008fi
22009
22010case $srcdir in
22011 .) # No --srcdir option. We are building in place.
22012 ac_srcdir=.
22013 if test -z "$ac_top_builddir"; then
22014 ac_top_srcdir=.
22015 else
22016 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22017 fi ;;
22018 [\\/]* | ?:[\\/]* ) # Absolute path.
22019 ac_srcdir=$srcdir$ac_dir_suffix;
22020 ac_top_srcdir=$srcdir ;;
22021 *) # Relative path.
22022 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22023 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22024esac
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022025
22026# Do not use `cd foo && pwd` to compute absolute paths, because
22027# the directories may not exist.
22028case `pwd` in
22029.) ac_abs_builddir="$ac_dest_dir";;
22030*)
22031 case "$ac_dest_dir" in
22032 .) ac_abs_builddir=`pwd`;;
22033 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
22034 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
22035 esac;;
22036esac
22037case $ac_abs_builddir in
22038.) ac_abs_top_builddir=${ac_top_builddir}.;;
22039*)
22040 case ${ac_top_builddir}. in
22041 .) ac_abs_top_builddir=$ac_abs_builddir;;
22042 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22043 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22044 esac;;
22045esac
22046case $ac_abs_builddir in
22047.) ac_abs_srcdir=$ac_srcdir;;
22048*)
22049 case $ac_srcdir in
22050 .) ac_abs_srcdir=$ac_abs_builddir;;
22051 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22052 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22053 esac;;
22054esac
22055case $ac_abs_builddir in
22056.) ac_abs_top_srcdir=$ac_top_srcdir;;
22057*)
22058 case $ac_top_srcdir in
22059 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22060 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22061 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22062 esac;;
22063esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022064
22065
22066 case $srcdir in
22067 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
22068 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
22069 esac
22070
22071 # Try a symlink, then a hard link, then a copy.
22072 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22073 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
22074 cp -p $srcdir/$ac_source $ac_dest ||
22075 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
22076echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
22077 { (exit 1); exit 1; }; }
22078done
22079_ACEOF
22080cat >>$CONFIG_STATUS <<\_ACEOF
22081
22082#
22083# CONFIG_COMMANDS section.
22084#
22085for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22086 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22087 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22088 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22089$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022090 X"$ac_dest" : 'X\(//\)[^/]' \| \
22091 X"$ac_dest" : 'X\(//\)$' \| \
22092 X"$ac_dest" : 'X\(/\)' \| \
22093 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022094echo X"$ac_dest" |
22095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22096 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22097 /^X\(\/\/\)$/{ s//\1/; q; }
22098 /^X\(\/\).*/{ s//\1/; q; }
22099 s/.*/./; q'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022100 { if $as_mkdir_p; then
22101 mkdir -p "$ac_dir"
22102 else
22103 as_dir="$ac_dir"
22104 as_dirs=
22105 while test ! -d "$as_dir"; do
22106 as_dirs="$as_dir $as_dirs"
22107 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22108$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22109 X"$as_dir" : 'X\(//\)[^/]' \| \
22110 X"$as_dir" : 'X\(//\)$' \| \
22111 X"$as_dir" : 'X\(/\)' \| \
22112 . : '\(.\)' 2>/dev/null ||
22113echo X"$as_dir" |
22114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22115 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22116 /^X\(\/\/\)$/{ s//\1/; q; }
22117 /^X\(\/\).*/{ s//\1/; q; }
22118 s/.*/./; q'`
22119 done
22120 test ! -n "$as_dirs" || mkdir $as_dirs
22121 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22122echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22123 { (exit 1); exit 1; }; }; }
22124
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022125 ac_builddir=.
22126
22127if test "$ac_dir" != .; then
22128 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22129 # A "../" for each directory in $ac_dir_suffix.
22130 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22131else
22132 ac_dir_suffix= ac_top_builddir=
22133fi
22134
22135case $srcdir in
22136 .) # No --srcdir option. We are building in place.
22137 ac_srcdir=.
22138 if test -z "$ac_top_builddir"; then
22139 ac_top_srcdir=.
22140 else
22141 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22142 fi ;;
22143 [\\/]* | ?:[\\/]* ) # Absolute path.
22144 ac_srcdir=$srcdir$ac_dir_suffix;
22145 ac_top_srcdir=$srcdir ;;
22146 *) # Relative path.
22147 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22148 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22149esac
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022150
22151# Do not use `cd foo && pwd` to compute absolute paths, because
22152# the directories may not exist.
22153case `pwd` in
22154.) ac_abs_builddir="$ac_dir";;
22155*)
22156 case "$ac_dir" in
22157 .) ac_abs_builddir=`pwd`;;
22158 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22159 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22160 esac;;
22161esac
22162case $ac_abs_builddir in
22163.) ac_abs_top_builddir=${ac_top_builddir}.;;
22164*)
22165 case ${ac_top_builddir}. in
22166 .) ac_abs_top_builddir=$ac_abs_builddir;;
22167 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22168 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22169 esac;;
22170esac
22171case $ac_abs_builddir in
22172.) ac_abs_srcdir=$ac_srcdir;;
22173*)
22174 case $ac_srcdir in
22175 .) ac_abs_srcdir=$ac_abs_builddir;;
22176 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22177 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22178 esac;;
22179esac
22180case $ac_abs_builddir in
22181.) ac_abs_top_srcdir=$ac_top_srcdir;;
22182*)
22183 case $ac_top_srcdir in
22184 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22185 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22186 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22187 esac;;
22188esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022189
22190
22191 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22192echo "$as_me: executing $ac_dest commands" >&6;}
22193 case $ac_dest in
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022194 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22195 # Strip MF so we end up with the name of the file.
22196 mf=`echo "$mf" | sed -e 's/:.*$//'`
22197 # Check whether this is an Automake generated Makefile or not.
22198 # We used to match only the files named `Makefile.in', but
22199 # some people rename them; so instead we look at the file content.
22200 # Grep'ing the first line is not enough: some people post-process
22201 # each Makefile.in and add a new line on top of each file to say so.
22202 # So let's grep whole file.
22203 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22204 dirpart=`(dirname "$mf") 2>/dev/null ||
22205$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022206 X"$mf" : 'X\(//\)[^/]' \| \
22207 X"$mf" : 'X\(//\)$' \| \
22208 X"$mf" : 'X\(/\)' \| \
22209 . : '\(.\)' 2>/dev/null ||
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022210echo X"$mf" |
22211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22212 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22213 /^X\(\/\/\)$/{ s//\1/; q; }
22214 /^X\(\/\).*/{ s//\1/; q; }
22215 s/.*/./; q'`
22216 else
22217 continue
22218 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022219 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22220 # Extract the definition of DEP_FILES from the Makefile without
22221 # running `make'.
22222 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
22223 test -z "$DEPDIR" && continue
22224 # When using ansi2knr, U may be empty or an underscore; expand it
22225 U=`sed -n -e '/^U = / s///p' < "$mf"`
22226 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22227 # We invoke sed twice because it is the simplest approach to
22228 # changing $(DEPDIR) to its actual value in the expansion.
22229 for file in `sed -n -e '
22230 /^DEP_FILES = .*\\\\$/ {
22231 s/^DEP_FILES = //
22232 :loop
22233 s/\\\\$//
22234 p
22235 n
22236 /\\\\$/ b loop
22237 p
22238 }
22239 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
22240 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22241 # Make sure the directory exists.
22242 test -f "$dirpart/$file" && continue
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022243 fdir=`(dirname "$file") 2>/dev/null ||
22244$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022245 X"$file" : 'X\(//\)[^/]' \| \
22246 X"$file" : 'X\(//\)$' \| \
22247 X"$file" : 'X\(/\)' \| \
22248 . : '\(.\)' 2>/dev/null ||
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022249echo X"$file" |
22250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22251 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22252 /^X\(\/\/\)$/{ s//\1/; q; }
22253 /^X\(\/\).*/{ s//\1/; q; }
22254 s/.*/./; q'`
22255 { if $as_mkdir_p; then
22256 mkdir -p $dirpart/$fdir
22257 else
22258 as_dir=$dirpart/$fdir
22259 as_dirs=
22260 while test ! -d "$as_dir"; do
22261 as_dirs="$as_dir $as_dirs"
22262 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22263$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022264 X"$as_dir" : 'X\(//\)[^/]' \| \
22265 X"$as_dir" : 'X\(//\)$' \| \
22266 X"$as_dir" : 'X\(/\)' \| \
22267 . : '\(.\)' 2>/dev/null ||
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022268echo X"$as_dir" |
22269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22270 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22271 /^X\(\/\/\)$/{ s//\1/; q; }
22272 /^X\(\/\).*/{ s//\1/; q; }
22273 s/.*/./; q'`
22274 done
22275 test ! -n "$as_dirs" || mkdir $as_dirs
22276 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22277echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22278 { (exit 1); exit 1; }; }; }
22279
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022280 # echo "creating $dirpart/$file"
22281 echo '# dummy' > "$dirpart/$file"
22282 done
22283done
22284 ;;
22285 esac
22286done
22287_ACEOF
22288
22289cat >>$CONFIG_STATUS <<\_ACEOF
22290
22291{ (exit 0); exit 0; }
22292_ACEOF
22293chmod +x $CONFIG_STATUS
22294ac_clean_files=$ac_clean_files_save
22295
22296
22297# configure is writing to config.log, and then calls config.status.
22298# config.status does its own redirection, appending to config.log.
22299# Unfortunately, on DOS this fails, as config.log is still kept open
22300# by configure, so config.status won't be able to write to it; its
22301# output is simply discarded. So we exec the FD to /dev/null,
22302# effectively closing config.log, so it can be properly (re)opened and
22303# appended to by config.status. When coming back to configure, we
22304# need to make the FD available again.
22305if test "$no_create" != yes; then
22306 ac_cs_success=:
hp.com!davidm01b02dd2003-09-24 21:51:53 +000022307 ac_config_status_args=
22308 test "$silent" = yes &&
22309 ac_config_status_args="$ac_config_status_args --quiet"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022310 exec 5>/dev/null
hp.com!davidm01b02dd2003-09-24 21:51:53 +000022311 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022312 exec 5>>config.log
22313 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22314 # would make configure fail if this is the last instruction.
22315 $ac_cs_success || { (exit 1); exit 1; }
22316fi
22317