blob: 4e483225b9187fef31e61a4bf0694a539bf86b1e [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!davidmb1d369a2003-11-26 18:59:24 +00003# Generated by GNU Autoconf 2.58 for libunwind 0.95.
4#
5# Report bugs to <libunwind@linux.hpl.hp.com>.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00006#
hp.com!davidmc3fa0b62003-11-24 21:37:22 +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
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000024DUALCASE=1; export DUALCASE # for MKS sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000025
26# Support unset when possible.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +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
hp.com!davidmc3fa0b62003-11-24 21:37:22 +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
hp.com!davidmc3fa0b62003-11-24 21:37:22 +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.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +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.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +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'
426PACKAGE_VERSION='0.95'
427PACKAGE_STRING='libunwind 0.95'
428PACKAGE_BUGREPORT='libunwind@linux.hpl.hp.com'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000429
430ac_unique_file="src/backtrace.c"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445# include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450# include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461# include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CCAS CCASFLAGS LIBOBJS REMOTE_ONLY_TRUE REMOTE_ONLY_FALSE ARCH_IA64_TRUE ARCH_IA64_FALSE ARCH_HPPA_TRUE ARCH_HPPA_FALSE ARCH_X86_TRUE ARCH_X86_FALSE OS_LINUX_TRUE OS_LINUX_FALSE OS_HPUX_TRUE OS_HPUX_FALSE arch ARCH LTLIBOBJS'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806done
807
808if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +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\(.*[^/]\)//*[^/][^/]*/*$' \| \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +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!davidmb1d369a2003-11-26 18:59:24 +0000957\`configure' configures libunwind 0.95 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
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000982 [$ac_default_prefix]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
hp.com!davidmc3fa0b62003-11-24 21:37:22 +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
1024 short | recursive ) echo "Configuration of libunwind 0.95:";;
1025 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
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001104case "$ac_dir" in
1105.) ac_abs_builddir=$ac_builddir;;
1106*)
1107 case $ac_builddir in
1108 .) ac_abs_builddir="$ac_dir";;
1109 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
1110 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
1111 esac;;
1112esac
1113case "$ac_dir" in
1114.) ac_abs_top_builddir=${ac_top_builddir}.;;
1115*)
1116 case ${ac_top_builddir}. in
1117 .) ac_abs_top_builddir="$ac_dir";;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
1120 esac;;
1121esac
1122case "$ac_dir" in
1123.) ac_abs_srcdir=$ac_srcdir;;
1124*)
1125 case $ac_srcdir in
1126 .) ac_abs_srcdir="$ac_dir";;
1127 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
1129 esac;;
1130esac
1131case "$ac_dir" in
1132.) ac_abs_top_srcdir=$ac_top_srcdir;;
1133*)
1134 case $ac_top_srcdir in
1135 .) ac_abs_top_srcdir="$ac_dir";;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
1138 esac;;
1139esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001140
1141 cd $ac_dir
1142 # Check for guested configure; otherwise get Cygnus style configure.
1143 if test -f $ac_srcdir/configure.gnu; then
1144 echo
1145 $SHELL $ac_srcdir/configure.gnu --help=recursive
1146 elif test -f $ac_srcdir/configure; then
1147 echo
1148 $SHELL $ac_srcdir/configure --help=recursive
1149 elif test -f $ac_srcdir/configure.ac ||
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001150 test -f $ac_srcdir/configure.in; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001151 echo
1152 $ac_configure --help
1153 else
1154 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1155 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001156 cd "$ac_popdir"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001157 done
1158fi
1159
1160test -n "$ac_init_help" && exit 0
1161if $ac_init_version; then
1162 cat <<\_ACEOF
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001163libunwind configure 0.95
1164generated by GNU Autoconf 2.58
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001165
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001166Copyright (C) 2003 Free Software Foundation, Inc.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001167This configure script is free software; the Free Software Foundation
1168gives unlimited permission to copy, distribute and modify it.
1169_ACEOF
1170 exit 0
1171fi
1172exec 5>config.log
1173cat >&5 <<_ACEOF
1174This file contains any messages produced by compilers while
1175running configure, to aid debugging if configure makes a mistake.
1176
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001177It was created by libunwind $as_me 0.95, which was
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001178generated by GNU Autoconf 2.58. Invocation command line was
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001179
1180 $ $0 $@
1181
1182_ACEOF
1183{
1184cat <<_ASUNAME
1185## --------- ##
1186## Platform. ##
1187## --------- ##
1188
1189hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1190uname -m = `(uname -m) 2>/dev/null || echo unknown`
1191uname -r = `(uname -r) 2>/dev/null || echo unknown`
1192uname -s = `(uname -s) 2>/dev/null || echo unknown`
1193uname -v = `(uname -v) 2>/dev/null || echo unknown`
1194
1195/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1196/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1197
1198/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1199/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1200/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1201hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1202/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1203/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1204/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1205
1206_ASUNAME
1207
1208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1209for as_dir in $PATH
1210do
1211 IFS=$as_save_IFS
1212 test -z "$as_dir" && as_dir=.
1213 echo "PATH: $as_dir"
1214done
1215
1216} >&5
1217
1218cat >&5 <<_ACEOF
1219
1220
1221## ----------- ##
1222## Core tests. ##
1223## ----------- ##
1224
1225_ACEOF
1226
1227
1228# Keep a trace of the command line.
1229# Strip out --no-create and --no-recursion so they do not pile up.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001230# Strip out --silent because we don't want to record it for future runs.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001231# Also quote any args containing shell meta-characters.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001232# Make two passes to allow for proper duplicate-argument suppression.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001233ac_configure_args=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001234ac_configure_args0=
1235ac_configure_args1=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001236ac_sep=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001237ac_must_keep_next=false
1238for ac_pass in 1 2
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001239do
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001240 for ac_arg
1241 do
1242 case $ac_arg in
1243 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1246 continue ;;
1247 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1248 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1249 esac
1250 case $ac_pass in
1251 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1252 2)
1253 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1254 if test $ac_must_keep_next = true; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001255 ac_must_keep_next=false # Got value, back to normal.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001256 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001257 case $ac_arg in
1258 *=* | --config-cache | -C | -disable-* | --disable-* \
1259 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1260 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1261 | -with-* | --with-* | -without-* | --without-* | --x)
1262 case "$ac_configure_args0 " in
1263 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1264 esac
1265 ;;
1266 -* ) ac_must_keep_next=true ;;
1267 esac
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001268 fi
1269 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1270 # Get rid of the leading space.
1271 ac_sep=" "
1272 ;;
1273 esac
1274 done
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001275done
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001276$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1277$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 +00001278
1279# When interrupted or exit'd, cleanup temporary files, and complete
1280# config.log. We remove comments because anyway the quotes in there
1281# would cause problems or look ugly.
1282# WARNING: Be sure not to use single quotes in there, as some shells,
1283# such as our DU 5.0 friend, will then `close' the trap.
1284trap 'exit_status=$?
1285 # Save into config.log some information that might help in debugging.
1286 {
1287 echo
1288
1289 cat <<\_ASBOX
1290## ---------------- ##
1291## Cache variables. ##
1292## ---------------- ##
1293_ASBOX
1294 echo
1295 # The following way of writing the cache mishandles newlines in values,
1296{
1297 (set) 2>&1 |
1298 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1299 *ac_space=\ *)
1300 sed -n \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001301 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001303 ;;
1304 *)
1305 sed -n \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001306 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001307 ;;
1308 esac;
1309}
1310 echo
1311
1312 cat <<\_ASBOX
1313## ----------------- ##
1314## Output variables. ##
1315## ----------------- ##
1316_ASBOX
1317 echo
1318 for ac_var in $ac_subst_vars
1319 do
1320 eval ac_val=$`echo $ac_var`
1321 echo "$ac_var='"'"'$ac_val'"'"'"
1322 done | sort
1323 echo
1324
1325 if test -n "$ac_subst_files"; then
1326 cat <<\_ASBOX
1327## ------------- ##
1328## Output files. ##
1329## ------------- ##
1330_ASBOX
1331 echo
1332 for ac_var in $ac_subst_files
1333 do
1334 eval ac_val=$`echo $ac_var`
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001335 echo "$ac_var='"'"'$ac_val'"'"'"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001336 done | sort
1337 echo
1338 fi
1339
1340 if test -s confdefs.h; then
1341 cat <<\_ASBOX
1342## ----------- ##
1343## confdefs.h. ##
1344## ----------- ##
1345_ASBOX
1346 echo
1347 sed "/^$/d" confdefs.h | sort
1348 echo
1349 fi
1350 test "$ac_signal" != 0 &&
1351 echo "$as_me: caught signal $ac_signal"
1352 echo "$as_me: exit $exit_status"
1353 } >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001354 rm -f core *.core &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001355 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1356 exit $exit_status
1357 ' 0
1358for ac_signal in 1 2 13 15; do
1359 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1360done
1361ac_signal=0
1362
1363# confdefs.h avoids OS command line length limits that DEFS can exceed.
1364rm -rf conftest* confdefs.h
1365# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1366echo >confdefs.h
1367
1368# Predefined preprocessor variables.
1369
1370cat >>confdefs.h <<_ACEOF
1371#define PACKAGE_NAME "$PACKAGE_NAME"
1372_ACEOF
1373
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1377_ACEOF
1378
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_VERSION "$PACKAGE_VERSION"
1382_ACEOF
1383
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_STRING "$PACKAGE_STRING"
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1392_ACEOF
1393
1394
1395# Let the site file select an alternate cache file if it wants to.
1396# Prefer explicitly selected file to automatically selected ones.
1397if test -z "$CONFIG_SITE"; then
1398 if test "x$prefix" != xNONE; then
1399 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1400 else
1401 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1402 fi
1403fi
1404for ac_site_file in $CONFIG_SITE; do
1405 if test -r "$ac_site_file"; then
1406 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1407echo "$as_me: loading site script $ac_site_file" >&6;}
1408 sed 's/^/| /' "$ac_site_file" >&5
1409 . "$ac_site_file"
1410 fi
1411done
1412
1413if test -r "$cache_file"; then
1414 # Some versions of bash will fail to source /dev/null (special
1415 # files actually), so we avoid doing that.
1416 if test -f "$cache_file"; then
1417 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1418echo "$as_me: loading cache $cache_file" >&6;}
1419 case $cache_file in
1420 [\\/]* | ?:[\\/]* ) . $cache_file;;
1421 *) . ./$cache_file;;
1422 esac
1423 fi
1424else
1425 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1426echo "$as_me: creating cache $cache_file" >&6;}
1427 >$cache_file
1428fi
1429
1430# Check that the precious variables saved in the cache have kept the same
1431# value.
1432ac_cache_corrupted=false
1433for ac_var in `(set) 2>&1 |
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001434 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001435 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1436 eval ac_new_set=\$ac_env_${ac_var}_set
1437 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1438 eval ac_new_val="\$ac_env_${ac_var}_value"
1439 case $ac_old_set,$ac_new_set in
1440 set,)
1441 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1442echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1443 ac_cache_corrupted=: ;;
1444 ,set)
1445 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1446echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1447 ac_cache_corrupted=: ;;
1448 ,);;
1449 *)
1450 if test "x$ac_old_val" != "x$ac_new_val"; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001451 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001452echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001453 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001454echo "$as_me: former value: $ac_old_val" >&2;}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001455 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001456echo "$as_me: current value: $ac_new_val" >&2;}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001457 ac_cache_corrupted=:
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001458 fi;;
1459 esac
1460 # Pass precious variables to config.status.
1461 if test "$ac_new_set" = set; then
1462 case $ac_new_val in
1463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1464 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1465 *) ac_arg=$ac_var=$ac_new_val ;;
1466 esac
1467 case " $ac_configure_args " in
1468 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1469 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1470 esac
1471 fi
1472done
1473if $ac_cache_corrupted; then
1474 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1475echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1476 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1477echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1478 { (exit 1); exit 1; }; }
1479fi
1480
1481ac_ext=c
1482ac_cpp='$CPP $CPPFLAGS'
1483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001505
1506
1507
1508
1509
1510
1511
1512
1513
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001514ac_aux_dir=
1515for ac_dir in aux $srcdir/aux; do
1516 if test -f $ac_dir/install-sh; then
1517 ac_aux_dir=$ac_dir
1518 ac_install_sh="$ac_aux_dir/install-sh -c"
1519 break
1520 elif test -f $ac_dir/install.sh; then
1521 ac_aux_dir=$ac_dir
1522 ac_install_sh="$ac_aux_dir/install.sh -c"
1523 break
1524 elif test -f $ac_dir/shtool; then
1525 ac_aux_dir=$ac_dir
1526 ac_install_sh="$ac_aux_dir/shtool install -c"
1527 break
1528 fi
1529done
1530if test -z "$ac_aux_dir"; then
1531 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&5
1532echo "$as_me: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&2;}
1533 { (exit 1); exit 1; }; }
1534fi
1535ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1536ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1537ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1538
1539# Make sure we can run config.sub.
1540$ac_config_sub sun4 >/dev/null 2>&1 ||
1541 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1542echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1543 { (exit 1); exit 1; }; }
1544
1545echo "$as_me:$LINENO: checking build system type" >&5
1546echo $ECHO_N "checking build system type... $ECHO_C" >&6
1547if test "${ac_cv_build+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1549else
1550 ac_cv_build_alias=$build_alias
1551test -z "$ac_cv_build_alias" &&
1552 ac_cv_build_alias=`$ac_config_guess`
1553test -z "$ac_cv_build_alias" &&
1554 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1555echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1556 { (exit 1); exit 1; }; }
1557ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1558 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1559echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1560 { (exit 1); exit 1; }; }
1561
1562fi
1563echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1564echo "${ECHO_T}$ac_cv_build" >&6
1565build=$ac_cv_build
1566build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1567build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1568build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1569
1570
1571echo "$as_me:$LINENO: checking host system type" >&5
1572echo $ECHO_N "checking host system type... $ECHO_C" >&6
1573if test "${ac_cv_host+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1575else
1576 ac_cv_host_alias=$host_alias
1577test -z "$ac_cv_host_alias" &&
1578 ac_cv_host_alias=$ac_cv_build_alias
1579ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1580 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1581echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1582 { (exit 1); exit 1; }; }
1583
1584fi
1585echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1586echo "${ECHO_T}$ac_cv_host" >&6
1587host=$ac_cv_host
1588host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1589host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1590host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1591
1592
1593echo "$as_me:$LINENO: checking target system type" >&5
1594echo $ECHO_N "checking target system type... $ECHO_C" >&6
1595if test "${ac_cv_target+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1597else
1598 ac_cv_target_alias=$target_alias
1599test "x$ac_cv_target_alias" = "x" &&
1600 ac_cv_target_alias=$ac_cv_host_alias
1601ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1602 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1603echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1604 { (exit 1); exit 1; }; }
1605
1606fi
1607echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1608echo "${ECHO_T}$ac_cv_target" >&6
1609target=$ac_cv_target
1610target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1611target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1612target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1613
1614
1615# The aliases save the names the user supplied, while $host etc.
1616# will get canonicalized.
1617test -n "$target_alias" &&
1618 test "$program_prefix$program_suffix$program_transform_name" = \
1619 NONENONEs,x,x, &&
1620 program_prefix=${target_alias}-
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001621am__api_version="1.6"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001622# Find a good install program. We prefer a C program (faster),
1623# so one script is as good as another. But avoid the broken or
1624# incompatible versions:
1625# SysV /etc/install, /usr/sbin/install
1626# SunOS /usr/etc/install
1627# IRIX /sbin/install
1628# AIX /bin/install
1629# AmigaOS /C/install, which installs bootblocks on floppy discs
1630# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1631# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1632# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001633# OS/2's system install, which has a completely different semantic
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001634# ./install, which can be erroneously created by make from ./install.sh.
1635echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1636echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1637if test -z "$INSTALL"; then
1638if test "${ac_cv_path_install+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 # Account for people who put trailing slashes in PATH elements.
1647case $as_dir/ in
1648 ./ | .// | /cC/* | \
1649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001650 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001651 /usr/ucb/* ) ;;
1652 *)
1653 # OSF1 and SCO ODT 3.0 have their own names for install.
1654 # Don't use installbsd from OSF since it installs stuff as root
1655 # by default.
1656 for ac_prog in ginstall scoinst install; do
1657 for ac_exec_ext in '' $ac_executable_extensions; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001658 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1659 if test $ac_prog = install &&
1660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1661 # AIX install. It has an incompatible calling convention.
1662 :
1663 elif test $ac_prog = install &&
1664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1665 # program-specific install script used by HP pwplus--don't use.
1666 :
1667 else
1668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1669 break 3
1670 fi
1671 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001672 done
1673 done
1674 ;;
1675esac
1676done
1677
1678
1679fi
1680 if test "${ac_cv_path_install+set}" = set; then
1681 INSTALL=$ac_cv_path_install
1682 else
1683 # As a last resort, use the slow shell script. We don't cache a
1684 # path for INSTALL within a source directory, because that will
1685 # break other packages using the cache if that directory is
1686 # removed, or if the path is relative.
1687 INSTALL=$ac_install_sh
1688 fi
1689fi
1690echo "$as_me:$LINENO: result: $INSTALL" >&5
1691echo "${ECHO_T}$INSTALL" >&6
1692
1693# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1694# It thinks the first close brace ends the variable substitution.
1695test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1696
1697test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1698
1699test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1700
1701echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1702echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1703# Just in case
1704sleep 1
1705echo timestamp > conftest.file
1706# Do `set' in a subshell so we don't clobber the current shell's
1707# arguments. Must try -L first in case configure is actually a
1708# symlink; some systems play weird games with the mod time of symlinks
1709# (eg FreeBSD returns the mod time of the symlink's containing
1710# directory).
1711if (
1712 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1713 if test "$*" = "X"; then
1714 # -L didn't work.
1715 set X `ls -t $srcdir/configure conftest.file`
1716 fi
1717 rm -f conftest.file
1718 if test "$*" != "X $srcdir/configure conftest.file" \
1719 && test "$*" != "X conftest.file $srcdir/configure"; then
1720
1721 # If neither matched, then we have a broken ls. This can happen
1722 # if, for instance, CONFIG_SHELL is bash and it inherits a
1723 # broken ls alias from the environment. This has actually
1724 # happened. Such a system could not be considered "sane".
1725 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1726alias in your environment" >&5
1727echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1728alias in your environment" >&2;}
1729 { (exit 1); exit 1; }; }
1730 fi
1731
1732 test "$2" = conftest.file
1733 )
1734then
1735 # Ok.
1736 :
1737else
1738 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1739Check your system clock" >&5
1740echo "$as_me: error: newly created file is older than distributed files!
1741Check your system clock" >&2;}
1742 { (exit 1); exit 1; }; }
1743fi
1744echo "$as_me:$LINENO: result: yes" >&5
1745echo "${ECHO_T}yes" >&6
1746test "$program_prefix" != NONE &&
1747 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1748# Use a double $ so make ignores it.
1749test "$program_suffix" != NONE &&
1750 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1751# Double any \ or $. echo might interpret backslashes.
1752# By default was `s,x,x', remove it if useless.
1753cat <<\_ACEOF >conftest.sed
1754s/[\\$]/&&/g;s/;s,x,x,$//
1755_ACEOF
1756program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1757rm conftest.sed
1758
1759
1760# expand $ac_aux_dir to an absolute path
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001761am_aux_dir=`cd $ac_aux_dir && pwd`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001762
1763test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1764# Use eval to expand $SHELL
1765if eval "$MISSING --run true"; then
1766 am_missing_run="$MISSING --run "
1767else
1768 am_missing_run=
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001769 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1770echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001771fi
1772
1773for ac_prog in gawk mawk nawk awk
1774do
1775 # Extract the first word of "$ac_prog", so it can be a program name with args.
1776set dummy $ac_prog; ac_word=$2
1777echo "$as_me:$LINENO: checking for $ac_word" >&5
1778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779if test "${ac_cv_prog_AWK+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781else
1782 if test -n "$AWK"; then
1783 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1784else
1785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786for as_dir in $PATH
1787do
1788 IFS=$as_save_IFS
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 ac_cv_prog_AWK="$ac_prog"
1793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794 break 2
1795 fi
1796done
1797done
1798
1799fi
1800fi
1801AWK=$ac_cv_prog_AWK
1802if test -n "$AWK"; then
1803 echo "$as_me:$LINENO: result: $AWK" >&5
1804echo "${ECHO_T}$AWK" >&6
1805else
1806 echo "$as_me:$LINENO: result: no" >&5
1807echo "${ECHO_T}no" >&6
1808fi
1809
1810 test -n "$AWK" && break
1811done
1812
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001813echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1814echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001815set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001816if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1818else
1819 cat >conftest.make <<\_ACEOF
1820all:
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001821 @echo 'ac_maketemp="$(MAKE)"'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001822_ACEOF
1823# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1824eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1825if test -n "$ac_maketemp"; then
1826 eval ac_cv_prog_make_${ac_make}_set=yes
1827else
1828 eval ac_cv_prog_make_${ac_make}_set=no
1829fi
1830rm -f conftest.make
1831fi
1832if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1833 echo "$as_me:$LINENO: result: yes" >&5
1834echo "${ECHO_T}yes" >&6
1835 SET_MAKE=
1836else
1837 echo "$as_me:$LINENO: result: no" >&5
1838echo "${ECHO_T}no" >&6
1839 SET_MAKE="MAKE=${MAKE-make}"
1840fi
1841
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001842 # test to see if srcdir already configured
1843if test "`cd $srcdir && pwd`" != "`pwd`" &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001844 test -f $srcdir/config.status; then
1845 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1846echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1847 { (exit 1); exit 1; }; }
1848fi
1849
1850# Define the identity of the package.
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001851 PACKAGE=libunwind
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001852 VERSION=0.95
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001853
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001854
1855cat >>confdefs.h <<_ACEOF
1856#define PACKAGE "$PACKAGE"
1857_ACEOF
1858
1859
1860cat >>confdefs.h <<_ACEOF
1861#define VERSION "$VERSION"
1862_ACEOF
1863
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001864# Some tools Automake needs.
1865
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001866ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001867
1868
1869AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1870
1871
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001872AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001873
1874
1875AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1876
1877
1878MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1879
1880
1881AMTAR=${AMTAR-"${am_missing_run}tar"}
1882
1883install_sh=${install_sh-"$am_aux_dir/install-sh"}
1884
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001885# Installed binaries are usually stripped using `strip' when the user
1886# run `make install-strip'. However `strip' might not be the right
1887# tool to use in cross-compilation environments, therefore Automake
1888# will honor the `STRIP' environment variable to overrule this program.
1889if test "$cross_compiling" != no; then
1890 if test -n "$ac_tool_prefix"; then
1891 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1892set dummy ${ac_tool_prefix}strip; ac_word=$2
1893echo "$as_me:$LINENO: checking for $ac_word" >&5
1894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1895if test "${ac_cv_prog_STRIP+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1897else
1898 if test -n "$STRIP"; then
1899 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1900else
1901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902for as_dir in $PATH
1903do
1904 IFS=$as_save_IFS
1905 test -z "$as_dir" && as_dir=.
1906 for ac_exec_ext in '' $ac_executable_extensions; do
1907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910 break 2
1911 fi
1912done
1913done
1914
1915fi
1916fi
1917STRIP=$ac_cv_prog_STRIP
1918if test -n "$STRIP"; then
1919 echo "$as_me:$LINENO: result: $STRIP" >&5
1920echo "${ECHO_T}$STRIP" >&6
1921else
1922 echo "$as_me:$LINENO: result: no" >&5
1923echo "${ECHO_T}no" >&6
1924fi
1925
1926fi
1927if test -z "$ac_cv_prog_STRIP"; then
1928 ac_ct_STRIP=$STRIP
1929 # Extract the first word of "strip", so it can be a program name with args.
1930set dummy strip; ac_word=$2
1931echo "$as_me:$LINENO: checking for $ac_word" >&5
1932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1935else
1936 if test -n "$ac_ct_STRIP"; then
1937 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1938else
1939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940for as_dir in $PATH
1941do
1942 IFS=$as_save_IFS
1943 test -z "$as_dir" && as_dir=.
1944 for ac_exec_ext in '' $ac_executable_extensions; do
1945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1946 ac_cv_prog_ac_ct_STRIP="strip"
1947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1948 break 2
1949 fi
1950done
1951done
1952
1953 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1954fi
1955fi
1956ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1957if test -n "$ac_ct_STRIP"; then
1958 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1959echo "${ECHO_T}$ac_ct_STRIP" >&6
1960else
1961 echo "$as_me:$LINENO: result: no" >&5
1962echo "${ECHO_T}no" >&6
1963fi
1964
1965 STRIP=$ac_ct_STRIP
1966else
1967 STRIP="$ac_cv_prog_STRIP"
1968fi
1969
1970fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001971INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1972
1973# We need awk for the "check" target. The system "awk" is bad on
1974# some platforms.
1975
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001976
1977
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001978echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1979echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1980 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1981if test "${enable_maintainer_mode+set}" = set; then
1982 enableval="$enable_maintainer_mode"
1983 USE_MAINTAINER_MODE=$enableval
1984else
1985 USE_MAINTAINER_MODE=no
1986fi;
1987 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1988echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1989
1990
1991if test $USE_MAINTAINER_MODE = yes; then
1992 MAINTAINER_MODE_TRUE=
1993 MAINTAINER_MODE_FALSE='#'
1994else
1995 MAINTAINER_MODE_TRUE='#'
1996 MAINTAINER_MODE_FALSE=
1997fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001998
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001999 MAINT=$MAINTAINER_MODE_TRUE
2000
2001
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002002# Add the stamp file to the list of files AC keeps track of,
2003# along with our hook.
2004 ac_config_headers="$ac_config_headers include/config.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002005
2006
2007
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002008
2009ac_ext=c
2010ac_cpp='$CPP $CPPFLAGS'
2011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2013ac_compiler_gnu=$ac_cv_c_compiler_gnu
2014if test -n "$ac_tool_prefix"; then
2015 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2016set dummy ${ac_tool_prefix}gcc; ac_word=$2
2017echo "$as_me:$LINENO: checking for $ac_word" >&5
2018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2019if test "${ac_cv_prog_CC+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2021else
2022 if test -n "$CC"; then
2023 ac_cv_prog_CC="$CC" # Let the user override the test.
2024else
2025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026for as_dir in $PATH
2027do
2028 IFS=$as_save_IFS
2029 test -z "$as_dir" && as_dir=.
2030 for ac_exec_ext in '' $ac_executable_extensions; do
2031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2032 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 break 2
2035 fi
2036done
2037done
2038
2039fi
2040fi
2041CC=$ac_cv_prog_CC
2042if test -n "$CC"; then
2043 echo "$as_me:$LINENO: result: $CC" >&5
2044echo "${ECHO_T}$CC" >&6
2045else
2046 echo "$as_me:$LINENO: result: no" >&5
2047echo "${ECHO_T}no" >&6
2048fi
2049
2050fi
2051if test -z "$ac_cv_prog_CC"; then
2052 ac_ct_CC=$CC
2053 # Extract the first word of "gcc", so it can be a program name with args.
2054set dummy gcc; ac_word=$2
2055echo "$as_me:$LINENO: checking for $ac_word" >&5
2056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2057if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2059else
2060 if test -n "$ac_ct_CC"; then
2061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2062else
2063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064for as_dir in $PATH
2065do
2066 IFS=$as_save_IFS
2067 test -z "$as_dir" && as_dir=.
2068 for ac_exec_ext in '' $ac_executable_extensions; do
2069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2070 ac_cv_prog_ac_ct_CC="gcc"
2071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 break 2
2073 fi
2074done
2075done
2076
2077fi
2078fi
2079ac_ct_CC=$ac_cv_prog_ac_ct_CC
2080if test -n "$ac_ct_CC"; then
2081 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2082echo "${ECHO_T}$ac_ct_CC" >&6
2083else
2084 echo "$as_me:$LINENO: result: no" >&5
2085echo "${ECHO_T}no" >&6
2086fi
2087
2088 CC=$ac_ct_CC
2089else
2090 CC="$ac_cv_prog_CC"
2091fi
2092
2093if test -z "$CC"; then
2094 if test -n "$ac_tool_prefix"; then
2095 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2096set dummy ${ac_tool_prefix}cc; ac_word=$2
2097echo "$as_me:$LINENO: checking for $ac_word" >&5
2098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2099if test "${ac_cv_prog_CC+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2101else
2102 if test -n "$CC"; then
2103 ac_cv_prog_CC="$CC" # Let the user override the test.
2104else
2105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106for as_dir in $PATH
2107do
2108 IFS=$as_save_IFS
2109 test -z "$as_dir" && as_dir=.
2110 for ac_exec_ext in '' $ac_executable_extensions; do
2111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2112 ac_cv_prog_CC="${ac_tool_prefix}cc"
2113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114 break 2
2115 fi
2116done
2117done
2118
2119fi
2120fi
2121CC=$ac_cv_prog_CC
2122if test -n "$CC"; then
2123 echo "$as_me:$LINENO: result: $CC" >&5
2124echo "${ECHO_T}$CC" >&6
2125else
2126 echo "$as_me:$LINENO: result: no" >&5
2127echo "${ECHO_T}no" >&6
2128fi
2129
2130fi
2131if test -z "$ac_cv_prog_CC"; then
2132 ac_ct_CC=$CC
2133 # Extract the first word of "cc", so it can be a program name with args.
2134set dummy cc; ac_word=$2
2135echo "$as_me:$LINENO: checking for $ac_word" >&5
2136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2137if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2139else
2140 if test -n "$ac_ct_CC"; then
2141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2142else
2143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144for as_dir in $PATH
2145do
2146 IFS=$as_save_IFS
2147 test -z "$as_dir" && as_dir=.
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2150 ac_cv_prog_ac_ct_CC="cc"
2151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152 break 2
2153 fi
2154done
2155done
2156
2157fi
2158fi
2159ac_ct_CC=$ac_cv_prog_ac_ct_CC
2160if test -n "$ac_ct_CC"; then
2161 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2162echo "${ECHO_T}$ac_ct_CC" >&6
2163else
2164 echo "$as_me:$LINENO: result: no" >&5
2165echo "${ECHO_T}no" >&6
2166fi
2167
2168 CC=$ac_ct_CC
2169else
2170 CC="$ac_cv_prog_CC"
2171fi
2172
2173fi
2174if test -z "$CC"; then
2175 # Extract the first word of "cc", so it can be a program name with args.
2176set dummy cc; ac_word=$2
2177echo "$as_me:$LINENO: checking for $ac_word" >&5
2178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2179if test "${ac_cv_prog_CC+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181else
2182 if test -n "$CC"; then
2183 ac_cv_prog_CC="$CC" # Let the user override the test.
2184else
2185 ac_prog_rejected=no
2186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187for as_dir in $PATH
2188do
2189 IFS=$as_save_IFS
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2194 ac_prog_rejected=yes
2195 continue
2196 fi
2197 ac_cv_prog_CC="cc"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 break 2
2200 fi
2201done
2202done
2203
2204if test $ac_prog_rejected = yes; then
2205 # We found a bogon in the path, so make sure we never use it.
2206 set dummy $ac_cv_prog_CC
2207 shift
2208 if test $# != 0; then
2209 # We chose a different compiler from the bogus one.
2210 # However, it has the same basename, so the bogon will be chosen
2211 # first if we set CC to just the basename; use the full file name.
2212 shift
2213 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2214 fi
2215fi
2216fi
2217fi
2218CC=$ac_cv_prog_CC
2219if test -n "$CC"; then
2220 echo "$as_me:$LINENO: result: $CC" >&5
2221echo "${ECHO_T}$CC" >&6
2222else
2223 echo "$as_me:$LINENO: result: no" >&5
2224echo "${ECHO_T}no" >&6
2225fi
2226
2227fi
2228if test -z "$CC"; then
2229 if test -n "$ac_tool_prefix"; then
2230 for ac_prog in cl
2231 do
2232 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2233set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2234echo "$as_me:$LINENO: checking for $ac_word" >&5
2235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2236if test "${ac_cv_prog_CC+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2238else
2239 if test -n "$CC"; then
2240 ac_cv_prog_CC="$CC" # Let the user override the test.
2241else
2242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243for as_dir in $PATH
2244do
2245 IFS=$as_save_IFS
2246 test -z "$as_dir" && as_dir=.
2247 for ac_exec_ext in '' $ac_executable_extensions; do
2248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2249 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2251 break 2
2252 fi
2253done
2254done
2255
2256fi
2257fi
2258CC=$ac_cv_prog_CC
2259if test -n "$CC"; then
2260 echo "$as_me:$LINENO: result: $CC" >&5
2261echo "${ECHO_T}$CC" >&6
2262else
2263 echo "$as_me:$LINENO: result: no" >&5
2264echo "${ECHO_T}no" >&6
2265fi
2266
2267 test -n "$CC" && break
2268 done
2269fi
2270if test -z "$CC"; then
2271 ac_ct_CC=$CC
2272 for ac_prog in cl
2273do
2274 # Extract the first word of "$ac_prog", so it can be a program name with args.
2275set dummy $ac_prog; ac_word=$2
2276echo "$as_me:$LINENO: checking for $ac_word" >&5
2277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2278if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280else
2281 if test -n "$ac_ct_CC"; then
2282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2283else
2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285for as_dir in $PATH
2286do
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2291 ac_cv_prog_ac_ct_CC="$ac_prog"
2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 break 2
2294 fi
2295done
2296done
2297
2298fi
2299fi
2300ac_ct_CC=$ac_cv_prog_ac_ct_CC
2301if test -n "$ac_ct_CC"; then
2302 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2303echo "${ECHO_T}$ac_ct_CC" >&6
2304else
2305 echo "$as_me:$LINENO: result: no" >&5
2306echo "${ECHO_T}no" >&6
2307fi
2308
2309 test -n "$ac_ct_CC" && break
2310done
2311
2312 CC=$ac_ct_CC
2313fi
2314
2315fi
2316
2317
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002318test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2319See \`config.log' for more details." >&5
2320echo "$as_me: error: no acceptable C compiler found in \$PATH
2321See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002322 { (exit 1); exit 1; }; }
2323
2324# Provide some information about the compiler.
2325echo "$as_me:$LINENO:" \
2326 "checking for C compiler version" >&5
2327ac_compiler=`set X $ac_compile; echo $2`
2328{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2329 (eval $ac_compiler --version </dev/null >&5) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }
2333{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2334 (eval $ac_compiler -v </dev/null >&5) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }
2338{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2339 (eval $ac_compiler -V </dev/null >&5) 2>&5
2340 ac_status=$?
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }
2343
2344cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002345/* confdefs.h. */
2346_ACEOF
2347cat confdefs.h >>conftest.$ac_ext
2348cat >>conftest.$ac_ext <<_ACEOF
2349/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002350
2351int
2352main ()
2353{
2354
2355 ;
2356 return 0;
2357}
2358_ACEOF
2359ac_clean_files_save=$ac_clean_files
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002360ac_clean_files="$ac_clean_files a.out a.exe b.out"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002361# Try to create an executable without -o first, disregard a.out.
2362# It will help us diagnose broken compilers, and finding out an intuition
2363# of exeext.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002364echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2365echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002366ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2367if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2368 (eval $ac_link_default) 2>&5
2369 ac_status=$?
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }; then
2372 # Find the output, starting from the most likely. This scheme is
2373# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2374# resort.
2375
2376# Be careful to initialize this variable, since it used to be cached.
2377# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2378ac_cv_exeext=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002379# b.out is created by i960 compilers.
2380for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2381do
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002382 test -f "$ac_file" || continue
2383 case $ac_file in
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002385 ;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002386 conftest.$ac_ext )
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002387 # This is the source file.
2388 ;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002389 [ab].out )
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002390 # We found the default executable, but exeext='' is most
2391 # certainly right.
2392 break;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002393 *.* )
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002394 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2395 # FIXME: I believe we export ac_cv_exeext for Libtool,
2396 # but it would be cool to find out if it's true. Does anybody
2397 # maintain Libtool? --akim.
2398 export ac_cv_exeext
2399 break;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002400 * )
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002401 break;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002402 esac
2403done
2404else
2405 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002406sed 's/^/| /' conftest.$ac_ext >&5
2407
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002408{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002409See \`config.log' for more details." >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002410echo "$as_me: error: C compiler cannot create executables
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002411See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002412 { (exit 77); exit 77; }; }
2413fi
2414
2415ac_exeext=$ac_cv_exeext
2416echo "$as_me:$LINENO: result: $ac_file" >&5
2417echo "${ECHO_T}$ac_file" >&6
2418
2419# Check the compiler produces executables we can run. If not, either
2420# the compiler is broken, or we cross compile.
2421echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2422echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2423# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2424# If not cross compiling, check that we can run a simple program.
2425if test "$cross_compiling" != yes; then
2426 if { ac_try='./$ac_file'
2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 (eval $ac_try) 2>&5
2429 ac_status=$?
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; }; then
2432 cross_compiling=no
2433 else
2434 if test "$cross_compiling" = maybe; then
2435 cross_compiling=yes
2436 else
2437 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002438If you meant to cross compile, use \`--host'.
2439See \`config.log' for more details." >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002440echo "$as_me: 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." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002443 { (exit 1); exit 1; }; }
2444 fi
2445 fi
2446fi
2447echo "$as_me:$LINENO: result: yes" >&5
2448echo "${ECHO_T}yes" >&6
2449
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002450rm -f a.out a.exe conftest$ac_cv_exeext b.out
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002451ac_clean_files=$ac_clean_files_save
2452# Check the compiler produces executables we can run. If not, either
2453# the compiler is broken, or we cross compile.
2454echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2455echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2456echo "$as_me:$LINENO: result: $cross_compiling" >&5
2457echo "${ECHO_T}$cross_compiling" >&6
2458
2459echo "$as_me:$LINENO: checking for suffix of executables" >&5
2460echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2462 (eval $ac_link) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; then
2466 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2467# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2468# work properly (i.e., refer to `conftest.exe'), while it won't with
2469# `rm'.
2470for ac_file in conftest.exe conftest conftest.*; do
2471 test -f "$ac_file" || continue
2472 case $ac_file in
2473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2474 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002475 export ac_cv_exeext
2476 break;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002477 * ) break;;
2478 esac
2479done
2480else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002481 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2482See \`config.log' for more details." >&5
2483echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2484See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002485 { (exit 1); exit 1; }; }
2486fi
2487
2488rm -f conftest$ac_cv_exeext
2489echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2490echo "${ECHO_T}$ac_cv_exeext" >&6
2491
2492rm -f conftest.$ac_ext
2493EXEEXT=$ac_cv_exeext
2494ac_exeext=$EXEEXT
2495echo "$as_me:$LINENO: checking for suffix of object files" >&5
2496echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2497if test "${ac_cv_objext+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2499else
2500 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002501/* confdefs.h. */
2502_ACEOF
2503cat confdefs.h >>conftest.$ac_ext
2504cat >>conftest.$ac_ext <<_ACEOF
2505/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002506
2507int
2508main ()
2509{
2510
2511 ;
2512 return 0;
2513}
2514_ACEOF
2515rm -f conftest.o conftest.obj
2516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2517 (eval $ac_compile) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; then
2521 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2522 case $ac_file in
2523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2524 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2525 break;;
2526 esac
2527done
2528else
2529 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002530sed 's/^/| /' conftest.$ac_ext >&5
2531
2532{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2533See \`config.log' for more details." >&5
2534echo "$as_me: error: cannot compute suffix of object files: cannot compile
2535See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002536 { (exit 1); exit 1; }; }
2537fi
2538
2539rm -f conftest.$ac_cv_objext conftest.$ac_ext
2540fi
2541echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2542echo "${ECHO_T}$ac_cv_objext" >&6
2543OBJEXT=$ac_cv_objext
2544ac_objext=$OBJEXT
2545echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2546echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2547if test "${ac_cv_c_compiler_gnu+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2549else
2550 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002551/* confdefs.h. */
2552_ACEOF
2553cat confdefs.h >>conftest.$ac_ext
2554cat >>conftest.$ac_ext <<_ACEOF
2555/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002556
2557int
2558main ()
2559{
2560#ifndef __GNUC__
2561 choke me
2562#endif
2563
2564 ;
2565 return 0;
2566}
2567_ACEOF
2568rm -f conftest.$ac_objext
2569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002570 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002571 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002572 grep -v '^ *+' conftest.er1 >conftest.err
2573 rm -f conftest.er1
2574 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002577 { ac_try='test -z "$ac_c_werror_flag"
2578 || test ! -s conftest.err'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 (eval $ac_try) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; } &&
2584 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 (eval $ac_try) 2>&5
2587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2590 ac_compiler_gnu=yes
2591else
2592 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002593sed 's/^/| /' conftest.$ac_ext >&5
2594
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002595ac_compiler_gnu=no
2596fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002598ac_cv_c_compiler_gnu=$ac_compiler_gnu
2599
2600fi
2601echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2602echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2603GCC=`test $ac_compiler_gnu = yes && echo yes`
2604ac_test_CFLAGS=${CFLAGS+set}
2605ac_save_CFLAGS=$CFLAGS
2606CFLAGS="-g"
2607echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2608echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2609if test "${ac_cv_prog_cc_g+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611else
2612 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002613/* confdefs.h. */
2614_ACEOF
2615cat confdefs.h >>conftest.$ac_ext
2616cat >>conftest.$ac_ext <<_ACEOF
2617/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002618
2619int
2620main ()
2621{
2622
2623 ;
2624 return 0;
2625}
2626_ACEOF
2627rm -f conftest.$ac_objext
2628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002629 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002630 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002631 grep -v '^ *+' conftest.er1 >conftest.err
2632 rm -f conftest.er1
2633 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002636 { ac_try='test -z "$ac_c_werror_flag"
2637 || test ! -s conftest.err'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; } &&
2643 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 ac_cv_prog_cc_g=yes
2650else
2651 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002652sed 's/^/| /' conftest.$ac_ext >&5
2653
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002654ac_cv_prog_cc_g=no
2655fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002657fi
2658echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2659echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2660if test "$ac_test_CFLAGS" = set; then
2661 CFLAGS=$ac_save_CFLAGS
2662elif test $ac_cv_prog_cc_g = yes; then
2663 if test "$GCC" = yes; then
2664 CFLAGS="-g -O2"
2665 else
2666 CFLAGS="-g"
2667 fi
2668else
2669 if test "$GCC" = yes; then
2670 CFLAGS="-O2"
2671 else
2672 CFLAGS=
2673 fi
2674fi
2675echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2676echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2677if test "${ac_cv_prog_cc_stdc+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679else
2680 ac_cv_prog_cc_stdc=no
2681ac_save_CC=$CC
2682cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002683/* confdefs.h. */
2684_ACEOF
2685cat confdefs.h >>conftest.$ac_ext
2686cat >>conftest.$ac_ext <<_ACEOF
2687/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002688#include <stdarg.h>
2689#include <stdio.h>
2690#include <sys/types.h>
2691#include <sys/stat.h>
2692/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2693struct buf { int x; };
2694FILE * (*rcsopen) (struct buf *, struct stat *, int);
2695static char *e (p, i)
2696 char **p;
2697 int i;
2698{
2699 return p[i];
2700}
2701static char *f (char * (*g) (char **, int), char **p, ...)
2702{
2703 char *s;
2704 va_list v;
2705 va_start (v,p);
2706 s = g (p, va_arg (v,int));
2707 va_end (v);
2708 return s;
2709}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002710
2711/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2712 function prototypes and stuff, but not '\xHH' hex character constants.
2713 These don't provoke an error unfortunately, instead are silently treated
2714 as 'x'. The following induces an error, until -std1 is added to get
2715 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2716 array size at least. It's necessary to write '\x00'==0 to get something
2717 that's true only with -std1. */
2718int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2719
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002720int test (int i, double x);
2721struct s1 {int (*f) (int a);};
2722struct s2 {int (*f) (double a);};
2723int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2724int argc;
2725char **argv;
2726int
2727main ()
2728{
2729return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2730 ;
2731 return 0;
2732}
2733_ACEOF
2734# Don't try gcc -ansi; that turns off useful extensions and
2735# breaks some systems' header files.
2736# AIX -qlanglvl=ansi
2737# Ultrix and OSF/1 -std1
2738# HP-UX 10.20 and later -Ae
2739# HP-UX older versions -Aa -D_HPUX_SOURCE
2740# SVR4 -Xc -D__EXTENSIONS__
2741for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2742do
2743 CC="$ac_save_CC $ac_arg"
2744 rm -f conftest.$ac_objext
2745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002746 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002747 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002748 grep -v '^ *+' conftest.er1 >conftest.err
2749 rm -f conftest.er1
2750 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002753 { ac_try='test -z "$ac_c_werror_flag"
2754 || 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
hp.com!davidmc3fa0b62003-11-24 21:37:22 +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
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002801 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002802 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +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); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002808 { ac_try='test -z "$ac_c_werror_flag"
2809 || test ! -s conftest.err'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 (eval $ac_try) 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; } &&
2815 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 (eval $ac_try) 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; }; then
2821 for ac_declaration in \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002822 '' \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002823 'extern "C" void std::exit (int) throw (); using std::exit;' \
2824 'extern "C" void std::exit (int); using std::exit;' \
2825 'extern "C" void exit (int) throw ();' \
2826 'extern "C" void exit (int);' \
2827 'void exit (int);'
2828do
2829 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002830/* confdefs.h. */
2831_ACEOF
2832cat confdefs.h >>conftest.$ac_ext
2833cat >>conftest.$ac_ext <<_ACEOF
2834/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002835$ac_declaration
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002836#include <stdlib.h>
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002837int
2838main ()
2839{
2840exit (42);
2841 ;
2842 return 0;
2843}
2844_ACEOF
2845rm -f conftest.$ac_objext
2846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002847 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002848 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002849 grep -v '^ *+' conftest.er1 >conftest.err
2850 rm -f conftest.er1
2851 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002854 { ac_try='test -z "$ac_c_werror_flag"
2855 || test ! -s conftest.err'
2856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 (eval $ac_try) 2>&5
2858 ac_status=$?
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }; } &&
2861 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 (eval $ac_try) 2>&5
2864 ac_status=$?
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; }; then
2867 :
2868else
2869 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002870sed 's/^/| /' conftest.$ac_ext >&5
2871
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002872continue
2873fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002875 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002876/* confdefs.h. */
2877_ACEOF
2878cat confdefs.h >>conftest.$ac_ext
2879cat >>conftest.$ac_ext <<_ACEOF
2880/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002881$ac_declaration
2882int
2883main ()
2884{
2885exit (42);
2886 ;
2887 return 0;
2888}
2889_ACEOF
2890rm -f conftest.$ac_objext
2891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002892 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002893 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002899 { ac_try='test -z "$ac_c_werror_flag"
2900 || test ! -s conftest.err'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; } &&
2906 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 break
2913else
2914 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002915sed 's/^/| /' conftest.$ac_ext >&5
2916
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002917fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002919done
2920rm -f conftest*
2921if test -n "$ac_declaration"; then
2922 echo '#ifdef __cplusplus' >>confdefs.h
2923 echo $ac_declaration >>confdefs.h
2924 echo '#endif' >>confdefs.h
2925fi
2926
2927else
2928 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002929sed 's/^/| /' conftest.$ac_ext >&5
2930
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002931fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002933ac_ext=c
2934ac_cpp='$CPP $CPPFLAGS'
2935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937ac_compiler_gnu=$ac_cv_c_compiler_gnu
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002938rm -f .deps 2>/dev/null
2939mkdir .deps 2>/dev/null
2940if test -d .deps; then
2941 DEPDIR=.deps
2942else
2943 # MS-DOS does not allow filenames that begin with a dot.
2944 DEPDIR=_deps
2945fi
2946rmdir .deps 2>/dev/null
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002947
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002948
2949 ac_config_commands="$ac_config_commands depfiles"
2950
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002951
2952am_make=${MAKE-make}
2953cat > confinc << 'END'
2954doit:
2955 @echo done
2956END
2957# If we don't find an include directive, just comment out the code.
2958echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2959echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002960am__include="#"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002961am__quote=
2962_am_result=none
2963# First try GNU make style include.
2964echo "include confinc" > confmf
2965# We grep out `Entering directory' and `Leaving directory'
2966# messages which can occur if `w' ends up in MAKEFLAGS.
2967# In particular we don't look at `^make:' because GNU make might
2968# be invoked under some other name (usually "gmake"), in which
2969# case it prints its new name instead of `make'.
2970if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2971 am__include=include
2972 am__quote=
2973 _am_result=GNU
2974fi
2975# Now try BSD make style include.
2976if test "$am__include" = "#"; then
2977 echo '.include "confinc"' > confmf
2978 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2979 am__include=.include
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002980 am__quote="\""
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002981 _am_result=BSD
2982 fi
2983fi
2984
2985
2986echo "$as_me:$LINENO: result: $_am_result" >&5
2987echo "${ECHO_T}$_am_result" >&6
2988rm -f confinc confmf
2989
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002990# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2991if test "${enable_dependency_tracking+set}" = set; then
2992 enableval="$enable_dependency_tracking"
2993
2994fi;
2995if test "x$enable_dependency_tracking" != xno; then
2996 am_depcomp="$ac_aux_dir/depcomp"
2997 AMDEPBACKSLASH='\'
2998fi
2999
3000
3001if test "x$enable_dependency_tracking" != xno; then
3002 AMDEP_TRUE=
3003 AMDEP_FALSE='#'
3004else
3005 AMDEP_TRUE='#'
3006 AMDEP_FALSE=
3007fi
3008
3009
3010
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003011
3012depcc="$CC" am_compiler_list=
3013
3014echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3015echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3016if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3018else
3019 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3020 # We make a subdir and do the tests there. Otherwise we can end up
3021 # making bogus files that we don't know about and never remove. For
3022 # instance it was reported that on HP-UX the gcc test will end up
3023 # making a dummy file named `D' -- because `-MD' means `put the output
3024 # in D'.
3025 mkdir conftest.dir
3026 # Copy depcomp to subdir because otherwise we won't find it if we're
3027 # using a relative directory.
3028 cp "$am_depcomp" conftest.dir
3029 cd conftest.dir
3030
3031 am_cv_CC_dependencies_compiler_type=none
3032 if test "$am_compiler_list" = ""; then
3033 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3034 fi
3035 for depmode in $am_compiler_list; do
3036 # We need to recreate these files for each test, as the compiler may
3037 # overwrite some of them when testing with obscure command lines.
3038 # This happens at least with the AIX C compiler.
3039 echo '#include "conftest.h"' > conftest.c
3040 echo 'int i;' > conftest.h
3041 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3042
3043 case $depmode in
3044 nosideeffect)
3045 # after this tag, mechanisms are not by side-effect, so they'll
3046 # only be used when explicitly requested
3047 if test "x$enable_dependency_tracking" = xyes; then
3048 continue
3049 else
3050 break
3051 fi
3052 ;;
3053 none) break ;;
3054 esac
3055 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3056 # mode. It turns out that the SunPro C++ compiler does not properly
3057 # handle `-M -o', and we need to detect this.
3058 if depmode=$depmode \
3059 source=conftest.c object=conftest.o \
3060 depfile=conftest.Po tmpdepfile=conftest.TPo \
3061 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3062 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3063 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3064 am_cv_CC_dependencies_compiler_type=$depmode
3065 break
3066 fi
3067 done
3068
3069 cd ..
3070 rm -rf conftest.dir
3071else
3072 am_cv_CC_dependencies_compiler_type=none
3073fi
3074
3075fi
3076echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3077echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00003078CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003079
3080
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003081ac_ext=cc
3082ac_cpp='$CXXCPP $CPPFLAGS'
3083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3086if test -n "$ac_tool_prefix"; then
3087 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3088 do
3089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3090set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3091echo "$as_me:$LINENO: checking for $ac_word" >&5
3092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3093if test "${ac_cv_prog_CXX+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3095else
3096 if test -n "$CXX"; then
3097 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3098else
3099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100for as_dir in $PATH
3101do
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 break 2
3109 fi
3110done
3111done
3112
3113fi
3114fi
3115CXX=$ac_cv_prog_CXX
3116if test -n "$CXX"; then
3117 echo "$as_me:$LINENO: result: $CXX" >&5
3118echo "${ECHO_T}$CXX" >&6
3119else
3120 echo "$as_me:$LINENO: result: no" >&5
3121echo "${ECHO_T}no" >&6
3122fi
3123
3124 test -n "$CXX" && break
3125 done
3126fi
3127if test -z "$CXX"; then
3128 ac_ct_CXX=$CXX
3129 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3130do
3131 # Extract the first word of "$ac_prog", so it can be a program name with args.
3132set dummy $ac_prog; ac_word=$2
3133echo "$as_me:$LINENO: checking for $ac_word" >&5
3134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3135if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3137else
3138 if test -n "$ac_ct_CXX"; then
3139 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3140else
3141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142for as_dir in $PATH
3143do
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148 ac_cv_prog_ac_ct_CXX="$ac_prog"
3149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3151 fi
3152done
3153done
3154
3155fi
3156fi
3157ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3158if test -n "$ac_ct_CXX"; then
3159 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3160echo "${ECHO_T}$ac_ct_CXX" >&6
3161else
3162 echo "$as_me:$LINENO: result: no" >&5
3163echo "${ECHO_T}no" >&6
3164fi
3165
3166 test -n "$ac_ct_CXX" && break
3167done
3168test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3169
3170 CXX=$ac_ct_CXX
3171fi
3172
3173
3174# Provide some information about the compiler.
3175echo "$as_me:$LINENO:" \
3176 "checking for C++ compiler version" >&5
3177ac_compiler=`set X $ac_compile; echo $2`
3178{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3179 (eval $ac_compiler --version </dev/null >&5) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }
3183{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3184 (eval $ac_compiler -v </dev/null >&5) 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }
3188{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3189 (eval $ac_compiler -V </dev/null >&5) 2>&5
3190 ac_status=$?
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }
3193
3194echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3195echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3196if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3198else
3199 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003200/* confdefs.h. */
3201_ACEOF
3202cat confdefs.h >>conftest.$ac_ext
3203cat >>conftest.$ac_ext <<_ACEOF
3204/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003205
3206int
3207main ()
3208{
3209#ifndef __GNUC__
3210 choke me
3211#endif
3212
3213 ;
3214 return 0;
3215}
3216_ACEOF
3217rm -f conftest.$ac_objext
3218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003219 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003220 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003221 grep -v '^ *+' conftest.er1 >conftest.err
3222 rm -f conftest.er1
3223 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003226 { ac_try='test -z "$ac_cxx_werror_flag"
3227 || test ! -s conftest.err'
3228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229 (eval $ac_try) 2>&5
3230 ac_status=$?
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); }; } &&
3233 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235 (eval $ac_try) 2>&5
3236 ac_status=$?
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; }; then
3239 ac_compiler_gnu=yes
3240else
3241 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003242sed 's/^/| /' conftest.$ac_ext >&5
3243
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003244ac_compiler_gnu=no
3245fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003247ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3248
3249fi
3250echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3251echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3252GXX=`test $ac_compiler_gnu = yes && echo yes`
3253ac_test_CXXFLAGS=${CXXFLAGS+set}
3254ac_save_CXXFLAGS=$CXXFLAGS
3255CXXFLAGS="-g"
3256echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3257echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3258if test "${ac_cv_prog_cxx_g+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3260else
3261 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003262/* confdefs.h. */
3263_ACEOF
3264cat confdefs.h >>conftest.$ac_ext
3265cat >>conftest.$ac_ext <<_ACEOF
3266/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003267
3268int
3269main ()
3270{
3271
3272 ;
3273 return 0;
3274}
3275_ACEOF
3276rm -f conftest.$ac_objext
3277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003278 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003279 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003280 grep -v '^ *+' conftest.er1 >conftest.err
3281 rm -f conftest.er1
3282 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003285 { ac_try='test -z "$ac_cxx_werror_flag"
3286 || test ! -s conftest.err'
3287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288 (eval $ac_try) 2>&5
3289 ac_status=$?
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; } &&
3292 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294 (eval $ac_try) 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; }; then
3298 ac_cv_prog_cxx_g=yes
3299else
3300 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003301sed 's/^/| /' conftest.$ac_ext >&5
3302
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003303ac_cv_prog_cxx_g=no
3304fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003306fi
3307echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3308echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3309if test "$ac_test_CXXFLAGS" = set; then
3310 CXXFLAGS=$ac_save_CXXFLAGS
3311elif test $ac_cv_prog_cxx_g = yes; then
3312 if test "$GXX" = yes; then
3313 CXXFLAGS="-g -O2"
3314 else
3315 CXXFLAGS="-g"
3316 fi
3317else
3318 if test "$GXX" = yes; then
3319 CXXFLAGS="-O2"
3320 else
3321 CXXFLAGS=
3322 fi
3323fi
3324for ac_declaration in \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003325 '' \
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003326 'extern "C" void std::exit (int) throw (); using std::exit;' \
3327 'extern "C" void std::exit (int); using std::exit;' \
3328 'extern "C" void exit (int) throw ();' \
3329 'extern "C" void exit (int);' \
3330 'void exit (int);'
3331do
3332 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003333/* confdefs.h. */
3334_ACEOF
3335cat confdefs.h >>conftest.$ac_ext
3336cat >>conftest.$ac_ext <<_ACEOF
3337/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003338$ac_declaration
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003339#include <stdlib.h>
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003340int
3341main ()
3342{
3343exit (42);
3344 ;
3345 return 0;
3346}
3347_ACEOF
3348rm -f conftest.$ac_objext
3349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003350 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003351 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003352 grep -v '^ *+' conftest.er1 >conftest.err
3353 rm -f conftest.er1
3354 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003357 { ac_try='test -z "$ac_cxx_werror_flag"
3358 || test ! -s conftest.err'
3359 { (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); }; } &&
3364 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366 (eval $ac_try) 2>&5
3367 ac_status=$?
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; }; then
3370 :
3371else
3372 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003373sed 's/^/| /' conftest.$ac_ext >&5
3374
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003375continue
3376fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003378 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003379/* confdefs.h. */
3380_ACEOF
3381cat confdefs.h >>conftest.$ac_ext
3382cat >>conftest.$ac_ext <<_ACEOF
3383/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003384$ac_declaration
3385int
3386main ()
3387{
3388exit (42);
3389 ;
3390 return 0;
3391}
3392_ACEOF
3393rm -f conftest.$ac_objext
3394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003395 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003396 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003397 grep -v '^ *+' conftest.er1 >conftest.err
3398 rm -f conftest.er1
3399 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003402 { ac_try='test -z "$ac_cxx_werror_flag"
3403 || test ! -s conftest.err'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 (eval $ac_try) 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; } &&
3409 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 (eval $ac_try) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
3415 break
3416else
3417 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003418sed 's/^/| /' conftest.$ac_ext >&5
3419
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003420fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003422done
3423rm -f conftest*
3424if test -n "$ac_declaration"; then
3425 echo '#ifdef __cplusplus' >>confdefs.h
3426 echo $ac_declaration >>confdefs.h
3427 echo '#endif' >>confdefs.h
3428fi
3429
3430ac_ext=c
3431ac_cpp='$CPP $CPPFLAGS'
3432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435
3436depcc="$CXX" am_compiler_list=
3437
3438echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3439echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3440if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442else
3443 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3444 # We make a subdir and do the tests there. Otherwise we can end up
3445 # making bogus files that we don't know about and never remove. For
3446 # instance it was reported that on HP-UX the gcc test will end up
3447 # making a dummy file named `D' -- because `-MD' means `put the output
3448 # in D'.
3449 mkdir conftest.dir
3450 # Copy depcomp to subdir because otherwise we won't find it if we're
3451 # using a relative directory.
3452 cp "$am_depcomp" conftest.dir
3453 cd conftest.dir
3454
3455 am_cv_CXX_dependencies_compiler_type=none
3456 if test "$am_compiler_list" = ""; then
3457 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3458 fi
3459 for depmode in $am_compiler_list; do
3460 # We need to recreate these files for each test, as the compiler may
3461 # overwrite some of them when testing with obscure command lines.
3462 # This happens at least with the AIX C compiler.
3463 echo '#include "conftest.h"' > conftest.c
3464 echo 'int i;' > conftest.h
3465 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3466
3467 case $depmode in
3468 nosideeffect)
3469 # after this tag, mechanisms are not by side-effect, so they'll
3470 # only be used when explicitly requested
3471 if test "x$enable_dependency_tracking" = xyes; then
3472 continue
3473 else
3474 break
3475 fi
3476 ;;
3477 none) break ;;
3478 esac
3479 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3480 # mode. It turns out that the SunPro C++ compiler does not properly
3481 # handle `-M -o', and we need to detect this.
3482 if depmode=$depmode \
3483 source=conftest.c object=conftest.o \
3484 depfile=conftest.Po tmpdepfile=conftest.TPo \
3485 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3486 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3487 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3488 am_cv_CXX_dependencies_compiler_type=$depmode
3489 break
3490 fi
3491 done
3492
3493 cd ..
3494 rm -rf conftest.dir
3495else
3496 am_cv_CXX_dependencies_compiler_type=none
3497fi
3498
3499fi
3500echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3501echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3502CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3503
3504
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003505# Find a good install program. We prefer a C program (faster),
3506# so one script is as good as another. But avoid the broken or
3507# incompatible versions:
3508# SysV /etc/install, /usr/sbin/install
3509# SunOS /usr/etc/install
3510# IRIX /sbin/install
3511# AIX /bin/install
3512# AmigaOS /C/install, which installs bootblocks on floppy discs
3513# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3514# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3515# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003516# OS/2's system install, which has a completely different semantic
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003517# ./install, which can be erroneously created by make from ./install.sh.
3518echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3519echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3520if test -z "$INSTALL"; then
3521if test "${ac_cv_path_install+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3523else
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525for as_dir in $PATH
3526do
3527 IFS=$as_save_IFS
3528 test -z "$as_dir" && as_dir=.
3529 # Account for people who put trailing slashes in PATH elements.
3530case $as_dir/ in
3531 ./ | .// | /cC/* | \
3532 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003533 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003534 /usr/ucb/* ) ;;
3535 *)
3536 # OSF1 and SCO ODT 3.0 have their own names for install.
3537 # Don't use installbsd from OSF since it installs stuff as root
3538 # by default.
3539 for ac_prog in ginstall scoinst install; do
3540 for ac_exec_ext in '' $ac_executable_extensions; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003541 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3542 if test $ac_prog = install &&
3543 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3544 # AIX install. It has an incompatible calling convention.
3545 :
3546 elif test $ac_prog = install &&
3547 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3548 # program-specific install script used by HP pwplus--don't use.
3549 :
3550 else
3551 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3552 break 3
3553 fi
3554 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003555 done
3556 done
3557 ;;
3558esac
3559done
3560
3561
3562fi
3563 if test "${ac_cv_path_install+set}" = set; then
3564 INSTALL=$ac_cv_path_install
3565 else
3566 # As a last resort, use the slow shell script. We don't cache a
3567 # path for INSTALL within a source directory, because that will
3568 # break other packages using the cache if that directory is
3569 # removed, or if the path is relative.
3570 INSTALL=$ac_install_sh
3571 fi
3572fi
3573echo "$as_me:$LINENO: result: $INSTALL" >&5
3574echo "${ECHO_T}$INSTALL" >&6
3575
3576# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3577# It thinks the first close brace ends the variable substitution.
3578test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3579
3580test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3581
3582test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3583
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003584echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3585echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003586set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003587if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3589else
3590 cat >conftest.make <<\_ACEOF
3591all:
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003592 @echo 'ac_maketemp="$(MAKE)"'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003593_ACEOF
3594# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3595eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3596if test -n "$ac_maketemp"; then
3597 eval ac_cv_prog_make_${ac_make}_set=yes
3598else
3599 eval ac_cv_prog_make_${ac_make}_set=no
3600fi
3601rm -f conftest.make
3602fi
3603if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3604 echo "$as_me:$LINENO: result: yes" >&5
3605echo "${ECHO_T}yes" >&6
3606 SET_MAKE=
3607else
3608 echo "$as_me:$LINENO: result: no" >&5
3609echo "${ECHO_T}no" >&6
3610 SET_MAKE="MAKE=${MAKE-make}"
3611fi
3612
3613# Check whether --enable-shared or --disable-shared was given.
3614if test "${enable_shared+set}" = set; then
3615 enableval="$enable_shared"
3616 p=${PACKAGE-default}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003617 case $enableval in
3618 yes) enable_shared=yes ;;
3619 no) enable_shared=no ;;
3620 *)
3621 enable_shared=no
3622 # Look at the argument we got. We use all the common list separators.
3623 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3624 for pkg in $enableval; do
3625 IFS="$lt_save_ifs"
3626 if test "X$pkg" = "X$p"; then
3627 enable_shared=yes
3628 fi
3629 done
3630 IFS="$lt_save_ifs"
3631 ;;
3632 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003633else
3634 enable_shared=yes
3635fi;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003636
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003637# Check whether --enable-static or --disable-static was given.
3638if test "${enable_static+set}" = set; then
3639 enableval="$enable_static"
3640 p=${PACKAGE-default}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003641 case $enableval in
3642 yes) enable_static=yes ;;
3643 no) enable_static=no ;;
3644 *)
3645 enable_static=no
3646 # Look at the argument we got. We use all the common list separators.
3647 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3648 for pkg in $enableval; do
3649 IFS="$lt_save_ifs"
3650 if test "X$pkg" = "X$p"; then
3651 enable_static=yes
3652 fi
3653 done
3654 IFS="$lt_save_ifs"
3655 ;;
3656 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003657else
3658 enable_static=yes
3659fi;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003660
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003661# Check whether --enable-fast-install or --disable-fast-install was given.
3662if test "${enable_fast_install+set}" = set; then
3663 enableval="$enable_fast_install"
3664 p=${PACKAGE-default}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003665 case $enableval in
3666 yes) enable_fast_install=yes ;;
3667 no) enable_fast_install=no ;;
3668 *)
3669 enable_fast_install=no
3670 # Look at the argument we got. We use all the common list separators.
3671 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3672 for pkg in $enableval; do
3673 IFS="$lt_save_ifs"
3674 if test "X$pkg" = "X$p"; then
3675 enable_fast_install=yes
3676 fi
3677 done
3678 IFS="$lt_save_ifs"
3679 ;;
3680 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003681else
3682 enable_fast_install=yes
3683fi;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003684
3685echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3686echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3687if test "${lt_cv_path_SED+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689else
3690 # Loop through the user's path and test for sed and gsed.
3691# Then use that list of sed's as ones to test for truncation.
3692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693for as_dir in $PATH
3694do
3695 IFS=$as_save_IFS
3696 test -z "$as_dir" && as_dir=.
3697 for lt_ac_prog in sed gsed; do
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3700 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3701 fi
3702 done
3703 done
3704done
3705lt_ac_max=0
3706lt_ac_count=0
3707# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3708# along with /bin/sed that truncates output.
3709for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3710 test ! -f $lt_ac_sed && break
3711 cat /dev/null > conftest.in
3712 lt_ac_count=0
3713 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3714 # Check for GNU sed and select it if it is found.
3715 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3716 lt_cv_path_SED=$lt_ac_sed
3717 break
3718 fi
3719 while true; do
3720 cat conftest.in conftest.in >conftest.tmp
3721 mv conftest.tmp conftest.in
3722 cp conftest.in conftest.nl
3723 echo >>conftest.nl
3724 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3725 cmp -s conftest.out conftest.nl || break
3726 # 10000 chars as input seems more than enough
3727 test $lt_ac_count -gt 10 && break
3728 lt_ac_count=`expr $lt_ac_count + 1`
3729 if test $lt_ac_count -gt $lt_ac_max; then
3730 lt_ac_max=$lt_ac_count
3731 lt_cv_path_SED=$lt_ac_sed
3732 fi
3733 done
3734done
3735SED=$lt_cv_path_SED
3736
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003737fi
3738
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003739echo "$as_me:$LINENO: result: $SED" >&5
3740echo "${ECHO_T}$SED" >&6
3741
3742echo "$as_me:$LINENO: checking for egrep" >&5
3743echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3744if test "${ac_cv_prog_egrep+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746else
3747 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3748 then ac_cv_prog_egrep='grep -E'
3749 else ac_cv_prog_egrep='egrep'
3750 fi
3751fi
3752echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3753echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3754 EGREP=$ac_cv_prog_egrep
3755
3756
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003757
3758# Check whether --with-gnu-ld or --without-gnu-ld was given.
3759if test "${with_gnu_ld+set}" = set; then
3760 withval="$with_gnu_ld"
3761 test "$withval" = no || with_gnu_ld=yes
3762else
3763 with_gnu_ld=no
3764fi;
3765ac_prog=ld
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003766if test "$GCC" = yes; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003767 # Check if gcc -print-prog-name=ld gives a path.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003768 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3769echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003770 case $host in
3771 *-*-mingw*)
3772 # gcc leaves a trailing carriage return which upsets mingw
3773 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3774 *)
3775 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3776 esac
3777 case $ac_prog in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003778 # Accept absolute paths.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003779 [\\/]* | ?:[\\/]*)
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003780 re_direlt='/[^/][^/]*/\.\./'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003781 # Canonicalize the pathname of ld
3782 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003783 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003784 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003785 done
3786 test -z "$LD" && LD="$ac_prog"
3787 ;;
3788 "")
3789 # If it fails, then pretend we aren't using GCC.
3790 ac_prog=ld
3791 ;;
3792 *)
3793 # If it is relative, then search for the first ld in PATH.
3794 with_gnu_ld=unknown
3795 ;;
3796 esac
3797elif test "$with_gnu_ld" = yes; then
3798 echo "$as_me:$LINENO: checking for GNU ld" >&5
3799echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3800else
3801 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3802echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3803fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003804if test "${lt_cv_path_LD+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003805 echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
3807 if test -z "$LD"; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003808 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003809 for ac_dir in $PATH; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003810 IFS="$lt_save_ifs"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003811 test -z "$ac_dir" && ac_dir=.
3812 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003813 lt_cv_path_LD="$ac_dir/$ac_prog"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003814 # Check to see if the program is GNU ld. I'd rather use --version,
3815 # but apparently some GNU ld's only accept -v.
3816 # Break only if it was the GNU/non-GNU ld that we prefer.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003817 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3818 *GNU* | *'with BFD'*)
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003819 test "$with_gnu_ld" != no && break
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003820 ;;
3821 *)
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003822 test "$with_gnu_ld" != yes && break
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003823 ;;
3824 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003825 fi
3826 done
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003827 IFS="$lt_save_ifs"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003828else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003829 lt_cv_path_LD="$LD" # Let the user override the test with a path.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003830fi
3831fi
3832
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003833LD="$lt_cv_path_LD"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003834if test -n "$LD"; then
3835 echo "$as_me:$LINENO: result: $LD" >&5
3836echo "${ECHO_T}$LD" >&6
3837else
3838 echo "$as_me:$LINENO: result: no" >&5
3839echo "${ECHO_T}no" >&6
3840fi
3841test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3842echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3843 { (exit 1); exit 1; }; }
3844echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3845echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003846if test "${lt_cv_prog_gnu_ld+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848else
3849 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003850case `$LD -v 2>&1 </dev/null` in
3851*GNU* | *'with BFD'*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003852 lt_cv_prog_gnu_ld=yes
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003853 ;;
3854*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003855 lt_cv_prog_gnu_ld=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003856 ;;
3857esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003858fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003859echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3860echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3861with_gnu_ld=$lt_cv_prog_gnu_ld
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003862
3863
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003864echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3865echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3866if test "${lt_cv_ld_reload_flag+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868else
3869 lt_cv_ld_reload_flag='-r'
3870fi
3871echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3872echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3873reload_flag=$lt_cv_ld_reload_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003874case $reload_flag in
3875"" | " "*) ;;
3876*) reload_flag=" $reload_flag" ;;
3877esac
3878reload_cmds='$LD$reload_flag -o $output$reload_objs'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003879
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003880echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3881echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003882if test "${lt_cv_path_NM+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003883 echo $ECHO_N "(cached) $ECHO_C" >&6
3884else
3885 if test -n "$NM"; then
3886 # Let the user override the test.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003887 lt_cv_path_NM="$NM"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003888else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003889 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003890 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003891 IFS="$lt_save_ifs"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003892 test -z "$ac_dir" && ac_dir=.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003893 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3894 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003895 # Check to see if the nm accepts a BSD-compat flag.
3896 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3897 # nm: unknown option "B" ignored
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003898 # Tru64's nm complains that /dev/null is an invalid object file
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003899 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3900 */dev/null* | *'Invalid file or object type'*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003901 lt_cv_path_NM="$tmp_nm -B"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003902 break
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003903 ;;
3904 *)
3905 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3906 */dev/null*)
3907 lt_cv_path_NM="$tmp_nm -p"
3908 break
3909 ;;
3910 *)
3911 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3912 continue # so that we can try to find one that supports BSD flags
3913 ;;
3914 esac
3915 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003916 fi
3917 done
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003918 IFS="$lt_save_ifs"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003919 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003920fi
3921fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003922echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3923echo "${ECHO_T}$lt_cv_path_NM" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003924NM="$lt_cv_path_NM"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003925
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003926echo "$as_me:$LINENO: checking whether ln -s works" >&5
3927echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3928LN_S=$as_ln_s
3929if test "$LN_S" = "ln -s"; then
3930 echo "$as_me:$LINENO: result: yes" >&5
3931echo "${ECHO_T}yes" >&6
3932else
3933 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3934echo "${ECHO_T}no, using $LN_S" >&6
3935fi
3936
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003937echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3938echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3939if test "${lt_cv_deplibs_check_method+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3941else
3942 lt_cv_file_magic_cmd='$MAGIC_CMD'
3943lt_cv_file_magic_test_file=
3944lt_cv_deplibs_check_method='unknown'
3945# Need to set the preceding variable on all platforms that support
3946# interlibrary dependencies.
3947# 'none' -- dependencies not supported.
3948# `unknown' -- same as none, but documents that we really don't know.
3949# 'pass_all' -- all dependencies passed with no checks.
3950# 'test_compile' -- check by making test program.
3951# 'file_magic [[regex]]' -- check by looking for files in library path
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003952# which responds to the $file_magic_cmd with a given extended regex.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003953# If you have `file' or equivalent on your system and you're not sure
3954# whether `pass_all' will *always* work, you probably want this one.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003955
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003956case $host_os in
3957aix4* | aix5*)
3958 lt_cv_deplibs_check_method=pass_all
3959 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003960
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003961beos*)
3962 lt_cv_deplibs_check_method=pass_all
3963 ;;
3964
3965bsdi4*)
3966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3967 lt_cv_file_magic_cmd='/usr/bin/file -L'
3968 lt_cv_file_magic_test_file=/shlib/libc.so
3969 ;;
3970
3971cygwin* | mingw* | pw32*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003972 # win32_libid is a shell function defined in ltmain.sh
3973 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3974 lt_cv_file_magic_cmd='win32_libid'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003975 ;;
3976
3977darwin* | rhapsody*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003978 lt_cv_deplibs_check_method=pass_all
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003979 ;;
3980
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003981freebsd* | kfreebsd*-gnu)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003982 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3983 case $host_cpu in
3984 i*86 )
3985 # Not sure whether the presence of OpenBSD here was a mistake.
3986 # Let's accept both of them until this is cleared up.
3987 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3988 lt_cv_file_magic_cmd=/usr/bin/file
3989 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3990 ;;
3991 esac
3992 else
3993 lt_cv_deplibs_check_method=pass_all
3994 fi
3995 ;;
3996
3997gnu*)
3998 lt_cv_deplibs_check_method=pass_all
3999 ;;
4000
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004001hpux10.20* | hpux11*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004002 lt_cv_file_magic_cmd=/usr/bin/file
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004003 case "$host_cpu" in
4004 ia64*)
4005 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4006 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4007 ;;
4008 hppa*64*)
4009 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4010 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4011 ;;
4012 *)
4013 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4014 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4015 ;;
4016 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004017 ;;
4018
4019irix5* | irix6* | nonstopux*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004020 case $LD in
4021 *-32|*"-32 ") libmagic=32-bit;;
4022 *-n32|*"-n32 ") libmagic=N32;;
4023 *-64|*"-64 ") libmagic=64-bit;;
4024 *) libmagic=never-match;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004025 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004026 lt_cv_deplibs_check_method=pass_all
4027 ;;
4028
4029# This must be Linux ELF.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004030linux*)
4031 lt_cv_deplibs_check_method=pass_all
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004032 ;;
4033
4034netbsd*)
4035 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004037 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004039 fi
4040 ;;
4041
4042newos6*)
4043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4044 lt_cv_file_magic_cmd=/usr/bin/file
4045 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4046 ;;
4047
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004048nto-qnx*)
4049 lt_cv_deplibs_check_method=unknown
4050 ;;
4051
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004052openbsd*)
4053 lt_cv_file_magic_cmd=/usr/bin/file
4054 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4055 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4056 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4057 else
4058 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4059 fi
4060 ;;
4061
4062osf3* | osf4* | osf5*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004063 lt_cv_deplibs_check_method=pass_all
4064 ;;
4065
4066sco3.2v5*)
4067 lt_cv_deplibs_check_method=pass_all
4068 ;;
4069
4070solaris*)
4071 lt_cv_deplibs_check_method=pass_all
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004072 ;;
4073
4074sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4075 case $host_vendor in
4076 motorola)
4077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4078 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4079 ;;
4080 ncr)
4081 lt_cv_deplibs_check_method=pass_all
4082 ;;
4083 sequent)
4084 lt_cv_file_magic_cmd='/bin/file'
4085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4086 ;;
4087 sni)
4088 lt_cv_file_magic_cmd='/bin/file'
4089 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4090 lt_cv_file_magic_test_file=/lib/libc.so
4091 ;;
4092 siemens)
4093 lt_cv_deplibs_check_method=pass_all
4094 ;;
4095 esac
4096 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004097
4098sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4099 lt_cv_deplibs_check_method=pass_all
4100 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004101esac
4102
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004103fi
4104echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4105echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4106file_magic_cmd=$lt_cv_file_magic_cmd
4107deplibs_check_method=$lt_cv_deplibs_check_method
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004108test -z "$deplibs_check_method" && deplibs_check_method=unknown
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004109
4110
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004111
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004112
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004113# If no C compiler was specified, use CC.
4114LTCC=${LTCC-"$CC"}
4115
4116# Allow CC to be a program name with arguments.
4117compiler=$CC
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004118
4119
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004120# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4121if test "${enable_libtool_lock+set}" = set; then
4122 enableval="$enable_libtool_lock"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004123
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004124fi;
4125test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004126
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004127# Some flags need to be propagated to the compiler or linker for good
4128# libtool support.
4129case $host in
4130ia64-*-hpux*)
4131 # Find out which ABI we are using.
4132 echo 'int i;' > conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134 (eval $ac_compile) 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004138 case `/usr/bin/file conftest.$ac_objext` in
4139 *ELF-32*)
4140 HPUX_IA64_MODE="32"
4141 ;;
4142 *ELF-64*)
4143 HPUX_IA64_MODE="64"
4144 ;;
4145 esac
4146 fi
4147 rm -rf conftest*
4148 ;;
4149*-*-irix6*)
4150 # Find out which ABI we are using.
hp.com!davidmb1d369a2003-11-26 18:59:24 +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
4264 (eval $ac_link) 2>conftest.er1
4265 ac_status=$?
4266 grep -v '^ *+' conftest.er1 >conftest.err
4267 rm -f conftest.er1
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
4271 { ac_try='test -z "$ac_c_werror_flag"
4272 || test ! -s conftest.err'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 (eval $ac_try) 2>&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest$ac_exeext'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 (eval $ac_try) 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 lt_cv_cc_needs_belf=yes
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004285else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004286 echo "$as_me: failed program was:" >&5
4287sed 's/^/| /' conftest.$ac_ext >&5
4288
4289lt_cv_cc_needs_belf=no
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004290fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004291rm -f conftest.err conftest.$ac_objext \
4292 conftest$ac_exeext conftest.$ac_ext
4293 ac_ext=c
4294ac_cpp='$CPP $CPPFLAGS'
4295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004299fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004300echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4301echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4302 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4303 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4304 CFLAGS="$SAVE_CFLAGS"
4305 fi
4306 ;;
4307
4308esac
4309
4310need_locks="$enable_libtool_lock"
4311
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004312
4313ac_ext=c
4314ac_cpp='$CPP $CPPFLAGS'
4315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4319echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4320# On Suns, sometimes $CPP names a directory.
4321if test -n "$CPP" && test -d "$CPP"; then
4322 CPP=
4323fi
4324if test -z "$CPP"; then
4325 if test "${ac_cv_prog_CPP+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4327else
4328 # Double quotes because CPP needs to be expanded
4329 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4330 do
4331 ac_preproc_ok=false
4332for ac_c_preproc_warn_flag in '' yes
4333do
4334 # Use a header file that comes with gcc, so configuring glibc
4335 # with a fresh cross-compiler works.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4337 # <limits.h> exists even on freestanding compilers.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004338 # On the NeXT, cc -E runs the code through the compiler's parser,
4339 # not just through cpp. "Syntax error" is here to catch this case.
4340 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004341/* confdefs.h. */
4342_ACEOF
4343cat confdefs.h >>conftest.$ac_ext
4344cat >>conftest.$ac_ext <<_ACEOF
4345/* end confdefs.h. */
4346#ifdef __STDC__
4347# include <limits.h>
4348#else
4349# include <assert.h>
4350#endif
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004351 Syntax error
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004352_ACEOF
4353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4355 ac_status=$?
4356 grep -v '^ *+' conftest.er1 >conftest.err
4357 rm -f conftest.er1
4358 cat conftest.err >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); } >/dev/null; then
4361 if test -s conftest.err; then
4362 ac_cpp_err=$ac_c_preproc_warn_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004364 else
4365 ac_cpp_err=
4366 fi
4367else
4368 ac_cpp_err=yes
4369fi
4370if test -z "$ac_cpp_err"; then
4371 :
4372else
4373 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004374sed 's/^/| /' conftest.$ac_ext >&5
4375
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004376 # Broken: fails on valid input.
4377continue
4378fi
4379rm -f conftest.err conftest.$ac_ext
4380
4381 # OK, works on sane cases. Now check whether non-existent headers
4382 # can be detected and how.
4383 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004384/* confdefs.h. */
4385_ACEOF
4386cat confdefs.h >>conftest.$ac_ext
4387cat >>conftest.$ac_ext <<_ACEOF
4388/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004389#include <ac_nonexistent.h>
4390_ACEOF
4391if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4393 ac_status=$?
4394 grep -v '^ *+' conftest.er1 >conftest.err
4395 rm -f conftest.er1
4396 cat conftest.err >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } >/dev/null; then
4399 if test -s conftest.err; then
4400 ac_cpp_err=$ac_c_preproc_warn_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004402 else
4403 ac_cpp_err=
4404 fi
4405else
4406 ac_cpp_err=yes
4407fi
4408if test -z "$ac_cpp_err"; then
4409 # Broken: success on invalid input.
4410continue
4411else
4412 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004413sed 's/^/| /' conftest.$ac_ext >&5
4414
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004415 # Passes both tests.
4416ac_preproc_ok=:
4417break
4418fi
4419rm -f conftest.err conftest.$ac_ext
4420
4421done
4422# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4423rm -f conftest.err conftest.$ac_ext
4424if $ac_preproc_ok; then
4425 break
4426fi
4427
4428 done
4429 ac_cv_prog_CPP=$CPP
4430
4431fi
4432 CPP=$ac_cv_prog_CPP
4433else
4434 ac_cv_prog_CPP=$CPP
4435fi
4436echo "$as_me:$LINENO: result: $CPP" >&5
4437echo "${ECHO_T}$CPP" >&6
4438ac_preproc_ok=false
4439for ac_c_preproc_warn_flag in '' yes
4440do
4441 # Use a header file that comes with gcc, so configuring glibc
4442 # with a fresh cross-compiler works.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4444 # <limits.h> exists even on freestanding compilers.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004445 # On the NeXT, cc -E runs the code through the compiler's parser,
4446 # not just through cpp. "Syntax error" is here to catch this case.
4447 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004448/* confdefs.h. */
4449_ACEOF
4450cat confdefs.h >>conftest.$ac_ext
4451cat >>conftest.$ac_ext <<_ACEOF
4452/* end confdefs.h. */
4453#ifdef __STDC__
4454# include <limits.h>
4455#else
4456# include <assert.h>
4457#endif
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004458 Syntax error
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004459_ACEOF
4460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4462 ac_status=$?
4463 grep -v '^ *+' conftest.er1 >conftest.err
4464 rm -f conftest.er1
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } >/dev/null; then
4468 if test -s conftest.err; then
4469 ac_cpp_err=$ac_c_preproc_warn_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004471 else
4472 ac_cpp_err=
4473 fi
4474else
4475 ac_cpp_err=yes
4476fi
4477if test -z "$ac_cpp_err"; then
4478 :
4479else
4480 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004481sed 's/^/| /' conftest.$ac_ext >&5
4482
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004483 # Broken: fails on valid input.
4484continue
4485fi
4486rm -f conftest.err conftest.$ac_ext
4487
4488 # OK, works on sane cases. Now check whether non-existent headers
4489 # can be detected and how.
4490 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004491/* confdefs.h. */
4492_ACEOF
4493cat confdefs.h >>conftest.$ac_ext
4494cat >>conftest.$ac_ext <<_ACEOF
4495/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004496#include <ac_nonexistent.h>
4497_ACEOF
4498if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4500 ac_status=$?
4501 grep -v '^ *+' conftest.er1 >conftest.err
4502 rm -f conftest.er1
4503 cat conftest.err >&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } >/dev/null; then
4506 if test -s conftest.err; then
4507 ac_cpp_err=$ac_c_preproc_warn_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004509 else
4510 ac_cpp_err=
4511 fi
4512else
4513 ac_cpp_err=yes
4514fi
4515if test -z "$ac_cpp_err"; then
4516 # Broken: success on invalid input.
4517continue
4518else
4519 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004520sed 's/^/| /' conftest.$ac_ext >&5
4521
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004522 # Passes both tests.
4523ac_preproc_ok=:
4524break
4525fi
4526rm -f conftest.err conftest.$ac_ext
4527
4528done
4529# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4530rm -f conftest.err conftest.$ac_ext
4531if $ac_preproc_ok; then
4532 :
4533else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004534 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4535See \`config.log' for more details." >&5
4536echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4537See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004538 { (exit 1); exit 1; }; }
4539fi
4540
4541ac_ext=c
4542ac_cpp='$CPP $CPPFLAGS'
4543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4545ac_compiler_gnu=$ac_cv_c_compiler_gnu
4546
4547
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004548echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4549echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4550if test "${ac_cv_header_stdc+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552else
4553 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004554/* confdefs.h. */
4555_ACEOF
4556cat confdefs.h >>conftest.$ac_ext
4557cat >>conftest.$ac_ext <<_ACEOF
4558/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004559#include <stdlib.h>
4560#include <stdarg.h>
4561#include <string.h>
4562#include <float.h>
4563
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004564int
4565main ()
4566{
4567
4568 ;
4569 return 0;
4570}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004571_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004572rm -f conftest.$ac_objext
4573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004574 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004575 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004576 grep -v '^ *+' conftest.er1 >conftest.err
4577 rm -f conftest.er1
4578 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004580 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004581 { ac_try='test -z "$ac_c_werror_flag"
4582 || test ! -s conftest.err'
4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584 (eval $ac_try) 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; } &&
4588 { ac_try='test -s conftest.$ac_objext'
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 (eval $ac_try) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; }; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004594 ac_cv_header_stdc=yes
4595else
4596 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004597sed 's/^/| /' conftest.$ac_ext >&5
4598
4599ac_cv_header_stdc=no
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004600fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004602
4603if test $ac_cv_header_stdc = yes; then
4604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4605 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004606/* confdefs.h. */
4607_ACEOF
4608cat confdefs.h >>conftest.$ac_ext
4609cat >>conftest.$ac_ext <<_ACEOF
4610/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004611#include <string.h>
4612
4613_ACEOF
4614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4615 $EGREP "memchr" >/dev/null 2>&1; then
4616 :
4617else
4618 ac_cv_header_stdc=no
4619fi
4620rm -f conftest*
4621
4622fi
4623
4624if test $ac_cv_header_stdc = yes; then
4625 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4626 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004627/* confdefs.h. */
4628_ACEOF
4629cat confdefs.h >>conftest.$ac_ext
4630cat >>conftest.$ac_ext <<_ACEOF
4631/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004632#include <stdlib.h>
4633
4634_ACEOF
4635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4636 $EGREP "free" >/dev/null 2>&1; then
4637 :
4638else
4639 ac_cv_header_stdc=no
4640fi
4641rm -f conftest*
4642
4643fi
4644
4645if test $ac_cv_header_stdc = yes; then
4646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4647 if test "$cross_compiling" = yes; then
4648 :
4649else
4650 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004651/* confdefs.h. */
4652_ACEOF
4653cat confdefs.h >>conftest.$ac_ext
4654cat >>conftest.$ac_ext <<_ACEOF
4655/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004656#include <ctype.h>
4657#if ((' ' & 0x0FF) == 0x020)
4658# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4659# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4660#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004661# define ISLOWER(c) \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004662 (('a' <= (c) && (c) <= 'i') \
4663 || ('j' <= (c) && (c) <= 'r') \
4664 || ('s' <= (c) && (c) <= 'z'))
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004665# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4666#endif
4667
4668#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4669int
4670main ()
4671{
4672 int i;
4673 for (i = 0; i < 256; i++)
4674 if (XOR (islower (i), ISLOWER (i))
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004675 || toupper (i) != TOUPPER (i))
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004676 exit(2);
4677 exit (0);
4678}
4679_ACEOF
4680rm -f conftest$ac_exeext
4681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4682 (eval $ac_link) 2>&5
4683 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 (eval $ac_try) 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 :
4692else
4693 echo "$as_me: program exited with status $ac_status" >&5
4694echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004695sed 's/^/| /' conftest.$ac_ext >&5
4696
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004697( exit $ac_status )
4698ac_cv_header_stdc=no
4699fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004700rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004701fi
4702fi
4703fi
4704echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4705echo "${ECHO_T}$ac_cv_header_stdc" >&6
4706if test $ac_cv_header_stdc = yes; then
4707
4708cat >>confdefs.h <<\_ACEOF
4709#define STDC_HEADERS 1
4710_ACEOF
4711
4712fi
4713
4714# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004725 inttypes.h stdint.h unistd.h
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004726do
4727as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4728echo "$as_me:$LINENO: checking for $ac_header" >&5
4729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4730if eval "test \"\${$as_ac_Header+set}\" = set"; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732else
4733 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004734/* confdefs.h. */
4735_ACEOF
4736cat confdefs.h >>conftest.$ac_ext
4737cat >>conftest.$ac_ext <<_ACEOF
4738/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004739$ac_includes_default
4740
4741#include <$ac_header>
4742_ACEOF
4743rm -f conftest.$ac_objext
4744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004745 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004746 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004747 grep -v '^ *+' conftest.er1 >conftest.err
4748 rm -f conftest.er1
4749 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004752 { ac_try='test -z "$ac_c_werror_flag"
4753 || test ! -s conftest.err'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 (eval $ac_try) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; } &&
4759 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761 (eval $ac_try) 2>&5
4762 ac_status=$?
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }; }; then
4765 eval "$as_ac_Header=yes"
4766else
4767 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004768sed 's/^/| /' conftest.$ac_ext >&5
4769
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004770eval "$as_ac_Header=no"
4771fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004773fi
4774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4775echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4776if test `eval echo '${'$as_ac_Header'}'` = yes; then
4777 cat >>confdefs.h <<_ACEOF
4778#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4779_ACEOF
4780
4781fi
4782
4783done
4784
4785
4786
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004787for ac_header in dlfcn.h
4788do
4789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4790if eval "test \"\${$as_ac_Header+set}\" = set"; then
4791 echo "$as_me:$LINENO: checking for $ac_header" >&5
4792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4793if eval "test \"\${$as_ac_Header+set}\" = set"; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4795fi
4796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4798else
4799 # Is the header compilable?
4800echo "$as_me:$LINENO: checking $ac_header usability" >&5
4801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4802cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004803/* confdefs.h. */
4804_ACEOF
4805cat confdefs.h >>conftest.$ac_ext
4806cat >>conftest.$ac_ext <<_ACEOF
4807/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004808$ac_includes_default
4809#include <$ac_header>
4810_ACEOF
4811rm -f conftest.$ac_objext
4812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004813 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004814 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004815 grep -v '^ *+' conftest.er1 >conftest.err
4816 rm -f conftest.er1
4817 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004820 { ac_try='test -z "$ac_c_werror_flag"
4821 || test ! -s conftest.err'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 (eval $ac_try) 2>&5
4824 ac_status=$?
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; } &&
4827 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829 (eval $ac_try) 2>&5
4830 ac_status=$?
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; }; then
4833 ac_header_compiler=yes
4834else
4835 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004836sed 's/^/| /' conftest.$ac_ext >&5
4837
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004838ac_header_compiler=no
4839fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004841echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4842echo "${ECHO_T}$ac_header_compiler" >&6
4843
4844# Is the header present?
4845echo "$as_me:$LINENO: checking $ac_header presence" >&5
4846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4847cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004848/* confdefs.h. */
4849_ACEOF
4850cat confdefs.h >>conftest.$ac_ext
4851cat >>conftest.$ac_ext <<_ACEOF
4852/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004853#include <$ac_header>
4854_ACEOF
4855if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4857 ac_status=$?
4858 grep -v '^ *+' conftest.er1 >conftest.err
4859 rm -f conftest.er1
4860 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } >/dev/null; then
4863 if test -s conftest.err; then
4864 ac_cpp_err=$ac_c_preproc_warn_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004866 else
4867 ac_cpp_err=
4868 fi
4869else
4870 ac_cpp_err=yes
4871fi
4872if test -z "$ac_cpp_err"; then
4873 ac_header_preproc=yes
4874else
4875 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004876sed 's/^/| /' conftest.$ac_ext >&5
4877
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004878 ac_header_preproc=no
4879fi
4880rm -f conftest.err conftest.$ac_ext
4881echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4882echo "${ECHO_T}$ac_header_preproc" >&6
4883
4884# So? What about this header?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4886 yes:no: )
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4888echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4890echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4891 ac_header_preproc=yes
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004892 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004893 no:yes:* )
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4895echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4897echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4899echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4901echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004903echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4905echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004906 (
4907 cat <<\_ASBOX
hp.com!davidmb1d369a2003-11-26 18:59:24 +00004908## ----------------------------------------- ##
4909## Report this to libunwind@linux.hpl.hp.com ##
4910## ----------------------------------------- ##
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004911_ASBOX
4912 ) |
4913 sed "s/^/$as_me: WARNING: /" >&2
4914 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004915esac
4916echo "$as_me:$LINENO: checking for $ac_header" >&5
4917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4918if eval "test \"\${$as_ac_Header+set}\" = set"; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4920else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004921 eval "$as_ac_Header=\$ac_header_preproc"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004922fi
4923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4925
4926fi
4927if test `eval echo '${'$as_ac_Header'}'` = yes; then
4928 cat >>confdefs.h <<_ACEOF
4929#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4930_ACEOF
4931
4932fi
4933
4934done
4935
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004936ac_ext=cc
4937ac_cpp='$CXXCPP $CPPFLAGS'
4938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4941echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4942echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4943if test -z "$CXXCPP"; then
4944 if test "${ac_cv_prog_CXXCPP+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004945 echo $ECHO_N "(cached) $ECHO_C" >&6
4946else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004947 # Double quotes because CXXCPP needs to be expanded
4948 for CXXCPP in "$CXX -E" "/lib/cpp"
4949 do
4950 ac_preproc_ok=false
4951for ac_cxx_preproc_warn_flag in '' yes
4952do
4953 # Use a header file that comes with gcc, so configuring glibc
4954 # with a fresh cross-compiler works.
4955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4956 # <limits.h> exists even on freestanding compilers.
4957 # On the NeXT, cc -E runs the code through the compiler's parser,
4958 # not just through cpp. "Syntax error" is here to catch this case.
4959 cat >conftest.$ac_ext <<_ACEOF
4960/* confdefs.h. */
4961_ACEOF
4962cat confdefs.h >>conftest.$ac_ext
4963cat >>conftest.$ac_ext <<_ACEOF
4964/* end confdefs.h. */
4965#ifdef __STDC__
4966# include <limits.h>
4967#else
4968# include <assert.h>
4969#endif
4970 Syntax error
4971_ACEOF
4972if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4974 ac_status=$?
4975 grep -v '^ *+' conftest.er1 >conftest.err
4976 rm -f conftest.er1
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } >/dev/null; then
4980 if test -s conftest.err; then
4981 ac_cpp_err=$ac_cxx_preproc_warn_flag
4982 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004983 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004984 ac_cpp_err=
4985 fi
4986else
4987 ac_cpp_err=yes
4988fi
4989if test -z "$ac_cpp_err"; then
4990 :
4991else
4992 echo "$as_me: failed program was:" >&5
4993sed 's/^/| /' conftest.$ac_ext >&5
4994
4995 # Broken: fails on valid input.
4996continue
4997fi
4998rm -f conftest.err conftest.$ac_ext
4999
5000 # OK, works on sane cases. Now check whether non-existent headers
5001 # can be detected and how.
5002 cat >conftest.$ac_ext <<_ACEOF
5003/* confdefs.h. */
5004_ACEOF
5005cat confdefs.h >>conftest.$ac_ext
5006cat >>conftest.$ac_ext <<_ACEOF
5007/* end confdefs.h. */
5008#include <ac_nonexistent.h>
5009_ACEOF
5010if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5012 ac_status=$?
5013 grep -v '^ *+' conftest.er1 >conftest.err
5014 rm -f conftest.er1
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } >/dev/null; then
5018 if test -s conftest.err; then
5019 ac_cpp_err=$ac_cxx_preproc_warn_flag
5020 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5021 else
5022 ac_cpp_err=
5023 fi
5024else
5025 ac_cpp_err=yes
5026fi
5027if test -z "$ac_cpp_err"; then
5028 # Broken: success on invalid input.
5029continue
5030else
5031 echo "$as_me: failed program was:" >&5
5032sed 's/^/| /' conftest.$ac_ext >&5
5033
5034 # Passes both tests.
5035ac_preproc_ok=:
5036break
5037fi
5038rm -f conftest.err conftest.$ac_ext
5039
5040done
5041# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5042rm -f conftest.err conftest.$ac_ext
5043if $ac_preproc_ok; then
5044 break
5045fi
5046
5047 done
5048 ac_cv_prog_CXXCPP=$CXXCPP
5049
5050fi
5051 CXXCPP=$ac_cv_prog_CXXCPP
5052else
5053 ac_cv_prog_CXXCPP=$CXXCPP
5054fi
5055echo "$as_me:$LINENO: result: $CXXCPP" >&5
5056echo "${ECHO_T}$CXXCPP" >&6
5057ac_preproc_ok=false
5058for ac_cxx_preproc_warn_flag in '' yes
5059do
5060 # Use a header file that comes with gcc, so configuring glibc
5061 # with a fresh cross-compiler works.
5062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5063 # <limits.h> exists even on freestanding compilers.
5064 # On the NeXT, cc -E runs the code through the compiler's parser,
5065 # not just through cpp. "Syntax error" is here to catch this case.
5066 cat >conftest.$ac_ext <<_ACEOF
5067/* confdefs.h. */
5068_ACEOF
5069cat confdefs.h >>conftest.$ac_ext
5070cat >>conftest.$ac_ext <<_ACEOF
5071/* end confdefs.h. */
5072#ifdef __STDC__
5073# include <limits.h>
5074#else
5075# include <assert.h>
5076#endif
5077 Syntax error
5078_ACEOF
5079if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5081 ac_status=$?
5082 grep -v '^ *+' conftest.er1 >conftest.err
5083 rm -f conftest.er1
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } >/dev/null; then
5087 if test -s conftest.err; then
5088 ac_cpp_err=$ac_cxx_preproc_warn_flag
5089 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5090 else
5091 ac_cpp_err=
5092 fi
5093else
5094 ac_cpp_err=yes
5095fi
5096if test -z "$ac_cpp_err"; then
5097 :
5098else
5099 echo "$as_me: failed program was:" >&5
5100sed 's/^/| /' conftest.$ac_ext >&5
5101
5102 # Broken: fails on valid input.
5103continue
5104fi
5105rm -f conftest.err conftest.$ac_ext
5106
5107 # OK, works on sane cases. Now check whether non-existent headers
5108 # can be detected and how.
5109 cat >conftest.$ac_ext <<_ACEOF
5110/* confdefs.h. */
5111_ACEOF
5112cat confdefs.h >>conftest.$ac_ext
5113cat >>conftest.$ac_ext <<_ACEOF
5114/* end confdefs.h. */
5115#include <ac_nonexistent.h>
5116_ACEOF
5117if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5119 ac_status=$?
5120 grep -v '^ *+' conftest.er1 >conftest.err
5121 rm -f conftest.er1
5122 cat conftest.err >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } >/dev/null; then
5125 if test -s conftest.err; then
5126 ac_cpp_err=$ac_cxx_preproc_warn_flag
5127 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5128 else
5129 ac_cpp_err=
5130 fi
5131else
5132 ac_cpp_err=yes
5133fi
5134if test -z "$ac_cpp_err"; then
5135 # Broken: success on invalid input.
5136continue
5137else
5138 echo "$as_me: failed program was:" >&5
5139sed 's/^/| /' conftest.$ac_ext >&5
5140
5141 # Passes both tests.
5142ac_preproc_ok=:
5143break
5144fi
5145rm -f conftest.err conftest.$ac_ext
5146
5147done
5148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5149rm -f conftest.err conftest.$ac_ext
5150if $ac_preproc_ok; then
5151 :
5152else
5153 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5154See \`config.log' for more details." >&5
5155echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5156See \`config.log' for more details." >&2;}
5157 { (exit 1); exit 1; }; }
5158fi
5159
5160ac_ext=cc
5161ac_cpp='$CXXCPP $CPPFLAGS'
5162ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5163ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5165
5166
5167ac_ext=f
5168ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5169ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5170ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5171if test -n "$ac_tool_prefix"; then
5172 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5173 do
5174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5175set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5176echo "$as_me:$LINENO: checking for $ac_word" >&5
5177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5178if test "${ac_cv_prog_F77+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180else
5181 if test -n "$F77"; then
5182 ac_cv_prog_F77="$F77" # Let the user override the test.
5183else
5184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185for as_dir in $PATH
5186do
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5191 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 break 2
5194 fi
5195done
5196done
5197
5198fi
5199fi
5200F77=$ac_cv_prog_F77
5201if test -n "$F77"; then
5202 echo "$as_me:$LINENO: result: $F77" >&5
5203echo "${ECHO_T}$F77" >&6
5204else
5205 echo "$as_me:$LINENO: result: no" >&5
5206echo "${ECHO_T}no" >&6
5207fi
5208
5209 test -n "$F77" && break
5210 done
5211fi
5212if test -z "$F77"; then
5213 ac_ct_F77=$F77
5214 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5215do
5216 # Extract the first word of "$ac_prog", so it can be a program name with args.
5217set dummy $ac_prog; ac_word=$2
5218echo "$as_me:$LINENO: checking for $ac_word" >&5
5219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5220if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5222else
5223 if test -n "$ac_ct_F77"; then
5224 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5225else
5226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227for as_dir in $PATH
5228do
5229 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233 ac_cv_prog_ac_ct_F77="$ac_prog"
5234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 break 2
5236 fi
5237done
5238done
5239
5240fi
5241fi
5242ac_ct_F77=$ac_cv_prog_ac_ct_F77
5243if test -n "$ac_ct_F77"; then
5244 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5245echo "${ECHO_T}$ac_ct_F77" >&6
5246else
5247 echo "$as_me:$LINENO: result: no" >&5
5248echo "${ECHO_T}no" >&6
5249fi
5250
5251 test -n "$ac_ct_F77" && break
5252done
5253
5254 F77=$ac_ct_F77
5255fi
5256
5257
5258# Provide some information about the compiler.
hp.com!davidmb1d369a2003-11-26 18:59:24 +00005259echo "$as_me:5259:" \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005260 "checking for Fortran 77 compiler version" >&5
5261ac_compiler=`set X $ac_compile; echo $2`
5262{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5263 (eval $ac_compiler --version </dev/null >&5) 2>&5
5264 ac_status=$?
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }
5267{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5268 (eval $ac_compiler -v </dev/null >&5) 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }
5272{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5273 (eval $ac_compiler -V </dev/null >&5) 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }
5277rm -f a.out
5278
5279# If we don't use `.F' as extension, the preprocessor is not run on the
5280# input file. (Note that this only needs to work for GNU compilers.)
5281ac_save_ext=$ac_ext
5282ac_ext=F
5283echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5284echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5285if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5287else
5288 cat >conftest.$ac_ext <<_ACEOF
5289 program main
5290#ifndef __GNUC__
5291 choke me
5292#endif
5293
5294 end
5295_ACEOF
5296rm -f conftest.$ac_objext
5297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5298 (eval $ac_compile) 2>conftest.er1
5299 ac_status=$?
5300 grep -v '^ *+' conftest.er1 >conftest.err
5301 rm -f conftest.er1
5302 cat conftest.err >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } &&
5305 { ac_try='test -z "$ac_f77_werror_flag"
5306 || test ! -s conftest.err'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 (eval $ac_try) 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; } &&
5312 { ac_try='test -s conftest.$ac_objext'
5313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 (eval $ac_try) 2>&5
5315 ac_status=$?
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); }; }; then
5318 ac_compiler_gnu=yes
5319else
5320 echo "$as_me: failed program was:" >&5
5321sed 's/^/| /' conftest.$ac_ext >&5
5322
5323ac_compiler_gnu=no
5324fi
5325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5326ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5327
5328fi
5329echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5330echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5331ac_ext=$ac_save_ext
5332ac_test_FFLAGS=${FFLAGS+set}
5333ac_save_FFLAGS=$FFLAGS
5334FFLAGS=
5335echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5336echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5337if test "${ac_cv_prog_f77_g+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5339else
5340 FFLAGS=-g
5341cat >conftest.$ac_ext <<_ACEOF
5342 program main
5343
5344 end
5345_ACEOF
5346rm -f conftest.$ac_objext
5347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5348 (eval $ac_compile) 2>conftest.er1
5349 ac_status=$?
5350 grep -v '^ *+' conftest.er1 >conftest.err
5351 rm -f conftest.er1
5352 cat conftest.err >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } &&
5355 { ac_try='test -z "$ac_f77_werror_flag"
5356 || test ! -s conftest.err'
5357 { (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); }; } &&
5362 { ac_try='test -s conftest.$ac_objext'
5363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364 (eval $ac_try) 2>&5
5365 ac_status=$?
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); }; }; then
5368 ac_cv_prog_f77_g=yes
5369else
5370 echo "$as_me: failed program was:" >&5
5371sed 's/^/| /' conftest.$ac_ext >&5
5372
5373ac_cv_prog_f77_g=no
5374fi
5375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5376
5377fi
5378echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5379echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5380if test "$ac_test_FFLAGS" = set; then
5381 FFLAGS=$ac_save_FFLAGS
5382elif test $ac_cv_prog_f77_g = yes; then
5383 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5384 FFLAGS="-g -O2"
5385 else
5386 FFLAGS="-g"
5387 fi
5388else
5389 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5390 FFLAGS="-O2"
5391 else
5392 FFLAGS=
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005393 fi
5394fi
5395
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005396G77=`test $ac_compiler_gnu = yes && echo yes`
5397ac_ext=c
5398ac_cpp='$CPP $CPPFLAGS'
5399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5401ac_compiler_gnu=$ac_cv_c_compiler_gnu
5402
5403
5404
5405# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5406
5407# find the maximum length of command line arguments
5408echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5409echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5410if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412else
5413 i=0
5414 testring="ABCD"
5415
5416 case $build_os in
5417 msdosdjgpp*)
5418 # On DJGPP, this test can blow up pretty badly due to problems in libc
5419 # (any single argument exceeding 2000 bytes causes a buffer overrun
5420 # during glob expansion). Even if it were fixed, the result of this
5421 # check would be larger than it should be.
5422 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5423 ;;
5424
5425 gnu*)
5426 # Under GNU Hurd, this test is not required because there is
5427 # no limit to the length of command line arguments.
5428 # Libtool will interpret -1 as no limit whatsoever
5429 lt_cv_sys_max_cmd_len=-1;
5430 ;;
5431
5432 cygwin* | mingw*)
5433 # On Win9x/ME, this test blows up -- it succeeds, but takes
5434 # about 5 minutes as the teststring grows exponentially.
5435 # Worse, since 9x/ME are not pre-emptively multitasking,
5436 # you end up with a "frozen" computer, even though with patience
5437 # the test eventually succeeds (with a max line length of 256k).
5438 # Instead, let's just punt: use the minimum linelength reported by
5439 # all of the supported platforms: 8192 (on NT/2K/XP).
5440 lt_cv_sys_max_cmd_len=8192;
5441 ;;
5442
5443 amigaos*)
5444 # On AmigaOS with pdksh, this test takes hours, literally.
5445 # So we just punt and use a minimum line length of 8192.
5446 lt_cv_sys_max_cmd_len=8192;
5447 ;;
5448
5449 *)
5450 # If test is not a shell built-in, we'll probably end up computing a
5451 # maximum length that is only half of the actual maximum length, but
5452 # we can't tell.
5453 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5454 = "XX$testring") >/dev/null 2>&1 &&
5455 new_result=`expr "X$testring" : ".*" 2>&1` &&
5456 lt_cv_sys_max_cmd_len=$new_result &&
5457 test $i != 17 # 1/2 MB should be enough
5458 do
5459 i=`expr $i + 1`
5460 testring=$testring$testring
5461 done
5462 testring=
5463 # Add a significant safety factor because C++ compilers can tack on massive
5464 # amounts of additional arguments before passing them to the linker.
5465 # It appears as though 1/2 is a usable value.
5466 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5467 ;;
5468 esac
5469
5470fi
5471
5472if test -n $lt_cv_sys_max_cmd_len ; then
5473 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5474echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5475else
5476 echo "$as_me:$LINENO: result: none" >&5
5477echo "${ECHO_T}none" >&6
5478fi
5479
5480
5481
5482
5483# Check for command to grab the raw symbol name followed by C symbol from nm.
5484echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5485echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5486if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5488else
5489
5490# These are sane defaults that work on at least a few old systems.
5491# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5492
5493# Character class describing NM global symbol codes.
5494symcode='[BCDEGRST]'
5495
5496# Regexp to match symbols that can be accessed directly from C.
5497sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5498
5499# Transform the above into a raw symbol and a C symbol.
5500symxfrm='\1 \2\3 \3'
5501
5502# Transform an extracted symbol line into a proper C declaration
5503lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5504
5505# Transform an extracted symbol line into symbol name and symbol address
5506lt_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'"
5507
5508# Define system-specific variables.
5509case $host_os in
5510aix*)
5511 symcode='[BCDT]'
5512 ;;
5513cygwin* | mingw* | pw32*)
5514 symcode='[ABCDGISTW]'
5515 ;;
5516hpux*) # Its linker distinguishes data from code symbols
5517 if test "$host_cpu" = ia64; then
5518 symcode='[ABCDEGRST]'
5519 fi
5520 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5521 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'"
5522 ;;
5523irix* | nonstopux*)
5524 symcode='[BCDEGRST]'
5525 ;;
5526osf*)
5527 symcode='[BCDEGQRST]'
5528 ;;
5529solaris* | sysv5*)
5530 symcode='[BDRT]'
5531 ;;
5532sysv4)
5533 symcode='[DFNSTU]'
5534 ;;
5535esac
5536
5537# Handle CRLF in mingw tool chain
5538opt_cr=
5539case $build_os in
5540mingw*)
5541 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5542 ;;
5543esac
5544
5545# If we're using GNU nm, then use its standard symbol codes.
5546case `$NM -V 2>&1` in
5547*GNU* | *'with BFD'*)
5548 symcode='[ABCDGIRSTW]' ;;
5549esac
5550
5551# Try without a prefix undercore, then with it.
5552for ac_symprfx in "" "_"; do
5553
5554 # Write the raw and C identifiers.
5555 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5556
5557 # Check to see that the pipe works correctly.
5558 pipe_works=no
5559
5560 rm -f conftest*
5561 cat > conftest.$ac_ext <<EOF
5562#ifdef __cplusplus
5563extern "C" {
5564#endif
5565char nm_test_var;
5566void nm_test_func(){}
5567#ifdef __cplusplus
5568}
5569#endif
5570int main(){nm_test_var='a';nm_test_func();return(0);}
5571EOF
5572
5573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5574 (eval $ac_compile) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; then
5578 # Now try to grab the symbols.
5579 nlist=conftest.nm
5580 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5581 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } && test -s "$nlist"; then
5585 # Try sorting and uniquifying the output.
5586 if sort "$nlist" | uniq > "$nlist"T; then
5587 mv -f "$nlist"T "$nlist"
5588 else
5589 rm -f "$nlist"T
5590 fi
5591
5592 # Make sure that we snagged all the symbols we need.
5593 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5594 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5595 cat <<EOF > conftest.$ac_ext
5596#ifdef __cplusplus
5597extern "C" {
5598#endif
5599
5600EOF
5601 # Now generate the symbol file.
5602 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5603
5604 cat <<EOF >> conftest.$ac_ext
5605#if defined (__STDC__) && __STDC__
5606# define lt_ptr_t void *
5607#else
5608# define lt_ptr_t char *
5609# define const
5610#endif
5611
5612/* The mapping between symbol names and symbols. */
5613const struct {
5614 const char *name;
5615 lt_ptr_t address;
5616}
5617lt_preloaded_symbols[] =
5618{
5619EOF
5620 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5621 cat <<\EOF >> conftest.$ac_ext
5622 {0, (lt_ptr_t) 0}
5623};
5624
5625#ifdef __cplusplus
5626}
5627#endif
5628EOF
5629 # Now try linking the two files.
5630 mv conftest.$ac_objext conftstm.$ac_objext
5631 lt_save_LIBS="$LIBS"
5632 lt_save_CFLAGS="$CFLAGS"
5633 LIBS="conftstm.$ac_objext"
5634 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5636 (eval $ac_link) 2>&5
5637 ac_status=$?
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5640 pipe_works=yes
5641 fi
5642 LIBS="$lt_save_LIBS"
5643 CFLAGS="$lt_save_CFLAGS"
5644 else
5645 echo "cannot find nm_test_func in $nlist" >&5
5646 fi
5647 else
5648 echo "cannot find nm_test_var in $nlist" >&5
5649 fi
5650 else
5651 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5652 fi
5653 else
5654 echo "$progname: failed program was:" >&5
5655 cat conftest.$ac_ext >&5
5656 fi
5657 rm -f conftest* conftst*
5658
5659 # Do not use the global_symbol_pipe unless it works.
5660 if test "$pipe_works" = yes; then
5661 break
5662 else
5663 lt_cv_sys_global_symbol_pipe=
5664 fi
5665done
5666
5667fi
5668
5669if test -z "$lt_cv_sys_global_symbol_pipe"; then
5670 lt_cv_sys_global_symbol_to_cdecl=
5671fi
5672if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5673 echo "$as_me:$LINENO: result: failed" >&5
5674echo "${ECHO_T}failed" >&6
5675else
5676 echo "$as_me:$LINENO: result: ok" >&5
5677echo "${ECHO_T}ok" >&6
5678fi
5679
5680echo "$as_me:$LINENO: checking for objdir" >&5
5681echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5682if test "${lt_cv_objdir+set}" = set; then
5683 echo $ECHO_N "(cached) $ECHO_C" >&6
5684else
5685 rm -f .libs 2>/dev/null
5686mkdir .libs 2>/dev/null
5687if test -d .libs; then
5688 lt_cv_objdir=.libs
5689else
5690 # MS-DOS does not allow filenames that begin with a dot.
5691 lt_cv_objdir=_libs
5692fi
5693rmdir .libs 2>/dev/null
5694fi
5695echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5696echo "${ECHO_T}$lt_cv_objdir" >&6
5697objdir=$lt_cv_objdir
5698
5699
5700
5701
5702
5703case $host_os in
5704aix3*)
5705 # AIX sometimes has problems with the GCC collect2 program. For some
5706 # reason, if we set the COLLECT_NAMES environment variable, the problems
5707 # vanish in a puff of smoke.
5708 if test "X${COLLECT_NAMES+set}" != Xset; then
5709 COLLECT_NAMES=
5710 export COLLECT_NAMES
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005711 fi
5712 ;;
5713esac
5714
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005715# Sed substitution that helps us do robust quoting. It backslashifies
5716# metacharacters that are still active within double-quoted strings.
5717Xsed='sed -e s/^X//'
5718sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5719
5720# Same as above, but do not quote variable references.
5721double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5722
5723# Sed substitution to delay expansion of an escaped shell variable in a
5724# double_quote_subst'ed string.
5725delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5726
5727# Sed substitution to avoid accidental globbing in evaled expressions
5728no_glob_subst='s/\*/\\\*/g'
5729
5730# Constants:
5731rm="rm -f"
5732
5733# Global variables:
5734default_ofile=libtool
5735can_build_shared=yes
5736
5737# All known linkers require a `.a' archive for static linking (except M$VC,
5738# which needs '.lib').
5739libext=a
5740ltmain="$ac_aux_dir/ltmain.sh"
5741ofile="$default_ofile"
5742with_gnu_ld="$lt_cv_prog_gnu_ld"
5743
5744if test -n "$ac_tool_prefix"; then
5745 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5746set dummy ${ac_tool_prefix}ar; ac_word=$2
5747echo "$as_me:$LINENO: checking for $ac_word" >&5
5748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5749if test "${ac_cv_prog_AR+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5751else
5752 if test -n "$AR"; then
5753 ac_cv_prog_AR="$AR" # Let the user override the test.
5754else
5755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756for as_dir in $PATH
5757do
5758 IFS=$as_save_IFS
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5762 ac_cv_prog_AR="${ac_tool_prefix}ar"
5763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 break 2
5765 fi
5766done
5767done
5768
5769fi
5770fi
5771AR=$ac_cv_prog_AR
5772if test -n "$AR"; then
5773 echo "$as_me:$LINENO: result: $AR" >&5
5774echo "${ECHO_T}$AR" >&6
5775else
5776 echo "$as_me:$LINENO: result: no" >&5
5777echo "${ECHO_T}no" >&6
5778fi
5779
5780fi
5781if test -z "$ac_cv_prog_AR"; then
5782 ac_ct_AR=$AR
5783 # Extract the first word of "ar", so it can be a program name with args.
5784set dummy ar; ac_word=$2
5785echo "$as_me:$LINENO: checking for $ac_word" >&5
5786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5787if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5789else
5790 if test -n "$ac_ct_AR"; then
5791 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5792else
5793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794for as_dir in $PATH
5795do
5796 IFS=$as_save_IFS
5797 test -z "$as_dir" && as_dir=.
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5800 ac_cv_prog_ac_ct_AR="ar"
5801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5802 break 2
5803 fi
5804done
5805done
5806
5807 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5808fi
5809fi
5810ac_ct_AR=$ac_cv_prog_ac_ct_AR
5811if test -n "$ac_ct_AR"; then
5812 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5813echo "${ECHO_T}$ac_ct_AR" >&6
5814else
5815 echo "$as_me:$LINENO: result: no" >&5
5816echo "${ECHO_T}no" >&6
5817fi
5818
5819 AR=$ac_ct_AR
5820else
5821 AR="$ac_cv_prog_AR"
5822fi
5823
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005824if test -n "$ac_tool_prefix"; then
5825 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5826set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5827echo "$as_me:$LINENO: checking for $ac_word" >&5
5828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5829if test "${ac_cv_prog_RANLIB+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5831else
5832 if test -n "$RANLIB"; then
5833 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5834else
5835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836for as_dir in $PATH
5837do
5838 IFS=$as_save_IFS
5839 test -z "$as_dir" && as_dir=.
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5842 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 break 2
5845 fi
5846done
5847done
5848
5849fi
5850fi
5851RANLIB=$ac_cv_prog_RANLIB
5852if test -n "$RANLIB"; then
5853 echo "$as_me:$LINENO: result: $RANLIB" >&5
5854echo "${ECHO_T}$RANLIB" >&6
5855else
5856 echo "$as_me:$LINENO: result: no" >&5
5857echo "${ECHO_T}no" >&6
5858fi
5859
5860fi
5861if test -z "$ac_cv_prog_RANLIB"; then
5862 ac_ct_RANLIB=$RANLIB
5863 # Extract the first word of "ranlib", so it can be a program name with args.
5864set dummy ranlib; ac_word=$2
5865echo "$as_me:$LINENO: checking for $ac_word" >&5
5866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5867if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5869else
5870 if test -n "$ac_ct_RANLIB"; then
5871 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5872else
5873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5880 ac_cv_prog_ac_ct_RANLIB="ranlib"
5881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882 break 2
5883 fi
5884done
5885done
5886
5887 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5888fi
5889fi
5890ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5891if test -n "$ac_ct_RANLIB"; then
5892 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5893echo "${ECHO_T}$ac_ct_RANLIB" >&6
5894else
5895 echo "$as_me:$LINENO: result: no" >&5
5896echo "${ECHO_T}no" >&6
5897fi
5898
5899 RANLIB=$ac_ct_RANLIB
5900else
5901 RANLIB="$ac_cv_prog_RANLIB"
5902fi
5903
5904if test -n "$ac_tool_prefix"; then
5905 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5906set dummy ${ac_tool_prefix}strip; ac_word=$2
5907echo "$as_me:$LINENO: checking for $ac_word" >&5
5908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5909if test "${ac_cv_prog_STRIP+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5911else
5912 if test -n "$STRIP"; then
5913 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5914else
5915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916for as_dir in $PATH
5917do
5918 IFS=$as_save_IFS
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5922 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 break 2
5925 fi
5926done
5927done
5928
5929fi
5930fi
5931STRIP=$ac_cv_prog_STRIP
5932if test -n "$STRIP"; then
5933 echo "$as_me:$LINENO: result: $STRIP" >&5
5934echo "${ECHO_T}$STRIP" >&6
5935else
5936 echo "$as_me:$LINENO: result: no" >&5
5937echo "${ECHO_T}no" >&6
5938fi
5939
5940fi
5941if test -z "$ac_cv_prog_STRIP"; then
5942 ac_ct_STRIP=$STRIP
5943 # Extract the first word of "strip", so it can be a program name with args.
5944set dummy strip; ac_word=$2
5945echo "$as_me:$LINENO: checking for $ac_word" >&5
5946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5947if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949else
5950 if test -n "$ac_ct_STRIP"; then
5951 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5952else
5953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954for as_dir in $PATH
5955do
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5960 ac_cv_prog_ac_ct_STRIP="strip"
5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 break 2
5963 fi
5964done
5965done
5966
5967 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5968fi
5969fi
5970ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5971if test -n "$ac_ct_STRIP"; then
5972 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5973echo "${ECHO_T}$ac_ct_STRIP" >&6
5974else
5975 echo "$as_me:$LINENO: result: no" >&5
5976echo "${ECHO_T}no" >&6
5977fi
5978
5979 STRIP=$ac_ct_STRIP
5980else
5981 STRIP="$ac_cv_prog_STRIP"
5982fi
5983
5984
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005985old_CC="$CC"
5986old_CFLAGS="$CFLAGS"
5987
5988# Set sane defaults for various variables
5989test -z "$AR" && AR=ar
5990test -z "$AR_FLAGS" && AR_FLAGS=cru
5991test -z "$AS" && AS=as
5992test -z "$CC" && CC=cc
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005993test -z "$LTCC" && LTCC=$CC
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005994test -z "$DLLTOOL" && DLLTOOL=dlltool
5995test -z "$LD" && LD=ld
5996test -z "$LN_S" && LN_S="ln -s"
5997test -z "$MAGIC_CMD" && MAGIC_CMD=file
5998test -z "$NM" && NM=nm
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005999test -z "$SED" && SED=sed
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006000test -z "$OBJDUMP" && OBJDUMP=objdump
6001test -z "$RANLIB" && RANLIB=:
6002test -z "$STRIP" && STRIP=:
6003test -z "$ac_objext" && ac_objext=o
6004
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006005# Determine commands to create old-style static archives.
6006old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6007old_postinstall_cmds='chmod 644 $oldlib'
6008old_postuninstall_cmds=
6009
6010if test -n "$RANLIB"; then
6011 case $host_os in
6012 openbsd*)
6013 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6014 ;;
6015 *)
6016 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6017 ;;
6018 esac
6019 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6020fi
6021
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006022# Only perform the check for file, if the check method requires it
6023case $deplibs_check_method in
6024file_magic*)
6025 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6026 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6027echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6028if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006030else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006031 case $MAGIC_CMD in
6032[\\/*] | ?:[\\/]*)
6033 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6034 ;;
6035*)
6036 lt_save_MAGIC_CMD="$MAGIC_CMD"
6037 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6038 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6039 for ac_dir in $ac_dummy; do
6040 IFS="$lt_save_ifs"
6041 test -z "$ac_dir" && ac_dir=.
6042 if test -f $ac_dir/${ac_tool_prefix}file; then
6043 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6044 if test -n "$file_magic_test_file"; then
6045 case $deplibs_check_method in
6046 "file_magic "*)
6047 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6048 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6049 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6050 $EGREP "$file_magic_regex" > /dev/null; then
6051 :
6052 else
6053 cat <<EOF 1>&2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006054
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006055*** Warning: the command libtool uses to detect shared libraries,
6056*** $file_magic_cmd, produces output that libtool cannot recognize.
6057*** The result is that libtool may fail to recognize shared libraries
6058*** as such. This will affect the creation of libtool libraries that
6059*** depend on shared libraries, but programs linked with such libtool
6060*** libraries will work regardless of this problem. Nevertheless, you
6061*** may want to report the problem to your system manager and/or to
6062*** bug-libtool@gnu.org
6063
6064EOF
6065 fi ;;
6066 esac
6067 fi
6068 break
6069 fi
6070 done
6071 IFS="$lt_save_ifs"
6072 MAGIC_CMD="$lt_save_MAGIC_CMD"
6073 ;;
6074esac
6075fi
6076
6077MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6078if test -n "$MAGIC_CMD"; then
6079 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6080echo "${ECHO_T}$MAGIC_CMD" >&6
6081else
6082 echo "$as_me:$LINENO: result: no" >&5
6083echo "${ECHO_T}no" >&6
6084fi
6085
6086if test -z "$lt_cv_path_MAGIC_CMD"; then
6087 if test -n "$ac_tool_prefix"; then
6088 echo "$as_me:$LINENO: checking for file" >&5
6089echo $ECHO_N "checking for file... $ECHO_C" >&6
6090if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092else
6093 case $MAGIC_CMD in
6094[\\/*] | ?:[\\/]*)
6095 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6096 ;;
6097*)
6098 lt_save_MAGIC_CMD="$MAGIC_CMD"
6099 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6100 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6101 for ac_dir in $ac_dummy; do
6102 IFS="$lt_save_ifs"
6103 test -z "$ac_dir" && ac_dir=.
6104 if test -f $ac_dir/file; then
6105 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6106 if test -n "$file_magic_test_file"; then
6107 case $deplibs_check_method in
6108 "file_magic "*)
6109 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6110 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6111 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6112 $EGREP "$file_magic_regex" > /dev/null; then
6113 :
6114 else
6115 cat <<EOF 1>&2
6116
6117*** Warning: the command libtool uses to detect shared libraries,
6118*** $file_magic_cmd, produces output that libtool cannot recognize.
6119*** The result is that libtool may fail to recognize shared libraries
6120*** as such. This will affect the creation of libtool libraries that
6121*** depend on shared libraries, but programs linked with such libtool
6122*** libraries will work regardless of this problem. Nevertheless, you
6123*** may want to report the problem to your system manager and/or to
6124*** bug-libtool@gnu.org
6125
6126EOF
6127 fi ;;
6128 esac
6129 fi
6130 break
6131 fi
6132 done
6133 IFS="$lt_save_ifs"
6134 MAGIC_CMD="$lt_save_MAGIC_CMD"
6135 ;;
6136esac
6137fi
6138
6139MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6140if test -n "$MAGIC_CMD"; then
6141 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6142echo "${ECHO_T}$MAGIC_CMD" >&6
6143else
6144 echo "$as_me:$LINENO: result: no" >&5
6145echo "${ECHO_T}no" >&6
6146fi
6147
6148 else
6149 MAGIC_CMD=:
6150 fi
6151fi
6152
6153 fi
6154 ;;
6155esac
6156
6157enable_dlopen=no
6158enable_win32_dll=no
6159
6160# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6161if test "${enable_libtool_lock+set}" = set; then
6162 enableval="$enable_libtool_lock"
6163
6164fi;
6165test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006166
6167
6168# Check whether --with-pic or --without-pic was given.
6169if test "${with_pic+set}" = set; then
6170 withval="$with_pic"
6171 pic_mode="$withval"
6172else
6173 pic_mode=default
6174fi;
6175test -z "$pic_mode" && pic_mode=default
6176
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006177# Use C for the default configuration in the libtool script
6178tagname=
6179lt_save_CC="$CC"
6180ac_ext=c
6181ac_cpp='$CPP $CPPFLAGS'
6182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6184ac_compiler_gnu=$ac_cv_c_compiler_gnu
6185
6186
6187# Source file extension for C test sources.
6188ac_ext=c
6189
6190# Object file extension for compiled C test sources.
6191objext=o
6192objext=$objext
6193
6194# Code to be used in simple compile tests
6195lt_simple_compile_test_code="int some_variable = 0;\n"
6196
6197# Code to be used in simple link tests
6198lt_simple_link_test_code='int main(){return(0);}\n'
6199
6200
6201# If no C compiler was specified, use CC.
6202LTCC=${LTCC-"$CC"}
6203
6204# Allow CC to be a program name with arguments.
6205compiler=$CC
6206
6207
6208#
6209# Check for any special shared library compilation flags.
6210#
6211lt_prog_cc_shlib=
6212if test "$GCC" = no; then
6213 case $host_os in
6214 sco3.2v5*)
6215 lt_prog_cc_shlib='-belf'
6216 ;;
6217 esac
6218fi
6219if test -n "$lt_prog_cc_shlib"; then
6220 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6221echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6222 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6223 else
6224 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6225echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6226 lt_cv_prog_cc_can_build_shared=no
6227 fi
6228fi
6229
6230
6231#
6232# Check to make sure the static flag actually works.
6233#
6234echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6235echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6236if test "${lt_prog_compiler_static_works+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006237 echo $ECHO_N "(cached) $ECHO_C" >&6
6238else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006239 lt_prog_compiler_static_works=no
6240 save_LDFLAGS="$LDFLAGS"
6241 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6242 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6243 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6244 # The compiler can only warn and ignore the option if not recognized
6245 # So say no if there are warnings
6246 if test -s conftest.err; then
6247 # Append any errors to the config.log.
6248 cat conftest.err 1>&5
6249 else
6250 lt_prog_compiler_static_works=yes
6251 fi
6252 fi
6253 $rm conftest*
6254 LDFLAGS="$save_LDFLAGS"
6255
6256fi
6257echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6258echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6259
6260if test x"$lt_prog_compiler_static_works" = xyes; then
6261 :
6262else
6263 lt_prog_compiler_static=
6264fi
6265
6266
6267
6268
6269lt_prog_compiler_no_builtin_flag=
6270
6271if test "$GCC" = yes; then
6272 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6273
6274
6275echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6276echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6277if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6279else
6280 lt_cv_prog_compiler_rtti_exceptions=no
6281 ac_outfile=conftest.$ac_objext
6282 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6283 lt_compiler_flag="-fno-rtti -fno-exceptions"
6284 # Insert the option either (1) after the last *FLAGS variable, or
6285 # (2) before a word containing "conftest.", or (3) at the end.
6286 # Note that $ac_compile itself does not contain backslashes and begins
6287 # with a dollar sign (not a hyphen), so the echo should work correctly.
6288 # The option is referenced via a variable to avoid confusing sed.
6289 lt_compile=`echo "$ac_compile" | $SED \
6290 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6292 -e 's:$: $lt_compiler_flag:'`
hp.com!davidmb1d369a2003-11-26 18:59:24 +00006293 (eval echo "\"\$as_me:6293: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006294 (eval "$lt_compile" 2>conftest.err)
6295 ac_status=$?
6296 cat conftest.err >&5
hp.com!davidmb1d369a2003-11-26 18:59:24 +00006297 echo "$as_me:6297: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006298 if (exit $ac_status) && test -s "$ac_outfile"; then
6299 # The compiler can only warn and ignore the option if not recognized
6300 # So say no if there are warnings
6301 if test ! -s conftest.err; then
6302 lt_cv_prog_compiler_rtti_exceptions=yes
6303 fi
6304 fi
6305 $rm conftest*
6306
6307fi
6308echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6309echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6310
6311if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6312 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6313else
6314 :
6315fi
6316
6317fi
6318
6319lt_prog_compiler_wl=
6320lt_prog_compiler_pic=
6321lt_prog_compiler_static=
6322
6323echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6324echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006325
6326 if test "$GCC" = yes; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006327 lt_prog_compiler_wl='-Wl,'
6328 lt_prog_compiler_static='-static'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006329
6330 case $host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006331 aix*)
6332 # All AIX code is PIC.
6333 if test "$host_cpu" = ia64; then
6334 # AIX 5 now supports IA64 processor
6335 lt_prog_compiler_static='-Bstatic'
6336 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006337 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006338
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006339 amigaos*)
6340 # FIXME: we need at least 68020 code to build shared libraries, but
6341 # adding the `-m68020' flag to GCC prevents building anything better,
6342 # like `-m68040'.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006343 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006344 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006345
6346 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006347 # PIC is the default for these OSes.
6348 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006349
6350 mingw* | pw32* | os2*)
6351 # This hack is so that the source file can tell whether it is being
6352 # built for inclusion in a dll (and should export symbols for example).
6353 lt_prog_compiler_pic='-DDLL_EXPORT'
6354 ;;
6355
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006356 darwin* | rhapsody*)
6357 # PIC is the default on this platform
6358 # Common symbols not allowed in MH_DYLIB files
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006359 lt_prog_compiler_pic='-fno-common'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006360 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006361
6362 msdosdjgpp*)
6363 # Just because we use GCC doesn't mean we suddenly get shared libraries
6364 # on systems that don't support them.
6365 lt_prog_compiler_can_build_shared=no
6366 enable_shared=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006367 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006368
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006369 sysv4*MP*)
6370 if test -d /usr/nec; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006371 lt_prog_compiler_pic=-Kconform_pic
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006372 fi
6373 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006374
6375 hpux*)
6376 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6377 # not for PA HP-UX.
6378 case "$host_cpu" in
6379 hppa*64*|ia64*)
6380 # +Z the default
6381 ;;
6382 *)
6383 lt_prog_compiler_pic='-fPIC'
6384 ;;
6385 esac
6386 ;;
6387
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006388 *)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006389 lt_prog_compiler_pic='-fPIC'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006390 ;;
6391 esac
6392 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006393 # PORTME Check for flag to pass linker flags through the system compiler.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006394 case $host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006395 aix*)
6396 lt_prog_compiler_wl='-Wl,'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006397 if test "$host_cpu" = ia64; then
6398 # AIX 5 now supports IA64 processor
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006399 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006400 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006401 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006402 fi
6403 ;;
6404
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006405 mingw* | pw32* | os2*)
6406 # This hack is so that the source file can tell whether it is being
6407 # built for inclusion in a dll (and should export symbols for example).
6408 lt_prog_compiler_pic='-DDLL_EXPORT'
6409 ;;
6410
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006411 hpux9* | hpux10* | hpux11*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006412 lt_prog_compiler_wl='-Wl,'
6413 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6414 # not for PA HP-UX.
6415 case "$host_cpu" in
6416 hppa*64*|ia64*)
6417 # +Z the default
6418 ;;
6419 *)
6420 lt_prog_compiler_pic='+Z'
6421 ;;
6422 esac
6423 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6424 lt_prog_compiler_static='${wl}-a ${wl}archive'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006425 ;;
6426
6427 irix5* | irix6* | nonstopux*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006428 lt_prog_compiler_wl='-Wl,'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006429 # PIC (with -KPIC) is the default.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006430 lt_prog_compiler_static='-non_shared'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006431 ;;
6432
6433 newsos6)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006434 lt_prog_compiler_pic='-KPIC'
6435 lt_prog_compiler_static='-Bstatic'
6436 ;;
6437
6438 linux*)
6439 case $CC in
6440 icc* | ecc*)
6441 lt_prog_compiler_wl='-Wl,'
6442 lt_prog_compiler_pic='-KPIC'
6443 lt_prog_compiler_static='-static'
6444 ;;
6445 ccc*)
6446 lt_prog_compiler_wl='-Wl,'
6447 # All Alpha code is PIC.
6448 lt_prog_compiler_static='-non_shared'
6449 ;;
6450 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006451 ;;
6452
6453 osf3* | osf4* | osf5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006454 lt_prog_compiler_wl='-Wl,'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006455 # All OSF/1 code is PIC.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006456 lt_prog_compiler_static='-non_shared'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006457 ;;
6458
6459 sco3.2v5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006460 lt_prog_compiler_pic='-Kpic'
6461 lt_prog_compiler_static='-dn'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006462 ;;
6463
6464 solaris*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006465 lt_prog_compiler_wl='-Wl,'
6466 lt_prog_compiler_pic='-KPIC'
6467 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006468 ;;
6469
6470 sunos4*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006471 lt_prog_compiler_wl='-Qoption ld '
6472 lt_prog_compiler_pic='-PIC'
6473 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006474 ;;
6475
6476 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006477 lt_prog_compiler_wl='-Wl,'
6478 lt_prog_compiler_pic='-KPIC'
6479 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006480 ;;
6481
6482 sysv4*MP*)
6483 if test -d /usr/nec ;then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006484 lt_prog_compiler_pic='-Kconform_pic'
6485 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006486 fi
6487 ;;
6488
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006489 uts4*)
6490 lt_prog_compiler_pic='-pic'
6491 lt_prog_compiler_static='-Bstatic'
6492 ;;
6493
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006494 *)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006495 lt_prog_compiler_can_build_shared=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006496 ;;
6497 esac
6498 fi
6499
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006500echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6501echo "${ECHO_T}$lt_prog_compiler_pic" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006502
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006503#
6504# Check to make sure the PIC flag actually works.
6505#
6506if test -n "$lt_prog_compiler_pic"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006507
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006508echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6509echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6510if test "${lt_prog_compiler_pic_works+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006513 lt_prog_compiler_pic_works=no
6514 ac_outfile=conftest.$ac_objext
6515 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6516 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6517 # Insert the option either (1) after the last *FLAGS variable, or
6518 # (2) before a word containing "conftest.", or (3) at the end.
6519 # Note that $ac_compile itself does not contain backslashes and begins
6520 # with a dollar sign (not a hyphen), so the echo should work correctly.
6521 # The option is referenced via a variable to avoid confusing sed.
6522 lt_compile=`echo "$ac_compile" | $SED \
6523 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6525 -e 's:$: $lt_compiler_flag:'`
hp.com!davidmb1d369a2003-11-26 18:59:24 +00006526 (eval echo "\"\$as_me:6526: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006527 (eval "$lt_compile" 2>conftest.err)
6528 ac_status=$?
6529 cat conftest.err >&5
hp.com!davidmb1d369a2003-11-26 18:59:24 +00006530 echo "$as_me:6530: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006531 if (exit $ac_status) && test -s "$ac_outfile"; then
6532 # The compiler can only warn and ignore the option if not recognized
6533 # So say no if there are warnings
6534 if test ! -s conftest.err; then
6535 lt_prog_compiler_pic_works=yes
6536 fi
6537 fi
6538 $rm conftest*
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006539
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006540fi
6541echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6542echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006543
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006544if test x"$lt_prog_compiler_pic_works" = xyes; then
6545 case $lt_prog_compiler_pic in
6546 "" | " "*) ;;
6547 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6548 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006549else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006550 lt_prog_compiler_pic=
6551 lt_prog_compiler_can_build_shared=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006552fi
6553
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006554fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006555case "$host_os" in
6556 # For platforms which do not support PIC, -DPIC is meaningless:
6557 *djgpp*)
6558 lt_prog_compiler_pic=
6559 ;;
6560 *)
6561 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6562 ;;
6563esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006564
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006565echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6566echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006567if test "${lt_cv_prog_compiler_c_o+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006568 echo $ECHO_N "(cached) $ECHO_C" >&6
6569else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006570 lt_cv_prog_compiler_c_o=no
6571 $rm -r conftest 2>/dev/null
6572 mkdir conftest
6573 cd conftest
6574 mkdir out
6575 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006576
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006577 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6578 # that will create temporary files in the current directory regardless of
6579 # the output directory. Thus, making CWD read-only will cause this test
6580 # to fail, enabling locking or at least warning the user not to do parallel
6581 # builds.
6582 chmod -w .
6583
6584 lt_compiler_flag="-o out/conftest2.$ac_objext"
6585 # Insert the option either (1) after the last *FLAGS variable, or
6586 # (2) before a word containing "conftest.", or (3) at the end.
6587 # Note that $ac_compile itself does not contain backslashes and begins
6588 # with a dollar sign (not a hyphen), so the echo should work correctly.
6589 lt_compile=`echo "$ac_compile" | $SED \
6590 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6592 -e 's:$: $lt_compiler_flag:'`
hp.com!davidmb1d369a2003-11-26 18:59:24 +00006593 (eval echo "\"\$as_me:6593: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006594 (eval "$lt_compile" 2>out/conftest.err)
6595 ac_status=$?
6596 cat out/conftest.err >&5
hp.com!davidmb1d369a2003-11-26 18:59:24 +00006597 echo "$as_me:6597: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006598 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6599 then
6600 # The compiler can only warn and ignore the option if not recognized
6601 # So say no if there are warnings
6602 if test ! -s out/conftest.err; then
6603 lt_cv_prog_compiler_c_o=yes
6604 fi
6605 fi
6606 chmod u+w .
6607 $rm conftest*
6608 # SGI C++ compiler will create directory out/ii_files/ for
6609 # template instantiation
6610 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6611 $rm out/* && rmdir out
6612 cd ..
6613 rmdir conftest
6614 $rm conftest*
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006615
6616fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006617echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6618echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006619
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006620
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006621hard_links="nottested"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006622if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006623 # do not overwrite the value of need_locks provided by the user
6624 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6625echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6626 hard_links=yes
6627 $rm conftest*
6628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6629 touch conftest.a
6630 ln conftest.a conftest.b 2>&5 || hard_links=no
6631 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6632 echo "$as_me:$LINENO: result: $hard_links" >&5
6633echo "${ECHO_T}$hard_links" >&6
6634 if test "$hard_links" = no; then
6635 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6636echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6637 need_locks=warn
6638 fi
6639else
6640 need_locks=no
6641fi
6642
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006643echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6644echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006645
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006646 runpath_var=
6647 allow_undefined_flag=
6648 enable_shared_with_static_runtimes=no
6649 archive_cmds=
6650 archive_expsym_cmds=
6651 old_archive_From_new_cmds=
6652 old_archive_from_expsyms_cmds=
6653 export_dynamic_flag_spec=
6654 whole_archive_flag_spec=
6655 thread_safe_flag_spec=
6656 hardcode_libdir_flag_spec=
6657 hardcode_libdir_flag_spec_ld=
6658 hardcode_libdir_separator=
6659 hardcode_direct=no
6660 hardcode_minus_L=no
6661 hardcode_shlibpath_var=unsupported
6662 link_all_deplibs=unknown
6663 hardcode_automatic=no
6664 module_cmds=
6665 module_expsym_cmds=
6666 always_export_symbols=no
6667 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6668 # include_expsyms should be a list of space-separated symbols to be *always*
6669 # included in the symbol list
6670 include_expsyms=
6671 # exclude_expsyms can be an extended regexp of symbols to exclude
6672 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6673 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6674 # as well as any symbol that contains `d'.
6675 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6676 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6677 # platforms (ab)use it in PIC code, but their linkers get confused if
6678 # the symbol is explicitly referenced. Since portable code cannot
6679 # rely on this symbol name, it's probably fine to never include it in
6680 # preloaded symbol tables.
6681 extract_expsyms_cmds=
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006682
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006683 case $host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006684 cygwin* | mingw* | pw32*)
6685 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6686 # When not using gcc, we currently assume that we are using
6687 # Microsoft Visual C++.
6688 if test "$GCC" != yes; then
6689 with_gnu_ld=no
6690 fi
6691 ;;
6692 openbsd*)
6693 with_gnu_ld=no
6694 ;;
6695 esac
6696
6697 ld_shlibs=yes
6698 if test "$with_gnu_ld" = yes; then
6699 # If archive_cmds runs LD, not CC, wlarc should be empty
6700 wlarc='${wl}'
6701
6702 # See if GNU ld supports shared libraries.
6703 case $host_os in
6704 aix3* | aix4* | aix5*)
6705 # On AIX/PPC, the GNU linker is very broken
6706 if test "$host_cpu" != ia64; then
6707 ld_shlibs=no
6708 cat <<EOF 1>&2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006709
6710*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6711*** to be unable to reliably create shared libraries on AIX.
6712*** Therefore, libtool is disabling shared libraries support. If you
6713*** really care for shared libraries, you may want to modify your PATH
6714*** so that a non-GNU linker is found, and then restart.
6715
6716EOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006717 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006718 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006719
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006720 amigaos*)
6721 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)'
6722 hardcode_libdir_flag_spec='-L$libdir'
6723 hardcode_minus_L=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006724
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006725 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6726 # that the semantics of dynamic libraries on AmigaOS, at least up
6727 # to version 4, is to share data among multiple programs linked
6728 # with the same dynamic library. Since this doesn't match the
6729 # behavior of shared libraries on other platforms, we can't use
6730 # them.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006731 ld_shlibs=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006732 ;;
6733
6734 beos*)
6735 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6736 allow_undefined_flag=unsupported
6737 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6738 # support --undefined. This deserves some investigation. FIXME
6739 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6740 else
6741 ld_shlibs=no
6742 fi
6743 ;;
6744
6745 cygwin* | mingw* | pw32*)
6746 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6747 # as there is no search path for DLLs.
6748 hardcode_libdir_flag_spec='-L$libdir'
6749 allow_undefined_flag=unsupported
6750 always_export_symbols=no
6751 enable_shared_with_static_runtimes=yes
6752 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6753
6754 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6755 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6756 # If the export-symbols file already is a .def file (1st line
6757 # is EXPORTS), use it as is; otherwise, prepend...
6758 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6759 cp $export_symbols $output_objdir/$soname.def;
6760 else
6761 echo EXPORTS > $output_objdir/$soname.def;
6762 cat $export_symbols >> $output_objdir/$soname.def;
6763 fi~
6764 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6765 else
6766 ld_shlibs=no
6767 fi
6768 ;;
6769
6770 netbsd*)
6771 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6772 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6773 wlarc=
6774 else
6775 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6776 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6777 fi
6778 ;;
6779
6780 solaris* | sysv5*)
6781 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6782 ld_shlibs=no
6783 cat <<EOF 1>&2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006784
6785*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6786*** create shared libraries on Solaris systems. Therefore, libtool
6787*** is disabling shared libraries support. We urge you to upgrade GNU
6788*** binutils to release 2.9.1 or newer. Another option is to modify
6789*** your PATH or compiler configuration so that the native linker is
6790*** used, and then restart.
6791
6792EOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006793 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6795 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 +00006796 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006797 ld_shlibs=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006798 fi
6799 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006800
6801 sunos4*)
6802 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6803 wlarc=
6804 hardcode_direct=yes
6805 hardcode_shlibpath_var=no
6806 ;;
6807
6808 linux*)
6809 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6810 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6811 archive_cmds="$tmp_archive_cmds"
6812 supports_anon_versioning=no
6813 case `$LD -v 2>/dev/null` in
6814 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6815 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6816 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6817 *\ 2.11.*) ;; # other 2.11 versions
6818 *) supports_anon_versioning=yes ;;
6819 esac
6820 if test $supports_anon_versioning = yes; then
6821 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6822cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6823$echo "local: *; };" >> $output_objdir/$libname.ver~
6824 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6825 else
6826 archive_expsym_cmds="$tmp_archive_cmds"
6827 fi
6828 else
6829 ld_shlibs=no
6830 fi
6831 ;;
6832
6833 *)
6834 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6836 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6837 else
6838 ld_shlibs=no
6839 fi
6840 ;;
6841 esac
6842
6843 if test "$ld_shlibs" = yes; then
6844 runpath_var=LD_RUN_PATH
6845 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6846 export_dynamic_flag_spec='${wl}--export-dynamic'
6847 # ancient GNU ld didn't support --whole-archive et. al.
6848 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6849 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6850 else
6851 whole_archive_flag_spec=
6852 fi
6853 fi
6854 else
6855 # PORTME fill in a description of your system's linker (not GNU ld)
6856 case $host_os in
6857 aix3*)
6858 allow_undefined_flag=unsupported
6859 always_export_symbols=yes
6860 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'
6861 # Note: this linker hardcodes the directories in LIBPATH if there
6862 # are no directories specified by -L.
6863 hardcode_minus_L=yes
6864 if test "$GCC" = yes && test -z "$link_static_flag"; then
6865 # Neither direct hardcoding nor static linking is supported with a
6866 # broken collect2.
6867 hardcode_direct=unsupported
6868 fi
6869 ;;
6870
6871 aix4* | aix5*)
6872 if test "$host_cpu" = ia64; then
6873 # On IA64, the linker does run time linking by default, so we don't
6874 # have to do anything special.
6875 aix_use_runtimelinking=no
6876 exp_sym_flag='-Bexport'
6877 no_entry_flag=""
6878 else
6879 # If we're using GNU nm, then we don't want the "-C" option.
6880 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6881 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6882 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'
6883 else
6884 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'
6885 fi
6886 aix_use_runtimelinking=no
6887
6888 # Test if we are trying to use run time linking or normal
6889 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6890 # need to do runtime linking.
6891 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6892 for ld_flag in $LDFLAGS; do
6893 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6894 aix_use_runtimelinking=yes
6895 break
6896 fi
6897 done
6898 esac
6899
6900 exp_sym_flag='-bexport'
6901 no_entry_flag='-bnoentry'
6902 fi
6903
6904 # When large executables or shared objects are built, AIX ld can
6905 # have problems creating the table of contents. If linking a library
6906 # or program results in "error TOC overflow" add -mminimal-toc to
6907 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6908 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6909
6910 archive_cmds=''
6911 hardcode_direct=yes
6912 hardcode_libdir_separator=':'
6913 link_all_deplibs=yes
6914
6915 if test "$GCC" = yes; then
6916 case $host_os in aix4.012|aix4.012.*)
6917 # We only want to do this on AIX 4.2 and lower, the check
6918 # below for broken collect2 doesn't work under 4.3+
6919 collect2name=`${CC} -print-prog-name=collect2`
6920 if test -f "$collect2name" && \
6921 strings "$collect2name" | grep resolve_lib_name >/dev/null
6922 then
6923 # We have reworked collect2
6924 hardcode_direct=yes
6925 else
6926 # We have old collect2
6927 hardcode_direct=unsupported
6928 # It fails to find uninstalled libraries when the uninstalled
6929 # path is not listed in the libpath. Setting hardcode_minus_L
6930 # to unsupported forces relinking
6931 hardcode_minus_L=yes
6932 hardcode_libdir_flag_spec='-L$libdir'
6933 hardcode_libdir_separator=
6934 fi
6935 esac
6936 shared_flag='-shared'
6937 else
6938 # not using gcc
6939 if test "$host_cpu" = ia64; then
6940 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6941 # chokes on -Wl,-G. The following line is correct:
6942 shared_flag='-G'
6943 else
6944 if test "$aix_use_runtimelinking" = yes; then
6945 shared_flag='${wl}-G'
6946 else
6947 shared_flag='${wl}-bM:SRE'
6948 fi
6949 fi
6950 fi
6951
6952 # It seems that -bexpall does not export symbols beginning with
6953 # underscore (_), so it is better to generate a list of symbols to export.
6954 always_export_symbols=yes
6955 if test "$aix_use_runtimelinking" = yes; then
6956 # Warning - without using the other runtime loading flags (-brtl),
6957 # -berok will link without error, but may produce a broken library.
6958 allow_undefined_flag='-berok'
6959 # Determine the default libpath from the value encoded in an empty executable.
6960 cat >conftest.$ac_ext <<_ACEOF
6961/* confdefs.h. */
6962_ACEOF
6963cat confdefs.h >>conftest.$ac_ext
6964cat >>conftest.$ac_ext <<_ACEOF
6965/* end confdefs.h. */
6966
6967int
6968main ()
6969{
6970
6971 ;
6972 return 0;
6973}
6974_ACEOF
6975rm -f conftest.$ac_objext conftest$ac_exeext
6976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6977 (eval $ac_link) 2>conftest.er1
6978 ac_status=$?
6979 grep -v '^ *+' conftest.er1 >conftest.err
6980 rm -f conftest.er1
6981 cat conftest.err >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } &&
6984 { ac_try='test -z "$ac_c_werror_flag"
6985 || test ! -s conftest.err'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 (eval $ac_try) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; } &&
6991 { ac_try='test -s conftest$ac_exeext'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993 (eval $ac_try) 2>&5
6994 ac_status=$?
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; }; then
6997
6998aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6999}'`
7000# Check for a 64-bit object if we didn't find anything.
7001if 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; }
7002}'`; fi
7003else
7004 echo "$as_me: failed program was:" >&5
7005sed 's/^/| /' conftest.$ac_ext >&5
7006
7007fi
7008rm -f conftest.err conftest.$ac_objext \
7009 conftest$ac_exeext conftest.$ac_ext
7010if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7011
7012 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7013 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"
7014 else
7015 if test "$host_cpu" = ia64; then
7016 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7017 allow_undefined_flag="-z nodefs"
7018 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"
7019 else
7020 # Determine the default libpath from the value encoded in an empty executable.
7021 cat >conftest.$ac_ext <<_ACEOF
7022/* confdefs.h. */
7023_ACEOF
7024cat confdefs.h >>conftest.$ac_ext
7025cat >>conftest.$ac_ext <<_ACEOF
7026/* end confdefs.h. */
7027
7028int
7029main ()
7030{
7031
7032 ;
7033 return 0;
7034}
7035_ACEOF
7036rm -f conftest.$ac_objext conftest$ac_exeext
7037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7038 (eval $ac_link) 2>conftest.er1
7039 ac_status=$?
7040 grep -v '^ *+' conftest.er1 >conftest.err
7041 rm -f conftest.er1
7042 cat conftest.err >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } &&
7045 { ac_try='test -z "$ac_c_werror_flag"
7046 || test ! -s conftest.err'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 (eval $ac_try) 2>&5
7049 ac_status=$?
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; } &&
7052 { ac_try='test -s conftest$ac_exeext'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 (eval $ac_try) 2>&5
7055 ac_status=$?
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; }; then
7058
7059aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7060}'`
7061# Check for a 64-bit object if we didn't find anything.
7062if 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; }
7063}'`; fi
7064else
7065 echo "$as_me: failed program was:" >&5
7066sed 's/^/| /' conftest.$ac_ext >&5
7067
7068fi
7069rm -f conftest.err conftest.$ac_objext \
7070 conftest$ac_exeext conftest.$ac_ext
7071if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7072
7073 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7074 # Warning - without using the other run time loading flags,
7075 # -berok will link without error, but may produce a broken library.
7076 no_undefined_flag=' ${wl}-bernotok'
7077 allow_undefined_flag=' ${wl}-berok'
7078 # -bexpall does not export symbols beginning with underscore (_)
7079 always_export_symbols=yes
7080 # Exported symbols can be pulled into shared objects from archives
7081 whole_archive_flag_spec=' '
7082 archive_cmds_need_lc=yes
7083 # This is similar to how AIX traditionally builds it's shared libraries.
7084 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'
7085 fi
7086 fi
7087 ;;
7088
7089 amigaos*)
7090 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)'
7091 hardcode_libdir_flag_spec='-L$libdir'
7092 hardcode_minus_L=yes
7093 # see comment about different semantics on the GNU ld section
7094 ld_shlibs=no
7095 ;;
7096
7097 bsdi4*)
7098 export_dynamic_flag_spec=-rdynamic
7099 ;;
7100
7101 cygwin* | mingw* | pw32*)
7102 # When not using gcc, we currently assume that we are using
7103 # Microsoft Visual C++.
7104 # hardcode_libdir_flag_spec is actually meaningless, as there is
7105 # no search path for DLLs.
7106 hardcode_libdir_flag_spec=' '
7107 allow_undefined_flag=unsupported
7108 # Tell ltmain to make .lib files, not .a files.
7109 libext=lib
7110 # Tell ltmain to make .dll files, not .so files.
7111 shrext=".dll"
7112 # FIXME: Setting linknames here is a bad hack.
7113 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7114 # The linker will automatically build a .lib file if we build a DLL.
7115 old_archive_From_new_cmds='true'
7116 # FIXME: Should let the user specify the lib program.
7117 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7118 fix_srcfile_path='`cygpath -w "$srcfile"`'
7119 enable_shared_with_static_runtimes=yes
7120 ;;
7121
7122 darwin* | rhapsody*)
7123 if test "$GXX" = yes ; then
7124 archive_cmds_need_lc=no
7125 case "$host_os" in
7126 rhapsody* | darwin1.[012])
7127 allow_undefined_flag='-undefined suppress'
7128 ;;
7129 *) # Darwin 1.3 on
7130 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7131 allow_undefined_flag='-flat_namespace -undefined suppress'
7132 else
7133 case ${MACOSX_DEPLOYMENT_TARGET} in
7134 10.[012])
7135 allow_undefined_flag='-flat_namespace -undefined suppress'
7136 ;;
7137 10.*)
7138 allow_undefined_flag='-undefined dynamic_lookup'
7139 ;;
7140 esac
7141 fi
7142 ;;
7143 esac
7144 lt_int_apple_cc_single_mod=no
7145 output_verbose_link_cmd='echo'
7146 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7147 lt_int_apple_cc_single_mod=yes
7148 fi
7149 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7150 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7151 else
7152 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'
7153 fi
7154 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7155 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7156 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7157 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}'
7158 else
7159 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}'
7160 fi
7161 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}'
7162 hardcode_direct=no
7163 hardcode_automatic=yes
7164 hardcode_shlibpath_var=unsupported
7165 whole_archive_flag_spec='-all_load $convenience'
7166 link_all_deplibs=yes
7167 else
7168 ld_shlibs=no
7169 fi
7170 ;;
7171
7172 dgux*)
7173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7174 hardcode_libdir_flag_spec='-L$libdir'
7175 hardcode_shlibpath_var=no
7176 ;;
7177
7178 freebsd1*)
7179 ld_shlibs=no
7180 ;;
7181
7182 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7183 # support. Future versions do this automatically, but an explicit c++rt0.o
7184 # does not break anything, and helps significantly (at the cost of a little
7185 # extra space).
7186 freebsd2.2*)
7187 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7188 hardcode_libdir_flag_spec='-R$libdir'
7189 hardcode_direct=yes
7190 hardcode_shlibpath_var=no
7191 ;;
7192
7193 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7194 freebsd2*)
7195 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7196 hardcode_direct=yes
7197 hardcode_minus_L=yes
7198 hardcode_shlibpath_var=no
7199 ;;
7200
7201 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7202 freebsd* | kfreebsd*-gnu)
7203 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7204 hardcode_libdir_flag_spec='-R$libdir'
7205 hardcode_direct=yes
7206 hardcode_shlibpath_var=no
7207 ;;
7208
7209 hpux9*)
7210 if test "$GCC" = yes; then
7211 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'
7212 else
7213 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'
7214 fi
7215 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7216 hardcode_libdir_separator=:
7217 hardcode_direct=yes
7218
7219 # hardcode_minus_L: Not really in the search PATH,
7220 # but as the default location of the library.
7221 hardcode_minus_L=yes
7222 export_dynamic_flag_spec='${wl}-E'
7223 ;;
7224
7225 hpux10* | hpux11*)
7226 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7227 case "$host_cpu" in
7228 hppa*64*|ia64*)
7229 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7230 ;;
7231 *)
7232 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7233 ;;
7234 esac
7235 else
7236 case "$host_cpu" in
7237 hppa*64*|ia64*)
7238 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7239 ;;
7240 *)
7241 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7242 ;;
7243 esac
7244 fi
7245 if test "$with_gnu_ld" = no; then
7246 case "$host_cpu" in
7247 hppa*64*)
7248 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7249 hardcode_libdir_flag_spec_ld='+b $libdir'
7250 hardcode_libdir_separator=:
7251 hardcode_direct=no
7252 hardcode_shlibpath_var=no
7253 ;;
7254 ia64*)
7255 hardcode_libdir_flag_spec='-L$libdir'
7256 hardcode_direct=no
7257 hardcode_shlibpath_var=no
7258
7259 # hardcode_minus_L: Not really in the search PATH,
7260 # but as the default location of the library.
7261 hardcode_minus_L=yes
7262 ;;
7263 *)
7264 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7265 hardcode_libdir_separator=:
7266 hardcode_direct=yes
7267 export_dynamic_flag_spec='${wl}-E'
7268
7269 # hardcode_minus_L: Not really in the search PATH,
7270 # but as the default location of the library.
7271 hardcode_minus_L=yes
7272 ;;
7273 esac
7274 fi
7275 ;;
7276
7277 irix5* | irix6* | nonstopux*)
7278 if test "$GCC" = yes; then
7279 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'
7280 else
7281 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'
7282 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7283 fi
7284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7285 hardcode_libdir_separator=:
7286 link_all_deplibs=yes
7287 ;;
7288
7289 netbsd*)
7290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7292 else
7293 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7294 fi
7295 hardcode_libdir_flag_spec='-R$libdir'
7296 hardcode_direct=yes
7297 hardcode_shlibpath_var=no
7298 ;;
7299
7300 newsos6)
7301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7302 hardcode_direct=yes
7303 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7304 hardcode_libdir_separator=:
7305 hardcode_shlibpath_var=no
7306 ;;
7307
7308 openbsd*)
7309 hardcode_direct=yes
7310 hardcode_shlibpath_var=no
7311 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7312 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7313 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7314 export_dynamic_flag_spec='${wl}-E'
7315 else
7316 case $host_os in
7317 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7318 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7319 hardcode_libdir_flag_spec='-R$libdir'
7320 ;;
7321 *)
7322 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7323 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7324 ;;
7325 esac
7326 fi
7327 ;;
7328
7329 os2*)
7330 hardcode_libdir_flag_spec='-L$libdir'
7331 hardcode_minus_L=yes
7332 allow_undefined_flag=unsupported
7333 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'
7334 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7335 ;;
7336
7337 osf3*)
7338 if test "$GCC" = yes; then
7339 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7340 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'
7341 else
7342 allow_undefined_flag=' -expect_unresolved \*'
7343 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'
7344 fi
7345 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7346 hardcode_libdir_separator=:
7347 ;;
7348
7349 osf4* | osf5*) # as osf3* with the addition of -msym flag
7350 if test "$GCC" = yes; then
7351 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7352 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'
7353 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7354 else
7355 allow_undefined_flag=' -expect_unresolved \*'
7356 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'
7357 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7358 $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'
7359
7360 # Both c and cxx compiler support -rpath directly
7361 hardcode_libdir_flag_spec='-rpath $libdir'
7362 fi
7363 hardcode_libdir_separator=:
7364 ;;
7365
7366 sco3.2v5*)
7367 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7368 hardcode_shlibpath_var=no
7369 export_dynamic_flag_spec='${wl}-Bexport'
7370 runpath_var=LD_RUN_PATH
7371 hardcode_runpath_var=yes
7372 ;;
7373
7374 solaris*)
7375 no_undefined_flag=' -z text'
7376 if test "$GCC" = yes; then
7377 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7378 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7379 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7380 else
7381 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7382 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7383 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7384 fi
7385 hardcode_libdir_flag_spec='-R$libdir'
7386 hardcode_shlibpath_var=no
7387 case $host_os in
7388 solaris2.[0-5] | solaris2.[0-5].*) ;;
7389 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7390 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7391 esac
7392 link_all_deplibs=yes
7393 ;;
7394
7395 sunos4*)
7396 if test "x$host_vendor" = xsequent; then
7397 # Use $CC to link under sequent, because it throws in some extra .o
7398 # files that make .init and .fini sections work.
7399 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7400 else
7401 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7402 fi
7403 hardcode_libdir_flag_spec='-L$libdir'
7404 hardcode_direct=yes
7405 hardcode_minus_L=yes
7406 hardcode_shlibpath_var=no
7407 ;;
7408
7409 sysv4)
7410 case $host_vendor in
7411 sni)
7412 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7413 hardcode_direct=yes # is this really true???
7414 ;;
7415 siemens)
7416 ## LD is ld it makes a PLAMLIB
7417 ## CC just makes a GrossModule.
7418 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7419 reload_cmds='$CC -r -o $output$reload_objs'
7420 hardcode_direct=no
7421 ;;
7422 motorola)
7423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7424 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7425 ;;
7426 esac
7427 runpath_var='LD_RUN_PATH'
7428 hardcode_shlibpath_var=no
7429 ;;
7430
7431 sysv4.3*)
7432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7433 hardcode_shlibpath_var=no
7434 export_dynamic_flag_spec='-Bexport'
7435 ;;
7436
7437 sysv4*MP*)
7438 if test -d /usr/nec; then
7439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7440 hardcode_shlibpath_var=no
7441 runpath_var=LD_RUN_PATH
7442 hardcode_runpath_var=yes
7443 ld_shlibs=yes
7444 fi
7445 ;;
7446
7447 sysv4.2uw2*)
7448 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7449 hardcode_direct=yes
7450 hardcode_minus_L=no
7451 hardcode_shlibpath_var=no
7452 hardcode_runpath_var=yes
7453 runpath_var=LD_RUN_PATH
7454 ;;
7455
7456 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7457 no_undefined_flag='${wl}-z ${wl}text'
7458 if test "$GCC" = yes; then
7459 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7460 else
7461 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7462 fi
7463 runpath_var='LD_RUN_PATH'
7464 hardcode_shlibpath_var=no
7465 ;;
7466
7467 sysv5*)
7468 no_undefined_flag=' -z text'
7469 # $CC -shared without GNU ld will not create a library from C++
7470 # object files and a static libstdc++, better avoid it by now
7471 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7472 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7473 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7474 hardcode_libdir_flag_spec=
7475 hardcode_shlibpath_var=no
7476 runpath_var='LD_RUN_PATH'
7477 ;;
7478
7479 uts4*)
7480 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7481 hardcode_libdir_flag_spec='-L$libdir'
7482 hardcode_shlibpath_var=no
7483 ;;
7484
7485 *)
7486 ld_shlibs=no
7487 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007488 esac
7489 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007490
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007491echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7492echo "${ECHO_T}$ld_shlibs" >&6
7493test "$ld_shlibs" = no && can_build_shared=no
7494
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007495variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7496if test "$GCC" = yes; then
7497 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7498fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007499
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007500#
7501# Do we need to explicitly link libc?
7502#
7503case "x$archive_cmds_need_lc" in
7504x|xyes)
7505 # Assume -lc should be added
7506 archive_cmds_need_lc=yes
7507
7508 if test "$enable_shared" = yes && test "$GCC" = yes; then
7509 case $archive_cmds in
7510 *'~'*)
7511 # FIXME: we may have to deal with multi-command sequences.
7512 ;;
7513 '$CC '*)
7514 # Test whether the compiler implicitly links with -lc since on some
7515 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7516 # to ld, don't add -lc before -lgcc.
7517 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7518echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7519 $rm conftest*
7520 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7521
7522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523 (eval $ac_compile) 2>&5
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); } 2>conftest.err; then
7527 soname=conftest
7528 lib=conftest
7529 libobjs=conftest.$ac_objext
7530 deplibs=
7531 wl=$lt_prog_compiler_wl
7532 compiler_flags=-v
7533 linker_flags=-v
7534 verstring=
7535 output_objdir=.
7536 libname=conftest
7537 lt_save_allow_undefined_flag=$allow_undefined_flag
7538 allow_undefined_flag=
7539 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7540 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7541 ac_status=$?
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); }
7544 then
7545 archive_cmds_need_lc=no
7546 else
7547 archive_cmds_need_lc=yes
7548 fi
7549 allow_undefined_flag=$lt_save_allow_undefined_flag
7550 else
7551 cat conftest.err 1>&5
7552 fi
7553 $rm conftest*
7554 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7555echo "${ECHO_T}$archive_cmds_need_lc" >&6
7556 ;;
7557 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007558 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007559 ;;
7560esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007561
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007562echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7563echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7564library_names_spec=
7565libname_spec='lib$name'
7566soname_spec=
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007567shrext=".so"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007568postinstall_cmds=
7569postuninstall_cmds=
7570finish_cmds=
7571finish_eval=
7572shlibpath_var=
7573shlibpath_overrides_runpath=unknown
7574version_type=none
7575dynamic_linker="$host_os ld.so"
7576sys_lib_dlsearch_path_spec="/lib /usr/lib"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007577if test "$GCC" = yes; then
7578 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7579 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7580 # if the path contains ";" then we assume it to be the separator
7581 # otherwise default to the standard path separator (i.e. ":") - it is
7582 # assumed that no part of a normal pathname contains ";" but that should
7583 # okay in the real world where ";" in dirpaths is itself problematic.
7584 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7585 else
7586 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7587 fi
7588else
7589 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7590fi
7591need_lib_prefix=unknown
7592hardcode_into_libs=no
7593
7594# when you set need_version to no, make sure it does not cause -set_version
7595# flags to be left without arguments
7596need_version=unknown
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007597
7598case $host_os in
7599aix3*)
7600 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007601 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007602 shlibpath_var=LIBPATH
7603
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007604 # AIX 3 has no versioning support, so we append a major version to the name.
7605 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007606 ;;
7607
7608aix4* | aix5*)
7609 version_type=linux
7610 need_lib_prefix=no
7611 need_version=no
7612 hardcode_into_libs=yes
7613 if test "$host_cpu" = ia64; then
7614 # AIX 5 supports IA64
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007615 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007616 shlibpath_var=LD_LIBRARY_PATH
7617 else
7618 # With GCC up to 2.95.x, collect2 would create an import file
7619 # for dependence libraries. The import file would start with
7620 # the line `#! .'. This would cause the generated library to
7621 # depend on `.', always an invalid library. This was fixed in
7622 # development snapshots of GCC prior to 3.0.
7623 case $host_os in
7624 aix4 | aix4.[01] | aix4.[01].*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007625 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7626 echo ' yes '
7627 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7628 :
7629 else
7630 can_build_shared=no
7631 fi
7632 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007633 esac
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007634 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7635 # soname into executable. Probably we can add versioning support to
7636 # collect2, so additional links can be useful in future.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007637 if test "$aix_use_runtimelinking" = yes; then
7638 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7639 # instead of lib<name>.a to let people know that these are not
7640 # typical AIX shared libraries.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007642 else
7643 # We preserve .a as extension for shared libraries through AIX4.2
7644 # and later when we are not doing run time linking.
7645 library_names_spec='${libname}${release}.a $libname.a'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007646 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007647 fi
7648 shlibpath_var=LIBPATH
7649 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007650 ;;
7651
7652amigaos*)
7653 library_names_spec='$libname.ixlibrary $libname.a'
7654 # Create ${libname}_ixlibrary.a entries in /sys/libs.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007655 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 +00007656 ;;
7657
7658beos*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007659 library_names_spec='${libname}${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007660 dynamic_linker="$host_os ld.so"
7661 shlibpath_var=LIBRARY_PATH
7662 ;;
7663
7664bsdi4*)
7665 version_type=linux
7666 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7668 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007669 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7670 shlibpath_var=LD_LIBRARY_PATH
7671 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7672 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007673 # the default ld.so.conf also contains /usr/contrib/lib and
7674 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7675 # libtool to hard-code these into programs
7676 ;;
7677
7678cygwin* | mingw* | pw32*)
7679 version_type=windows
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007680 shrext=".dll"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007681 need_version=no
7682 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007683
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007684 case $GCC,$host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007685 yes,cygwin* | yes,mingw* | yes,pw32*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007686 library_names_spec='$libname.dll.a'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007687 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7688 postinstall_cmds='base_file=`basename \${file}`~
7689 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007690 dldir=$destdir/`dirname \$dlpath`~
7691 test -d \$dldir || mkdir -p \$dldir~
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007692 $install_prog $dir/$dlname \$dldir/$dlname'
7693 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007694 dlpath=$dir/\$dldll~
7695 $rm \$dlpath'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007696 shlibpath_overrides_runpath=yes
7697
7698 case $host_os in
7699 cygwin*)
7700 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7701 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7702 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7703 ;;
7704 mingw*)
7705 # MinGW DLLs use traditional 'lib' prefix
7706 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7707 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7708 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7709 # It is most probably a Windows format PATH printed by
7710 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7711 # path with ; separators, and with drive letters. We can handle the
7712 # drive letters (cygwin fileutils understands them), so leave them,
7713 # especially as we might pass files found there to a mingw objdump,
7714 # which wouldn't understand a cygwinified path. Ahh.
7715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7716 else
7717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7718 fi
7719 ;;
7720 pw32*)
7721 # pw32 DLLs use 'pw' prefix rather than 'lib'
7722 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7723 ;;
7724 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007725 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007726
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007727 *)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007728 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007729 ;;
7730 esac
7731 dynamic_linker='Win32 ld.exe'
7732 # FIXME: first we should search . and the directory the executable is in
7733 shlibpath_var=PATH
7734 ;;
7735
7736darwin* | rhapsody*)
7737 dynamic_linker="$host_os dyld"
7738 version_type=darwin
7739 need_lib_prefix=no
7740 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007741 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7742 soname_spec='${libname}${release}${major}$shared_ext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007743 shlibpath_overrides_runpath=yes
7744 shlibpath_var=DYLD_LIBRARY_PATH
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007745 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7746 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7747 if test "$GCC" = yes; then
7748 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"`
7749 else
7750 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7751 fi
7752 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7753 ;;
7754
7755dgux*)
7756 version_type=linux
7757 need_lib_prefix=no
7758 need_version=no
7759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7760 soname_spec='${libname}${release}${shared_ext}$major'
7761 shlibpath_var=LD_LIBRARY_PATH
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007762 ;;
7763
7764freebsd1*)
7765 dynamic_linker=no
7766 ;;
7767
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007768kfreebsd*-gnu)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007769 version_type=linux
7770 need_lib_prefix=no
7771 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7773 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007774 shlibpath_var=LD_LIBRARY_PATH
7775 shlibpath_overrides_runpath=no
7776 hardcode_into_libs=yes
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007777 dynamic_linker='GNU ld.so'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007778 ;;
7779
7780freebsd*)
7781 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7782 version_type=freebsd-$objformat
7783 case $version_type in
7784 freebsd-elf*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007786 need_version=no
7787 need_lib_prefix=no
7788 ;;
7789 freebsd-*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007790 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007791 need_version=yes
7792 ;;
7793 esac
7794 shlibpath_var=LD_LIBRARY_PATH
7795 case $host_os in
7796 freebsd2*)
7797 shlibpath_overrides_runpath=yes
7798 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007799 freebsd3.01* | freebsdelf3.01*)
7800 shlibpath_overrides_runpath=yes
7801 hardcode_into_libs=yes
7802 ;;
7803 *) # from 3.2 on
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007804 shlibpath_overrides_runpath=no
7805 hardcode_into_libs=yes
7806 ;;
7807 esac
7808 ;;
7809
7810gnu*)
7811 version_type=linux
7812 need_lib_prefix=no
7813 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7815 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007816 shlibpath_var=LD_LIBRARY_PATH
7817 hardcode_into_libs=yes
7818 ;;
7819
7820hpux9* | hpux10* | hpux11*)
7821 # Give a soname corresponding to the major version so that dld.sl refuses to
7822 # link against other versions.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007823 version_type=sunos
7824 need_lib_prefix=no
7825 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007826 case "$host_cpu" in
7827 ia64*)
7828 shrext='.so'
7829 hardcode_into_libs=yes
7830 dynamic_linker="$host_os dld.so"
7831 shlibpath_var=LD_LIBRARY_PATH
7832 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7834 soname_spec='${libname}${release}${shared_ext}$major'
7835 if test "X$HPUX_IA64_MODE" = X32; then
7836 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7837 else
7838 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7839 fi
7840 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7841 ;;
7842 hppa*64*)
7843 shrext='.sl'
7844 hardcode_into_libs=yes
7845 dynamic_linker="$host_os dld.sl"
7846 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7847 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7849 soname_spec='${libname}${release}${shared_ext}$major'
7850 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7851 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7852 ;;
7853 *)
7854 shrext='.sl'
7855 dynamic_linker="$host_os dld.sl"
7856 shlibpath_var=SHLIB_PATH
7857 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7859 soname_spec='${libname}${release}${shared_ext}$major'
7860 ;;
7861 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007862 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7863 postinstall_cmds='chmod 555 $lib'
7864 ;;
7865
7866irix5* | irix6* | nonstopux*)
7867 case $host_os in
7868 nonstopux*) version_type=nonstopux ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007869 *)
7870 if test "$lt_cv_prog_gnu_ld" = yes; then
7871 version_type=linux
7872 else
7873 version_type=irix
7874 fi ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007875 esac
7876 need_lib_prefix=no
7877 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007878 soname_spec='${libname}${release}${shared_ext}$major'
7879 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 +00007880 case $host_os in
7881 irix5* | nonstopux*)
7882 libsuff= shlibsuff=
7883 ;;
7884 *)
7885 case $LD in # libtool.m4 will add one of these switches to LD
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007886 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7887 libsuff= shlibsuff= libmagic=32-bit;;
7888 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7889 libsuff=32 shlibsuff=N32 libmagic=N32;;
7890 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7891 libsuff=64 shlibsuff=64 libmagic=64-bit;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007892 *) libsuff= shlibsuff= libmagic=never-match;;
7893 esac
7894 ;;
7895 esac
7896 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7897 shlibpath_overrides_runpath=no
7898 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7899 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007900 hardcode_into_libs=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007901 ;;
7902
7903# No shared lib support for Linux oldld, aout, or coff.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007904linux*oldld* | linux*aout* | linux*coff*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007905 dynamic_linker=no
7906 ;;
7907
7908# This must be Linux ELF.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007909linux*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007910 version_type=linux
7911 need_lib_prefix=no
7912 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7914 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7916 shlibpath_var=LD_LIBRARY_PATH
7917 shlibpath_overrides_runpath=no
7918 # This implies no fast_install, which is unacceptable.
7919 # Some rework will be needed to allow for fast_install
7920 # before this can be enabled.
7921 hardcode_into_libs=yes
7922
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007923 # /usr/X11R6/lib and /usr/local/lib are common enough...
7924 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
7925
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007926 # We used to test for /lib/ld.so.1 and disable shared libraries on
7927 # powerpc, because MkLinux only supported shared libraries with the
7928 # GNU dynamic linker. Since this was broken with cross compilers,
7929 # most powerpc-linux boxes support dynamic linking these days and
7930 # people can always --disable-shared, the test was removed, and we
7931 # assume the GNU/Linux dynamic linker is in use.
7932 dynamic_linker='GNU/Linux ld.so'
7933 ;;
7934
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007935knetbsd*-gnu)
7936 version_type=linux
7937 need_lib_prefix=no
7938 need_version=no
7939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7940 soname_spec='${libname}${release}${shared_ext}$major'
7941 shlibpath_var=LD_LIBRARY_PATH
7942 shlibpath_overrides_runpath=no
7943 hardcode_into_libs=yes
7944 dynamic_linker='GNU ld.so'
7945 ;;
7946
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007947netbsd*)
7948 version_type=sunos
7949 need_lib_prefix=no
7950 need_version=no
7951 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7954 dynamic_linker='NetBSD (a.out) ld.so'
7955 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7957 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007958 dynamic_linker='NetBSD ld.elf_so'
7959 fi
7960 shlibpath_var=LD_LIBRARY_PATH
7961 shlibpath_overrides_runpath=yes
7962 hardcode_into_libs=yes
7963 ;;
7964
7965newsos6)
7966 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7968 shlibpath_var=LD_LIBRARY_PATH
7969 shlibpath_overrides_runpath=yes
7970 ;;
7971
7972nto-qnx*)
7973 version_type=linux
7974 need_lib_prefix=no
7975 need_version=no
7976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7977 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007978 shlibpath_var=LD_LIBRARY_PATH
7979 shlibpath_overrides_runpath=yes
7980 ;;
7981
7982openbsd*)
7983 version_type=sunos
7984 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007985 need_version=yes
7986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7988 shlibpath_var=LD_LIBRARY_PATH
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007989 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 +00007990 case $host_os in
7991 openbsd2.[89] | openbsd2.[89].*)
7992 shlibpath_overrides_runpath=no
7993 ;;
7994 *)
7995 shlibpath_overrides_runpath=yes
7996 ;;
7997 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007998 else
7999 shlibpath_overrides_runpath=yes
8000 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008001 ;;
8002
8003os2*)
8004 libname_spec='$name'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008005 shrext=".dll"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008006 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008007 library_names_spec='$libname${shared_ext} $libname.a'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008008 dynamic_linker='OS/2 ld.exe'
8009 shlibpath_var=LIBPATH
8010 ;;
8011
8012osf3* | osf4* | osf5*)
8013 version_type=osf
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008014 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008015 need_version=no
8016 soname_spec='${libname}${release}${shared_ext}$major'
8017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008018 shlibpath_var=LD_LIBRARY_PATH
8019 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8020 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008021 ;;
8022
8023sco3.2v5*)
8024 version_type=osf
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008025 soname_spec='${libname}${release}${shared_ext}$major'
8026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008027 shlibpath_var=LD_LIBRARY_PATH
8028 ;;
8029
8030solaris*)
8031 version_type=linux
8032 need_lib_prefix=no
8033 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8035 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008036 shlibpath_var=LD_LIBRARY_PATH
8037 shlibpath_overrides_runpath=yes
8038 hardcode_into_libs=yes
8039 # ldd complains unless libraries are executable
8040 postinstall_cmds='chmod +x $lib'
8041 ;;
8042
8043sunos4*)
8044 version_type=sunos
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008046 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8047 shlibpath_var=LD_LIBRARY_PATH
8048 shlibpath_overrides_runpath=yes
8049 if test "$with_gnu_ld" = yes; then
8050 need_lib_prefix=no
8051 fi
8052 need_version=yes
8053 ;;
8054
8055sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8056 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8058 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008059 shlibpath_var=LD_LIBRARY_PATH
8060 case $host_vendor in
8061 sni)
8062 shlibpath_overrides_runpath=no
8063 need_lib_prefix=no
8064 export_dynamic_flag_spec='${wl}-Blargedynsym'
8065 runpath_var=LD_RUN_PATH
8066 ;;
8067 siemens)
8068 need_lib_prefix=no
8069 ;;
8070 motorola)
8071 need_lib_prefix=no
8072 need_version=no
8073 shlibpath_overrides_runpath=no
8074 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8075 ;;
8076 esac
8077 ;;
8078
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008079sysv4*MP*)
8080 if test -d /usr/nec ;then
8081 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008082 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8083 soname_spec='$libname${shared_ext}.$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008084 shlibpath_var=LD_LIBRARY_PATH
8085 fi
8086 ;;
8087
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008088uts4*)
8089 version_type=linux
8090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8091 soname_spec='${libname}${release}${shared_ext}$major'
8092 shlibpath_var=LD_LIBRARY_PATH
8093 ;;
8094
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008095*)
8096 dynamic_linker=no
8097 ;;
8098esac
8099echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8100echo "${ECHO_T}$dynamic_linker" >&6
8101test "$dynamic_linker" = no && can_build_shared=no
8102
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008103echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8104echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8105hardcode_action=
8106if test -n "$hardcode_libdir_flag_spec" || \
8107 test -n "$runpath_var " || \
8108 test "X$hardcode_automatic"="Xyes" ; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008109
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008110 # We can hardcode non-existant directories.
8111 if test "$hardcode_direct" != no &&
8112 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8113 # have to relink, otherwise we might link with an installed library
8114 # when we should be linking with a yet-to-be-installed one
8115 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8116 test "$hardcode_minus_L" != no; then
8117 # Linking always hardcodes the temporary library directory.
8118 hardcode_action=relink
8119 else
8120 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8121 hardcode_action=immediate
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008122 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008123else
8124 # We cannot hardcode anything, or else we can only hardcode existing
8125 # directories.
8126 hardcode_action=unsupported
8127fi
8128echo "$as_me:$LINENO: result: $hardcode_action" >&5
8129echo "${ECHO_T}$hardcode_action" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008130
8131if test "$hardcode_action" = relink; then
8132 # Fast installation is not supported
8133 enable_fast_install=no
8134elif test "$shlibpath_overrides_runpath" = yes ||
8135 test "$enable_shared" = no; then
8136 # Fast installation is not necessary
8137 enable_fast_install=needless
8138fi
8139
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008140striplib=
8141old_striplib=
8142echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8143echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8144if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8145 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8146 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8147 echo "$as_me:$LINENO: result: yes" >&5
8148echo "${ECHO_T}yes" >&6
8149else
8150# FIXME - insert some real tests, host_os isn't really good enough
8151 case $host_os in
8152 darwin*)
8153 if test -n "$STRIP" ; then
8154 striplib="$STRIP -x"
8155 echo "$as_me:$LINENO: result: yes" >&5
8156echo "${ECHO_T}yes" >&6
8157 else
8158 echo "$as_me:$LINENO: result: no" >&5
8159echo "${ECHO_T}no" >&6
8160fi
8161 ;;
8162 *)
8163 echo "$as_me:$LINENO: result: no" >&5
8164echo "${ECHO_T}no" >&6
8165 ;;
8166 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008167fi
8168
8169if test "x$enable_dlopen" != xyes; then
8170 enable_dlopen=unknown
8171 enable_dlopen_self=unknown
8172 enable_dlopen_self_static=unknown
8173else
8174 lt_cv_dlopen=no
8175 lt_cv_dlopen_libs=
8176
8177 case $host_os in
8178 beos*)
8179 lt_cv_dlopen="load_add_on"
8180 lt_cv_dlopen_libs=
8181 lt_cv_dlopen_self=yes
8182 ;;
8183
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008184 mingw* | pw32*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008185 lt_cv_dlopen="LoadLibrary"
8186 lt_cv_dlopen_libs=
8187 ;;
8188
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008189 cygwin*)
8190 lt_cv_dlopen="dlopen"
8191 lt_cv_dlopen_libs=
8192 ;;
8193
8194 darwin*)
8195 # if libdl is installed we need to link against it
8196 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8197echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8198if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200else
8201 ac_check_lib_save_LIBS=$LIBS
8202LIBS="-ldl $LIBS"
8203cat >conftest.$ac_ext <<_ACEOF
8204/* confdefs.h. */
8205_ACEOF
8206cat confdefs.h >>conftest.$ac_ext
8207cat >>conftest.$ac_ext <<_ACEOF
8208/* end confdefs.h. */
8209
8210/* Override any gcc2 internal prototype to avoid an error. */
8211#ifdef __cplusplus
8212extern "C"
8213#endif
8214/* We use char because int might match the return type of a gcc2
8215 builtin and then its argument prototype would still apply. */
8216char dlopen ();
8217int
8218main ()
8219{
8220dlopen ();
8221 ;
8222 return 0;
8223}
8224_ACEOF
8225rm -f conftest.$ac_objext conftest$ac_exeext
8226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8227 (eval $ac_link) 2>conftest.er1
8228 ac_status=$?
8229 grep -v '^ *+' conftest.er1 >conftest.err
8230 rm -f conftest.er1
8231 cat conftest.err >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } &&
8234 { ac_try='test -z "$ac_c_werror_flag"
8235 || 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'
8242 { (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
8254rm -f conftest.err conftest.$ac_objext \
8255 conftest$ac_exeext conftest.$ac_ext
8256LIBS=$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. */
hp.com!davidmc3fa0b62003-11-24 21:37:22 +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. */
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008292
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008293#ifdef __STDC__
8294# include <limits.h>
8295#else
8296# include <assert.h>
8297#endif
hp.com!davidmc3fa0b62003-11-24 21:37:22 +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
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008331 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008332 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +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); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008338 { ac_try='test -z "$ac_c_werror_flag"
8339 || test ! -s conftest.err'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341 (eval $ac_try) 2>&5
8342 ac_status=$?
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; } &&
8345 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347 (eval $ac_try) 2>&5
8348 ac_status=$?
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; }; then
8351 ac_cv_func_shl_load=yes
8352else
8353 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008354sed 's/^/| /' conftest.$ac_ext >&5
8355
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008356ac_cv_func_shl_load=no
8357fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008358rm -f conftest.err conftest.$ac_objext \
8359 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008360fi
8361echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8362echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8363if test $ac_cv_func_shl_load = yes; then
8364 lt_cv_dlopen="shl_load"
8365else
8366 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8367echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8368if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8370else
8371 ac_check_lib_save_LIBS=$LIBS
8372LIBS="-ldld $LIBS"
8373cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008374/* confdefs.h. */
8375_ACEOF
8376cat confdefs.h >>conftest.$ac_ext
8377cat >>conftest.$ac_ext <<_ACEOF
8378/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008379
8380/* Override any gcc2 internal prototype to avoid an error. */
8381#ifdef __cplusplus
8382extern "C"
8383#endif
8384/* We use char because int might match the return type of a gcc2
8385 builtin and then its argument prototype would still apply. */
8386char shl_load ();
8387int
8388main ()
8389{
8390shl_load ();
8391 ;
8392 return 0;
8393}
8394_ACEOF
8395rm -f conftest.$ac_objext conftest$ac_exeext
8396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008397 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008398 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008399 grep -v '^ *+' conftest.er1 >conftest.err
8400 rm -f conftest.er1
8401 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008404 { ac_try='test -z "$ac_c_werror_flag"
8405 || test ! -s conftest.err'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407 (eval $ac_try) 2>&5
8408 ac_status=$?
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; } &&
8411 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 (eval $ac_try) 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; }; then
8417 ac_cv_lib_dld_shl_load=yes
8418else
8419 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008420sed 's/^/| /' conftest.$ac_ext >&5
8421
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008422ac_cv_lib_dld_shl_load=no
8423fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008424rm -f conftest.err conftest.$ac_objext \
8425 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008426LIBS=$ac_check_lib_save_LIBS
8427fi
8428echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8429echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8430if test $ac_cv_lib_dld_shl_load = yes; then
8431 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8432else
8433 echo "$as_me:$LINENO: checking for dlopen" >&5
8434echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8435if test "${ac_cv_func_dlopen+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8437else
8438 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008439/* confdefs.h. */
8440_ACEOF
8441cat confdefs.h >>conftest.$ac_ext
8442cat >>conftest.$ac_ext <<_ACEOF
8443/* end confdefs.h. */
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008444/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8446#define dlopen innocuous_dlopen
8447
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008448/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008449 which can conflict with char dlopen (); below.
8450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8451 <limits.h> exists even on freestanding compilers. */
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008452
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008453#ifdef __STDC__
8454# include <limits.h>
8455#else
8456# include <assert.h>
8457#endif
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008458
8459#undef dlopen
8460
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008461/* Override any gcc2 internal prototype to avoid an error. */
8462#ifdef __cplusplus
8463extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008464{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008465#endif
8466/* We use char because int might match the return type of a gcc2
8467 builtin and then its argument prototype would still apply. */
8468char dlopen ();
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008469/* The GNU C library defines this for functions which it implements
8470 to always fail with ENOSYS. Some functions are actually named
8471 something starting with __ and the normal name is an alias. */
8472#if defined (__stub_dlopen) || defined (__stub___dlopen)
8473choke me
8474#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008475char (*f) () = dlopen;
8476#endif
8477#ifdef __cplusplus
8478}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008479#endif
8480
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008481int
8482main ()
8483{
8484return f != dlopen;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008485 ;
8486 return 0;
8487}
8488_ACEOF
8489rm -f conftest.$ac_objext conftest$ac_exeext
8490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008491 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008492 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008493 grep -v '^ *+' conftest.er1 >conftest.err
8494 rm -f conftest.er1
8495 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008498 { ac_try='test -z "$ac_c_werror_flag"
8499 || test ! -s conftest.err'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 (eval $ac_try) 2>&5
8502 ac_status=$?
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; } &&
8505 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 (eval $ac_try) 2>&5
8508 ac_status=$?
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; }; then
8511 ac_cv_func_dlopen=yes
8512else
8513 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008514sed 's/^/| /' conftest.$ac_ext >&5
8515
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008516ac_cv_func_dlopen=no
8517fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008518rm -f conftest.err conftest.$ac_objext \
8519 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008520fi
8521echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8522echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8523if test $ac_cv_func_dlopen = yes; then
8524 lt_cv_dlopen="dlopen"
8525else
8526 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8527echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8528if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8530else
8531 ac_check_lib_save_LIBS=$LIBS
8532LIBS="-ldl $LIBS"
8533cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008534/* confdefs.h. */
8535_ACEOF
8536cat confdefs.h >>conftest.$ac_ext
8537cat >>conftest.$ac_ext <<_ACEOF
8538/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008539
8540/* Override any gcc2 internal prototype to avoid an error. */
8541#ifdef __cplusplus
8542extern "C"
8543#endif
8544/* We use char because int might match the return type of a gcc2
8545 builtin and then its argument prototype would still apply. */
8546char dlopen ();
8547int
8548main ()
8549{
8550dlopen ();
8551 ;
8552 return 0;
8553}
8554_ACEOF
8555rm -f conftest.$ac_objext conftest$ac_exeext
8556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008557 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008558 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008559 grep -v '^ *+' conftest.er1 >conftest.err
8560 rm -f conftest.er1
8561 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008564 { ac_try='test -z "$ac_c_werror_flag"
8565 || test ! -s conftest.err'
8566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 (eval $ac_try) 2>&5
8568 ac_status=$?
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); }; } &&
8571 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573 (eval $ac_try) 2>&5
8574 ac_status=$?
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; }; then
8577 ac_cv_lib_dl_dlopen=yes
8578else
8579 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008580sed 's/^/| /' conftest.$ac_ext >&5
8581
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008582ac_cv_lib_dl_dlopen=no
8583fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008584rm -f conftest.err conftest.$ac_objext \
8585 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008586LIBS=$ac_check_lib_save_LIBS
8587fi
8588echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8589echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8590if test $ac_cv_lib_dl_dlopen = yes; then
8591 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8592else
8593 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8594echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8595if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8596 echo $ECHO_N "(cached) $ECHO_C" >&6
8597else
8598 ac_check_lib_save_LIBS=$LIBS
8599LIBS="-lsvld $LIBS"
8600cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008601/* confdefs.h. */
8602_ACEOF
8603cat confdefs.h >>conftest.$ac_ext
8604cat >>conftest.$ac_ext <<_ACEOF
8605/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008606
8607/* Override any gcc2 internal prototype to avoid an error. */
8608#ifdef __cplusplus
8609extern "C"
8610#endif
8611/* We use char because int might match the return type of a gcc2
8612 builtin and then its argument prototype would still apply. */
8613char dlopen ();
8614int
8615main ()
8616{
8617dlopen ();
8618 ;
8619 return 0;
8620}
8621_ACEOF
8622rm -f conftest.$ac_objext conftest$ac_exeext
8623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008624 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008625 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008626 grep -v '^ *+' conftest.er1 >conftest.err
8627 rm -f conftest.er1
8628 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008631 { ac_try='test -z "$ac_c_werror_flag"
8632 || test ! -s conftest.err'
8633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634 (eval $ac_try) 2>&5
8635 ac_status=$?
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; } &&
8638 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640 (eval $ac_try) 2>&5
8641 ac_status=$?
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); }; }; then
8644 ac_cv_lib_svld_dlopen=yes
8645else
8646 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008647sed 's/^/| /' conftest.$ac_ext >&5
8648
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008649ac_cv_lib_svld_dlopen=no
8650fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008651rm -f conftest.err conftest.$ac_objext \
8652 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008653LIBS=$ac_check_lib_save_LIBS
8654fi
8655echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8656echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8657if test $ac_cv_lib_svld_dlopen = yes; then
8658 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8659else
8660 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8661echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8662if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8664else
8665 ac_check_lib_save_LIBS=$LIBS
8666LIBS="-ldld $LIBS"
8667cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008668/* confdefs.h. */
8669_ACEOF
8670cat confdefs.h >>conftest.$ac_ext
8671cat >>conftest.$ac_ext <<_ACEOF
8672/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008673
8674/* Override any gcc2 internal prototype to avoid an error. */
8675#ifdef __cplusplus
8676extern "C"
8677#endif
8678/* We use char because int might match the return type of a gcc2
8679 builtin and then its argument prototype would still apply. */
8680char dld_link ();
8681int
8682main ()
8683{
8684dld_link ();
8685 ;
8686 return 0;
8687}
8688_ACEOF
8689rm -f conftest.$ac_objext conftest$ac_exeext
8690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008691 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008692 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008693 grep -v '^ *+' conftest.er1 >conftest.err
8694 rm -f conftest.er1
8695 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008698 { ac_try='test -z "$ac_c_werror_flag"
8699 || test ! -s conftest.err'
8700 { (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); }; } &&
8705 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 (eval $ac_try) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_cv_lib_dld_dld_link=yes
8712else
8713 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008714sed 's/^/| /' conftest.$ac_ext >&5
8715
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008716ac_cv_lib_dld_dld_link=no
8717fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008718rm -f conftest.err conftest.$ac_objext \
8719 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008720LIBS=$ac_check_lib_save_LIBS
8721fi
8722echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8723echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8724if test $ac_cv_lib_dld_dld_link = yes; then
8725 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8726fi
8727
8728
8729fi
8730
8731
8732fi
8733
8734
8735fi
8736
8737
8738fi
8739
8740
8741fi
8742
8743 ;;
8744 esac
8745
8746 if test "x$lt_cv_dlopen" != xno; then
8747 enable_dlopen=yes
8748 else
8749 enable_dlopen=no
8750 fi
8751
8752 case $lt_cv_dlopen in
8753 dlopen)
8754 save_CPPFLAGS="$CPPFLAGS"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008755 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008756
8757 save_LDFLAGS="$LDFLAGS"
8758 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8759
8760 save_LIBS="$LIBS"
8761 LIBS="$lt_cv_dlopen_libs $LIBS"
8762
8763 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8764echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8765if test "${lt_cv_dlopen_self+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8767else
8768 if test "$cross_compiling" = yes; then :
8769 lt_cv_dlopen_self=cross
8770else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008771 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008772 lt_status=$lt_dlunknown
8773 cat > conftest.$ac_ext <<EOF
hp.com!davidmb1d369a2003-11-26 18:59:24 +00008774#line 8774 "configure"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008775#include "confdefs.h"
8776
8777#if HAVE_DLFCN_H
8778#include <dlfcn.h>
8779#endif
8780
8781#include <stdio.h>
8782
8783#ifdef RTLD_GLOBAL
8784# define LT_DLGLOBAL RTLD_GLOBAL
8785#else
8786# ifdef DL_GLOBAL
8787# define LT_DLGLOBAL DL_GLOBAL
8788# else
8789# define LT_DLGLOBAL 0
8790# endif
8791#endif
8792
8793/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8794 find out it does not work in some platform. */
8795#ifndef LT_DLLAZY_OR_NOW
8796# ifdef RTLD_LAZY
8797# define LT_DLLAZY_OR_NOW RTLD_LAZY
8798# else
8799# ifdef DL_LAZY
8800# define LT_DLLAZY_OR_NOW DL_LAZY
8801# else
8802# ifdef RTLD_NOW
8803# define LT_DLLAZY_OR_NOW RTLD_NOW
8804# else
8805# ifdef DL_NOW
8806# define LT_DLLAZY_OR_NOW DL_NOW
8807# else
8808# define LT_DLLAZY_OR_NOW 0
8809# endif
8810# endif
8811# endif
8812# endif
8813#endif
8814
8815#ifdef __cplusplus
8816extern "C" void exit (int);
8817#endif
8818
8819void fnord() { int i=42;}
8820int main ()
8821{
8822 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8823 int status = $lt_dlunknown;
8824
8825 if (self)
8826 {
8827 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8828 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8829 /* dlclose (self); */
8830 }
8831
8832 exit (status);
8833}
8834EOF
8835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8836 (eval $ac_link) 2>&5
8837 ac_status=$?
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8840 (./conftest; exit; ) 2>/dev/null
8841 lt_status=$?
8842 case x$lt_status in
8843 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8844 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8845 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8846 esac
8847 else :
8848 # compilation failed
8849 lt_cv_dlopen_self=no
8850 fi
8851fi
8852rm -fr conftest*
8853
8854
8855fi
8856echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8857echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8858
8859 if test "x$lt_cv_dlopen_self" = xyes; then
8860 LDFLAGS="$LDFLAGS $link_static_flag"
8861 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8862echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8863if test "${lt_cv_dlopen_self_static+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8865else
8866 if test "$cross_compiling" = yes; then :
8867 lt_cv_dlopen_self_static=cross
8868else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008869 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008870 lt_status=$lt_dlunknown
8871 cat > conftest.$ac_ext <<EOF
hp.com!davidmb1d369a2003-11-26 18:59:24 +00008872#line 8872 "configure"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008873#include "confdefs.h"
8874
8875#if HAVE_DLFCN_H
8876#include <dlfcn.h>
8877#endif
8878
8879#include <stdio.h>
8880
8881#ifdef RTLD_GLOBAL
8882# define LT_DLGLOBAL RTLD_GLOBAL
8883#else
8884# ifdef DL_GLOBAL
8885# define LT_DLGLOBAL DL_GLOBAL
8886# else
8887# define LT_DLGLOBAL 0
8888# endif
8889#endif
8890
8891/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8892 find out it does not work in some platform. */
8893#ifndef LT_DLLAZY_OR_NOW
8894# ifdef RTLD_LAZY
8895# define LT_DLLAZY_OR_NOW RTLD_LAZY
8896# else
8897# ifdef DL_LAZY
8898# define LT_DLLAZY_OR_NOW DL_LAZY
8899# else
8900# ifdef RTLD_NOW
8901# define LT_DLLAZY_OR_NOW RTLD_NOW
8902# else
8903# ifdef DL_NOW
8904# define LT_DLLAZY_OR_NOW DL_NOW
8905# else
8906# define LT_DLLAZY_OR_NOW 0
8907# endif
8908# endif
8909# endif
8910# endif
8911#endif
8912
8913#ifdef __cplusplus
8914extern "C" void exit (int);
8915#endif
8916
8917void fnord() { int i=42;}
8918int main ()
8919{
8920 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8921 int status = $lt_dlunknown;
8922
8923 if (self)
8924 {
8925 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8926 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8927 /* dlclose (self); */
8928 }
8929
8930 exit (status);
8931}
8932EOF
8933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8934 (eval $ac_link) 2>&5
8935 ac_status=$?
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8938 (./conftest; exit; ) 2>/dev/null
8939 lt_status=$?
8940 case x$lt_status in
8941 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8942 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8943 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8944 esac
8945 else :
8946 # compilation failed
8947 lt_cv_dlopen_self_static=no
8948 fi
8949fi
8950rm -fr conftest*
8951
8952
8953fi
8954echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8955echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8956 fi
8957
8958 CPPFLAGS="$save_CPPFLAGS"
8959 LDFLAGS="$save_LDFLAGS"
8960 LIBS="$save_LIBS"
8961 ;;
8962 esac
8963
8964 case $lt_cv_dlopen_self in
8965 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8966 *) enable_dlopen_self=unknown ;;
8967 esac
8968
8969 case $lt_cv_dlopen_self_static in
8970 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8971 *) enable_dlopen_self_static=unknown ;;
8972 esac
8973fi
8974
8975
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008976# Report which librarie types wil actually be built
8977echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8978echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8979echo "$as_me:$LINENO: result: $can_build_shared" >&5
8980echo "${ECHO_T}$can_build_shared" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008981
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008982echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8983echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8984test "$can_build_shared" = "no" && enable_shared=no
8985
8986# On AIX, shared libraries and static libraries use the same namespace, and
8987# are all built from PIC.
8988case "$host_os" in
8989aix3*)
8990 test "$enable_shared" = yes && enable_static=no
8991 if test -n "$RANLIB"; then
8992 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8993 postinstall_cmds='$RANLIB $lib'
8994 fi
8995 ;;
8996
8997aix4*)
8998 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8999 test "$enable_shared" = yes && enable_static=no
9000 fi
9001 ;;
9002 darwin* | rhapsody*)
9003 if test "$GCC" = yes; then
9004 archive_cmds_need_lc=no
9005 case "$host_os" in
9006 rhapsody* | darwin1.[012])
9007 allow_undefined_flag='-undefined suppress'
9008 ;;
9009 *) # Darwin 1.3 on
9010 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9011 allow_undefined_flag='-flat_namespace -undefined suppress'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009012 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009013 case ${MACOSX_DEPLOYMENT_TARGET} in
9014 10.[012])
9015 allow_undefined_flag='-flat_namespace -undefined suppress'
9016 ;;
9017 10.*)
9018 allow_undefined_flag='-undefined dynamic_lookup'
9019 ;;
9020 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009021 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009022 ;;
9023 esac
9024 output_verbose_link_cmd='echo'
9025 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9026 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9027 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9028 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}'
9029 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}'
9030 hardcode_direct=no
9031 hardcode_automatic=yes
9032 hardcode_shlibpath_var=unsupported
9033 whole_archive_flag_spec='-all_load $convenience'
9034 link_all_deplibs=yes
9035 else
9036 ld_shlibs=no
9037 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009038 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009039esac
9040echo "$as_me:$LINENO: result: $enable_shared" >&5
9041echo "${ECHO_T}$enable_shared" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009042
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009043echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9044echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9045# Make sure either enable_shared or enable_static is yes.
9046test "$enable_shared" = yes || enable_static=yes
9047echo "$as_me:$LINENO: result: $enable_static" >&5
9048echo "${ECHO_T}$enable_static" >&6
9049
9050# The else clause should only fire when bootstrapping the
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009051# libtool distribution, otherwise you forgot to ship ltmain.sh
9052# with your package, and you will get complaints that there are
9053# no rules to generate ltmain.sh.
9054if test -f "$ltmain"; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009055 # See if we are running on zsh, and set the options which allow our commands through
9056 # without removal of \ escapes.
9057 if test -n "${ZSH_VERSION+set}" ; then
9058 setopt NO_GLOB_SUBST
9059 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009060 # Now quote all the things that may contain metacharacters while being
9061 # careful not to overquote the AC_SUBSTed values. We take copies of the
9062 # variables and quote the copies for generation of the libtool script.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009063 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9064 SED SHELL STRIP \
9065 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9066 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9067 deplibs_check_method reload_flag reload_cmds need_locks \
9068 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9069 lt_cv_sys_global_symbol_to_c_name_address \
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009070 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009071 old_postinstall_cmds old_postuninstall_cmds \
9072 compiler \
9073 CC \
9074 LD \
9075 lt_prog_compiler_wl \
9076 lt_prog_compiler_pic \
9077 lt_prog_compiler_static \
9078 lt_prog_compiler_no_builtin_flag \
9079 export_dynamic_flag_spec \
9080 thread_safe_flag_spec \
9081 whole_archive_flag_spec \
9082 enable_shared_with_static_runtimes \
9083 old_archive_cmds \
9084 old_archive_from_new_cmds \
9085 predep_objects \
9086 postdep_objects \
9087 predeps \
9088 postdeps \
9089 compiler_lib_search_path \
9090 archive_cmds \
9091 archive_expsym_cmds \
9092 postinstall_cmds \
9093 postuninstall_cmds \
9094 old_archive_from_expsyms_cmds \
9095 allow_undefined_flag \
9096 no_undefined_flag \
9097 export_symbols_cmds \
9098 hardcode_libdir_flag_spec \
9099 hardcode_libdir_flag_spec_ld \
9100 hardcode_libdir_separator \
9101 hardcode_automatic \
9102 module_cmds \
9103 module_expsym_cmds \
9104 lt_cv_prog_compiler_c_o \
9105 exclude_expsyms \
9106 include_expsyms; do
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009107
9108 case $var in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009109 old_archive_cmds | \
9110 old_archive_from_new_cmds | \
9111 archive_cmds | \
9112 archive_expsym_cmds | \
9113 module_cmds | \
9114 module_expsym_cmds | \
9115 old_archive_from_expsyms_cmds | \
9116 export_symbols_cmds | \
9117 extract_expsyms_cmds | reload_cmds | finish_cmds | \
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009118 postinstall_cmds | postuninstall_cmds | \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009119 old_postinstall_cmds | old_postuninstall_cmds | \
9120 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009121 # Double-quote double-evaled strings.
9122 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9123 ;;
9124 *)
9125 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9126 ;;
9127 esac
9128 done
9129
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009130 case $lt_echo in
9131 *'\$0 --fallback-echo"')
9132 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9133 ;;
9134 esac
9135
9136cfgfile="${ofile}T"
9137 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9138 $rm -f "$cfgfile"
9139 { echo "$as_me:$LINENO: creating $ofile" >&5
9140echo "$as_me: creating $ofile" >&6;}
9141
9142 cat <<__EOF__ >> "$cfgfile"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009143#! $SHELL
9144
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009145# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009146# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9147# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9148#
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009149# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9150# Free Software Foundation, Inc.
9151#
9152# This file is part of GNU Libtool:
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009153# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9154#
9155# This program is free software; you can redistribute it and/or modify
9156# it under the terms of the GNU General Public License as published by
9157# the Free Software Foundation; either version 2 of the License, or
9158# (at your option) any later version.
9159#
9160# This program is distributed in the hope that it will be useful, but
9161# WITHOUT ANY WARRANTY; without even the implied warranty of
9162# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9163# General Public License for more details.
9164#
9165# You should have received a copy of the GNU General Public License
9166# along with this program; if not, write to the Free Software
9167# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9168#
9169# As a special exception to the GNU General Public License, if you
9170# distribute this file as part of a program that contains a
9171# configuration script generated by Autoconf, you may include it under
9172# the same distribution terms that you use for the rest of that program.
9173
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009174# A sed program that does not truncate output.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009175SED=$lt_SED
9176
9177# Sed that helps us avoid accidentally triggering echo(1) options like -n.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009178Xsed="$SED -e s/^X//"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009179
9180# The HP-UX ksh and POSIX shell print the target directory to stdout
9181# if CDPATH is set.
9182if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9183
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009184# The names of the tagged configurations supported by this script.
9185available_tags=
9186
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009187# ### BEGIN LIBTOOL CONFIG
9188
9189# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9190
9191# Shell to use when invoking shell scripts.
9192SHELL=$lt_SHELL
9193
9194# Whether or not to build shared libraries.
9195build_libtool_libs=$enable_shared
9196
9197# Whether or not to build static libraries.
9198build_old_libs=$enable_static
9199
9200# Whether or not to add -lc for building shared libraries.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009201build_libtool_need_lc=$archive_cmds_need_lc
9202
9203# Whether or not to disallow shared libs when runtime libs are static
9204allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009205
9206# Whether or not to optimize for fast installation.
9207fast_install=$enable_fast_install
9208
9209# The host system.
9210host_alias=$host_alias
9211host=$host
9212
9213# An echo program that does not interpret backslashes.
9214echo=$lt_echo
9215
9216# The archiver.
9217AR=$lt_AR
9218AR_FLAGS=$lt_AR_FLAGS
9219
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009220# A C compiler.
9221LTCC=$lt_LTCC
9222
9223# A language-specific compiler.
9224CC=$lt_compiler
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009225
9226# Is the compiler the GNU C compiler?
9227with_gcc=$GCC
9228
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009229# An ERE matcher.
9230EGREP=$lt_EGREP
9231
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009232# The linker used to build libraries.
9233LD=$lt_LD
9234
9235# Whether we need hard or soft links.
9236LN_S=$lt_LN_S
9237
9238# A BSD-compatible nm program.
9239NM=$lt_NM
9240
9241# A symbol stripping program
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009242STRIP=$lt_STRIP
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009243
9244# Used to examine libraries when file_magic_cmd begins "file"
9245MAGIC_CMD=$MAGIC_CMD
9246
9247# Used on cygwin: DLL creation program.
9248DLLTOOL="$DLLTOOL"
9249
9250# Used on cygwin: object dumper.
9251OBJDUMP="$OBJDUMP"
9252
9253# Used on cygwin: assembler.
9254AS="$AS"
9255
9256# The name of the directory that contains temporary libtool files.
9257objdir=$objdir
9258
9259# How to create reloadable object files.
9260reload_flag=$lt_reload_flag
9261reload_cmds=$lt_reload_cmds
9262
9263# How to pass a linker flag through the compiler.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009264wl=$lt_lt_prog_compiler_wl
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009265
9266# Object file suffix (normally "o").
9267objext="$ac_objext"
9268
9269# Old archive suffix (normally "a").
9270libext="$libext"
9271
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009272# Shared library suffix (normally ".so").
9273shrext='$shrext'
9274
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009275# Executable file suffix (normally "").
9276exeext="$exeext"
9277
9278# Additional compiler flags for building library objects.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009279pic_flag=$lt_lt_prog_compiler_pic
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009280pic_mode=$pic_mode
9281
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009282# What is the maximum length of a command?
9283max_cmd_len=$lt_cv_sys_max_cmd_len
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009284
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009285# Does compiler simultaneously support -c and -o options?
9286compiler_c_o=$lt_lt_cv_prog_compiler_c_o
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009287
9288# Must we lock files when doing compilation ?
9289need_locks=$lt_need_locks
9290
9291# Do we need the lib prefix for modules?
9292need_lib_prefix=$need_lib_prefix
9293
9294# Do we need a version for libraries?
9295need_version=$need_version
9296
9297# Whether dlopen is supported.
9298dlopen_support=$enable_dlopen
9299
9300# Whether dlopen of programs is supported.
9301dlopen_self=$enable_dlopen_self
9302
9303# Whether dlopen of statically linked programs is supported.
9304dlopen_self_static=$enable_dlopen_self_static
9305
9306# Compiler flag to prevent dynamic linking.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009307link_static_flag=$lt_lt_prog_compiler_static
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009308
9309# Compiler flag to turn off builtin functions.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009310no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009311
9312# Compiler flag to allow reflexive dlopens.
9313export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9314
9315# Compiler flag to generate shared objects directly from archives.
9316whole_archive_flag_spec=$lt_whole_archive_flag_spec
9317
9318# Compiler flag to generate thread-safe objects.
9319thread_safe_flag_spec=$lt_thread_safe_flag_spec
9320
9321# Library versioning type.
9322version_type=$version_type
9323
9324# Format of library name prefix.
9325libname_spec=$lt_libname_spec
9326
9327# List of archive names. First name is the real one, the rest are links.
9328# The last name is the one that the linker finds with -lNAME.
9329library_names_spec=$lt_library_names_spec
9330
9331# The coded name of the library, if different from the real name.
9332soname_spec=$lt_soname_spec
9333
9334# Commands used to build and install an old-style archive.
9335RANLIB=$lt_RANLIB
9336old_archive_cmds=$lt_old_archive_cmds
9337old_postinstall_cmds=$lt_old_postinstall_cmds
9338old_postuninstall_cmds=$lt_old_postuninstall_cmds
9339
9340# Create an old-style archive from a shared archive.
9341old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9342
9343# Create a temporary old-style archive to link instead of a shared archive.
9344old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9345
9346# Commands used to build and install a shared archive.
9347archive_cmds=$lt_archive_cmds
9348archive_expsym_cmds=$lt_archive_expsym_cmds
9349postinstall_cmds=$lt_postinstall_cmds
9350postuninstall_cmds=$lt_postuninstall_cmds
9351
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009352# Commands used to build a loadable module (assumed same as above if empty)
9353module_cmds=$lt_module_cmds
9354module_expsym_cmds=$lt_module_expsym_cmds
9355
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009356# Commands to strip libraries.
9357old_striplib=$lt_old_striplib
9358striplib=$lt_striplib
9359
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009360# Dependencies to place before the objects being linked to create a
9361# shared library.
9362predep_objects=$lt_predep_objects
9363
9364# Dependencies to place after the objects being linked to create a
9365# shared library.
9366postdep_objects=$lt_postdep_objects
9367
9368# Dependencies to place before the objects being linked to create a
9369# shared library.
9370predeps=$lt_predeps
9371
9372# Dependencies to place after the objects being linked to create a
9373# shared library.
9374postdeps=$lt_postdeps
9375
9376# The library search path used internally by the compiler when linking
9377# a shared library.
9378compiler_lib_search_path=$lt_compiler_lib_search_path
9379
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009380# Method to check whether dependent libraries are shared objects.
9381deplibs_check_method=$lt_deplibs_check_method
9382
9383# Command to use when deplibs_check_method == file_magic.
9384file_magic_cmd=$lt_file_magic_cmd
9385
9386# Flag that allows shared libraries with undefined symbols to be built.
9387allow_undefined_flag=$lt_allow_undefined_flag
9388
9389# Flag that forces no undefined symbols.
9390no_undefined_flag=$lt_no_undefined_flag
9391
9392# Commands used to finish a libtool library installation in a directory.
9393finish_cmds=$lt_finish_cmds
9394
9395# Same as above, but a single script fragment to be evaled but not shown.
9396finish_eval=$lt_finish_eval
9397
9398# Take the output of nm and produce a listing of raw symbols and C names.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009399global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009400
9401# Transform the output of nm in a proper C declaration
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009402global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009403
9404# Transform the output of nm in a C name address pair
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009405global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009406
9407# This is the shared library runtime path variable.
9408runpath_var=$runpath_var
9409
9410# This is the shared library path variable.
9411shlibpath_var=$shlibpath_var
9412
9413# Is shlibpath searched before the hard-coded library search path?
9414shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9415
9416# How to hardcode a shared library path into an executable.
9417hardcode_action=$hardcode_action
9418
9419# Whether we should hardcode library paths into libraries.
9420hardcode_into_libs=$hardcode_into_libs
9421
9422# Flag to hardcode \$libdir into a binary during linking.
9423# This must work even if \$libdir does not exist.
9424hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9425
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009426# If ld is used when linking, flag to hardcode \$libdir into
9427# a binary during linking. This must work even if \$libdir does
9428# not exist.
9429hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9430
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009431# Whether we need a single -rpath flag with a separated argument.
9432hardcode_libdir_separator=$lt_hardcode_libdir_separator
9433
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009434# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009435# resulting binary.
9436hardcode_direct=$hardcode_direct
9437
9438# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9439# resulting binary.
9440hardcode_minus_L=$hardcode_minus_L
9441
9442# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9443# the resulting binary.
9444hardcode_shlibpath_var=$hardcode_shlibpath_var
9445
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009446# Set to yes if building a shared library automatically hardcodes DIR into the library
9447# and all subsequent libraries and executables linked against it.
9448hardcode_automatic=$hardcode_automatic
9449
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009450# Variables whose values should be saved in libtool wrapper scripts and
9451# restored at relink time.
9452variables_saved_for_relink="$variables_saved_for_relink"
9453
9454# Whether libtool must link a program against all its dependency libraries.
9455link_all_deplibs=$link_all_deplibs
9456
9457# Compile-time system search path for libraries
9458sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9459
9460# Run-time system search path for libraries
9461sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9462
9463# Fix the shell variable \$srcfile for the compiler.
9464fix_srcfile_path="$fix_srcfile_path"
9465
9466# Set to yes if exported symbols are required.
9467always_export_symbols=$always_export_symbols
9468
9469# The commands to list exported symbols.
9470export_symbols_cmds=$lt_export_symbols_cmds
9471
9472# The commands to extract the exported symbol list from a shared archive.
9473extract_expsyms_cmds=$lt_extract_expsyms_cmds
9474
9475# Symbols that should not be listed in the preloaded symbols.
9476exclude_expsyms=$lt_exclude_expsyms
9477
9478# Symbols that must always be exported.
9479include_expsyms=$lt_include_expsyms
9480
9481# ### END LIBTOOL CONFIG
9482
9483__EOF__
9484
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009485
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009486 case $host_os in
9487 aix3*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009488 cat <<\EOF >> "$cfgfile"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009489
9490# AIX sometimes has problems with the GCC collect2 program. For some
9491# reason, if we set the COLLECT_NAMES environment variable, the problems
9492# vanish in a puff of smoke.
9493if test "X${COLLECT_NAMES+set}" != Xset; then
9494 COLLECT_NAMES=
9495 export COLLECT_NAMES
9496fi
9497EOF
9498 ;;
9499 esac
9500
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009501 # We use sed instead of cat because bash on DJGPP gets confused if
9502 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9503 # text mode, it properly converts lines to CR/LF. This bash problem
9504 # is reportedly fixed, but why not run on old versions too?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009505 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009506
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009507 mv -f "$cfgfile" "$ofile" || \
9508 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009509 chmod +x "$ofile"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009510
9511else
9512 # If there is no Makefile yet, we rely on a make rule to execute
9513 # `config.status --recheck' to rerun these tests and create the
9514 # libtool script then.
9515 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9516 if test -f "$ltmain_in"; then
9517 test -f Makefile && make "$ltmain"
9518 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009519fi
9520
9521
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009522ac_ext=c
9523ac_cpp='$CPP $CPPFLAGS'
9524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9526ac_compiler_gnu=$ac_cv_c_compiler_gnu
9527
9528CC="$lt_save_CC"
9529
9530
9531# Check whether --with-tags or --without-tags was given.
9532if test "${with_tags+set}" = set; then
9533 withval="$with_tags"
9534 tagnames="$withval"
9535fi;
9536
9537if test -f "$ltmain" && test -n "$tagnames"; then
9538 if test ! -f "${ofile}"; then
9539 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9540echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9541 fi
9542
9543 if test -z "$LTCC"; then
9544 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9545 if test -z "$LTCC"; then
9546 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9547echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9548 else
9549 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9550echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9551 fi
9552 fi
9553
9554 # Extract list of available tagged configurations in $ofile.
9555 # Note that this assumes the entire list is on one line.
9556 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9557
9558 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9559 for tagname in $tagnames; do
9560 IFS="$lt_save_ifs"
9561 # Check whether tagname contains only valid characters
9562 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9563 "") ;;
9564 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9565echo "$as_me: error: invalid tag name: $tagname" >&2;}
9566 { (exit 1); exit 1; }; }
9567 ;;
9568 esac
9569
9570 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9571 then
9572 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9573echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9574 { (exit 1); exit 1; }; }
9575 fi
9576
9577 # Update the list of available tags.
9578 if test -n "$tagname"; then
9579 echo appending configuration tag \"$tagname\" to $ofile
9580
9581 case $tagname in
9582 CXX)
9583 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9584 ac_ext=cc
9585ac_cpp='$CXXCPP $CPPFLAGS'
9586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9589
9590
9591
9592
9593archive_cmds_need_lc_CXX=no
9594allow_undefined_flag_CXX=
9595always_export_symbols_CXX=no
9596archive_expsym_cmds_CXX=
9597export_dynamic_flag_spec_CXX=
9598hardcode_direct_CXX=no
9599hardcode_libdir_flag_spec_CXX=
9600hardcode_libdir_flag_spec_ld_CXX=
9601hardcode_libdir_separator_CXX=
9602hardcode_minus_L_CXX=no
9603hardcode_automatic_CXX=no
9604module_cmds_CXX=
9605module_expsym_cmds_CXX=
9606link_all_deplibs_CXX=unknown
9607old_archive_cmds_CXX=$old_archive_cmds
9608no_undefined_flag_CXX=
9609whole_archive_flag_spec_CXX=
9610enable_shared_with_static_runtimes_CXX=no
9611
9612# Dependencies to place before and after the object being linked:
9613predep_objects_CXX=
9614postdep_objects_CXX=
9615predeps_CXX=
9616postdeps_CXX=
9617compiler_lib_search_path_CXX=
9618
9619# Source file extension for C++ test sources.
9620ac_ext=cc
9621
9622# Object file extension for compiled C++ test sources.
9623objext=o
9624objext_CXX=$objext
9625
9626# Code to be used in simple compile tests
9627lt_simple_compile_test_code="int some_variable = 0;\n"
9628
9629# Code to be used in simple link tests
9630lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9631
9632# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9633
9634# If no C compiler was specified, use CC.
9635LTCC=${LTCC-"$CC"}
9636
9637# Allow CC to be a program name with arguments.
9638compiler=$CC
9639
9640
9641# Allow CC to be a program name with arguments.
9642lt_save_CC=$CC
9643lt_save_LD=$LD
9644lt_save_GCC=$GCC
9645GCC=$GXX
9646lt_save_with_gnu_ld=$with_gnu_ld
9647lt_save_path_LD=$lt_cv_path_LD
9648if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9649 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9650else
9651 unset lt_cv_prog_gnu_ld
9652fi
9653if test -n "${lt_cv_path_LDCXX+set}"; then
9654 lt_cv_path_LD=$lt_cv_path_LDCXX
9655else
9656 unset lt_cv_path_LD
9657fi
9658test -z "${LDCXX+set}" || LD=$LDCXX
9659CC=${CXX-"c++"}
9660compiler=$CC
9661compiler_CXX=$CC
9662cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9663
9664# We don't want -fno-exception wen compiling C++ code, so set the
9665# no_builtin_flag separately
9666if test "$GXX" = yes; then
9667 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9668else
9669 lt_prog_compiler_no_builtin_flag_CXX=
9670fi
9671
9672if test "$GXX" = yes; then
9673 # Set up default GNU C++ configuration
9674
9675
9676# Check whether --with-gnu-ld or --without-gnu-ld was given.
9677if test "${with_gnu_ld+set}" = set; then
9678 withval="$with_gnu_ld"
9679 test "$withval" = no || with_gnu_ld=yes
9680else
9681 with_gnu_ld=no
9682fi;
9683ac_prog=ld
9684if test "$GCC" = yes; then
9685 # Check if gcc -print-prog-name=ld gives a path.
9686 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9687echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9688 case $host in
9689 *-*-mingw*)
9690 # gcc leaves a trailing carriage return which upsets mingw
9691 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9692 *)
9693 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9694 esac
9695 case $ac_prog in
9696 # Accept absolute paths.
9697 [\\/]* | ?:[\\/]*)
9698 re_direlt='/[^/][^/]*/\.\./'
9699 # Canonicalize the pathname of ld
9700 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9701 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9702 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9703 done
9704 test -z "$LD" && LD="$ac_prog"
9705 ;;
9706 "")
9707 # If it fails, then pretend we aren't using GCC.
9708 ac_prog=ld
9709 ;;
9710 *)
9711 # If it is relative, then search for the first ld in PATH.
9712 with_gnu_ld=unknown
9713 ;;
9714 esac
9715elif test "$with_gnu_ld" = yes; then
9716 echo "$as_me:$LINENO: checking for GNU ld" >&5
9717echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9718else
9719 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9720echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9721fi
9722if test "${lt_cv_path_LD+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9724else
9725 if test -z "$LD"; then
9726 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9727 for ac_dir in $PATH; do
9728 IFS="$lt_save_ifs"
9729 test -z "$ac_dir" && ac_dir=.
9730 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9731 lt_cv_path_LD="$ac_dir/$ac_prog"
9732 # Check to see if the program is GNU ld. I'd rather use --version,
9733 # but apparently some GNU ld's only accept -v.
9734 # Break only if it was the GNU/non-GNU ld that we prefer.
9735 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9736 *GNU* | *'with BFD'*)
9737 test "$with_gnu_ld" != no && break
9738 ;;
9739 *)
9740 test "$with_gnu_ld" != yes && break
9741 ;;
9742 esac
9743 fi
9744 done
9745 IFS="$lt_save_ifs"
9746else
9747 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9748fi
9749fi
9750
9751LD="$lt_cv_path_LD"
9752if test -n "$LD"; then
9753 echo "$as_me:$LINENO: result: $LD" >&5
9754echo "${ECHO_T}$LD" >&6
9755else
9756 echo "$as_me:$LINENO: result: no" >&5
9757echo "${ECHO_T}no" >&6
9758fi
9759test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9760echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9761 { (exit 1); exit 1; }; }
9762echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9763echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9764if test "${lt_cv_prog_gnu_ld+set}" = set; then
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
9766else
9767 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9768case `$LD -v 2>&1 </dev/null` in
9769*GNU* | *'with BFD'*)
9770 lt_cv_prog_gnu_ld=yes
9771 ;;
9772*)
9773 lt_cv_prog_gnu_ld=no
9774 ;;
9775esac
9776fi
9777echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9778echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9779with_gnu_ld=$lt_cv_prog_gnu_ld
9780
9781
9782
9783 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9784 # archiving commands below assume that GNU ld is being used.
9785 if test "$with_gnu_ld" = yes; then
9786 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9787 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'
9788
9789 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9790 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9791
9792 # If archive_cmds runs LD, not CC, wlarc should be empty
9793 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9794 # investigate it a little bit more. (MM)
9795 wlarc='${wl}'
9796
9797 # ancient GNU ld didn't support --whole-archive et. al.
9798 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9799 grep 'no-whole-archive' > /dev/null; then
9800 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9801 else
9802 whole_archive_flag_spec_CXX=
9803 fi
9804 else
9805 with_gnu_ld=no
9806 wlarc=
9807
9808 # A generic and very simple default shared library creation
9809 # command for GNU C++ for the case where it uses the native
9810 # linker, instead of GNU ld. If possible, this setting should
9811 # overridden to take advantage of the native linker features on
9812 # the platform it is being used on.
9813 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9814 fi
9815
9816 # Commands to make compiler produce verbose output that lists
9817 # what "hidden" libraries, object files and flags are used when
9818 # linking a shared library.
9819 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9820
9821else
9822 GXX=no
9823 with_gnu_ld=no
9824 wlarc=
9825fi
9826
9827# PORTME: fill in a description of your system's C++ link characteristics
9828echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9829echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9830ld_shlibs_CXX=yes
9831case $host_os in
9832 aix3*)
9833 # FIXME: insert proper C++ library support
9834 ld_shlibs_CXX=no
9835 ;;
9836 aix4* | aix5*)
9837 if test "$host_cpu" = ia64; then
9838 # On IA64, the linker does run time linking by default, so we don't
9839 # have to do anything special.
9840 aix_use_runtimelinking=no
9841 exp_sym_flag='-Bexport'
9842 no_entry_flag=""
9843 else
9844 aix_use_runtimelinking=no
9845
9846 # Test if we are trying to use run time linking or normal
9847 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9848 # need to do runtime linking.
9849 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9850 for ld_flag in $LDFLAGS; do
9851 case $ld_flag in
9852 *-brtl*)
9853 aix_use_runtimelinking=yes
9854 break
9855 ;;
9856 esac
9857 done
9858 esac
9859
9860 exp_sym_flag='-bexport'
9861 no_entry_flag='-bnoentry'
9862 fi
9863
9864 # When large executables or shared objects are built, AIX ld can
9865 # have problems creating the table of contents. If linking a library
9866 # or program results in "error TOC overflow" add -mminimal-toc to
9867 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9868 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9869
9870 archive_cmds_CXX=''
9871 hardcode_direct_CXX=yes
9872 hardcode_libdir_separator_CXX=':'
9873 link_all_deplibs_CXX=yes
9874
9875 if test "$GXX" = yes; then
9876 case $host_os in aix4.012|aix4.012.*)
9877 # We only want to do this on AIX 4.2 and lower, the check
9878 # below for broken collect2 doesn't work under 4.3+
9879 collect2name=`${CC} -print-prog-name=collect2`
9880 if test -f "$collect2name" && \
9881 strings "$collect2name" | grep resolve_lib_name >/dev/null
9882 then
9883 # We have reworked collect2
9884 hardcode_direct_CXX=yes
9885 else
9886 # We have old collect2
9887 hardcode_direct_CXX=unsupported
9888 # It fails to find uninstalled libraries when the uninstalled
9889 # path is not listed in the libpath. Setting hardcode_minus_L
9890 # to unsupported forces relinking
9891 hardcode_minus_L_CXX=yes
9892 hardcode_libdir_flag_spec_CXX='-L$libdir'
9893 hardcode_libdir_separator_CXX=
9894 fi
9895 esac
9896 shared_flag='-shared'
9897 else
9898 # not using gcc
9899 if test "$host_cpu" = ia64; then
9900 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9901 # chokes on -Wl,-G. The following line is correct:
9902 shared_flag='-G'
9903 else
9904 if test "$aix_use_runtimelinking" = yes; then
9905 shared_flag='${wl}-G'
9906 else
9907 shared_flag='${wl}-bM:SRE'
9908 fi
9909 fi
9910 fi
9911
9912 # It seems that -bexpall does not export symbols beginning with
9913 # underscore (_), so it is better to generate a list of symbols to export.
9914 always_export_symbols_CXX=yes
9915 if test "$aix_use_runtimelinking" = yes; then
9916 # Warning - without using the other runtime loading flags (-brtl),
9917 # -berok will link without error, but may produce a broken library.
9918 allow_undefined_flag_CXX='-berok'
9919 # Determine the default libpath from the value encoded in an empty executable.
9920 cat >conftest.$ac_ext <<_ACEOF
9921/* confdefs.h. */
9922_ACEOF
9923cat confdefs.h >>conftest.$ac_ext
9924cat >>conftest.$ac_ext <<_ACEOF
9925/* end confdefs.h. */
9926
9927int
9928main ()
9929{
9930
9931 ;
9932 return 0;
9933}
9934_ACEOF
9935rm -f conftest.$ac_objext conftest$ac_exeext
9936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9937 (eval $ac_link) 2>conftest.er1
9938 ac_status=$?
9939 grep -v '^ *+' conftest.er1 >conftest.err
9940 rm -f conftest.er1
9941 cat conftest.err >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } &&
9944 { ac_try='test -z "$ac_cxx_werror_flag"
9945 || test ! -s conftest.err'
9946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9947 (eval $ac_try) 2>&5
9948 ac_status=$?
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); }; } &&
9951 { ac_try='test -s conftest$ac_exeext'
9952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953 (eval $ac_try) 2>&5
9954 ac_status=$?
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); }; }; then
9957
9958aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9959}'`
9960# Check for a 64-bit object if we didn't find anything.
9961if 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; }
9962}'`; fi
9963else
9964 echo "$as_me: failed program was:" >&5
9965sed 's/^/| /' conftest.$ac_ext >&5
9966
9967fi
9968rm -f conftest.err conftest.$ac_objext \
9969 conftest$ac_exeext conftest.$ac_ext
9970if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9971
9972 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9973
9974 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"
9975 else
9976 if test "$host_cpu" = ia64; then
9977 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9978 allow_undefined_flag_CXX="-z nodefs"
9979 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"
9980 else
9981 # Determine the default libpath from the value encoded in an empty executable.
9982 cat >conftest.$ac_ext <<_ACEOF
9983/* confdefs.h. */
9984_ACEOF
9985cat confdefs.h >>conftest.$ac_ext
9986cat >>conftest.$ac_ext <<_ACEOF
9987/* end confdefs.h. */
9988
9989int
9990main ()
9991{
9992
9993 ;
9994 return 0;
9995}
9996_ACEOF
9997rm -f conftest.$ac_objext conftest$ac_exeext
9998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9999 (eval $ac_link) 2>conftest.er1
10000 ac_status=$?
10001 grep -v '^ *+' conftest.er1 >conftest.err
10002 rm -f conftest.er1
10003 cat conftest.err >&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } &&
10006 { ac_try='test -z "$ac_cxx_werror_flag"
10007 || test ! -s conftest.err'
10008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10009 (eval $ac_try) 2>&5
10010 ac_status=$?
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; } &&
10013 { ac_try='test -s conftest$ac_exeext'
10014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015 (eval $ac_try) 2>&5
10016 ac_status=$?
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); }; }; then
10019
10020aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10021}'`
10022# Check for a 64-bit object if we didn't find anything.
10023if 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; }
10024}'`; fi
10025else
10026 echo "$as_me: failed program was:" >&5
10027sed 's/^/| /' conftest.$ac_ext >&5
10028
10029fi
10030rm -f conftest.err conftest.$ac_objext \
10031 conftest$ac_exeext conftest.$ac_ext
10032if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10033
10034 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10035 # Warning - without using the other run time loading flags,
10036 # -berok will link without error, but may produce a broken library.
10037 no_undefined_flag_CXX=' ${wl}-bernotok'
10038 allow_undefined_flag_CXX=' ${wl}-berok'
10039 # -bexpall does not export symbols beginning with underscore (_)
10040 always_export_symbols_CXX=yes
10041 # Exported symbols can be pulled into shared objects from archives
10042 whole_archive_flag_spec_CXX=' '
10043 archive_cmds_need_lc_CXX=yes
10044 # This is similar to how AIX traditionally builds it's shared libraries.
10045 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'
10046 fi
10047 fi
10048 ;;
10049 chorus*)
10050 case $cc_basename in
10051 *)
10052 # FIXME: insert proper C++ library support
10053 ld_shlibs_CXX=no
10054 ;;
10055 esac
10056 ;;
10057
10058 cygwin* | mingw* | pw32*)
10059 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10060 # as there is no search path for DLLs.
10061 hardcode_libdir_flag_spec_CXX='-L$libdir'
10062 allow_undefined_flag_CXX=unsupported
10063 always_export_symbols_CXX=no
10064 enable_shared_with_static_runtimes_CXX=yes
10065
10066 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10067 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'
10068 # If the export-symbols file already is a .def file (1st line
10069 # is EXPORTS), use it as is; otherwise, prepend...
10070 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10071 cp $export_symbols $output_objdir/$soname.def;
10072 else
10073 echo EXPORTS > $output_objdir/$soname.def;
10074 cat $export_symbols >> $output_objdir/$soname.def;
10075 fi~
10076 $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'
10077 else
10078 ld_shlibs_CXX=no
10079 fi
10080 ;;
10081
10082 darwin* | rhapsody*)
10083 if test "$GXX" = yes; then
10084 archive_cmds_need_lc_CXX=no
10085 case "$host_os" in
10086 rhapsody* | darwin1.[012])
10087 allow_undefined_flag_CXX='-undefined suppress'
10088 ;;
10089 *) # Darwin 1.3 on
10090 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10091 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10092 else
10093 case ${MACOSX_DEPLOYMENT_TARGET} in
10094 10.[012])
10095 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10096 ;;
10097 10.*)
10098 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10099 ;;
10100 esac
10101 fi
10102 ;;
10103 esac
10104 lt_int_apple_cc_single_mod=no
10105 output_verbose_link_cmd='echo'
10106 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10107 lt_int_apple_cc_single_mod=yes
10108 fi
10109 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10110 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10111 else
10112 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'
10113 fi
10114 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10115
10116 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10117 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10118 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}'
10119 else
10120 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}'
10121 fi
10122 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}'
10123 hardcode_direct_CXX=no
10124 hardcode_automatic_CXX=yes
10125 hardcode_shlibpath_var_CXX=unsupported
10126 whole_archive_flag_spec_CXX='-all_load $convenience'
10127 link_all_deplibs_CXX=yes
10128 else
10129 ld_shlibs_CXX=no
10130 fi
10131 ;;
10132
10133 dgux*)
10134 case $cc_basename in
10135 ec++)
10136 # FIXME: insert proper C++ library support
10137 ld_shlibs_CXX=no
10138 ;;
10139 ghcx)
10140 # Green Hills C++ Compiler
10141 # FIXME: insert proper C++ library support
10142 ld_shlibs_CXX=no
10143 ;;
10144 *)
10145 # FIXME: insert proper C++ library support
10146 ld_shlibs_CXX=no
10147 ;;
10148 esac
10149 ;;
10150 freebsd12*)
10151 # C++ shared libraries reported to be fairly broken before switch to ELF
10152 ld_shlibs_CXX=no
10153 ;;
10154 freebsd-elf*)
10155 archive_cmds_need_lc_CXX=no
10156 ;;
10157 freebsd* | kfreebsd*-gnu)
10158 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10159 # conventions
10160 ld_shlibs_CXX=yes
10161 ;;
10162 gnu*)
10163 ;;
10164 hpux9*)
10165 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10166 hardcode_libdir_separator_CXX=:
10167 export_dynamic_flag_spec_CXX='${wl}-E'
10168 hardcode_direct_CXX=yes
10169 hardcode_minus_L_CXX=yes # Not in the search PATH,
10170 # but as the default
10171 # location of the library.
10172
10173 case $cc_basename in
10174 CC)
10175 # FIXME: insert proper C++ library support
10176 ld_shlibs_CXX=no
10177 ;;
10178 aCC)
10179 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'
10180 # Commands to make compiler produce verbose output that lists
10181 # what "hidden" libraries, object files and flags are used when
10182 # linking a shared library.
10183 #
10184 # There doesn't appear to be a way to prevent this compiler from
10185 # explicitly linking system object files so we need to strip them
10186 # from the output so that they don't get included in the library
10187 # dependencies.
10188 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10189 ;;
10190 *)
10191 if test "$GXX" = yes; then
10192 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'
10193 else
10194 # FIXME: insert proper C++ library support
10195 ld_shlibs_CXX=no
10196 fi
10197 ;;
10198 esac
10199 ;;
10200 hpux10*|hpux11*)
10201 if test $with_gnu_ld = no; then
10202 case "$host_cpu" in
10203 hppa*64*)
10204 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10205 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10206 hardcode_libdir_separator_CXX=:
10207 ;;
10208 ia64*)
10209 hardcode_libdir_flag_spec_CXX='-L$libdir'
10210 ;;
10211 *)
10212 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10213 hardcode_libdir_separator_CXX=:
10214 export_dynamic_flag_spec_CXX='${wl}-E'
10215 ;;
10216 esac
10217 fi
10218 case "$host_cpu" in
10219 hppa*64*)
10220 hardcode_direct_CXX=no
10221 hardcode_shlibpath_var_CXX=no
10222 ;;
10223 ia64*)
10224 hardcode_direct_CXX=no
10225 hardcode_shlibpath_var_CXX=no
10226 hardcode_minus_L_CXX=yes # Not in the search PATH,
10227 # but as the default
10228 # location of the library.
10229 ;;
10230 *)
10231 hardcode_direct_CXX=yes
10232 hardcode_minus_L_CXX=yes # Not in the search PATH,
10233 # but as the default
10234 # location of the library.
10235 ;;
10236 esac
10237
10238 case $cc_basename in
10239 CC)
10240 # FIXME: insert proper C++ library support
10241 ld_shlibs_CXX=no
10242 ;;
10243 aCC)
10244 case "$host_cpu" in
10245 hppa*64*|ia64*)
10246 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10247 ;;
10248 *)
10249 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10250 ;;
10251 esac
10252 # Commands to make compiler produce verbose output that lists
10253 # what "hidden" libraries, object files and flags are used when
10254 # linking a shared library.
10255 #
10256 # There doesn't appear to be a way to prevent this compiler from
10257 # explicitly linking system object files so we need to strip them
10258 # from the output so that they don't get included in the library
10259 # dependencies.
10260 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'
10261 ;;
10262 *)
10263 if test "$GXX" = yes; then
10264 if test $with_gnu_ld = no; then
10265 case "$host_cpu" in
10266 ia64*|hppa*64*)
10267 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10268 ;;
10269 *)
10270 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'
10271 ;;
10272 esac
10273 fi
10274 else
10275 # FIXME: insert proper C++ library support
10276 ld_shlibs_CXX=no
10277 fi
10278 ;;
10279 esac
10280 ;;
10281 irix5* | irix6*)
10282 case $cc_basename in
10283 CC)
10284 # SGI C++
10285 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'
10286
10287 # Archives containing C++ object files must be created using
10288 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10289 # necessary to make sure instantiated templates are included
10290 # in the archive.
10291 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10292 ;;
10293 *)
10294 if test "$GXX" = yes; then
10295 if test "$with_gnu_ld" = no; then
10296 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'
10297 else
10298 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'
10299 fi
10300 fi
10301 link_all_deplibs_CXX=yes
10302 ;;
10303 esac
10304 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10305 hardcode_libdir_separator_CXX=:
10306 ;;
10307 linux*)
10308 case $cc_basename in
10309 KCC)
10310 # Kuck and Associates, Inc. (KAI) C++ Compiler
10311
10312 # KCC will only create a shared library if the output file
10313 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10314 # to its proper name (with version) after linking.
10315 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'
10316 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'
10317 # Commands to make compiler produce verbose output that lists
10318 # what "hidden" libraries, object files and flags are used when
10319 # linking a shared library.
10320 #
10321 # There doesn't appear to be a way to prevent this compiler from
10322 # explicitly linking system object files so we need to strip them
10323 # from the output so that they don't get included in the library
10324 # dependencies.
10325 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'
10326
10327 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10328 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10329
10330 # Archives containing C++ object files must be created using
10331 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10332 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10333 ;;
10334 icpc)
10335 # Intel C++
10336 with_gnu_ld=yes
10337 archive_cmds_need_lc_CXX=no
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 ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10340 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10341 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10342 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10343 ;;
10344 cxx)
10345 # Compaq C++
10346 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10347 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'
10348
10349 runpath_var=LD_RUN_PATH
10350 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10351 hardcode_libdir_separator_CXX=:
10352
10353 # Commands to make compiler produce verbose output that lists
10354 # what "hidden" libraries, object files and flags are used when
10355 # linking a shared library.
10356 #
10357 # There doesn't appear to be a way to prevent this compiler from
10358 # explicitly linking system object files so we need to strip them
10359 # from the output so that they don't get included in the library
10360 # dependencies.
10361 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'
10362 ;;
10363 esac
10364 ;;
10365 lynxos*)
10366 # FIXME: insert proper C++ library support
10367 ld_shlibs_CXX=no
10368 ;;
10369 m88k*)
10370 # FIXME: insert proper C++ library support
10371 ld_shlibs_CXX=no
10372 ;;
10373 mvs*)
10374 case $cc_basename in
10375 cxx)
10376 # FIXME: insert proper C++ library support
10377 ld_shlibs_CXX=no
10378 ;;
10379 *)
10380 # FIXME: insert proper C++ library support
10381 ld_shlibs_CXX=no
10382 ;;
10383 esac
10384 ;;
10385 netbsd*)
10386 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10387 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10388 wlarc=
10389 hardcode_libdir_flag_spec_CXX='-R$libdir'
10390 hardcode_direct_CXX=yes
10391 hardcode_shlibpath_var_CXX=no
10392 fi
10393 # Workaround some broken pre-1.5 toolchains
10394 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10395 ;;
10396 osf3*)
10397 case $cc_basename in
10398 KCC)
10399 # Kuck and Associates, Inc. (KAI) C++ Compiler
10400
10401 # KCC will only create a shared library if the output file
10402 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10403 # to its proper name (with version) after linking.
10404 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'
10405
10406 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10407 hardcode_libdir_separator_CXX=:
10408
10409 # Archives containing C++ object files must be created using
10410 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10411 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10412
10413 ;;
10414 RCC)
10415 # Rational C++ 2.4.1
10416 # FIXME: insert proper C++ library support
10417 ld_shlibs_CXX=no
10418 ;;
10419 cxx)
10420 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10421 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'
10422
10423 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10424 hardcode_libdir_separator_CXX=:
10425
10426 # Commands to make compiler produce verbose output that lists
10427 # what "hidden" libraries, object files and flags are used when
10428 # linking a shared library.
10429 #
10430 # There doesn't appear to be a way to prevent this compiler from
10431 # explicitly linking system object files so we need to strip them
10432 # from the output so that they don't get included in the library
10433 # dependencies.
10434 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'
10435 ;;
10436 *)
10437 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10438 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10439 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'
10440
10441 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10442 hardcode_libdir_separator_CXX=:
10443
10444 # Commands to make compiler produce verbose output that lists
10445 # what "hidden" libraries, object files and flags are used when
10446 # linking a shared library.
10447 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10448
10449 else
10450 # FIXME: insert proper C++ library support
10451 ld_shlibs_CXX=no
10452 fi
10453 ;;
10454 esac
10455 ;;
10456 osf4* | osf5*)
10457 case $cc_basename in
10458 KCC)
10459 # Kuck and Associates, Inc. (KAI) C++ Compiler
10460
10461 # KCC will only create a shared library if the output file
10462 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10463 # to its proper name (with version) after linking.
10464 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'
10465
10466 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10467 hardcode_libdir_separator_CXX=:
10468
10469 # Archives containing C++ object files must be created using
10470 # the KAI C++ compiler.
10471 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10472 ;;
10473 RCC)
10474 # Rational C++ 2.4.1
10475 # FIXME: insert proper C++ library support
10476 ld_shlibs_CXX=no
10477 ;;
10478 cxx)
10479 allow_undefined_flag_CXX=' -expect_unresolved \*'
10480 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'
10481 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10482 echo "-hidden">> $lib.exp~
10483 $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~
10484 $rm $lib.exp'
10485
10486 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10487 hardcode_libdir_separator_CXX=:
10488
10489 # Commands to make compiler produce verbose output that lists
10490 # what "hidden" libraries, object files and flags are used when
10491 # linking a shared library.
10492 #
10493 # There doesn't appear to be a way to prevent this compiler from
10494 # explicitly linking system object files so we need to strip them
10495 # from the output so that they don't get included in the library
10496 # dependencies.
10497 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'
10498 ;;
10499 *)
10500 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10501 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10502 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'
10503
10504 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10505 hardcode_libdir_separator_CXX=:
10506
10507 # Commands to make compiler produce verbose output that lists
10508 # what "hidden" libraries, object files and flags are used when
10509 # linking a shared library.
10510 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10511
10512 else
10513 # FIXME: insert proper C++ library support
10514 ld_shlibs_CXX=no
10515 fi
10516 ;;
10517 esac
10518 ;;
10519 psos*)
10520 # FIXME: insert proper C++ library support
10521 ld_shlibs_CXX=no
10522 ;;
10523 sco*)
10524 archive_cmds_need_lc_CXX=no
10525 case $cc_basename in
10526 CC)
10527 # FIXME: insert proper C++ library support
10528 ld_shlibs_CXX=no
10529 ;;
10530 *)
10531 # FIXME: insert proper C++ library support
10532 ld_shlibs_CXX=no
10533 ;;
10534 esac
10535 ;;
10536 sunos4*)
10537 case $cc_basename in
10538 CC)
10539 # Sun C++ 4.x
10540 # FIXME: insert proper C++ library support
10541 ld_shlibs_CXX=no
10542 ;;
10543 lcc)
10544 # Lucid
10545 # FIXME: insert proper C++ library support
10546 ld_shlibs_CXX=no
10547 ;;
10548 *)
10549 # FIXME: insert proper C++ library support
10550 ld_shlibs_CXX=no
10551 ;;
10552 esac
10553 ;;
10554 solaris*)
10555 case $cc_basename in
10556 CC)
10557 # Sun C++ 4.2, 5.x and Centerline C++
10558 no_undefined_flag_CXX=' -zdefs'
10559 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10560 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10561 $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'
10562
10563 hardcode_libdir_flag_spec_CXX='-R$libdir'
10564 hardcode_shlibpath_var_CXX=no
10565 case $host_os in
10566 solaris2.0-5 | solaris2.0-5.*) ;;
10567 *)
10568 # The C++ compiler is used as linker so we must use $wl
10569 # flag to pass the commands to the underlying system
10570 # linker.
10571 # Supported since Solaris 2.6 (maybe 2.5.1?)
10572 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10573 ;;
10574 esac
10575 link_all_deplibs_CXX=yes
10576
10577 # Commands to make compiler produce verbose output that lists
10578 # what "hidden" libraries, object files and flags are used when
10579 # linking a shared library.
10580 #
10581 # There doesn't appear to be a way to prevent this compiler from
10582 # explicitly linking system object files so we need to strip them
10583 # from the output so that they don't get included in the library
10584 # dependencies.
10585 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'
10586
10587 # Archives containing C++ object files must be created using
10588 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10589 # necessary to make sure instantiated templates are included
10590 # in the archive.
10591 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10592 ;;
10593 gcx)
10594 # Green Hills C++ Compiler
10595 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10596
10597 # The C++ compiler must be used to create the archive.
10598 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10599 ;;
10600 *)
10601 # GNU C++ compiler with Solaris linker
10602 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10603 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10604 if $CC --version | grep -v '^2\.7' > /dev/null; then
10605 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10606 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10607 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10608
10609 # Commands to make compiler produce verbose output that lists
10610 # what "hidden" libraries, object files and flags are used when
10611 # linking a shared library.
10612 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10613 else
10614 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10615 # platform.
10616 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10617 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10618 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10619
10620 # Commands to make compiler produce verbose output that lists
10621 # what "hidden" libraries, object files and flags are used when
10622 # linking a shared library.
10623 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10624 fi
10625
10626 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10627 fi
10628 ;;
10629 esac
10630 ;;
10631 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10632 archive_cmds_need_lc_CXX=no
10633 ;;
10634 tandem*)
10635 case $cc_basename in
10636 NCC)
10637 # NonStop-UX NCC 3.20
10638 # FIXME: insert proper C++ library support
10639 ld_shlibs_CXX=no
10640 ;;
10641 *)
10642 # FIXME: insert proper C++ library support
10643 ld_shlibs_CXX=no
10644 ;;
10645 esac
10646 ;;
10647 vxworks*)
10648 # FIXME: insert proper C++ library support
10649 ld_shlibs_CXX=no
10650 ;;
10651 *)
10652 # FIXME: insert proper C++ library support
10653 ld_shlibs_CXX=no
10654 ;;
10655esac
10656echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10657echo "${ECHO_T}$ld_shlibs_CXX" >&6
10658test "$ld_shlibs_CXX" = no && can_build_shared=no
10659
10660GCC_CXX="$GXX"
10661LD_CXX="$LD"
10662
10663
10664cat > conftest.$ac_ext <<EOF
10665class Foo
10666{
10667public:
10668 Foo (void) { a = 0; }
10669private:
10670 int a;
10671};
10672EOF
10673
10674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10675 (eval $ac_compile) 2>&5
10676 ac_status=$?
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; then
10679 # Parse the compiler output and extract the necessary
10680 # objects, libraries and library flags.
10681
10682 # Sentinel used to keep track of whether or not we are before
10683 # the conftest object file.
10684 pre_test_object_deps_done=no
10685
10686 # The `*' in the case matches for architectures that use `case' in
10687 # $output_verbose_cmd can trigger glob expansion during the loop
10688 # eval without this substitution.
10689 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10690
10691 for p in `eval $output_verbose_link_cmd`; do
10692 case $p in
10693
10694 -L* | -R* | -l*)
10695 # Some compilers place space between "-{L,R}" and the path.
10696 # Remove the space.
10697 if test $p = "-L" \
10698 || test $p = "-R"; then
10699 prev=$p
10700 continue
10701 else
10702 prev=
10703 fi
10704
10705 if test "$pre_test_object_deps_done" = no; then
10706 case $p in
10707 -L* | -R*)
10708 # Internal compiler library paths should come after those
10709 # provided the user. The postdeps already come after the
10710 # user supplied libs so there is no need to process them.
10711 if test -z "$compiler_lib_search_path_CXX"; then
10712 compiler_lib_search_path_CXX="${prev}${p}"
10713 else
10714 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10715 fi
10716 ;;
10717 # The "-l" case would never come before the object being
10718 # linked, so don't bother handling this case.
10719 esac
10720 else
10721 if test -z "$postdeps_CXX"; then
10722 postdeps_CXX="${prev}${p}"
10723 else
10724 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10725 fi
10726 fi
10727 ;;
10728
10729 *.$objext)
10730 # This assumes that the test object file only shows up
10731 # once in the compiler output.
10732 if test "$p" = "conftest.$objext"; then
10733 pre_test_object_deps_done=yes
10734 continue
10735 fi
10736
10737 if test "$pre_test_object_deps_done" = no; then
10738 if test -z "$predep_objects_CXX"; then
10739 predep_objects_CXX="$p"
10740 else
10741 predep_objects_CXX="$predep_objects_CXX $p"
10742 fi
10743 else
10744 if test -z "$postdep_objects_CXX"; then
10745 postdep_objects_CXX="$p"
10746 else
10747 postdep_objects_CXX="$postdep_objects_CXX $p"
10748 fi
10749 fi
10750 ;;
10751
10752 *) ;; # Ignore the rest.
10753
10754 esac
10755 done
10756
10757 # Clean up.
10758 rm -f a.out a.exe
10759else
10760 echo "libtool.m4: error: problem compiling CXX test program"
10761fi
10762
10763$rm -f confest.$objext
10764
10765case " $postdeps_CXX " in
10766*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10767esac
10768
10769lt_prog_compiler_wl_CXX=
10770lt_prog_compiler_pic_CXX=
10771lt_prog_compiler_static_CXX=
10772
10773echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10774echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10775
10776 # C++ specific cases for pic, static, wl, etc.
10777 if test "$GXX" = yes; then
10778 lt_prog_compiler_wl_CXX='-Wl,'
10779 lt_prog_compiler_static_CXX='-static'
10780
10781 case $host_os in
10782 aix*)
10783 # All AIX code is PIC.
10784 if test "$host_cpu" = ia64; then
10785 # AIX 5 now supports IA64 processor
10786 lt_prog_compiler_static_CXX='-Bstatic'
10787 fi
10788 ;;
10789 amigaos*)
10790 # FIXME: we need at least 68020 code to build shared libraries, but
10791 # adding the `-m68020' flag to GCC prevents building anything better,
10792 # like `-m68040'.
10793 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10794 ;;
10795 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10796 # PIC is the default for these OSes.
10797 ;;
10798 mingw* | os2* | pw32*)
10799 # This hack is so that the source file can tell whether it is being
10800 # built for inclusion in a dll (and should export symbols for example).
10801 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10802 ;;
10803 darwin* | rhapsody*)
10804 # PIC is the default on this platform
10805 # Common symbols not allowed in MH_DYLIB files
10806 lt_prog_compiler_pic_CXX='-fno-common'
10807 ;;
10808 *djgpp*)
10809 # DJGPP does not support shared libraries at all
10810 lt_prog_compiler_pic_CXX=
10811 ;;
10812 sysv4*MP*)
10813 if test -d /usr/nec; then
10814 lt_prog_compiler_pic_CXX=-Kconform_pic
10815 fi
10816 ;;
10817 hpux*)
10818 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10819 # not for PA HP-UX.
10820 case "$host_cpu" in
10821 hppa*64*|ia64*)
10822 ;;
10823 *)
10824 lt_prog_compiler_pic_CXX='-fPIC'
10825 ;;
10826 esac
10827 ;;
10828 *)
10829 lt_prog_compiler_pic_CXX='-fPIC'
10830 ;;
10831 esac
10832 else
10833 case $host_os in
10834 aix4* | aix5*)
10835 # All AIX code is PIC.
10836 if test "$host_cpu" = ia64; then
10837 # AIX 5 now supports IA64 processor
10838 lt_prog_compiler_static_CXX='-Bstatic'
10839 else
10840 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10841 fi
10842 ;;
10843 chorus*)
10844 case $cc_basename in
10845 cxch68)
10846 # Green Hills C++ Compiler
10847 # _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"
10848 ;;
10849 esac
10850 ;;
10851 dgux*)
10852 case $cc_basename in
10853 ec++)
10854 lt_prog_compiler_pic_CXX='-KPIC'
10855 ;;
10856 ghcx)
10857 # Green Hills C++ Compiler
10858 lt_prog_compiler_pic_CXX='-pic'
10859 ;;
10860 *)
10861 ;;
10862 esac
10863 ;;
10864 freebsd* | kfreebsd*-gnu)
10865 # FreeBSD uses GNU C++
10866 ;;
10867 hpux9* | hpux10* | hpux11*)
10868 case $cc_basename in
10869 CC)
10870 lt_prog_compiler_wl_CXX='-Wl,'
10871 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10872 if test "$host_cpu" != ia64; then
10873 lt_prog_compiler_pic_CXX='+Z'
10874 fi
10875 ;;
10876 aCC)
10877 lt_prog_compiler_wl_CXX='-Wl,'
10878 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10879 case "$host_cpu" in
10880 hppa*64*|ia64*)
10881 # +Z the default
10882 ;;
10883 *)
10884 lt_prog_compiler_pic_CXX='+Z'
10885 ;;
10886 esac
10887 ;;
10888 *)
10889 ;;
10890 esac
10891 ;;
10892 irix5* | irix6* | nonstopux*)
10893 case $cc_basename in
10894 CC)
10895 lt_prog_compiler_wl_CXX='-Wl,'
10896 lt_prog_compiler_static_CXX='-non_shared'
10897 # CC pic flag -KPIC is the default.
10898 ;;
10899 *)
10900 ;;
10901 esac
10902 ;;
10903 linux*)
10904 case $cc_basename in
10905 KCC)
10906 # KAI C++ Compiler
10907 lt_prog_compiler_wl_CXX='--backend -Wl,'
10908 lt_prog_compiler_pic_CXX='-fPIC'
10909 ;;
10910 icpc)
10911 # Intel C++
10912 lt_prog_compiler_wl_CXX='-Wl,'
10913 lt_prog_compiler_pic_CXX='-KPIC'
10914 lt_prog_compiler_static_CXX='-static'
10915 ;;
10916 cxx)
10917 # Compaq C++
10918 # Make sure the PIC flag is empty. It appears that all Alpha
10919 # Linux and Compaq Tru64 Unix objects are PIC.
10920 lt_prog_compiler_pic_CXX=
10921 lt_prog_compiler_static_CXX='-non_shared'
10922 ;;
10923 *)
10924 ;;
10925 esac
10926 ;;
10927 lynxos*)
10928 ;;
10929 m88k*)
10930 ;;
10931 mvs*)
10932 case $cc_basename in
10933 cxx)
10934 lt_prog_compiler_pic_CXX='-W c,exportall'
10935 ;;
10936 *)
10937 ;;
10938 esac
10939 ;;
10940 netbsd*)
10941 ;;
10942 osf3* | osf4* | osf5*)
10943 case $cc_basename in
10944 KCC)
10945 lt_prog_compiler_wl_CXX='--backend -Wl,'
10946 ;;
10947 RCC)
10948 # Rational C++ 2.4.1
10949 lt_prog_compiler_pic_CXX='-pic'
10950 ;;
10951 cxx)
10952 # Digital/Compaq C++
10953 lt_prog_compiler_wl_CXX='-Wl,'
10954 # Make sure the PIC flag is empty. It appears that all Alpha
10955 # Linux and Compaq Tru64 Unix objects are PIC.
10956 lt_prog_compiler_pic_CXX=
10957 lt_prog_compiler_static_CXX='-non_shared'
10958 ;;
10959 *)
10960 ;;
10961 esac
10962 ;;
10963 psos*)
10964 ;;
10965 sco*)
10966 case $cc_basename in
10967 CC)
10968 lt_prog_compiler_pic_CXX='-fPIC'
10969 ;;
10970 *)
10971 ;;
10972 esac
10973 ;;
10974 solaris*)
10975 case $cc_basename in
10976 CC)
10977 # Sun C++ 4.2, 5.x and Centerline C++
10978 lt_prog_compiler_pic_CXX='-KPIC'
10979 lt_prog_compiler_static_CXX='-Bstatic'
10980 lt_prog_compiler_wl_CXX='-Qoption ld '
10981 ;;
10982 gcx)
10983 # Green Hills C++ Compiler
10984 lt_prog_compiler_pic_CXX='-PIC'
10985 ;;
10986 *)
10987 ;;
10988 esac
10989 ;;
10990 sunos4*)
10991 case $cc_basename in
10992 CC)
10993 # Sun C++ 4.x
10994 lt_prog_compiler_pic_CXX='-pic'
10995 lt_prog_compiler_static_CXX='-Bstatic'
10996 ;;
10997 lcc)
10998 # Lucid
10999 lt_prog_compiler_pic_CXX='-pic'
11000 ;;
11001 *)
11002 ;;
11003 esac
11004 ;;
11005 tandem*)
11006 case $cc_basename in
11007 NCC)
11008 # NonStop-UX NCC 3.20
11009 lt_prog_compiler_pic_CXX='-KPIC'
11010 ;;
11011 *)
11012 ;;
11013 esac
11014 ;;
11015 unixware*)
11016 ;;
11017 vxworks*)
11018 ;;
11019 *)
11020 lt_prog_compiler_can_build_shared_CXX=no
11021 ;;
11022 esac
11023 fi
11024
11025echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11026echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11027
11028#
11029# Check to make sure the PIC flag actually works.
11030#
11031if test -n "$lt_prog_compiler_pic_CXX"; then
11032
11033echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11034echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11035if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11037else
11038 lt_prog_compiler_pic_works_CXX=no
11039 ac_outfile=conftest.$ac_objext
11040 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11041 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11042 # Insert the option either (1) after the last *FLAGS variable, or
11043 # (2) before a word containing "conftest.", or (3) at the end.
11044 # Note that $ac_compile itself does not contain backslashes and begins
11045 # with a dollar sign (not a hyphen), so the echo should work correctly.
11046 # The option is referenced via a variable to avoid confusing sed.
11047 lt_compile=`echo "$ac_compile" | $SED \
11048 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11050 -e 's:$: $lt_compiler_flag:'`
hp.com!davidmb1d369a2003-11-26 18:59:24 +000011051 (eval echo "\"\$as_me:11051: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011052 (eval "$lt_compile" 2>conftest.err)
11053 ac_status=$?
11054 cat conftest.err >&5
hp.com!davidmb1d369a2003-11-26 18:59:24 +000011055 echo "$as_me:11055: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011056 if (exit $ac_status) && test -s "$ac_outfile"; then
11057 # The compiler can only warn and ignore the option if not recognized
11058 # So say no if there are warnings
11059 if test ! -s conftest.err; then
11060 lt_prog_compiler_pic_works_CXX=yes
11061 fi
11062 fi
11063 $rm conftest*
11064
11065fi
11066echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11067echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11068
11069if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11070 case $lt_prog_compiler_pic_CXX in
11071 "" | " "*) ;;
11072 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11073 esac
11074else
11075 lt_prog_compiler_pic_CXX=
11076 lt_prog_compiler_can_build_shared_CXX=no
11077fi
11078
11079fi
11080case "$host_os" in
11081 # For platforms which do not support PIC, -DPIC is meaningless:
11082 *djgpp*)
11083 lt_prog_compiler_pic_CXX=
11084 ;;
11085 *)
11086 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11087 ;;
11088esac
11089
11090echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11091echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11092if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11094else
11095 lt_cv_prog_compiler_c_o_CXX=no
11096 $rm -r conftest 2>/dev/null
11097 mkdir conftest
11098 cd conftest
11099 mkdir out
11100 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11101
11102 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11103 # that will create temporary files in the current directory regardless of
11104 # the output directory. Thus, making CWD read-only will cause this test
11105 # to fail, enabling locking or at least warning the user not to do parallel
11106 # builds.
11107 chmod -w .
11108
11109 lt_compiler_flag="-o out/conftest2.$ac_objext"
11110 # Insert the option either (1) after the last *FLAGS variable, or
11111 # (2) before a word containing "conftest.", or (3) at the end.
11112 # Note that $ac_compile itself does not contain backslashes and begins
11113 # with a dollar sign (not a hyphen), so the echo should work correctly.
11114 lt_compile=`echo "$ac_compile" | $SED \
11115 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11117 -e 's:$: $lt_compiler_flag:'`
hp.com!davidmb1d369a2003-11-26 18:59:24 +000011118 (eval echo "\"\$as_me:11118: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011119 (eval "$lt_compile" 2>out/conftest.err)
11120 ac_status=$?
11121 cat out/conftest.err >&5
hp.com!davidmb1d369a2003-11-26 18:59:24 +000011122 echo "$as_me:11122: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011123 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11124 then
11125 # The compiler can only warn and ignore the option if not recognized
11126 # So say no if there are warnings
11127 if test ! -s out/conftest.err; then
11128 lt_cv_prog_compiler_c_o_CXX=yes
11129 fi
11130 fi
11131 chmod u+w .
11132 $rm conftest*
11133 # SGI C++ compiler will create directory out/ii_files/ for
11134 # template instantiation
11135 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11136 $rm out/* && rmdir out
11137 cd ..
11138 rmdir conftest
11139 $rm conftest*
11140
11141fi
11142echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11143echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11144
11145
11146hard_links="nottested"
11147if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11148 # do not overwrite the value of need_locks provided by the user
11149 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11150echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11151 hard_links=yes
11152 $rm conftest*
11153 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11154 touch conftest.a
11155 ln conftest.a conftest.b 2>&5 || hard_links=no
11156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11157 echo "$as_me:$LINENO: result: $hard_links" >&5
11158echo "${ECHO_T}$hard_links" >&6
11159 if test "$hard_links" = no; then
11160 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11161echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11162 need_locks=warn
11163 fi
11164else
11165 need_locks=no
11166fi
11167
11168echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11169echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11170
11171 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11172 case $host_os in
11173 aix4* | aix5*)
11174 # If we're using GNU nm, then we don't want the "-C" option.
11175 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11176 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11177 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'
11178 else
11179 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'
11180 fi
11181 ;;
11182 pw32*)
11183 export_symbols_cmds_CXX="$ltdll_cmds"
11184 ;;
11185 cygwin* | mingw*)
11186 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11187 ;;
11188 *)
11189 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11190 ;;
11191 esac
11192
11193echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11194echo "${ECHO_T}$ld_shlibs_CXX" >&6
11195test "$ld_shlibs_CXX" = no && can_build_shared=no
11196
11197variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11198if test "$GCC" = yes; then
11199 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11200fi
11201
11202#
11203# Do we need to explicitly link libc?
11204#
11205case "x$archive_cmds_need_lc_CXX" in
11206x|xyes)
11207 # Assume -lc should be added
11208 archive_cmds_need_lc_CXX=yes
11209
11210 if test "$enable_shared" = yes && test "$GCC" = yes; then
11211 case $archive_cmds_CXX in
11212 *'~'*)
11213 # FIXME: we may have to deal with multi-command sequences.
11214 ;;
11215 '$CC '*)
11216 # Test whether the compiler implicitly links with -lc since on some
11217 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11218 # to ld, don't add -lc before -lgcc.
11219 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11220echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11221 $rm conftest*
11222 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11223
11224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11225 (eval $ac_compile) 2>&5
11226 ac_status=$?
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } 2>conftest.err; then
11229 soname=conftest
11230 lib=conftest
11231 libobjs=conftest.$ac_objext
11232 deplibs=
11233 wl=$lt_prog_compiler_wl_CXX
11234 compiler_flags=-v
11235 linker_flags=-v
11236 verstring=
11237 output_objdir=.
11238 libname=conftest
11239 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11240 allow_undefined_flag_CXX=
11241 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11242 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11243 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }
11246 then
11247 archive_cmds_need_lc_CXX=no
11248 else
11249 archive_cmds_need_lc_CXX=yes
11250 fi
11251 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11252 else
11253 cat conftest.err 1>&5
11254 fi
11255 $rm conftest*
11256 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11257echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11258 ;;
11259 esac
11260 fi
11261 ;;
11262esac
11263
11264echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11265echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11266library_names_spec=
11267libname_spec='lib$name'
11268soname_spec=
11269shrext=".so"
11270postinstall_cmds=
11271postuninstall_cmds=
11272finish_cmds=
11273finish_eval=
11274shlibpath_var=
11275shlibpath_overrides_runpath=unknown
11276version_type=none
11277dynamic_linker="$host_os ld.so"
11278sys_lib_dlsearch_path_spec="/lib /usr/lib"
11279if test "$GCC" = yes; then
11280 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11281 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11282 # if the path contains ";" then we assume it to be the separator
11283 # otherwise default to the standard path separator (i.e. ":") - it is
11284 # assumed that no part of a normal pathname contains ";" but that should
11285 # okay in the real world where ";" in dirpaths is itself problematic.
11286 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11287 else
11288 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11289 fi
11290else
11291 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11292fi
11293need_lib_prefix=unknown
11294hardcode_into_libs=no
11295
11296# when you set need_version to no, make sure it does not cause -set_version
11297# flags to be left without arguments
11298need_version=unknown
11299
11300case $host_os in
11301aix3*)
11302 version_type=linux
11303 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11304 shlibpath_var=LIBPATH
11305
11306 # AIX 3 has no versioning support, so we append a major version to the name.
11307 soname_spec='${libname}${release}${shared_ext}$major'
11308 ;;
11309
11310aix4* | aix5*)
11311 version_type=linux
11312 need_lib_prefix=no
11313 need_version=no
11314 hardcode_into_libs=yes
11315 if test "$host_cpu" = ia64; then
11316 # AIX 5 supports IA64
11317 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11318 shlibpath_var=LD_LIBRARY_PATH
11319 else
11320 # With GCC up to 2.95.x, collect2 would create an import file
11321 # for dependence libraries. The import file would start with
11322 # the line `#! .'. This would cause the generated library to
11323 # depend on `.', always an invalid library. This was fixed in
11324 # development snapshots of GCC prior to 3.0.
11325 case $host_os in
11326 aix4 | aix4.[01] | aix4.[01].*)
11327 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11328 echo ' yes '
11329 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11330 :
11331 else
11332 can_build_shared=no
11333 fi
11334 ;;
11335 esac
11336 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11337 # soname into executable. Probably we can add versioning support to
11338 # collect2, so additional links can be useful in future.
11339 if test "$aix_use_runtimelinking" = yes; then
11340 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11341 # instead of lib<name>.a to let people know that these are not
11342 # typical AIX shared libraries.
11343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11344 else
11345 # We preserve .a as extension for shared libraries through AIX4.2
11346 # and later when we are not doing run time linking.
11347 library_names_spec='${libname}${release}.a $libname.a'
11348 soname_spec='${libname}${release}${shared_ext}$major'
11349 fi
11350 shlibpath_var=LIBPATH
11351 fi
11352 ;;
11353
11354amigaos*)
11355 library_names_spec='$libname.ixlibrary $libname.a'
11356 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11357 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'
11358 ;;
11359
11360beos*)
11361 library_names_spec='${libname}${shared_ext}'
11362 dynamic_linker="$host_os ld.so"
11363 shlibpath_var=LIBRARY_PATH
11364 ;;
11365
11366bsdi4*)
11367 version_type=linux
11368 need_version=no
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370 soname_spec='${libname}${release}${shared_ext}$major'
11371 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11372 shlibpath_var=LD_LIBRARY_PATH
11373 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11374 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11375 # the default ld.so.conf also contains /usr/contrib/lib and
11376 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11377 # libtool to hard-code these into programs
11378 ;;
11379
11380cygwin* | mingw* | pw32*)
11381 version_type=windows
11382 shrext=".dll"
11383 need_version=no
11384 need_lib_prefix=no
11385
11386 case $GCC,$host_os in
11387 yes,cygwin* | yes,mingw* | yes,pw32*)
11388 library_names_spec='$libname.dll.a'
11389 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11390 postinstall_cmds='base_file=`basename \${file}`~
11391 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11392 dldir=$destdir/`dirname \$dlpath`~
11393 test -d \$dldir || mkdir -p \$dldir~
11394 $install_prog $dir/$dlname \$dldir/$dlname'
11395 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11396 dlpath=$dir/\$dldll~
11397 $rm \$dlpath'
11398 shlibpath_overrides_runpath=yes
11399
11400 case $host_os in
11401 cygwin*)
11402 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11403 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11404 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11405 ;;
11406 mingw*)
11407 # MinGW DLLs use traditional 'lib' prefix
11408 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11409 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11410 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11411 # It is most probably a Windows format PATH printed by
11412 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11413 # path with ; separators, and with drive letters. We can handle the
11414 # drive letters (cygwin fileutils understands them), so leave them,
11415 # especially as we might pass files found there to a mingw objdump,
11416 # which wouldn't understand a cygwinified path. Ahh.
11417 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11418 else
11419 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11420 fi
11421 ;;
11422 pw32*)
11423 # pw32 DLLs use 'pw' prefix rather than 'lib'
11424 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11425 ;;
11426 esac
11427 ;;
11428
11429 *)
11430 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11431 ;;
11432 esac
11433 dynamic_linker='Win32 ld.exe'
11434 # FIXME: first we should search . and the directory the executable is in
11435 shlibpath_var=PATH
11436 ;;
11437
11438darwin* | rhapsody*)
11439 dynamic_linker="$host_os dyld"
11440 version_type=darwin
11441 need_lib_prefix=no
11442 need_version=no
11443 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11444 soname_spec='${libname}${release}${major}$shared_ext'
11445 shlibpath_overrides_runpath=yes
11446 shlibpath_var=DYLD_LIBRARY_PATH
11447 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11448 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11449 if test "$GCC" = yes; then
11450 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"`
11451 else
11452 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11453 fi
11454 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11455 ;;
11456
11457dgux*)
11458 version_type=linux
11459 need_lib_prefix=no
11460 need_version=no
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11462 soname_spec='${libname}${release}${shared_ext}$major'
11463 shlibpath_var=LD_LIBRARY_PATH
11464 ;;
11465
11466freebsd1*)
11467 dynamic_linker=no
11468 ;;
11469
11470kfreebsd*-gnu)
11471 version_type=linux
11472 need_lib_prefix=no
11473 need_version=no
11474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11475 soname_spec='${libname}${release}${shared_ext}$major'
11476 shlibpath_var=LD_LIBRARY_PATH
11477 shlibpath_overrides_runpath=no
11478 hardcode_into_libs=yes
11479 dynamic_linker='GNU ld.so'
11480 ;;
11481
11482freebsd*)
11483 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11484 version_type=freebsd-$objformat
11485 case $version_type in
11486 freebsd-elf*)
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11488 need_version=no
11489 need_lib_prefix=no
11490 ;;
11491 freebsd-*)
11492 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11493 need_version=yes
11494 ;;
11495 esac
11496 shlibpath_var=LD_LIBRARY_PATH
11497 case $host_os in
11498 freebsd2*)
11499 shlibpath_overrides_runpath=yes
11500 ;;
11501 freebsd3.01* | freebsdelf3.01*)
11502 shlibpath_overrides_runpath=yes
11503 hardcode_into_libs=yes
11504 ;;
11505 *) # from 3.2 on
11506 shlibpath_overrides_runpath=no
11507 hardcode_into_libs=yes
11508 ;;
11509 esac
11510 ;;
11511
11512gnu*)
11513 version_type=linux
11514 need_lib_prefix=no
11515 need_version=no
11516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11517 soname_spec='${libname}${release}${shared_ext}$major'
11518 shlibpath_var=LD_LIBRARY_PATH
11519 hardcode_into_libs=yes
11520 ;;
11521
11522hpux9* | hpux10* | hpux11*)
11523 # Give a soname corresponding to the major version so that dld.sl refuses to
11524 # link against other versions.
11525 version_type=sunos
11526 need_lib_prefix=no
11527 need_version=no
11528 case "$host_cpu" in
11529 ia64*)
11530 shrext='.so'
11531 hardcode_into_libs=yes
11532 dynamic_linker="$host_os dld.so"
11533 shlibpath_var=LD_LIBRARY_PATH
11534 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11536 soname_spec='${libname}${release}${shared_ext}$major'
11537 if test "X$HPUX_IA64_MODE" = X32; then
11538 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11539 else
11540 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11541 fi
11542 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11543 ;;
11544 hppa*64*)
11545 shrext='.sl'
11546 hardcode_into_libs=yes
11547 dynamic_linker="$host_os dld.sl"
11548 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11549 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11551 soname_spec='${libname}${release}${shared_ext}$major'
11552 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11553 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11554 ;;
11555 *)
11556 shrext='.sl'
11557 dynamic_linker="$host_os dld.sl"
11558 shlibpath_var=SHLIB_PATH
11559 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11561 soname_spec='${libname}${release}${shared_ext}$major'
11562 ;;
11563 esac
11564 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11565 postinstall_cmds='chmod 555 $lib'
11566 ;;
11567
11568irix5* | irix6* | nonstopux*)
11569 case $host_os in
11570 nonstopux*) version_type=nonstopux ;;
11571 *)
11572 if test "$lt_cv_prog_gnu_ld" = yes; then
11573 version_type=linux
11574 else
11575 version_type=irix
11576 fi ;;
11577 esac
11578 need_lib_prefix=no
11579 need_version=no
11580 soname_spec='${libname}${release}${shared_ext}$major'
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11582 case $host_os in
11583 irix5* | nonstopux*)
11584 libsuff= shlibsuff=
11585 ;;
11586 *)
11587 case $LD in # libtool.m4 will add one of these switches to LD
11588 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11589 libsuff= shlibsuff= libmagic=32-bit;;
11590 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11591 libsuff=32 shlibsuff=N32 libmagic=N32;;
11592 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11593 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11594 *) libsuff= shlibsuff= libmagic=never-match;;
11595 esac
11596 ;;
11597 esac
11598 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11599 shlibpath_overrides_runpath=no
11600 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11601 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11602 hardcode_into_libs=yes
11603 ;;
11604
11605# No shared lib support for Linux oldld, aout, or coff.
11606linux*oldld* | linux*aout* | linux*coff*)
11607 dynamic_linker=no
11608 ;;
11609
11610# This must be Linux ELF.
11611linux*)
11612 version_type=linux
11613 need_lib_prefix=no
11614 need_version=no
11615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11616 soname_spec='${libname}${release}${shared_ext}$major'
11617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11618 shlibpath_var=LD_LIBRARY_PATH
11619 shlibpath_overrides_runpath=no
11620 # This implies no fast_install, which is unacceptable.
11621 # Some rework will be needed to allow for fast_install
11622 # before this can be enabled.
11623 hardcode_into_libs=yes
11624
11625 # /usr/X11R6/lib and /usr/local/lib are common enough...
11626 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
11627
11628 # We used to test for /lib/ld.so.1 and disable shared libraries on
11629 # powerpc, because MkLinux only supported shared libraries with the
11630 # GNU dynamic linker. Since this was broken with cross compilers,
11631 # most powerpc-linux boxes support dynamic linking these days and
11632 # people can always --disable-shared, the test was removed, and we
11633 # assume the GNU/Linux dynamic linker is in use.
11634 dynamic_linker='GNU/Linux ld.so'
11635 ;;
11636
11637knetbsd*-gnu)
11638 version_type=linux
11639 need_lib_prefix=no
11640 need_version=no
11641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11642 soname_spec='${libname}${release}${shared_ext}$major'
11643 shlibpath_var=LD_LIBRARY_PATH
11644 shlibpath_overrides_runpath=no
11645 hardcode_into_libs=yes
11646 dynamic_linker='GNU ld.so'
11647 ;;
11648
11649netbsd*)
11650 version_type=sunos
11651 need_lib_prefix=no
11652 need_version=no
11653 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11656 dynamic_linker='NetBSD (a.out) ld.so'
11657 else
11658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11659 soname_spec='${libname}${release}${shared_ext}$major'
11660 dynamic_linker='NetBSD ld.elf_so'
11661 fi
11662 shlibpath_var=LD_LIBRARY_PATH
11663 shlibpath_overrides_runpath=yes
11664 hardcode_into_libs=yes
11665 ;;
11666
11667newsos6)
11668 version_type=linux
11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11670 shlibpath_var=LD_LIBRARY_PATH
11671 shlibpath_overrides_runpath=yes
11672 ;;
11673
11674nto-qnx*)
11675 version_type=linux
11676 need_lib_prefix=no
11677 need_version=no
11678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11679 soname_spec='${libname}${release}${shared_ext}$major'
11680 shlibpath_var=LD_LIBRARY_PATH
11681 shlibpath_overrides_runpath=yes
11682 ;;
11683
11684openbsd*)
11685 version_type=sunos
11686 need_lib_prefix=no
11687 need_version=yes
11688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11690 shlibpath_var=LD_LIBRARY_PATH
11691 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11692 case $host_os in
11693 openbsd2.[89] | openbsd2.[89].*)
11694 shlibpath_overrides_runpath=no
11695 ;;
11696 *)
11697 shlibpath_overrides_runpath=yes
11698 ;;
11699 esac
11700 else
11701 shlibpath_overrides_runpath=yes
11702 fi
11703 ;;
11704
11705os2*)
11706 libname_spec='$name'
11707 shrext=".dll"
11708 need_lib_prefix=no
11709 library_names_spec='$libname${shared_ext} $libname.a'
11710 dynamic_linker='OS/2 ld.exe'
11711 shlibpath_var=LIBPATH
11712 ;;
11713
11714osf3* | osf4* | osf5*)
11715 version_type=osf
11716 need_lib_prefix=no
11717 need_version=no
11718 soname_spec='${libname}${release}${shared_ext}$major'
11719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11720 shlibpath_var=LD_LIBRARY_PATH
11721 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11722 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11723 ;;
11724
11725sco3.2v5*)
11726 version_type=osf
11727 soname_spec='${libname}${release}${shared_ext}$major'
11728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11729 shlibpath_var=LD_LIBRARY_PATH
11730 ;;
11731
11732solaris*)
11733 version_type=linux
11734 need_lib_prefix=no
11735 need_version=no
11736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11737 soname_spec='${libname}${release}${shared_ext}$major'
11738 shlibpath_var=LD_LIBRARY_PATH
11739 shlibpath_overrides_runpath=yes
11740 hardcode_into_libs=yes
11741 # ldd complains unless libraries are executable
11742 postinstall_cmds='chmod +x $lib'
11743 ;;
11744
11745sunos4*)
11746 version_type=sunos
11747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11748 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11749 shlibpath_var=LD_LIBRARY_PATH
11750 shlibpath_overrides_runpath=yes
11751 if test "$with_gnu_ld" = yes; then
11752 need_lib_prefix=no
11753 fi
11754 need_version=yes
11755 ;;
11756
11757sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11758 version_type=linux
11759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760 soname_spec='${libname}${release}${shared_ext}$major'
11761 shlibpath_var=LD_LIBRARY_PATH
11762 case $host_vendor in
11763 sni)
11764 shlibpath_overrides_runpath=no
11765 need_lib_prefix=no
11766 export_dynamic_flag_spec='${wl}-Blargedynsym'
11767 runpath_var=LD_RUN_PATH
11768 ;;
11769 siemens)
11770 need_lib_prefix=no
11771 ;;
11772 motorola)
11773 need_lib_prefix=no
11774 need_version=no
11775 shlibpath_overrides_runpath=no
11776 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11777 ;;
11778 esac
11779 ;;
11780
11781sysv4*MP*)
11782 if test -d /usr/nec ;then
11783 version_type=linux
11784 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11785 soname_spec='$libname${shared_ext}.$major'
11786 shlibpath_var=LD_LIBRARY_PATH
11787 fi
11788 ;;
11789
11790uts4*)
11791 version_type=linux
11792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11793 soname_spec='${libname}${release}${shared_ext}$major'
11794 shlibpath_var=LD_LIBRARY_PATH
11795 ;;
11796
11797*)
11798 dynamic_linker=no
11799 ;;
11800esac
11801echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11802echo "${ECHO_T}$dynamic_linker" >&6
11803test "$dynamic_linker" = no && can_build_shared=no
11804
11805echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11806echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11807hardcode_action_CXX=
11808if test -n "$hardcode_libdir_flag_spec_CXX" || \
11809 test -n "$runpath_var CXX" || \
11810 test "X$hardcode_automatic_CXX"="Xyes" ; then
11811
11812 # We can hardcode non-existant directories.
11813 if test "$hardcode_direct_CXX" != no &&
11814 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11815 # have to relink, otherwise we might link with an installed library
11816 # when we should be linking with a yet-to-be-installed one
11817 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11818 test "$hardcode_minus_L_CXX" != no; then
11819 # Linking always hardcodes the temporary library directory.
11820 hardcode_action_CXX=relink
11821 else
11822 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11823 hardcode_action_CXX=immediate
11824 fi
11825else
11826 # We cannot hardcode anything, or else we can only hardcode existing
11827 # directories.
11828 hardcode_action_CXX=unsupported
11829fi
11830echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11831echo "${ECHO_T}$hardcode_action_CXX" >&6
11832
11833if test "$hardcode_action_CXX" = relink; then
11834 # Fast installation is not supported
11835 enable_fast_install=no
11836elif test "$shlibpath_overrides_runpath" = yes ||
11837 test "$enable_shared" = no; then
11838 # Fast installation is not necessary
11839 enable_fast_install=needless
11840fi
11841
11842striplib=
11843old_striplib=
11844echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11845echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11846if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11847 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11848 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11849 echo "$as_me:$LINENO: result: yes" >&5
11850echo "${ECHO_T}yes" >&6
11851else
11852# FIXME - insert some real tests, host_os isn't really good enough
11853 case $host_os in
11854 darwin*)
11855 if test -n "$STRIP" ; then
11856 striplib="$STRIP -x"
11857 echo "$as_me:$LINENO: result: yes" >&5
11858echo "${ECHO_T}yes" >&6
11859 else
11860 echo "$as_me:$LINENO: result: no" >&5
11861echo "${ECHO_T}no" >&6
11862fi
11863 ;;
11864 *)
11865 echo "$as_me:$LINENO: result: no" >&5
11866echo "${ECHO_T}no" >&6
11867 ;;
11868 esac
11869fi
11870
11871if test "x$enable_dlopen" != xyes; then
11872 enable_dlopen=unknown
11873 enable_dlopen_self=unknown
11874 enable_dlopen_self_static=unknown
11875else
11876 lt_cv_dlopen=no
11877 lt_cv_dlopen_libs=
11878
11879 case $host_os in
11880 beos*)
11881 lt_cv_dlopen="load_add_on"
11882 lt_cv_dlopen_libs=
11883 lt_cv_dlopen_self=yes
11884 ;;
11885
11886 mingw* | pw32*)
11887 lt_cv_dlopen="LoadLibrary"
11888 lt_cv_dlopen_libs=
11889 ;;
11890
11891 cygwin*)
11892 lt_cv_dlopen="dlopen"
11893 lt_cv_dlopen_libs=
11894 ;;
11895
11896 darwin*)
11897 # if libdl is installed we need to link against it
11898 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11899echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11900if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
11902else
11903 ac_check_lib_save_LIBS=$LIBS
11904LIBS="-ldl $LIBS"
11905cat >conftest.$ac_ext <<_ACEOF
11906/* confdefs.h. */
11907_ACEOF
11908cat confdefs.h >>conftest.$ac_ext
11909cat >>conftest.$ac_ext <<_ACEOF
11910/* end confdefs.h. */
11911
11912/* Override any gcc2 internal prototype to avoid an error. */
11913#ifdef __cplusplus
11914extern "C"
11915#endif
11916/* We use char because int might match the return type of a gcc2
11917 builtin and then its argument prototype would still apply. */
11918char dlopen ();
11919int
11920main ()
11921{
11922dlopen ();
11923 ;
11924 return 0;
11925}
11926_ACEOF
11927rm -f conftest.$ac_objext conftest$ac_exeext
11928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11929 (eval $ac_link) 2>conftest.er1
11930 ac_status=$?
11931 grep -v '^ *+' conftest.er1 >conftest.err
11932 rm -f conftest.er1
11933 cat conftest.err >&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } &&
11936 { ac_try='test -z "$ac_cxx_werror_flag"
11937 || test ! -s conftest.err'
11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939 (eval $ac_try) 2>&5
11940 ac_status=$?
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; } &&
11943 { ac_try='test -s conftest$ac_exeext'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; }; then
11949 ac_cv_lib_dl_dlopen=yes
11950else
11951 echo "$as_me: failed program was:" >&5
11952sed 's/^/| /' conftest.$ac_ext >&5
11953
11954ac_cv_lib_dl_dlopen=no
11955fi
11956rm -f conftest.err conftest.$ac_objext \
11957 conftest$ac_exeext conftest.$ac_ext
11958LIBS=$ac_check_lib_save_LIBS
11959fi
11960echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11961echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11962if test $ac_cv_lib_dl_dlopen = yes; then
11963 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11964else
11965
11966 lt_cv_dlopen="dyld"
11967 lt_cv_dlopen_libs=
11968 lt_cv_dlopen_self=yes
11969
11970fi
11971
11972 ;;
11973
11974 *)
11975 echo "$as_me:$LINENO: checking for shl_load" >&5
11976echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11977if test "${ac_cv_func_shl_load+set}" = set; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11979else
11980 cat >conftest.$ac_ext <<_ACEOF
11981/* confdefs.h. */
11982_ACEOF
11983cat confdefs.h >>conftest.$ac_ext
11984cat >>conftest.$ac_ext <<_ACEOF
11985/* end confdefs.h. */
11986/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11988#define shl_load innocuous_shl_load
11989
11990/* System header to define __stub macros and hopefully few prototypes,
11991 which can conflict with char shl_load (); below.
11992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11993 <limits.h> exists even on freestanding compilers. */
11994
11995#ifdef __STDC__
11996# include <limits.h>
11997#else
11998# include <assert.h>
11999#endif
12000
12001#undef shl_load
12002
12003/* Override any gcc2 internal prototype to avoid an error. */
12004#ifdef __cplusplus
12005extern "C"
12006{
12007#endif
12008/* We use char because int might match the return type of a gcc2
12009 builtin and then its argument prototype would still apply. */
12010char shl_load ();
12011/* The GNU C library defines this for functions which it implements
12012 to always fail with ENOSYS. Some functions are actually named
12013 something starting with __ and the normal name is an alias. */
12014#if defined (__stub_shl_load) || defined (__stub___shl_load)
12015choke me
12016#else
12017char (*f) () = shl_load;
12018#endif
12019#ifdef __cplusplus
12020}
12021#endif
12022
12023int
12024main ()
12025{
12026return f != shl_load;
12027 ;
12028 return 0;
12029}
12030_ACEOF
12031rm -f conftest.$ac_objext conftest$ac_exeext
12032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12033 (eval $ac_link) 2>conftest.er1
12034 ac_status=$?
12035 grep -v '^ *+' conftest.er1 >conftest.err
12036 rm -f conftest.er1
12037 cat conftest.err >&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } &&
12040 { ac_try='test -z "$ac_cxx_werror_flag"
12041 || test ! -s conftest.err'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; } &&
12047 { ac_try='test -s conftest$ac_exeext'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 ac_cv_func_shl_load=yes
12054else
12055 echo "$as_me: failed program was:" >&5
12056sed 's/^/| /' conftest.$ac_ext >&5
12057
12058ac_cv_func_shl_load=no
12059fi
12060rm -f conftest.err conftest.$ac_objext \
12061 conftest$ac_exeext conftest.$ac_ext
12062fi
12063echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12064echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12065if test $ac_cv_func_shl_load = yes; then
12066 lt_cv_dlopen="shl_load"
12067else
12068 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12069echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12070if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12071 echo $ECHO_N "(cached) $ECHO_C" >&6
12072else
12073 ac_check_lib_save_LIBS=$LIBS
12074LIBS="-ldld $LIBS"
12075cat >conftest.$ac_ext <<_ACEOF
12076/* confdefs.h. */
12077_ACEOF
12078cat confdefs.h >>conftest.$ac_ext
12079cat >>conftest.$ac_ext <<_ACEOF
12080/* end confdefs.h. */
12081
12082/* Override any gcc2 internal prototype to avoid an error. */
12083#ifdef __cplusplus
12084extern "C"
12085#endif
12086/* We use char because int might match the return type of a gcc2
12087 builtin and then its argument prototype would still apply. */
12088char shl_load ();
12089int
12090main ()
12091{
12092shl_load ();
12093 ;
12094 return 0;
12095}
12096_ACEOF
12097rm -f conftest.$ac_objext conftest$ac_exeext
12098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12099 (eval $ac_link) 2>conftest.er1
12100 ac_status=$?
12101 grep -v '^ *+' conftest.er1 >conftest.err
12102 rm -f conftest.er1
12103 cat conftest.err >&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); } &&
12106 { ac_try='test -z "$ac_cxx_werror_flag"
12107 || 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'
12114 { (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
12126rm -f conftest.err conftest.$ac_objext \
12127 conftest$ac_exeext conftest.$ac_ext
12128LIBS=$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. */
12146/* 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
12150/* 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. */
12154
12155#ifdef __STDC__
12156# include <limits.h>
12157#else
12158# include <assert.h>
12159#endif
12160
12161#undef dlopen
12162
12163/* 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
12193 (eval $ac_link) 2>conftest.er1
12194 ac_status=$?
12195 grep -v '^ *+' conftest.er1 >conftest.err
12196 rm -f conftest.er1
12197 cat conftest.err >&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -z "$ac_cxx_werror_flag"
12201 || test ! -s conftest.err'
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12204 ac_status=$?
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; } &&
12207 { ac_try='test -s conftest$ac_exeext'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; }; then
12213 ac_cv_func_dlopen=yes
12214else
12215 echo "$as_me: failed program was:" >&5
12216sed 's/^/| /' conftest.$ac_ext >&5
12217
12218ac_cv_func_dlopen=no
12219fi
12220rm -f conftest.err conftest.$ac_objext \
12221 conftest$ac_exeext conftest.$ac_ext
12222fi
12223echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12224echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12225if test $ac_cv_func_dlopen = yes; then
12226 lt_cv_dlopen="dlopen"
12227else
12228 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12229echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12230if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12232else
12233 ac_check_lib_save_LIBS=$LIBS
12234LIBS="-ldl $LIBS"
12235cat >conftest.$ac_ext <<_ACEOF
12236/* confdefs.h. */
12237_ACEOF
12238cat confdefs.h >>conftest.$ac_ext
12239cat >>conftest.$ac_ext <<_ACEOF
12240/* end confdefs.h. */
12241
12242/* Override any gcc2 internal prototype to avoid an error. */
12243#ifdef __cplusplus
12244extern "C"
12245#endif
12246/* We use char because int might match the return type of a gcc2
12247 builtin and then its argument prototype would still apply. */
12248char dlopen ();
12249int
12250main ()
12251{
12252dlopen ();
12253 ;
12254 return 0;
12255}
12256_ACEOF
12257rm -f conftest.$ac_objext conftest$ac_exeext
12258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12259 (eval $ac_link) 2>conftest.er1
12260 ac_status=$?
12261 grep -v '^ *+' conftest.er1 >conftest.err
12262 rm -f conftest.er1
12263 cat conftest.err >&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } &&
12266 { ac_try='test -z "$ac_cxx_werror_flag"
12267 || test ! -s conftest.err'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; } &&
12273 { ac_try='test -s conftest$ac_exeext'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; }; then
12279 ac_cv_lib_dl_dlopen=yes
12280else
12281 echo "$as_me: failed program was:" >&5
12282sed 's/^/| /' conftest.$ac_ext >&5
12283
12284ac_cv_lib_dl_dlopen=no
12285fi
12286rm -f conftest.err conftest.$ac_objext \
12287 conftest$ac_exeext conftest.$ac_ext
12288LIBS=$ac_check_lib_save_LIBS
12289fi
12290echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12291echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12292if test $ac_cv_lib_dl_dlopen = yes; then
12293 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12294else
12295 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12296echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12297if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12299else
12300 ac_check_lib_save_LIBS=$LIBS
12301LIBS="-lsvld $LIBS"
12302cat >conftest.$ac_ext <<_ACEOF
12303/* confdefs.h. */
12304_ACEOF
12305cat confdefs.h >>conftest.$ac_ext
12306cat >>conftest.$ac_ext <<_ACEOF
12307/* end confdefs.h. */
12308
12309/* Override any gcc2 internal prototype to avoid an error. */
12310#ifdef __cplusplus
12311extern "C"
12312#endif
12313/* We use char because int might match the return type of a gcc2
12314 builtin and then its argument prototype would still apply. */
12315char dlopen ();
12316int
12317main ()
12318{
12319dlopen ();
12320 ;
12321 return 0;
12322}
12323_ACEOF
12324rm -f conftest.$ac_objext conftest$ac_exeext
12325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12326 (eval $ac_link) 2>conftest.er1
12327 ac_status=$?
12328 grep -v '^ *+' conftest.er1 >conftest.err
12329 rm -f conftest.er1
12330 cat conftest.err >&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } &&
12333 { ac_try='test -z "$ac_cxx_werror_flag"
12334 || test ! -s conftest.err'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; } &&
12340 { ac_try='test -s conftest$ac_exeext'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12343 ac_status=$?
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; }; then
12346 ac_cv_lib_svld_dlopen=yes
12347else
12348 echo "$as_me: failed program was:" >&5
12349sed 's/^/| /' conftest.$ac_ext >&5
12350
12351ac_cv_lib_svld_dlopen=no
12352fi
12353rm -f conftest.err conftest.$ac_objext \
12354 conftest$ac_exeext conftest.$ac_ext
12355LIBS=$ac_check_lib_save_LIBS
12356fi
12357echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12358echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12359if test $ac_cv_lib_svld_dlopen = yes; then
12360 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12361else
12362 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12363echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12364if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12365 echo $ECHO_N "(cached) $ECHO_C" >&6
12366else
12367 ac_check_lib_save_LIBS=$LIBS
12368LIBS="-ldld $LIBS"
12369cat >conftest.$ac_ext <<_ACEOF
12370/* confdefs.h. */
12371_ACEOF
12372cat confdefs.h >>conftest.$ac_ext
12373cat >>conftest.$ac_ext <<_ACEOF
12374/* end confdefs.h. */
12375
12376/* Override any gcc2 internal prototype to avoid an error. */
12377#ifdef __cplusplus
12378extern "C"
12379#endif
12380/* We use char because int might match the return type of a gcc2
12381 builtin and then its argument prototype would still apply. */
12382char dld_link ();
12383int
12384main ()
12385{
12386dld_link ();
12387 ;
12388 return 0;
12389}
12390_ACEOF
12391rm -f conftest.$ac_objext conftest$ac_exeext
12392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12393 (eval $ac_link) 2>conftest.er1
12394 ac_status=$?
12395 grep -v '^ *+' conftest.er1 >conftest.err
12396 rm -f conftest.er1
12397 cat conftest.err >&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } &&
12400 { ac_try='test -z "$ac_cxx_werror_flag"
12401 || test ! -s conftest.err'
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; } &&
12407 { ac_try='test -s conftest$ac_exeext'
12408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409 (eval $ac_try) 2>&5
12410 ac_status=$?
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
12413 ac_cv_lib_dld_dld_link=yes
12414else
12415 echo "$as_me: failed program was:" >&5
12416sed 's/^/| /' conftest.$ac_ext >&5
12417
12418ac_cv_lib_dld_dld_link=no
12419fi
12420rm -f conftest.err conftest.$ac_objext \
12421 conftest$ac_exeext conftest.$ac_ext
12422LIBS=$ac_check_lib_save_LIBS
12423fi
12424echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12425echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12426if test $ac_cv_lib_dld_dld_link = yes; then
12427 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12428fi
12429
12430
12431fi
12432
12433
12434fi
12435
12436
12437fi
12438
12439
12440fi
12441
12442
12443fi
12444
12445 ;;
12446 esac
12447
12448 if test "x$lt_cv_dlopen" != xno; then
12449 enable_dlopen=yes
12450 else
12451 enable_dlopen=no
12452 fi
12453
12454 case $lt_cv_dlopen in
12455 dlopen)
12456 save_CPPFLAGS="$CPPFLAGS"
12457 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12458
12459 save_LDFLAGS="$LDFLAGS"
12460 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12461
12462 save_LIBS="$LIBS"
12463 LIBS="$lt_cv_dlopen_libs $LIBS"
12464
12465 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12466echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12467if test "${lt_cv_dlopen_self+set}" = set; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12469else
12470 if test "$cross_compiling" = yes; then :
12471 lt_cv_dlopen_self=cross
12472else
12473 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12474 lt_status=$lt_dlunknown
12475 cat > conftest.$ac_ext <<EOF
hp.com!davidmb1d369a2003-11-26 18:59:24 +000012476#line 12476 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012477#include "confdefs.h"
12478
12479#if HAVE_DLFCN_H
12480#include <dlfcn.h>
12481#endif
12482
12483#include <stdio.h>
12484
12485#ifdef RTLD_GLOBAL
12486# define LT_DLGLOBAL RTLD_GLOBAL
12487#else
12488# ifdef DL_GLOBAL
12489# define LT_DLGLOBAL DL_GLOBAL
12490# else
12491# define LT_DLGLOBAL 0
12492# endif
12493#endif
12494
12495/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12496 find out it does not work in some platform. */
12497#ifndef LT_DLLAZY_OR_NOW
12498# ifdef RTLD_LAZY
12499# define LT_DLLAZY_OR_NOW RTLD_LAZY
12500# else
12501# ifdef DL_LAZY
12502# define LT_DLLAZY_OR_NOW DL_LAZY
12503# else
12504# ifdef RTLD_NOW
12505# define LT_DLLAZY_OR_NOW RTLD_NOW
12506# else
12507# ifdef DL_NOW
12508# define LT_DLLAZY_OR_NOW DL_NOW
12509# else
12510# define LT_DLLAZY_OR_NOW 0
12511# endif
12512# endif
12513# endif
12514# endif
12515#endif
12516
12517#ifdef __cplusplus
12518extern "C" void exit (int);
12519#endif
12520
12521void fnord() { int i=42;}
12522int main ()
12523{
12524 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12525 int status = $lt_dlunknown;
12526
12527 if (self)
12528 {
12529 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12530 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12531 /* dlclose (self); */
12532 }
12533
12534 exit (status);
12535}
12536EOF
12537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12538 (eval $ac_link) 2>&5
12539 ac_status=$?
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12542 (./conftest; exit; ) 2>/dev/null
12543 lt_status=$?
12544 case x$lt_status in
12545 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12546 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12547 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12548 esac
12549 else :
12550 # compilation failed
12551 lt_cv_dlopen_self=no
12552 fi
12553fi
12554rm -fr conftest*
12555
12556
12557fi
12558echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12559echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12560
12561 if test "x$lt_cv_dlopen_self" = xyes; then
12562 LDFLAGS="$LDFLAGS $link_static_flag"
12563 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12564echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12565if test "${lt_cv_dlopen_self_static+set}" = set; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12567else
12568 if test "$cross_compiling" = yes; then :
12569 lt_cv_dlopen_self_static=cross
12570else
12571 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12572 lt_status=$lt_dlunknown
12573 cat > conftest.$ac_ext <<EOF
hp.com!davidmb1d369a2003-11-26 18:59:24 +000012574#line 12574 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012575#include "confdefs.h"
12576
12577#if HAVE_DLFCN_H
12578#include <dlfcn.h>
12579#endif
12580
12581#include <stdio.h>
12582
12583#ifdef RTLD_GLOBAL
12584# define LT_DLGLOBAL RTLD_GLOBAL
12585#else
12586# ifdef DL_GLOBAL
12587# define LT_DLGLOBAL DL_GLOBAL
12588# else
12589# define LT_DLGLOBAL 0
12590# endif
12591#endif
12592
12593/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12594 find out it does not work in some platform. */
12595#ifndef LT_DLLAZY_OR_NOW
12596# ifdef RTLD_LAZY
12597# define LT_DLLAZY_OR_NOW RTLD_LAZY
12598# else
12599# ifdef DL_LAZY
12600# define LT_DLLAZY_OR_NOW DL_LAZY
12601# else
12602# ifdef RTLD_NOW
12603# define LT_DLLAZY_OR_NOW RTLD_NOW
12604# else
12605# ifdef DL_NOW
12606# define LT_DLLAZY_OR_NOW DL_NOW
12607# else
12608# define LT_DLLAZY_OR_NOW 0
12609# endif
12610# endif
12611# endif
12612# endif
12613#endif
12614
12615#ifdef __cplusplus
12616extern "C" void exit (int);
12617#endif
12618
12619void fnord() { int i=42;}
12620int main ()
12621{
12622 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12623 int status = $lt_dlunknown;
12624
12625 if (self)
12626 {
12627 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12628 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12629 /* dlclose (self); */
12630 }
12631
12632 exit (status);
12633}
12634EOF
12635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12636 (eval $ac_link) 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12640 (./conftest; exit; ) 2>/dev/null
12641 lt_status=$?
12642 case x$lt_status in
12643 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12644 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12645 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12646 esac
12647 else :
12648 # compilation failed
12649 lt_cv_dlopen_self_static=no
12650 fi
12651fi
12652rm -fr conftest*
12653
12654
12655fi
12656echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12657echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12658 fi
12659
12660 CPPFLAGS="$save_CPPFLAGS"
12661 LDFLAGS="$save_LDFLAGS"
12662 LIBS="$save_LIBS"
12663 ;;
12664 esac
12665
12666 case $lt_cv_dlopen_self in
12667 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12668 *) enable_dlopen_self=unknown ;;
12669 esac
12670
12671 case $lt_cv_dlopen_self_static in
12672 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12673 *) enable_dlopen_self_static=unknown ;;
12674 esac
12675fi
12676
12677
12678# The else clause should only fire when bootstrapping the
12679# libtool distribution, otherwise you forgot to ship ltmain.sh
12680# with your package, and you will get complaints that there are
12681# no rules to generate ltmain.sh.
12682if test -f "$ltmain"; then
12683 # See if we are running on zsh, and set the options which allow our commands through
12684 # without removal of \ escapes.
12685 if test -n "${ZSH_VERSION+set}" ; then
12686 setopt NO_GLOB_SUBST
12687 fi
12688 # Now quote all the things that may contain metacharacters while being
12689 # careful not to overquote the AC_SUBSTed values. We take copies of the
12690 # variables and quote the copies for generation of the libtool script.
12691 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12692 SED SHELL STRIP \
12693 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12694 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12695 deplibs_check_method reload_flag reload_cmds need_locks \
12696 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12697 lt_cv_sys_global_symbol_to_c_name_address \
12698 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12699 old_postinstall_cmds old_postuninstall_cmds \
12700 compiler_CXX \
12701 CC_CXX \
12702 LD_CXX \
12703 lt_prog_compiler_wl_CXX \
12704 lt_prog_compiler_pic_CXX \
12705 lt_prog_compiler_static_CXX \
12706 lt_prog_compiler_no_builtin_flag_CXX \
12707 export_dynamic_flag_spec_CXX \
12708 thread_safe_flag_spec_CXX \
12709 whole_archive_flag_spec_CXX \
12710 enable_shared_with_static_runtimes_CXX \
12711 old_archive_cmds_CXX \
12712 old_archive_from_new_cmds_CXX \
12713 predep_objects_CXX \
12714 postdep_objects_CXX \
12715 predeps_CXX \
12716 postdeps_CXX \
12717 compiler_lib_search_path_CXX \
12718 archive_cmds_CXX \
12719 archive_expsym_cmds_CXX \
12720 postinstall_cmds_CXX \
12721 postuninstall_cmds_CXX \
12722 old_archive_from_expsyms_cmds_CXX \
12723 allow_undefined_flag_CXX \
12724 no_undefined_flag_CXX \
12725 export_symbols_cmds_CXX \
12726 hardcode_libdir_flag_spec_CXX \
12727 hardcode_libdir_flag_spec_ld_CXX \
12728 hardcode_libdir_separator_CXX \
12729 hardcode_automatic_CXX \
12730 module_cmds_CXX \
12731 module_expsym_cmds_CXX \
12732 lt_cv_prog_compiler_c_o_CXX \
12733 exclude_expsyms_CXX \
12734 include_expsyms_CXX; do
12735
12736 case $var in
12737 old_archive_cmds_CXX | \
12738 old_archive_from_new_cmds_CXX | \
12739 archive_cmds_CXX | \
12740 archive_expsym_cmds_CXX | \
12741 module_cmds_CXX | \
12742 module_expsym_cmds_CXX | \
12743 old_archive_from_expsyms_cmds_CXX | \
12744 export_symbols_cmds_CXX | \
12745 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12746 postinstall_cmds | postuninstall_cmds | \
12747 old_postinstall_cmds | old_postuninstall_cmds | \
12748 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12749 # Double-quote double-evaled strings.
12750 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12751 ;;
12752 *)
12753 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12754 ;;
12755 esac
12756 done
12757
12758 case $lt_echo in
12759 *'\$0 --fallback-echo"')
12760 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12761 ;;
12762 esac
12763
12764cfgfile="$ofile"
12765
12766 cat <<__EOF__ >> "$cfgfile"
12767# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12768
12769# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12770
12771# Shell to use when invoking shell scripts.
12772SHELL=$lt_SHELL
12773
12774# Whether or not to build shared libraries.
12775build_libtool_libs=$enable_shared
12776
12777# Whether or not to build static libraries.
12778build_old_libs=$enable_static
12779
12780# Whether or not to add -lc for building shared libraries.
12781build_libtool_need_lc=$archive_cmds_need_lc_CXX
12782
12783# Whether or not to disallow shared libs when runtime libs are static
12784allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12785
12786# Whether or not to optimize for fast installation.
12787fast_install=$enable_fast_install
12788
12789# The host system.
12790host_alias=$host_alias
12791host=$host
12792
12793# An echo program that does not interpret backslashes.
12794echo=$lt_echo
12795
12796# The archiver.
12797AR=$lt_AR
12798AR_FLAGS=$lt_AR_FLAGS
12799
12800# A C compiler.
12801LTCC=$lt_LTCC
12802
12803# A language-specific compiler.
12804CC=$lt_compiler_CXX
12805
12806# Is the compiler the GNU C compiler?
12807with_gcc=$GCC_CXX
12808
12809# An ERE matcher.
12810EGREP=$lt_EGREP
12811
12812# The linker used to build libraries.
12813LD=$lt_LD_CXX
12814
12815# Whether we need hard or soft links.
12816LN_S=$lt_LN_S
12817
12818# A BSD-compatible nm program.
12819NM=$lt_NM
12820
12821# A symbol stripping program
12822STRIP=$lt_STRIP
12823
12824# Used to examine libraries when file_magic_cmd begins "file"
12825MAGIC_CMD=$MAGIC_CMD
12826
12827# Used on cygwin: DLL creation program.
12828DLLTOOL="$DLLTOOL"
12829
12830# Used on cygwin: object dumper.
12831OBJDUMP="$OBJDUMP"
12832
12833# Used on cygwin: assembler.
12834AS="$AS"
12835
12836# The name of the directory that contains temporary libtool files.
12837objdir=$objdir
12838
12839# How to create reloadable object files.
12840reload_flag=$lt_reload_flag
12841reload_cmds=$lt_reload_cmds
12842
12843# How to pass a linker flag through the compiler.
12844wl=$lt_lt_prog_compiler_wl_CXX
12845
12846# Object file suffix (normally "o").
12847objext="$ac_objext"
12848
12849# Old archive suffix (normally "a").
12850libext="$libext"
12851
12852# Shared library suffix (normally ".so").
12853shrext='$shrext'
12854
12855# Executable file suffix (normally "").
12856exeext="$exeext"
12857
12858# Additional compiler flags for building library objects.
12859pic_flag=$lt_lt_prog_compiler_pic_CXX
12860pic_mode=$pic_mode
12861
12862# What is the maximum length of a command?
12863max_cmd_len=$lt_cv_sys_max_cmd_len
12864
12865# Does compiler simultaneously support -c and -o options?
12866compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12867
12868# Must we lock files when doing compilation ?
12869need_locks=$lt_need_locks
12870
12871# Do we need the lib prefix for modules?
12872need_lib_prefix=$need_lib_prefix
12873
12874# Do we need a version for libraries?
12875need_version=$need_version
12876
12877# Whether dlopen is supported.
12878dlopen_support=$enable_dlopen
12879
12880# Whether dlopen of programs is supported.
12881dlopen_self=$enable_dlopen_self
12882
12883# Whether dlopen of statically linked programs is supported.
12884dlopen_self_static=$enable_dlopen_self_static
12885
12886# Compiler flag to prevent dynamic linking.
12887link_static_flag=$lt_lt_prog_compiler_static_CXX
12888
12889# Compiler flag to turn off builtin functions.
12890no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12891
12892# Compiler flag to allow reflexive dlopens.
12893export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12894
12895# Compiler flag to generate shared objects directly from archives.
12896whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12897
12898# Compiler flag to generate thread-safe objects.
12899thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12900
12901# Library versioning type.
12902version_type=$version_type
12903
12904# Format of library name prefix.
12905libname_spec=$lt_libname_spec
12906
12907# List of archive names. First name is the real one, the rest are links.
12908# The last name is the one that the linker finds with -lNAME.
12909library_names_spec=$lt_library_names_spec
12910
12911# The coded name of the library, if different from the real name.
12912soname_spec=$lt_soname_spec
12913
12914# Commands used to build and install an old-style archive.
12915RANLIB=$lt_RANLIB
12916old_archive_cmds=$lt_old_archive_cmds_CXX
12917old_postinstall_cmds=$lt_old_postinstall_cmds
12918old_postuninstall_cmds=$lt_old_postuninstall_cmds
12919
12920# Create an old-style archive from a shared archive.
12921old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12922
12923# Create a temporary old-style archive to link instead of a shared archive.
12924old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12925
12926# Commands used to build and install a shared archive.
12927archive_cmds=$lt_archive_cmds_CXX
12928archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12929postinstall_cmds=$lt_postinstall_cmds
12930postuninstall_cmds=$lt_postuninstall_cmds
12931
12932# Commands used to build a loadable module (assumed same as above if empty)
12933module_cmds=$lt_module_cmds_CXX
12934module_expsym_cmds=$lt_module_expsym_cmds_CXX
12935
12936# Commands to strip libraries.
12937old_striplib=$lt_old_striplib
12938striplib=$lt_striplib
12939
12940# Dependencies to place before the objects being linked to create a
12941# shared library.
12942predep_objects=$lt_predep_objects_CXX
12943
12944# Dependencies to place after the objects being linked to create a
12945# shared library.
12946postdep_objects=$lt_postdep_objects_CXX
12947
12948# Dependencies to place before the objects being linked to create a
12949# shared library.
12950predeps=$lt_predeps_CXX
12951
12952# Dependencies to place after the objects being linked to create a
12953# shared library.
12954postdeps=$lt_postdeps_CXX
12955
12956# The library search path used internally by the compiler when linking
12957# a shared library.
12958compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12959
12960# Method to check whether dependent libraries are shared objects.
12961deplibs_check_method=$lt_deplibs_check_method
12962
12963# Command to use when deplibs_check_method == file_magic.
12964file_magic_cmd=$lt_file_magic_cmd
12965
12966# Flag that allows shared libraries with undefined symbols to be built.
12967allow_undefined_flag=$lt_allow_undefined_flag_CXX
12968
12969# Flag that forces no undefined symbols.
12970no_undefined_flag=$lt_no_undefined_flag_CXX
12971
12972# Commands used to finish a libtool library installation in a directory.
12973finish_cmds=$lt_finish_cmds
12974
12975# Same as above, but a single script fragment to be evaled but not shown.
12976finish_eval=$lt_finish_eval
12977
12978# Take the output of nm and produce a listing of raw symbols and C names.
12979global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12980
12981# Transform the output of nm in a proper C declaration
12982global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12983
12984# Transform the output of nm in a C name address pair
12985global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12986
12987# This is the shared library runtime path variable.
12988runpath_var=$runpath_var
12989
12990# This is the shared library path variable.
12991shlibpath_var=$shlibpath_var
12992
12993# Is shlibpath searched before the hard-coded library search path?
12994shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12995
12996# How to hardcode a shared library path into an executable.
12997hardcode_action=$hardcode_action_CXX
12998
12999# Whether we should hardcode library paths into libraries.
13000hardcode_into_libs=$hardcode_into_libs
13001
13002# Flag to hardcode \$libdir into a binary during linking.
13003# This must work even if \$libdir does not exist.
13004hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13005
13006# If ld is used when linking, flag to hardcode \$libdir into
13007# a binary during linking. This must work even if \$libdir does
13008# not exist.
13009hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13010
13011# Whether we need a single -rpath flag with a separated argument.
13012hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13013
13014# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13015# resulting binary.
13016hardcode_direct=$hardcode_direct_CXX
13017
13018# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13019# resulting binary.
13020hardcode_minus_L=$hardcode_minus_L_CXX
13021
13022# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13023# the resulting binary.
13024hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13025
13026# Set to yes if building a shared library automatically hardcodes DIR into the library
13027# and all subsequent libraries and executables linked against it.
13028hardcode_automatic=$hardcode_automatic_CXX
13029
13030# Variables whose values should be saved in libtool wrapper scripts and
13031# restored at relink time.
13032variables_saved_for_relink="$variables_saved_for_relink"
13033
13034# Whether libtool must link a program against all its dependency libraries.
13035link_all_deplibs=$link_all_deplibs_CXX
13036
13037# Compile-time system search path for libraries
13038sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13039
13040# Run-time system search path for libraries
13041sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13042
13043# Fix the shell variable \$srcfile for the compiler.
13044fix_srcfile_path="$fix_srcfile_path_CXX"
13045
13046# Set to yes if exported symbols are required.
13047always_export_symbols=$always_export_symbols_CXX
13048
13049# The commands to list exported symbols.
13050export_symbols_cmds=$lt_export_symbols_cmds_CXX
13051
13052# The commands to extract the exported symbol list from a shared archive.
13053extract_expsyms_cmds=$lt_extract_expsyms_cmds
13054
13055# Symbols that should not be listed in the preloaded symbols.
13056exclude_expsyms=$lt_exclude_expsyms_CXX
13057
13058# Symbols that must always be exported.
13059include_expsyms=$lt_include_expsyms_CXX
13060
13061# ### END LIBTOOL TAG CONFIG: $tagname
13062
13063__EOF__
13064
13065
13066else
13067 # If there is no Makefile yet, we rely on a make rule to execute
13068 # `config.status --recheck' to rerun these tests and create the
13069 # libtool script then.
13070 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13071 if test -f "$ltmain_in"; then
13072 test -f Makefile && make "$ltmain"
13073 fi
13074fi
13075
13076
13077ac_ext=c
13078ac_cpp='$CPP $CPPFLAGS'
13079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13081ac_compiler_gnu=$ac_cv_c_compiler_gnu
13082
13083CC=$lt_save_CC
13084LDCXX=$LD
13085LD=$lt_save_LD
13086GCC=$lt_save_GCC
13087with_gnu_ldcxx=$with_gnu_ld
13088with_gnu_ld=$lt_save_with_gnu_ld
13089lt_cv_path_LDCXX=$lt_cv_path_LD
13090lt_cv_path_LD=$lt_save_path_LD
13091lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13092lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13093
13094 else
13095 tagname=""
13096 fi
13097 ;;
13098
13099 F77)
13100 if test -n "$F77" && test "X$F77" != "Xno"; then
13101
13102ac_ext=f
13103ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13104ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13105ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13106
13107
13108archive_cmds_need_lc_F77=no
13109allow_undefined_flag_F77=
13110always_export_symbols_F77=no
13111archive_expsym_cmds_F77=
13112export_dynamic_flag_spec_F77=
13113hardcode_direct_F77=no
13114hardcode_libdir_flag_spec_F77=
13115hardcode_libdir_flag_spec_ld_F77=
13116hardcode_libdir_separator_F77=
13117hardcode_minus_L_F77=no
13118hardcode_automatic_F77=no
13119module_cmds_F77=
13120module_expsym_cmds_F77=
13121link_all_deplibs_F77=unknown
13122old_archive_cmds_F77=$old_archive_cmds
13123no_undefined_flag_F77=
13124whole_archive_flag_spec_F77=
13125enable_shared_with_static_runtimes_F77=no
13126
13127# Source file extension for f77 test sources.
13128ac_ext=f
13129
13130# Object file extension for compiled f77 test sources.
13131objext=o
13132objext_F77=$objext
13133
13134# Code to be used in simple compile tests
13135lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13136
13137# Code to be used in simple link tests
13138lt_simple_link_test_code=" program t\n end\n"
13139
13140# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13141
13142# If no C compiler was specified, use CC.
13143LTCC=${LTCC-"$CC"}
13144
13145# Allow CC to be a program name with arguments.
13146compiler=$CC
13147
13148
13149# Allow CC to be a program name with arguments.
13150lt_save_CC="$CC"
13151CC=${F77-"f77"}
13152compiler=$CC
13153compiler_F77=$CC
13154cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13155
13156echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13157echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13158echo "$as_me:$LINENO: result: $can_build_shared" >&5
13159echo "${ECHO_T}$can_build_shared" >&6
13160
13161echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13162echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13163test "$can_build_shared" = "no" && enable_shared=no
13164
13165# On AIX, shared libraries and static libraries use the same namespace, and
13166# are all built from PIC.
13167case "$host_os" in
13168aix3*)
13169 test "$enable_shared" = yes && enable_static=no
13170 if test -n "$RANLIB"; then
13171 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13172 postinstall_cmds='$RANLIB $lib'
13173 fi
13174 ;;
13175aix4*)
13176 test "$enable_shared" = yes && enable_static=no
13177 ;;
13178esac
13179echo "$as_me:$LINENO: result: $enable_shared" >&5
13180echo "${ECHO_T}$enable_shared" >&6
13181
13182echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13183echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13184# Make sure either enable_shared or enable_static is yes.
13185test "$enable_shared" = yes || enable_static=yes
13186echo "$as_me:$LINENO: result: $enable_static" >&5
13187echo "${ECHO_T}$enable_static" >&6
13188
13189test "$ld_shlibs_F77" = no && can_build_shared=no
13190
13191GCC_F77="$G77"
13192LD_F77="$LD"
13193
13194lt_prog_compiler_wl_F77=
13195lt_prog_compiler_pic_F77=
13196lt_prog_compiler_static_F77=
13197
13198echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13199echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13200
13201 if test "$GCC" = yes; then
13202 lt_prog_compiler_wl_F77='-Wl,'
13203 lt_prog_compiler_static_F77='-static'
13204
13205 case $host_os in
13206 aix*)
13207 # All AIX code is PIC.
13208 if test "$host_cpu" = ia64; then
13209 # AIX 5 now supports IA64 processor
13210 lt_prog_compiler_static_F77='-Bstatic'
13211 fi
13212 ;;
13213
13214 amigaos*)
13215 # FIXME: we need at least 68020 code to build shared libraries, but
13216 # adding the `-m68020' flag to GCC prevents building anything better,
13217 # like `-m68040'.
13218 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13219 ;;
13220
13221 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13222 # PIC is the default for these OSes.
13223 ;;
13224
13225 mingw* | pw32* | os2*)
13226 # This hack is so that the source file can tell whether it is being
13227 # built for inclusion in a dll (and should export symbols for example).
13228 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13229 ;;
13230
13231 darwin* | rhapsody*)
13232 # PIC is the default on this platform
13233 # Common symbols not allowed in MH_DYLIB files
13234 lt_prog_compiler_pic_F77='-fno-common'
13235 ;;
13236
13237 msdosdjgpp*)
13238 # Just because we use GCC doesn't mean we suddenly get shared libraries
13239 # on systems that don't support them.
13240 lt_prog_compiler_can_build_shared_F77=no
13241 enable_shared=no
13242 ;;
13243
13244 sysv4*MP*)
13245 if test -d /usr/nec; then
13246 lt_prog_compiler_pic_F77=-Kconform_pic
13247 fi
13248 ;;
13249
13250 hpux*)
13251 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13252 # not for PA HP-UX.
13253 case "$host_cpu" in
13254 hppa*64*|ia64*)
13255 # +Z the default
13256 ;;
13257 *)
13258 lt_prog_compiler_pic_F77='-fPIC'
13259 ;;
13260 esac
13261 ;;
13262
13263 *)
13264 lt_prog_compiler_pic_F77='-fPIC'
13265 ;;
13266 esac
13267 else
13268 # PORTME Check for flag to pass linker flags through the system compiler.
13269 case $host_os in
13270 aix*)
13271 lt_prog_compiler_wl_F77='-Wl,'
13272 if test "$host_cpu" = ia64; then
13273 # AIX 5 now supports IA64 processor
13274 lt_prog_compiler_static_F77='-Bstatic'
13275 else
13276 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13277 fi
13278 ;;
13279
13280 mingw* | pw32* | os2*)
13281 # This hack is so that the source file can tell whether it is being
13282 # built for inclusion in a dll (and should export symbols for example).
13283 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13284 ;;
13285
13286 hpux9* | hpux10* | hpux11*)
13287 lt_prog_compiler_wl_F77='-Wl,'
13288 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13289 # not for PA HP-UX.
13290 case "$host_cpu" in
13291 hppa*64*|ia64*)
13292 # +Z the default
13293 ;;
13294 *)
13295 lt_prog_compiler_pic_F77='+Z'
13296 ;;
13297 esac
13298 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13299 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13300 ;;
13301
13302 irix5* | irix6* | nonstopux*)
13303 lt_prog_compiler_wl_F77='-Wl,'
13304 # PIC (with -KPIC) is the default.
13305 lt_prog_compiler_static_F77='-non_shared'
13306 ;;
13307
13308 newsos6)
13309 lt_prog_compiler_pic_F77='-KPIC'
13310 lt_prog_compiler_static_F77='-Bstatic'
13311 ;;
13312
13313 linux*)
13314 case $CC in
13315 icc* | ecc*)
13316 lt_prog_compiler_wl_F77='-Wl,'
13317 lt_prog_compiler_pic_F77='-KPIC'
13318 lt_prog_compiler_static_F77='-static'
13319 ;;
13320 ccc*)
13321 lt_prog_compiler_wl_F77='-Wl,'
13322 # All Alpha code is PIC.
13323 lt_prog_compiler_static_F77='-non_shared'
13324 ;;
13325 esac
13326 ;;
13327
13328 osf3* | osf4* | osf5*)
13329 lt_prog_compiler_wl_F77='-Wl,'
13330 # All OSF/1 code is PIC.
13331 lt_prog_compiler_static_F77='-non_shared'
13332 ;;
13333
13334 sco3.2v5*)
13335 lt_prog_compiler_pic_F77='-Kpic'
13336 lt_prog_compiler_static_F77='-dn'
13337 ;;
13338
13339 solaris*)
13340 lt_prog_compiler_wl_F77='-Wl,'
13341 lt_prog_compiler_pic_F77='-KPIC'
13342 lt_prog_compiler_static_F77='-Bstatic'
13343 ;;
13344
13345 sunos4*)
13346 lt_prog_compiler_wl_F77='-Qoption ld '
13347 lt_prog_compiler_pic_F77='-PIC'
13348 lt_prog_compiler_static_F77='-Bstatic'
13349 ;;
13350
13351 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13352 lt_prog_compiler_wl_F77='-Wl,'
13353 lt_prog_compiler_pic_F77='-KPIC'
13354 lt_prog_compiler_static_F77='-Bstatic'
13355 ;;
13356
13357 sysv4*MP*)
13358 if test -d /usr/nec ;then
13359 lt_prog_compiler_pic_F77='-Kconform_pic'
13360 lt_prog_compiler_static_F77='-Bstatic'
13361 fi
13362 ;;
13363
13364 uts4*)
13365 lt_prog_compiler_pic_F77='-pic'
13366 lt_prog_compiler_static_F77='-Bstatic'
13367 ;;
13368
13369 *)
13370 lt_prog_compiler_can_build_shared_F77=no
13371 ;;
13372 esac
13373 fi
13374
13375echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13376echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13377
13378#
13379# Check to make sure the PIC flag actually works.
13380#
13381if test -n "$lt_prog_compiler_pic_F77"; then
13382
13383echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13384echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13385if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13386 echo $ECHO_N "(cached) $ECHO_C" >&6
13387else
13388 lt_prog_compiler_pic_works_F77=no
13389 ac_outfile=conftest.$ac_objext
13390 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13391 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13392 # Insert the option either (1) after the last *FLAGS variable, or
13393 # (2) before a word containing "conftest.", or (3) at the end.
13394 # Note that $ac_compile itself does not contain backslashes and begins
13395 # with a dollar sign (not a hyphen), so the echo should work correctly.
13396 # The option is referenced via a variable to avoid confusing sed.
13397 lt_compile=`echo "$ac_compile" | $SED \
13398 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13400 -e 's:$: $lt_compiler_flag:'`
hp.com!davidmb1d369a2003-11-26 18:59:24 +000013401 (eval echo "\"\$as_me:13401: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013402 (eval "$lt_compile" 2>conftest.err)
13403 ac_status=$?
13404 cat conftest.err >&5
hp.com!davidmb1d369a2003-11-26 18:59:24 +000013405 echo "$as_me:13405: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013406 if (exit $ac_status) && test -s "$ac_outfile"; then
13407 # The compiler can only warn and ignore the option if not recognized
13408 # So say no if there are warnings
13409 if test ! -s conftest.err; then
13410 lt_prog_compiler_pic_works_F77=yes
13411 fi
13412 fi
13413 $rm conftest*
13414
13415fi
13416echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13417echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13418
13419if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13420 case $lt_prog_compiler_pic_F77 in
13421 "" | " "*) ;;
13422 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13423 esac
13424else
13425 lt_prog_compiler_pic_F77=
13426 lt_prog_compiler_can_build_shared_F77=no
13427fi
13428
13429fi
13430case "$host_os" in
13431 # For platforms which do not support PIC, -DPIC is meaningless:
13432 *djgpp*)
13433 lt_prog_compiler_pic_F77=
13434 ;;
13435 *)
13436 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13437 ;;
13438esac
13439
13440echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13441echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13442if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13444else
13445 lt_cv_prog_compiler_c_o_F77=no
13446 $rm -r conftest 2>/dev/null
13447 mkdir conftest
13448 cd conftest
13449 mkdir out
13450 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13451
13452 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13453 # that will create temporary files in the current directory regardless of
13454 # the output directory. Thus, making CWD read-only will cause this test
13455 # to fail, enabling locking or at least warning the user not to do parallel
13456 # builds.
13457 chmod -w .
13458
13459 lt_compiler_flag="-o out/conftest2.$ac_objext"
13460 # Insert the option either (1) after the last *FLAGS variable, or
13461 # (2) before a word containing "conftest.", or (3) at the end.
13462 # Note that $ac_compile itself does not contain backslashes and begins
13463 # with a dollar sign (not a hyphen), so the echo should work correctly.
13464 lt_compile=`echo "$ac_compile" | $SED \
13465 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13467 -e 's:$: $lt_compiler_flag:'`
hp.com!davidmb1d369a2003-11-26 18:59:24 +000013468 (eval echo "\"\$as_me:13468: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013469 (eval "$lt_compile" 2>out/conftest.err)
13470 ac_status=$?
13471 cat out/conftest.err >&5
hp.com!davidmb1d369a2003-11-26 18:59:24 +000013472 echo "$as_me:13472: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013473 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13474 then
13475 # The compiler can only warn and ignore the option if not recognized
13476 # So say no if there are warnings
13477 if test ! -s out/conftest.err; then
13478 lt_cv_prog_compiler_c_o_F77=yes
13479 fi
13480 fi
13481 chmod u+w .
13482 $rm conftest*
13483 # SGI C++ compiler will create directory out/ii_files/ for
13484 # template instantiation
13485 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13486 $rm out/* && rmdir out
13487 cd ..
13488 rmdir conftest
13489 $rm conftest*
13490
13491fi
13492echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13493echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13494
13495
13496hard_links="nottested"
13497if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13498 # do not overwrite the value of need_locks provided by the user
13499 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13500echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13501 hard_links=yes
13502 $rm conftest*
13503 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13504 touch conftest.a
13505 ln conftest.a conftest.b 2>&5 || hard_links=no
13506 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13507 echo "$as_me:$LINENO: result: $hard_links" >&5
13508echo "${ECHO_T}$hard_links" >&6
13509 if test "$hard_links" = no; then
13510 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13511echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13512 need_locks=warn
13513 fi
13514else
13515 need_locks=no
13516fi
13517
13518echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13519echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13520
13521 runpath_var=
13522 allow_undefined_flag_F77=
13523 enable_shared_with_static_runtimes_F77=no
13524 archive_cmds_F77=
13525 archive_expsym_cmds_F77=
13526 old_archive_From_new_cmds_F77=
13527 old_archive_from_expsyms_cmds_F77=
13528 export_dynamic_flag_spec_F77=
13529 whole_archive_flag_spec_F77=
13530 thread_safe_flag_spec_F77=
13531 hardcode_libdir_flag_spec_F77=
13532 hardcode_libdir_flag_spec_ld_F77=
13533 hardcode_libdir_separator_F77=
13534 hardcode_direct_F77=no
13535 hardcode_minus_L_F77=no
13536 hardcode_shlibpath_var_F77=unsupported
13537 link_all_deplibs_F77=unknown
13538 hardcode_automatic_F77=no
13539 module_cmds_F77=
13540 module_expsym_cmds_F77=
13541 always_export_symbols_F77=no
13542 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13543 # include_expsyms should be a list of space-separated symbols to be *always*
13544 # included in the symbol list
13545 include_expsyms_F77=
13546 # exclude_expsyms can be an extended regexp of symbols to exclude
13547 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13548 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13549 # as well as any symbol that contains `d'.
13550 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13551 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13552 # platforms (ab)use it in PIC code, but their linkers get confused if
13553 # the symbol is explicitly referenced. Since portable code cannot
13554 # rely on this symbol name, it's probably fine to never include it in
13555 # preloaded symbol tables.
13556 extract_expsyms_cmds=
13557
13558 case $host_os in
13559 cygwin* | mingw* | pw32*)
13560 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13561 # When not using gcc, we currently assume that we are using
13562 # Microsoft Visual C++.
13563 if test "$GCC" != yes; then
13564 with_gnu_ld=no
13565 fi
13566 ;;
13567 openbsd*)
13568 with_gnu_ld=no
13569 ;;
13570 esac
13571
13572 ld_shlibs_F77=yes
13573 if test "$with_gnu_ld" = yes; then
13574 # If archive_cmds runs LD, not CC, wlarc should be empty
13575 wlarc='${wl}'
13576
13577 # See if GNU ld supports shared libraries.
13578 case $host_os in
13579 aix3* | aix4* | aix5*)
13580 # On AIX/PPC, the GNU linker is very broken
13581 if test "$host_cpu" != ia64; then
13582 ld_shlibs_F77=no
13583 cat <<EOF 1>&2
13584
13585*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13586*** to be unable to reliably create shared libraries on AIX.
13587*** Therefore, libtool is disabling shared libraries support. If you
13588*** really care for shared libraries, you may want to modify your PATH
13589*** so that a non-GNU linker is found, and then restart.
13590
13591EOF
13592 fi
13593 ;;
13594
13595 amigaos*)
13596 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)'
13597 hardcode_libdir_flag_spec_F77='-L$libdir'
13598 hardcode_minus_L_F77=yes
13599
13600 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13601 # that the semantics of dynamic libraries on AmigaOS, at least up
13602 # to version 4, is to share data among multiple programs linked
13603 # with the same dynamic library. Since this doesn't match the
13604 # behavior of shared libraries on other platforms, we can't use
13605 # them.
13606 ld_shlibs_F77=no
13607 ;;
13608
13609 beos*)
13610 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13611 allow_undefined_flag_F77=unsupported
13612 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13613 # support --undefined. This deserves some investigation. FIXME
13614 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13615 else
13616 ld_shlibs_F77=no
13617 fi
13618 ;;
13619
13620 cygwin* | mingw* | pw32*)
13621 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13622 # as there is no search path for DLLs.
13623 hardcode_libdir_flag_spec_F77='-L$libdir'
13624 allow_undefined_flag_F77=unsupported
13625 always_export_symbols_F77=no
13626 enable_shared_with_static_runtimes_F77=yes
13627 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13628
13629 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13630 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13631 # If the export-symbols file already is a .def file (1st line
13632 # is EXPORTS), use it as is; otherwise, prepend...
13633 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13634 cp $export_symbols $output_objdir/$soname.def;
13635 else
13636 echo EXPORTS > $output_objdir/$soname.def;
13637 cat $export_symbols >> $output_objdir/$soname.def;
13638 fi~
13639 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13640 else
13641 ld_shlibs=no
13642 fi
13643 ;;
13644
13645 netbsd*)
13646 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13647 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13648 wlarc=
13649 else
13650 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13651 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13652 fi
13653 ;;
13654
13655 solaris* | sysv5*)
13656 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13657 ld_shlibs_F77=no
13658 cat <<EOF 1>&2
13659
13660*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13661*** create shared libraries on Solaris systems. Therefore, libtool
13662*** is disabling shared libraries support. We urge you to upgrade GNU
13663*** binutils to release 2.9.1 or newer. Another option is to modify
13664*** your PATH or compiler configuration so that the native linker is
13665*** used, and then restart.
13666
13667EOF
13668 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13669 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13670 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13671 else
13672 ld_shlibs_F77=no
13673 fi
13674 ;;
13675
13676 sunos4*)
13677 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13678 wlarc=
13679 hardcode_direct_F77=yes
13680 hardcode_shlibpath_var_F77=no
13681 ;;
13682
13683 linux*)
13684 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13685 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13686 archive_cmds_F77="$tmp_archive_cmds"
13687 supports_anon_versioning=no
13688 case `$LD -v 2>/dev/null` in
13689 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13690 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13691 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13692 *\ 2.11.*) ;; # other 2.11 versions
13693 *) supports_anon_versioning=yes ;;
13694 esac
13695 if test $supports_anon_versioning = yes; then
13696 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13697cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13698$echo "local: *; };" >> $output_objdir/$libname.ver~
13699 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13700 else
13701 archive_expsym_cmds_F77="$tmp_archive_cmds"
13702 fi
13703 else
13704 ld_shlibs_F77=no
13705 fi
13706 ;;
13707
13708 *)
13709 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13710 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13711 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13712 else
13713 ld_shlibs_F77=no
13714 fi
13715 ;;
13716 esac
13717
13718 if test "$ld_shlibs_F77" = yes; then
13719 runpath_var=LD_RUN_PATH
13720 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13721 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13722 # ancient GNU ld didn't support --whole-archive et. al.
13723 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13724 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13725 else
13726 whole_archive_flag_spec_F77=
13727 fi
13728 fi
13729 else
13730 # PORTME fill in a description of your system's linker (not GNU ld)
13731 case $host_os in
13732 aix3*)
13733 allow_undefined_flag_F77=unsupported
13734 always_export_symbols_F77=yes
13735 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'
13736 # Note: this linker hardcodes the directories in LIBPATH if there
13737 # are no directories specified by -L.
13738 hardcode_minus_L_F77=yes
13739 if test "$GCC" = yes && test -z "$link_static_flag"; then
13740 # Neither direct hardcoding nor static linking is supported with a
13741 # broken collect2.
13742 hardcode_direct_F77=unsupported
13743 fi
13744 ;;
13745
13746 aix4* | aix5*)
13747 if test "$host_cpu" = ia64; then
13748 # On IA64, the linker does run time linking by default, so we don't
13749 # have to do anything special.
13750 aix_use_runtimelinking=no
13751 exp_sym_flag='-Bexport'
13752 no_entry_flag=""
13753 else
13754 # If we're using GNU nm, then we don't want the "-C" option.
13755 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13756 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13757 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'
13758 else
13759 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'
13760 fi
13761 aix_use_runtimelinking=no
13762
13763 # Test if we are trying to use run time linking or normal
13764 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13765 # need to do runtime linking.
13766 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13767 for ld_flag in $LDFLAGS; do
13768 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13769 aix_use_runtimelinking=yes
13770 break
13771 fi
13772 done
13773 esac
13774
13775 exp_sym_flag='-bexport'
13776 no_entry_flag='-bnoentry'
13777 fi
13778
13779 # When large executables or shared objects are built, AIX ld can
13780 # have problems creating the table of contents. If linking a library
13781 # or program results in "error TOC overflow" add -mminimal-toc to
13782 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13783 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13784
13785 archive_cmds_F77=''
13786 hardcode_direct_F77=yes
13787 hardcode_libdir_separator_F77=':'
13788 link_all_deplibs_F77=yes
13789
13790 if test "$GCC" = yes; then
13791 case $host_os in aix4.012|aix4.012.*)
13792 # We only want to do this on AIX 4.2 and lower, the check
13793 # below for broken collect2 doesn't work under 4.3+
13794 collect2name=`${CC} -print-prog-name=collect2`
13795 if test -f "$collect2name" && \
13796 strings "$collect2name" | grep resolve_lib_name >/dev/null
13797 then
13798 # We have reworked collect2
13799 hardcode_direct_F77=yes
13800 else
13801 # We have old collect2
13802 hardcode_direct_F77=unsupported
13803 # It fails to find uninstalled libraries when the uninstalled
13804 # path is not listed in the libpath. Setting hardcode_minus_L
13805 # to unsupported forces relinking
13806 hardcode_minus_L_F77=yes
13807 hardcode_libdir_flag_spec_F77='-L$libdir'
13808 hardcode_libdir_separator_F77=
13809 fi
13810 esac
13811 shared_flag='-shared'
13812 else
13813 # not using gcc
13814 if test "$host_cpu" = ia64; then
13815 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13816 # chokes on -Wl,-G. The following line is correct:
13817 shared_flag='-G'
13818 else
13819 if test "$aix_use_runtimelinking" = yes; then
13820 shared_flag='${wl}-G'
13821 else
13822 shared_flag='${wl}-bM:SRE'
13823 fi
13824 fi
13825 fi
13826
13827 # It seems that -bexpall does not export symbols beginning with
13828 # underscore (_), so it is better to generate a list of symbols to export.
13829 always_export_symbols_F77=yes
13830 if test "$aix_use_runtimelinking" = yes; then
13831 # Warning - without using the other runtime loading flags (-brtl),
13832 # -berok will link without error, but may produce a broken library.
13833 allow_undefined_flag_F77='-berok'
13834 # Determine the default libpath from the value encoded in an empty executable.
13835 cat >conftest.$ac_ext <<_ACEOF
13836 program main
13837
13838 end
13839_ACEOF
13840rm -f conftest.$ac_objext conftest$ac_exeext
13841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13842 (eval $ac_link) 2>conftest.er1
13843 ac_status=$?
13844 grep -v '^ *+' conftest.er1 >conftest.err
13845 rm -f conftest.er1
13846 cat conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
13849 { ac_try='test -z "$ac_f77_werror_flag"
13850 || test ! -s conftest.err'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; } &&
13856 { ac_try='test -s conftest$ac_exeext'
13857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858 (eval $ac_try) 2>&5
13859 ac_status=$?
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
13862
13863aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13864}'`
13865# Check for a 64-bit object if we didn't find anything.
13866if 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; }
13867}'`; fi
13868else
13869 echo "$as_me: failed program was:" >&5
13870sed 's/^/| /' conftest.$ac_ext >&5
13871
13872fi
13873rm -f conftest.err conftest.$ac_objext \
13874 conftest$ac_exeext conftest.$ac_ext
13875if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13876
13877 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13878 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"
13879 else
13880 if test "$host_cpu" = ia64; then
13881 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13882 allow_undefined_flag_F77="-z nodefs"
13883 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"
13884 else
13885 # Determine the default libpath from the value encoded in an empty executable.
13886 cat >conftest.$ac_ext <<_ACEOF
13887 program main
13888
13889 end
13890_ACEOF
13891rm -f conftest.$ac_objext conftest$ac_exeext
13892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13893 (eval $ac_link) 2>conftest.er1
13894 ac_status=$?
13895 grep -v '^ *+' conftest.er1 >conftest.err
13896 rm -f conftest.er1
13897 cat conftest.err >&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); } &&
13900 { ac_try='test -z "$ac_f77_werror_flag"
13901 || test ! -s conftest.err'
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13904 ac_status=$?
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; } &&
13907 { ac_try='test -s conftest$ac_exeext'
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5
13910 ac_status=$?
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; }; then
13913
13914aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13915}'`
13916# Check for a 64-bit object if we didn't find anything.
13917if 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; }
13918}'`; fi
13919else
13920 echo "$as_me: failed program was:" >&5
13921sed 's/^/| /' conftest.$ac_ext >&5
13922
13923fi
13924rm -f conftest.err conftest.$ac_objext \
13925 conftest$ac_exeext conftest.$ac_ext
13926if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13927
13928 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13929 # Warning - without using the other run time loading flags,
13930 # -berok will link without error, but may produce a broken library.
13931 no_undefined_flag_F77=' ${wl}-bernotok'
13932 allow_undefined_flag_F77=' ${wl}-berok'
13933 # -bexpall does not export symbols beginning with underscore (_)
13934 always_export_symbols_F77=yes
13935 # Exported symbols can be pulled into shared objects from archives
13936 whole_archive_flag_spec_F77=' '
13937 archive_cmds_need_lc_F77=yes
13938 # This is similar to how AIX traditionally builds it's shared libraries.
13939 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'
13940 fi
13941 fi
13942 ;;
13943
13944 amigaos*)
13945 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)'
13946 hardcode_libdir_flag_spec_F77='-L$libdir'
13947 hardcode_minus_L_F77=yes
13948 # see comment about different semantics on the GNU ld section
13949 ld_shlibs_F77=no
13950 ;;
13951
13952 bsdi4*)
13953 export_dynamic_flag_spec_F77=-rdynamic
13954 ;;
13955
13956 cygwin* | mingw* | pw32*)
13957 # When not using gcc, we currently assume that we are using
13958 # Microsoft Visual C++.
13959 # hardcode_libdir_flag_spec is actually meaningless, as there is
13960 # no search path for DLLs.
13961 hardcode_libdir_flag_spec_F77=' '
13962 allow_undefined_flag_F77=unsupported
13963 # Tell ltmain to make .lib files, not .a files.
13964 libext=lib
13965 # Tell ltmain to make .dll files, not .so files.
13966 shrext=".dll"
13967 # FIXME: Setting linknames here is a bad hack.
13968 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13969 # The linker will automatically build a .lib file if we build a DLL.
13970 old_archive_From_new_cmds_F77='true'
13971 # FIXME: Should let the user specify the lib program.
13972 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13973 fix_srcfile_path='`cygpath -w "$srcfile"`'
13974 enable_shared_with_static_runtimes_F77=yes
13975 ;;
13976
13977 darwin* | rhapsody*)
13978 if test "$GXX" = yes ; then
13979 archive_cmds_need_lc_F77=no
13980 case "$host_os" in
13981 rhapsody* | darwin1.[012])
13982 allow_undefined_flag_F77='-undefined suppress'
13983 ;;
13984 *) # Darwin 1.3 on
13985 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13986 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13987 else
13988 case ${MACOSX_DEPLOYMENT_TARGET} in
13989 10.[012])
13990 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13991 ;;
13992 10.*)
13993 allow_undefined_flag_F77='-undefined dynamic_lookup'
13994 ;;
13995 esac
13996 fi
13997 ;;
13998 esac
13999 lt_int_apple_cc_single_mod=no
14000 output_verbose_link_cmd='echo'
14001 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14002 lt_int_apple_cc_single_mod=yes
14003 fi
14004 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14005 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14006 else
14007 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'
14008 fi
14009 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14010 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14011 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14012 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}'
14013 else
14014 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}'
14015 fi
14016 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}'
14017 hardcode_direct_F77=no
14018 hardcode_automatic_F77=yes
14019 hardcode_shlibpath_var_F77=unsupported
14020 whole_archive_flag_spec_F77='-all_load $convenience'
14021 link_all_deplibs_F77=yes
14022 else
14023 ld_shlibs_F77=no
14024 fi
14025 ;;
14026
14027 dgux*)
14028 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14029 hardcode_libdir_flag_spec_F77='-L$libdir'
14030 hardcode_shlibpath_var_F77=no
14031 ;;
14032
14033 freebsd1*)
14034 ld_shlibs_F77=no
14035 ;;
14036
14037 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14038 # support. Future versions do this automatically, but an explicit c++rt0.o
14039 # does not break anything, and helps significantly (at the cost of a little
14040 # extra space).
14041 freebsd2.2*)
14042 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14043 hardcode_libdir_flag_spec_F77='-R$libdir'
14044 hardcode_direct_F77=yes
14045 hardcode_shlibpath_var_F77=no
14046 ;;
14047
14048 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14049 freebsd2*)
14050 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14051 hardcode_direct_F77=yes
14052 hardcode_minus_L_F77=yes
14053 hardcode_shlibpath_var_F77=no
14054 ;;
14055
14056 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14057 freebsd* | kfreebsd*-gnu)
14058 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14059 hardcode_libdir_flag_spec_F77='-R$libdir'
14060 hardcode_direct_F77=yes
14061 hardcode_shlibpath_var_F77=no
14062 ;;
14063
14064 hpux9*)
14065 if test "$GCC" = yes; then
14066 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'
14067 else
14068 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'
14069 fi
14070 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14071 hardcode_libdir_separator_F77=:
14072 hardcode_direct_F77=yes
14073
14074 # hardcode_minus_L: Not really in the search PATH,
14075 # but as the default location of the library.
14076 hardcode_minus_L_F77=yes
14077 export_dynamic_flag_spec_F77='${wl}-E'
14078 ;;
14079
14080 hpux10* | hpux11*)
14081 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14082 case "$host_cpu" in
14083 hppa*64*|ia64*)
14084 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14085 ;;
14086 *)
14087 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14088 ;;
14089 esac
14090 else
14091 case "$host_cpu" in
14092 hppa*64*|ia64*)
14093 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14094 ;;
14095 *)
14096 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14097 ;;
14098 esac
14099 fi
14100 if test "$with_gnu_ld" = no; then
14101 case "$host_cpu" in
14102 hppa*64*)
14103 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14104 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14105 hardcode_libdir_separator_F77=:
14106 hardcode_direct_F77=no
14107 hardcode_shlibpath_var_F77=no
14108 ;;
14109 ia64*)
14110 hardcode_libdir_flag_spec_F77='-L$libdir'
14111 hardcode_direct_F77=no
14112 hardcode_shlibpath_var_F77=no
14113
14114 # hardcode_minus_L: Not really in the search PATH,
14115 # but as the default location of the library.
14116 hardcode_minus_L_F77=yes
14117 ;;
14118 *)
14119 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14120 hardcode_libdir_separator_F77=:
14121 hardcode_direct_F77=yes
14122 export_dynamic_flag_spec_F77='${wl}-E'
14123
14124 # hardcode_minus_L: Not really in the search PATH,
14125 # but as the default location of the library.
14126 hardcode_minus_L_F77=yes
14127 ;;
14128 esac
14129 fi
14130 ;;
14131
14132 irix5* | irix6* | nonstopux*)
14133 if test "$GCC" = yes; then
14134 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'
14135 else
14136 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'
14137 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14138 fi
14139 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14140 hardcode_libdir_separator_F77=:
14141 link_all_deplibs_F77=yes
14142 ;;
14143
14144 netbsd*)
14145 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14146 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14147 else
14148 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14149 fi
14150 hardcode_libdir_flag_spec_F77='-R$libdir'
14151 hardcode_direct_F77=yes
14152 hardcode_shlibpath_var_F77=no
14153 ;;
14154
14155 newsos6)
14156 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14157 hardcode_direct_F77=yes
14158 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14159 hardcode_libdir_separator_F77=:
14160 hardcode_shlibpath_var_F77=no
14161 ;;
14162
14163 openbsd*)
14164 hardcode_direct_F77=yes
14165 hardcode_shlibpath_var_F77=no
14166 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14167 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14168 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14169 export_dynamic_flag_spec_F77='${wl}-E'
14170 else
14171 case $host_os in
14172 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14173 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14174 hardcode_libdir_flag_spec_F77='-R$libdir'
14175 ;;
14176 *)
14177 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14178 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14179 ;;
14180 esac
14181 fi
14182 ;;
14183
14184 os2*)
14185 hardcode_libdir_flag_spec_F77='-L$libdir'
14186 hardcode_minus_L_F77=yes
14187 allow_undefined_flag_F77=unsupported
14188 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'
14189 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14190 ;;
14191
14192 osf3*)
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14196 else
14197 allow_undefined_flag_F77=' -expect_unresolved \*'
14198 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'
14199 fi
14200 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14201 hardcode_libdir_separator_F77=:
14202 ;;
14203
14204 osf4* | osf5*) # as osf3* with the addition of -msym flag
14205 if test "$GCC" = yes; then
14206 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14207 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'
14208 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14209 else
14210 allow_undefined_flag_F77=' -expect_unresolved \*'
14211 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'
14212 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~
14213 $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'
14214
14215 # Both c and cxx compiler support -rpath directly
14216 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14217 fi
14218 hardcode_libdir_separator_F77=:
14219 ;;
14220
14221 sco3.2v5*)
14222 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14223 hardcode_shlibpath_var_F77=no
14224 export_dynamic_flag_spec_F77='${wl}-Bexport'
14225 runpath_var=LD_RUN_PATH
14226 hardcode_runpath_var=yes
14227 ;;
14228
14229 solaris*)
14230 no_undefined_flag_F77=' -z text'
14231 if test "$GCC" = yes; then
14232 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14233 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14234 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14235 else
14236 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14237 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14238 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14239 fi
14240 hardcode_libdir_flag_spec_F77='-R$libdir'
14241 hardcode_shlibpath_var_F77=no
14242 case $host_os in
14243 solaris2.[0-5] | solaris2.[0-5].*) ;;
14244 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14245 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14246 esac
14247 link_all_deplibs_F77=yes
14248 ;;
14249
14250 sunos4*)
14251 if test "x$host_vendor" = xsequent; then
14252 # Use $CC to link under sequent, because it throws in some extra .o
14253 # files that make .init and .fini sections work.
14254 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14255 else
14256 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14257 fi
14258 hardcode_libdir_flag_spec_F77='-L$libdir'
14259 hardcode_direct_F77=yes
14260 hardcode_minus_L_F77=yes
14261 hardcode_shlibpath_var_F77=no
14262 ;;
14263
14264 sysv4)
14265 case $host_vendor in
14266 sni)
14267 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14268 hardcode_direct_F77=yes # is this really true???
14269 ;;
14270 siemens)
14271 ## LD is ld it makes a PLAMLIB
14272 ## CC just makes a GrossModule.
14273 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14274 reload_cmds_F77='$CC -r -o $output$reload_objs'
14275 hardcode_direct_F77=no
14276 ;;
14277 motorola)
14278 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14279 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14280 ;;
14281 esac
14282 runpath_var='LD_RUN_PATH'
14283 hardcode_shlibpath_var_F77=no
14284 ;;
14285
14286 sysv4.3*)
14287 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14288 hardcode_shlibpath_var_F77=no
14289 export_dynamic_flag_spec_F77='-Bexport'
14290 ;;
14291
14292 sysv4*MP*)
14293 if test -d /usr/nec; then
14294 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14295 hardcode_shlibpath_var_F77=no
14296 runpath_var=LD_RUN_PATH
14297 hardcode_runpath_var=yes
14298 ld_shlibs_F77=yes
14299 fi
14300 ;;
14301
14302 sysv4.2uw2*)
14303 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14304 hardcode_direct_F77=yes
14305 hardcode_minus_L_F77=no
14306 hardcode_shlibpath_var_F77=no
14307 hardcode_runpath_var=yes
14308 runpath_var=LD_RUN_PATH
14309 ;;
14310
14311 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14312 no_undefined_flag_F77='${wl}-z ${wl}text'
14313 if test "$GCC" = yes; then
14314 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14315 else
14316 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14317 fi
14318 runpath_var='LD_RUN_PATH'
14319 hardcode_shlibpath_var_F77=no
14320 ;;
14321
14322 sysv5*)
14323 no_undefined_flag_F77=' -z text'
14324 # $CC -shared without GNU ld will not create a library from C++
14325 # object files and a static libstdc++, better avoid it by now
14326 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14327 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14328 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14329 hardcode_libdir_flag_spec_F77=
14330 hardcode_shlibpath_var_F77=no
14331 runpath_var='LD_RUN_PATH'
14332 ;;
14333
14334 uts4*)
14335 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14336 hardcode_libdir_flag_spec_F77='-L$libdir'
14337 hardcode_shlibpath_var_F77=no
14338 ;;
14339
14340 *)
14341 ld_shlibs_F77=no
14342 ;;
14343 esac
14344 fi
14345
14346echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14347echo "${ECHO_T}$ld_shlibs_F77" >&6
14348test "$ld_shlibs_F77" = no && can_build_shared=no
14349
14350variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14351if test "$GCC" = yes; then
14352 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14353fi
14354
14355#
14356# Do we need to explicitly link libc?
14357#
14358case "x$archive_cmds_need_lc_F77" in
14359x|xyes)
14360 # Assume -lc should be added
14361 archive_cmds_need_lc_F77=yes
14362
14363 if test "$enable_shared" = yes && test "$GCC" = yes; then
14364 case $archive_cmds_F77 in
14365 *'~'*)
14366 # FIXME: we may have to deal with multi-command sequences.
14367 ;;
14368 '$CC '*)
14369 # Test whether the compiler implicitly links with -lc since on some
14370 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14371 # to ld, don't add -lc before -lgcc.
14372 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14373echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14374 $rm conftest*
14375 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14376
14377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14378 (eval $ac_compile) 2>&5
14379 ac_status=$?
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } 2>conftest.err; then
14382 soname=conftest
14383 lib=conftest
14384 libobjs=conftest.$ac_objext
14385 deplibs=
14386 wl=$lt_prog_compiler_wl_F77
14387 compiler_flags=-v
14388 linker_flags=-v
14389 verstring=
14390 output_objdir=.
14391 libname=conftest
14392 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14393 allow_undefined_flag_F77=
14394 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14395 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14396 ac_status=$?
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }
14399 then
14400 archive_cmds_need_lc_F77=no
14401 else
14402 archive_cmds_need_lc_F77=yes
14403 fi
14404 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14405 else
14406 cat conftest.err 1>&5
14407 fi
14408 $rm conftest*
14409 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14410echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14411 ;;
14412 esac
14413 fi
14414 ;;
14415esac
14416
14417echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14418echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14419library_names_spec=
14420libname_spec='lib$name'
14421soname_spec=
14422shrext=".so"
14423postinstall_cmds=
14424postuninstall_cmds=
14425finish_cmds=
14426finish_eval=
14427shlibpath_var=
14428shlibpath_overrides_runpath=unknown
14429version_type=none
14430dynamic_linker="$host_os ld.so"
14431sys_lib_dlsearch_path_spec="/lib /usr/lib"
14432if test "$GCC" = yes; then
14433 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14434 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14435 # if the path contains ";" then we assume it to be the separator
14436 # otherwise default to the standard path separator (i.e. ":") - it is
14437 # assumed that no part of a normal pathname contains ";" but that should
14438 # okay in the real world where ";" in dirpaths is itself problematic.
14439 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14440 else
14441 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14442 fi
14443else
14444 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14445fi
14446need_lib_prefix=unknown
14447hardcode_into_libs=no
14448
14449# when you set need_version to no, make sure it does not cause -set_version
14450# flags to be left without arguments
14451need_version=unknown
14452
14453case $host_os in
14454aix3*)
14455 version_type=linux
14456 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14457 shlibpath_var=LIBPATH
14458
14459 # AIX 3 has no versioning support, so we append a major version to the name.
14460 soname_spec='${libname}${release}${shared_ext}$major'
14461 ;;
14462
14463aix4* | aix5*)
14464 version_type=linux
14465 need_lib_prefix=no
14466 need_version=no
14467 hardcode_into_libs=yes
14468 if test "$host_cpu" = ia64; then
14469 # AIX 5 supports IA64
14470 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14471 shlibpath_var=LD_LIBRARY_PATH
14472 else
14473 # With GCC up to 2.95.x, collect2 would create an import file
14474 # for dependence libraries. The import file would start with
14475 # the line `#! .'. This would cause the generated library to
14476 # depend on `.', always an invalid library. This was fixed in
14477 # development snapshots of GCC prior to 3.0.
14478 case $host_os in
14479 aix4 | aix4.[01] | aix4.[01].*)
14480 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14481 echo ' yes '
14482 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14483 :
14484 else
14485 can_build_shared=no
14486 fi
14487 ;;
14488 esac
14489 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14490 # soname into executable. Probably we can add versioning support to
14491 # collect2, so additional links can be useful in future.
14492 if test "$aix_use_runtimelinking" = yes; then
14493 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14494 # instead of lib<name>.a to let people know that these are not
14495 # typical AIX shared libraries.
14496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14497 else
14498 # We preserve .a as extension for shared libraries through AIX4.2
14499 # and later when we are not doing run time linking.
14500 library_names_spec='${libname}${release}.a $libname.a'
14501 soname_spec='${libname}${release}${shared_ext}$major'
14502 fi
14503 shlibpath_var=LIBPATH
14504 fi
14505 ;;
14506
14507amigaos*)
14508 library_names_spec='$libname.ixlibrary $libname.a'
14509 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14510 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'
14511 ;;
14512
14513beos*)
14514 library_names_spec='${libname}${shared_ext}'
14515 dynamic_linker="$host_os ld.so"
14516 shlibpath_var=LIBRARY_PATH
14517 ;;
14518
14519bsdi4*)
14520 version_type=linux
14521 need_version=no
14522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14523 soname_spec='${libname}${release}${shared_ext}$major'
14524 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14525 shlibpath_var=LD_LIBRARY_PATH
14526 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14527 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14528 # the default ld.so.conf also contains /usr/contrib/lib and
14529 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14530 # libtool to hard-code these into programs
14531 ;;
14532
14533cygwin* | mingw* | pw32*)
14534 version_type=windows
14535 shrext=".dll"
14536 need_version=no
14537 need_lib_prefix=no
14538
14539 case $GCC,$host_os in
14540 yes,cygwin* | yes,mingw* | yes,pw32*)
14541 library_names_spec='$libname.dll.a'
14542 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14543 postinstall_cmds='base_file=`basename \${file}`~
14544 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14545 dldir=$destdir/`dirname \$dlpath`~
14546 test -d \$dldir || mkdir -p \$dldir~
14547 $install_prog $dir/$dlname \$dldir/$dlname'
14548 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14549 dlpath=$dir/\$dldll~
14550 $rm \$dlpath'
14551 shlibpath_overrides_runpath=yes
14552
14553 case $host_os in
14554 cygwin*)
14555 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14556 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14557 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14558 ;;
14559 mingw*)
14560 # MinGW DLLs use traditional 'lib' prefix
14561 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14562 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14563 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14564 # It is most probably a Windows format PATH printed by
14565 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14566 # path with ; separators, and with drive letters. We can handle the
14567 # drive letters (cygwin fileutils understands them), so leave them,
14568 # especially as we might pass files found there to a mingw objdump,
14569 # which wouldn't understand a cygwinified path. Ahh.
14570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14571 else
14572 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14573 fi
14574 ;;
14575 pw32*)
14576 # pw32 DLLs use 'pw' prefix rather than 'lib'
14577 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14578 ;;
14579 esac
14580 ;;
14581
14582 *)
14583 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14584 ;;
14585 esac
14586 dynamic_linker='Win32 ld.exe'
14587 # FIXME: first we should search . and the directory the executable is in
14588 shlibpath_var=PATH
14589 ;;
14590
14591darwin* | rhapsody*)
14592 dynamic_linker="$host_os dyld"
14593 version_type=darwin
14594 need_lib_prefix=no
14595 need_version=no
14596 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14597 soname_spec='${libname}${release}${major}$shared_ext'
14598 shlibpath_overrides_runpath=yes
14599 shlibpath_var=DYLD_LIBRARY_PATH
14600 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14601 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14602 if test "$GCC" = yes; then
14603 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"`
14604 else
14605 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14606 fi
14607 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14608 ;;
14609
14610dgux*)
14611 version_type=linux
14612 need_lib_prefix=no
14613 need_version=no
14614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14615 soname_spec='${libname}${release}${shared_ext}$major'
14616 shlibpath_var=LD_LIBRARY_PATH
14617 ;;
14618
14619freebsd1*)
14620 dynamic_linker=no
14621 ;;
14622
14623kfreebsd*-gnu)
14624 version_type=linux
14625 need_lib_prefix=no
14626 need_version=no
14627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14628 soname_spec='${libname}${release}${shared_ext}$major'
14629 shlibpath_var=LD_LIBRARY_PATH
14630 shlibpath_overrides_runpath=no
14631 hardcode_into_libs=yes
14632 dynamic_linker='GNU ld.so'
14633 ;;
14634
14635freebsd*)
14636 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14637 version_type=freebsd-$objformat
14638 case $version_type in
14639 freebsd-elf*)
14640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14641 need_version=no
14642 need_lib_prefix=no
14643 ;;
14644 freebsd-*)
14645 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14646 need_version=yes
14647 ;;
14648 esac
14649 shlibpath_var=LD_LIBRARY_PATH
14650 case $host_os in
14651 freebsd2*)
14652 shlibpath_overrides_runpath=yes
14653 ;;
14654 freebsd3.01* | freebsdelf3.01*)
14655 shlibpath_overrides_runpath=yes
14656 hardcode_into_libs=yes
14657 ;;
14658 *) # from 3.2 on
14659 shlibpath_overrides_runpath=no
14660 hardcode_into_libs=yes
14661 ;;
14662 esac
14663 ;;
14664
14665gnu*)
14666 version_type=linux
14667 need_lib_prefix=no
14668 need_version=no
14669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14670 soname_spec='${libname}${release}${shared_ext}$major'
14671 shlibpath_var=LD_LIBRARY_PATH
14672 hardcode_into_libs=yes
14673 ;;
14674
14675hpux9* | hpux10* | hpux11*)
14676 # Give a soname corresponding to the major version so that dld.sl refuses to
14677 # link against other versions.
14678 version_type=sunos
14679 need_lib_prefix=no
14680 need_version=no
14681 case "$host_cpu" in
14682 ia64*)
14683 shrext='.so'
14684 hardcode_into_libs=yes
14685 dynamic_linker="$host_os dld.so"
14686 shlibpath_var=LD_LIBRARY_PATH
14687 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14689 soname_spec='${libname}${release}${shared_ext}$major'
14690 if test "X$HPUX_IA64_MODE" = X32; then
14691 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14692 else
14693 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14694 fi
14695 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14696 ;;
14697 hppa*64*)
14698 shrext='.sl'
14699 hardcode_into_libs=yes
14700 dynamic_linker="$host_os dld.sl"
14701 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14702 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14704 soname_spec='${libname}${release}${shared_ext}$major'
14705 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14706 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14707 ;;
14708 *)
14709 shrext='.sl'
14710 dynamic_linker="$host_os dld.sl"
14711 shlibpath_var=SHLIB_PATH
14712 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14714 soname_spec='${libname}${release}${shared_ext}$major'
14715 ;;
14716 esac
14717 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14718 postinstall_cmds='chmod 555 $lib'
14719 ;;
14720
14721irix5* | irix6* | nonstopux*)
14722 case $host_os in
14723 nonstopux*) version_type=nonstopux ;;
14724 *)
14725 if test "$lt_cv_prog_gnu_ld" = yes; then
14726 version_type=linux
14727 else
14728 version_type=irix
14729 fi ;;
14730 esac
14731 need_lib_prefix=no
14732 need_version=no
14733 soname_spec='${libname}${release}${shared_ext}$major'
14734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14735 case $host_os in
14736 irix5* | nonstopux*)
14737 libsuff= shlibsuff=
14738 ;;
14739 *)
14740 case $LD in # libtool.m4 will add one of these switches to LD
14741 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14742 libsuff= shlibsuff= libmagic=32-bit;;
14743 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14744 libsuff=32 shlibsuff=N32 libmagic=N32;;
14745 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14746 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14747 *) libsuff= shlibsuff= libmagic=never-match;;
14748 esac
14749 ;;
14750 esac
14751 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14752 shlibpath_overrides_runpath=no
14753 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14754 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14755 hardcode_into_libs=yes
14756 ;;
14757
14758# No shared lib support for Linux oldld, aout, or coff.
14759linux*oldld* | linux*aout* | linux*coff*)
14760 dynamic_linker=no
14761 ;;
14762
14763# This must be Linux ELF.
14764linux*)
14765 version_type=linux
14766 need_lib_prefix=no
14767 need_version=no
14768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14769 soname_spec='${libname}${release}${shared_ext}$major'
14770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14771 shlibpath_var=LD_LIBRARY_PATH
14772 shlibpath_overrides_runpath=no
14773 # This implies no fast_install, which is unacceptable.
14774 # Some rework will be needed to allow for fast_install
14775 # before this can be enabled.
14776 hardcode_into_libs=yes
14777
14778 # /usr/X11R6/lib and /usr/local/lib are common enough...
14779 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
14780
14781 # We used to test for /lib/ld.so.1 and disable shared libraries on
14782 # powerpc, because MkLinux only supported shared libraries with the
14783 # GNU dynamic linker. Since this was broken with cross compilers,
14784 # most powerpc-linux boxes support dynamic linking these days and
14785 # people can always --disable-shared, the test was removed, and we
14786 # assume the GNU/Linux dynamic linker is in use.
14787 dynamic_linker='GNU/Linux ld.so'
14788 ;;
14789
14790knetbsd*-gnu)
14791 version_type=linux
14792 need_lib_prefix=no
14793 need_version=no
14794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14795 soname_spec='${libname}${release}${shared_ext}$major'
14796 shlibpath_var=LD_LIBRARY_PATH
14797 shlibpath_overrides_runpath=no
14798 hardcode_into_libs=yes
14799 dynamic_linker='GNU ld.so'
14800 ;;
14801
14802netbsd*)
14803 version_type=sunos
14804 need_lib_prefix=no
14805 need_version=no
14806 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14809 dynamic_linker='NetBSD (a.out) ld.so'
14810 else
14811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14812 soname_spec='${libname}${release}${shared_ext}$major'
14813 dynamic_linker='NetBSD ld.elf_so'
14814 fi
14815 shlibpath_var=LD_LIBRARY_PATH
14816 shlibpath_overrides_runpath=yes
14817 hardcode_into_libs=yes
14818 ;;
14819
14820newsos6)
14821 version_type=linux
14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14823 shlibpath_var=LD_LIBRARY_PATH
14824 shlibpath_overrides_runpath=yes
14825 ;;
14826
14827nto-qnx*)
14828 version_type=linux
14829 need_lib_prefix=no
14830 need_version=no
14831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14832 soname_spec='${libname}${release}${shared_ext}$major'
14833 shlibpath_var=LD_LIBRARY_PATH
14834 shlibpath_overrides_runpath=yes
14835 ;;
14836
14837openbsd*)
14838 version_type=sunos
14839 need_lib_prefix=no
14840 need_version=yes
14841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14843 shlibpath_var=LD_LIBRARY_PATH
14844 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14845 case $host_os in
14846 openbsd2.[89] | openbsd2.[89].*)
14847 shlibpath_overrides_runpath=no
14848 ;;
14849 *)
14850 shlibpath_overrides_runpath=yes
14851 ;;
14852 esac
14853 else
14854 shlibpath_overrides_runpath=yes
14855 fi
14856 ;;
14857
14858os2*)
14859 libname_spec='$name'
14860 shrext=".dll"
14861 need_lib_prefix=no
14862 library_names_spec='$libname${shared_ext} $libname.a'
14863 dynamic_linker='OS/2 ld.exe'
14864 shlibpath_var=LIBPATH
14865 ;;
14866
14867osf3* | osf4* | osf5*)
14868 version_type=osf
14869 need_lib_prefix=no
14870 need_version=no
14871 soname_spec='${libname}${release}${shared_ext}$major'
14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873 shlibpath_var=LD_LIBRARY_PATH
14874 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14875 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14876 ;;
14877
14878sco3.2v5*)
14879 version_type=osf
14880 soname_spec='${libname}${release}${shared_ext}$major'
14881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14882 shlibpath_var=LD_LIBRARY_PATH
14883 ;;
14884
14885solaris*)
14886 version_type=linux
14887 need_lib_prefix=no
14888 need_version=no
14889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14890 soname_spec='${libname}${release}${shared_ext}$major'
14891 shlibpath_var=LD_LIBRARY_PATH
14892 shlibpath_overrides_runpath=yes
14893 hardcode_into_libs=yes
14894 # ldd complains unless libraries are executable
14895 postinstall_cmds='chmod +x $lib'
14896 ;;
14897
14898sunos4*)
14899 version_type=sunos
14900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14901 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14902 shlibpath_var=LD_LIBRARY_PATH
14903 shlibpath_overrides_runpath=yes
14904 if test "$with_gnu_ld" = yes; then
14905 need_lib_prefix=no
14906 fi
14907 need_version=yes
14908 ;;
14909
14910sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14911 version_type=linux
14912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14913 soname_spec='${libname}${release}${shared_ext}$major'
14914 shlibpath_var=LD_LIBRARY_PATH
14915 case $host_vendor in
14916 sni)
14917 shlibpath_overrides_runpath=no
14918 need_lib_prefix=no
14919 export_dynamic_flag_spec='${wl}-Blargedynsym'
14920 runpath_var=LD_RUN_PATH
14921 ;;
14922 siemens)
14923 need_lib_prefix=no
14924 ;;
14925 motorola)
14926 need_lib_prefix=no
14927 need_version=no
14928 shlibpath_overrides_runpath=no
14929 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14930 ;;
14931 esac
14932 ;;
14933
14934sysv4*MP*)
14935 if test -d /usr/nec ;then
14936 version_type=linux
14937 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14938 soname_spec='$libname${shared_ext}.$major'
14939 shlibpath_var=LD_LIBRARY_PATH
14940 fi
14941 ;;
14942
14943uts4*)
14944 version_type=linux
14945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946 soname_spec='${libname}${release}${shared_ext}$major'
14947 shlibpath_var=LD_LIBRARY_PATH
14948 ;;
14949
14950*)
14951 dynamic_linker=no
14952 ;;
14953esac
14954echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14955echo "${ECHO_T}$dynamic_linker" >&6
14956test "$dynamic_linker" = no && can_build_shared=no
14957
14958echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14959echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14960hardcode_action_F77=
14961if test -n "$hardcode_libdir_flag_spec_F77" || \
14962 test -n "$runpath_var F77" || \
14963 test "X$hardcode_automatic_F77"="Xyes" ; then
14964
14965 # We can hardcode non-existant directories.
14966 if test "$hardcode_direct_F77" != no &&
14967 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14968 # have to relink, otherwise we might link with an installed library
14969 # when we should be linking with a yet-to-be-installed one
14970 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14971 test "$hardcode_minus_L_F77" != no; then
14972 # Linking always hardcodes the temporary library directory.
14973 hardcode_action_F77=relink
14974 else
14975 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14976 hardcode_action_F77=immediate
14977 fi
14978else
14979 # We cannot hardcode anything, or else we can only hardcode existing
14980 # directories.
14981 hardcode_action_F77=unsupported
14982fi
14983echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14984echo "${ECHO_T}$hardcode_action_F77" >&6
14985
14986if test "$hardcode_action_F77" = relink; then
14987 # Fast installation is not supported
14988 enable_fast_install=no
14989elif test "$shlibpath_overrides_runpath" = yes ||
14990 test "$enable_shared" = no; then
14991 # Fast installation is not necessary
14992 enable_fast_install=needless
14993fi
14994
14995striplib=
14996old_striplib=
14997echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14998echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14999if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15000 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15001 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15002 echo "$as_me:$LINENO: result: yes" >&5
15003echo "${ECHO_T}yes" >&6
15004else
15005# FIXME - insert some real tests, host_os isn't really good enough
15006 case $host_os in
15007 darwin*)
15008 if test -n "$STRIP" ; then
15009 striplib="$STRIP -x"
15010 echo "$as_me:$LINENO: result: yes" >&5
15011echo "${ECHO_T}yes" >&6
15012 else
15013 echo "$as_me:$LINENO: result: no" >&5
15014echo "${ECHO_T}no" >&6
15015fi
15016 ;;
15017 *)
15018 echo "$as_me:$LINENO: result: no" >&5
15019echo "${ECHO_T}no" >&6
15020 ;;
15021 esac
15022fi
15023
15024
15025
15026# The else clause should only fire when bootstrapping the
15027# libtool distribution, otherwise you forgot to ship ltmain.sh
15028# with your package, and you will get complaints that there are
15029# no rules to generate ltmain.sh.
15030if test -f "$ltmain"; then
15031 # See if we are running on zsh, and set the options which allow our commands through
15032 # without removal of \ escapes.
15033 if test -n "${ZSH_VERSION+set}" ; then
15034 setopt NO_GLOB_SUBST
15035 fi
15036 # Now quote all the things that may contain metacharacters while being
15037 # careful not to overquote the AC_SUBSTed values. We take copies of the
15038 # variables and quote the copies for generation of the libtool script.
15039 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15040 SED SHELL STRIP \
15041 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15042 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15043 deplibs_check_method reload_flag reload_cmds need_locks \
15044 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15045 lt_cv_sys_global_symbol_to_c_name_address \
15046 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15047 old_postinstall_cmds old_postuninstall_cmds \
15048 compiler_F77 \
15049 CC_F77 \
15050 LD_F77 \
15051 lt_prog_compiler_wl_F77 \
15052 lt_prog_compiler_pic_F77 \
15053 lt_prog_compiler_static_F77 \
15054 lt_prog_compiler_no_builtin_flag_F77 \
15055 export_dynamic_flag_spec_F77 \
15056 thread_safe_flag_spec_F77 \
15057 whole_archive_flag_spec_F77 \
15058 enable_shared_with_static_runtimes_F77 \
15059 old_archive_cmds_F77 \
15060 old_archive_from_new_cmds_F77 \
15061 predep_objects_F77 \
15062 postdep_objects_F77 \
15063 predeps_F77 \
15064 postdeps_F77 \
15065 compiler_lib_search_path_F77 \
15066 archive_cmds_F77 \
15067 archive_expsym_cmds_F77 \
15068 postinstall_cmds_F77 \
15069 postuninstall_cmds_F77 \
15070 old_archive_from_expsyms_cmds_F77 \
15071 allow_undefined_flag_F77 \
15072 no_undefined_flag_F77 \
15073 export_symbols_cmds_F77 \
15074 hardcode_libdir_flag_spec_F77 \
15075 hardcode_libdir_flag_spec_ld_F77 \
15076 hardcode_libdir_separator_F77 \
15077 hardcode_automatic_F77 \
15078 module_cmds_F77 \
15079 module_expsym_cmds_F77 \
15080 lt_cv_prog_compiler_c_o_F77 \
15081 exclude_expsyms_F77 \
15082 include_expsyms_F77; do
15083
15084 case $var in
15085 old_archive_cmds_F77 | \
15086 old_archive_from_new_cmds_F77 | \
15087 archive_cmds_F77 | \
15088 archive_expsym_cmds_F77 | \
15089 module_cmds_F77 | \
15090 module_expsym_cmds_F77 | \
15091 old_archive_from_expsyms_cmds_F77 | \
15092 export_symbols_cmds_F77 | \
15093 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15094 postinstall_cmds | postuninstall_cmds | \
15095 old_postinstall_cmds | old_postuninstall_cmds | \
15096 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15097 # Double-quote double-evaled strings.
15098 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15099 ;;
15100 *)
15101 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15102 ;;
15103 esac
15104 done
15105
15106 case $lt_echo in
15107 *'\$0 --fallback-echo"')
15108 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15109 ;;
15110 esac
15111
15112cfgfile="$ofile"
15113
15114 cat <<__EOF__ >> "$cfgfile"
15115# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15116
15117# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15118
15119# Shell to use when invoking shell scripts.
15120SHELL=$lt_SHELL
15121
15122# Whether or not to build shared libraries.
15123build_libtool_libs=$enable_shared
15124
15125# Whether or not to build static libraries.
15126build_old_libs=$enable_static
15127
15128# Whether or not to add -lc for building shared libraries.
15129build_libtool_need_lc=$archive_cmds_need_lc_F77
15130
15131# Whether or not to disallow shared libs when runtime libs are static
15132allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15133
15134# Whether or not to optimize for fast installation.
15135fast_install=$enable_fast_install
15136
15137# The host system.
15138host_alias=$host_alias
15139host=$host
15140
15141# An echo program that does not interpret backslashes.
15142echo=$lt_echo
15143
15144# The archiver.
15145AR=$lt_AR
15146AR_FLAGS=$lt_AR_FLAGS
15147
15148# A C compiler.
15149LTCC=$lt_LTCC
15150
15151# A language-specific compiler.
15152CC=$lt_compiler_F77
15153
15154# Is the compiler the GNU C compiler?
15155with_gcc=$GCC_F77
15156
15157# An ERE matcher.
15158EGREP=$lt_EGREP
15159
15160# The linker used to build libraries.
15161LD=$lt_LD_F77
15162
15163# Whether we need hard or soft links.
15164LN_S=$lt_LN_S
15165
15166# A BSD-compatible nm program.
15167NM=$lt_NM
15168
15169# A symbol stripping program
15170STRIP=$lt_STRIP
15171
15172# Used to examine libraries when file_magic_cmd begins "file"
15173MAGIC_CMD=$MAGIC_CMD
15174
15175# Used on cygwin: DLL creation program.
15176DLLTOOL="$DLLTOOL"
15177
15178# Used on cygwin: object dumper.
15179OBJDUMP="$OBJDUMP"
15180
15181# Used on cygwin: assembler.
15182AS="$AS"
15183
15184# The name of the directory that contains temporary libtool files.
15185objdir=$objdir
15186
15187# How to create reloadable object files.
15188reload_flag=$lt_reload_flag
15189reload_cmds=$lt_reload_cmds
15190
15191# How to pass a linker flag through the compiler.
15192wl=$lt_lt_prog_compiler_wl_F77
15193
15194# Object file suffix (normally "o").
15195objext="$ac_objext"
15196
15197# Old archive suffix (normally "a").
15198libext="$libext"
15199
15200# Shared library suffix (normally ".so").
15201shrext='$shrext'
15202
15203# Executable file suffix (normally "").
15204exeext="$exeext"
15205
15206# Additional compiler flags for building library objects.
15207pic_flag=$lt_lt_prog_compiler_pic_F77
15208pic_mode=$pic_mode
15209
15210# What is the maximum length of a command?
15211max_cmd_len=$lt_cv_sys_max_cmd_len
15212
15213# Does compiler simultaneously support -c and -o options?
15214compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15215
15216# Must we lock files when doing compilation ?
15217need_locks=$lt_need_locks
15218
15219# Do we need the lib prefix for modules?
15220need_lib_prefix=$need_lib_prefix
15221
15222# Do we need a version for libraries?
15223need_version=$need_version
15224
15225# Whether dlopen is supported.
15226dlopen_support=$enable_dlopen
15227
15228# Whether dlopen of programs is supported.
15229dlopen_self=$enable_dlopen_self
15230
15231# Whether dlopen of statically linked programs is supported.
15232dlopen_self_static=$enable_dlopen_self_static
15233
15234# Compiler flag to prevent dynamic linking.
15235link_static_flag=$lt_lt_prog_compiler_static_F77
15236
15237# Compiler flag to turn off builtin functions.
15238no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15239
15240# Compiler flag to allow reflexive dlopens.
15241export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15242
15243# Compiler flag to generate shared objects directly from archives.
15244whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15245
15246# Compiler flag to generate thread-safe objects.
15247thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15248
15249# Library versioning type.
15250version_type=$version_type
15251
15252# Format of library name prefix.
15253libname_spec=$lt_libname_spec
15254
15255# List of archive names. First name is the real one, the rest are links.
15256# The last name is the one that the linker finds with -lNAME.
15257library_names_spec=$lt_library_names_spec
15258
15259# The coded name of the library, if different from the real name.
15260soname_spec=$lt_soname_spec
15261
15262# Commands used to build and install an old-style archive.
15263RANLIB=$lt_RANLIB
15264old_archive_cmds=$lt_old_archive_cmds_F77
15265old_postinstall_cmds=$lt_old_postinstall_cmds
15266old_postuninstall_cmds=$lt_old_postuninstall_cmds
15267
15268# Create an old-style archive from a shared archive.
15269old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15270
15271# Create a temporary old-style archive to link instead of a shared archive.
15272old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15273
15274# Commands used to build and install a shared archive.
15275archive_cmds=$lt_archive_cmds_F77
15276archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15277postinstall_cmds=$lt_postinstall_cmds
15278postuninstall_cmds=$lt_postuninstall_cmds
15279
15280# Commands used to build a loadable module (assumed same as above if empty)
15281module_cmds=$lt_module_cmds_F77
15282module_expsym_cmds=$lt_module_expsym_cmds_F77
15283
15284# Commands to strip libraries.
15285old_striplib=$lt_old_striplib
15286striplib=$lt_striplib
15287
15288# Dependencies to place before the objects being linked to create a
15289# shared library.
15290predep_objects=$lt_predep_objects_F77
15291
15292# Dependencies to place after the objects being linked to create a
15293# shared library.
15294postdep_objects=$lt_postdep_objects_F77
15295
15296# Dependencies to place before the objects being linked to create a
15297# shared library.
15298predeps=$lt_predeps_F77
15299
15300# Dependencies to place after the objects being linked to create a
15301# shared library.
15302postdeps=$lt_postdeps_F77
15303
15304# The library search path used internally by the compiler when linking
15305# a shared library.
15306compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15307
15308# Method to check whether dependent libraries are shared objects.
15309deplibs_check_method=$lt_deplibs_check_method
15310
15311# Command to use when deplibs_check_method == file_magic.
15312file_magic_cmd=$lt_file_magic_cmd
15313
15314# Flag that allows shared libraries with undefined symbols to be built.
15315allow_undefined_flag=$lt_allow_undefined_flag_F77
15316
15317# Flag that forces no undefined symbols.
15318no_undefined_flag=$lt_no_undefined_flag_F77
15319
15320# Commands used to finish a libtool library installation in a directory.
15321finish_cmds=$lt_finish_cmds
15322
15323# Same as above, but a single script fragment to be evaled but not shown.
15324finish_eval=$lt_finish_eval
15325
15326# Take the output of nm and produce a listing of raw symbols and C names.
15327global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15328
15329# Transform the output of nm in a proper C declaration
15330global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15331
15332# Transform the output of nm in a C name address pair
15333global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15334
15335# This is the shared library runtime path variable.
15336runpath_var=$runpath_var
15337
15338# This is the shared library path variable.
15339shlibpath_var=$shlibpath_var
15340
15341# Is shlibpath searched before the hard-coded library search path?
15342shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15343
15344# How to hardcode a shared library path into an executable.
15345hardcode_action=$hardcode_action_F77
15346
15347# Whether we should hardcode library paths into libraries.
15348hardcode_into_libs=$hardcode_into_libs
15349
15350# Flag to hardcode \$libdir into a binary during linking.
15351# This must work even if \$libdir does not exist.
15352hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15353
15354# If ld is used when linking, flag to hardcode \$libdir into
15355# a binary during linking. This must work even if \$libdir does
15356# not exist.
15357hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15358
15359# Whether we need a single -rpath flag with a separated argument.
15360hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15361
15362# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15363# resulting binary.
15364hardcode_direct=$hardcode_direct_F77
15365
15366# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15367# resulting binary.
15368hardcode_minus_L=$hardcode_minus_L_F77
15369
15370# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15371# the resulting binary.
15372hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15373
15374# Set to yes if building a shared library automatically hardcodes DIR into the library
15375# and all subsequent libraries and executables linked against it.
15376hardcode_automatic=$hardcode_automatic_F77
15377
15378# Variables whose values should be saved in libtool wrapper scripts and
15379# restored at relink time.
15380variables_saved_for_relink="$variables_saved_for_relink"
15381
15382# Whether libtool must link a program against all its dependency libraries.
15383link_all_deplibs=$link_all_deplibs_F77
15384
15385# Compile-time system search path for libraries
15386sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15387
15388# Run-time system search path for libraries
15389sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15390
15391# Fix the shell variable \$srcfile for the compiler.
15392fix_srcfile_path="$fix_srcfile_path_F77"
15393
15394# Set to yes if exported symbols are required.
15395always_export_symbols=$always_export_symbols_F77
15396
15397# The commands to list exported symbols.
15398export_symbols_cmds=$lt_export_symbols_cmds_F77
15399
15400# The commands to extract the exported symbol list from a shared archive.
15401extract_expsyms_cmds=$lt_extract_expsyms_cmds
15402
15403# Symbols that should not be listed in the preloaded symbols.
15404exclude_expsyms=$lt_exclude_expsyms_F77
15405
15406# Symbols that must always be exported.
15407include_expsyms=$lt_include_expsyms_F77
15408
15409# ### END LIBTOOL TAG CONFIG: $tagname
15410
15411__EOF__
15412
15413
15414else
15415 # If there is no Makefile yet, we rely on a make rule to execute
15416 # `config.status --recheck' to rerun these tests and create the
15417 # libtool script then.
15418 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15419 if test -f "$ltmain_in"; then
15420 test -f Makefile && make "$ltmain"
15421 fi
15422fi
15423
15424
15425ac_ext=c
15426ac_cpp='$CPP $CPPFLAGS'
15427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15429ac_compiler_gnu=$ac_cv_c_compiler_gnu
15430
15431CC="$lt_save_CC"
15432
15433 else
15434 tagname=""
15435 fi
15436 ;;
15437
15438 GCJ)
15439 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15440
15441
15442
15443# Source file extension for Java test sources.
15444ac_ext=java
15445
15446# Object file extension for compiled Java test sources.
15447objext=o
15448objext_GCJ=$objext
15449
15450# Code to be used in simple compile tests
15451lt_simple_compile_test_code="class foo {}\n"
15452
15453# Code to be used in simple link tests
15454lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15455
15456# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15457
15458# If no C compiler was specified, use CC.
15459LTCC=${LTCC-"$CC"}
15460
15461# Allow CC to be a program name with arguments.
15462compiler=$CC
15463
15464
15465# Allow CC to be a program name with arguments.
15466lt_save_CC="$CC"
15467CC=${GCJ-"gcj"}
15468compiler=$CC
15469compiler_GCJ=$CC
15470
15471# GCJ did not exist at the time GCC didn't implicitly link libc in.
15472archive_cmds_need_lc_GCJ=no
15473
15474
15475lt_prog_compiler_no_builtin_flag_GCJ=
15476
15477if test "$GCC" = yes; then
15478 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15479
15480
15481echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15482echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15483if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15484 echo $ECHO_N "(cached) $ECHO_C" >&6
15485else
15486 lt_cv_prog_compiler_rtti_exceptions=no
15487 ac_outfile=conftest.$ac_objext
15488 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15489 lt_compiler_flag="-fno-rtti -fno-exceptions"
15490 # Insert the option either (1) after the last *FLAGS variable, or
15491 # (2) before a word containing "conftest.", or (3) at the end.
15492 # Note that $ac_compile itself does not contain backslashes and begins
15493 # with a dollar sign (not a hyphen), so the echo should work correctly.
15494 # The option is referenced via a variable to avoid confusing sed.
15495 lt_compile=`echo "$ac_compile" | $SED \
15496 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15498 -e 's:$: $lt_compiler_flag:'`
hp.com!davidmb1d369a2003-11-26 18:59:24 +000015499 (eval echo "\"\$as_me:15499: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015500 (eval "$lt_compile" 2>conftest.err)
15501 ac_status=$?
15502 cat conftest.err >&5
hp.com!davidmb1d369a2003-11-26 18:59:24 +000015503 echo "$as_me:15503: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015504 if (exit $ac_status) && test -s "$ac_outfile"; then
15505 # The compiler can only warn and ignore the option if not recognized
15506 # So say no if there are warnings
15507 if test ! -s conftest.err; then
15508 lt_cv_prog_compiler_rtti_exceptions=yes
15509 fi
15510 fi
15511 $rm conftest*
15512
15513fi
15514echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15515echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15516
15517if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15518 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15519else
15520 :
15521fi
15522
15523fi
15524
15525lt_prog_compiler_wl_GCJ=
15526lt_prog_compiler_pic_GCJ=
15527lt_prog_compiler_static_GCJ=
15528
15529echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15530echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15531
15532 if test "$GCC" = yes; then
15533 lt_prog_compiler_wl_GCJ='-Wl,'
15534 lt_prog_compiler_static_GCJ='-static'
15535
15536 case $host_os in
15537 aix*)
15538 # All AIX code is PIC.
15539 if test "$host_cpu" = ia64; then
15540 # AIX 5 now supports IA64 processor
15541 lt_prog_compiler_static_GCJ='-Bstatic'
15542 fi
15543 ;;
15544
15545 amigaos*)
15546 # FIXME: we need at least 68020 code to build shared libraries, but
15547 # adding the `-m68020' flag to GCC prevents building anything better,
15548 # like `-m68040'.
15549 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15550 ;;
15551
15552 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15553 # PIC is the default for these OSes.
15554 ;;
15555
15556 mingw* | pw32* | os2*)
15557 # This hack is so that the source file can tell whether it is being
15558 # built for inclusion in a dll (and should export symbols for example).
15559 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15560 ;;
15561
15562 darwin* | rhapsody*)
15563 # PIC is the default on this platform
15564 # Common symbols not allowed in MH_DYLIB files
15565 lt_prog_compiler_pic_GCJ='-fno-common'
15566 ;;
15567
15568 msdosdjgpp*)
15569 # Just because we use GCC doesn't mean we suddenly get shared libraries
15570 # on systems that don't support them.
15571 lt_prog_compiler_can_build_shared_GCJ=no
15572 enable_shared=no
15573 ;;
15574
15575 sysv4*MP*)
15576 if test -d /usr/nec; then
15577 lt_prog_compiler_pic_GCJ=-Kconform_pic
15578 fi
15579 ;;
15580
15581 hpux*)
15582 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15583 # not for PA HP-UX.
15584 case "$host_cpu" in
15585 hppa*64*|ia64*)
15586 # +Z the default
15587 ;;
15588 *)
15589 lt_prog_compiler_pic_GCJ='-fPIC'
15590 ;;
15591 esac
15592 ;;
15593
15594 *)
15595 lt_prog_compiler_pic_GCJ='-fPIC'
15596 ;;
15597 esac
15598 else
15599 # PORTME Check for flag to pass linker flags through the system compiler.
15600 case $host_os in
15601 aix*)
15602 lt_prog_compiler_wl_GCJ='-Wl,'
15603 if test "$host_cpu" = ia64; then
15604 # AIX 5 now supports IA64 processor
15605 lt_prog_compiler_static_GCJ='-Bstatic'
15606 else
15607 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15608 fi
15609 ;;
15610
15611 mingw* | pw32* | os2*)
15612 # This hack is so that the source file can tell whether it is being
15613 # built for inclusion in a dll (and should export symbols for example).
15614 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15615 ;;
15616
15617 hpux9* | hpux10* | hpux11*)
15618 lt_prog_compiler_wl_GCJ='-Wl,'
15619 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15620 # not for PA HP-UX.
15621 case "$host_cpu" in
15622 hppa*64*|ia64*)
15623 # +Z the default
15624 ;;
15625 *)
15626 lt_prog_compiler_pic_GCJ='+Z'
15627 ;;
15628 esac
15629 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15630 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15631 ;;
15632
15633 irix5* | irix6* | nonstopux*)
15634 lt_prog_compiler_wl_GCJ='-Wl,'
15635 # PIC (with -KPIC) is the default.
15636 lt_prog_compiler_static_GCJ='-non_shared'
15637 ;;
15638
15639 newsos6)
15640 lt_prog_compiler_pic_GCJ='-KPIC'
15641 lt_prog_compiler_static_GCJ='-Bstatic'
15642 ;;
15643
15644 linux*)
15645 case $CC in
15646 icc* | ecc*)
15647 lt_prog_compiler_wl_GCJ='-Wl,'
15648 lt_prog_compiler_pic_GCJ='-KPIC'
15649 lt_prog_compiler_static_GCJ='-static'
15650 ;;
15651 ccc*)
15652 lt_prog_compiler_wl_GCJ='-Wl,'
15653 # All Alpha code is PIC.
15654 lt_prog_compiler_static_GCJ='-non_shared'
15655 ;;
15656 esac
15657 ;;
15658
15659 osf3* | osf4* | osf5*)
15660 lt_prog_compiler_wl_GCJ='-Wl,'
15661 # All OSF/1 code is PIC.
15662 lt_prog_compiler_static_GCJ='-non_shared'
15663 ;;
15664
15665 sco3.2v5*)
15666 lt_prog_compiler_pic_GCJ='-Kpic'
15667 lt_prog_compiler_static_GCJ='-dn'
15668 ;;
15669
15670 solaris*)
15671 lt_prog_compiler_wl_GCJ='-Wl,'
15672 lt_prog_compiler_pic_GCJ='-KPIC'
15673 lt_prog_compiler_static_GCJ='-Bstatic'
15674 ;;
15675
15676 sunos4*)
15677 lt_prog_compiler_wl_GCJ='-Qoption ld '
15678 lt_prog_compiler_pic_GCJ='-PIC'
15679 lt_prog_compiler_static_GCJ='-Bstatic'
15680 ;;
15681
15682 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15683 lt_prog_compiler_wl_GCJ='-Wl,'
15684 lt_prog_compiler_pic_GCJ='-KPIC'
15685 lt_prog_compiler_static_GCJ='-Bstatic'
15686 ;;
15687
15688 sysv4*MP*)
15689 if test -d /usr/nec ;then
15690 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15691 lt_prog_compiler_static_GCJ='-Bstatic'
15692 fi
15693 ;;
15694
15695 uts4*)
15696 lt_prog_compiler_pic_GCJ='-pic'
15697 lt_prog_compiler_static_GCJ='-Bstatic'
15698 ;;
15699
15700 *)
15701 lt_prog_compiler_can_build_shared_GCJ=no
15702 ;;
15703 esac
15704 fi
15705
15706echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15707echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15708
15709#
15710# Check to make sure the PIC flag actually works.
15711#
15712if test -n "$lt_prog_compiler_pic_GCJ"; then
15713
15714echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15715echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15716if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15718else
15719 lt_prog_compiler_pic_works_GCJ=no
15720 ac_outfile=conftest.$ac_objext
15721 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15722 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15723 # Insert the option either (1) after the last *FLAGS variable, or
15724 # (2) before a word containing "conftest.", or (3) at the end.
15725 # Note that $ac_compile itself does not contain backslashes and begins
15726 # with a dollar sign (not a hyphen), so the echo should work correctly.
15727 # The option is referenced via a variable to avoid confusing sed.
15728 lt_compile=`echo "$ac_compile" | $SED \
15729 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15731 -e 's:$: $lt_compiler_flag:'`
hp.com!davidmb1d369a2003-11-26 18:59:24 +000015732 (eval echo "\"\$as_me:15732: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015733 (eval "$lt_compile" 2>conftest.err)
15734 ac_status=$?
15735 cat conftest.err >&5
hp.com!davidmb1d369a2003-11-26 18:59:24 +000015736 echo "$as_me:15736: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015737 if (exit $ac_status) && test -s "$ac_outfile"; then
15738 # The compiler can only warn and ignore the option if not recognized
15739 # So say no if there are warnings
15740 if test ! -s conftest.err; then
15741 lt_prog_compiler_pic_works_GCJ=yes
15742 fi
15743 fi
15744 $rm conftest*
15745
15746fi
15747echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15748echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15749
15750if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15751 case $lt_prog_compiler_pic_GCJ in
15752 "" | " "*) ;;
15753 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15754 esac
15755else
15756 lt_prog_compiler_pic_GCJ=
15757 lt_prog_compiler_can_build_shared_GCJ=no
15758fi
15759
15760fi
15761case "$host_os" in
15762 # For platforms which do not support PIC, -DPIC is meaningless:
15763 *djgpp*)
15764 lt_prog_compiler_pic_GCJ=
15765 ;;
15766 *)
15767 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15768 ;;
15769esac
15770
15771echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15772echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15773if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15774 echo $ECHO_N "(cached) $ECHO_C" >&6
15775else
15776 lt_cv_prog_compiler_c_o_GCJ=no
15777 $rm -r conftest 2>/dev/null
15778 mkdir conftest
15779 cd conftest
15780 mkdir out
15781 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15782
15783 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15784 # that will create temporary files in the current directory regardless of
15785 # the output directory. Thus, making CWD read-only will cause this test
15786 # to fail, enabling locking or at least warning the user not to do parallel
15787 # builds.
15788 chmod -w .
15789
15790 lt_compiler_flag="-o out/conftest2.$ac_objext"
15791 # Insert the option either (1) after the last *FLAGS variable, or
15792 # (2) before a word containing "conftest.", or (3) at the end.
15793 # Note that $ac_compile itself does not contain backslashes and begins
15794 # with a dollar sign (not a hyphen), so the echo should work correctly.
15795 lt_compile=`echo "$ac_compile" | $SED \
15796 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15798 -e 's:$: $lt_compiler_flag:'`
hp.com!davidmb1d369a2003-11-26 18:59:24 +000015799 (eval echo "\"\$as_me:15799: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015800 (eval "$lt_compile" 2>out/conftest.err)
15801 ac_status=$?
15802 cat out/conftest.err >&5
hp.com!davidmb1d369a2003-11-26 18:59:24 +000015803 echo "$as_me:15803: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015804 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15805 then
15806 # The compiler can only warn and ignore the option if not recognized
15807 # So say no if there are warnings
15808 if test ! -s out/conftest.err; then
15809 lt_cv_prog_compiler_c_o_GCJ=yes
15810 fi
15811 fi
15812 chmod u+w .
15813 $rm conftest*
15814 # SGI C++ compiler will create directory out/ii_files/ for
15815 # template instantiation
15816 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15817 $rm out/* && rmdir out
15818 cd ..
15819 rmdir conftest
15820 $rm conftest*
15821
15822fi
15823echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15824echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15825
15826
15827hard_links="nottested"
15828if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15829 # do not overwrite the value of need_locks provided by the user
15830 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15831echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15832 hard_links=yes
15833 $rm conftest*
15834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15835 touch conftest.a
15836 ln conftest.a conftest.b 2>&5 || hard_links=no
15837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15838 echo "$as_me:$LINENO: result: $hard_links" >&5
15839echo "${ECHO_T}$hard_links" >&6
15840 if test "$hard_links" = no; then
15841 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15842echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15843 need_locks=warn
15844 fi
15845else
15846 need_locks=no
15847fi
15848
15849echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15850echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15851
15852 runpath_var=
15853 allow_undefined_flag_GCJ=
15854 enable_shared_with_static_runtimes_GCJ=no
15855 archive_cmds_GCJ=
15856 archive_expsym_cmds_GCJ=
15857 old_archive_From_new_cmds_GCJ=
15858 old_archive_from_expsyms_cmds_GCJ=
15859 export_dynamic_flag_spec_GCJ=
15860 whole_archive_flag_spec_GCJ=
15861 thread_safe_flag_spec_GCJ=
15862 hardcode_libdir_flag_spec_GCJ=
15863 hardcode_libdir_flag_spec_ld_GCJ=
15864 hardcode_libdir_separator_GCJ=
15865 hardcode_direct_GCJ=no
15866 hardcode_minus_L_GCJ=no
15867 hardcode_shlibpath_var_GCJ=unsupported
15868 link_all_deplibs_GCJ=unknown
15869 hardcode_automatic_GCJ=no
15870 module_cmds_GCJ=
15871 module_expsym_cmds_GCJ=
15872 always_export_symbols_GCJ=no
15873 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15874 # include_expsyms should be a list of space-separated symbols to be *always*
15875 # included in the symbol list
15876 include_expsyms_GCJ=
15877 # exclude_expsyms can be an extended regexp of symbols to exclude
15878 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15879 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15880 # as well as any symbol that contains `d'.
15881 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15882 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15883 # platforms (ab)use it in PIC code, but their linkers get confused if
15884 # the symbol is explicitly referenced. Since portable code cannot
15885 # rely on this symbol name, it's probably fine to never include it in
15886 # preloaded symbol tables.
15887 extract_expsyms_cmds=
15888
15889 case $host_os in
15890 cygwin* | mingw* | pw32*)
15891 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15892 # When not using gcc, we currently assume that we are using
15893 # Microsoft Visual C++.
15894 if test "$GCC" != yes; then
15895 with_gnu_ld=no
15896 fi
15897 ;;
15898 openbsd*)
15899 with_gnu_ld=no
15900 ;;
15901 esac
15902
15903 ld_shlibs_GCJ=yes
15904 if test "$with_gnu_ld" = yes; then
15905 # If archive_cmds runs LD, not CC, wlarc should be empty
15906 wlarc='${wl}'
15907
15908 # See if GNU ld supports shared libraries.
15909 case $host_os in
15910 aix3* | aix4* | aix5*)
15911 # On AIX/PPC, the GNU linker is very broken
15912 if test "$host_cpu" != ia64; then
15913 ld_shlibs_GCJ=no
15914 cat <<EOF 1>&2
15915
15916*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15917*** to be unable to reliably create shared libraries on AIX.
15918*** Therefore, libtool is disabling shared libraries support. If you
15919*** really care for shared libraries, you may want to modify your PATH
15920*** so that a non-GNU linker is found, and then restart.
15921
15922EOF
15923 fi
15924 ;;
15925
15926 amigaos*)
15927 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)'
15928 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15929 hardcode_minus_L_GCJ=yes
15930
15931 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15932 # that the semantics of dynamic libraries on AmigaOS, at least up
15933 # to version 4, is to share data among multiple programs linked
15934 # with the same dynamic library. Since this doesn't match the
15935 # behavior of shared libraries on other platforms, we can't use
15936 # them.
15937 ld_shlibs_GCJ=no
15938 ;;
15939
15940 beos*)
15941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15942 allow_undefined_flag_GCJ=unsupported
15943 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15944 # support --undefined. This deserves some investigation. FIXME
15945 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15946 else
15947 ld_shlibs_GCJ=no
15948 fi
15949 ;;
15950
15951 cygwin* | mingw* | pw32*)
15952 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15953 # as there is no search path for DLLs.
15954 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15955 allow_undefined_flag_GCJ=unsupported
15956 always_export_symbols_GCJ=no
15957 enable_shared_with_static_runtimes_GCJ=yes
15958 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15959
15960 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15961 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15962 # If the export-symbols file already is a .def file (1st line
15963 # is EXPORTS), use it as is; otherwise, prepend...
15964 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15965 cp $export_symbols $output_objdir/$soname.def;
15966 else
15967 echo EXPORTS > $output_objdir/$soname.def;
15968 cat $export_symbols >> $output_objdir/$soname.def;
15969 fi~
15970 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15971 else
15972 ld_shlibs=no
15973 fi
15974 ;;
15975
15976 netbsd*)
15977 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15978 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15979 wlarc=
15980 else
15981 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15982 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15983 fi
15984 ;;
15985
15986 solaris* | sysv5*)
15987 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15988 ld_shlibs_GCJ=no
15989 cat <<EOF 1>&2
15990
15991*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15992*** create shared libraries on Solaris systems. Therefore, libtool
15993*** is disabling shared libraries support. We urge you to upgrade GNU
15994*** binutils to release 2.9.1 or newer. Another option is to modify
15995*** your PATH or compiler configuration so that the native linker is
15996*** used, and then restart.
15997
15998EOF
15999 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16000 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16001 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16002 else
16003 ld_shlibs_GCJ=no
16004 fi
16005 ;;
16006
16007 sunos4*)
16008 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16009 wlarc=
16010 hardcode_direct_GCJ=yes
16011 hardcode_shlibpath_var_GCJ=no
16012 ;;
16013
16014 linux*)
16015 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16016 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16017 archive_cmds_GCJ="$tmp_archive_cmds"
16018 supports_anon_versioning=no
16019 case `$LD -v 2>/dev/null` in
16020 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16021 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16022 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16023 *\ 2.11.*) ;; # other 2.11 versions
16024 *) supports_anon_versioning=yes ;;
16025 esac
16026 if test $supports_anon_versioning = yes; then
16027 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16028cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16029$echo "local: *; };" >> $output_objdir/$libname.ver~
16030 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16031 else
16032 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16033 fi
16034 else
16035 ld_shlibs_GCJ=no
16036 fi
16037 ;;
16038
16039 *)
16040 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16041 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16042 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16043 else
16044 ld_shlibs_GCJ=no
16045 fi
16046 ;;
16047 esac
16048
16049 if test "$ld_shlibs_GCJ" = yes; then
16050 runpath_var=LD_RUN_PATH
16051 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16052 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16053 # ancient GNU ld didn't support --whole-archive et. al.
16054 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16055 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16056 else
16057 whole_archive_flag_spec_GCJ=
16058 fi
16059 fi
16060 else
16061 # PORTME fill in a description of your system's linker (not GNU ld)
16062 case $host_os in
16063 aix3*)
16064 allow_undefined_flag_GCJ=unsupported
16065 always_export_symbols_GCJ=yes
16066 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'
16067 # Note: this linker hardcodes the directories in LIBPATH if there
16068 # are no directories specified by -L.
16069 hardcode_minus_L_GCJ=yes
16070 if test "$GCC" = yes && test -z "$link_static_flag"; then
16071 # Neither direct hardcoding nor static linking is supported with a
16072 # broken collect2.
16073 hardcode_direct_GCJ=unsupported
16074 fi
16075 ;;
16076
16077 aix4* | aix5*)
16078 if test "$host_cpu" = ia64; then
16079 # On IA64, the linker does run time linking by default, so we don't
16080 # have to do anything special.
16081 aix_use_runtimelinking=no
16082 exp_sym_flag='-Bexport'
16083 no_entry_flag=""
16084 else
16085 # If we're using GNU nm, then we don't want the "-C" option.
16086 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16087 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16088 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'
16089 else
16090 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'
16091 fi
16092 aix_use_runtimelinking=no
16093
16094 # Test if we are trying to use run time linking or normal
16095 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16096 # need to do runtime linking.
16097 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16098 for ld_flag in $LDFLAGS; do
16099 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16100 aix_use_runtimelinking=yes
16101 break
16102 fi
16103 done
16104 esac
16105
16106 exp_sym_flag='-bexport'
16107 no_entry_flag='-bnoentry'
16108 fi
16109
16110 # When large executables or shared objects are built, AIX ld can
16111 # have problems creating the table of contents. If linking a library
16112 # or program results in "error TOC overflow" add -mminimal-toc to
16113 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16114 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16115
16116 archive_cmds_GCJ=''
16117 hardcode_direct_GCJ=yes
16118 hardcode_libdir_separator_GCJ=':'
16119 link_all_deplibs_GCJ=yes
16120
16121 if test "$GCC" = yes; then
16122 case $host_os in aix4.012|aix4.012.*)
16123 # We only want to do this on AIX 4.2 and lower, the check
16124 # below for broken collect2 doesn't work under 4.3+
16125 collect2name=`${CC} -print-prog-name=collect2`
16126 if test -f "$collect2name" && \
16127 strings "$collect2name" | grep resolve_lib_name >/dev/null
16128 then
16129 # We have reworked collect2
16130 hardcode_direct_GCJ=yes
16131 else
16132 # We have old collect2
16133 hardcode_direct_GCJ=unsupported
16134 # It fails to find uninstalled libraries when the uninstalled
16135 # path is not listed in the libpath. Setting hardcode_minus_L
16136 # to unsupported forces relinking
16137 hardcode_minus_L_GCJ=yes
16138 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16139 hardcode_libdir_separator_GCJ=
16140 fi
16141 esac
16142 shared_flag='-shared'
16143 else
16144 # not using gcc
16145 if test "$host_cpu" = ia64; then
16146 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16147 # chokes on -Wl,-G. The following line is correct:
16148 shared_flag='-G'
16149 else
16150 if test "$aix_use_runtimelinking" = yes; then
16151 shared_flag='${wl}-G'
16152 else
16153 shared_flag='${wl}-bM:SRE'
16154 fi
16155 fi
16156 fi
16157
16158 # It seems that -bexpall does not export symbols beginning with
16159 # underscore (_), so it is better to generate a list of symbols to export.
16160 always_export_symbols_GCJ=yes
16161 if test "$aix_use_runtimelinking" = yes; then
16162 # Warning - without using the other runtime loading flags (-brtl),
16163 # -berok will link without error, but may produce a broken library.
16164 allow_undefined_flag_GCJ='-berok'
16165 # Determine the default libpath from the value encoded in an empty executable.
16166 cat >conftest.$ac_ext <<_ACEOF
16167/* confdefs.h. */
16168_ACEOF
16169cat confdefs.h >>conftest.$ac_ext
16170cat >>conftest.$ac_ext <<_ACEOF
16171/* end confdefs.h. */
16172
16173int
16174main ()
16175{
16176
16177 ;
16178 return 0;
16179}
16180_ACEOF
16181rm -f conftest.$ac_objext conftest$ac_exeext
16182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16183 (eval $ac_link) 2>conftest.er1
16184 ac_status=$?
16185 grep -v '^ *+' conftest.er1 >conftest.err
16186 rm -f conftest.er1
16187 cat conftest.err >&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); } &&
16190 { ac_try='test -z "$ac_c_werror_flag"
16191 || test ! -s conftest.err'
16192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16193 (eval $ac_try) 2>&5
16194 ac_status=$?
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); }; } &&
16197 { ac_try='test -s conftest$ac_exeext'
16198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16200 ac_status=$?
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; }; then
16203
16204aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16205}'`
16206# Check for a 64-bit object if we didn't find anything.
16207if 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; }
16208}'`; fi
16209else
16210 echo "$as_me: failed program was:" >&5
16211sed 's/^/| /' conftest.$ac_ext >&5
16212
16213fi
16214rm -f conftest.err conftest.$ac_objext \
16215 conftest$ac_exeext conftest.$ac_ext
16216if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16217
16218 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16219 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"
16220 else
16221 if test "$host_cpu" = ia64; then
16222 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16223 allow_undefined_flag_GCJ="-z nodefs"
16224 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"
16225 else
16226 # Determine the default libpath from the value encoded in an empty executable.
16227 cat >conftest.$ac_ext <<_ACEOF
16228/* confdefs.h. */
16229_ACEOF
16230cat confdefs.h >>conftest.$ac_ext
16231cat >>conftest.$ac_ext <<_ACEOF
16232/* end confdefs.h. */
16233
16234int
16235main ()
16236{
16237
16238 ;
16239 return 0;
16240}
16241_ACEOF
16242rm -f conftest.$ac_objext conftest$ac_exeext
16243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16244 (eval $ac_link) 2>conftest.er1
16245 ac_status=$?
16246 grep -v '^ *+' conftest.er1 >conftest.err
16247 rm -f conftest.er1
16248 cat conftest.err >&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } &&
16251 { ac_try='test -z "$ac_c_werror_flag"
16252 || test ! -s conftest.err'
16253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254 (eval $ac_try) 2>&5
16255 ac_status=$?
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; } &&
16258 { ac_try='test -s conftest$ac_exeext'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16261 ac_status=$?
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; }; then
16264
16265aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16266}'`
16267# Check for a 64-bit object if we didn't find anything.
16268if 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; }
16269}'`; fi
16270else
16271 echo "$as_me: failed program was:" >&5
16272sed 's/^/| /' conftest.$ac_ext >&5
16273
16274fi
16275rm -f conftest.err conftest.$ac_objext \
16276 conftest$ac_exeext conftest.$ac_ext
16277if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16278
16279 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16280 # Warning - without using the other run time loading flags,
16281 # -berok will link without error, but may produce a broken library.
16282 no_undefined_flag_GCJ=' ${wl}-bernotok'
16283 allow_undefined_flag_GCJ=' ${wl}-berok'
16284 # -bexpall does not export symbols beginning with underscore (_)
16285 always_export_symbols_GCJ=yes
16286 # Exported symbols can be pulled into shared objects from archives
16287 whole_archive_flag_spec_GCJ=' '
16288 archive_cmds_need_lc_GCJ=yes
16289 # This is similar to how AIX traditionally builds it's shared libraries.
16290 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'
16291 fi
16292 fi
16293 ;;
16294
16295 amigaos*)
16296 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)'
16297 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16298 hardcode_minus_L_GCJ=yes
16299 # see comment about different semantics on the GNU ld section
16300 ld_shlibs_GCJ=no
16301 ;;
16302
16303 bsdi4*)
16304 export_dynamic_flag_spec_GCJ=-rdynamic
16305 ;;
16306
16307 cygwin* | mingw* | pw32*)
16308 # When not using gcc, we currently assume that we are using
16309 # Microsoft Visual C++.
16310 # hardcode_libdir_flag_spec is actually meaningless, as there is
16311 # no search path for DLLs.
16312 hardcode_libdir_flag_spec_GCJ=' '
16313 allow_undefined_flag_GCJ=unsupported
16314 # Tell ltmain to make .lib files, not .a files.
16315 libext=lib
16316 # Tell ltmain to make .dll files, not .so files.
16317 shrext=".dll"
16318 # FIXME: Setting linknames here is a bad hack.
16319 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16320 # The linker will automatically build a .lib file if we build a DLL.
16321 old_archive_From_new_cmds_GCJ='true'
16322 # FIXME: Should let the user specify the lib program.
16323 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16324 fix_srcfile_path='`cygpath -w "$srcfile"`'
16325 enable_shared_with_static_runtimes_GCJ=yes
16326 ;;
16327
16328 darwin* | rhapsody*)
16329 if test "$GXX" = yes ; then
16330 archive_cmds_need_lc_GCJ=no
16331 case "$host_os" in
16332 rhapsody* | darwin1.[012])
16333 allow_undefined_flag_GCJ='-undefined suppress'
16334 ;;
16335 *) # Darwin 1.3 on
16336 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16337 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16338 else
16339 case ${MACOSX_DEPLOYMENT_TARGET} in
16340 10.[012])
16341 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16342 ;;
16343 10.*)
16344 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16345 ;;
16346 esac
16347 fi
16348 ;;
16349 esac
16350 lt_int_apple_cc_single_mod=no
16351 output_verbose_link_cmd='echo'
16352 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16353 lt_int_apple_cc_single_mod=yes
16354 fi
16355 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16356 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16357 else
16358 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'
16359 fi
16360 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16361 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16362 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16363 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}'
16364 else
16365 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}'
16366 fi
16367 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}'
16368 hardcode_direct_GCJ=no
16369 hardcode_automatic_GCJ=yes
16370 hardcode_shlibpath_var_GCJ=unsupported
16371 whole_archive_flag_spec_GCJ='-all_load $convenience'
16372 link_all_deplibs_GCJ=yes
16373 else
16374 ld_shlibs_GCJ=no
16375 fi
16376 ;;
16377
16378 dgux*)
16379 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16380 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16381 hardcode_shlibpath_var_GCJ=no
16382 ;;
16383
16384 freebsd1*)
16385 ld_shlibs_GCJ=no
16386 ;;
16387
16388 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16389 # support. Future versions do this automatically, but an explicit c++rt0.o
16390 # does not break anything, and helps significantly (at the cost of a little
16391 # extra space).
16392 freebsd2.2*)
16393 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16394 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16395 hardcode_direct_GCJ=yes
16396 hardcode_shlibpath_var_GCJ=no
16397 ;;
16398
16399 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16400 freebsd2*)
16401 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16402 hardcode_direct_GCJ=yes
16403 hardcode_minus_L_GCJ=yes
16404 hardcode_shlibpath_var_GCJ=no
16405 ;;
16406
16407 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16408 freebsd* | kfreebsd*-gnu)
16409 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16410 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16411 hardcode_direct_GCJ=yes
16412 hardcode_shlibpath_var_GCJ=no
16413 ;;
16414
16415 hpux9*)
16416 if test "$GCC" = yes; then
16417 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'
16418 else
16419 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'
16420 fi
16421 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16422 hardcode_libdir_separator_GCJ=:
16423 hardcode_direct_GCJ=yes
16424
16425 # hardcode_minus_L: Not really in the search PATH,
16426 # but as the default location of the library.
16427 hardcode_minus_L_GCJ=yes
16428 export_dynamic_flag_spec_GCJ='${wl}-E'
16429 ;;
16430
16431 hpux10* | hpux11*)
16432 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16433 case "$host_cpu" in
16434 hppa*64*|ia64*)
16435 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16436 ;;
16437 *)
16438 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16439 ;;
16440 esac
16441 else
16442 case "$host_cpu" in
16443 hppa*64*|ia64*)
16444 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16445 ;;
16446 *)
16447 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16448 ;;
16449 esac
16450 fi
16451 if test "$with_gnu_ld" = no; then
16452 case "$host_cpu" in
16453 hppa*64*)
16454 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16455 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16456 hardcode_libdir_separator_GCJ=:
16457 hardcode_direct_GCJ=no
16458 hardcode_shlibpath_var_GCJ=no
16459 ;;
16460 ia64*)
16461 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16462 hardcode_direct_GCJ=no
16463 hardcode_shlibpath_var_GCJ=no
16464
16465 # hardcode_minus_L: Not really in the search PATH,
16466 # but as the default location of the library.
16467 hardcode_minus_L_GCJ=yes
16468 ;;
16469 *)
16470 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16471 hardcode_libdir_separator_GCJ=:
16472 hardcode_direct_GCJ=yes
16473 export_dynamic_flag_spec_GCJ='${wl}-E'
16474
16475 # hardcode_minus_L: Not really in the search PATH,
16476 # but as the default location of the library.
16477 hardcode_minus_L_GCJ=yes
16478 ;;
16479 esac
16480 fi
16481 ;;
16482
16483 irix5* | irix6* | nonstopux*)
16484 if test "$GCC" = yes; then
16485 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'
16486 else
16487 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'
16488 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16489 fi
16490 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16491 hardcode_libdir_separator_GCJ=:
16492 link_all_deplibs_GCJ=yes
16493 ;;
16494
16495 netbsd*)
16496 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16497 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16498 else
16499 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16500 fi
16501 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16502 hardcode_direct_GCJ=yes
16503 hardcode_shlibpath_var_GCJ=no
16504 ;;
16505
16506 newsos6)
16507 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16508 hardcode_direct_GCJ=yes
16509 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16510 hardcode_libdir_separator_GCJ=:
16511 hardcode_shlibpath_var_GCJ=no
16512 ;;
16513
16514 openbsd*)
16515 hardcode_direct_GCJ=yes
16516 hardcode_shlibpath_var_GCJ=no
16517 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16518 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16519 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16520 export_dynamic_flag_spec_GCJ='${wl}-E'
16521 else
16522 case $host_os in
16523 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16524 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16525 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16526 ;;
16527 *)
16528 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16529 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16530 ;;
16531 esac
16532 fi
16533 ;;
16534
16535 os2*)
16536 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16537 hardcode_minus_L_GCJ=yes
16538 allow_undefined_flag_GCJ=unsupported
16539 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'
16540 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16541 ;;
16542
16543 osf3*)
16544 if test "$GCC" = yes; then
16545 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16546 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'
16547 else
16548 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16549 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'
16550 fi
16551 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16552 hardcode_libdir_separator_GCJ=:
16553 ;;
16554
16555 osf4* | osf5*) # as osf3* with the addition of -msym flag
16556 if test "$GCC" = yes; then
16557 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16558 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'
16559 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16560 else
16561 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16562 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'
16563 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~
16564 $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'
16565
16566 # Both c and cxx compiler support -rpath directly
16567 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16568 fi
16569 hardcode_libdir_separator_GCJ=:
16570 ;;
16571
16572 sco3.2v5*)
16573 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16574 hardcode_shlibpath_var_GCJ=no
16575 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16576 runpath_var=LD_RUN_PATH
16577 hardcode_runpath_var=yes
16578 ;;
16579
16580 solaris*)
16581 no_undefined_flag_GCJ=' -z text'
16582 if test "$GCC" = yes; then
16583 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16584 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16585 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16586 else
16587 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16588 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16589 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16590 fi
16591 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16592 hardcode_shlibpath_var_GCJ=no
16593 case $host_os in
16594 solaris2.[0-5] | solaris2.[0-5].*) ;;
16595 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16596 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16597 esac
16598 link_all_deplibs_GCJ=yes
16599 ;;
16600
16601 sunos4*)
16602 if test "x$host_vendor" = xsequent; then
16603 # Use $CC to link under sequent, because it throws in some extra .o
16604 # files that make .init and .fini sections work.
16605 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16606 else
16607 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16608 fi
16609 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16610 hardcode_direct_GCJ=yes
16611 hardcode_minus_L_GCJ=yes
16612 hardcode_shlibpath_var_GCJ=no
16613 ;;
16614
16615 sysv4)
16616 case $host_vendor in
16617 sni)
16618 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16619 hardcode_direct_GCJ=yes # is this really true???
16620 ;;
16621 siemens)
16622 ## LD is ld it makes a PLAMLIB
16623 ## CC just makes a GrossModule.
16624 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16625 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16626 hardcode_direct_GCJ=no
16627 ;;
16628 motorola)
16629 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16630 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16631 ;;
16632 esac
16633 runpath_var='LD_RUN_PATH'
16634 hardcode_shlibpath_var_GCJ=no
16635 ;;
16636
16637 sysv4.3*)
16638 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16639 hardcode_shlibpath_var_GCJ=no
16640 export_dynamic_flag_spec_GCJ='-Bexport'
16641 ;;
16642
16643 sysv4*MP*)
16644 if test -d /usr/nec; then
16645 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16646 hardcode_shlibpath_var_GCJ=no
16647 runpath_var=LD_RUN_PATH
16648 hardcode_runpath_var=yes
16649 ld_shlibs_GCJ=yes
16650 fi
16651 ;;
16652
16653 sysv4.2uw2*)
16654 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16655 hardcode_direct_GCJ=yes
16656 hardcode_minus_L_GCJ=no
16657 hardcode_shlibpath_var_GCJ=no
16658 hardcode_runpath_var=yes
16659 runpath_var=LD_RUN_PATH
16660 ;;
16661
16662 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16663 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16664 if test "$GCC" = yes; then
16665 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16666 else
16667 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16668 fi
16669 runpath_var='LD_RUN_PATH'
16670 hardcode_shlibpath_var_GCJ=no
16671 ;;
16672
16673 sysv5*)
16674 no_undefined_flag_GCJ=' -z text'
16675 # $CC -shared without GNU ld will not create a library from C++
16676 # object files and a static libstdc++, better avoid it by now
16677 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16678 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16679 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16680 hardcode_libdir_flag_spec_GCJ=
16681 hardcode_shlibpath_var_GCJ=no
16682 runpath_var='LD_RUN_PATH'
16683 ;;
16684
16685 uts4*)
16686 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16687 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16688 hardcode_shlibpath_var_GCJ=no
16689 ;;
16690
16691 *)
16692 ld_shlibs_GCJ=no
16693 ;;
16694 esac
16695 fi
16696
16697echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16698echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16699test "$ld_shlibs_GCJ" = no && can_build_shared=no
16700
16701variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16702if test "$GCC" = yes; then
16703 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16704fi
16705
16706#
16707# Do we need to explicitly link libc?
16708#
16709case "x$archive_cmds_need_lc_GCJ" in
16710x|xyes)
16711 # Assume -lc should be added
16712 archive_cmds_need_lc_GCJ=yes
16713
16714 if test "$enable_shared" = yes && test "$GCC" = yes; then
16715 case $archive_cmds_GCJ in
16716 *'~'*)
16717 # FIXME: we may have to deal with multi-command sequences.
16718 ;;
16719 '$CC '*)
16720 # Test whether the compiler implicitly links with -lc since on some
16721 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16722 # to ld, don't add -lc before -lgcc.
16723 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16724echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16725 $rm conftest*
16726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16727
16728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16729 (eval $ac_compile) 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } 2>conftest.err; then
16733 soname=conftest
16734 lib=conftest
16735 libobjs=conftest.$ac_objext
16736 deplibs=
16737 wl=$lt_prog_compiler_wl_GCJ
16738 compiler_flags=-v
16739 linker_flags=-v
16740 verstring=
16741 output_objdir=.
16742 libname=conftest
16743 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16744 allow_undefined_flag_GCJ=
16745 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16746 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }
16750 then
16751 archive_cmds_need_lc_GCJ=no
16752 else
16753 archive_cmds_need_lc_GCJ=yes
16754 fi
16755 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16756 else
16757 cat conftest.err 1>&5
16758 fi
16759 $rm conftest*
16760 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16761echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16762 ;;
16763 esac
16764 fi
16765 ;;
16766esac
16767
16768echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16769echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16770library_names_spec=
16771libname_spec='lib$name'
16772soname_spec=
16773shrext=".so"
16774postinstall_cmds=
16775postuninstall_cmds=
16776finish_cmds=
16777finish_eval=
16778shlibpath_var=
16779shlibpath_overrides_runpath=unknown
16780version_type=none
16781dynamic_linker="$host_os ld.so"
16782sys_lib_dlsearch_path_spec="/lib /usr/lib"
16783if test "$GCC" = yes; then
16784 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16785 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16786 # if the path contains ";" then we assume it to be the separator
16787 # otherwise default to the standard path separator (i.e. ":") - it is
16788 # assumed that no part of a normal pathname contains ";" but that should
16789 # okay in the real world where ";" in dirpaths is itself problematic.
16790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16791 else
16792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16793 fi
16794else
16795 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16796fi
16797need_lib_prefix=unknown
16798hardcode_into_libs=no
16799
16800# when you set need_version to no, make sure it does not cause -set_version
16801# flags to be left without arguments
16802need_version=unknown
16803
16804case $host_os in
16805aix3*)
16806 version_type=linux
16807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16808 shlibpath_var=LIBPATH
16809
16810 # AIX 3 has no versioning support, so we append a major version to the name.
16811 soname_spec='${libname}${release}${shared_ext}$major'
16812 ;;
16813
16814aix4* | aix5*)
16815 version_type=linux
16816 need_lib_prefix=no
16817 need_version=no
16818 hardcode_into_libs=yes
16819 if test "$host_cpu" = ia64; then
16820 # AIX 5 supports IA64
16821 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16822 shlibpath_var=LD_LIBRARY_PATH
16823 else
16824 # With GCC up to 2.95.x, collect2 would create an import file
16825 # for dependence libraries. The import file would start with
16826 # the line `#! .'. This would cause the generated library to
16827 # depend on `.', always an invalid library. This was fixed in
16828 # development snapshots of GCC prior to 3.0.
16829 case $host_os in
16830 aix4 | aix4.[01] | aix4.[01].*)
16831 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16832 echo ' yes '
16833 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16834 :
16835 else
16836 can_build_shared=no
16837 fi
16838 ;;
16839 esac
16840 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16841 # soname into executable. Probably we can add versioning support to
16842 # collect2, so additional links can be useful in future.
16843 if test "$aix_use_runtimelinking" = yes; then
16844 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16845 # instead of lib<name>.a to let people know that these are not
16846 # typical AIX shared libraries.
16847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16848 else
16849 # We preserve .a as extension for shared libraries through AIX4.2
16850 # and later when we are not doing run time linking.
16851 library_names_spec='${libname}${release}.a $libname.a'
16852 soname_spec='${libname}${release}${shared_ext}$major'
16853 fi
16854 shlibpath_var=LIBPATH
16855 fi
16856 ;;
16857
16858amigaos*)
16859 library_names_spec='$libname.ixlibrary $libname.a'
16860 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16861 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'
16862 ;;
16863
16864beos*)
16865 library_names_spec='${libname}${shared_ext}'
16866 dynamic_linker="$host_os ld.so"
16867 shlibpath_var=LIBRARY_PATH
16868 ;;
16869
16870bsdi4*)
16871 version_type=linux
16872 need_version=no
16873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874 soname_spec='${libname}${release}${shared_ext}$major'
16875 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16876 shlibpath_var=LD_LIBRARY_PATH
16877 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16878 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16879 # the default ld.so.conf also contains /usr/contrib/lib and
16880 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16881 # libtool to hard-code these into programs
16882 ;;
16883
16884cygwin* | mingw* | pw32*)
16885 version_type=windows
16886 shrext=".dll"
16887 need_version=no
16888 need_lib_prefix=no
16889
16890 case $GCC,$host_os in
16891 yes,cygwin* | yes,mingw* | yes,pw32*)
16892 library_names_spec='$libname.dll.a'
16893 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16894 postinstall_cmds='base_file=`basename \${file}`~
16895 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16896 dldir=$destdir/`dirname \$dlpath`~
16897 test -d \$dldir || mkdir -p \$dldir~
16898 $install_prog $dir/$dlname \$dldir/$dlname'
16899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16900 dlpath=$dir/\$dldll~
16901 $rm \$dlpath'
16902 shlibpath_overrides_runpath=yes
16903
16904 case $host_os in
16905 cygwin*)
16906 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16907 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16908 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16909 ;;
16910 mingw*)
16911 # MinGW DLLs use traditional 'lib' prefix
16912 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16913 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16914 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16915 # It is most probably a Windows format PATH printed by
16916 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16917 # path with ; separators, and with drive letters. We can handle the
16918 # drive letters (cygwin fileutils understands them), so leave them,
16919 # especially as we might pass files found there to a mingw objdump,
16920 # which wouldn't understand a cygwinified path. Ahh.
16921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16922 else
16923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16924 fi
16925 ;;
16926 pw32*)
16927 # pw32 DLLs use 'pw' prefix rather than 'lib'
16928 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16929 ;;
16930 esac
16931 ;;
16932
16933 *)
16934 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16935 ;;
16936 esac
16937 dynamic_linker='Win32 ld.exe'
16938 # FIXME: first we should search . and the directory the executable is in
16939 shlibpath_var=PATH
16940 ;;
16941
16942darwin* | rhapsody*)
16943 dynamic_linker="$host_os dyld"
16944 version_type=darwin
16945 need_lib_prefix=no
16946 need_version=no
16947 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16948 soname_spec='${libname}${release}${major}$shared_ext'
16949 shlibpath_overrides_runpath=yes
16950 shlibpath_var=DYLD_LIBRARY_PATH
16951 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16952 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16953 if test "$GCC" = yes; then
16954 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"`
16955 else
16956 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16957 fi
16958 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16959 ;;
16960
16961dgux*)
16962 version_type=linux
16963 need_lib_prefix=no
16964 need_version=no
16965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16966 soname_spec='${libname}${release}${shared_ext}$major'
16967 shlibpath_var=LD_LIBRARY_PATH
16968 ;;
16969
16970freebsd1*)
16971 dynamic_linker=no
16972 ;;
16973
16974kfreebsd*-gnu)
16975 version_type=linux
16976 need_lib_prefix=no
16977 need_version=no
16978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16979 soname_spec='${libname}${release}${shared_ext}$major'
16980 shlibpath_var=LD_LIBRARY_PATH
16981 shlibpath_overrides_runpath=no
16982 hardcode_into_libs=yes
16983 dynamic_linker='GNU ld.so'
16984 ;;
16985
16986freebsd*)
16987 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16988 version_type=freebsd-$objformat
16989 case $version_type in
16990 freebsd-elf*)
16991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16992 need_version=no
16993 need_lib_prefix=no
16994 ;;
16995 freebsd-*)
16996 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16997 need_version=yes
16998 ;;
16999 esac
17000 shlibpath_var=LD_LIBRARY_PATH
17001 case $host_os in
17002 freebsd2*)
17003 shlibpath_overrides_runpath=yes
17004 ;;
17005 freebsd3.01* | freebsdelf3.01*)
17006 shlibpath_overrides_runpath=yes
17007 hardcode_into_libs=yes
17008 ;;
17009 *) # from 3.2 on
17010 shlibpath_overrides_runpath=no
17011 hardcode_into_libs=yes
17012 ;;
17013 esac
17014 ;;
17015
17016gnu*)
17017 version_type=linux
17018 need_lib_prefix=no
17019 need_version=no
17020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17021 soname_spec='${libname}${release}${shared_ext}$major'
17022 shlibpath_var=LD_LIBRARY_PATH
17023 hardcode_into_libs=yes
17024 ;;
17025
17026hpux9* | hpux10* | hpux11*)
17027 # Give a soname corresponding to the major version so that dld.sl refuses to
17028 # link against other versions.
17029 version_type=sunos
17030 need_lib_prefix=no
17031 need_version=no
17032 case "$host_cpu" in
17033 ia64*)
17034 shrext='.so'
17035 hardcode_into_libs=yes
17036 dynamic_linker="$host_os dld.so"
17037 shlibpath_var=LD_LIBRARY_PATH
17038 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17040 soname_spec='${libname}${release}${shared_ext}$major'
17041 if test "X$HPUX_IA64_MODE" = X32; then
17042 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17043 else
17044 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17045 fi
17046 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17047 ;;
17048 hppa*64*)
17049 shrext='.sl'
17050 hardcode_into_libs=yes
17051 dynamic_linker="$host_os dld.sl"
17052 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17053 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055 soname_spec='${libname}${release}${shared_ext}$major'
17056 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17057 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17058 ;;
17059 *)
17060 shrext='.sl'
17061 dynamic_linker="$host_os dld.sl"
17062 shlibpath_var=SHLIB_PATH
17063 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17065 soname_spec='${libname}${release}${shared_ext}$major'
17066 ;;
17067 esac
17068 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17069 postinstall_cmds='chmod 555 $lib'
17070 ;;
17071
17072irix5* | irix6* | nonstopux*)
17073 case $host_os in
17074 nonstopux*) version_type=nonstopux ;;
17075 *)
17076 if test "$lt_cv_prog_gnu_ld" = yes; then
17077 version_type=linux
17078 else
17079 version_type=irix
17080 fi ;;
17081 esac
17082 need_lib_prefix=no
17083 need_version=no
17084 soname_spec='${libname}${release}${shared_ext}$major'
17085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17086 case $host_os in
17087 irix5* | nonstopux*)
17088 libsuff= shlibsuff=
17089 ;;
17090 *)
17091 case $LD in # libtool.m4 will add one of these switches to LD
17092 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17093 libsuff= shlibsuff= libmagic=32-bit;;
17094 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17095 libsuff=32 shlibsuff=N32 libmagic=N32;;
17096 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17097 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17098 *) libsuff= shlibsuff= libmagic=never-match;;
17099 esac
17100 ;;
17101 esac
17102 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17103 shlibpath_overrides_runpath=no
17104 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17105 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17106 hardcode_into_libs=yes
17107 ;;
17108
17109# No shared lib support for Linux oldld, aout, or coff.
17110linux*oldld* | linux*aout* | linux*coff*)
17111 dynamic_linker=no
17112 ;;
17113
17114# This must be Linux ELF.
17115linux*)
17116 version_type=linux
17117 need_lib_prefix=no
17118 need_version=no
17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17120 soname_spec='${libname}${release}${shared_ext}$major'
17121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17122 shlibpath_var=LD_LIBRARY_PATH
17123 shlibpath_overrides_runpath=no
17124 # This implies no fast_install, which is unacceptable.
17125 # Some rework will be needed to allow for fast_install
17126 # before this can be enabled.
17127 hardcode_into_libs=yes
17128
17129 # /usr/X11R6/lib and /usr/local/lib are common enough...
17130 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
17131
17132 # We used to test for /lib/ld.so.1 and disable shared libraries on
17133 # powerpc, because MkLinux only supported shared libraries with the
17134 # GNU dynamic linker. Since this was broken with cross compilers,
17135 # most powerpc-linux boxes support dynamic linking these days and
17136 # people can always --disable-shared, the test was removed, and we
17137 # assume the GNU/Linux dynamic linker is in use.
17138 dynamic_linker='GNU/Linux ld.so'
17139 ;;
17140
17141knetbsd*-gnu)
17142 version_type=linux
17143 need_lib_prefix=no
17144 need_version=no
17145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17146 soname_spec='${libname}${release}${shared_ext}$major'
17147 shlibpath_var=LD_LIBRARY_PATH
17148 shlibpath_overrides_runpath=no
17149 hardcode_into_libs=yes
17150 dynamic_linker='GNU ld.so'
17151 ;;
17152
17153netbsd*)
17154 version_type=sunos
17155 need_lib_prefix=no
17156 need_version=no
17157 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17160 dynamic_linker='NetBSD (a.out) ld.so'
17161 else
17162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17163 soname_spec='${libname}${release}${shared_ext}$major'
17164 dynamic_linker='NetBSD ld.elf_so'
17165 fi
17166 shlibpath_var=LD_LIBRARY_PATH
17167 shlibpath_overrides_runpath=yes
17168 hardcode_into_libs=yes
17169 ;;
17170
17171newsos6)
17172 version_type=linux
17173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17174 shlibpath_var=LD_LIBRARY_PATH
17175 shlibpath_overrides_runpath=yes
17176 ;;
17177
17178nto-qnx*)
17179 version_type=linux
17180 need_lib_prefix=no
17181 need_version=no
17182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17183 soname_spec='${libname}${release}${shared_ext}$major'
17184 shlibpath_var=LD_LIBRARY_PATH
17185 shlibpath_overrides_runpath=yes
17186 ;;
17187
17188openbsd*)
17189 version_type=sunos
17190 need_lib_prefix=no
17191 need_version=yes
17192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17193 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17194 shlibpath_var=LD_LIBRARY_PATH
17195 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17196 case $host_os in
17197 openbsd2.[89] | openbsd2.[89].*)
17198 shlibpath_overrides_runpath=no
17199 ;;
17200 *)
17201 shlibpath_overrides_runpath=yes
17202 ;;
17203 esac
17204 else
17205 shlibpath_overrides_runpath=yes
17206 fi
17207 ;;
17208
17209os2*)
17210 libname_spec='$name'
17211 shrext=".dll"
17212 need_lib_prefix=no
17213 library_names_spec='$libname${shared_ext} $libname.a'
17214 dynamic_linker='OS/2 ld.exe'
17215 shlibpath_var=LIBPATH
17216 ;;
17217
17218osf3* | osf4* | osf5*)
17219 version_type=osf
17220 need_lib_prefix=no
17221 need_version=no
17222 soname_spec='${libname}${release}${shared_ext}$major'
17223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17224 shlibpath_var=LD_LIBRARY_PATH
17225 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17226 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17227 ;;
17228
17229sco3.2v5*)
17230 version_type=osf
17231 soname_spec='${libname}${release}${shared_ext}$major'
17232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17233 shlibpath_var=LD_LIBRARY_PATH
17234 ;;
17235
17236solaris*)
17237 version_type=linux
17238 need_lib_prefix=no
17239 need_version=no
17240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17241 soname_spec='${libname}${release}${shared_ext}$major'
17242 shlibpath_var=LD_LIBRARY_PATH
17243 shlibpath_overrides_runpath=yes
17244 hardcode_into_libs=yes
17245 # ldd complains unless libraries are executable
17246 postinstall_cmds='chmod +x $lib'
17247 ;;
17248
17249sunos4*)
17250 version_type=sunos
17251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17252 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17253 shlibpath_var=LD_LIBRARY_PATH
17254 shlibpath_overrides_runpath=yes
17255 if test "$with_gnu_ld" = yes; then
17256 need_lib_prefix=no
17257 fi
17258 need_version=yes
17259 ;;
17260
17261sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17262 version_type=linux
17263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17264 soname_spec='${libname}${release}${shared_ext}$major'
17265 shlibpath_var=LD_LIBRARY_PATH
17266 case $host_vendor in
17267 sni)
17268 shlibpath_overrides_runpath=no
17269 need_lib_prefix=no
17270 export_dynamic_flag_spec='${wl}-Blargedynsym'
17271 runpath_var=LD_RUN_PATH
17272 ;;
17273 siemens)
17274 need_lib_prefix=no
17275 ;;
17276 motorola)
17277 need_lib_prefix=no
17278 need_version=no
17279 shlibpath_overrides_runpath=no
17280 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17281 ;;
17282 esac
17283 ;;
17284
17285sysv4*MP*)
17286 if test -d /usr/nec ;then
17287 version_type=linux
17288 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17289 soname_spec='$libname${shared_ext}.$major'
17290 shlibpath_var=LD_LIBRARY_PATH
17291 fi
17292 ;;
17293
17294uts4*)
17295 version_type=linux
17296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17297 soname_spec='${libname}${release}${shared_ext}$major'
17298 shlibpath_var=LD_LIBRARY_PATH
17299 ;;
17300
17301*)
17302 dynamic_linker=no
17303 ;;
17304esac
17305echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17306echo "${ECHO_T}$dynamic_linker" >&6
17307test "$dynamic_linker" = no && can_build_shared=no
17308
17309echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17310echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17311hardcode_action_GCJ=
17312if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17313 test -n "$runpath_var GCJ" || \
17314 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17315
17316 # We can hardcode non-existant directories.
17317 if test "$hardcode_direct_GCJ" != no &&
17318 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17319 # have to relink, otherwise we might link with an installed library
17320 # when we should be linking with a yet-to-be-installed one
17321 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17322 test "$hardcode_minus_L_GCJ" != no; then
17323 # Linking always hardcodes the temporary library directory.
17324 hardcode_action_GCJ=relink
17325 else
17326 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17327 hardcode_action_GCJ=immediate
17328 fi
17329else
17330 # We cannot hardcode anything, or else we can only hardcode existing
17331 # directories.
17332 hardcode_action_GCJ=unsupported
17333fi
17334echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17335echo "${ECHO_T}$hardcode_action_GCJ" >&6
17336
17337if test "$hardcode_action_GCJ" = relink; then
17338 # Fast installation is not supported
17339 enable_fast_install=no
17340elif test "$shlibpath_overrides_runpath" = yes ||
17341 test "$enable_shared" = no; then
17342 # Fast installation is not necessary
17343 enable_fast_install=needless
17344fi
17345
17346striplib=
17347old_striplib=
17348echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17349echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17350if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17351 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17352 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17353 echo "$as_me:$LINENO: result: yes" >&5
17354echo "${ECHO_T}yes" >&6
17355else
17356# FIXME - insert some real tests, host_os isn't really good enough
17357 case $host_os in
17358 darwin*)
17359 if test -n "$STRIP" ; then
17360 striplib="$STRIP -x"
17361 echo "$as_me:$LINENO: result: yes" >&5
17362echo "${ECHO_T}yes" >&6
17363 else
17364 echo "$as_me:$LINENO: result: no" >&5
17365echo "${ECHO_T}no" >&6
17366fi
17367 ;;
17368 *)
17369 echo "$as_me:$LINENO: result: no" >&5
17370echo "${ECHO_T}no" >&6
17371 ;;
17372 esac
17373fi
17374
17375if test "x$enable_dlopen" != xyes; then
17376 enable_dlopen=unknown
17377 enable_dlopen_self=unknown
17378 enable_dlopen_self_static=unknown
17379else
17380 lt_cv_dlopen=no
17381 lt_cv_dlopen_libs=
17382
17383 case $host_os in
17384 beos*)
17385 lt_cv_dlopen="load_add_on"
17386 lt_cv_dlopen_libs=
17387 lt_cv_dlopen_self=yes
17388 ;;
17389
17390 mingw* | pw32*)
17391 lt_cv_dlopen="LoadLibrary"
17392 lt_cv_dlopen_libs=
17393 ;;
17394
17395 cygwin*)
17396 lt_cv_dlopen="dlopen"
17397 lt_cv_dlopen_libs=
17398 ;;
17399
17400 darwin*)
17401 # if libdl is installed we need to link against it
17402 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17403echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17404if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17405 echo $ECHO_N "(cached) $ECHO_C" >&6
17406else
17407 ac_check_lib_save_LIBS=$LIBS
17408LIBS="-ldl $LIBS"
17409cat >conftest.$ac_ext <<_ACEOF
17410/* confdefs.h. */
17411_ACEOF
17412cat confdefs.h >>conftest.$ac_ext
17413cat >>conftest.$ac_ext <<_ACEOF
17414/* end confdefs.h. */
17415
17416/* Override any gcc2 internal prototype to avoid an error. */
17417#ifdef __cplusplus
17418extern "C"
17419#endif
17420/* We use char because int might match the return type of a gcc2
17421 builtin and then its argument prototype would still apply. */
17422char dlopen ();
17423int
17424main ()
17425{
17426dlopen ();
17427 ;
17428 return 0;
17429}
17430_ACEOF
17431rm -f conftest.$ac_objext conftest$ac_exeext
17432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17433 (eval $ac_link) 2>conftest.er1
17434 ac_status=$?
17435 grep -v '^ *+' conftest.er1 >conftest.err
17436 rm -f conftest.er1
17437 cat conftest.err >&5
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); } &&
17440 { ac_try='test -z "$ac_c_werror_flag"
17441 || test ! -s conftest.err'
17442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443 (eval $ac_try) 2>&5
17444 ac_status=$?
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; } &&
17447 { ac_try='test -s conftest$ac_exeext'
17448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449 (eval $ac_try) 2>&5
17450 ac_status=$?
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; }; then
17453 ac_cv_lib_dl_dlopen=yes
17454else
17455 echo "$as_me: failed program was:" >&5
17456sed 's/^/| /' conftest.$ac_ext >&5
17457
17458ac_cv_lib_dl_dlopen=no
17459fi
17460rm -f conftest.err conftest.$ac_objext \
17461 conftest$ac_exeext conftest.$ac_ext
17462LIBS=$ac_check_lib_save_LIBS
17463fi
17464echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17465echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17466if test $ac_cv_lib_dl_dlopen = yes; then
17467 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17468else
17469
17470 lt_cv_dlopen="dyld"
17471 lt_cv_dlopen_libs=
17472 lt_cv_dlopen_self=yes
17473
17474fi
17475
17476 ;;
17477
17478 *)
17479 echo "$as_me:$LINENO: checking for shl_load" >&5
17480echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17481if test "${ac_cv_func_shl_load+set}" = set; then
17482 echo $ECHO_N "(cached) $ECHO_C" >&6
17483else
17484 cat >conftest.$ac_ext <<_ACEOF
17485/* confdefs.h. */
17486_ACEOF
17487cat confdefs.h >>conftest.$ac_ext
17488cat >>conftest.$ac_ext <<_ACEOF
17489/* end confdefs.h. */
17490/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17492#define shl_load innocuous_shl_load
17493
17494/* System header to define __stub macros and hopefully few prototypes,
17495 which can conflict with char shl_load (); below.
17496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17497 <limits.h> exists even on freestanding compilers. */
17498
17499#ifdef __STDC__
17500# include <limits.h>
17501#else
17502# include <assert.h>
17503#endif
17504
17505#undef shl_load
17506
17507/* Override any gcc2 internal prototype to avoid an error. */
17508#ifdef __cplusplus
17509extern "C"
17510{
17511#endif
17512/* We use char because int might match the return type of a gcc2
17513 builtin and then its argument prototype would still apply. */
17514char shl_load ();
17515/* The GNU C library defines this for functions which it implements
17516 to always fail with ENOSYS. Some functions are actually named
17517 something starting with __ and the normal name is an alias. */
17518#if defined (__stub_shl_load) || defined (__stub___shl_load)
17519choke me
17520#else
17521char (*f) () = shl_load;
17522#endif
17523#ifdef __cplusplus
17524}
17525#endif
17526
17527int
17528main ()
17529{
17530return f != shl_load;
17531 ;
17532 return 0;
17533}
17534_ACEOF
17535rm -f conftest.$ac_objext conftest$ac_exeext
17536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17537 (eval $ac_link) 2>conftest.er1
17538 ac_status=$?
17539 grep -v '^ *+' conftest.er1 >conftest.err
17540 rm -f conftest.er1
17541 cat conftest.err >&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); } &&
17544 { ac_try='test -z "$ac_c_werror_flag"
17545 || test ! -s conftest.err'
17546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547 (eval $ac_try) 2>&5
17548 ac_status=$?
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; } &&
17551 { ac_try='test -s conftest$ac_exeext'
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17554 ac_status=$?
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; }; then
17557 ac_cv_func_shl_load=yes
17558else
17559 echo "$as_me: failed program was:" >&5
17560sed 's/^/| /' conftest.$ac_ext >&5
17561
17562ac_cv_func_shl_load=no
17563fi
17564rm -f conftest.err conftest.$ac_objext \
17565 conftest$ac_exeext conftest.$ac_ext
17566fi
17567echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17568echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17569if test $ac_cv_func_shl_load = yes; then
17570 lt_cv_dlopen="shl_load"
17571else
17572 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17573echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17574if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17575 echo $ECHO_N "(cached) $ECHO_C" >&6
17576else
17577 ac_check_lib_save_LIBS=$LIBS
17578LIBS="-ldld $LIBS"
17579cat >conftest.$ac_ext <<_ACEOF
17580/* confdefs.h. */
17581_ACEOF
17582cat confdefs.h >>conftest.$ac_ext
17583cat >>conftest.$ac_ext <<_ACEOF
17584/* end confdefs.h. */
17585
17586/* Override any gcc2 internal prototype to avoid an error. */
17587#ifdef __cplusplus
17588extern "C"
17589#endif
17590/* We use char because int might match the return type of a gcc2
17591 builtin and then its argument prototype would still apply. */
17592char shl_load ();
17593int
17594main ()
17595{
17596shl_load ();
17597 ;
17598 return 0;
17599}
17600_ACEOF
17601rm -f conftest.$ac_objext conftest$ac_exeext
17602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17603 (eval $ac_link) 2>conftest.er1
17604 ac_status=$?
17605 grep -v '^ *+' conftest.er1 >conftest.err
17606 rm -f conftest.er1
17607 cat conftest.err >&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); } &&
17610 { ac_try='test -z "$ac_c_werror_flag"
17611 || test ! -s conftest.err'
17612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17613 (eval $ac_try) 2>&5
17614 ac_status=$?
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; } &&
17617 { ac_try='test -s conftest$ac_exeext'
17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619 (eval $ac_try) 2>&5
17620 ac_status=$?
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; }; then
17623 ac_cv_lib_dld_shl_load=yes
17624else
17625 echo "$as_me: failed program was:" >&5
17626sed 's/^/| /' conftest.$ac_ext >&5
17627
17628ac_cv_lib_dld_shl_load=no
17629fi
17630rm -f conftest.err conftest.$ac_objext \
17631 conftest$ac_exeext conftest.$ac_ext
17632LIBS=$ac_check_lib_save_LIBS
17633fi
17634echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17635echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17636if test $ac_cv_lib_dld_shl_load = yes; then
17637 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17638else
17639 echo "$as_me:$LINENO: checking for dlopen" >&5
17640echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17641if test "${ac_cv_func_dlopen+set}" = set; then
17642 echo $ECHO_N "(cached) $ECHO_C" >&6
17643else
17644 cat >conftest.$ac_ext <<_ACEOF
17645/* confdefs.h. */
17646_ACEOF
17647cat confdefs.h >>conftest.$ac_ext
17648cat >>conftest.$ac_ext <<_ACEOF
17649/* end confdefs.h. */
17650/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17652#define dlopen innocuous_dlopen
17653
17654/* System header to define __stub macros and hopefully few prototypes,
17655 which can conflict with char dlopen (); below.
17656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17657 <limits.h> exists even on freestanding compilers. */
17658
17659#ifdef __STDC__
17660# include <limits.h>
17661#else
17662# include <assert.h>
17663#endif
17664
17665#undef dlopen
17666
17667/* Override any gcc2 internal prototype to avoid an error. */
17668#ifdef __cplusplus
17669extern "C"
17670{
17671#endif
17672/* We use char because int might match the return type of a gcc2
17673 builtin and then its argument prototype would still apply. */
17674char dlopen ();
17675/* The GNU C library defines this for functions which it implements
17676 to always fail with ENOSYS. Some functions are actually named
17677 something starting with __ and the normal name is an alias. */
17678#if defined (__stub_dlopen) || defined (__stub___dlopen)
17679choke me
17680#else
17681char (*f) () = dlopen;
17682#endif
17683#ifdef __cplusplus
17684}
17685#endif
17686
17687int
17688main ()
17689{
17690return f != dlopen;
17691 ;
17692 return 0;
17693}
17694_ACEOF
17695rm -f conftest.$ac_objext conftest$ac_exeext
17696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17697 (eval $ac_link) 2>conftest.er1
17698 ac_status=$?
17699 grep -v '^ *+' conftest.er1 >conftest.err
17700 rm -f conftest.er1
17701 cat conftest.err >&5
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); } &&
17704 { ac_try='test -z "$ac_c_werror_flag"
17705 || test ! -s conftest.err'
17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17708 ac_status=$?
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); }; } &&
17711 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17717 ac_cv_func_dlopen=yes
17718else
17719 echo "$as_me: failed program was:" >&5
17720sed 's/^/| /' conftest.$ac_ext >&5
17721
17722ac_cv_func_dlopen=no
17723fi
17724rm -f conftest.err conftest.$ac_objext \
17725 conftest$ac_exeext conftest.$ac_ext
17726fi
17727echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17728echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17729if test $ac_cv_func_dlopen = yes; then
17730 lt_cv_dlopen="dlopen"
17731else
17732 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17733echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17734if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17735 echo $ECHO_N "(cached) $ECHO_C" >&6
17736else
17737 ac_check_lib_save_LIBS=$LIBS
17738LIBS="-ldl $LIBS"
17739cat >conftest.$ac_ext <<_ACEOF
17740/* confdefs.h. */
17741_ACEOF
17742cat confdefs.h >>conftest.$ac_ext
17743cat >>conftest.$ac_ext <<_ACEOF
17744/* end confdefs.h. */
17745
17746/* Override any gcc2 internal prototype to avoid an error. */
17747#ifdef __cplusplus
17748extern "C"
17749#endif
17750/* We use char because int might match the return type of a gcc2
17751 builtin and then its argument prototype would still apply. */
17752char dlopen ();
17753int
17754main ()
17755{
17756dlopen ();
17757 ;
17758 return 0;
17759}
17760_ACEOF
17761rm -f conftest.$ac_objext conftest$ac_exeext
17762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17763 (eval $ac_link) 2>conftest.er1
17764 ac_status=$?
17765 grep -v '^ *+' conftest.er1 >conftest.err
17766 rm -f conftest.er1
17767 cat conftest.err >&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } &&
17770 { ac_try='test -z "$ac_c_werror_flag"
17771 || test ! -s conftest.err'
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17774 ac_status=$?
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; } &&
17777 { ac_try='test -s conftest$ac_exeext'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17780 ac_status=$?
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; }; then
17783 ac_cv_lib_dl_dlopen=yes
17784else
17785 echo "$as_me: failed program was:" >&5
17786sed 's/^/| /' conftest.$ac_ext >&5
17787
17788ac_cv_lib_dl_dlopen=no
17789fi
17790rm -f conftest.err conftest.$ac_objext \
17791 conftest$ac_exeext conftest.$ac_ext
17792LIBS=$ac_check_lib_save_LIBS
17793fi
17794echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17795echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17796if test $ac_cv_lib_dl_dlopen = yes; then
17797 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17798else
17799 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17800echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17801if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17802 echo $ECHO_N "(cached) $ECHO_C" >&6
17803else
17804 ac_check_lib_save_LIBS=$LIBS
17805LIBS="-lsvld $LIBS"
17806cat >conftest.$ac_ext <<_ACEOF
17807/* confdefs.h. */
17808_ACEOF
17809cat confdefs.h >>conftest.$ac_ext
17810cat >>conftest.$ac_ext <<_ACEOF
17811/* end confdefs.h. */
17812
17813/* Override any gcc2 internal prototype to avoid an error. */
17814#ifdef __cplusplus
17815extern "C"
17816#endif
17817/* We use char because int might match the return type of a gcc2
17818 builtin and then its argument prototype would still apply. */
17819char dlopen ();
17820int
17821main ()
17822{
17823dlopen ();
17824 ;
17825 return 0;
17826}
17827_ACEOF
17828rm -f conftest.$ac_objext conftest$ac_exeext
17829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17830 (eval $ac_link) 2>conftest.er1
17831 ac_status=$?
17832 grep -v '^ *+' conftest.er1 >conftest.err
17833 rm -f conftest.er1
17834 cat conftest.err >&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } &&
17837 { ac_try='test -z "$ac_c_werror_flag"
17838 || test ! -s conftest.err'
17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17841 ac_status=$?
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; } &&
17844 { ac_try='test -s conftest$ac_exeext'
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17847 ac_status=$?
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; }; then
17850 ac_cv_lib_svld_dlopen=yes
17851else
17852 echo "$as_me: failed program was:" >&5
17853sed 's/^/| /' conftest.$ac_ext >&5
17854
17855ac_cv_lib_svld_dlopen=no
17856fi
17857rm -f conftest.err conftest.$ac_objext \
17858 conftest$ac_exeext conftest.$ac_ext
17859LIBS=$ac_check_lib_save_LIBS
17860fi
17861echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17862echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17863if test $ac_cv_lib_svld_dlopen = yes; then
17864 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17865else
17866 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17867echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17868if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17869 echo $ECHO_N "(cached) $ECHO_C" >&6
17870else
17871 ac_check_lib_save_LIBS=$LIBS
17872LIBS="-ldld $LIBS"
17873cat >conftest.$ac_ext <<_ACEOF
17874/* confdefs.h. */
17875_ACEOF
17876cat confdefs.h >>conftest.$ac_ext
17877cat >>conftest.$ac_ext <<_ACEOF
17878/* end confdefs.h. */
17879
17880/* Override any gcc2 internal prototype to avoid an error. */
17881#ifdef __cplusplus
17882extern "C"
17883#endif
17884/* We use char because int might match the return type of a gcc2
17885 builtin and then its argument prototype would still apply. */
17886char dld_link ();
17887int
17888main ()
17889{
17890dld_link ();
17891 ;
17892 return 0;
17893}
17894_ACEOF
17895rm -f conftest.$ac_objext conftest$ac_exeext
17896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17897 (eval $ac_link) 2>conftest.er1
17898 ac_status=$?
17899 grep -v '^ *+' conftest.er1 >conftest.err
17900 rm -f conftest.er1
17901 cat conftest.err >&5
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); } &&
17904 { ac_try='test -z "$ac_c_werror_flag"
17905 || test ! -s conftest.err'
17906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17907 (eval $ac_try) 2>&5
17908 ac_status=$?
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); }; } &&
17911 { ac_try='test -s conftest$ac_exeext'
17912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913 (eval $ac_try) 2>&5
17914 ac_status=$?
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; }; then
17917 ac_cv_lib_dld_dld_link=yes
17918else
17919 echo "$as_me: failed program was:" >&5
17920sed 's/^/| /' conftest.$ac_ext >&5
17921
17922ac_cv_lib_dld_dld_link=no
17923fi
17924rm -f conftest.err conftest.$ac_objext \
17925 conftest$ac_exeext conftest.$ac_ext
17926LIBS=$ac_check_lib_save_LIBS
17927fi
17928echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17929echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17930if test $ac_cv_lib_dld_dld_link = yes; then
17931 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17932fi
17933
17934
17935fi
17936
17937
17938fi
17939
17940
17941fi
17942
17943
17944fi
17945
17946
17947fi
17948
17949 ;;
17950 esac
17951
17952 if test "x$lt_cv_dlopen" != xno; then
17953 enable_dlopen=yes
17954 else
17955 enable_dlopen=no
17956 fi
17957
17958 case $lt_cv_dlopen in
17959 dlopen)
17960 save_CPPFLAGS="$CPPFLAGS"
17961 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17962
17963 save_LDFLAGS="$LDFLAGS"
17964 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17965
17966 save_LIBS="$LIBS"
17967 LIBS="$lt_cv_dlopen_libs $LIBS"
17968
17969 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17970echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17971if test "${lt_cv_dlopen_self+set}" = set; then
17972 echo $ECHO_N "(cached) $ECHO_C" >&6
17973else
17974 if test "$cross_compiling" = yes; then :
17975 lt_cv_dlopen_self=cross
17976else
17977 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17978 lt_status=$lt_dlunknown
17979 cat > conftest.$ac_ext <<EOF
hp.com!davidmb1d369a2003-11-26 18:59:24 +000017980#line 17980 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017981#include "confdefs.h"
17982
17983#if HAVE_DLFCN_H
17984#include <dlfcn.h>
17985#endif
17986
17987#include <stdio.h>
17988
17989#ifdef RTLD_GLOBAL
17990# define LT_DLGLOBAL RTLD_GLOBAL
17991#else
17992# ifdef DL_GLOBAL
17993# define LT_DLGLOBAL DL_GLOBAL
17994# else
17995# define LT_DLGLOBAL 0
17996# endif
17997#endif
17998
17999/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18000 find out it does not work in some platform. */
18001#ifndef LT_DLLAZY_OR_NOW
18002# ifdef RTLD_LAZY
18003# define LT_DLLAZY_OR_NOW RTLD_LAZY
18004# else
18005# ifdef DL_LAZY
18006# define LT_DLLAZY_OR_NOW DL_LAZY
18007# else
18008# ifdef RTLD_NOW
18009# define LT_DLLAZY_OR_NOW RTLD_NOW
18010# else
18011# ifdef DL_NOW
18012# define LT_DLLAZY_OR_NOW DL_NOW
18013# else
18014# define LT_DLLAZY_OR_NOW 0
18015# endif
18016# endif
18017# endif
18018# endif
18019#endif
18020
18021#ifdef __cplusplus
18022extern "C" void exit (int);
18023#endif
18024
18025void fnord() { int i=42;}
18026int main ()
18027{
18028 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18029 int status = $lt_dlunknown;
18030
18031 if (self)
18032 {
18033 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18034 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18035 /* dlclose (self); */
18036 }
18037
18038 exit (status);
18039}
18040EOF
18041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18042 (eval $ac_link) 2>&5
18043 ac_status=$?
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18046 (./conftest; exit; ) 2>/dev/null
18047 lt_status=$?
18048 case x$lt_status in
18049 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18050 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18051 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18052 esac
18053 else :
18054 # compilation failed
18055 lt_cv_dlopen_self=no
18056 fi
18057fi
18058rm -fr conftest*
18059
18060
18061fi
18062echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18063echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18064
18065 if test "x$lt_cv_dlopen_self" = xyes; then
18066 LDFLAGS="$LDFLAGS $link_static_flag"
18067 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18068echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18069if test "${lt_cv_dlopen_self_static+set}" = set; then
18070 echo $ECHO_N "(cached) $ECHO_C" >&6
18071else
18072 if test "$cross_compiling" = yes; then :
18073 lt_cv_dlopen_self_static=cross
18074else
18075 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18076 lt_status=$lt_dlunknown
18077 cat > conftest.$ac_ext <<EOF
hp.com!davidmb1d369a2003-11-26 18:59:24 +000018078#line 18078 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018079#include "confdefs.h"
18080
18081#if HAVE_DLFCN_H
18082#include <dlfcn.h>
18083#endif
18084
18085#include <stdio.h>
18086
18087#ifdef RTLD_GLOBAL
18088# define LT_DLGLOBAL RTLD_GLOBAL
18089#else
18090# ifdef DL_GLOBAL
18091# define LT_DLGLOBAL DL_GLOBAL
18092# else
18093# define LT_DLGLOBAL 0
18094# endif
18095#endif
18096
18097/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18098 find out it does not work in some platform. */
18099#ifndef LT_DLLAZY_OR_NOW
18100# ifdef RTLD_LAZY
18101# define LT_DLLAZY_OR_NOW RTLD_LAZY
18102# else
18103# ifdef DL_LAZY
18104# define LT_DLLAZY_OR_NOW DL_LAZY
18105# else
18106# ifdef RTLD_NOW
18107# define LT_DLLAZY_OR_NOW RTLD_NOW
18108# else
18109# ifdef DL_NOW
18110# define LT_DLLAZY_OR_NOW DL_NOW
18111# else
18112# define LT_DLLAZY_OR_NOW 0
18113# endif
18114# endif
18115# endif
18116# endif
18117#endif
18118
18119#ifdef __cplusplus
18120extern "C" void exit (int);
18121#endif
18122
18123void fnord() { int i=42;}
18124int main ()
18125{
18126 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18127 int status = $lt_dlunknown;
18128
18129 if (self)
18130 {
18131 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18132 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18133 /* dlclose (self); */
18134 }
18135
18136 exit (status);
18137}
18138EOF
18139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18140 (eval $ac_link) 2>&5
18141 ac_status=$?
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18144 (./conftest; exit; ) 2>/dev/null
18145 lt_status=$?
18146 case x$lt_status in
18147 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18148 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18149 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18150 esac
18151 else :
18152 # compilation failed
18153 lt_cv_dlopen_self_static=no
18154 fi
18155fi
18156rm -fr conftest*
18157
18158
18159fi
18160echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18161echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18162 fi
18163
18164 CPPFLAGS="$save_CPPFLAGS"
18165 LDFLAGS="$save_LDFLAGS"
18166 LIBS="$save_LIBS"
18167 ;;
18168 esac
18169
18170 case $lt_cv_dlopen_self in
18171 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18172 *) enable_dlopen_self=unknown ;;
18173 esac
18174
18175 case $lt_cv_dlopen_self_static in
18176 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18177 *) enable_dlopen_self_static=unknown ;;
18178 esac
18179fi
18180
18181
18182# The else clause should only fire when bootstrapping the
18183# libtool distribution, otherwise you forgot to ship ltmain.sh
18184# with your package, and you will get complaints that there are
18185# no rules to generate ltmain.sh.
18186if test -f "$ltmain"; then
18187 # See if we are running on zsh, and set the options which allow our commands through
18188 # without removal of \ escapes.
18189 if test -n "${ZSH_VERSION+set}" ; then
18190 setopt NO_GLOB_SUBST
18191 fi
18192 # Now quote all the things that may contain metacharacters while being
18193 # careful not to overquote the AC_SUBSTed values. We take copies of the
18194 # variables and quote the copies for generation of the libtool script.
18195 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18196 SED SHELL STRIP \
18197 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18198 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18199 deplibs_check_method reload_flag reload_cmds need_locks \
18200 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18201 lt_cv_sys_global_symbol_to_c_name_address \
18202 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18203 old_postinstall_cmds old_postuninstall_cmds \
18204 compiler_GCJ \
18205 CC_GCJ \
18206 LD_GCJ \
18207 lt_prog_compiler_wl_GCJ \
18208 lt_prog_compiler_pic_GCJ \
18209 lt_prog_compiler_static_GCJ \
18210 lt_prog_compiler_no_builtin_flag_GCJ \
18211 export_dynamic_flag_spec_GCJ \
18212 thread_safe_flag_spec_GCJ \
18213 whole_archive_flag_spec_GCJ \
18214 enable_shared_with_static_runtimes_GCJ \
18215 old_archive_cmds_GCJ \
18216 old_archive_from_new_cmds_GCJ \
18217 predep_objects_GCJ \
18218 postdep_objects_GCJ \
18219 predeps_GCJ \
18220 postdeps_GCJ \
18221 compiler_lib_search_path_GCJ \
18222 archive_cmds_GCJ \
18223 archive_expsym_cmds_GCJ \
18224 postinstall_cmds_GCJ \
18225 postuninstall_cmds_GCJ \
18226 old_archive_from_expsyms_cmds_GCJ \
18227 allow_undefined_flag_GCJ \
18228 no_undefined_flag_GCJ \
18229 export_symbols_cmds_GCJ \
18230 hardcode_libdir_flag_spec_GCJ \
18231 hardcode_libdir_flag_spec_ld_GCJ \
18232 hardcode_libdir_separator_GCJ \
18233 hardcode_automatic_GCJ \
18234 module_cmds_GCJ \
18235 module_expsym_cmds_GCJ \
18236 lt_cv_prog_compiler_c_o_GCJ \
18237 exclude_expsyms_GCJ \
18238 include_expsyms_GCJ; do
18239
18240 case $var in
18241 old_archive_cmds_GCJ | \
18242 old_archive_from_new_cmds_GCJ | \
18243 archive_cmds_GCJ | \
18244 archive_expsym_cmds_GCJ | \
18245 module_cmds_GCJ | \
18246 module_expsym_cmds_GCJ | \
18247 old_archive_from_expsyms_cmds_GCJ | \
18248 export_symbols_cmds_GCJ | \
18249 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18250 postinstall_cmds | postuninstall_cmds | \
18251 old_postinstall_cmds | old_postuninstall_cmds | \
18252 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18253 # Double-quote double-evaled strings.
18254 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18255 ;;
18256 *)
18257 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18258 ;;
18259 esac
18260 done
18261
18262 case $lt_echo in
18263 *'\$0 --fallback-echo"')
18264 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18265 ;;
18266 esac
18267
18268cfgfile="$ofile"
18269
18270 cat <<__EOF__ >> "$cfgfile"
18271# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18272
18273# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18274
18275# Shell to use when invoking shell scripts.
18276SHELL=$lt_SHELL
18277
18278# Whether or not to build shared libraries.
18279build_libtool_libs=$enable_shared
18280
18281# Whether or not to build static libraries.
18282build_old_libs=$enable_static
18283
18284# Whether or not to add -lc for building shared libraries.
18285build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18286
18287# Whether or not to disallow shared libs when runtime libs are static
18288allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18289
18290# Whether or not to optimize for fast installation.
18291fast_install=$enable_fast_install
18292
18293# The host system.
18294host_alias=$host_alias
18295host=$host
18296
18297# An echo program that does not interpret backslashes.
18298echo=$lt_echo
18299
18300# The archiver.
18301AR=$lt_AR
18302AR_FLAGS=$lt_AR_FLAGS
18303
18304# A C compiler.
18305LTCC=$lt_LTCC
18306
18307# A language-specific compiler.
18308CC=$lt_compiler_GCJ
18309
18310# Is the compiler the GNU C compiler?
18311with_gcc=$GCC_GCJ
18312
18313# An ERE matcher.
18314EGREP=$lt_EGREP
18315
18316# The linker used to build libraries.
18317LD=$lt_LD_GCJ
18318
18319# Whether we need hard or soft links.
18320LN_S=$lt_LN_S
18321
18322# A BSD-compatible nm program.
18323NM=$lt_NM
18324
18325# A symbol stripping program
18326STRIP=$lt_STRIP
18327
18328# Used to examine libraries when file_magic_cmd begins "file"
18329MAGIC_CMD=$MAGIC_CMD
18330
18331# Used on cygwin: DLL creation program.
18332DLLTOOL="$DLLTOOL"
18333
18334# Used on cygwin: object dumper.
18335OBJDUMP="$OBJDUMP"
18336
18337# Used on cygwin: assembler.
18338AS="$AS"
18339
18340# The name of the directory that contains temporary libtool files.
18341objdir=$objdir
18342
18343# How to create reloadable object files.
18344reload_flag=$lt_reload_flag
18345reload_cmds=$lt_reload_cmds
18346
18347# How to pass a linker flag through the compiler.
18348wl=$lt_lt_prog_compiler_wl_GCJ
18349
18350# Object file suffix (normally "o").
18351objext="$ac_objext"
18352
18353# Old archive suffix (normally "a").
18354libext="$libext"
18355
18356# Shared library suffix (normally ".so").
18357shrext='$shrext'
18358
18359# Executable file suffix (normally "").
18360exeext="$exeext"
18361
18362# Additional compiler flags for building library objects.
18363pic_flag=$lt_lt_prog_compiler_pic_GCJ
18364pic_mode=$pic_mode
18365
18366# What is the maximum length of a command?
18367max_cmd_len=$lt_cv_sys_max_cmd_len
18368
18369# Does compiler simultaneously support -c and -o options?
18370compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18371
18372# Must we lock files when doing compilation ?
18373need_locks=$lt_need_locks
18374
18375# Do we need the lib prefix for modules?
18376need_lib_prefix=$need_lib_prefix
18377
18378# Do we need a version for libraries?
18379need_version=$need_version
18380
18381# Whether dlopen is supported.
18382dlopen_support=$enable_dlopen
18383
18384# Whether dlopen of programs is supported.
18385dlopen_self=$enable_dlopen_self
18386
18387# Whether dlopen of statically linked programs is supported.
18388dlopen_self_static=$enable_dlopen_self_static
18389
18390# Compiler flag to prevent dynamic linking.
18391link_static_flag=$lt_lt_prog_compiler_static_GCJ
18392
18393# Compiler flag to turn off builtin functions.
18394no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18395
18396# Compiler flag to allow reflexive dlopens.
18397export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18398
18399# Compiler flag to generate shared objects directly from archives.
18400whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18401
18402# Compiler flag to generate thread-safe objects.
18403thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18404
18405# Library versioning type.
18406version_type=$version_type
18407
18408# Format of library name prefix.
18409libname_spec=$lt_libname_spec
18410
18411# List of archive names. First name is the real one, the rest are links.
18412# The last name is the one that the linker finds with -lNAME.
18413library_names_spec=$lt_library_names_spec
18414
18415# The coded name of the library, if different from the real name.
18416soname_spec=$lt_soname_spec
18417
18418# Commands used to build and install an old-style archive.
18419RANLIB=$lt_RANLIB
18420old_archive_cmds=$lt_old_archive_cmds_GCJ
18421old_postinstall_cmds=$lt_old_postinstall_cmds
18422old_postuninstall_cmds=$lt_old_postuninstall_cmds
18423
18424# Create an old-style archive from a shared archive.
18425old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18426
18427# Create a temporary old-style archive to link instead of a shared archive.
18428old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18429
18430# Commands used to build and install a shared archive.
18431archive_cmds=$lt_archive_cmds_GCJ
18432archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18433postinstall_cmds=$lt_postinstall_cmds
18434postuninstall_cmds=$lt_postuninstall_cmds
18435
18436# Commands used to build a loadable module (assumed same as above if empty)
18437module_cmds=$lt_module_cmds_GCJ
18438module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18439
18440# Commands to strip libraries.
18441old_striplib=$lt_old_striplib
18442striplib=$lt_striplib
18443
18444# Dependencies to place before the objects being linked to create a
18445# shared library.
18446predep_objects=$lt_predep_objects_GCJ
18447
18448# Dependencies to place after the objects being linked to create a
18449# shared library.
18450postdep_objects=$lt_postdep_objects_GCJ
18451
18452# Dependencies to place before the objects being linked to create a
18453# shared library.
18454predeps=$lt_predeps_GCJ
18455
18456# Dependencies to place after the objects being linked to create a
18457# shared library.
18458postdeps=$lt_postdeps_GCJ
18459
18460# The library search path used internally by the compiler when linking
18461# a shared library.
18462compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18463
18464# Method to check whether dependent libraries are shared objects.
18465deplibs_check_method=$lt_deplibs_check_method
18466
18467# Command to use when deplibs_check_method == file_magic.
18468file_magic_cmd=$lt_file_magic_cmd
18469
18470# Flag that allows shared libraries with undefined symbols to be built.
18471allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18472
18473# Flag that forces no undefined symbols.
18474no_undefined_flag=$lt_no_undefined_flag_GCJ
18475
18476# Commands used to finish a libtool library installation in a directory.
18477finish_cmds=$lt_finish_cmds
18478
18479# Same as above, but a single script fragment to be evaled but not shown.
18480finish_eval=$lt_finish_eval
18481
18482# Take the output of nm and produce a listing of raw symbols and C names.
18483global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18484
18485# Transform the output of nm in a proper C declaration
18486global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18487
18488# Transform the output of nm in a C name address pair
18489global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18490
18491# This is the shared library runtime path variable.
18492runpath_var=$runpath_var
18493
18494# This is the shared library path variable.
18495shlibpath_var=$shlibpath_var
18496
18497# Is shlibpath searched before the hard-coded library search path?
18498shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18499
18500# How to hardcode a shared library path into an executable.
18501hardcode_action=$hardcode_action_GCJ
18502
18503# Whether we should hardcode library paths into libraries.
18504hardcode_into_libs=$hardcode_into_libs
18505
18506# Flag to hardcode \$libdir into a binary during linking.
18507# This must work even if \$libdir does not exist.
18508hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18509
18510# If ld is used when linking, flag to hardcode \$libdir into
18511# a binary during linking. This must work even if \$libdir does
18512# not exist.
18513hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18514
18515# Whether we need a single -rpath flag with a separated argument.
18516hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18517
18518# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18519# resulting binary.
18520hardcode_direct=$hardcode_direct_GCJ
18521
18522# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18523# resulting binary.
18524hardcode_minus_L=$hardcode_minus_L_GCJ
18525
18526# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18527# the resulting binary.
18528hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18529
18530# Set to yes if building a shared library automatically hardcodes DIR into the library
18531# and all subsequent libraries and executables linked against it.
18532hardcode_automatic=$hardcode_automatic_GCJ
18533
18534# Variables whose values should be saved in libtool wrapper scripts and
18535# restored at relink time.
18536variables_saved_for_relink="$variables_saved_for_relink"
18537
18538# Whether libtool must link a program against all its dependency libraries.
18539link_all_deplibs=$link_all_deplibs_GCJ
18540
18541# Compile-time system search path for libraries
18542sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18543
18544# Run-time system search path for libraries
18545sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18546
18547# Fix the shell variable \$srcfile for the compiler.
18548fix_srcfile_path="$fix_srcfile_path_GCJ"
18549
18550# Set to yes if exported symbols are required.
18551always_export_symbols=$always_export_symbols_GCJ
18552
18553# The commands to list exported symbols.
18554export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18555
18556# The commands to extract the exported symbol list from a shared archive.
18557extract_expsyms_cmds=$lt_extract_expsyms_cmds
18558
18559# Symbols that should not be listed in the preloaded symbols.
18560exclude_expsyms=$lt_exclude_expsyms_GCJ
18561
18562# Symbols that must always be exported.
18563include_expsyms=$lt_include_expsyms_GCJ
18564
18565# ### END LIBTOOL TAG CONFIG: $tagname
18566
18567__EOF__
18568
18569
18570else
18571 # If there is no Makefile yet, we rely on a make rule to execute
18572 # `config.status --recheck' to rerun these tests and create the
18573 # libtool script then.
18574 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18575 if test -f "$ltmain_in"; then
18576 test -f Makefile && make "$ltmain"
18577 fi
18578fi
18579
18580
18581ac_ext=c
18582ac_cpp='$CPP $CPPFLAGS'
18583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18585ac_compiler_gnu=$ac_cv_c_compiler_gnu
18586
18587CC="$lt_save_CC"
18588
18589 else
18590 tagname=""
18591 fi
18592 ;;
18593
18594 RC)
18595
18596
18597
18598# Source file extension for RC test sources.
18599ac_ext=rc
18600
18601# Object file extension for compiled RC test sources.
18602objext=o
18603objext_RC=$objext
18604
18605# Code to be used in simple compile tests
18606lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18607
18608# Code to be used in simple link tests
18609lt_simple_link_test_code="$lt_simple_compile_test_code"
18610
18611# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18612
18613# If no C compiler was specified, use CC.
18614LTCC=${LTCC-"$CC"}
18615
18616# Allow CC to be a program name with arguments.
18617compiler=$CC
18618
18619
18620# Allow CC to be a program name with arguments.
18621lt_save_CC="$CC"
18622CC=${RC-"windres"}
18623compiler=$CC
18624compiler_RC=$CC
18625lt_cv_prog_compiler_c_o_RC=yes
18626
18627# The else clause should only fire when bootstrapping the
18628# libtool distribution, otherwise you forgot to ship ltmain.sh
18629# with your package, and you will get complaints that there are
18630# no rules to generate ltmain.sh.
18631if test -f "$ltmain"; then
18632 # See if we are running on zsh, and set the options which allow our commands through
18633 # without removal of \ escapes.
18634 if test -n "${ZSH_VERSION+set}" ; then
18635 setopt NO_GLOB_SUBST
18636 fi
18637 # Now quote all the things that may contain metacharacters while being
18638 # careful not to overquote the AC_SUBSTed values. We take copies of the
18639 # variables and quote the copies for generation of the libtool script.
18640 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18641 SED SHELL STRIP \
18642 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18643 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18644 deplibs_check_method reload_flag reload_cmds need_locks \
18645 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18646 lt_cv_sys_global_symbol_to_c_name_address \
18647 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18648 old_postinstall_cmds old_postuninstall_cmds \
18649 compiler_RC \
18650 CC_RC \
18651 LD_RC \
18652 lt_prog_compiler_wl_RC \
18653 lt_prog_compiler_pic_RC \
18654 lt_prog_compiler_static_RC \
18655 lt_prog_compiler_no_builtin_flag_RC \
18656 export_dynamic_flag_spec_RC \
18657 thread_safe_flag_spec_RC \
18658 whole_archive_flag_spec_RC \
18659 enable_shared_with_static_runtimes_RC \
18660 old_archive_cmds_RC \
18661 old_archive_from_new_cmds_RC \
18662 predep_objects_RC \
18663 postdep_objects_RC \
18664 predeps_RC \
18665 postdeps_RC \
18666 compiler_lib_search_path_RC \
18667 archive_cmds_RC \
18668 archive_expsym_cmds_RC \
18669 postinstall_cmds_RC \
18670 postuninstall_cmds_RC \
18671 old_archive_from_expsyms_cmds_RC \
18672 allow_undefined_flag_RC \
18673 no_undefined_flag_RC \
18674 export_symbols_cmds_RC \
18675 hardcode_libdir_flag_spec_RC \
18676 hardcode_libdir_flag_spec_ld_RC \
18677 hardcode_libdir_separator_RC \
18678 hardcode_automatic_RC \
18679 module_cmds_RC \
18680 module_expsym_cmds_RC \
18681 lt_cv_prog_compiler_c_o_RC \
18682 exclude_expsyms_RC \
18683 include_expsyms_RC; do
18684
18685 case $var in
18686 old_archive_cmds_RC | \
18687 old_archive_from_new_cmds_RC | \
18688 archive_cmds_RC | \
18689 archive_expsym_cmds_RC | \
18690 module_cmds_RC | \
18691 module_expsym_cmds_RC | \
18692 old_archive_from_expsyms_cmds_RC | \
18693 export_symbols_cmds_RC | \
18694 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18695 postinstall_cmds | postuninstall_cmds | \
18696 old_postinstall_cmds | old_postuninstall_cmds | \
18697 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18698 # Double-quote double-evaled strings.
18699 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18700 ;;
18701 *)
18702 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18703 ;;
18704 esac
18705 done
18706
18707 case $lt_echo in
18708 *'\$0 --fallback-echo"')
18709 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18710 ;;
18711 esac
18712
18713cfgfile="$ofile"
18714
18715 cat <<__EOF__ >> "$cfgfile"
18716# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18717
18718# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18719
18720# Shell to use when invoking shell scripts.
18721SHELL=$lt_SHELL
18722
18723# Whether or not to build shared libraries.
18724build_libtool_libs=$enable_shared
18725
18726# Whether or not to build static libraries.
18727build_old_libs=$enable_static
18728
18729# Whether or not to add -lc for building shared libraries.
18730build_libtool_need_lc=$archive_cmds_need_lc_RC
18731
18732# Whether or not to disallow shared libs when runtime libs are static
18733allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18734
18735# Whether or not to optimize for fast installation.
18736fast_install=$enable_fast_install
18737
18738# The host system.
18739host_alias=$host_alias
18740host=$host
18741
18742# An echo program that does not interpret backslashes.
18743echo=$lt_echo
18744
18745# The archiver.
18746AR=$lt_AR
18747AR_FLAGS=$lt_AR_FLAGS
18748
18749# A C compiler.
18750LTCC=$lt_LTCC
18751
18752# A language-specific compiler.
18753CC=$lt_compiler_RC
18754
18755# Is the compiler the GNU C compiler?
18756with_gcc=$GCC_RC
18757
18758# An ERE matcher.
18759EGREP=$lt_EGREP
18760
18761# The linker used to build libraries.
18762LD=$lt_LD_RC
18763
18764# Whether we need hard or soft links.
18765LN_S=$lt_LN_S
18766
18767# A BSD-compatible nm program.
18768NM=$lt_NM
18769
18770# A symbol stripping program
18771STRIP=$lt_STRIP
18772
18773# Used to examine libraries when file_magic_cmd begins "file"
18774MAGIC_CMD=$MAGIC_CMD
18775
18776# Used on cygwin: DLL creation program.
18777DLLTOOL="$DLLTOOL"
18778
18779# Used on cygwin: object dumper.
18780OBJDUMP="$OBJDUMP"
18781
18782# Used on cygwin: assembler.
18783AS="$AS"
18784
18785# The name of the directory that contains temporary libtool files.
18786objdir=$objdir
18787
18788# How to create reloadable object files.
18789reload_flag=$lt_reload_flag
18790reload_cmds=$lt_reload_cmds
18791
18792# How to pass a linker flag through the compiler.
18793wl=$lt_lt_prog_compiler_wl_RC
18794
18795# Object file suffix (normally "o").
18796objext="$ac_objext"
18797
18798# Old archive suffix (normally "a").
18799libext="$libext"
18800
18801# Shared library suffix (normally ".so").
18802shrext='$shrext'
18803
18804# Executable file suffix (normally "").
18805exeext="$exeext"
18806
18807# Additional compiler flags for building library objects.
18808pic_flag=$lt_lt_prog_compiler_pic_RC
18809pic_mode=$pic_mode
18810
18811# What is the maximum length of a command?
18812max_cmd_len=$lt_cv_sys_max_cmd_len
18813
18814# Does compiler simultaneously support -c and -o options?
18815compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18816
18817# Must we lock files when doing compilation ?
18818need_locks=$lt_need_locks
18819
18820# Do we need the lib prefix for modules?
18821need_lib_prefix=$need_lib_prefix
18822
18823# Do we need a version for libraries?
18824need_version=$need_version
18825
18826# Whether dlopen is supported.
18827dlopen_support=$enable_dlopen
18828
18829# Whether dlopen of programs is supported.
18830dlopen_self=$enable_dlopen_self
18831
18832# Whether dlopen of statically linked programs is supported.
18833dlopen_self_static=$enable_dlopen_self_static
18834
18835# Compiler flag to prevent dynamic linking.
18836link_static_flag=$lt_lt_prog_compiler_static_RC
18837
18838# Compiler flag to turn off builtin functions.
18839no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18840
18841# Compiler flag to allow reflexive dlopens.
18842export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18843
18844# Compiler flag to generate shared objects directly from archives.
18845whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18846
18847# Compiler flag to generate thread-safe objects.
18848thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18849
18850# Library versioning type.
18851version_type=$version_type
18852
18853# Format of library name prefix.
18854libname_spec=$lt_libname_spec
18855
18856# List of archive names. First name is the real one, the rest are links.
18857# The last name is the one that the linker finds with -lNAME.
18858library_names_spec=$lt_library_names_spec
18859
18860# The coded name of the library, if different from the real name.
18861soname_spec=$lt_soname_spec
18862
18863# Commands used to build and install an old-style archive.
18864RANLIB=$lt_RANLIB
18865old_archive_cmds=$lt_old_archive_cmds_RC
18866old_postinstall_cmds=$lt_old_postinstall_cmds
18867old_postuninstall_cmds=$lt_old_postuninstall_cmds
18868
18869# Create an old-style archive from a shared archive.
18870old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18871
18872# Create a temporary old-style archive to link instead of a shared archive.
18873old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18874
18875# Commands used to build and install a shared archive.
18876archive_cmds=$lt_archive_cmds_RC
18877archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18878postinstall_cmds=$lt_postinstall_cmds
18879postuninstall_cmds=$lt_postuninstall_cmds
18880
18881# Commands used to build a loadable module (assumed same as above if empty)
18882module_cmds=$lt_module_cmds_RC
18883module_expsym_cmds=$lt_module_expsym_cmds_RC
18884
18885# Commands to strip libraries.
18886old_striplib=$lt_old_striplib
18887striplib=$lt_striplib
18888
18889# Dependencies to place before the objects being linked to create a
18890# shared library.
18891predep_objects=$lt_predep_objects_RC
18892
18893# Dependencies to place after the objects being linked to create a
18894# shared library.
18895postdep_objects=$lt_postdep_objects_RC
18896
18897# Dependencies to place before the objects being linked to create a
18898# shared library.
18899predeps=$lt_predeps_RC
18900
18901# Dependencies to place after the objects being linked to create a
18902# shared library.
18903postdeps=$lt_postdeps_RC
18904
18905# The library search path used internally by the compiler when linking
18906# a shared library.
18907compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18908
18909# Method to check whether dependent libraries are shared objects.
18910deplibs_check_method=$lt_deplibs_check_method
18911
18912# Command to use when deplibs_check_method == file_magic.
18913file_magic_cmd=$lt_file_magic_cmd
18914
18915# Flag that allows shared libraries with undefined symbols to be built.
18916allow_undefined_flag=$lt_allow_undefined_flag_RC
18917
18918# Flag that forces no undefined symbols.
18919no_undefined_flag=$lt_no_undefined_flag_RC
18920
18921# Commands used to finish a libtool library installation in a directory.
18922finish_cmds=$lt_finish_cmds
18923
18924# Same as above, but a single script fragment to be evaled but not shown.
18925finish_eval=$lt_finish_eval
18926
18927# Take the output of nm and produce a listing of raw symbols and C names.
18928global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18929
18930# Transform the output of nm in a proper C declaration
18931global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18932
18933# Transform the output of nm in a C name address pair
18934global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18935
18936# This is the shared library runtime path variable.
18937runpath_var=$runpath_var
18938
18939# This is the shared library path variable.
18940shlibpath_var=$shlibpath_var
18941
18942# Is shlibpath searched before the hard-coded library search path?
18943shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18944
18945# How to hardcode a shared library path into an executable.
18946hardcode_action=$hardcode_action_RC
18947
18948# Whether we should hardcode library paths into libraries.
18949hardcode_into_libs=$hardcode_into_libs
18950
18951# Flag to hardcode \$libdir into a binary during linking.
18952# This must work even if \$libdir does not exist.
18953hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18954
18955# If ld is used when linking, flag to hardcode \$libdir into
18956# a binary during linking. This must work even if \$libdir does
18957# not exist.
18958hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18959
18960# Whether we need a single -rpath flag with a separated argument.
18961hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18962
18963# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18964# resulting binary.
18965hardcode_direct=$hardcode_direct_RC
18966
18967# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18968# resulting binary.
18969hardcode_minus_L=$hardcode_minus_L_RC
18970
18971# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18972# the resulting binary.
18973hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18974
18975# Set to yes if building a shared library automatically hardcodes DIR into the library
18976# and all subsequent libraries and executables linked against it.
18977hardcode_automatic=$hardcode_automatic_RC
18978
18979# Variables whose values should be saved in libtool wrapper scripts and
18980# restored at relink time.
18981variables_saved_for_relink="$variables_saved_for_relink"
18982
18983# Whether libtool must link a program against all its dependency libraries.
18984link_all_deplibs=$link_all_deplibs_RC
18985
18986# Compile-time system search path for libraries
18987sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18988
18989# Run-time system search path for libraries
18990sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18991
18992# Fix the shell variable \$srcfile for the compiler.
18993fix_srcfile_path="$fix_srcfile_path_RC"
18994
18995# Set to yes if exported symbols are required.
18996always_export_symbols=$always_export_symbols_RC
18997
18998# The commands to list exported symbols.
18999export_symbols_cmds=$lt_export_symbols_cmds_RC
19000
19001# The commands to extract the exported symbol list from a shared archive.
19002extract_expsyms_cmds=$lt_extract_expsyms_cmds
19003
19004# Symbols that should not be listed in the preloaded symbols.
19005exclude_expsyms=$lt_exclude_expsyms_RC
19006
19007# Symbols that must always be exported.
19008include_expsyms=$lt_include_expsyms_RC
19009
19010# ### END LIBTOOL TAG CONFIG: $tagname
19011
19012__EOF__
19013
19014
19015else
19016 # If there is no Makefile yet, we rely on a make rule to execute
19017 # `config.status --recheck' to rerun these tests and create the
19018 # libtool script then.
19019 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19020 if test -f "$ltmain_in"; then
19021 test -f Makefile && make "$ltmain"
19022 fi
19023fi
19024
19025
19026ac_ext=c
19027ac_cpp='$CPP $CPPFLAGS'
19028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19030ac_compiler_gnu=$ac_cv_c_compiler_gnu
19031
19032CC="$lt_save_CC"
19033
19034 ;;
19035
19036 *)
19037 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19038echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19039 { (exit 1); exit 1; }; }
19040 ;;
19041 esac
19042
19043 # Append the new tag name to the list of available tags.
19044 if test -n "$tagname" ; then
19045 available_tags="$available_tags $tagname"
19046 fi
19047 fi
19048 done
19049 IFS="$lt_save_ifs"
19050
19051 # Now substitute the updated list of available tags.
19052 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19053 mv "${ofile}T" "$ofile"
19054 chmod +x "$ofile"
19055 else
19056 rm -f "${ofile}T"
19057 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19058echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19059 { (exit 1); exit 1; }; }
19060 fi
19061fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019062
19063
19064
19065# This can be used to rebuild libtool when needed
19066LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19067
19068# Always use our own libtool.
19069LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19070
19071# Prevent multiple expansion
19072
19073
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
mostang.com!davidm6af90d02003-02-15 08:53:55 +000019092# By default we simply use the C compiler to build assembly code.
19093
19094: ${CCAS='$(CC)'}
19095# Set ASFLAGS if not already set.
19096: ${CCASFLAGS='$(CFLAGS)'}
19097
19098
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019099
19100
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019101echo "$as_me:$LINENO: checking for __uc_get_grs in -luca" >&5
19102echo $ECHO_N "checking for __uc_get_grs in -luca... $ECHO_C" >&6
19103if test "${ac_cv_lib_uca___uc_get_grs+set}" = set; then
19104 echo $ECHO_N "(cached) $ECHO_C" >&6
19105else
19106 ac_check_lib_save_LIBS=$LIBS
19107LIBS="-luca $LIBS"
19108cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019109/* confdefs.h. */
19110_ACEOF
19111cat confdefs.h >>conftest.$ac_ext
19112cat >>conftest.$ac_ext <<_ACEOF
19113/* end confdefs.h. */
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019114
19115/* Override any gcc2 internal prototype to avoid an error. */
19116#ifdef __cplusplus
19117extern "C"
19118#endif
19119/* We use char because int might match the return type of a gcc2
19120 builtin and then its argument prototype would still apply. */
19121char __uc_get_grs ();
19122int
19123main ()
19124{
19125__uc_get_grs ();
19126 ;
19127 return 0;
19128}
19129_ACEOF
19130rm -f conftest.$ac_objext conftest$ac_exeext
19131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019132 (eval $ac_link) 2>conftest.er1
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019133 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019134 grep -v '^ *+' conftest.er1 >conftest.err
19135 rm -f conftest.er1
19136 cat conftest.err >&5
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019139 { ac_try='test -z "$ac_c_werror_flag"
19140 || test ! -s conftest.err'
19141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142 (eval $ac_try) 2>&5
19143 ac_status=$?
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); }; } &&
19146 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148 (eval $ac_try) 2>&5
19149 ac_status=$?
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; }; then
19152 ac_cv_lib_uca___uc_get_grs=yes
19153else
19154 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019155sed 's/^/| /' conftest.$ac_ext >&5
19156
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019157ac_cv_lib_uca___uc_get_grs=no
19158fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019159rm -f conftest.err conftest.$ac_objext \
19160 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019161LIBS=$ac_check_lib_save_LIBS
19162fi
19163echo "$as_me:$LINENO: result: $ac_cv_lib_uca___uc_get_grs" >&5
19164echo "${ECHO_T}$ac_cv_lib_uca___uc_get_grs" >&6
19165if test $ac_cv_lib_uca___uc_get_grs = yes; then
19166 cat >>confdefs.h <<_ACEOF
19167#define HAVE_LIBUCA 1
19168_ACEOF
19169
19170 LIBS="-luca $LIBS"
19171
19172fi
19173
19174
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019175for ac_header in atomic_ops.h
19176do
19177as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19178if eval "test \"\${$as_ac_Header+set}\" = set"; then
19179 echo "$as_me:$LINENO: checking for $ac_header" >&5
19180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19181if eval "test \"\${$as_ac_Header+set}\" = set"; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19183fi
19184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19185echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19186else
19187 # Is the header compilable?
19188echo "$as_me:$LINENO: checking $ac_header usability" >&5
19189echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19190cat >conftest.$ac_ext <<_ACEOF
19191/* confdefs.h. */
19192_ACEOF
19193cat confdefs.h >>conftest.$ac_ext
19194cat >>conftest.$ac_ext <<_ACEOF
19195/* end confdefs.h. */
19196$ac_includes_default
19197#include <$ac_header>
19198_ACEOF
19199rm -f conftest.$ac_objext
19200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19201 (eval $ac_compile) 2>conftest.er1
19202 ac_status=$?
19203 grep -v '^ *+' conftest.er1 >conftest.err
19204 rm -f conftest.er1
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } &&
19208 { ac_try='test -z "$ac_c_werror_flag"
19209 || test ! -s conftest.err'
19210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211 (eval $ac_try) 2>&5
19212 ac_status=$?
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); }; } &&
19215 { ac_try='test -s conftest.$ac_objext'
19216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217 (eval $ac_try) 2>&5
19218 ac_status=$?
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; }; then
19221 ac_header_compiler=yes
19222else
19223 echo "$as_me: failed program was:" >&5
19224sed 's/^/| /' conftest.$ac_ext >&5
19225
19226ac_header_compiler=no
19227fi
19228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19229echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19230echo "${ECHO_T}$ac_header_compiler" >&6
19231
19232# Is the header present?
19233echo "$as_me:$LINENO: checking $ac_header presence" >&5
19234echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19235cat >conftest.$ac_ext <<_ACEOF
19236/* confdefs.h. */
19237_ACEOF
19238cat confdefs.h >>conftest.$ac_ext
19239cat >>conftest.$ac_ext <<_ACEOF
19240/* end confdefs.h. */
19241#include <$ac_header>
19242_ACEOF
19243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19245 ac_status=$?
19246 grep -v '^ *+' conftest.er1 >conftest.err
19247 rm -f conftest.er1
19248 cat conftest.err >&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); } >/dev/null; then
19251 if test -s conftest.err; then
19252 ac_cpp_err=$ac_c_preproc_warn_flag
19253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19254 else
19255 ac_cpp_err=
19256 fi
19257else
19258 ac_cpp_err=yes
19259fi
19260if test -z "$ac_cpp_err"; then
19261 ac_header_preproc=yes
19262else
19263 echo "$as_me: failed program was:" >&5
19264sed 's/^/| /' conftest.$ac_ext >&5
19265
19266 ac_header_preproc=no
19267fi
19268rm -f conftest.err conftest.$ac_ext
19269echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19270echo "${ECHO_T}$ac_header_preproc" >&6
19271
19272# So? What about this header?
19273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19274 yes:no: )
19275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19276echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19278echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19279 ac_header_preproc=yes
19280 ;;
19281 no:yes:* )
19282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19283echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19285echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19287echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19289echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19291echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19293echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19294 (
19295 cat <<\_ASBOX
hp.com!davidmb1d369a2003-11-26 18:59:24 +000019296## ----------------------------------------- ##
19297## Report this to libunwind@linux.hpl.hp.com ##
19298## ----------------------------------------- ##
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019299_ASBOX
19300 ) |
19301 sed "s/^/$as_me: WARNING: /" >&2
19302 ;;
19303esac
19304echo "$as_me:$LINENO: checking for $ac_header" >&5
19305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19306if eval "test \"\${$as_ac_Header+set}\" = set"; then
19307 echo $ECHO_N "(cached) $ECHO_C" >&6
19308else
19309 eval "$as_ac_Header=\$ac_header_preproc"
19310fi
19311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19313
19314fi
19315if test `eval echo '${'$as_ac_Header'}'` = yes; then
19316 cat >>confdefs.h <<_ACEOF
19317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19318_ACEOF
19319
19320fi
19321
19322done
19323
19324
19325echo "$as_me:$LINENO: checking for main in -latomic_ops" >&5
19326echo $ECHO_N "checking for main in -latomic_ops... $ECHO_C" >&6
19327if test "${ac_cv_lib_atomic_ops_main+set}" = set; then
19328 echo $ECHO_N "(cached) $ECHO_C" >&6
19329else
19330 ac_check_lib_save_LIBS=$LIBS
19331LIBS="-latomic_ops $LIBS"
19332cat >conftest.$ac_ext <<_ACEOF
19333/* confdefs.h. */
19334_ACEOF
19335cat confdefs.h >>conftest.$ac_ext
19336cat >>conftest.$ac_ext <<_ACEOF
19337/* end confdefs.h. */
19338
19339
19340int
19341main ()
19342{
19343main ();
19344 ;
19345 return 0;
19346}
19347_ACEOF
19348rm -f conftest.$ac_objext conftest$ac_exeext
19349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19350 (eval $ac_link) 2>conftest.er1
19351 ac_status=$?
19352 grep -v '^ *+' conftest.er1 >conftest.err
19353 rm -f conftest.er1
19354 cat conftest.err >&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } &&
19357 { ac_try='test -z "$ac_c_werror_flag"
19358 || 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'
19365 { (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
19377rm -f conftest.err conftest.$ac_objext \
19378 conftest$ac_exeext conftest.$ac_ext
19379LIBS=$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
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019420 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019421 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +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); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019427 { ac_try='test -z "$ac_c_werror_flag"
19428 || test ! -s conftest.err'
19429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430 (eval $ac_try) 2>&5
19431 ac_status=$?
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; } &&
19434 { ac_try='test -s conftest.$ac_objext'
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436 (eval $ac_try) 2>&5
19437 ac_status=$?
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; }; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019440 ac_cv_header_stdc=yes
19441else
19442 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019443sed 's/^/| /' conftest.$ac_ext >&5
19444
19445ac_cv_header_stdc=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019446fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019448
19449if test $ac_cv_header_stdc = yes; then
19450 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19451 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019452/* confdefs.h. */
19453_ACEOF
19454cat confdefs.h >>conftest.$ac_ext
19455cat >>conftest.$ac_ext <<_ACEOF
19456/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019457#include <string.h>
19458
19459_ACEOF
19460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19461 $EGREP "memchr" >/dev/null 2>&1; then
19462 :
19463else
19464 ac_cv_header_stdc=no
19465fi
19466rm -f conftest*
19467
19468fi
19469
19470if test $ac_cv_header_stdc = yes; then
19471 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19472 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019473/* confdefs.h. */
19474_ACEOF
19475cat confdefs.h >>conftest.$ac_ext
19476cat >>conftest.$ac_ext <<_ACEOF
19477/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019478#include <stdlib.h>
19479
19480_ACEOF
19481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19482 $EGREP "free" >/dev/null 2>&1; then
19483 :
19484else
19485 ac_cv_header_stdc=no
19486fi
19487rm -f conftest*
19488
19489fi
19490
19491if test $ac_cv_header_stdc = yes; then
19492 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19493 if test "$cross_compiling" = yes; then
19494 :
19495else
19496 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019497/* confdefs.h. */
19498_ACEOF
19499cat confdefs.h >>conftest.$ac_ext
19500cat >>conftest.$ac_ext <<_ACEOF
19501/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019502#include <ctype.h>
19503#if ((' ' & 0x0FF) == 0x020)
19504# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19505# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19506#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019507# define ISLOWER(c) \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019508 (('a' <= (c) && (c) <= 'i') \
19509 || ('j' <= (c) && (c) <= 'r') \
19510 || ('s' <= (c) && (c) <= 'z'))
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019511# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19512#endif
19513
19514#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19515int
19516main ()
19517{
19518 int i;
19519 for (i = 0; i < 256; i++)
19520 if (XOR (islower (i), ISLOWER (i))
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019521 || toupper (i) != TOUPPER (i))
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019522 exit(2);
19523 exit (0);
19524}
19525_ACEOF
19526rm -f conftest$ac_exeext
19527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19528 (eval $ac_link) 2>&5
19529 ac_status=$?
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19533 (eval $ac_try) 2>&5
19534 ac_status=$?
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); }; }; then
19537 :
19538else
19539 echo "$as_me: program exited with status $ac_status" >&5
19540echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019541sed 's/^/| /' conftest.$ac_ext >&5
19542
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019543( exit $ac_status )
19544ac_cv_header_stdc=no
19545fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019546rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019547fi
19548fi
19549fi
19550echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19551echo "${ECHO_T}$ac_cv_header_stdc" >&6
19552if test $ac_cv_header_stdc = yes; then
19553
19554cat >>confdefs.h <<\_ACEOF
19555#define STDC_HEADERS 1
19556_ACEOF
19557
19558fi
19559
19560
mostang.com!davidm6af90d02003-02-15 08:53:55 +000019561
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019562
19563
19564
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019565
hp.com!davidm9bd061e2003-09-25 05:29:14 +000019566
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019567for ac_header in asm/ptrace_offsets.h endian.h execinfo.h ia64intrin.h \
hp.com!davidm9bd061e2003-09-25 05:29:14 +000019568 sys/uc_access.h unistd.h signal.h
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019569do
19570as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19571if eval "test \"\${$as_ac_Header+set}\" = set"; then
19572 echo "$as_me:$LINENO: checking for $ac_header" >&5
19573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19574if eval "test \"\${$as_ac_Header+set}\" = set"; then
19575 echo $ECHO_N "(cached) $ECHO_C" >&6
19576fi
19577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19579else
19580 # Is the header compilable?
19581echo "$as_me:$LINENO: checking $ac_header usability" >&5
19582echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19583cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019584/* confdefs.h. */
19585_ACEOF
19586cat confdefs.h >>conftest.$ac_ext
19587cat >>conftest.$ac_ext <<_ACEOF
19588/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019589$ac_includes_default
19590#include <$ac_header>
19591_ACEOF
19592rm -f conftest.$ac_objext
19593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019594 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019595 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019601 { ac_try='test -z "$ac_c_werror_flag"
19602 || test ! -s conftest.err'
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; } &&
19608 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19611 ac_status=$?
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; }; then
19614 ac_header_compiler=yes
19615else
19616 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019617sed 's/^/| /' conftest.$ac_ext >&5
19618
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019619ac_header_compiler=no
19620fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019622echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19623echo "${ECHO_T}$ac_header_compiler" >&6
19624
19625# Is the header present?
19626echo "$as_me:$LINENO: checking $ac_header presence" >&5
19627echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19628cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019629/* confdefs.h. */
19630_ACEOF
19631cat confdefs.h >>conftest.$ac_ext
19632cat >>conftest.$ac_ext <<_ACEOF
19633/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019634#include <$ac_header>
19635_ACEOF
19636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19638 ac_status=$?
19639 grep -v '^ *+' conftest.er1 >conftest.err
19640 rm -f conftest.er1
19641 cat conftest.err >&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); } >/dev/null; then
19644 if test -s conftest.err; then
19645 ac_cpp_err=$ac_c_preproc_warn_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019647 else
19648 ac_cpp_err=
19649 fi
19650else
19651 ac_cpp_err=yes
19652fi
19653if test -z "$ac_cpp_err"; then
19654 ac_header_preproc=yes
19655else
19656 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019657sed 's/^/| /' conftest.$ac_ext >&5
19658
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019659 ac_header_preproc=no
19660fi
19661rm -f conftest.err conftest.$ac_ext
19662echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19663echo "${ECHO_T}$ac_header_preproc" >&6
19664
19665# So? What about this header?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19667 yes:no: )
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19672 ac_header_preproc=yes
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019673 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019674 no:yes:* )
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19682echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019687 (
19688 cat <<\_ASBOX
hp.com!davidmb1d369a2003-11-26 18:59:24 +000019689## ----------------------------------------- ##
19690## Report this to libunwind@linux.hpl.hp.com ##
19691## ----------------------------------------- ##
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019692_ASBOX
19693 ) |
19694 sed "s/^/$as_me: WARNING: /" >&2
19695 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019696esac
19697echo "$as_me:$LINENO: checking for $ac_header" >&5
19698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19699if eval "test \"\${$as_ac_Header+set}\" = set"; then
19700 echo $ECHO_N "(cached) $ECHO_C" >&6
19701else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019702 eval "$as_ac_Header=\$ac_header_preproc"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019703fi
19704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19706
19707fi
19708if test `eval echo '${'$as_ac_Header'}'` = yes; then
19709 cat >>confdefs.h <<_ACEOF
19710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19711_ACEOF
19712
19713fi
19714
19715done
19716
19717
19718echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19719echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19720if test "${ac_cv_c_const+set}" = set; then
19721 echo $ECHO_N "(cached) $ECHO_C" >&6
19722else
19723 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019724/* confdefs.h. */
19725_ACEOF
19726cat confdefs.h >>conftest.$ac_ext
19727cat >>conftest.$ac_ext <<_ACEOF
19728/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019729
19730int
19731main ()
19732{
19733/* FIXME: Include the comments suggested by Paul. */
19734#ifndef __cplusplus
19735 /* Ultrix mips cc rejects this. */
19736 typedef int charset[2];
19737 const charset x;
19738 /* SunOS 4.1.1 cc rejects this. */
19739 char const *const *ccp;
19740 char **p;
19741 /* NEC SVR4.0.2 mips cc rejects this. */
19742 struct point {int x, y;};
19743 static struct point const zero = {0,0};
19744 /* AIX XL C 1.02.0.0 rejects this.
19745 It does not let you subtract one const X* pointer from another in
19746 an arm of an if-expression whose if-part is not a constant
19747 expression */
19748 const char *g = "string";
19749 ccp = &g + (g ? g-g : 0);
19750 /* HPUX 7.0 cc rejects these. */
19751 ++ccp;
19752 p = (char**) ccp;
19753 ccp = (char const *const *) p;
19754 { /* SCO 3.2v4 cc rejects this. */
19755 char *t;
19756 char const *s = 0 ? (char *) 0 : (char const *) 0;
19757
19758 *t++ = 0;
19759 }
19760 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19761 int x[] = {25, 17};
19762 const int *foo = &x[0];
19763 ++foo;
19764 }
19765 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19766 typedef const int *iptr;
19767 iptr p = 0;
19768 ++p;
19769 }
19770 { /* AIX XL C 1.02.0.0 rejects this saying
19771 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19772 struct s { int j; const int *ap[3]; };
19773 struct s *b; b->j = 5;
19774 }
19775 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19776 const int foo = 10;
19777 }
19778#endif
19779
19780 ;
19781 return 0;
19782}
19783_ACEOF
19784rm -f conftest.$ac_objext
19785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019786 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019787 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019788 grep -v '^ *+' conftest.er1 >conftest.err
19789 rm -f conftest.er1
19790 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019793 { ac_try='test -z "$ac_c_werror_flag"
19794 || test ! -s conftest.err'
19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796 (eval $ac_try) 2>&5
19797 ac_status=$?
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; } &&
19800 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19802 (eval $ac_try) 2>&5
19803 ac_status=$?
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; }; then
19806 ac_cv_c_const=yes
19807else
19808 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019809sed 's/^/| /' conftest.$ac_ext >&5
19810
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019811ac_cv_c_const=no
19812fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019814fi
19815echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19816echo "${ECHO_T}$ac_cv_c_const" >&6
19817if test $ac_cv_c_const = no; then
19818
19819cat >>confdefs.h <<\_ACEOF
19820#define const
19821_ACEOF
19822
19823fi
19824
19825echo "$as_me:$LINENO: checking for inline" >&5
19826echo $ECHO_N "checking for inline... $ECHO_C" >&6
19827if test "${ac_cv_c_inline+set}" = set; then
19828 echo $ECHO_N "(cached) $ECHO_C" >&6
19829else
19830 ac_cv_c_inline=no
19831for ac_kw in inline __inline__ __inline; do
19832 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019833/* confdefs.h. */
19834_ACEOF
19835cat confdefs.h >>conftest.$ac_ext
19836cat >>conftest.$ac_ext <<_ACEOF
19837/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019838#ifndef __cplusplus
19839typedef int foo_t;
19840static $ac_kw foo_t static_foo () {return 0; }
19841$ac_kw foo_t foo () {return 0; }
19842#endif
19843
19844_ACEOF
19845rm -f conftest.$ac_objext
19846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019847 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019848 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019849 grep -v '^ *+' conftest.er1 >conftest.err
19850 rm -f conftest.er1
19851 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019854 { ac_try='test -z "$ac_c_werror_flag"
19855 || test ! -s conftest.err'
19856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19857 (eval $ac_try) 2>&5
19858 ac_status=$?
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }; } &&
19861 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19863 (eval $ac_try) 2>&5
19864 ac_status=$?
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; }; then
19867 ac_cv_c_inline=$ac_kw; break
19868else
19869 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019870sed 's/^/| /' conftest.$ac_ext >&5
19871
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019872fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019874done
19875
19876fi
19877echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19878echo "${ECHO_T}$ac_cv_c_inline" >&6
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019879
19880
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019881case $ac_cv_c_inline in
19882 inline | yes) ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019883 *)
19884 case $ac_cv_c_inline in
19885 no) ac_val=;;
19886 *) ac_val=$ac_cv_c_inline;;
19887 esac
19888 cat >>confdefs.h <<_ACEOF
19889#ifndef __cplusplus
19890#define inline $ac_val
19891#endif
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019892_ACEOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019893 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019894esac
19895
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019896echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19897echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
19898if test "${ac_cv_type_signal+set}" = set; then
19899 echo $ECHO_N "(cached) $ECHO_C" >&6
19900else
19901 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019902/* confdefs.h. */
19903_ACEOF
19904cat confdefs.h >>conftest.$ac_ext
19905cat >>conftest.$ac_ext <<_ACEOF
19906/* end confdefs.h. */
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019907#include <sys/types.h>
19908#include <signal.h>
19909#ifdef signal
19910# undef signal
19911#endif
19912#ifdef __cplusplus
19913extern "C" void (*signal (int, void (*)(int)))(int);
19914#else
19915void (*signal ()) ();
19916#endif
19917
19918int
19919main ()
19920{
19921int i;
19922 ;
19923 return 0;
19924}
19925_ACEOF
19926rm -f conftest.$ac_objext
19927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019928 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019929 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019930 grep -v '^ *+' conftest.er1 >conftest.err
19931 rm -f conftest.er1
19932 cat conftest.err >&5
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019935 { ac_try='test -z "$ac_c_werror_flag"
19936 || test ! -s conftest.err'
19937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19938 (eval $ac_try) 2>&5
19939 ac_status=$?
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); }; } &&
19942 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19944 (eval $ac_try) 2>&5
19945 ac_status=$?
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); }; }; then
19948 ac_cv_type_signal=void
19949else
19950 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019951sed 's/^/| /' conftest.$ac_ext >&5
19952
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019953ac_cv_type_signal=int
19954fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019956fi
19957echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19958echo "${ECHO_T}$ac_cv_type_signal" >&6
19959
19960cat >>confdefs.h <<_ACEOF
19961#define RETSIGTYPE $ac_cv_type_signal
19962_ACEOF
19963
19964
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019965echo "$as_me:$LINENO: checking for size_t" >&5
19966echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19967if test "${ac_cv_type_size_t+set}" = set; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6
19969else
19970 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019971/* confdefs.h. */
19972_ACEOF
19973cat confdefs.h >>conftest.$ac_ext
19974cat >>conftest.$ac_ext <<_ACEOF
19975/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019976$ac_includes_default
19977int
19978main ()
19979{
19980if ((size_t *) 0)
19981 return 0;
19982if (sizeof (size_t))
19983 return 0;
19984 ;
19985 return 0;
19986}
19987_ACEOF
19988rm -f conftest.$ac_objext
19989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019990 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019991 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019992 grep -v '^ *+' conftest.er1 >conftest.err
19993 rm -f conftest.er1
19994 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019997 { ac_try='test -z "$ac_c_werror_flag"
19998 || test ! -s conftest.err'
19999 { (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); }; } &&
20004 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006 (eval $ac_try) 2>&5
20007 ac_status=$?
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }; }; then
20010 ac_cv_type_size_t=yes
20011else
20012 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020013sed 's/^/| /' conftest.$ac_ext >&5
20014
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020015ac_cv_type_size_t=no
20016fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020018fi
20019echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20020echo "${ECHO_T}$ac_cv_type_size_t" >&6
20021if test $ac_cv_type_size_t = yes; then
20022 :
20023else
20024
20025cat >>confdefs.h <<_ACEOF
20026#define size_t unsigned
20027_ACEOF
20028
20029fi
20030
20031
hp.com!davidm9bd061e2003-09-25 05:29:14 +000020032CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
20033if test x$enable_debug = xyes; then
20034 CPPFLAGS="${CPPFLAGS} -DDEBUG"
20035else
20036 CPPFLAGS="${CPPFLAGS} -DNDEBUG"
20037fi
20038
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020039echo "$as_me:$LINENO: checking for sighandler_t" >&5
20040echo $ECHO_N "checking for sighandler_t... $ECHO_C" >&6
20041if test "${ac_cv_type_sighandler_t+set}" = set; then
20042 echo $ECHO_N "(cached) $ECHO_C" >&6
20043else
20044 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020045/* confdefs.h. */
20046_ACEOF
20047cat confdefs.h >>conftest.$ac_ext
20048cat >>conftest.$ac_ext <<_ACEOF
20049/* end confdefs.h. */
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020050$ac_includes_default
hp.com!davidm9bd061e2003-09-25 05:29:14 +000020051#if HAVE_SIGNAL_H
20052# include <signal.h>
20053#endif
20054
20055
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020056int
20057main ()
20058{
20059if ((sighandler_t *) 0)
20060 return 0;
20061if (sizeof (sighandler_t))
20062 return 0;
20063 ;
20064 return 0;
20065}
20066_ACEOF
20067rm -f conftest.$ac_objext
20068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020069 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020070 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020071 grep -v '^ *+' conftest.er1 >conftest.err
20072 rm -f conftest.er1
20073 cat conftest.err >&5
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020076 { ac_try='test -z "$ac_c_werror_flag"
20077 || test ! -s conftest.err'
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20080 ac_status=$?
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; } &&
20083 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085 (eval $ac_try) 2>&5
20086 ac_status=$?
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; }; then
20089 ac_cv_type_sighandler_t=yes
20090else
20091 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020092sed 's/^/| /' conftest.$ac_ext >&5
20093
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020094ac_cv_type_sighandler_t=no
20095fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020097fi
20098echo "$as_me:$LINENO: result: $ac_cv_type_sighandler_t" >&5
20099echo "${ECHO_T}$ac_cv_type_sighandler_t" >&6
mostang.com!davidm46149fd2003-03-31 18:16:54 +000020100if test $ac_cv_type_sighandler_t = yes; then
20101
20102cat >>confdefs.h <<_ACEOF
20103#define HAVE_SIGHANDLER_T 1
20104_ACEOF
20105
20106
20107fi
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020108
20109
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020110echo "$as_me:$LINENO: checking for working memcmp" >&5
20111echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20112if test "${ac_cv_func_memcmp_working+set}" = set; then
20113 echo $ECHO_N "(cached) $ECHO_C" >&6
20114else
20115 if test "$cross_compiling" = yes; then
20116 ac_cv_func_memcmp_working=no
20117else
20118 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020119/* confdefs.h. */
20120_ACEOF
20121cat confdefs.h >>conftest.$ac_ext
20122cat >>conftest.$ac_ext <<_ACEOF
20123/* end confdefs.h. */
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020124$ac_includes_default
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020125int
20126main ()
20127{
20128
20129 /* Some versions of memcmp are not 8-bit clean. */
20130 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20131 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20132 exit (1);
20133
20134 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20135 or more and with at least one buffer not starting on a 4-byte boundary.
20136 William Lewis provided this test program. */
20137 {
20138 char foo[21];
20139 char bar[21];
20140 int i;
20141 for (i = 0; i < 4; i++)
20142 {
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020143 char *a = foo + i;
20144 char *b = bar + i;
20145 strcpy (a, "--------01111111");
20146 strcpy (b, "--------10000000");
20147 if (memcmp (a, b, 16) >= 0)
20148 exit (1);
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020149 }
20150 exit (0);
20151 }
20152
20153 ;
20154 return 0;
20155}
20156_ACEOF
20157rm -f conftest$ac_exeext
20158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20159 (eval $ac_link) 2>&5
20160 ac_status=$?
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164 (eval $ac_try) 2>&5
20165 ac_status=$?
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; }; then
20168 ac_cv_func_memcmp_working=yes
20169else
20170 echo "$as_me: program exited with status $ac_status" >&5
20171echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020172sed 's/^/| /' conftest.$ac_ext >&5
20173
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020174( exit $ac_status )
20175ac_cv_func_memcmp_working=no
20176fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020177rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020178fi
20179fi
20180echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
20181echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020182test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
20183 "memcmp.$ac_objext" | \
20184 *" memcmp.$ac_objext" | \
20185 "memcmp.$ac_objext "* | \
20186 *" memcmp.$ac_objext "* ) ;;
20187 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
20188esac
20189
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020190
20191echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20192echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20193if test "${ac_cv_type_signal+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
20195else
20196 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020197/* confdefs.h. */
20198_ACEOF
20199cat confdefs.h >>conftest.$ac_ext
20200cat >>conftest.$ac_ext <<_ACEOF
20201/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020202#include <sys/types.h>
20203#include <signal.h>
20204#ifdef signal
20205# undef signal
20206#endif
20207#ifdef __cplusplus
20208extern "C" void (*signal (int, void (*)(int)))(int);
20209#else
20210void (*signal ()) ();
20211#endif
20212
20213int
20214main ()
20215{
20216int i;
20217 ;
20218 return 0;
20219}
20220_ACEOF
20221rm -f conftest.$ac_objext
20222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020223 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020224 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020225 grep -v '^ *+' conftest.er1 >conftest.err
20226 rm -f conftest.er1
20227 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020230 { ac_try='test -z "$ac_c_werror_flag"
20231 || test ! -s conftest.err'
20232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233 (eval $ac_try) 2>&5
20234 ac_status=$?
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }; } &&
20237 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239 (eval $ac_try) 2>&5
20240 ac_status=$?
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; }; then
20243 ac_cv_type_signal=void
20244else
20245 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020246sed 's/^/| /' conftest.$ac_ext >&5
20247
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020248ac_cv_type_signal=int
20249fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020251fi
20252echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20253echo "${ECHO_T}$ac_cv_type_signal" >&6
20254
20255cat >>confdefs.h <<_ACEOF
20256#define RETSIGTYPE $ac_cv_type_signal
20257_ACEOF
20258
20259
20260
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020261
20262
20263
20264for ac_func in dl_iterate_phdr dlmodinfo getunwind ttrace
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020265do
20266as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20267echo "$as_me:$LINENO: checking for $ac_func" >&5
20268echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20269if eval "test \"\${$as_ac_var+set}\" = set"; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
20271else
20272 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020273/* confdefs.h. */
20274_ACEOF
20275cat confdefs.h >>conftest.$ac_ext
20276cat >>conftest.$ac_ext <<_ACEOF
20277/* end confdefs.h. */
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020278/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20280#define $ac_func innocuous_$ac_func
20281
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020282/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020283 which can conflict with char $ac_func (); below.
20284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20285 <limits.h> exists even on freestanding compilers. */
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020286
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020287#ifdef __STDC__
20288# include <limits.h>
20289#else
20290# include <assert.h>
20291#endif
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020292
20293#undef $ac_func
20294
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020295/* Override any gcc2 internal prototype to avoid an error. */
20296#ifdef __cplusplus
20297extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020298{
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020299#endif
20300/* We use char because int might match the return type of a gcc2
20301 builtin and then its argument prototype would still apply. */
20302char $ac_func ();
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020303/* The GNU C library defines this for functions which it implements
20304 to always fail with ENOSYS. Some functions are actually named
20305 something starting with __ and the normal name is an alias. */
20306#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20307choke me
20308#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020309char (*f) () = $ac_func;
20310#endif
20311#ifdef __cplusplus
20312}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020313#endif
20314
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020315int
20316main ()
20317{
20318return f != $ac_func;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020319 ;
20320 return 0;
20321}
20322_ACEOF
20323rm -f conftest.$ac_objext conftest$ac_exeext
20324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020325 (eval $ac_link) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020326 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020327 grep -v '^ *+' conftest.er1 >conftest.err
20328 rm -f conftest.er1
20329 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020332 { ac_try='test -z "$ac_c_werror_flag"
20333 || 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_exeext'
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 eval "$as_ac_var=yes"
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 +000020350eval "$as_ac_var=no"
20351fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020352rm -f conftest.err conftest.$ac_objext \
20353 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020354fi
20355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20356echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20357if test `eval echo '${'$as_ac_var'}'` = yes; then
20358 cat >>confdefs.h <<_ACEOF
20359#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20360_ACEOF
20361
20362fi
20363done
20364
20365
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020366get_arch() {
20367 case "$1" in
20368 i?86) echo x86;;
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000020369 hppa*) echo hppa;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020370 *) echo $1;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020371 esac
20372}
20373
20374build_arch=`get_arch $build_cpu`
20375target_arch=`get_arch $target_cpu`
20376
20377
20378
20379if test x$target_arch != x$build_arch; then
20380 REMOTE_ONLY_TRUE=
20381 REMOTE_ONLY_FALSE='#'
20382else
20383 REMOTE_ONLY_TRUE='#'
20384 REMOTE_ONLY_FALSE=
20385fi
20386
20387
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020388
mostang.com!davidmf26451a2003-01-16 03:10:11 +000020389if test x$target_arch = xia64; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020390 ARCH_IA64_TRUE=
20391 ARCH_IA64_FALSE='#'
20392else
20393 ARCH_IA64_TRUE='#'
20394 ARCH_IA64_FALSE=
20395fi
20396
20397
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020398
mostang.com!davidmf26451a2003-01-16 03:10:11 +000020399if test x$target_arch = xhppa; then
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000020400 ARCH_HPPA_TRUE=
20401 ARCH_HPPA_FALSE='#'
20402else
20403 ARCH_HPPA_TRUE='#'
20404 ARCH_HPPA_FALSE=
20405fi
20406
20407
20408
mostang.com!davidmf26451a2003-01-16 03:10:11 +000020409if test x$target_arch = xx86; then
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020410 ARCH_X86_TRUE=
20411 ARCH_X86_FALSE='#'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020412else
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020413 ARCH_X86_TRUE='#'
20414 ARCH_X86_FALSE=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020415fi
20416
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020417
mostang.com!davidma8db0b32003-02-08 10:10:59 +000020418
20419if expr x$target_os : xlinux >/dev/null; then
20420 OS_LINUX_TRUE=
20421 OS_LINUX_FALSE='#'
20422else
20423 OS_LINUX_TRUE='#'
20424 OS_LINUX_FALSE=
20425fi
20426
20427
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000020428
20429if expr x$target_os : xhpux >/dev/null; then
20430 OS_HPUX_TRUE=
20431 OS_HPUX_FALSE='#'
20432else
20433 OS_HPUX_TRUE='#'
20434 OS_HPUX_FALSE=
20435fi
20436
20437
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020438if test x$target_arch != x$build_arch; then
20439 CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020440fi
mostang.com!davidm51e4d342002-12-12 09:17:41 +000020441 ac_config_links="$ac_config_links include/libunwind.h:include/libunwind-$target_arch.h include/tdep.h:include/tdep-$target_arch.h"
20442
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020443
20444# Check whether --enable-debug or --disable-debug was given.
20445if test "${enable_debug+set}" = set; then
20446 enableval="$enable_debug"
20447 enable_debug=yes
20448fi;
20449
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020450if test "x$enable___thread" != xno; then
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +000020451 echo "$as_me:$LINENO: checking for __thread" >&5
20452echo $ECHO_N "checking for __thread... $ECHO_C" >&6
20453if test "${libc_cv_gcc___thread+set}" = set; then
20454 echo $ECHO_N "(cached) $ECHO_C" >&6
20455else
20456 cat > conftest.c <<\EOF
20457 __thread int a = 42;
20458EOF
20459 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
20460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461 (eval $ac_try) 2>&5
20462 ac_status=$?
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; }; then
20465 libc_cv_gcc___thread=yes
20466 else
20467 libc_cv_gcc___thread=no
20468 fi
20469 rm -f conftest*
20470fi
20471echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
20472echo "${ECHO_T}$libc_cv_gcc___thread" >&6
20473 if test "$libc_cv_gcc___thread" = yes; then
mostang.com!davidm57f5fae2002-12-03 08:19:58 +000020474
20475cat >>confdefs.h <<\_ACEOF
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +000020476#define HAVE___THREAD 1
20477_ACEOF
20478
20479 fi
20480else
20481 libc_cv_gcc___thread=no
20482fi
20483
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020484if test x$GCC = xyes; then
mostang.com!davidma8db0b32003-02-08 10:10:59 +000020485 CFLAGS="${CFLAGS} -Wall -Wsign-compare"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020486fi
20487
mostang.com!davidm6af90d02003-02-15 08:53:55 +000020488CCASFLAGS="${CCASFLAGS} ${CPPFLAGS}"
20489
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020490arch="$target_arch"
20491ARCH=`echo $target_arch | tr a-z A-Z`
20492
20493
20494
mostang.com!davidmf648f6f2003-01-17 07:48:52 +000020495
20496 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile doc/Makefile doc/common.tex"
20497
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020498cat >confcache <<\_ACEOF
20499# This file is a shell script that caches the results of configure
20500# tests run on this system so they can be shared between configure
20501# scripts and configure runs, see configure's option --config-cache.
20502# It is not useful on other systems. If it contains results you don't
20503# want to keep, you may remove or edit it.
20504#
20505# config.status only pays attention to the cache file if you give it
20506# the --recheck option to rerun configure.
20507#
20508# `ac_cv_env_foo' variables (set or unset) will be overridden when
20509# loading this file, other *unset* `ac_cv_foo' will be assigned the
20510# following values.
20511
20512_ACEOF
20513
20514# The following way of writing the cache mishandles newlines in values,
20515# but we know of no workaround that is simple, portable, and efficient.
20516# So, don't put newlines in cache variables' values.
20517# Ultrix sh set writes to stderr and can't be redirected directly,
20518# and sets the high bit in the cache file unless we assign to the vars.
20519{
20520 (set) 2>&1 |
20521 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20522 *ac_space=\ *)
20523 # `set' does not quote correctly, so add quotes (double-quote
20524 # substitution turns \\\\ into \\, and sed turns \\ into \).
20525 sed -n \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020526 "s/'/'\\\\''/g;
20527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020528 ;;
20529 *)
20530 # `set' quotes correctly as required by POSIX, so do not add quotes.
20531 sed -n \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020532 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020533 ;;
20534 esac;
20535} |
20536 sed '
20537 t clear
20538 : clear
20539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20540 t end
20541 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20542 : end' >>confcache
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020543if diff $cache_file confcache >/dev/null 2>&1; then :; else
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020544 if test -w $cache_file; then
20545 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20546 cat confcache >$cache_file
20547 else
20548 echo "not updating unwritable cache $cache_file"
20549 fi
20550fi
20551rm -f confcache
20552
20553test "x$prefix" = xNONE && prefix=$ac_default_prefix
20554# Let make expand exec_prefix.
20555test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20556
20557# VPATH may cause trouble with some makes, so we remove $(srcdir),
20558# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20559# trailing colons and then remove the whole line if VPATH becomes empty
20560# (actually we leave an empty line to preserve line numbers).
20561if test "x$srcdir" = x.; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020562 ac_vpsub='/^[ ]*VPATH[ ]*=/{
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020563s/:*\$(srcdir):*/:/;
20564s/:*\${srcdir}:*/:/;
20565s/:*@srcdir@:*/:/;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020566s/^\([^=]*=[ ]*\):*/\1/;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020567s/:*$//;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020568s/^[^=]*=[ ]*$//;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020569}'
20570fi
20571
20572DEFS=-DHAVE_CONFIG_H
20573
20574ac_libobjs=
20575ac_ltlibobjs=
20576for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20577 # 1. Remove the extension, and $U if already installed.
20578 ac_i=`echo "$ac_i" |
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020579 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020580 # 2. Add them.
20581 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20582 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20583done
20584LIBOBJS=$ac_libobjs
20585
20586LTLIBOBJS=$ac_ltlibobjs
20587
20588
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020589if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20590 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20591Usually this means the macro was only invoked conditionally." >&5
20592echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20593Usually this means the macro was only invoked conditionally." >&2;}
20594 { (exit 1); exit 1; }; }
20595fi
20596if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20597 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20598Usually this means the macro was only invoked conditionally." >&5
20599echo "$as_me: error: conditional \"AMDEP\" was never defined.
20600Usually this means the macro was only invoked conditionally." >&2;}
20601 { (exit 1); exit 1; }; }
20602fi
20603if test -z "${REMOTE_ONLY_TRUE}" && test -z "${REMOTE_ONLY_FALSE}"; then
20604 { { echo "$as_me:$LINENO: error: conditional \"REMOTE_ONLY\" was never defined.
20605Usually this means the macro was only invoked conditionally." >&5
20606echo "$as_me: error: conditional \"REMOTE_ONLY\" was never defined.
20607Usually this means the macro was only invoked conditionally." >&2;}
20608 { (exit 1); exit 1; }; }
20609fi
20610if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
20611 { { echo "$as_me:$LINENO: error: conditional \"ARCH_IA64\" was never defined.
20612Usually this means the macro was only invoked conditionally." >&5
20613echo "$as_me: error: conditional \"ARCH_IA64\" was never defined.
20614Usually this means the macro was only invoked conditionally." >&2;}
20615 { (exit 1); exit 1; }; }
20616fi
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000020617if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
20618 { { echo "$as_me:$LINENO: error: conditional \"ARCH_HPPA\" was never defined.
20619Usually this means the macro was only invoked conditionally." >&5
20620echo "$as_me: error: conditional \"ARCH_HPPA\" was never defined.
20621Usually this means the macro was only invoked conditionally." >&2;}
20622 { (exit 1); exit 1; }; }
20623fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020624if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
20625 { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
20626Usually this means the macro was only invoked conditionally." >&5
20627echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
20628Usually this means the macro was only invoked conditionally." >&2;}
20629 { (exit 1); exit 1; }; }
20630fi
mostang.com!davidma8db0b32003-02-08 10:10:59 +000020631if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
20632 { { echo "$as_me:$LINENO: error: conditional \"OS_LINUX\" was never defined.
20633Usually this means the macro was only invoked conditionally." >&5
20634echo "$as_me: error: conditional \"OS_LINUX\" was never defined.
20635Usually this means the macro was only invoked conditionally." >&2;}
20636 { (exit 1); exit 1; }; }
20637fi
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000020638if test -z "${OS_HPUX_TRUE}" && test -z "${OS_HPUX_FALSE}"; then
20639 { { echo "$as_me:$LINENO: error: conditional \"OS_HPUX\" was never defined.
20640Usually this means the macro was only invoked conditionally." >&5
20641echo "$as_me: error: conditional \"OS_HPUX\" was never defined.
20642Usually this means the macro was only invoked conditionally." >&2;}
20643 { (exit 1); exit 1; }; }
20644fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020645
20646: ${CONFIG_STATUS=./config.status}
20647ac_clean_files_save=$ac_clean_files
20648ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20649{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20650echo "$as_me: creating $CONFIG_STATUS" >&6;}
20651cat >$CONFIG_STATUS <<_ACEOF
20652#! $SHELL
20653# Generated by $as_me.
20654# Run this file to recreate the current configuration.
20655# Compiler output produced by configure, useful for debugging
20656# configure, is in config.log if it exists.
20657
20658debug=false
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020659ac_cs_recheck=false
20660ac_cs_silent=false
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020661SHELL=\${CONFIG_SHELL-$SHELL}
20662_ACEOF
20663
20664cat >>$CONFIG_STATUS <<\_ACEOF
20665## --------------------- ##
20666## M4sh Initialization. ##
20667## --------------------- ##
20668
20669# Be Bourne compatible
20670if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20671 emulate sh
20672 NULLCMD=:
20673 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20674 # is contrary to our usage. Disable this feature.
20675 alias -g '${1+"$@"}'='"$@"'
20676elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20677 set -o posix
20678fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020679DUALCASE=1; export DUALCASE # for MKS sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020680
20681# Support unset when possible.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020682if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020683 as_unset=unset
20684else
20685 as_unset=false
20686fi
20687
20688
20689# Work around bugs in pre-3.0 UWIN ksh.
20690$as_unset ENV MAIL MAILPATH
20691PS1='$ '
20692PS2='> '
20693PS4='+ '
20694
20695# NLS nuisances.
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020696for as_var in \
20697 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20698 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20699 LC_TELEPHONE LC_TIME
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020700do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020701 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020702 eval $as_var=C; export $as_var
20703 else
20704 $as_unset $as_var
20705 fi
20706done
20707
20708# Required to use basename.
20709if expr a : '\(a\)' >/dev/null 2>&1; then
20710 as_expr=expr
20711else
20712 as_expr=false
20713fi
20714
20715if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20716 as_basename=basename
20717else
20718 as_basename=false
20719fi
20720
20721
20722# Name of the executable.
20723as_me=`$as_basename "$0" ||
20724$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20725 X"$0" : 'X\(//\)$' \| \
20726 X"$0" : 'X\(/\)$' \| \
20727 . : '\(.\)' 2>/dev/null ||
20728echo X/"$0" |
20729 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20730 /^X\/\(\/\/\)$/{ s//\1/; q; }
20731 /^X\/\(\/\).*/{ s//\1/; q; }
20732 s/.*/./; q'`
20733
20734
20735# PATH needs CR, and LINENO needs CR and PATH.
20736# Avoid depending upon Character Ranges.
20737as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20738as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20739as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20740as_cr_digits='0123456789'
20741as_cr_alnum=$as_cr_Letters$as_cr_digits
20742
20743# The user is always right.
20744if test "${PATH_SEPARATOR+set}" != set; then
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020745 echo "#! /bin/sh" >conf$$.sh
20746 echo "exit 0" >>conf$$.sh
20747 chmod +x conf$$.sh
20748 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020749 PATH_SEPARATOR=';'
20750 else
20751 PATH_SEPARATOR=:
20752 fi
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020753 rm -f conf$$.sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020754fi
20755
20756
20757 as_lineno_1=$LINENO
20758 as_lineno_2=$LINENO
20759 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20760 test "x$as_lineno_1" != "x$as_lineno_2" &&
20761 test "x$as_lineno_3" = "x$as_lineno_2" || {
20762 # Find who we are. Look in the path if we contain no path at all
20763 # relative or not.
20764 case $0 in
20765 *[\\/]* ) as_myself=$0 ;;
20766 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20767for as_dir in $PATH
20768do
20769 IFS=$as_save_IFS
20770 test -z "$as_dir" && as_dir=.
20771 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20772done
20773
20774 ;;
20775 esac
20776 # We did not find ourselves, most probably we were run as `sh COMMAND'
20777 # in which case we are not to be found in the path.
20778 if test "x$as_myself" = x; then
20779 as_myself=$0
20780 fi
20781 if test ! -f "$as_myself"; then
20782 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20783echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20784 { (exit 1); exit 1; }; }
20785 fi
20786 case $CONFIG_SHELL in
20787 '')
20788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20789for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20790do
20791 IFS=$as_save_IFS
20792 test -z "$as_dir" && as_dir=.
20793 for as_base in sh bash ksh sh5; do
20794 case $as_dir in
20795 /*)
20796 if ("$as_dir/$as_base" -c '
20797 as_lineno_1=$LINENO
20798 as_lineno_2=$LINENO
20799 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20800 test "x$as_lineno_1" != "x$as_lineno_2" &&
20801 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20802 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20803 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20804 CONFIG_SHELL=$as_dir/$as_base
20805 export CONFIG_SHELL
20806 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20807 fi;;
20808 esac
20809 done
20810done
20811;;
20812 esac
20813
20814 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20815 # uniformly replaced by the line number. The first 'sed' inserts a
20816 # line-number line before each line; the second 'sed' does the real
20817 # work. The second script uses 'N' to pair each line-number line
20818 # with the numbered line, and appends trailing '-' during
20819 # substitution so that $LINENO is not a special case at line end.
20820 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20821 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20822 sed '=' <$as_myself |
20823 sed '
20824 N
20825 s,$,-,
20826 : loop
20827 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20828 t loop
20829 s,-$,,
20830 s,^['$as_cr_digits']*\n,,
20831 ' >$as_me.lineno &&
20832 chmod +x $as_me.lineno ||
20833 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20834echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20835 { (exit 1); exit 1; }; }
20836
20837 # Don't try to exec as it changes $[0], causing all sort of problems
20838 # (the dirname of $[0] is not the place where we might find the
20839 # original and so on. Autoconf is especially sensible to this).
20840 . ./$as_me.lineno
20841 # Exit status is that of the last command.
20842 exit
20843}
20844
20845
20846case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20847 *c*,-n*) ECHO_N= ECHO_C='
20848' ECHO_T=' ' ;;
20849 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20850 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20851esac
20852
20853if expr a : '\(a\)' >/dev/null 2>&1; then
20854 as_expr=expr
20855else
20856 as_expr=false
20857fi
20858
20859rm -f conf$$ conf$$.exe conf$$.file
20860echo >conf$$.file
20861if ln -s conf$$.file conf$$ 2>/dev/null; then
20862 # We could just check for DJGPP; but this test a) works b) is more generic
20863 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20864 if test -f conf$$.exe; then
20865 # Don't use ln at all; we don't have any links
20866 as_ln_s='cp -p'
20867 else
20868 as_ln_s='ln -s'
20869 fi
20870elif ln conf$$.file conf$$ 2>/dev/null; then
20871 as_ln_s=ln
20872else
20873 as_ln_s='cp -p'
20874fi
20875rm -f conf$$ conf$$.exe conf$$.file
20876
20877if mkdir -p . 2>/dev/null; then
20878 as_mkdir_p=:
20879else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020880 test -d ./-p && rmdir ./-p
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020881 as_mkdir_p=false
20882fi
20883
20884as_executable_p="test -f"
20885
20886# Sed expression to map a string onto a valid CPP name.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020887as_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 +000020888
20889# Sed expression to map a string onto a valid variable name.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020890as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020891
20892
20893# IFS
20894# We need space, tab and new line, in precisely that order.
20895as_nl='
20896'
20897IFS=" $as_nl"
20898
20899# CDPATH.
20900$as_unset CDPATH
20901
20902exec 6>&1
20903
20904# Open the log real soon, to keep \$[0] and so on meaningful, and to
20905# report actual input values of CONFIG_FILES etc. instead of their
20906# values after options handling. Logging --version etc. is OK.
20907exec 5>>config.log
20908{
20909 echo
20910 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20911## Running $as_me. ##
20912_ASBOX
20913} >&5
20914cat >&5 <<_CSEOF
20915
hp.com!davidmb1d369a2003-11-26 18:59:24 +000020916This file was extended by libunwind $as_me 0.95, which was
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020917generated by GNU Autoconf 2.58. Invocation command line was
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020918
20919 CONFIG_FILES = $CONFIG_FILES
20920 CONFIG_HEADERS = $CONFIG_HEADERS
20921 CONFIG_LINKS = $CONFIG_LINKS
20922 CONFIG_COMMANDS = $CONFIG_COMMANDS
20923 $ $0 $@
20924
20925_CSEOF
20926echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20927echo >&5
20928_ACEOF
20929
20930# Files that config.status was made for.
20931if test -n "$ac_config_files"; then
20932 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20933fi
20934
20935if test -n "$ac_config_headers"; then
20936 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20937fi
20938
20939if test -n "$ac_config_links"; then
20940 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20941fi
20942
20943if test -n "$ac_config_commands"; then
20944 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20945fi
20946
20947cat >>$CONFIG_STATUS <<\_ACEOF
20948
20949ac_cs_usage="\
20950\`$as_me' instantiates files from templates according to the
20951current configuration.
20952
20953Usage: $0 [OPTIONS] [FILE]...
20954
20955 -h, --help print this help, then exit
20956 -V, --version print version number, then exit
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020957 -q, --quiet do not print progress messages
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020958 -d, --debug don't remove temporary files
20959 --recheck update $as_me by reconfiguring in the same conditions
20960 --file=FILE[:TEMPLATE]
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020961 instantiate the configuration file FILE
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020962 --header=FILE[:TEMPLATE]
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020963 instantiate the configuration header FILE
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020964
20965Configuration files:
20966$config_files
20967
20968Configuration headers:
20969$config_headers
20970
20971Configuration links:
20972$config_links
20973
20974Configuration commands:
20975$config_commands
20976
20977Report bugs to <bug-autoconf@gnu.org>."
20978_ACEOF
20979
20980cat >>$CONFIG_STATUS <<_ACEOF
20981ac_cs_version="\\
hp.com!davidmb1d369a2003-11-26 18:59:24 +000020982libunwind config.status 0.95
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020983configured by $0, generated by GNU Autoconf 2.58,
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020984 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20985
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020986Copyright (C) 2003 Free Software Foundation, Inc.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020987This config.status script is free software; the Free Software Foundation
20988gives unlimited permission to copy, distribute and modify it."
20989srcdir=$srcdir
20990INSTALL="$INSTALL"
20991_ACEOF
20992
20993cat >>$CONFIG_STATUS <<\_ACEOF
20994# If no file are specified by the user, then we need to provide default
20995# value. By we need to know if files were specified by the user.
20996ac_need_defaults=:
20997while test $# != 0
20998do
20999 case $1 in
21000 --*=*)
21001 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21002 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21003 ac_shift=:
21004 ;;
21005 -*)
21006 ac_option=$1
21007 ac_optarg=$2
21008 ac_shift=shift
21009 ;;
21010 *) # This is not an option, so the user has probably given explicit
21011 # arguments.
21012 ac_option=$1
21013 ac_need_defaults=false;;
21014 esac
21015
21016 case $ac_option in
21017 # Handling of the options.
21018_ACEOF
mostang.com!davidma8db0b32003-02-08 10:10:59 +000021019cat >>$CONFIG_STATUS <<\_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021020 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21021 ac_cs_recheck=: ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021022 --version | --vers* | -V )
21023 echo "$ac_cs_version"; exit 0 ;;
21024 --he | --h)
21025 # Conflict between --help and --header
21026 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21027Try \`$0 --help' for more information." >&5
21028echo "$as_me: error: ambiguous option: $1
21029Try \`$0 --help' for more information." >&2;}
21030 { (exit 1); exit 1; }; };;
21031 --help | --hel | -h )
21032 echo "$ac_cs_usage"; exit 0 ;;
21033 --debug | --d* | -d )
21034 debug=: ;;
21035 --file | --fil | --fi | --f )
21036 $ac_shift
21037 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21038 ac_need_defaults=false;;
21039 --header | --heade | --head | --hea )
21040 $ac_shift
21041 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21042 ac_need_defaults=false;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21044 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21045 ac_cs_silent=: ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021046
21047 # This is an error.
21048 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21049Try \`$0 --help' for more information." >&5
21050echo "$as_me: error: unrecognized option: $1
21051Try \`$0 --help' for more information." >&2;}
21052 { (exit 1); exit 1; }; } ;;
21053
21054 *) ac_config_targets="$ac_config_targets $1" ;;
21055
21056 esac
21057 shift
21058done
21059
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021060ac_configure_extra_args=
21061
21062if $ac_cs_silent; then
21063 exec 6>/dev/null
21064 ac_configure_extra_args="$ac_configure_extra_args --silent"
21065fi
21066
21067_ACEOF
21068cat >>$CONFIG_STATUS <<_ACEOF
21069if \$ac_cs_recheck; then
21070 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21071 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21072fi
21073
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021074_ACEOF
21075
21076cat >>$CONFIG_STATUS <<_ACEOF
21077#
21078# INIT-COMMANDS section.
21079#
21080
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021081AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021082
21083_ACEOF
21084
21085
21086
21087cat >>$CONFIG_STATUS <<\_ACEOF
21088for ac_config_target in $ac_config_targets
21089do
21090 case "$ac_config_target" in
21091 # Handling of arguments.
21092 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21093 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21094 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21095 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
mostang.com!davidmf648f6f2003-01-17 07:48:52 +000021096 "doc/common.tex" ) CONFIG_FILES="$CONFIG_FILES doc/common.tex" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021097 "include/libunwind.h" ) CONFIG_LINKS="$CONFIG_LINKS include/libunwind.h:include/libunwind-$target_arch.h" ;;
mostang.com!davidm51e4d342002-12-12 09:17:41 +000021098 "include/tdep.h" ) CONFIG_LINKS="$CONFIG_LINKS include/tdep.h:include/tdep-$target_arch.h" ;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021099 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021100 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21101 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21102echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21103 { (exit 1); exit 1; }; };;
21104 esac
21105done
21106
21107# If the user did not use the arguments to specify the items to instantiate,
21108# then the envvar interface is used. Set only those that are not.
21109# We use the long form for the default assignment because of an extremely
21110# bizarre bug on SunOS 4.1.3.
21111if $ac_need_defaults; then
21112 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21113 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21114 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
21115 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21116fi
21117
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021118# Have a temporary directory for convenience. Make it in the build tree
21119# simply because there is no reason to put it here, and in addition,
21120# creating and moving files from /tmp can sometimes cause problems.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021121# Create a temporary directory, and hook for its removal unless debugging.
21122$debug ||
21123{
21124 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21125 trap '{ (exit 1); exit 1; }' 1 2 13 15
21126}
21127
21128# Create a (secure) tmp directory for tmp files.
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021129
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021130{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021131 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021132 test -n "$tmp" && test -d "$tmp"
21133} ||
21134{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021135 tmp=./confstat$$-$RANDOM
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021136 (umask 077 && mkdir $tmp)
21137} ||
21138{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021139 echo "$me: cannot create a temporary directory in ." >&2
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021140 { (exit 1); exit 1; }
21141}
21142
21143_ACEOF
21144
21145cat >>$CONFIG_STATUS <<_ACEOF
21146
21147#
21148# CONFIG_FILES section.
21149#
21150
21151# No need to generate the scripts if there are no CONFIG_FILES.
21152# This happens for instance when ./config.status config.h
21153if test -n "\$CONFIG_FILES"; then
21154 # Protect against being on the right side of a sed subst in config.status.
21155 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21156 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21157s,@SHELL@,$SHELL,;t t
21158s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21159s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21160s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21161s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21162s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21163s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21164s,@exec_prefix@,$exec_prefix,;t t
21165s,@prefix@,$prefix,;t t
21166s,@program_transform_name@,$program_transform_name,;t t
21167s,@bindir@,$bindir,;t t
21168s,@sbindir@,$sbindir,;t t
21169s,@libexecdir@,$libexecdir,;t t
21170s,@datadir@,$datadir,;t t
21171s,@sysconfdir@,$sysconfdir,;t t
21172s,@sharedstatedir@,$sharedstatedir,;t t
21173s,@localstatedir@,$localstatedir,;t t
21174s,@libdir@,$libdir,;t t
21175s,@includedir@,$includedir,;t t
21176s,@oldincludedir@,$oldincludedir,;t t
21177s,@infodir@,$infodir,;t t
21178s,@mandir@,$mandir,;t t
21179s,@build_alias@,$build_alias,;t t
21180s,@host_alias@,$host_alias,;t t
21181s,@target_alias@,$target_alias,;t t
21182s,@DEFS@,$DEFS,;t t
21183s,@ECHO_C@,$ECHO_C,;t t
21184s,@ECHO_N@,$ECHO_N,;t t
21185s,@ECHO_T@,$ECHO_T,;t t
21186s,@LIBS@,$LIBS,;t t
21187s,@build@,$build,;t t
21188s,@build_cpu@,$build_cpu,;t t
21189s,@build_vendor@,$build_vendor,;t t
21190s,@build_os@,$build_os,;t t
21191s,@host@,$host,;t t
21192s,@host_cpu@,$host_cpu,;t t
21193s,@host_vendor@,$host_vendor,;t t
21194s,@host_os@,$host_os,;t t
21195s,@target@,$target,;t t
21196s,@target_cpu@,$target_cpu,;t t
21197s,@target_vendor@,$target_vendor,;t t
21198s,@target_os@,$target_os,;t t
21199s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21200s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21201s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21202s,@PACKAGE@,$PACKAGE,;t t
21203s,@VERSION@,$VERSION,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021204s,@ACLOCAL@,$ACLOCAL,;t t
21205s,@AUTOCONF@,$AUTOCONF,;t t
21206s,@AUTOMAKE@,$AUTOMAKE,;t t
21207s,@AUTOHEADER@,$AUTOHEADER,;t t
21208s,@MAKEINFO@,$MAKEINFO,;t t
21209s,@AMTAR@,$AMTAR,;t t
21210s,@install_sh@,$install_sh,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021211s,@STRIP@,$STRIP,;t t
21212s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021213s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21214s,@AWK@,$AWK,;t t
21215s,@SET_MAKE@,$SET_MAKE,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021216s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21217s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21218s,@MAINT@,$MAINT,;t t
21219s,@CC@,$CC,;t t
21220s,@CFLAGS@,$CFLAGS,;t t
21221s,@LDFLAGS@,$LDFLAGS,;t t
21222s,@CPPFLAGS@,$CPPFLAGS,;t t
21223s,@ac_ct_CC@,$ac_ct_CC,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021224s,@EXEEXT@,$EXEEXT,;t t
21225s,@OBJEXT@,$OBJEXT,;t t
21226s,@DEPDIR@,$DEPDIR,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021227s,@am__include@,$am__include,;t t
21228s,@am__quote@,$am__quote,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021229s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21230s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21231s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021232s,@CCDEPMODE@,$CCDEPMODE,;t t
mostang.com!davidm4f17bce2003-03-28 07:43:22 +000021233s,@CXX@,$CXX,;t t
21234s,@CXXFLAGS@,$CXXFLAGS,;t t
21235s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21236s,@CXXDEPMODE@,$CXXDEPMODE,;t t
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021237s,@EGREP@,$EGREP,;t t
mostang.com!davidmf26451a2003-01-16 03:10:11 +000021238s,@LN_S@,$LN_S,;t t
21239s,@ECHO@,$ECHO,;t t
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021240s,@AR@,$AR,;t t
21241s,@ac_ct_AR@,$ac_ct_AR,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021242s,@RANLIB@,$RANLIB,;t t
21243s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021244s,@CPP@,$CPP,;t t
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021245s,@CXXCPP@,$CXXCPP,;t t
21246s,@F77@,$F77,;t t
21247s,@FFLAGS@,$FFLAGS,;t t
21248s,@ac_ct_F77@,$ac_ct_F77,;t t
mostang.com!davidmf26451a2003-01-16 03:10:11 +000021249s,@LIBTOOL@,$LIBTOOL,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021250s,@CCAS@,$CCAS,;t t
21251s,@CCASFLAGS@,$CCASFLAGS,;t t
mostang.com!davidm6af90d02003-02-15 08:53:55 +000021252s,@LIBOBJS@,$LIBOBJS,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021253s,@REMOTE_ONLY_TRUE@,$REMOTE_ONLY_TRUE,;t t
21254s,@REMOTE_ONLY_FALSE@,$REMOTE_ONLY_FALSE,;t t
21255s,@ARCH_IA64_TRUE@,$ARCH_IA64_TRUE,;t t
21256s,@ARCH_IA64_FALSE@,$ARCH_IA64_FALSE,;t t
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000021257s,@ARCH_HPPA_TRUE@,$ARCH_HPPA_TRUE,;t t
21258s,@ARCH_HPPA_FALSE@,$ARCH_HPPA_FALSE,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021259s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t
21260s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t
mostang.com!davidma8db0b32003-02-08 10:10:59 +000021261s,@OS_LINUX_TRUE@,$OS_LINUX_TRUE,;t t
21262s,@OS_LINUX_FALSE@,$OS_LINUX_FALSE,;t t
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000021263s,@OS_HPUX_TRUE@,$OS_HPUX_TRUE,;t t
21264s,@OS_HPUX_FALSE@,$OS_HPUX_FALSE,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021265s,@arch@,$arch,;t t
21266s,@ARCH@,$ARCH,;t t
21267s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21268CEOF
21269
21270_ACEOF
21271
21272 cat >>$CONFIG_STATUS <<\_ACEOF
21273 # Split the substitutions into bite-sized pieces for seds with
21274 # small command number limits, like on Digital OSF/1 and HP-UX.
21275 ac_max_sed_lines=48
21276 ac_sed_frag=1 # Number of current file.
21277 ac_beg=1 # First line for current file.
21278 ac_end=$ac_max_sed_lines # Line after last line for current file.
21279 ac_more_lines=:
21280 ac_sed_cmds=
21281 while $ac_more_lines; do
21282 if test $ac_beg -gt 1; then
21283 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21284 else
21285 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21286 fi
21287 if test ! -s $tmp/subs.frag; then
21288 ac_more_lines=false
21289 else
21290 # The purpose of the label and of the branching condition is to
21291 # speed up the sed processing (if there are no `@' at all, there
21292 # is no need to browse any of the substitutions).
21293 # These are the two extra sed commands mentioned above.
21294 (echo ':t
21295 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21296 if test -z "$ac_sed_cmds"; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021297 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021298 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021299 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021300 fi
21301 ac_sed_frag=`expr $ac_sed_frag + 1`
21302 ac_beg=$ac_end
21303 ac_end=`expr $ac_end + $ac_max_sed_lines`
21304 fi
21305 done
21306 if test -z "$ac_sed_cmds"; then
21307 ac_sed_cmds=cat
21308 fi
21309fi # test -n "$CONFIG_FILES"
21310
21311_ACEOF
21312cat >>$CONFIG_STATUS <<\_ACEOF
21313for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21314 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21315 case $ac_file in
21316 - | *:- | *:-:* ) # input from stdin
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021317 cat >$tmp/stdin
21318 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21319 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021320 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021321 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021322 * ) ac_file_in=$ac_file.in ;;
21323 esac
21324
21325 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21326 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21327$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021328 X"$ac_file" : 'X\(//\)[^/]' \| \
21329 X"$ac_file" : 'X\(//\)$' \| \
21330 X"$ac_file" : 'X\(/\)' \| \
21331 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021332echo X"$ac_file" |
21333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21335 /^X\(\/\/\)$/{ s//\1/; q; }
21336 /^X\(\/\).*/{ s//\1/; q; }
21337 s/.*/./; q'`
21338 { if $as_mkdir_p; then
21339 mkdir -p "$ac_dir"
21340 else
21341 as_dir="$ac_dir"
21342 as_dirs=
21343 while test ! -d "$as_dir"; do
21344 as_dirs="$as_dir $as_dirs"
21345 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21346$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021347 X"$as_dir" : 'X\(//\)[^/]' \| \
21348 X"$as_dir" : 'X\(//\)$' \| \
21349 X"$as_dir" : 'X\(/\)' \| \
21350 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021351echo X"$as_dir" |
21352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21353 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21354 /^X\(\/\/\)$/{ s//\1/; q; }
21355 /^X\(\/\).*/{ s//\1/; q; }
21356 s/.*/./; q'`
21357 done
21358 test ! -n "$as_dirs" || mkdir $as_dirs
21359 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21360echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21361 { (exit 1); exit 1; }; }; }
21362
21363 ac_builddir=.
21364
21365if test "$ac_dir" != .; then
21366 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21367 # A "../" for each directory in $ac_dir_suffix.
21368 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21369else
21370 ac_dir_suffix= ac_top_builddir=
21371fi
21372
21373case $srcdir in
21374 .) # No --srcdir option. We are building in place.
21375 ac_srcdir=.
21376 if test -z "$ac_top_builddir"; then
21377 ac_top_srcdir=.
21378 else
21379 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21380 fi ;;
21381 [\\/]* | ?:[\\/]* ) # Absolute path.
21382 ac_srcdir=$srcdir$ac_dir_suffix;
21383 ac_top_srcdir=$srcdir ;;
21384 *) # Relative path.
21385 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21386 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21387esac
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021388case "$ac_dir" in
21389.) ac_abs_builddir=$ac_builddir;;
21390*)
21391 case $ac_builddir in
21392 .) ac_abs_builddir="$ac_dir";;
21393 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
21394 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
21395 esac;;
21396esac
21397case "$ac_dir" in
21398.) ac_abs_top_builddir=${ac_top_builddir}.;;
21399*)
21400 case ${ac_top_builddir}. in
21401 .) ac_abs_top_builddir="$ac_dir";;
21402 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21403 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
21404 esac;;
21405esac
21406case "$ac_dir" in
21407.) ac_abs_srcdir=$ac_srcdir;;
21408*)
21409 case $ac_srcdir in
21410 .) ac_abs_srcdir="$ac_dir";;
21411 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21412 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
21413 esac;;
21414esac
21415case "$ac_dir" in
21416.) ac_abs_top_srcdir=$ac_top_srcdir;;
21417*)
21418 case $ac_top_srcdir in
21419 .) ac_abs_top_srcdir="$ac_dir";;
21420 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21421 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
21422 esac;;
21423esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021424
21425
21426 case $INSTALL in
21427 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21428 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21429 esac
21430
21431 if test x"$ac_file" != x-; then
21432 { echo "$as_me:$LINENO: creating $ac_file" >&5
21433echo "$as_me: creating $ac_file" >&6;}
21434 rm -f "$ac_file"
21435 fi
21436 # Let's still pretend it is `configure' which instantiates (i.e., don't
21437 # use $as_me), people would be surprised to read:
21438 # /* config.h. Generated by config.status. */
21439 if test x"$ac_file" = x-; then
21440 configure_input=
21441 else
21442 configure_input="$ac_file. "
21443 fi
21444 configure_input=$configure_input"Generated from `echo $ac_file_in |
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021445 sed 's,.*/,,'` by configure."
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021446
21447 # First look for the input files in the build tree, otherwise in the
21448 # src tree.
21449 ac_file_inputs=`IFS=:
21450 for f in $ac_file_in; do
21451 case $f in
21452 -) echo $tmp/stdin ;;
21453 [\\/$]*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021454 # Absolute (can't be DOS-style, as IFS=:)
21455 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021456echo "$as_me: error: cannot find input file: $f" >&2;}
21457 { (exit 1); exit 1; }; }
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021458 echo "$f";;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021459 *) # Relative
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021460 if test -f "$f"; then
21461 # Build tree
21462 echo "$f"
21463 elif test -f "$srcdir/$f"; then
21464 # Source tree
21465 echo "$srcdir/$f"
21466 else
21467 # /dev/null tree
21468 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021469echo "$as_me: error: cannot find input file: $f" >&2;}
21470 { (exit 1); exit 1; }; }
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021471 fi;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021472 esac
21473 done` || { (exit 1); exit 1; }
21474_ACEOF
21475cat >>$CONFIG_STATUS <<_ACEOF
21476 sed "$ac_vpsub
21477$extrasub
21478_ACEOF
21479cat >>$CONFIG_STATUS <<\_ACEOF
21480:t
21481/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21482s,@configure_input@,$configure_input,;t t
21483s,@srcdir@,$ac_srcdir,;t t
21484s,@abs_srcdir@,$ac_abs_srcdir,;t t
21485s,@top_srcdir@,$ac_top_srcdir,;t t
21486s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21487s,@builddir@,$ac_builddir,;t t
21488s,@abs_builddir@,$ac_abs_builddir,;t t
21489s,@top_builddir@,$ac_top_builddir,;t t
21490s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21491s,@INSTALL@,$ac_INSTALL,;t t
21492" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21493 rm -f $tmp/stdin
21494 if test x"$ac_file" != x-; then
21495 mv $tmp/out $ac_file
21496 else
21497 cat $tmp/out
21498 rm -f $tmp/out
21499 fi
21500
21501done
21502_ACEOF
21503cat >>$CONFIG_STATUS <<\_ACEOF
21504
21505#
21506# CONFIG_HEADER section.
21507#
21508
21509# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21510# NAME is the cpp macro being defined and VALUE is the value it is being given.
21511#
21512# ac_d sets the value in "#define NAME VALUE" lines.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021513ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21514ac_dB='[ ].*$,\1#\2'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021515ac_dC=' '
21516ac_dD=',;t'
21517# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021518ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021519ac_uB='$,\1#\2define\3'
21520ac_uC=' '
21521ac_uD=',;t'
21522
21523for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21524 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21525 case $ac_file in
21526 - | *:- | *:-:* ) # input from stdin
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021527 cat >$tmp/stdin
21528 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21529 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021530 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021531 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021532 * ) ac_file_in=$ac_file.in ;;
21533 esac
21534
21535 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21536echo "$as_me: creating $ac_file" >&6;}
21537
21538 # First look for the input files in the build tree, otherwise in the
21539 # src tree.
21540 ac_file_inputs=`IFS=:
21541 for f in $ac_file_in; do
21542 case $f in
21543 -) echo $tmp/stdin ;;
21544 [\\/$]*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021545 # Absolute (can't be DOS-style, as IFS=:)
21546 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021547echo "$as_me: error: cannot find input file: $f" >&2;}
21548 { (exit 1); exit 1; }; }
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021549 # Do quote $f, to prevent DOS paths from being IFS'd.
21550 echo "$f";;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021551 *) # Relative
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021552 if test -f "$f"; then
21553 # Build tree
21554 echo "$f"
21555 elif test -f "$srcdir/$f"; then
21556 # Source tree
21557 echo "$srcdir/$f"
21558 else
21559 # /dev/null tree
21560 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021561echo "$as_me: error: cannot find input file: $f" >&2;}
21562 { (exit 1); exit 1; }; }
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021563 fi;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021564 esac
21565 done` || { (exit 1); exit 1; }
21566 # Remove the trailing spaces.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021567 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021568
21569_ACEOF
21570
21571# Transform confdefs.h into two sed scripts, `conftest.defines' and
21572# `conftest.undefs', that substitutes the proper values into
21573# config.h.in to produce config.h. The first handles `#define'
21574# templates, and the second `#undef' templates.
21575# And first: Protect against being on the right side of a sed subst in
21576# config.status. Protect against being in an unquoted here document
21577# in config.status.
21578rm -f conftest.defines conftest.undefs
21579# Using a here document instead of a string reduces the quoting nightmare.
21580# Putting comments in sed scripts is not portable.
21581#
21582# `end' is used to avoid that the second main sed command (meant for
21583# 0-ary CPP macros) applies to n-ary macro definitions.
21584# See the Autoconf documentation for `clear'.
21585cat >confdef2sed.sed <<\_ACEOF
21586s/[\\&,]/\\&/g
21587s,[\\$`],\\&,g
21588t clear
21589: clear
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021590s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021591t end
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021592s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021593: end
21594_ACEOF
21595# If some macros were called several times there might be several times
21596# the same #defines, which is useless. Nevertheless, we may not want to
21597# sort them, since we want the *last* AC-DEFINE to be honored.
21598uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21599sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21600rm -f confdef2sed.sed
21601
21602# This sed command replaces #undef with comments. This is necessary, for
21603# example, in the case of _POSIX_SOURCE, which is predefined and required
21604# on some systems where configure will not decide to define it.
21605cat >>conftest.undefs <<\_ACEOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021606s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021607_ACEOF
21608
21609# Break up conftest.defines because some shells have a limit on the size
21610# of here documents, and old seds have small limits too (100 cmds).
21611echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021612echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021613echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21614echo ' :' >>$CONFIG_STATUS
21615rm -f conftest.tail
21616while grep . conftest.defines >/dev/null
21617do
21618 # Write a limited-size here document to $tmp/defines.sed.
21619 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21620 # Speed up: don't consider the non `#define' lines.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021621 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021622 # Work around the forget-to-reset-the-flag bug.
21623 echo 't clr' >>$CONFIG_STATUS
21624 echo ': clr' >>$CONFIG_STATUS
21625 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21626 echo 'CEOF
21627 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21628 rm -f $tmp/in
21629 mv $tmp/out $tmp/in
21630' >>$CONFIG_STATUS
21631 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21632 rm -f conftest.defines
21633 mv conftest.tail conftest.defines
21634done
21635rm -f conftest.defines
21636echo ' fi # grep' >>$CONFIG_STATUS
21637echo >>$CONFIG_STATUS
21638
21639# Break up conftest.undefs because some shells have a limit on the size
21640# of here documents, and old seds have small limits too (100 cmds).
21641echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21642rm -f conftest.tail
21643while grep . conftest.undefs >/dev/null
21644do
21645 # Write a limited-size here document to $tmp/undefs.sed.
21646 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21647 # Speed up: don't consider the non `#undef'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021648 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021649 # Work around the forget-to-reset-the-flag bug.
21650 echo 't clr' >>$CONFIG_STATUS
21651 echo ': clr' >>$CONFIG_STATUS
21652 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21653 echo 'CEOF
21654 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21655 rm -f $tmp/in
21656 mv $tmp/out $tmp/in
21657' >>$CONFIG_STATUS
21658 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21659 rm -f conftest.undefs
21660 mv conftest.tail conftest.undefs
21661done
21662rm -f conftest.undefs
21663
21664cat >>$CONFIG_STATUS <<\_ACEOF
21665 # Let's still pretend it is `configure' which instantiates (i.e., don't
21666 # use $as_me), people would be surprised to read:
21667 # /* config.h. Generated by config.status. */
21668 if test x"$ac_file" = x-; then
21669 echo "/* Generated by configure. */" >$tmp/config.h
21670 else
21671 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21672 fi
21673 cat $tmp/in >>$tmp/config.h
21674 rm -f $tmp/in
21675 if test x"$ac_file" != x-; then
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021676 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021677 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21678echo "$as_me: $ac_file is unchanged" >&6;}
21679 else
21680 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21681$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021682 X"$ac_file" : 'X\(//\)[^/]' \| \
21683 X"$ac_file" : 'X\(//\)$' \| \
21684 X"$ac_file" : 'X\(/\)' \| \
21685 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021686echo X"$ac_file" |
21687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21688 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21689 /^X\(\/\/\)$/{ s//\1/; q; }
21690 /^X\(\/\).*/{ s//\1/; q; }
21691 s/.*/./; q'`
21692 { if $as_mkdir_p; then
21693 mkdir -p "$ac_dir"
21694 else
21695 as_dir="$ac_dir"
21696 as_dirs=
21697 while test ! -d "$as_dir"; do
21698 as_dirs="$as_dir $as_dirs"
21699 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21700$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021701 X"$as_dir" : 'X\(//\)[^/]' \| \
21702 X"$as_dir" : 'X\(//\)$' \| \
21703 X"$as_dir" : 'X\(/\)' \| \
21704 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021705echo X"$as_dir" |
21706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21708 /^X\(\/\/\)$/{ s//\1/; q; }
21709 /^X\(\/\).*/{ s//\1/; q; }
21710 s/.*/./; q'`
21711 done
21712 test ! -n "$as_dirs" || mkdir $as_dirs
21713 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21714echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21715 { (exit 1); exit 1; }; }; }
21716
21717 rm -f $ac_file
21718 mv $tmp/config.h $ac_file
21719 fi
21720 else
21721 cat $tmp/config.h
21722 rm -f $tmp/config.h
21723 fi
21724 # Run the commands associated with the file.
21725 case $ac_file in
21726 include/config.h ) # update the timestamp
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021727echo 'timestamp for include/config.h' >"include/stamp-h1"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021728 ;;
21729 esac
21730done
21731_ACEOF
21732cat >>$CONFIG_STATUS <<\_ACEOF
21733
21734#
21735# CONFIG_LINKS section.
21736#
21737
21738for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
21739 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21740 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21741
21742 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
21743echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
21744
21745 if test ! -r $srcdir/$ac_source; then
21746 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
21747echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
21748 { (exit 1); exit 1; }; }
21749 fi
21750 rm -f $ac_dest
21751
21752 # Make relative symlinks.
21753 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
21754$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021755 X"$ac_dest" : 'X\(//\)[^/]' \| \
21756 X"$ac_dest" : 'X\(//\)$' \| \
21757 X"$ac_dest" : 'X\(/\)' \| \
21758 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021759echo X"$ac_dest" |
21760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21762 /^X\(\/\/\)$/{ s//\1/; q; }
21763 /^X\(\/\).*/{ s//\1/; q; }
21764 s/.*/./; q'`
21765 { if $as_mkdir_p; then
21766 mkdir -p "$ac_dest_dir"
21767 else
21768 as_dir="$ac_dest_dir"
21769 as_dirs=
21770 while test ! -d "$as_dir"; do
21771 as_dirs="$as_dir $as_dirs"
21772 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21773$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021774 X"$as_dir" : 'X\(//\)[^/]' \| \
21775 X"$as_dir" : 'X\(//\)$' \| \
21776 X"$as_dir" : 'X\(/\)' \| \
21777 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021778echo X"$as_dir" |
21779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21780 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21781 /^X\(\/\/\)$/{ s//\1/; q; }
21782 /^X\(\/\).*/{ s//\1/; q; }
21783 s/.*/./; q'`
21784 done
21785 test ! -n "$as_dirs" || mkdir $as_dirs
21786 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
21787echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
21788 { (exit 1); exit 1; }; }; }
21789
21790 ac_builddir=.
21791
21792if test "$ac_dest_dir" != .; then
21793 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
21794 # A "../" for each directory in $ac_dir_suffix.
21795 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21796else
21797 ac_dir_suffix= ac_top_builddir=
21798fi
21799
21800case $srcdir in
21801 .) # No --srcdir option. We are building in place.
21802 ac_srcdir=.
21803 if test -z "$ac_top_builddir"; then
21804 ac_top_srcdir=.
21805 else
21806 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21807 fi ;;
21808 [\\/]* | ?:[\\/]* ) # Absolute path.
21809 ac_srcdir=$srcdir$ac_dir_suffix;
21810 ac_top_srcdir=$srcdir ;;
21811 *) # Relative path.
21812 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21813 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21814esac
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021815case "$ac_dest_dir" in
21816.) ac_abs_builddir=$ac_builddir;;
21817*)
21818 case $ac_builddir in
21819 .) ac_abs_builddir="$ac_dest_dir";;
21820 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
21821 *) ac_abs_builddir="$ac_dest_dir"/$ac_builddir;;
21822 esac;;
21823esac
21824case "$ac_dest_dir" in
21825.) ac_abs_top_builddir=${ac_top_builddir}.;;
21826*)
21827 case ${ac_top_builddir}. in
21828 .) ac_abs_top_builddir="$ac_dest_dir";;
21829 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21830 *) ac_abs_top_builddir="$ac_dest_dir"/${ac_top_builddir}.;;
21831 esac;;
21832esac
21833case "$ac_dest_dir" in
21834.) ac_abs_srcdir=$ac_srcdir;;
21835*)
21836 case $ac_srcdir in
21837 .) ac_abs_srcdir="$ac_dest_dir";;
21838 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21839 *) ac_abs_srcdir="$ac_dest_dir"/$ac_srcdir;;
21840 esac;;
21841esac
21842case "$ac_dest_dir" in
21843.) ac_abs_top_srcdir=$ac_top_srcdir;;
21844*)
21845 case $ac_top_srcdir in
21846 .) ac_abs_top_srcdir="$ac_dest_dir";;
21847 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21848 *) ac_abs_top_srcdir="$ac_dest_dir"/$ac_top_srcdir;;
21849 esac;;
21850esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021851
21852
21853 case $srcdir in
21854 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
21855 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
21856 esac
21857
21858 # Try a symlink, then a hard link, then a copy.
21859 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
21860 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
21861 cp -p $srcdir/$ac_source $ac_dest ||
21862 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
21863echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
21864 { (exit 1); exit 1; }; }
21865done
21866_ACEOF
21867cat >>$CONFIG_STATUS <<\_ACEOF
21868
21869#
21870# CONFIG_COMMANDS section.
21871#
21872for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21873 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21874 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21875 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21876$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021877 X"$ac_dest" : 'X\(//\)[^/]' \| \
21878 X"$ac_dest" : 'X\(//\)$' \| \
21879 X"$ac_dest" : 'X\(/\)' \| \
21880 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021881echo X"$ac_dest" |
21882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21884 /^X\(\/\/\)$/{ s//\1/; q; }
21885 /^X\(\/\).*/{ s//\1/; q; }
21886 s/.*/./; q'`
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021887 { if $as_mkdir_p; then
21888 mkdir -p "$ac_dir"
21889 else
21890 as_dir="$ac_dir"
21891 as_dirs=
21892 while test ! -d "$as_dir"; do
21893 as_dirs="$as_dir $as_dirs"
21894 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21895$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21896 X"$as_dir" : 'X\(//\)[^/]' \| \
21897 X"$as_dir" : 'X\(//\)$' \| \
21898 X"$as_dir" : 'X\(/\)' \| \
21899 . : '\(.\)' 2>/dev/null ||
21900echo X"$as_dir" |
21901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21902 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21903 /^X\(\/\/\)$/{ s//\1/; q; }
21904 /^X\(\/\).*/{ s//\1/; q; }
21905 s/.*/./; q'`
21906 done
21907 test ! -n "$as_dirs" || mkdir $as_dirs
21908 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21909echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21910 { (exit 1); exit 1; }; }; }
21911
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021912 ac_builddir=.
21913
21914if test "$ac_dir" != .; then
21915 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21916 # A "../" for each directory in $ac_dir_suffix.
21917 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21918else
21919 ac_dir_suffix= ac_top_builddir=
21920fi
21921
21922case $srcdir in
21923 .) # No --srcdir option. We are building in place.
21924 ac_srcdir=.
21925 if test -z "$ac_top_builddir"; then
21926 ac_top_srcdir=.
21927 else
21928 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21929 fi ;;
21930 [\\/]* | ?:[\\/]* ) # Absolute path.
21931 ac_srcdir=$srcdir$ac_dir_suffix;
21932 ac_top_srcdir=$srcdir ;;
21933 *) # Relative path.
21934 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21935 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21936esac
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021937case "$ac_dir" in
21938.) ac_abs_builddir=$ac_builddir;;
21939*)
21940 case $ac_builddir in
21941 .) ac_abs_builddir="$ac_dir";;
21942 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
21943 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
21944 esac;;
21945esac
21946case "$ac_dir" in
21947.) ac_abs_top_builddir=${ac_top_builddir}.;;
21948*)
21949 case ${ac_top_builddir}. in
21950 .) ac_abs_top_builddir="$ac_dir";;
21951 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21952 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
21953 esac;;
21954esac
21955case "$ac_dir" in
21956.) ac_abs_srcdir=$ac_srcdir;;
21957*)
21958 case $ac_srcdir in
21959 .) ac_abs_srcdir="$ac_dir";;
21960 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21961 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
21962 esac;;
21963esac
21964case "$ac_dir" in
21965.) ac_abs_top_srcdir=$ac_top_srcdir;;
21966*)
21967 case $ac_top_srcdir in
21968 .) ac_abs_top_srcdir="$ac_dir";;
21969 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21970 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
21971 esac;;
21972esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021973
21974
21975 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21976echo "$as_me: executing $ac_dest commands" >&6;}
21977 case $ac_dest in
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021978 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21979 # Strip MF so we end up with the name of the file.
21980 mf=`echo "$mf" | sed -e 's/:.*$//'`
21981 # Check whether this is an Automake generated Makefile or not.
21982 # We used to match only the files named `Makefile.in', but
21983 # some people rename them; so instead we look at the file content.
21984 # Grep'ing the first line is not enough: some people post-process
21985 # each Makefile.in and add a new line on top of each file to say so.
21986 # So let's grep whole file.
21987 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21988 dirpart=`(dirname "$mf") 2>/dev/null ||
21989$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021990 X"$mf" : 'X\(//\)[^/]' \| \
21991 X"$mf" : 'X\(//\)$' \| \
21992 X"$mf" : 'X\(/\)' \| \
21993 . : '\(.\)' 2>/dev/null ||
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021994echo X"$mf" |
21995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21996 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21997 /^X\(\/\/\)$/{ s//\1/; q; }
21998 /^X\(\/\).*/{ s//\1/; q; }
21999 s/.*/./; q'`
22000 else
22001 continue
22002 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022003 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22004 # Extract the definition of DEP_FILES from the Makefile without
22005 # running `make'.
22006 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
22007 test -z "$DEPDIR" && continue
22008 # When using ansi2knr, U may be empty or an underscore; expand it
22009 U=`sed -n -e '/^U = / s///p' < "$mf"`
22010 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22011 # We invoke sed twice because it is the simplest approach to
22012 # changing $(DEPDIR) to its actual value in the expansion.
22013 for file in `sed -n -e '
22014 /^DEP_FILES = .*\\\\$/ {
22015 s/^DEP_FILES = //
22016 :loop
22017 s/\\\\$//
22018 p
22019 n
22020 /\\\\$/ b loop
22021 p
22022 }
22023 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
22024 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22025 # Make sure the directory exists.
22026 test -f "$dirpart/$file" && continue
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022027 fdir=`(dirname "$file") 2>/dev/null ||
22028$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000022029 X"$file" : 'X\(//\)[^/]' \| \
22030 X"$file" : 'X\(//\)$' \| \
22031 X"$file" : 'X\(/\)' \| \
22032 . : '\(.\)' 2>/dev/null ||
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022033echo X"$file" |
22034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22035 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22036 /^X\(\/\/\)$/{ s//\1/; q; }
22037 /^X\(\/\).*/{ s//\1/; q; }
22038 s/.*/./; q'`
22039 { if $as_mkdir_p; then
22040 mkdir -p $dirpart/$fdir
22041 else
22042 as_dir=$dirpart/$fdir
22043 as_dirs=
22044 while test ! -d "$as_dir"; do
22045 as_dirs="$as_dir $as_dirs"
22046 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22047$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000022048 X"$as_dir" : 'X\(//\)[^/]' \| \
22049 X"$as_dir" : 'X\(//\)$' \| \
22050 X"$as_dir" : 'X\(/\)' \| \
22051 . : '\(.\)' 2>/dev/null ||
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022052echo X"$as_dir" |
22053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22055 /^X\(\/\/\)$/{ s//\1/; q; }
22056 /^X\(\/\).*/{ s//\1/; q; }
22057 s/.*/./; q'`
22058 done
22059 test ! -n "$as_dirs" || mkdir $as_dirs
22060 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22061echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22062 { (exit 1); exit 1; }; }; }
22063
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022064 # echo "creating $dirpart/$file"
22065 echo '# dummy' > "$dirpart/$file"
22066 done
22067done
22068 ;;
22069 esac
22070done
22071_ACEOF
22072
22073cat >>$CONFIG_STATUS <<\_ACEOF
22074
22075{ (exit 0); exit 0; }
22076_ACEOF
22077chmod +x $CONFIG_STATUS
22078ac_clean_files=$ac_clean_files_save
22079
22080
22081# configure is writing to config.log, and then calls config.status.
22082# config.status does its own redirection, appending to config.log.
22083# Unfortunately, on DOS this fails, as config.log is still kept open
22084# by configure, so config.status won't be able to write to it; its
22085# output is simply discarded. So we exec the FD to /dev/null,
22086# effectively closing config.log, so it can be properly (re)opened and
22087# appended to by config.status. When coming back to configure, we
22088# need to make the FD available again.
22089if test "$no_create" != yes; then
22090 ac_cs_success=:
hp.com!davidm01b02dd2003-09-24 21:51:53 +000022091 ac_config_status_args=
22092 test "$silent" = yes &&
22093 ac_config_status_args="$ac_config_status_args --quiet"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022094 exec 5>/dev/null
hp.com!davidm01b02dd2003-09-24 21:51:53 +000022095 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022096 exec 5>>config.log
22097 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22098 # would make configure fail if this is the last instruction.
22099 $ac_cs_success || { (exit 1); exit 1; }
22100fi
22101