blob: c6d74dd22d75d64f1e8404973b49e83df2a76800 [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!davidmc3fa0b62003-11-24 21:37:22 +00003# Generated by GNU Autoconf 2.58.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004#
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005# Copyright (C) 2003 Free Software Foundation, Inc.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00006# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000022DUALCASE=1; export DUALCASE # for MKS sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000023
24# Support unset when possible.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000025if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000026 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
hp.com!davidm01b02dd2003-09-24 21:51:53 +000039for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000043do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000044 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000045 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
hp.com!davidm01b02dd2003-09-24 21:51:53 +000088 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000092 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
hp.com!davidm01b02dd2003-09-24 21:51:53 +000096 rm -f conf$$.sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000097fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000221 test -d ./-p && rmdir ./-p
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000228as_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 +0000229
230# Sed expression to map a string onto a valid variable name.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000263 # Yippee, $echo works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000274$*
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000275EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
293 fi
294 done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
300 :
301else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
305 #
306 # So, first we look for a working echo in the user's PATH.
307
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000309 for dir in $PATH /usr/ucb; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000310 IFS="$lt_save_ifs"
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
317 fi
318 done
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000319 IFS="$lt_save_ifs"
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000320
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
343 :
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
361
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
366 fi
367 prev="$cmd"
368 done
369
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
377 fi
378 fi
379 fi
380 fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
391
392
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
408ac_default_prefix=/usr/local
409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete. It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
428ac_unique_file="src/backtrace.c"
429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443# include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448# include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459# include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000466ac_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 +0000467ac_subst_files=''
468
469# Initialize some variables set by options.
470ac_init_help=
471ac_init_version=false
472# The variables have the same names as the options, with
473# dashes changed to underlines.
474cache_file=/dev/null
475exec_prefix=NONE
476no_create=
477no_recursion=
478prefix=NONE
479program_prefix=NONE
480program_suffix=NONE
481program_transform_name=s,x,x,
482silent=
483site=
484srcdir=
485verbose=
486x_includes=NONE
487x_libraries=NONE
488
489# Installation directory options.
490# These are left unexpanded so users can "make install exec_prefix=/foo"
491# and all the variables that are supposed to be based on exec_prefix
492# by default will actually change.
493# Use braces instead of parens because sh, perl, etc. also accept them.
494bindir='${exec_prefix}/bin'
495sbindir='${exec_prefix}/sbin'
496libexecdir='${exec_prefix}/libexec'
497datadir='${prefix}/share'
498sysconfdir='${prefix}/etc'
499sharedstatedir='${prefix}/com'
500localstatedir='${prefix}/var'
501libdir='${exec_prefix}/lib'
502includedir='${prefix}/include'
503oldincludedir='/usr/include'
504infodir='${prefix}/info'
505mandir='${prefix}/man'
506
507ac_prev=
508for ac_option
509do
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
515 fi
516
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519 # Accept the important Cygnus configure options, so we can diagnose typos.
520
521 case $ac_option in
522
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526 bindir=$ac_optarg ;;
527
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
532
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
539
540 --config-cache | -C)
541 cache_file=config.cache ;;
542
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
547 datadir=$ac_optarg ;;
548
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
557
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 case $ac_option in
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567 *) ac_optarg=yes ;;
568 esac
569 eval "enable_$ac_feature='$ac_optarg'" ;;
570
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
579
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
583
584 -help | --help | --hel | --he | -h)
585 ac_init_help=long ;;
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
590
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
595
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
602
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 ac_prev=infodir ;;
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
607
608 -libdir | --libdir | --libdi | --libd)
609 ac_prev=libdir ;;
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
611 libdir=$ac_optarg ;;
612
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
619
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
628
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 ac_prev=mandir ;;
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632 mandir=$ac_optarg ;;
633
634 -nfp | --nfp | --nf)
635 # Obsolete; use --without-fp.
636 with_fp=no ;;
637
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
640 no_create=yes ;;
641
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644 no_recursion=yes ;;
645
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
654
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 ac_prev=prefix ;;
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658 prefix=$ac_optarg ;;
659
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
666
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
673
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
690
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
693 silent=yes ;;
694
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 ac_prev=sbindir ;;
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 | --sbi=* | --sb=*)
699 sbindir=$ac_optarg ;;
700
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
704 | --sha | --sh)
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 | --sha=* | --sh=*)
710 sharedstatedir=$ac_optarg ;;
711
712 -site | --site | --sit)
713 ac_prev=site ;;
714 -site=* | --site=* | --sit=*)
715 site=$ac_optarg ;;
716
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 ac_prev=srcdir ;;
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720 srcdir=$ac_optarg ;;
721
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
728
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
733
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
735 verbose=yes ;;
736
737 -version | --version | --versio | --versi | --vers | -V)
738 ac_init_version=: ;;
739
740 -with-* | --with-*)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 case $ac_option in
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749 *) ac_optarg=yes ;;
750 esac
751 eval "with_$ac_package='$ac_optarg'" ;;
752
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
761
762 --x)
763 # Obsolete; use --with-x.
764 with_x=yes ;;
765
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
772
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
779
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
783 ;;
784
785 *=*)
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
793 export $ac_envvar ;;
794
795 *)
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801 ;;
802
803 esac
804done
805
806if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
810fi
811
812# Be sure to have absolute paths.
813for ac_var in exec_prefix prefix
814do
815 eval ac_val=$`echo $ac_var`
816 case $ac_val in
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
820 esac
821done
822
823# Be sure to have absolute paths.
824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000825 localstatedir libdir includedir oldincludedir infodir mandir
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000826do
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
832 esac
833done
834
835# There might be people who depend on the old broken behavior: `$host'
836# used to hold the argument of --host etc.
837# FIXME: To remove some day.
838build=$build_alias
839host=$host_alias
840target=$target_alias
841
842# FIXME: To remove some day.
843if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
849 cross_compiling=yes
850 fi
851fi
852
853ac_tool_prefix=
854test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856test "$silent" = yes && exec 6>/dev/null
857
858
859# Find the source files, if location was not specified.
860if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000869echo X"$0" |
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
874 s/.*/./; q'`
875 srcdir=$ac_confdir
876 if test ! -r $srcdir/$ac_unique_file; then
877 srcdir=..
878 fi
879else
880 ac_srcdir_defaulted=no
881fi
882if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
886 else
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
889 fi
890fi
891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895ac_env_build_alias_set=${build_alias+set}
896ac_env_build_alias_value=$build_alias
897ac_cv_env_build_alias_set=${build_alias+set}
898ac_cv_env_build_alias_value=$build_alias
899ac_env_host_alias_set=${host_alias+set}
900ac_env_host_alias_value=$host_alias
901ac_cv_env_host_alias_set=${host_alias+set}
902ac_cv_env_host_alias_value=$host_alias
903ac_env_target_alias_set=${target_alias+set}
904ac_env_target_alias_value=$target_alias
905ac_cv_env_target_alias_set=${target_alias+set}
906ac_cv_env_target_alias_value=$target_alias
907ac_env_CC_set=${CC+set}
908ac_env_CC_value=$CC
909ac_cv_env_CC_set=${CC+set}
910ac_cv_env_CC_value=$CC
911ac_env_CFLAGS_set=${CFLAGS+set}
912ac_env_CFLAGS_value=$CFLAGS
913ac_cv_env_CFLAGS_set=${CFLAGS+set}
914ac_cv_env_CFLAGS_value=$CFLAGS
915ac_env_LDFLAGS_set=${LDFLAGS+set}
916ac_env_LDFLAGS_value=$LDFLAGS
917ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918ac_cv_env_LDFLAGS_value=$LDFLAGS
919ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920ac_env_CPPFLAGS_value=$CPPFLAGS
921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_cv_env_CPPFLAGS_value=$CPPFLAGS
mostang.com!davidm4f17bce2003-03-28 07:43:22 +0000923ac_env_CXX_set=${CXX+set}
924ac_env_CXX_value=$CXX
925ac_cv_env_CXX_set=${CXX+set}
926ac_cv_env_CXX_value=$CXX
927ac_env_CXXFLAGS_set=${CXXFLAGS+set}
928ac_env_CXXFLAGS_value=$CXXFLAGS
929ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
930ac_cv_env_CXXFLAGS_value=$CXXFLAGS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000931ac_env_CPP_set=${CPP+set}
932ac_env_CPP_value=$CPP
933ac_cv_env_CPP_set=${CPP+set}
934ac_cv_env_CPP_value=$CPP
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000935ac_env_CXXCPP_set=${CXXCPP+set}
936ac_env_CXXCPP_value=$CXXCPP
937ac_cv_env_CXXCPP_set=${CXXCPP+set}
938ac_cv_env_CXXCPP_value=$CXXCPP
939ac_env_F77_set=${F77+set}
940ac_env_F77_value=$F77
941ac_cv_env_F77_set=${F77+set}
942ac_cv_env_F77_value=$F77
943ac_env_FFLAGS_set=${FFLAGS+set}
944ac_env_FFLAGS_value=$FFLAGS
945ac_cv_env_FFLAGS_set=${FFLAGS+set}
946ac_cv_env_FFLAGS_value=$FFLAGS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000947
948#
949# Report the --help message.
950#
951if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
954 cat <<_ACEOF
955\`configure' configures this package to adapt to many kinds of systems.
956
957Usage: $0 [OPTION]... [VAR=VALUE]...
958
959To assign environment variables (e.g., CC, CFLAGS...), specify them as
960VAR=VALUE. See below for descriptions of some of the useful variables.
961
962Defaults for the options are specified in brackets.
963
964Configuration:
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
974
975_ACEOF
976
977 cat <<_ACEOF
978Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000980 [$ac_default_prefix]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000982 [PREFIX]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000983
984By default, \`make install' will install all the files in
985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987for instance \`--prefix=\$HOME'.
988
989For better control, use the options below.
990
991Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1004_ACEOF
1005
1006 cat <<\_ACEOF
1007
1008Program names:
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1012
1013System types:
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 --target=TARGET configure for building compilers for TARGET [HOST]
1017_ACEOF
1018fi
1019
1020if test -n "$ac_init_help"; then
1021
1022 cat <<\_ACEOF
1023
1024Optional Features:
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001027 --enable-maintainer-mode enable make rules and dependencies not useful
1028 (and sometimes confusing) to the casual installer
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001029 --disable-dependency-tracking Speeds up one-time builds
1030 --enable-dependency-tracking Do not reject slow dependency extractors
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001031 --enable-shared[=PKGS]
1032 build shared libraries [default=yes]
1033 --enable-static[=PKGS]
1034 build static libraries [default=yes]
1035 --enable-fast-install[=PKGS]
1036 optimize for fast installation [default=yes]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001037 --disable-libtool-lock avoid locking (might break parallel builds)
1038 --enable-debug turn on debug support (slows down execution)
1039
1040Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1045 both]
1046 --with-tags[=TAGS]
1047 include additional configurations [automatic]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001048
1049Some influential environment variables:
1050 CC C compiler command
1051 CFLAGS C compiler flags
1052 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1053 nonstandard directory <lib dir>
1054 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055 headers in a nonstandard directory <include dir>
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00001056 CXX C++ compiler command
1057 CXXFLAGS C++ compiler flags
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001058 CPP C preprocessor
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001059 CXXCPP C++ preprocessor
1060 F77 Fortran 77 compiler command
1061 FFLAGS Fortran 77 compiler flags
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001062
1063Use these variables to override the choices made by `configure' or to help
1064it to find libraries and programs with nonstandard names/locations.
1065
1066_ACEOF
1067fi
1068
1069if test "$ac_init_help" = "recursive"; then
1070 # If there are subdirs, report their specific --help.
1071 ac_popdir=`pwd`
1072 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1073 test -d $ac_dir || continue
1074 ac_builddir=.
1075
1076if test "$ac_dir" != .; then
1077 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1078 # A "../" for each directory in $ac_dir_suffix.
1079 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1080else
1081 ac_dir_suffix= ac_top_builddir=
1082fi
1083
1084case $srcdir in
1085 .) # No --srcdir option. We are building in place.
1086 ac_srcdir=.
1087 if test -z "$ac_top_builddir"; then
1088 ac_top_srcdir=.
1089 else
1090 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1091 fi ;;
1092 [\\/]* | ?:[\\/]* ) # Absolute path.
1093 ac_srcdir=$srcdir$ac_dir_suffix;
1094 ac_top_srcdir=$srcdir ;;
1095 *) # Relative path.
1096 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1097 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1098esac
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001099case "$ac_dir" in
1100.) ac_abs_builddir=$ac_builddir;;
1101*)
1102 case $ac_builddir in
1103 .) ac_abs_builddir="$ac_dir";;
1104 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
1105 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
1106 esac;;
1107esac
1108case "$ac_dir" in
1109.) ac_abs_top_builddir=${ac_top_builddir}.;;
1110*)
1111 case ${ac_top_builddir}. in
1112 .) ac_abs_top_builddir="$ac_dir";;
1113 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
1115 esac;;
1116esac
1117case "$ac_dir" in
1118.) ac_abs_srcdir=$ac_srcdir;;
1119*)
1120 case $ac_srcdir in
1121 .) ac_abs_srcdir="$ac_dir";;
1122 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1123 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
1124 esac;;
1125esac
1126case "$ac_dir" in
1127.) ac_abs_top_srcdir=$ac_top_srcdir;;
1128*)
1129 case $ac_top_srcdir in
1130 .) ac_abs_top_srcdir="$ac_dir";;
1131 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
1133 esac;;
1134esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001135
1136 cd $ac_dir
1137 # Check for guested configure; otherwise get Cygnus style configure.
1138 if test -f $ac_srcdir/configure.gnu; then
1139 echo
1140 $SHELL $ac_srcdir/configure.gnu --help=recursive
1141 elif test -f $ac_srcdir/configure; then
1142 echo
1143 $SHELL $ac_srcdir/configure --help=recursive
1144 elif test -f $ac_srcdir/configure.ac ||
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001145 test -f $ac_srcdir/configure.in; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001146 echo
1147 $ac_configure --help
1148 else
1149 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1150 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001151 cd "$ac_popdir"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001152 done
1153fi
1154
1155test -n "$ac_init_help" && exit 0
1156if $ac_init_version; then
1157 cat <<\_ACEOF
1158
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001159Copyright (C) 2003 Free Software Foundation, Inc.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001160This configure script is free software; the Free Software Foundation
1161gives unlimited permission to copy, distribute and modify it.
1162_ACEOF
1163 exit 0
1164fi
1165exec 5>config.log
1166cat >&5 <<_ACEOF
1167This file contains any messages produced by compilers while
1168running configure, to aid debugging if configure makes a mistake.
1169
1170It was created by $as_me, which was
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001171generated by GNU Autoconf 2.58. Invocation command line was
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001172
1173 $ $0 $@
1174
1175_ACEOF
1176{
1177cat <<_ASUNAME
1178## --------- ##
1179## Platform. ##
1180## --------- ##
1181
1182hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1183uname -m = `(uname -m) 2>/dev/null || echo unknown`
1184uname -r = `(uname -r) 2>/dev/null || echo unknown`
1185uname -s = `(uname -s) 2>/dev/null || echo unknown`
1186uname -v = `(uname -v) 2>/dev/null || echo unknown`
1187
1188/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1189/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1190
1191/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1192/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1193/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1194hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1195/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1196/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1197/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1198
1199_ASUNAME
1200
1201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1202for as_dir in $PATH
1203do
1204 IFS=$as_save_IFS
1205 test -z "$as_dir" && as_dir=.
1206 echo "PATH: $as_dir"
1207done
1208
1209} >&5
1210
1211cat >&5 <<_ACEOF
1212
1213
1214## ----------- ##
1215## Core tests. ##
1216## ----------- ##
1217
1218_ACEOF
1219
1220
1221# Keep a trace of the command line.
1222# Strip out --no-create and --no-recursion so they do not pile up.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001223# Strip out --silent because we don't want to record it for future runs.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001224# Also quote any args containing shell meta-characters.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001225# Make two passes to allow for proper duplicate-argument suppression.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001226ac_configure_args=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001227ac_configure_args0=
1228ac_configure_args1=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001229ac_sep=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001230ac_must_keep_next=false
1231for ac_pass in 1 2
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001232do
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001233 for ac_arg
1234 do
1235 case $ac_arg in
1236 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238 | -silent | --silent | --silen | --sile | --sil)
1239 continue ;;
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1242 esac
1243 case $ac_pass in
1244 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1245 2)
1246 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1247 if test $ac_must_keep_next = true; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001248 ac_must_keep_next=false # Got value, back to normal.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001249 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001250 case $ac_arg in
1251 *=* | --config-cache | -C | -disable-* | --disable-* \
1252 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1253 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1254 | -with-* | --with-* | -without-* | --without-* | --x)
1255 case "$ac_configure_args0 " in
1256 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1257 esac
1258 ;;
1259 -* ) ac_must_keep_next=true ;;
1260 esac
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001261 fi
1262 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1263 # Get rid of the leading space.
1264 ac_sep=" "
1265 ;;
1266 esac
1267 done
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001268done
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001269$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1270$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 +00001271
1272# When interrupted or exit'd, cleanup temporary files, and complete
1273# config.log. We remove comments because anyway the quotes in there
1274# would cause problems or look ugly.
1275# WARNING: Be sure not to use single quotes in there, as some shells,
1276# such as our DU 5.0 friend, will then `close' the trap.
1277trap 'exit_status=$?
1278 # Save into config.log some information that might help in debugging.
1279 {
1280 echo
1281
1282 cat <<\_ASBOX
1283## ---------------- ##
1284## Cache variables. ##
1285## ---------------- ##
1286_ASBOX
1287 echo
1288 # The following way of writing the cache mishandles newlines in values,
1289{
1290 (set) 2>&1 |
1291 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1292 *ac_space=\ *)
1293 sed -n \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001294 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001296 ;;
1297 *)
1298 sed -n \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001299 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001300 ;;
1301 esac;
1302}
1303 echo
1304
1305 cat <<\_ASBOX
1306## ----------------- ##
1307## Output variables. ##
1308## ----------------- ##
1309_ASBOX
1310 echo
1311 for ac_var in $ac_subst_vars
1312 do
1313 eval ac_val=$`echo $ac_var`
1314 echo "$ac_var='"'"'$ac_val'"'"'"
1315 done | sort
1316 echo
1317
1318 if test -n "$ac_subst_files"; then
1319 cat <<\_ASBOX
1320## ------------- ##
1321## Output files. ##
1322## ------------- ##
1323_ASBOX
1324 echo
1325 for ac_var in $ac_subst_files
1326 do
1327 eval ac_val=$`echo $ac_var`
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001328 echo "$ac_var='"'"'$ac_val'"'"'"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001329 done | sort
1330 echo
1331 fi
1332
1333 if test -s confdefs.h; then
1334 cat <<\_ASBOX
1335## ----------- ##
1336## confdefs.h. ##
1337## ----------- ##
1338_ASBOX
1339 echo
1340 sed "/^$/d" confdefs.h | sort
1341 echo
1342 fi
1343 test "$ac_signal" != 0 &&
1344 echo "$as_me: caught signal $ac_signal"
1345 echo "$as_me: exit $exit_status"
1346 } >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001347 rm -f core *.core &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001348 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1349 exit $exit_status
1350 ' 0
1351for ac_signal in 1 2 13 15; do
1352 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1353done
1354ac_signal=0
1355
1356# confdefs.h avoids OS command line length limits that DEFS can exceed.
1357rm -rf conftest* confdefs.h
1358# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1359echo >confdefs.h
1360
1361# Predefined preprocessor variables.
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_NAME "$PACKAGE_NAME"
1365_ACEOF
1366
1367
1368cat >>confdefs.h <<_ACEOF
1369#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1370_ACEOF
1371
1372
1373cat >>confdefs.h <<_ACEOF
1374#define PACKAGE_VERSION "$PACKAGE_VERSION"
1375_ACEOF
1376
1377
1378cat >>confdefs.h <<_ACEOF
1379#define PACKAGE_STRING "$PACKAGE_STRING"
1380_ACEOF
1381
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1385_ACEOF
1386
1387
1388# Let the site file select an alternate cache file if it wants to.
1389# Prefer explicitly selected file to automatically selected ones.
1390if test -z "$CONFIG_SITE"; then
1391 if test "x$prefix" != xNONE; then
1392 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1393 else
1394 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1395 fi
1396fi
1397for ac_site_file in $CONFIG_SITE; do
1398 if test -r "$ac_site_file"; then
1399 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1400echo "$as_me: loading site script $ac_site_file" >&6;}
1401 sed 's/^/| /' "$ac_site_file" >&5
1402 . "$ac_site_file"
1403 fi
1404done
1405
1406if test -r "$cache_file"; then
1407 # Some versions of bash will fail to source /dev/null (special
1408 # files actually), so we avoid doing that.
1409 if test -f "$cache_file"; then
1410 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1411echo "$as_me: loading cache $cache_file" >&6;}
1412 case $cache_file in
1413 [\\/]* | ?:[\\/]* ) . $cache_file;;
1414 *) . ./$cache_file;;
1415 esac
1416 fi
1417else
1418 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1419echo "$as_me: creating cache $cache_file" >&6;}
1420 >$cache_file
1421fi
1422
1423# Check that the precious variables saved in the cache have kept the same
1424# value.
1425ac_cache_corrupted=false
1426for ac_var in `(set) 2>&1 |
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001427 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001428 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1429 eval ac_new_set=\$ac_env_${ac_var}_set
1430 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1431 eval ac_new_val="\$ac_env_${ac_var}_value"
1432 case $ac_old_set,$ac_new_set in
1433 set,)
1434 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1435echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1436 ac_cache_corrupted=: ;;
1437 ,set)
1438 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1439echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1440 ac_cache_corrupted=: ;;
1441 ,);;
1442 *)
1443 if test "x$ac_old_val" != "x$ac_new_val"; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001444 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001445echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001446 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001447echo "$as_me: former value: $ac_old_val" >&2;}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001448 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001449echo "$as_me: current value: $ac_new_val" >&2;}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001450 ac_cache_corrupted=:
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001451 fi;;
1452 esac
1453 # Pass precious variables to config.status.
1454 if test "$ac_new_set" = set; then
1455 case $ac_new_val in
1456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1457 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1458 *) ac_arg=$ac_var=$ac_new_val ;;
1459 esac
1460 case " $ac_configure_args " in
1461 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1462 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1463 esac
1464 fi
1465done
1466if $ac_cache_corrupted; then
1467 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1468echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1469 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1470echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1471 { (exit 1); exit 1; }; }
1472fi
1473
1474ac_ext=c
1475ac_cpp='$CPP $CPPFLAGS'
1476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1478ac_compiler_gnu=$ac_cv_c_compiler_gnu
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498ac_aux_dir=
1499for ac_dir in aux $srcdir/aux; do
1500 if test -f $ac_dir/install-sh; then
1501 ac_aux_dir=$ac_dir
1502 ac_install_sh="$ac_aux_dir/install-sh -c"
1503 break
1504 elif test -f $ac_dir/install.sh; then
1505 ac_aux_dir=$ac_dir
1506 ac_install_sh="$ac_aux_dir/install.sh -c"
1507 break
1508 elif test -f $ac_dir/shtool; then
1509 ac_aux_dir=$ac_dir
1510 ac_install_sh="$ac_aux_dir/shtool install -c"
1511 break
1512 fi
1513done
1514if test -z "$ac_aux_dir"; then
1515 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&5
1516echo "$as_me: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&2;}
1517 { (exit 1); exit 1; }; }
1518fi
1519ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1520ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1521ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1522
1523# Make sure we can run config.sub.
1524$ac_config_sub sun4 >/dev/null 2>&1 ||
1525 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1526echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1527 { (exit 1); exit 1; }; }
1528
1529echo "$as_me:$LINENO: checking build system type" >&5
1530echo $ECHO_N "checking build system type... $ECHO_C" >&6
1531if test "${ac_cv_build+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1533else
1534 ac_cv_build_alias=$build_alias
1535test -z "$ac_cv_build_alias" &&
1536 ac_cv_build_alias=`$ac_config_guess`
1537test -z "$ac_cv_build_alias" &&
1538 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1539echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1540 { (exit 1); exit 1; }; }
1541ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1542 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1543echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1544 { (exit 1); exit 1; }; }
1545
1546fi
1547echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1548echo "${ECHO_T}$ac_cv_build" >&6
1549build=$ac_cv_build
1550build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1551build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1552build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1553
1554
1555echo "$as_me:$LINENO: checking host system type" >&5
1556echo $ECHO_N "checking host system type... $ECHO_C" >&6
1557if test "${ac_cv_host+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559else
1560 ac_cv_host_alias=$host_alias
1561test -z "$ac_cv_host_alias" &&
1562 ac_cv_host_alias=$ac_cv_build_alias
1563ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1564 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1565echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1566 { (exit 1); exit 1; }; }
1567
1568fi
1569echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1570echo "${ECHO_T}$ac_cv_host" >&6
1571host=$ac_cv_host
1572host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1573host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1574host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1575
1576
1577echo "$as_me:$LINENO: checking target system type" >&5
1578echo $ECHO_N "checking target system type... $ECHO_C" >&6
1579if test "${ac_cv_target+set}" = set; then
1580 echo $ECHO_N "(cached) $ECHO_C" >&6
1581else
1582 ac_cv_target_alias=$target_alias
1583test "x$ac_cv_target_alias" = "x" &&
1584 ac_cv_target_alias=$ac_cv_host_alias
1585ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1586 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1587echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1588 { (exit 1); exit 1; }; }
1589
1590fi
1591echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1592echo "${ECHO_T}$ac_cv_target" >&6
1593target=$ac_cv_target
1594target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1595target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1596target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1597
1598
1599# The aliases save the names the user supplied, while $host etc.
1600# will get canonicalized.
1601test -n "$target_alias" &&
1602 test "$program_prefix$program_suffix$program_transform_name" = \
1603 NONENONEs,x,x, &&
1604 program_prefix=${target_alias}-
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001605am__api_version="1.6"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001606# Find a good install program. We prefer a C program (faster),
1607# so one script is as good as another. But avoid the broken or
1608# incompatible versions:
1609# SysV /etc/install, /usr/sbin/install
1610# SunOS /usr/etc/install
1611# IRIX /sbin/install
1612# AIX /bin/install
1613# AmigaOS /C/install, which installs bootblocks on floppy discs
1614# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1615# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1616# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001617# OS/2's system install, which has a completely different semantic
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001618# ./install, which can be erroneously created by make from ./install.sh.
1619echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1620echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1621if test -z "$INSTALL"; then
1622if test "${ac_cv_path_install+set}" = set; then
1623 echo $ECHO_N "(cached) $ECHO_C" >&6
1624else
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626for as_dir in $PATH
1627do
1628 IFS=$as_save_IFS
1629 test -z "$as_dir" && as_dir=.
1630 # Account for people who put trailing slashes in PATH elements.
1631case $as_dir/ in
1632 ./ | .// | /cC/* | \
1633 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001634 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001635 /usr/ucb/* ) ;;
1636 *)
1637 # OSF1 and SCO ODT 3.0 have their own names for install.
1638 # Don't use installbsd from OSF since it installs stuff as root
1639 # by default.
1640 for ac_prog in ginstall scoinst install; do
1641 for ac_exec_ext in '' $ac_executable_extensions; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001642 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1643 if test $ac_prog = install &&
1644 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1645 # AIX install. It has an incompatible calling convention.
1646 :
1647 elif test $ac_prog = install &&
1648 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1649 # program-specific install script used by HP pwplus--don't use.
1650 :
1651 else
1652 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1653 break 3
1654 fi
1655 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001656 done
1657 done
1658 ;;
1659esac
1660done
1661
1662
1663fi
1664 if test "${ac_cv_path_install+set}" = set; then
1665 INSTALL=$ac_cv_path_install
1666 else
1667 # As a last resort, use the slow shell script. We don't cache a
1668 # path for INSTALL within a source directory, because that will
1669 # break other packages using the cache if that directory is
1670 # removed, or if the path is relative.
1671 INSTALL=$ac_install_sh
1672 fi
1673fi
1674echo "$as_me:$LINENO: result: $INSTALL" >&5
1675echo "${ECHO_T}$INSTALL" >&6
1676
1677# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1678# It thinks the first close brace ends the variable substitution.
1679test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1680
1681test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1682
1683test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1684
1685echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1686echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1687# Just in case
1688sleep 1
1689echo timestamp > conftest.file
1690# Do `set' in a subshell so we don't clobber the current shell's
1691# arguments. Must try -L first in case configure is actually a
1692# symlink; some systems play weird games with the mod time of symlinks
1693# (eg FreeBSD returns the mod time of the symlink's containing
1694# directory).
1695if (
1696 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1697 if test "$*" = "X"; then
1698 # -L didn't work.
1699 set X `ls -t $srcdir/configure conftest.file`
1700 fi
1701 rm -f conftest.file
1702 if test "$*" != "X $srcdir/configure conftest.file" \
1703 && test "$*" != "X conftest.file $srcdir/configure"; then
1704
1705 # If neither matched, then we have a broken ls. This can happen
1706 # if, for instance, CONFIG_SHELL is bash and it inherits a
1707 # broken ls alias from the environment. This has actually
1708 # happened. Such a system could not be considered "sane".
1709 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1710alias in your environment" >&5
1711echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1712alias in your environment" >&2;}
1713 { (exit 1); exit 1; }; }
1714 fi
1715
1716 test "$2" = conftest.file
1717 )
1718then
1719 # Ok.
1720 :
1721else
1722 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1723Check your system clock" >&5
1724echo "$as_me: error: newly created file is older than distributed files!
1725Check your system clock" >&2;}
1726 { (exit 1); exit 1; }; }
1727fi
1728echo "$as_me:$LINENO: result: yes" >&5
1729echo "${ECHO_T}yes" >&6
1730test "$program_prefix" != NONE &&
1731 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1732# Use a double $ so make ignores it.
1733test "$program_suffix" != NONE &&
1734 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1735# Double any \ or $. echo might interpret backslashes.
1736# By default was `s,x,x', remove it if useless.
1737cat <<\_ACEOF >conftest.sed
1738s/[\\$]/&&/g;s/;s,x,x,$//
1739_ACEOF
1740program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1741rm conftest.sed
1742
1743
1744# expand $ac_aux_dir to an absolute path
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001745am_aux_dir=`cd $ac_aux_dir && pwd`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001746
1747test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1748# Use eval to expand $SHELL
1749if eval "$MISSING --run true"; then
1750 am_missing_run="$MISSING --run "
1751else
1752 am_missing_run=
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001753 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1754echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001755fi
1756
1757for ac_prog in gawk mawk nawk awk
1758do
1759 # Extract the first word of "$ac_prog", so it can be a program name with args.
1760set dummy $ac_prog; ac_word=$2
1761echo "$as_me:$LINENO: checking for $ac_word" >&5
1762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1763if test "${ac_cv_prog_AWK+set}" = set; then
1764 echo $ECHO_N "(cached) $ECHO_C" >&6
1765else
1766 if test -n "$AWK"; then
1767 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1768else
1769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770for as_dir in $PATH
1771do
1772 IFS=$as_save_IFS
1773 test -z "$as_dir" && as_dir=.
1774 for ac_exec_ext in '' $ac_executable_extensions; do
1775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1776 ac_cv_prog_AWK="$ac_prog"
1777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1778 break 2
1779 fi
1780done
1781done
1782
1783fi
1784fi
1785AWK=$ac_cv_prog_AWK
1786if test -n "$AWK"; then
1787 echo "$as_me:$LINENO: result: $AWK" >&5
1788echo "${ECHO_T}$AWK" >&6
1789else
1790 echo "$as_me:$LINENO: result: no" >&5
1791echo "${ECHO_T}no" >&6
1792fi
1793
1794 test -n "$AWK" && break
1795done
1796
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001797echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1798echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001799set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001800if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1802else
1803 cat >conftest.make <<\_ACEOF
1804all:
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001805 @echo 'ac_maketemp="$(MAKE)"'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001806_ACEOF
1807# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1808eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1809if test -n "$ac_maketemp"; then
1810 eval ac_cv_prog_make_${ac_make}_set=yes
1811else
1812 eval ac_cv_prog_make_${ac_make}_set=no
1813fi
1814rm -f conftest.make
1815fi
1816if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1817 echo "$as_me:$LINENO: result: yes" >&5
1818echo "${ECHO_T}yes" >&6
1819 SET_MAKE=
1820else
1821 echo "$as_me:$LINENO: result: no" >&5
1822echo "${ECHO_T}no" >&6
1823 SET_MAKE="MAKE=${MAKE-make}"
1824fi
1825
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001826 # test to see if srcdir already configured
1827if test "`cd $srcdir && pwd`" != "`pwd`" &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001828 test -f $srcdir/config.status; then
1829 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1830echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1831 { (exit 1); exit 1; }; }
1832fi
1833
1834# Define the identity of the package.
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001835 PACKAGE=libunwind
mostang.com!davidmc784d062003-04-24 20:45:07 +00001836 VERSION=0.93
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001837
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001838
1839cat >>confdefs.h <<_ACEOF
1840#define PACKAGE "$PACKAGE"
1841_ACEOF
1842
1843
1844cat >>confdefs.h <<_ACEOF
1845#define VERSION "$VERSION"
1846_ACEOF
1847
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001848# Some tools Automake needs.
1849
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001850ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001851
1852
1853AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1854
1855
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001856AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001857
1858
1859AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1860
1861
1862MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1863
1864
1865AMTAR=${AMTAR-"${am_missing_run}tar"}
1866
1867install_sh=${install_sh-"$am_aux_dir/install-sh"}
1868
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001869# Installed binaries are usually stripped using `strip' when the user
1870# run `make install-strip'. However `strip' might not be the right
1871# tool to use in cross-compilation environments, therefore Automake
1872# will honor the `STRIP' environment variable to overrule this program.
1873if test "$cross_compiling" != no; then
1874 if test -n "$ac_tool_prefix"; then
1875 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1876set dummy ${ac_tool_prefix}strip; ac_word=$2
1877echo "$as_me:$LINENO: checking for $ac_word" >&5
1878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1879if test "${ac_cv_prog_STRIP+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1881else
1882 if test -n "$STRIP"; then
1883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1884else
1885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886for as_dir in $PATH
1887do
1888 IFS=$as_save_IFS
1889 test -z "$as_dir" && as_dir=.
1890 for ac_exec_ext in '' $ac_executable_extensions; do
1891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1892 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 break 2
1895 fi
1896done
1897done
1898
1899fi
1900fi
1901STRIP=$ac_cv_prog_STRIP
1902if test -n "$STRIP"; then
1903 echo "$as_me:$LINENO: result: $STRIP" >&5
1904echo "${ECHO_T}$STRIP" >&6
1905else
1906 echo "$as_me:$LINENO: result: no" >&5
1907echo "${ECHO_T}no" >&6
1908fi
1909
1910fi
1911if test -z "$ac_cv_prog_STRIP"; then
1912 ac_ct_STRIP=$STRIP
1913 # Extract the first word of "strip", so it can be a program name with args.
1914set dummy strip; ac_word=$2
1915echo "$as_me:$LINENO: checking for $ac_word" >&5
1916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919else
1920 if test -n "$ac_ct_STRIP"; then
1921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1922else
1923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924for as_dir in $PATH
1925do
1926 IFS=$as_save_IFS
1927 test -z "$as_dir" && as_dir=.
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930 ac_cv_prog_ac_ct_STRIP="strip"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 break 2
1933 fi
1934done
1935done
1936
1937 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1938fi
1939fi
1940ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1941if test -n "$ac_ct_STRIP"; then
1942 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1943echo "${ECHO_T}$ac_ct_STRIP" >&6
1944else
1945 echo "$as_me:$LINENO: result: no" >&5
1946echo "${ECHO_T}no" >&6
1947fi
1948
1949 STRIP=$ac_ct_STRIP
1950else
1951 STRIP="$ac_cv_prog_STRIP"
1952fi
1953
1954fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001955INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1956
1957# We need awk for the "check" target. The system "awk" is bad on
1958# some platforms.
1959
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001960
1961
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001962echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1963echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1964 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1965if test "${enable_maintainer_mode+set}" = set; then
1966 enableval="$enable_maintainer_mode"
1967 USE_MAINTAINER_MODE=$enableval
1968else
1969 USE_MAINTAINER_MODE=no
1970fi;
1971 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1972echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1973
1974
1975if test $USE_MAINTAINER_MODE = yes; then
1976 MAINTAINER_MODE_TRUE=
1977 MAINTAINER_MODE_FALSE='#'
1978else
1979 MAINTAINER_MODE_TRUE='#'
1980 MAINTAINER_MODE_FALSE=
1981fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001982
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001983 MAINT=$MAINTAINER_MODE_TRUE
1984
1985
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001986# Add the stamp file to the list of files AC keeps track of,
1987# along with our hook.
1988 ac_config_headers="$ac_config_headers include/config.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001989
1990
1991
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001992
1993ac_ext=c
1994ac_cpp='$CPP $CPPFLAGS'
1995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998if test -n "$ac_tool_prefix"; then
1999 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2000set dummy ${ac_tool_prefix}gcc; ac_word=$2
2001echo "$as_me:$LINENO: checking for $ac_word" >&5
2002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003if test "${ac_cv_prog_CC+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2005else
2006 if test -n "$CC"; then
2007 ac_cv_prog_CC="$CC" # Let the user override the test.
2008else
2009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010for as_dir in $PATH
2011do
2012 IFS=$as_save_IFS
2013 test -z "$as_dir" && as_dir=.
2014 for ac_exec_ext in '' $ac_executable_extensions; do
2015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018 break 2
2019 fi
2020done
2021done
2022
2023fi
2024fi
2025CC=$ac_cv_prog_CC
2026if test -n "$CC"; then
2027 echo "$as_me:$LINENO: result: $CC" >&5
2028echo "${ECHO_T}$CC" >&6
2029else
2030 echo "$as_me:$LINENO: result: no" >&5
2031echo "${ECHO_T}no" >&6
2032fi
2033
2034fi
2035if test -z "$ac_cv_prog_CC"; then
2036 ac_ct_CC=$CC
2037 # Extract the first word of "gcc", so it can be a program name with args.
2038set dummy gcc; ac_word=$2
2039echo "$as_me:$LINENO: checking for $ac_word" >&5
2040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2043else
2044 if test -n "$ac_ct_CC"; then
2045 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2046else
2047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048for as_dir in $PATH
2049do
2050 IFS=$as_save_IFS
2051 test -z "$as_dir" && as_dir=.
2052 for ac_exec_ext in '' $ac_executable_extensions; do
2053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054 ac_cv_prog_ac_ct_CC="gcc"
2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 break 2
2057 fi
2058done
2059done
2060
2061fi
2062fi
2063ac_ct_CC=$ac_cv_prog_ac_ct_CC
2064if test -n "$ac_ct_CC"; then
2065 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2066echo "${ECHO_T}$ac_ct_CC" >&6
2067else
2068 echo "$as_me:$LINENO: result: no" >&5
2069echo "${ECHO_T}no" >&6
2070fi
2071
2072 CC=$ac_ct_CC
2073else
2074 CC="$ac_cv_prog_CC"
2075fi
2076
2077if test -z "$CC"; then
2078 if test -n "$ac_tool_prefix"; then
2079 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2080set dummy ${ac_tool_prefix}cc; ac_word=$2
2081echo "$as_me:$LINENO: checking for $ac_word" >&5
2082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083if test "${ac_cv_prog_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2085else
2086 if test -n "$CC"; then
2087 ac_cv_prog_CC="$CC" # Let the user override the test.
2088else
2089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090for as_dir in $PATH
2091do
2092 IFS=$as_save_IFS
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_CC="${ac_tool_prefix}cc"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 break 2
2099 fi
2100done
2101done
2102
2103fi
2104fi
2105CC=$ac_cv_prog_CC
2106if test -n "$CC"; then
2107 echo "$as_me:$LINENO: result: $CC" >&5
2108echo "${ECHO_T}$CC" >&6
2109else
2110 echo "$as_me:$LINENO: result: no" >&5
2111echo "${ECHO_T}no" >&6
2112fi
2113
2114fi
2115if test -z "$ac_cv_prog_CC"; then
2116 ac_ct_CC=$CC
2117 # Extract the first word of "cc", so it can be a program name with args.
2118set dummy cc; ac_word=$2
2119echo "$as_me:$LINENO: checking for $ac_word" >&5
2120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2121if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2123else
2124 if test -n "$ac_ct_CC"; then
2125 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2126else
2127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128for as_dir in $PATH
2129do
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 for ac_exec_ext in '' $ac_executable_extensions; do
2133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2134 ac_cv_prog_ac_ct_CC="cc"
2135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136 break 2
2137 fi
2138done
2139done
2140
2141fi
2142fi
2143ac_ct_CC=$ac_cv_prog_ac_ct_CC
2144if test -n "$ac_ct_CC"; then
2145 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2146echo "${ECHO_T}$ac_ct_CC" >&6
2147else
2148 echo "$as_me:$LINENO: result: no" >&5
2149echo "${ECHO_T}no" >&6
2150fi
2151
2152 CC=$ac_ct_CC
2153else
2154 CC="$ac_cv_prog_CC"
2155fi
2156
2157fi
2158if test -z "$CC"; then
2159 # Extract the first word of "cc", so it can be a program name with args.
2160set dummy cc; ac_word=$2
2161echo "$as_me:$LINENO: checking for $ac_word" >&5
2162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2163if test "${ac_cv_prog_CC+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2165else
2166 if test -n "$CC"; then
2167 ac_cv_prog_CC="$CC" # Let the user override the test.
2168else
2169 ac_prog_rejected=no
2170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171for as_dir in $PATH
2172do
2173 IFS=$as_save_IFS
2174 test -z "$as_dir" && as_dir=.
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2178 ac_prog_rejected=yes
2179 continue
2180 fi
2181 ac_cv_prog_CC="cc"
2182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183 break 2
2184 fi
2185done
2186done
2187
2188if test $ac_prog_rejected = yes; then
2189 # We found a bogon in the path, so make sure we never use it.
2190 set dummy $ac_cv_prog_CC
2191 shift
2192 if test $# != 0; then
2193 # We chose a different compiler from the bogus one.
2194 # However, it has the same basename, so the bogon will be chosen
2195 # first if we set CC to just the basename; use the full file name.
2196 shift
2197 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2198 fi
2199fi
2200fi
2201fi
2202CC=$ac_cv_prog_CC
2203if test -n "$CC"; then
2204 echo "$as_me:$LINENO: result: $CC" >&5
2205echo "${ECHO_T}$CC" >&6
2206else
2207 echo "$as_me:$LINENO: result: no" >&5
2208echo "${ECHO_T}no" >&6
2209fi
2210
2211fi
2212if test -z "$CC"; then
2213 if test -n "$ac_tool_prefix"; then
2214 for ac_prog in cl
2215 do
2216 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2217set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2218echo "$as_me:$LINENO: checking for $ac_word" >&5
2219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2220if test "${ac_cv_prog_CC+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2222else
2223 if test -n "$CC"; then
2224 ac_cv_prog_CC="$CC" # Let the user override the test.
2225else
2226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227for as_dir in $PATH
2228do
2229 IFS=$as_save_IFS
2230 test -z "$as_dir" && as_dir=.
2231 for ac_exec_ext in '' $ac_executable_extensions; do
2232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2233 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235 break 2
2236 fi
2237done
2238done
2239
2240fi
2241fi
2242CC=$ac_cv_prog_CC
2243if test -n "$CC"; then
2244 echo "$as_me:$LINENO: result: $CC" >&5
2245echo "${ECHO_T}$CC" >&6
2246else
2247 echo "$as_me:$LINENO: result: no" >&5
2248echo "${ECHO_T}no" >&6
2249fi
2250
2251 test -n "$CC" && break
2252 done
2253fi
2254if test -z "$CC"; then
2255 ac_ct_CC=$CC
2256 for ac_prog in cl
2257do
2258 # Extract the first word of "$ac_prog", so it can be a program name with args.
2259set dummy $ac_prog; ac_word=$2
2260echo "$as_me:$LINENO: checking for $ac_word" >&5
2261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2264else
2265 if test -n "$ac_ct_CC"; then
2266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2267else
2268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269for as_dir in $PATH
2270do
2271 IFS=$as_save_IFS
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2275 ac_cv_prog_ac_ct_CC="$ac_prog"
2276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277 break 2
2278 fi
2279done
2280done
2281
2282fi
2283fi
2284ac_ct_CC=$ac_cv_prog_ac_ct_CC
2285if test -n "$ac_ct_CC"; then
2286 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2287echo "${ECHO_T}$ac_ct_CC" >&6
2288else
2289 echo "$as_me:$LINENO: result: no" >&5
2290echo "${ECHO_T}no" >&6
2291fi
2292
2293 test -n "$ac_ct_CC" && break
2294done
2295
2296 CC=$ac_ct_CC
2297fi
2298
2299fi
2300
2301
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002302test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2303See \`config.log' for more details." >&5
2304echo "$as_me: error: no acceptable C compiler found in \$PATH
2305See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002306 { (exit 1); exit 1; }; }
2307
2308# Provide some information about the compiler.
2309echo "$as_me:$LINENO:" \
2310 "checking for C compiler version" >&5
2311ac_compiler=`set X $ac_compile; echo $2`
2312{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2313 (eval $ac_compiler --version </dev/null >&5) 2>&5
2314 ac_status=$?
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }
2317{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2318 (eval $ac_compiler -v </dev/null >&5) 2>&5
2319 ac_status=$?
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }
2322{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2323 (eval $ac_compiler -V </dev/null >&5) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }
2327
2328cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002329/* confdefs.h. */
2330_ACEOF
2331cat confdefs.h >>conftest.$ac_ext
2332cat >>conftest.$ac_ext <<_ACEOF
2333/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002334
2335int
2336main ()
2337{
2338
2339 ;
2340 return 0;
2341}
2342_ACEOF
2343ac_clean_files_save=$ac_clean_files
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002344ac_clean_files="$ac_clean_files a.out a.exe b.out"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002345# Try to create an executable without -o first, disregard a.out.
2346# It will help us diagnose broken compilers, and finding out an intuition
2347# of exeext.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002348echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2349echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002350ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2351if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2352 (eval $ac_link_default) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; then
2356 # Find the output, starting from the most likely. This scheme is
2357# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2358# resort.
2359
2360# Be careful to initialize this variable, since it used to be cached.
2361# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2362ac_cv_exeext=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002363# b.out is created by i960 compilers.
2364for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2365do
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002366 test -f "$ac_file" || continue
2367 case $ac_file in
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002368 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002369 ;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002370 conftest.$ac_ext )
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002371 # This is the source file.
2372 ;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002373 [ab].out )
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002374 # We found the default executable, but exeext='' is most
2375 # certainly right.
2376 break;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002377 *.* )
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002378 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2379 # FIXME: I believe we export ac_cv_exeext for Libtool,
2380 # but it would be cool to find out if it's true. Does anybody
2381 # maintain Libtool? --akim.
2382 export ac_cv_exeext
2383 break;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002384 * )
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002385 break;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002386 esac
2387done
2388else
2389 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002390sed 's/^/| /' conftest.$ac_ext >&5
2391
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002392{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002393See \`config.log' for more details." >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002394echo "$as_me: error: C compiler cannot create executables
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002395See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002396 { (exit 77); exit 77; }; }
2397fi
2398
2399ac_exeext=$ac_cv_exeext
2400echo "$as_me:$LINENO: result: $ac_file" >&5
2401echo "${ECHO_T}$ac_file" >&6
2402
2403# Check the compiler produces executables we can run. If not, either
2404# the compiler is broken, or we cross compile.
2405echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2406echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2407# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2408# If not cross compiling, check that we can run a simple program.
2409if test "$cross_compiling" != yes; then
2410 if { ac_try='./$ac_file'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2416 cross_compiling=no
2417 else
2418 if test "$cross_compiling" = maybe; then
2419 cross_compiling=yes
2420 else
2421 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002422If you meant to cross compile, use \`--host'.
2423See \`config.log' for more details." >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002424echo "$as_me: error: cannot run C compiled programs.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002425If you meant to cross compile, use \`--host'.
2426See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002427 { (exit 1); exit 1; }; }
2428 fi
2429 fi
2430fi
2431echo "$as_me:$LINENO: result: yes" >&5
2432echo "${ECHO_T}yes" >&6
2433
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002434rm -f a.out a.exe conftest$ac_cv_exeext b.out
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002435ac_clean_files=$ac_clean_files_save
2436# Check the compiler produces executables we can run. If not, either
2437# the compiler is broken, or we cross compile.
2438echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2439echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2440echo "$as_me:$LINENO: result: $cross_compiling" >&5
2441echo "${ECHO_T}$cross_compiling" >&6
2442
2443echo "$as_me:$LINENO: checking for suffix of executables" >&5
2444echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2446 (eval $ac_link) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; then
2450 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2451# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2452# work properly (i.e., refer to `conftest.exe'), while it won't with
2453# `rm'.
2454for ac_file in conftest.exe conftest conftest.*; do
2455 test -f "$ac_file" || continue
2456 case $ac_file in
2457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2458 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002459 export ac_cv_exeext
2460 break;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002461 * ) break;;
2462 esac
2463done
2464else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002465 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2466See \`config.log' for more details." >&5
2467echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2468See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002469 { (exit 1); exit 1; }; }
2470fi
2471
2472rm -f conftest$ac_cv_exeext
2473echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2474echo "${ECHO_T}$ac_cv_exeext" >&6
2475
2476rm -f conftest.$ac_ext
2477EXEEXT=$ac_cv_exeext
2478ac_exeext=$EXEEXT
2479echo "$as_me:$LINENO: checking for suffix of object files" >&5
2480echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2481if test "${ac_cv_objext+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483else
2484 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002485/* confdefs.h. */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002490
2491int
2492main ()
2493{
2494
2495 ;
2496 return 0;
2497}
2498_ACEOF
2499rm -f conftest.o conftest.obj
2500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>&5
2502 ac_status=$?
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; then
2505 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2506 case $ac_file in
2507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2508 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2509 break;;
2510 esac
2511done
2512else
2513 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002514sed 's/^/| /' conftest.$ac_ext >&5
2515
2516{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2517See \`config.log' for more details." >&5
2518echo "$as_me: error: cannot compute suffix of object files: cannot compile
2519See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002520 { (exit 1); exit 1; }; }
2521fi
2522
2523rm -f conftest.$ac_cv_objext conftest.$ac_ext
2524fi
2525echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2526echo "${ECHO_T}$ac_cv_objext" >&6
2527OBJEXT=$ac_cv_objext
2528ac_objext=$OBJEXT
2529echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2530echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2531if test "${ac_cv_c_compiler_gnu+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2533else
2534 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002535/* confdefs.h. */
2536_ACEOF
2537cat confdefs.h >>conftest.$ac_ext
2538cat >>conftest.$ac_ext <<_ACEOF
2539/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002540
2541int
2542main ()
2543{
2544#ifndef __GNUC__
2545 choke me
2546#endif
2547
2548 ;
2549 return 0;
2550}
2551_ACEOF
2552rm -f conftest.$ac_objext
2553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002554 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002555 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002556 grep -v '^ *+' conftest.er1 >conftest.err
2557 rm -f conftest.er1
2558 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002561 { ac_try='test -z "$ac_c_werror_flag"
2562 || test ! -s conftest.err'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 (eval $ac_try) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; } &&
2568 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 (eval $ac_try) 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2574 ac_compiler_gnu=yes
2575else
2576 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002577sed 's/^/| /' conftest.$ac_ext >&5
2578
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002579ac_compiler_gnu=no
2580fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002582ac_cv_c_compiler_gnu=$ac_compiler_gnu
2583
2584fi
2585echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2586echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2587GCC=`test $ac_compiler_gnu = yes && echo yes`
2588ac_test_CFLAGS=${CFLAGS+set}
2589ac_save_CFLAGS=$CFLAGS
2590CFLAGS="-g"
2591echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2592echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2593if test "${ac_cv_prog_cc_g+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2595else
2596 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002597/* confdefs.h. */
2598_ACEOF
2599cat confdefs.h >>conftest.$ac_ext
2600cat >>conftest.$ac_ext <<_ACEOF
2601/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002602
2603int
2604main ()
2605{
2606
2607 ;
2608 return 0;
2609}
2610_ACEOF
2611rm -f conftest.$ac_objext
2612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002613 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002614 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002615 grep -v '^ *+' conftest.er1 >conftest.err
2616 rm -f conftest.er1
2617 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002620 { ac_try='test -z "$ac_c_werror_flag"
2621 || test ! -s conftest.err'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 (eval $ac_try) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 (eval $ac_try) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2633 ac_cv_prog_cc_g=yes
2634else
2635 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002636sed 's/^/| /' conftest.$ac_ext >&5
2637
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002638ac_cv_prog_cc_g=no
2639fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002641fi
2642echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2643echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2644if test "$ac_test_CFLAGS" = set; then
2645 CFLAGS=$ac_save_CFLAGS
2646elif test $ac_cv_prog_cc_g = yes; then
2647 if test "$GCC" = yes; then
2648 CFLAGS="-g -O2"
2649 else
2650 CFLAGS="-g"
2651 fi
2652else
2653 if test "$GCC" = yes; then
2654 CFLAGS="-O2"
2655 else
2656 CFLAGS=
2657 fi
2658fi
2659echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2660echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2661if test "${ac_cv_prog_cc_stdc+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2663else
2664 ac_cv_prog_cc_stdc=no
2665ac_save_CC=$CC
2666cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002667/* confdefs.h. */
2668_ACEOF
2669cat confdefs.h >>conftest.$ac_ext
2670cat >>conftest.$ac_ext <<_ACEOF
2671/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002672#include <stdarg.h>
2673#include <stdio.h>
2674#include <sys/types.h>
2675#include <sys/stat.h>
2676/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2677struct buf { int x; };
2678FILE * (*rcsopen) (struct buf *, struct stat *, int);
2679static char *e (p, i)
2680 char **p;
2681 int i;
2682{
2683 return p[i];
2684}
2685static char *f (char * (*g) (char **, int), char **p, ...)
2686{
2687 char *s;
2688 va_list v;
2689 va_start (v,p);
2690 s = g (p, va_arg (v,int));
2691 va_end (v);
2692 return s;
2693}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002694
2695/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2696 function prototypes and stuff, but not '\xHH' hex character constants.
2697 These don't provoke an error unfortunately, instead are silently treated
2698 as 'x'. The following induces an error, until -std1 is added to get
2699 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2700 array size at least. It's necessary to write '\x00'==0 to get something
2701 that's true only with -std1. */
2702int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2703
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002704int test (int i, double x);
2705struct s1 {int (*f) (int a);};
2706struct s2 {int (*f) (double a);};
2707int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2708int argc;
2709char **argv;
2710int
2711main ()
2712{
2713return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2714 ;
2715 return 0;
2716}
2717_ACEOF
2718# Don't try gcc -ansi; that turns off useful extensions and
2719# breaks some systems' header files.
2720# AIX -qlanglvl=ansi
2721# Ultrix and OSF/1 -std1
2722# HP-UX 10.20 and later -Ae
2723# HP-UX older versions -Aa -D_HPUX_SOURCE
2724# SVR4 -Xc -D__EXTENSIONS__
2725for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2726do
2727 CC="$ac_save_CC $ac_arg"
2728 rm -f conftest.$ac_objext
2729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002730 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002731 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002732 grep -v '^ *+' conftest.er1 >conftest.err
2733 rm -f conftest.er1
2734 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002737 { ac_try='test -z "$ac_c_werror_flag"
2738 || test ! -s conftest.err'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 (eval $ac_try) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; } &&
2744 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 (eval $ac_try) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; }; then
2750 ac_cv_prog_cc_stdc=$ac_arg
2751break
2752else
2753 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002754sed 's/^/| /' conftest.$ac_ext >&5
2755
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002756fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002757rm -f conftest.err conftest.$ac_objext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002758done
2759rm -f conftest.$ac_ext conftest.$ac_objext
2760CC=$ac_save_CC
2761
2762fi
2763
2764case "x$ac_cv_prog_cc_stdc" in
2765 x|xno)
2766 echo "$as_me:$LINENO: result: none needed" >&5
2767echo "${ECHO_T}none needed" >&6 ;;
2768 *)
2769 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2770echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2771 CC="$CC $ac_cv_prog_cc_stdc" ;;
2772esac
2773
2774# Some people use a C++ compiler to compile C. Since we use `exit',
2775# in C++ we need to declare it. In case someone uses the same compiler
2776# for both compiling C and C++ we need to have the C++ compiler decide
2777# the declaration of exit, since it's the most demanding environment.
2778cat >conftest.$ac_ext <<_ACEOF
2779#ifndef __cplusplus
2780 choke me
2781#endif
2782_ACEOF
2783rm -f conftest.$ac_objext
2784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002785 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002786 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002787 grep -v '^ *+' conftest.er1 >conftest.err
2788 rm -f conftest.er1
2789 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002792 { ac_try='test -z "$ac_c_werror_flag"
2793 || test ! -s conftest.err'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; } &&
2799 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 (eval $ac_try) 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; }; then
2805 for ac_declaration in \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002806 '' \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002807 'extern "C" void std::exit (int) throw (); using std::exit;' \
2808 'extern "C" void std::exit (int); using std::exit;' \
2809 'extern "C" void exit (int) throw ();' \
2810 'extern "C" void exit (int);' \
2811 'void exit (int);'
2812do
2813 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002814/* confdefs.h. */
2815_ACEOF
2816cat confdefs.h >>conftest.$ac_ext
2817cat >>conftest.$ac_ext <<_ACEOF
2818/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002819$ac_declaration
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002820#include <stdlib.h>
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002821int
2822main ()
2823{
2824exit (42);
2825 ;
2826 return 0;
2827}
2828_ACEOF
2829rm -f conftest.$ac_objext
2830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002831 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002832 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002833 grep -v '^ *+' conftest.er1 >conftest.err
2834 rm -f conftest.er1
2835 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002838 { ac_try='test -z "$ac_c_werror_flag"
2839 || test ! -s conftest.err'
2840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 (eval $ac_try) 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; } &&
2845 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 (eval $ac_try) 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2851 :
2852else
2853 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002854sed 's/^/| /' conftest.$ac_ext >&5
2855
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002856continue
2857fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002859 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002860/* confdefs.h. */
2861_ACEOF
2862cat confdefs.h >>conftest.$ac_ext
2863cat >>conftest.$ac_ext <<_ACEOF
2864/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002865$ac_declaration
2866int
2867main ()
2868{
2869exit (42);
2870 ;
2871 return 0;
2872}
2873_ACEOF
2874rm -f conftest.$ac_objext
2875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002876 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002877 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002878 grep -v '^ *+' conftest.er1 >conftest.err
2879 rm -f conftest.er1
2880 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002883 { ac_try='test -z "$ac_c_werror_flag"
2884 || test ! -s conftest.err'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 (eval $ac_try) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; } &&
2890 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 (eval $ac_try) 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2896 break
2897else
2898 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002899sed 's/^/| /' conftest.$ac_ext >&5
2900
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002901fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002903done
2904rm -f conftest*
2905if test -n "$ac_declaration"; then
2906 echo '#ifdef __cplusplus' >>confdefs.h
2907 echo $ac_declaration >>confdefs.h
2908 echo '#endif' >>confdefs.h
2909fi
2910
2911else
2912 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002913sed 's/^/| /' conftest.$ac_ext >&5
2914
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002915fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002917ac_ext=c
2918ac_cpp='$CPP $CPPFLAGS'
2919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2921ac_compiler_gnu=$ac_cv_c_compiler_gnu
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002922rm -f .deps 2>/dev/null
2923mkdir .deps 2>/dev/null
2924if test -d .deps; then
2925 DEPDIR=.deps
2926else
2927 # MS-DOS does not allow filenames that begin with a dot.
2928 DEPDIR=_deps
2929fi
2930rmdir .deps 2>/dev/null
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002931
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002932
2933 ac_config_commands="$ac_config_commands depfiles"
2934
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002935
2936am_make=${MAKE-make}
2937cat > confinc << 'END'
2938doit:
2939 @echo done
2940END
2941# If we don't find an include directive, just comment out the code.
2942echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2943echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002944am__include="#"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002945am__quote=
2946_am_result=none
2947# First try GNU make style include.
2948echo "include confinc" > confmf
2949# We grep out `Entering directory' and `Leaving directory'
2950# messages which can occur if `w' ends up in MAKEFLAGS.
2951# In particular we don't look at `^make:' because GNU make might
2952# be invoked under some other name (usually "gmake"), in which
2953# case it prints its new name instead of `make'.
2954if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2955 am__include=include
2956 am__quote=
2957 _am_result=GNU
2958fi
2959# Now try BSD make style include.
2960if test "$am__include" = "#"; then
2961 echo '.include "confinc"' > confmf
2962 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2963 am__include=.include
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002964 am__quote="\""
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002965 _am_result=BSD
2966 fi
2967fi
2968
2969
2970echo "$as_me:$LINENO: result: $_am_result" >&5
2971echo "${ECHO_T}$_am_result" >&6
2972rm -f confinc confmf
2973
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002974# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2975if test "${enable_dependency_tracking+set}" = set; then
2976 enableval="$enable_dependency_tracking"
2977
2978fi;
2979if test "x$enable_dependency_tracking" != xno; then
2980 am_depcomp="$ac_aux_dir/depcomp"
2981 AMDEPBACKSLASH='\'
2982fi
2983
2984
2985if test "x$enable_dependency_tracking" != xno; then
2986 AMDEP_TRUE=
2987 AMDEP_FALSE='#'
2988else
2989 AMDEP_TRUE='#'
2990 AMDEP_FALSE=
2991fi
2992
2993
2994
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002995
2996depcc="$CC" am_compiler_list=
2997
2998echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2999echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3000if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3002else
3003 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3004 # We make a subdir and do the tests there. Otherwise we can end up
3005 # making bogus files that we don't know about and never remove. For
3006 # instance it was reported that on HP-UX the gcc test will end up
3007 # making a dummy file named `D' -- because `-MD' means `put the output
3008 # in D'.
3009 mkdir conftest.dir
3010 # Copy depcomp to subdir because otherwise we won't find it if we're
3011 # using a relative directory.
3012 cp "$am_depcomp" conftest.dir
3013 cd conftest.dir
3014
3015 am_cv_CC_dependencies_compiler_type=none
3016 if test "$am_compiler_list" = ""; then
3017 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3018 fi
3019 for depmode in $am_compiler_list; do
3020 # We need to recreate these files for each test, as the compiler may
3021 # overwrite some of them when testing with obscure command lines.
3022 # This happens at least with the AIX C compiler.
3023 echo '#include "conftest.h"' > conftest.c
3024 echo 'int i;' > conftest.h
3025 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3026
3027 case $depmode in
3028 nosideeffect)
3029 # after this tag, mechanisms are not by side-effect, so they'll
3030 # only be used when explicitly requested
3031 if test "x$enable_dependency_tracking" = xyes; then
3032 continue
3033 else
3034 break
3035 fi
3036 ;;
3037 none) break ;;
3038 esac
3039 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3040 # mode. It turns out that the SunPro C++ compiler does not properly
3041 # handle `-M -o', and we need to detect this.
3042 if depmode=$depmode \
3043 source=conftest.c object=conftest.o \
3044 depfile=conftest.Po tmpdepfile=conftest.TPo \
3045 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3046 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3047 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3048 am_cv_CC_dependencies_compiler_type=$depmode
3049 break
3050 fi
3051 done
3052
3053 cd ..
3054 rm -rf conftest.dir
3055else
3056 am_cv_CC_dependencies_compiler_type=none
3057fi
3058
3059fi
3060echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3061echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00003062CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003063
3064
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003065ac_ext=cc
3066ac_cpp='$CXXCPP $CPPFLAGS'
3067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3070if test -n "$ac_tool_prefix"; then
3071 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3072 do
3073 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3074set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3075echo "$as_me:$LINENO: checking for $ac_word" >&5
3076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3077if test "${ac_cv_prog_CXX+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3079else
3080 if test -n "$CXX"; then
3081 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3082else
3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084for as_dir in $PATH
3085do
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3090 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 break 2
3093 fi
3094done
3095done
3096
3097fi
3098fi
3099CXX=$ac_cv_prog_CXX
3100if test -n "$CXX"; then
3101 echo "$as_me:$LINENO: result: $CXX" >&5
3102echo "${ECHO_T}$CXX" >&6
3103else
3104 echo "$as_me:$LINENO: result: no" >&5
3105echo "${ECHO_T}no" >&6
3106fi
3107
3108 test -n "$CXX" && break
3109 done
3110fi
3111if test -z "$CXX"; then
3112 ac_ct_CXX=$CXX
3113 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3114do
3115 # Extract the first word of "$ac_prog", so it can be a program name with args.
3116set dummy $ac_prog; ac_word=$2
3117echo "$as_me:$LINENO: checking for $ac_word" >&5
3118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3119if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3121else
3122 if test -n "$ac_ct_CXX"; then
3123 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3124else
3125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126for as_dir in $PATH
3127do
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 ac_cv_prog_ac_ct_CXX="$ac_prog"
3133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 break 2
3135 fi
3136done
3137done
3138
3139fi
3140fi
3141ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3142if test -n "$ac_ct_CXX"; then
3143 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3144echo "${ECHO_T}$ac_ct_CXX" >&6
3145else
3146 echo "$as_me:$LINENO: result: no" >&5
3147echo "${ECHO_T}no" >&6
3148fi
3149
3150 test -n "$ac_ct_CXX" && break
3151done
3152test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3153
3154 CXX=$ac_ct_CXX
3155fi
3156
3157
3158# Provide some information about the compiler.
3159echo "$as_me:$LINENO:" \
3160 "checking for C++ compiler version" >&5
3161ac_compiler=`set X $ac_compile; echo $2`
3162{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3163 (eval $ac_compiler --version </dev/null >&5) 2>&5
3164 ac_status=$?
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }
3167{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3168 (eval $ac_compiler -v </dev/null >&5) 2>&5
3169 ac_status=$?
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }
3172{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3173 (eval $ac_compiler -V </dev/null >&5) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }
3177
3178echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3179echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3180if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3182else
3183 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003184/* confdefs.h. */
3185_ACEOF
3186cat confdefs.h >>conftest.$ac_ext
3187cat >>conftest.$ac_ext <<_ACEOF
3188/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003189
3190int
3191main ()
3192{
3193#ifndef __GNUC__
3194 choke me
3195#endif
3196
3197 ;
3198 return 0;
3199}
3200_ACEOF
3201rm -f conftest.$ac_objext
3202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003203 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003204 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003205 grep -v '^ *+' conftest.er1 >conftest.err
3206 rm -f conftest.er1
3207 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003210 { ac_try='test -z "$ac_cxx_werror_flag"
3211 || test ! -s conftest.err'
3212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213 (eval $ac_try) 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; } &&
3217 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219 (eval $ac_try) 2>&5
3220 ac_status=$?
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; }; then
3223 ac_compiler_gnu=yes
3224else
3225 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003226sed 's/^/| /' conftest.$ac_ext >&5
3227
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003228ac_compiler_gnu=no
3229fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003231ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3232
3233fi
3234echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3235echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3236GXX=`test $ac_compiler_gnu = yes && echo yes`
3237ac_test_CXXFLAGS=${CXXFLAGS+set}
3238ac_save_CXXFLAGS=$CXXFLAGS
3239CXXFLAGS="-g"
3240echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3241echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3242if test "${ac_cv_prog_cxx_g+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3244else
3245 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003246/* confdefs.h. */
3247_ACEOF
3248cat confdefs.h >>conftest.$ac_ext
3249cat >>conftest.$ac_ext <<_ACEOF
3250/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003251
3252int
3253main ()
3254{
3255
3256 ;
3257 return 0;
3258}
3259_ACEOF
3260rm -f conftest.$ac_objext
3261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003262 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003263 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003264 grep -v '^ *+' conftest.er1 >conftest.err
3265 rm -f conftest.er1
3266 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003269 { ac_try='test -z "$ac_cxx_werror_flag"
3270 || test ! -s conftest.err'
3271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272 (eval $ac_try) 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }; } &&
3276 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278 (eval $ac_try) 2>&5
3279 ac_status=$?
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }; }; then
3282 ac_cv_prog_cxx_g=yes
3283else
3284 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003285sed 's/^/| /' conftest.$ac_ext >&5
3286
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003287ac_cv_prog_cxx_g=no
3288fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003290fi
3291echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3292echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3293if test "$ac_test_CXXFLAGS" = set; then
3294 CXXFLAGS=$ac_save_CXXFLAGS
3295elif test $ac_cv_prog_cxx_g = yes; then
3296 if test "$GXX" = yes; then
3297 CXXFLAGS="-g -O2"
3298 else
3299 CXXFLAGS="-g"
3300 fi
3301else
3302 if test "$GXX" = yes; then
3303 CXXFLAGS="-O2"
3304 else
3305 CXXFLAGS=
3306 fi
3307fi
3308for ac_declaration in \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003309 '' \
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003310 'extern "C" void std::exit (int) throw (); using std::exit;' \
3311 'extern "C" void std::exit (int); using std::exit;' \
3312 'extern "C" void exit (int) throw ();' \
3313 'extern "C" void exit (int);' \
3314 'void exit (int);'
3315do
3316 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003317/* confdefs.h. */
3318_ACEOF
3319cat confdefs.h >>conftest.$ac_ext
3320cat >>conftest.$ac_ext <<_ACEOF
3321/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003322$ac_declaration
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003323#include <stdlib.h>
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003324int
3325main ()
3326{
3327exit (42);
3328 ;
3329 return 0;
3330}
3331_ACEOF
3332rm -f conftest.$ac_objext
3333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003334 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003335 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003336 grep -v '^ *+' conftest.er1 >conftest.err
3337 rm -f conftest.er1
3338 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003341 { ac_try='test -z "$ac_cxx_werror_flag"
3342 || test ! -s conftest.err'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 (eval $ac_try) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; } &&
3348 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 (eval $ac_try) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 :
3355else
3356 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003357sed 's/^/| /' conftest.$ac_ext >&5
3358
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003359continue
3360fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003362 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003363/* confdefs.h. */
3364_ACEOF
3365cat confdefs.h >>conftest.$ac_ext
3366cat >>conftest.$ac_ext <<_ACEOF
3367/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003368$ac_declaration
3369int
3370main ()
3371{
3372exit (42);
3373 ;
3374 return 0;
3375}
3376_ACEOF
3377rm -f conftest.$ac_objext
3378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003379 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003380 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003381 grep -v '^ *+' conftest.er1 >conftest.err
3382 rm -f conftest.er1
3383 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003386 { ac_try='test -z "$ac_cxx_werror_flag"
3387 || test ! -s conftest.err'
3388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389 (eval $ac_try) 2>&5
3390 ac_status=$?
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; } &&
3393 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 (eval $ac_try) 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; }; then
3399 break
3400else
3401 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003402sed 's/^/| /' conftest.$ac_ext >&5
3403
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003404fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003406done
3407rm -f conftest*
3408if test -n "$ac_declaration"; then
3409 echo '#ifdef __cplusplus' >>confdefs.h
3410 echo $ac_declaration >>confdefs.h
3411 echo '#endif' >>confdefs.h
3412fi
3413
3414ac_ext=c
3415ac_cpp='$CPP $CPPFLAGS'
3416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3418ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419
3420depcc="$CXX" am_compiler_list=
3421
3422echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3423echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3424if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426else
3427 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3428 # We make a subdir and do the tests there. Otherwise we can end up
3429 # making bogus files that we don't know about and never remove. For
3430 # instance it was reported that on HP-UX the gcc test will end up
3431 # making a dummy file named `D' -- because `-MD' means `put the output
3432 # in D'.
3433 mkdir conftest.dir
3434 # Copy depcomp to subdir because otherwise we won't find it if we're
3435 # using a relative directory.
3436 cp "$am_depcomp" conftest.dir
3437 cd conftest.dir
3438
3439 am_cv_CXX_dependencies_compiler_type=none
3440 if test "$am_compiler_list" = ""; then
3441 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3442 fi
3443 for depmode in $am_compiler_list; do
3444 # We need to recreate these files for each test, as the compiler may
3445 # overwrite some of them when testing with obscure command lines.
3446 # This happens at least with the AIX C compiler.
3447 echo '#include "conftest.h"' > conftest.c
3448 echo 'int i;' > conftest.h
3449 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3450
3451 case $depmode in
3452 nosideeffect)
3453 # after this tag, mechanisms are not by side-effect, so they'll
3454 # only be used when explicitly requested
3455 if test "x$enable_dependency_tracking" = xyes; then
3456 continue
3457 else
3458 break
3459 fi
3460 ;;
3461 none) break ;;
3462 esac
3463 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3464 # mode. It turns out that the SunPro C++ compiler does not properly
3465 # handle `-M -o', and we need to detect this.
3466 if depmode=$depmode \
3467 source=conftest.c object=conftest.o \
3468 depfile=conftest.Po tmpdepfile=conftest.TPo \
3469 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3470 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3471 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3472 am_cv_CXX_dependencies_compiler_type=$depmode
3473 break
3474 fi
3475 done
3476
3477 cd ..
3478 rm -rf conftest.dir
3479else
3480 am_cv_CXX_dependencies_compiler_type=none
3481fi
3482
3483fi
3484echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3485echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3486CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3487
3488
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003489# Find a good install program. We prefer a C program (faster),
3490# so one script is as good as another. But avoid the broken or
3491# incompatible versions:
3492# SysV /etc/install, /usr/sbin/install
3493# SunOS /usr/etc/install
3494# IRIX /sbin/install
3495# AIX /bin/install
3496# AmigaOS /C/install, which installs bootblocks on floppy discs
3497# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3498# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3499# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003500# OS/2's system install, which has a completely different semantic
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003501# ./install, which can be erroneously created by make from ./install.sh.
3502echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3503echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3504if test -z "$INSTALL"; then
3505if test "${ac_cv_path_install+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3507else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509for as_dir in $PATH
3510do
3511 IFS=$as_save_IFS
3512 test -z "$as_dir" && as_dir=.
3513 # Account for people who put trailing slashes in PATH elements.
3514case $as_dir/ in
3515 ./ | .// | /cC/* | \
3516 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003517 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003518 /usr/ucb/* ) ;;
3519 *)
3520 # OSF1 and SCO ODT 3.0 have their own names for install.
3521 # Don't use installbsd from OSF since it installs stuff as root
3522 # by default.
3523 for ac_prog in ginstall scoinst install; do
3524 for ac_exec_ext in '' $ac_executable_extensions; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003525 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3526 if test $ac_prog = install &&
3527 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3528 # AIX install. It has an incompatible calling convention.
3529 :
3530 elif test $ac_prog = install &&
3531 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3532 # program-specific install script used by HP pwplus--don't use.
3533 :
3534 else
3535 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3536 break 3
3537 fi
3538 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003539 done
3540 done
3541 ;;
3542esac
3543done
3544
3545
3546fi
3547 if test "${ac_cv_path_install+set}" = set; then
3548 INSTALL=$ac_cv_path_install
3549 else
3550 # As a last resort, use the slow shell script. We don't cache a
3551 # path for INSTALL within a source directory, because that will
3552 # break other packages using the cache if that directory is
3553 # removed, or if the path is relative.
3554 INSTALL=$ac_install_sh
3555 fi
3556fi
3557echo "$as_me:$LINENO: result: $INSTALL" >&5
3558echo "${ECHO_T}$INSTALL" >&6
3559
3560# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3561# It thinks the first close brace ends the variable substitution.
3562test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3563
3564test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3565
3566test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3567
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003568echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3569echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003570set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003571if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3573else
3574 cat >conftest.make <<\_ACEOF
3575all:
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003576 @echo 'ac_maketemp="$(MAKE)"'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003577_ACEOF
3578# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3579eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3580if test -n "$ac_maketemp"; then
3581 eval ac_cv_prog_make_${ac_make}_set=yes
3582else
3583 eval ac_cv_prog_make_${ac_make}_set=no
3584fi
3585rm -f conftest.make
3586fi
3587if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3588 echo "$as_me:$LINENO: result: yes" >&5
3589echo "${ECHO_T}yes" >&6
3590 SET_MAKE=
3591else
3592 echo "$as_me:$LINENO: result: no" >&5
3593echo "${ECHO_T}no" >&6
3594 SET_MAKE="MAKE=${MAKE-make}"
3595fi
3596
3597# Check whether --enable-shared or --disable-shared was given.
3598if test "${enable_shared+set}" = set; then
3599 enableval="$enable_shared"
3600 p=${PACKAGE-default}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003601 case $enableval in
3602 yes) enable_shared=yes ;;
3603 no) enable_shared=no ;;
3604 *)
3605 enable_shared=no
3606 # Look at the argument we got. We use all the common list separators.
3607 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3608 for pkg in $enableval; do
3609 IFS="$lt_save_ifs"
3610 if test "X$pkg" = "X$p"; then
3611 enable_shared=yes
3612 fi
3613 done
3614 IFS="$lt_save_ifs"
3615 ;;
3616 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003617else
3618 enable_shared=yes
3619fi;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003620
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003621# Check whether --enable-static or --disable-static was given.
3622if test "${enable_static+set}" = set; then
3623 enableval="$enable_static"
3624 p=${PACKAGE-default}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003625 case $enableval in
3626 yes) enable_static=yes ;;
3627 no) enable_static=no ;;
3628 *)
3629 enable_static=no
3630 # Look at the argument we got. We use all the common list separators.
3631 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3632 for pkg in $enableval; do
3633 IFS="$lt_save_ifs"
3634 if test "X$pkg" = "X$p"; then
3635 enable_static=yes
3636 fi
3637 done
3638 IFS="$lt_save_ifs"
3639 ;;
3640 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003641else
3642 enable_static=yes
3643fi;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003644
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003645# Check whether --enable-fast-install or --disable-fast-install was given.
3646if test "${enable_fast_install+set}" = set; then
3647 enableval="$enable_fast_install"
3648 p=${PACKAGE-default}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003649 case $enableval in
3650 yes) enable_fast_install=yes ;;
3651 no) enable_fast_install=no ;;
3652 *)
3653 enable_fast_install=no
3654 # Look at the argument we got. We use all the common list separators.
3655 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3656 for pkg in $enableval; do
3657 IFS="$lt_save_ifs"
3658 if test "X$pkg" = "X$p"; then
3659 enable_fast_install=yes
3660 fi
3661 done
3662 IFS="$lt_save_ifs"
3663 ;;
3664 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003665else
3666 enable_fast_install=yes
3667fi;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003668
3669echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3670echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3671if test "${lt_cv_path_SED+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673else
3674 # Loop through the user's path and test for sed and gsed.
3675# Then use that list of sed's as ones to test for truncation.
3676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677for as_dir in $PATH
3678do
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
3681 for lt_ac_prog in sed gsed; do
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3684 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3685 fi
3686 done
3687 done
3688done
3689lt_ac_max=0
3690lt_ac_count=0
3691# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3692# along with /bin/sed that truncates output.
3693for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3694 test ! -f $lt_ac_sed && break
3695 cat /dev/null > conftest.in
3696 lt_ac_count=0
3697 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3698 # Check for GNU sed and select it if it is found.
3699 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3700 lt_cv_path_SED=$lt_ac_sed
3701 break
3702 fi
3703 while true; do
3704 cat conftest.in conftest.in >conftest.tmp
3705 mv conftest.tmp conftest.in
3706 cp conftest.in conftest.nl
3707 echo >>conftest.nl
3708 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3709 cmp -s conftest.out conftest.nl || break
3710 # 10000 chars as input seems more than enough
3711 test $lt_ac_count -gt 10 && break
3712 lt_ac_count=`expr $lt_ac_count + 1`
3713 if test $lt_ac_count -gt $lt_ac_max; then
3714 lt_ac_max=$lt_ac_count
3715 lt_cv_path_SED=$lt_ac_sed
3716 fi
3717 done
3718done
3719SED=$lt_cv_path_SED
3720
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003721fi
3722
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003723echo "$as_me:$LINENO: result: $SED" >&5
3724echo "${ECHO_T}$SED" >&6
3725
3726echo "$as_me:$LINENO: checking for egrep" >&5
3727echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3728if test "${ac_cv_prog_egrep+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3730else
3731 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3732 then ac_cv_prog_egrep='grep -E'
3733 else ac_cv_prog_egrep='egrep'
3734 fi
3735fi
3736echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3737echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3738 EGREP=$ac_cv_prog_egrep
3739
3740
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003741
3742# Check whether --with-gnu-ld or --without-gnu-ld was given.
3743if test "${with_gnu_ld+set}" = set; then
3744 withval="$with_gnu_ld"
3745 test "$withval" = no || with_gnu_ld=yes
3746else
3747 with_gnu_ld=no
3748fi;
3749ac_prog=ld
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003750if test "$GCC" = yes; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003751 # Check if gcc -print-prog-name=ld gives a path.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003752 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3753echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003754 case $host in
3755 *-*-mingw*)
3756 # gcc leaves a trailing carriage return which upsets mingw
3757 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3758 *)
3759 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3760 esac
3761 case $ac_prog in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003762 # Accept absolute paths.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003763 [\\/]* | ?:[\\/]*)
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003764 re_direlt='/[^/][^/]*/\.\./'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003765 # Canonicalize the pathname of ld
3766 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003767 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003768 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003769 done
3770 test -z "$LD" && LD="$ac_prog"
3771 ;;
3772 "")
3773 # If it fails, then pretend we aren't using GCC.
3774 ac_prog=ld
3775 ;;
3776 *)
3777 # If it is relative, then search for the first ld in PATH.
3778 with_gnu_ld=unknown
3779 ;;
3780 esac
3781elif test "$with_gnu_ld" = yes; then
3782 echo "$as_me:$LINENO: checking for GNU ld" >&5
3783echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3784else
3785 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3786echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3787fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003788if test "${lt_cv_path_LD+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003789 echo $ECHO_N "(cached) $ECHO_C" >&6
3790else
3791 if test -z "$LD"; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003792 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003793 for ac_dir in $PATH; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003794 IFS="$lt_save_ifs"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003795 test -z "$ac_dir" && ac_dir=.
3796 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003797 lt_cv_path_LD="$ac_dir/$ac_prog"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003798 # Check to see if the program is GNU ld. I'd rather use --version,
3799 # but apparently some GNU ld's only accept -v.
3800 # Break only if it was the GNU/non-GNU ld that we prefer.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003801 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3802 *GNU* | *'with BFD'*)
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003803 test "$with_gnu_ld" != no && break
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003804 ;;
3805 *)
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003806 test "$with_gnu_ld" != yes && break
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003807 ;;
3808 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003809 fi
3810 done
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003811 IFS="$lt_save_ifs"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003812else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003813 lt_cv_path_LD="$LD" # Let the user override the test with a path.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003814fi
3815fi
3816
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003817LD="$lt_cv_path_LD"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003818if test -n "$LD"; then
3819 echo "$as_me:$LINENO: result: $LD" >&5
3820echo "${ECHO_T}$LD" >&6
3821else
3822 echo "$as_me:$LINENO: result: no" >&5
3823echo "${ECHO_T}no" >&6
3824fi
3825test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3826echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3827 { (exit 1); exit 1; }; }
3828echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3829echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003830if test "${lt_cv_prog_gnu_ld+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003831 echo $ECHO_N "(cached) $ECHO_C" >&6
3832else
3833 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003834case `$LD -v 2>&1 </dev/null` in
3835*GNU* | *'with BFD'*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003836 lt_cv_prog_gnu_ld=yes
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003837 ;;
3838*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003839 lt_cv_prog_gnu_ld=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003840 ;;
3841esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003842fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003843echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3844echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3845with_gnu_ld=$lt_cv_prog_gnu_ld
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003846
3847
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003848echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3849echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3850if test "${lt_cv_ld_reload_flag+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852else
3853 lt_cv_ld_reload_flag='-r'
3854fi
3855echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3856echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3857reload_flag=$lt_cv_ld_reload_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003858case $reload_flag in
3859"" | " "*) ;;
3860*) reload_flag=" $reload_flag" ;;
3861esac
3862reload_cmds='$LD$reload_flag -o $output$reload_objs'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003863
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003864echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3865echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003866if test "${lt_cv_path_NM+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868else
3869 if test -n "$NM"; then
3870 # Let the user override the test.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003871 lt_cv_path_NM="$NM"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003872else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003873 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003874 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003875 IFS="$lt_save_ifs"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003876 test -z "$ac_dir" && ac_dir=.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003877 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3878 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003879 # Check to see if the nm accepts a BSD-compat flag.
3880 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3881 # nm: unknown option "B" ignored
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003882 # Tru64's nm complains that /dev/null is an invalid object file
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003883 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3884 */dev/null* | *'Invalid file or object type'*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003885 lt_cv_path_NM="$tmp_nm -B"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003886 break
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003887 ;;
3888 *)
3889 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3890 */dev/null*)
3891 lt_cv_path_NM="$tmp_nm -p"
3892 break
3893 ;;
3894 *)
3895 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3896 continue # so that we can try to find one that supports BSD flags
3897 ;;
3898 esac
3899 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003900 fi
3901 done
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003902 IFS="$lt_save_ifs"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003903 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003904fi
3905fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003906echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3907echo "${ECHO_T}$lt_cv_path_NM" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003908NM="$lt_cv_path_NM"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003909
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003910echo "$as_me:$LINENO: checking whether ln -s works" >&5
3911echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3912LN_S=$as_ln_s
3913if test "$LN_S" = "ln -s"; then
3914 echo "$as_me:$LINENO: result: yes" >&5
3915echo "${ECHO_T}yes" >&6
3916else
3917 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3918echo "${ECHO_T}no, using $LN_S" >&6
3919fi
3920
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003921echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3922echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3923if test "${lt_cv_deplibs_check_method+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925else
3926 lt_cv_file_magic_cmd='$MAGIC_CMD'
3927lt_cv_file_magic_test_file=
3928lt_cv_deplibs_check_method='unknown'
3929# Need to set the preceding variable on all platforms that support
3930# interlibrary dependencies.
3931# 'none' -- dependencies not supported.
3932# `unknown' -- same as none, but documents that we really don't know.
3933# 'pass_all' -- all dependencies passed with no checks.
3934# 'test_compile' -- check by making test program.
3935# 'file_magic [[regex]]' -- check by looking for files in library path
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003936# which responds to the $file_magic_cmd with a given extended regex.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003937# If you have `file' or equivalent on your system and you're not sure
3938# whether `pass_all' will *always* work, you probably want this one.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003939
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003940case $host_os in
3941aix4* | aix5*)
3942 lt_cv_deplibs_check_method=pass_all
3943 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003944
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003945beos*)
3946 lt_cv_deplibs_check_method=pass_all
3947 ;;
3948
3949bsdi4*)
3950 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3951 lt_cv_file_magic_cmd='/usr/bin/file -L'
3952 lt_cv_file_magic_test_file=/shlib/libc.so
3953 ;;
3954
3955cygwin* | mingw* | pw32*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003956 # win32_libid is a shell function defined in ltmain.sh
3957 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3958 lt_cv_file_magic_cmd='win32_libid'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003959 ;;
3960
3961darwin* | rhapsody*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003962 lt_cv_deplibs_check_method=pass_all
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003963 ;;
3964
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003965freebsd* | kfreebsd*-gnu)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003966 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3967 case $host_cpu in
3968 i*86 )
3969 # Not sure whether the presence of OpenBSD here was a mistake.
3970 # Let's accept both of them until this is cleared up.
3971 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3972 lt_cv_file_magic_cmd=/usr/bin/file
3973 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3974 ;;
3975 esac
3976 else
3977 lt_cv_deplibs_check_method=pass_all
3978 fi
3979 ;;
3980
3981gnu*)
3982 lt_cv_deplibs_check_method=pass_all
3983 ;;
3984
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003985hpux10.20* | hpux11*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003986 lt_cv_file_magic_cmd=/usr/bin/file
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003987 case "$host_cpu" in
3988 ia64*)
3989 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3990 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3991 ;;
3992 hppa*64*)
3993 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]'
3994 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3995 ;;
3996 *)
3997 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3998 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3999 ;;
4000 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004001 ;;
4002
4003irix5* | irix6* | nonstopux*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004004 case $LD in
4005 *-32|*"-32 ") libmagic=32-bit;;
4006 *-n32|*"-n32 ") libmagic=N32;;
4007 *-64|*"-64 ") libmagic=64-bit;;
4008 *) libmagic=never-match;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004009 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004010 lt_cv_deplibs_check_method=pass_all
4011 ;;
4012
4013# This must be Linux ELF.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004014linux*)
4015 lt_cv_deplibs_check_method=pass_all
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004016 ;;
4017
4018netbsd*)
4019 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004020 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004021 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004023 fi
4024 ;;
4025
4026newos6*)
4027 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4028 lt_cv_file_magic_cmd=/usr/bin/file
4029 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4030 ;;
4031
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004032nto-qnx*)
4033 lt_cv_deplibs_check_method=unknown
4034 ;;
4035
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004036openbsd*)
4037 lt_cv_file_magic_cmd=/usr/bin/file
4038 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4039 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4041 else
4042 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4043 fi
4044 ;;
4045
4046osf3* | osf4* | osf5*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004047 lt_cv_deplibs_check_method=pass_all
4048 ;;
4049
4050sco3.2v5*)
4051 lt_cv_deplibs_check_method=pass_all
4052 ;;
4053
4054solaris*)
4055 lt_cv_deplibs_check_method=pass_all
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004056 ;;
4057
4058sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4059 case $host_vendor in
4060 motorola)
4061 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]'
4062 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4063 ;;
4064 ncr)
4065 lt_cv_deplibs_check_method=pass_all
4066 ;;
4067 sequent)
4068 lt_cv_file_magic_cmd='/bin/file'
4069 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4070 ;;
4071 sni)
4072 lt_cv_file_magic_cmd='/bin/file'
4073 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4074 lt_cv_file_magic_test_file=/lib/libc.so
4075 ;;
4076 siemens)
4077 lt_cv_deplibs_check_method=pass_all
4078 ;;
4079 esac
4080 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004081
4082sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4083 lt_cv_deplibs_check_method=pass_all
4084 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004085esac
4086
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004087fi
4088echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4089echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4090file_magic_cmd=$lt_cv_file_magic_cmd
4091deplibs_check_method=$lt_cv_deplibs_check_method
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004092test -z "$deplibs_check_method" && deplibs_check_method=unknown
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004093
4094
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004095
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004096
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004097# If no C compiler was specified, use CC.
4098LTCC=${LTCC-"$CC"}
4099
4100# Allow CC to be a program name with arguments.
4101compiler=$CC
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004102
4103
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004104# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4105if test "${enable_libtool_lock+set}" = set; then
4106 enableval="$enable_libtool_lock"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004107
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004108fi;
4109test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004110
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004111# Some flags need to be propagated to the compiler or linker for good
4112# libtool support.
4113case $host in
4114ia64-*-hpux*)
4115 # Find out which ABI we are using.
4116 echo 'int i;' > conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4118 (eval $ac_compile) 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004122 case `/usr/bin/file conftest.$ac_objext` in
4123 *ELF-32*)
4124 HPUX_IA64_MODE="32"
4125 ;;
4126 *ELF-64*)
4127 HPUX_IA64_MODE="64"
4128 ;;
4129 esac
4130 fi
4131 rm -rf conftest*
4132 ;;
4133*-*-irix6*)
4134 # Find out which ABI we are using.
4135 echo '#line 4135 "configure"' > conftest.$ac_ext
4136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4137 (eval $ac_compile) 2>&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004138 ac_status=$?
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004140 (exit $ac_status); }; then
4141 if test "$lt_cv_prog_gnu_ld" = yes; then
4142 case `/usr/bin/file conftest.$ac_objext` in
4143 *32-bit*)
4144 LD="${LD-ld} -melf32bsmip"
4145 ;;
4146 *N32*)
4147 LD="${LD-ld} -melf32bmipn32"
4148 ;;
4149 *64-bit*)
4150 LD="${LD-ld} -melf64bmip"
4151 ;;
4152 esac
4153 else
4154 case `/usr/bin/file conftest.$ac_objext` in
4155 *32-bit*)
4156 LD="${LD-ld} -32"
4157 ;;
4158 *N32*)
4159 LD="${LD-ld} -n32"
4160 ;;
4161 *64-bit*)
4162 LD="${LD-ld} -64"
4163 ;;
4164 esac
4165 fi
4166 fi
4167 rm -rf conftest*
4168 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004169
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004170x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4171 # Find out which ABI we are using.
4172 echo 'int i;' > conftest.$ac_ext
4173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4174 (eval $ac_compile) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; then
4178 case "`/usr/bin/file conftest.o`" in
4179 *32-bit*)
4180 case $host in
4181 x86_64-*linux*)
4182 LD="${LD-ld} -m elf_i386"
4183 ;;
4184 ppc64-*linux*|powerpc64-*linux*)
4185 LD="${LD-ld} -m elf32ppclinux"
4186 ;;
4187 s390x-*linux*)
4188 LD="${LD-ld} -m elf_s390"
4189 ;;
4190 sparc64-*linux*)
4191 LD="${LD-ld} -m elf32_sparc"
4192 ;;
4193 esac
4194 ;;
4195 *64-bit*)
4196 case $host in
4197 x86_64-*linux*)
4198 LD="${LD-ld} -m elf_x86_64"
4199 ;;
4200 ppc*-*linux*|powerpc*-*linux*)
4201 LD="${LD-ld} -m elf64ppc"
4202 ;;
4203 s390*-*linux*)
4204 LD="${LD-ld} -m elf64_s390"
4205 ;;
4206 sparc*-*linux*)
4207 LD="${LD-ld} -m elf64_sparc"
4208 ;;
4209 esac
4210 ;;
4211 esac
4212 fi
4213 rm -rf conftest*
4214 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004215
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004216*-*-sco3.2v5*)
4217 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4218 SAVE_CFLAGS="$CFLAGS"
4219 CFLAGS="$CFLAGS -belf"
4220 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4221echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4222if test "${lt_cv_cc_needs_belf+set}" = set; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4224else
4225 ac_ext=c
4226ac_cpp='$CPP $CPPFLAGS'
4227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229ac_compiler_gnu=$ac_cv_c_compiler_gnu
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004230
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004231 cat >conftest.$ac_ext <<_ACEOF
4232/* confdefs.h. */
4233_ACEOF
4234cat confdefs.h >>conftest.$ac_ext
4235cat >>conftest.$ac_ext <<_ACEOF
4236/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004237
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004238int
4239main ()
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004240{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004241
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004242 ;
4243 return 0;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004244}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004245_ACEOF
4246rm -f conftest.$ac_objext conftest$ac_exeext
4247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4248 (eval $ac_link) 2>conftest.er1
4249 ac_status=$?
4250 grep -v '^ *+' conftest.er1 >conftest.err
4251 rm -f conftest.er1
4252 cat conftest.err >&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); } &&
4255 { ac_try='test -z "$ac_c_werror_flag"
4256 || test ! -s conftest.err'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 (eval $ac_try) 2>&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004261 (exit $ac_status); }; } &&
4262 { ac_try='test -s conftest$ac_exeext'
4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264 (eval $ac_try) 2>&5
4265 ac_status=$?
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; }; then
4268 lt_cv_cc_needs_belf=yes
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004269else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004270 echo "$as_me: failed program was:" >&5
4271sed 's/^/| /' conftest.$ac_ext >&5
4272
4273lt_cv_cc_needs_belf=no
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004274fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004275rm -f conftest.err conftest.$ac_objext \
4276 conftest$ac_exeext conftest.$ac_ext
4277 ac_ext=c
4278ac_cpp='$CPP $CPPFLAGS'
4279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4281ac_compiler_gnu=$ac_cv_c_compiler_gnu
4282
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004283fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004284echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4285echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4286 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4287 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4288 CFLAGS="$SAVE_CFLAGS"
4289 fi
4290 ;;
4291
4292esac
4293
4294need_locks="$enable_libtool_lock"
4295
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004296
4297ac_ext=c
4298ac_cpp='$CPP $CPPFLAGS'
4299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301ac_compiler_gnu=$ac_cv_c_compiler_gnu
4302echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4303echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4304# On Suns, sometimes $CPP names a directory.
4305if test -n "$CPP" && test -d "$CPP"; then
4306 CPP=
4307fi
4308if test -z "$CPP"; then
4309 if test "${ac_cv_prog_CPP+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311else
4312 # Double quotes because CPP needs to be expanded
4313 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4314 do
4315 ac_preproc_ok=false
4316for ac_c_preproc_warn_flag in '' yes
4317do
4318 # Use a header file that comes with gcc, so configuring glibc
4319 # with a fresh cross-compiler works.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4321 # <limits.h> exists even on freestanding compilers.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004322 # On the NeXT, cc -E runs the code through the compiler's parser,
4323 # not just through cpp. "Syntax error" is here to catch this case.
4324 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004325/* confdefs.h. */
4326_ACEOF
4327cat confdefs.h >>conftest.$ac_ext
4328cat >>conftest.$ac_ext <<_ACEOF
4329/* end confdefs.h. */
4330#ifdef __STDC__
4331# include <limits.h>
4332#else
4333# include <assert.h>
4334#endif
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004335 Syntax error
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004336_ACEOF
4337if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4339 ac_status=$?
4340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } >/dev/null; then
4345 if test -s conftest.err; then
4346 ac_cpp_err=$ac_c_preproc_warn_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004348 else
4349 ac_cpp_err=
4350 fi
4351else
4352 ac_cpp_err=yes
4353fi
4354if test -z "$ac_cpp_err"; then
4355 :
4356else
4357 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004358sed 's/^/| /' conftest.$ac_ext >&5
4359
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004360 # Broken: fails on valid input.
4361continue
4362fi
4363rm -f conftest.err conftest.$ac_ext
4364
4365 # OK, works on sane cases. Now check whether non-existent headers
4366 # can be detected and how.
4367 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004368/* confdefs.h. */
4369_ACEOF
4370cat confdefs.h >>conftest.$ac_ext
4371cat >>conftest.$ac_ext <<_ACEOF
4372/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004373#include <ac_nonexistent.h>
4374_ACEOF
4375if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4377 ac_status=$?
4378 grep -v '^ *+' conftest.er1 >conftest.err
4379 rm -f conftest.er1
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } >/dev/null; then
4383 if test -s conftest.err; then
4384 ac_cpp_err=$ac_c_preproc_warn_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004386 else
4387 ac_cpp_err=
4388 fi
4389else
4390 ac_cpp_err=yes
4391fi
4392if test -z "$ac_cpp_err"; then
4393 # Broken: success on invalid input.
4394continue
4395else
4396 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004397sed 's/^/| /' conftest.$ac_ext >&5
4398
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004399 # Passes both tests.
4400ac_preproc_ok=:
4401break
4402fi
4403rm -f conftest.err conftest.$ac_ext
4404
4405done
4406# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4407rm -f conftest.err conftest.$ac_ext
4408if $ac_preproc_ok; then
4409 break
4410fi
4411
4412 done
4413 ac_cv_prog_CPP=$CPP
4414
4415fi
4416 CPP=$ac_cv_prog_CPP
4417else
4418 ac_cv_prog_CPP=$CPP
4419fi
4420echo "$as_me:$LINENO: result: $CPP" >&5
4421echo "${ECHO_T}$CPP" >&6
4422ac_preproc_ok=false
4423for ac_c_preproc_warn_flag in '' yes
4424do
4425 # Use a header file that comes with gcc, so configuring glibc
4426 # with a fresh cross-compiler works.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4428 # <limits.h> exists even on freestanding compilers.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004429 # On the NeXT, cc -E runs the code through the compiler's parser,
4430 # not just through cpp. "Syntax error" is here to catch this case.
4431 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004432/* confdefs.h. */
4433_ACEOF
4434cat confdefs.h >>conftest.$ac_ext
4435cat >>conftest.$ac_ext <<_ACEOF
4436/* end confdefs.h. */
4437#ifdef __STDC__
4438# include <limits.h>
4439#else
4440# include <assert.h>
4441#endif
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004442 Syntax error
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004443_ACEOF
4444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4446 ac_status=$?
4447 grep -v '^ *+' conftest.er1 >conftest.err
4448 rm -f conftest.er1
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } >/dev/null; then
4452 if test -s conftest.err; then
4453 ac_cpp_err=$ac_c_preproc_warn_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004455 else
4456 ac_cpp_err=
4457 fi
4458else
4459 ac_cpp_err=yes
4460fi
4461if test -z "$ac_cpp_err"; then
4462 :
4463else
4464 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004465sed 's/^/| /' conftest.$ac_ext >&5
4466
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004467 # Broken: fails on valid input.
4468continue
4469fi
4470rm -f conftest.err conftest.$ac_ext
4471
4472 # OK, works on sane cases. Now check whether non-existent headers
4473 # can be detected and how.
4474 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004475/* confdefs.h. */
4476_ACEOF
4477cat confdefs.h >>conftest.$ac_ext
4478cat >>conftest.$ac_ext <<_ACEOF
4479/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004480#include <ac_nonexistent.h>
4481_ACEOF
4482if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } >/dev/null; then
4490 if test -s conftest.err; then
4491 ac_cpp_err=$ac_c_preproc_warn_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004493 else
4494 ac_cpp_err=
4495 fi
4496else
4497 ac_cpp_err=yes
4498fi
4499if test -z "$ac_cpp_err"; then
4500 # Broken: success on invalid input.
4501continue
4502else
4503 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004504sed 's/^/| /' conftest.$ac_ext >&5
4505
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004506 # Passes both tests.
4507ac_preproc_ok=:
4508break
4509fi
4510rm -f conftest.err conftest.$ac_ext
4511
4512done
4513# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4514rm -f conftest.err conftest.$ac_ext
4515if $ac_preproc_ok; then
4516 :
4517else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004518 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4519See \`config.log' for more details." >&5
4520echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4521See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004522 { (exit 1); exit 1; }; }
4523fi
4524
4525ac_ext=c
4526ac_cpp='$CPP $CPPFLAGS'
4527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529ac_compiler_gnu=$ac_cv_c_compiler_gnu
4530
4531
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004532echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4533echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4534if test "${ac_cv_header_stdc+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4536else
4537 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004538/* confdefs.h. */
4539_ACEOF
4540cat confdefs.h >>conftest.$ac_ext
4541cat >>conftest.$ac_ext <<_ACEOF
4542/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004543#include <stdlib.h>
4544#include <stdarg.h>
4545#include <string.h>
4546#include <float.h>
4547
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004548int
4549main ()
4550{
4551
4552 ;
4553 return 0;
4554}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004555_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004556rm -f conftest.$ac_objext
4557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004558 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004559 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004560 grep -v '^ *+' conftest.er1 >conftest.err
4561 rm -f conftest.er1
4562 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004564 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004565 { ac_try='test -z "$ac_c_werror_flag"
4566 || test ! -s conftest.err'
4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 (eval $ac_try) 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; } &&
4572 { ac_try='test -s conftest.$ac_objext'
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 (eval $ac_try) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; }; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004578 ac_cv_header_stdc=yes
4579else
4580 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004581sed 's/^/| /' conftest.$ac_ext >&5
4582
4583ac_cv_header_stdc=no
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004584fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004586
4587if test $ac_cv_header_stdc = yes; then
4588 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4589 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004590/* confdefs.h. */
4591_ACEOF
4592cat confdefs.h >>conftest.$ac_ext
4593cat >>conftest.$ac_ext <<_ACEOF
4594/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004595#include <string.h>
4596
4597_ACEOF
4598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4599 $EGREP "memchr" >/dev/null 2>&1; then
4600 :
4601else
4602 ac_cv_header_stdc=no
4603fi
4604rm -f conftest*
4605
4606fi
4607
4608if test $ac_cv_header_stdc = yes; then
4609 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4610 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004611/* confdefs.h. */
4612_ACEOF
4613cat confdefs.h >>conftest.$ac_ext
4614cat >>conftest.$ac_ext <<_ACEOF
4615/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004616#include <stdlib.h>
4617
4618_ACEOF
4619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4620 $EGREP "free" >/dev/null 2>&1; then
4621 :
4622else
4623 ac_cv_header_stdc=no
4624fi
4625rm -f conftest*
4626
4627fi
4628
4629if test $ac_cv_header_stdc = yes; then
4630 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4631 if test "$cross_compiling" = yes; then
4632 :
4633else
4634 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004635/* confdefs.h. */
4636_ACEOF
4637cat confdefs.h >>conftest.$ac_ext
4638cat >>conftest.$ac_ext <<_ACEOF
4639/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004640#include <ctype.h>
4641#if ((' ' & 0x0FF) == 0x020)
4642# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4643# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4644#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004645# define ISLOWER(c) \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004646 (('a' <= (c) && (c) <= 'i') \
4647 || ('j' <= (c) && (c) <= 'r') \
4648 || ('s' <= (c) && (c) <= 'z'))
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004649# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4650#endif
4651
4652#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4653int
4654main ()
4655{
4656 int i;
4657 for (i = 0; i < 256; i++)
4658 if (XOR (islower (i), ISLOWER (i))
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004659 || toupper (i) != TOUPPER (i))
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004660 exit(2);
4661 exit (0);
4662}
4663_ACEOF
4664rm -f conftest$ac_exeext
4665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4666 (eval $ac_link) 2>&5
4667 ac_status=$?
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 (eval $ac_try) 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 :
4676else
4677 echo "$as_me: program exited with status $ac_status" >&5
4678echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004679sed 's/^/| /' conftest.$ac_ext >&5
4680
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004681( exit $ac_status )
4682ac_cv_header_stdc=no
4683fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004684rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004685fi
4686fi
4687fi
4688echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4689echo "${ECHO_T}$ac_cv_header_stdc" >&6
4690if test $ac_cv_header_stdc = yes; then
4691
4692cat >>confdefs.h <<\_ACEOF
4693#define STDC_HEADERS 1
4694_ACEOF
4695
4696fi
4697
4698# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708for 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 +00004709 inttypes.h stdint.h unistd.h
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004710do
4711as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4712echo "$as_me:$LINENO: checking for $ac_header" >&5
4713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4714if eval "test \"\${$as_ac_Header+set}\" = set"; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4716else
4717 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004718/* confdefs.h. */
4719_ACEOF
4720cat confdefs.h >>conftest.$ac_ext
4721cat >>conftest.$ac_ext <<_ACEOF
4722/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004723$ac_includes_default
4724
4725#include <$ac_header>
4726_ACEOF
4727rm -f conftest.$ac_objext
4728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004729 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004730 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004731 grep -v '^ *+' conftest.er1 >conftest.err
4732 rm -f conftest.er1
4733 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004736 { ac_try='test -z "$ac_c_werror_flag"
4737 || test ! -s conftest.err'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 (eval $ac_try) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; } &&
4743 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 (eval $ac_try) 2>&5
4746 ac_status=$?
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; }; then
4749 eval "$as_ac_Header=yes"
4750else
4751 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004752sed 's/^/| /' conftest.$ac_ext >&5
4753
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004754eval "$as_ac_Header=no"
4755fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004757fi
4758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4759echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4760if test `eval echo '${'$as_ac_Header'}'` = yes; then
4761 cat >>confdefs.h <<_ACEOF
4762#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4763_ACEOF
4764
4765fi
4766
4767done
4768
4769
4770
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004771for ac_header in dlfcn.h
4772do
4773as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4774if eval "test \"\${$as_ac_Header+set}\" = set"; then
4775 echo "$as_me:$LINENO: checking for $ac_header" >&5
4776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4777if eval "test \"\${$as_ac_Header+set}\" = set"; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779fi
4780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4781echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4782else
4783 # Is the header compilable?
4784echo "$as_me:$LINENO: checking $ac_header usability" >&5
4785echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4786cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004787/* confdefs.h. */
4788_ACEOF
4789cat confdefs.h >>conftest.$ac_ext
4790cat >>conftest.$ac_ext <<_ACEOF
4791/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004792$ac_includes_default
4793#include <$ac_header>
4794_ACEOF
4795rm -f conftest.$ac_objext
4796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004797 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004798 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004799 grep -v '^ *+' conftest.er1 >conftest.err
4800 rm -f conftest.er1
4801 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004804 { ac_try='test -z "$ac_c_werror_flag"
4805 || test ! -s conftest.err'
4806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 (eval $ac_try) 2>&5
4808 ac_status=$?
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; } &&
4811 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 (eval $ac_try) 2>&5
4814 ac_status=$?
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; }; then
4817 ac_header_compiler=yes
4818else
4819 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004820sed 's/^/| /' conftest.$ac_ext >&5
4821
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004822ac_header_compiler=no
4823fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004825echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4826echo "${ECHO_T}$ac_header_compiler" >&6
4827
4828# Is the header present?
4829echo "$as_me:$LINENO: checking $ac_header presence" >&5
4830echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4831cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004832/* confdefs.h. */
4833_ACEOF
4834cat confdefs.h >>conftest.$ac_ext
4835cat >>conftest.$ac_ext <<_ACEOF
4836/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004837#include <$ac_header>
4838_ACEOF
4839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } >/dev/null; then
4847 if test -s conftest.err; then
4848 ac_cpp_err=$ac_c_preproc_warn_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004850 else
4851 ac_cpp_err=
4852 fi
4853else
4854 ac_cpp_err=yes
4855fi
4856if test -z "$ac_cpp_err"; then
4857 ac_header_preproc=yes
4858else
4859 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004860sed 's/^/| /' conftest.$ac_ext >&5
4861
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004862 ac_header_preproc=no
4863fi
4864rm -f conftest.err conftest.$ac_ext
4865echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4866echo "${ECHO_T}$ac_header_preproc" >&6
4867
4868# So? What about this header?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004869case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4870 yes:no: )
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4872echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4874echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4875 ac_header_preproc=yes
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004876 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004877 no:yes:* )
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4879echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4881echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4883echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4885echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004887echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4889echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004890 (
4891 cat <<\_ASBOX
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004892## ------------------------------------------ ##
4893## Report this to the AC_PACKAGE_NAME lists. ##
4894## ------------------------------------------ ##
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004895_ASBOX
4896 ) |
4897 sed "s/^/$as_me: WARNING: /" >&2
4898 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004899esac
4900echo "$as_me:$LINENO: checking for $ac_header" >&5
4901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4902if eval "test \"\${$as_ac_Header+set}\" = set"; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004905 eval "$as_ac_Header=\$ac_header_preproc"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004906fi
4907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4909
4910fi
4911if test `eval echo '${'$as_ac_Header'}'` = yes; then
4912 cat >>confdefs.h <<_ACEOF
4913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4914_ACEOF
4915
4916fi
4917
4918done
4919
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004920ac_ext=cc
4921ac_cpp='$CXXCPP $CPPFLAGS'
4922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4925echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4926echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4927if test -z "$CXXCPP"; then
4928 if test "${ac_cv_prog_CXXCPP+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004929 echo $ECHO_N "(cached) $ECHO_C" >&6
4930else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004931 # Double quotes because CXXCPP needs to be expanded
4932 for CXXCPP in "$CXX -E" "/lib/cpp"
4933 do
4934 ac_preproc_ok=false
4935for ac_cxx_preproc_warn_flag in '' yes
4936do
4937 # Use a header file that comes with gcc, so configuring glibc
4938 # with a fresh cross-compiler works.
4939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4940 # <limits.h> exists even on freestanding compilers.
4941 # On the NeXT, cc -E runs the code through the compiler's parser,
4942 # not just through cpp. "Syntax error" is here to catch this case.
4943 cat >conftest.$ac_ext <<_ACEOF
4944/* confdefs.h. */
4945_ACEOF
4946cat confdefs.h >>conftest.$ac_ext
4947cat >>conftest.$ac_ext <<_ACEOF
4948/* end confdefs.h. */
4949#ifdef __STDC__
4950# include <limits.h>
4951#else
4952# include <assert.h>
4953#endif
4954 Syntax error
4955_ACEOF
4956if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4958 ac_status=$?
4959 grep -v '^ *+' conftest.er1 >conftest.err
4960 rm -f conftest.er1
4961 cat conftest.err >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); } >/dev/null; then
4964 if test -s conftest.err; then
4965 ac_cpp_err=$ac_cxx_preproc_warn_flag
4966 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004967 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004968 ac_cpp_err=
4969 fi
4970else
4971 ac_cpp_err=yes
4972fi
4973if test -z "$ac_cpp_err"; then
4974 :
4975else
4976 echo "$as_me: failed program was:" >&5
4977sed 's/^/| /' conftest.$ac_ext >&5
4978
4979 # Broken: fails on valid input.
4980continue
4981fi
4982rm -f conftest.err conftest.$ac_ext
4983
4984 # OK, works on sane cases. Now check whether non-existent headers
4985 # can be detected and how.
4986 cat >conftest.$ac_ext <<_ACEOF
4987/* confdefs.h. */
4988_ACEOF
4989cat confdefs.h >>conftest.$ac_ext
4990cat >>conftest.$ac_ext <<_ACEOF
4991/* end confdefs.h. */
4992#include <ac_nonexistent.h>
4993_ACEOF
4994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4996 ac_status=$?
4997 grep -v '^ *+' conftest.er1 >conftest.err
4998 rm -f conftest.er1
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } >/dev/null; then
5002 if test -s conftest.err; then
5003 ac_cpp_err=$ac_cxx_preproc_warn_flag
5004 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5005 else
5006 ac_cpp_err=
5007 fi
5008else
5009 ac_cpp_err=yes
5010fi
5011if test -z "$ac_cpp_err"; then
5012 # Broken: success on invalid input.
5013continue
5014else
5015 echo "$as_me: failed program was:" >&5
5016sed 's/^/| /' conftest.$ac_ext >&5
5017
5018 # Passes both tests.
5019ac_preproc_ok=:
5020break
5021fi
5022rm -f conftest.err conftest.$ac_ext
5023
5024done
5025# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5026rm -f conftest.err conftest.$ac_ext
5027if $ac_preproc_ok; then
5028 break
5029fi
5030
5031 done
5032 ac_cv_prog_CXXCPP=$CXXCPP
5033
5034fi
5035 CXXCPP=$ac_cv_prog_CXXCPP
5036else
5037 ac_cv_prog_CXXCPP=$CXXCPP
5038fi
5039echo "$as_me:$LINENO: result: $CXXCPP" >&5
5040echo "${ECHO_T}$CXXCPP" >&6
5041ac_preproc_ok=false
5042for ac_cxx_preproc_warn_flag in '' yes
5043do
5044 # Use a header file that comes with gcc, so configuring glibc
5045 # with a fresh cross-compiler works.
5046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5047 # <limits.h> exists even on freestanding compilers.
5048 # On the NeXT, cc -E runs the code through the compiler's parser,
5049 # not just through cpp. "Syntax error" is here to catch this case.
5050 cat >conftest.$ac_ext <<_ACEOF
5051/* confdefs.h. */
5052_ACEOF
5053cat confdefs.h >>conftest.$ac_ext
5054cat >>conftest.$ac_ext <<_ACEOF
5055/* end confdefs.h. */
5056#ifdef __STDC__
5057# include <limits.h>
5058#else
5059# include <assert.h>
5060#endif
5061 Syntax error
5062_ACEOF
5063if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5065 ac_status=$?
5066 grep -v '^ *+' conftest.er1 >conftest.err
5067 rm -f conftest.er1
5068 cat conftest.err >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } >/dev/null; then
5071 if test -s conftest.err; then
5072 ac_cpp_err=$ac_cxx_preproc_warn_flag
5073 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5074 else
5075 ac_cpp_err=
5076 fi
5077else
5078 ac_cpp_err=yes
5079fi
5080if test -z "$ac_cpp_err"; then
5081 :
5082else
5083 echo "$as_me: failed program was:" >&5
5084sed 's/^/| /' conftest.$ac_ext >&5
5085
5086 # Broken: fails on valid input.
5087continue
5088fi
5089rm -f conftest.err conftest.$ac_ext
5090
5091 # OK, works on sane cases. Now check whether non-existent headers
5092 # can be detected and how.
5093 cat >conftest.$ac_ext <<_ACEOF
5094/* confdefs.h. */
5095_ACEOF
5096cat confdefs.h >>conftest.$ac_ext
5097cat >>conftest.$ac_ext <<_ACEOF
5098/* end confdefs.h. */
5099#include <ac_nonexistent.h>
5100_ACEOF
5101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5103 ac_status=$?
5104 grep -v '^ *+' conftest.er1 >conftest.err
5105 rm -f conftest.er1
5106 cat conftest.err >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } >/dev/null; then
5109 if test -s conftest.err; then
5110 ac_cpp_err=$ac_cxx_preproc_warn_flag
5111 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5112 else
5113 ac_cpp_err=
5114 fi
5115else
5116 ac_cpp_err=yes
5117fi
5118if test -z "$ac_cpp_err"; then
5119 # Broken: success on invalid input.
5120continue
5121else
5122 echo "$as_me: failed program was:" >&5
5123sed 's/^/| /' conftest.$ac_ext >&5
5124
5125 # Passes both tests.
5126ac_preproc_ok=:
5127break
5128fi
5129rm -f conftest.err conftest.$ac_ext
5130
5131done
5132# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5133rm -f conftest.err conftest.$ac_ext
5134if $ac_preproc_ok; then
5135 :
5136else
5137 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5138See \`config.log' for more details." >&5
5139echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5140See \`config.log' for more details." >&2;}
5141 { (exit 1); exit 1; }; }
5142fi
5143
5144ac_ext=cc
5145ac_cpp='$CXXCPP $CPPFLAGS'
5146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5149
5150
5151ac_ext=f
5152ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5153ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5154ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5155if test -n "$ac_tool_prefix"; then
5156 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5157 do
5158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5159set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5160echo "$as_me:$LINENO: checking for $ac_word" >&5
5161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5162if test "${ac_cv_prog_F77+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164else
5165 if test -n "$F77"; then
5166 ac_cv_prog_F77="$F77" # Let the user override the test.
5167else
5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169for as_dir in $PATH
5170do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5178 fi
5179done
5180done
5181
5182fi
5183fi
5184F77=$ac_cv_prog_F77
5185if test -n "$F77"; then
5186 echo "$as_me:$LINENO: result: $F77" >&5
5187echo "${ECHO_T}$F77" >&6
5188else
5189 echo "$as_me:$LINENO: result: no" >&5
5190echo "${ECHO_T}no" >&6
5191fi
5192
5193 test -n "$F77" && break
5194 done
5195fi
5196if test -z "$F77"; then
5197 ac_ct_F77=$F77
5198 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5199do
5200 # Extract the first word of "$ac_prog", so it can be a program name with args.
5201set dummy $ac_prog; ac_word=$2
5202echo "$as_me:$LINENO: checking for $ac_word" >&5
5203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5204if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5206else
5207 if test -n "$ac_ct_F77"; then
5208 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5209else
5210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211for as_dir in $PATH
5212do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_prog_ac_ct_F77="$ac_prog"
5218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5220 fi
5221done
5222done
5223
5224fi
5225fi
5226ac_ct_F77=$ac_cv_prog_ac_ct_F77
5227if test -n "$ac_ct_F77"; then
5228 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5229echo "${ECHO_T}$ac_ct_F77" >&6
5230else
5231 echo "$as_me:$LINENO: result: no" >&5
5232echo "${ECHO_T}no" >&6
5233fi
5234
5235 test -n "$ac_ct_F77" && break
5236done
5237
5238 F77=$ac_ct_F77
5239fi
5240
5241
5242# Provide some information about the compiler.
5243echo "$as_me:5243:" \
5244 "checking for Fortran 77 compiler version" >&5
5245ac_compiler=`set X $ac_compile; echo $2`
5246{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5247 (eval $ac_compiler --version </dev/null >&5) 2>&5
5248 ac_status=$?
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }
5251{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5252 (eval $ac_compiler -v </dev/null >&5) 2>&5
5253 ac_status=$?
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }
5256{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5257 (eval $ac_compiler -V </dev/null >&5) 2>&5
5258 ac_status=$?
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }
5261rm -f a.out
5262
5263# If we don't use `.F' as extension, the preprocessor is not run on the
5264# input file. (Note that this only needs to work for GNU compilers.)
5265ac_save_ext=$ac_ext
5266ac_ext=F
5267echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5268echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5269if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271else
5272 cat >conftest.$ac_ext <<_ACEOF
5273 program main
5274#ifndef __GNUC__
5275 choke me
5276#endif
5277
5278 end
5279_ACEOF
5280rm -f conftest.$ac_objext
5281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5282 (eval $ac_compile) 2>conftest.er1
5283 ac_status=$?
5284 grep -v '^ *+' conftest.er1 >conftest.err
5285 rm -f conftest.er1
5286 cat conftest.err >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } &&
5289 { ac_try='test -z "$ac_f77_werror_flag"
5290 || test ! -s conftest.err'
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292 (eval $ac_try) 2>&5
5293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; } &&
5296 { ac_try='test -s conftest.$ac_objext'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 (eval $ac_try) 2>&5
5299 ac_status=$?
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; }; then
5302 ac_compiler_gnu=yes
5303else
5304 echo "$as_me: failed program was:" >&5
5305sed 's/^/| /' conftest.$ac_ext >&5
5306
5307ac_compiler_gnu=no
5308fi
5309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5310ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5311
5312fi
5313echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5314echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5315ac_ext=$ac_save_ext
5316ac_test_FFLAGS=${FFLAGS+set}
5317ac_save_FFLAGS=$FFLAGS
5318FFLAGS=
5319echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5320echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5321if test "${ac_cv_prog_f77_g+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5323else
5324 FFLAGS=-g
5325cat >conftest.$ac_ext <<_ACEOF
5326 program main
5327
5328 end
5329_ACEOF
5330rm -f conftest.$ac_objext
5331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5332 (eval $ac_compile) 2>conftest.er1
5333 ac_status=$?
5334 grep -v '^ *+' conftest.er1 >conftest.err
5335 rm -f conftest.er1
5336 cat conftest.err >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } &&
5339 { ac_try='test -z "$ac_f77_werror_flag"
5340 || test ! -s conftest.err'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 (eval $ac_try) 2>&5
5343 ac_status=$?
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; } &&
5346 { ac_try='test -s conftest.$ac_objext'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 (eval $ac_try) 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; }; then
5352 ac_cv_prog_f77_g=yes
5353else
5354 echo "$as_me: failed program was:" >&5
5355sed 's/^/| /' conftest.$ac_ext >&5
5356
5357ac_cv_prog_f77_g=no
5358fi
5359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5360
5361fi
5362echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5363echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5364if test "$ac_test_FFLAGS" = set; then
5365 FFLAGS=$ac_save_FFLAGS
5366elif test $ac_cv_prog_f77_g = yes; then
5367 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5368 FFLAGS="-g -O2"
5369 else
5370 FFLAGS="-g"
5371 fi
5372else
5373 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5374 FFLAGS="-O2"
5375 else
5376 FFLAGS=
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005377 fi
5378fi
5379
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005380G77=`test $ac_compiler_gnu = yes && echo yes`
5381ac_ext=c
5382ac_cpp='$CPP $CPPFLAGS'
5383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5385ac_compiler_gnu=$ac_cv_c_compiler_gnu
5386
5387
5388
5389# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5390
5391# find the maximum length of command line arguments
5392echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5393echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5394if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5396else
5397 i=0
5398 testring="ABCD"
5399
5400 case $build_os in
5401 msdosdjgpp*)
5402 # On DJGPP, this test can blow up pretty badly due to problems in libc
5403 # (any single argument exceeding 2000 bytes causes a buffer overrun
5404 # during glob expansion). Even if it were fixed, the result of this
5405 # check would be larger than it should be.
5406 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5407 ;;
5408
5409 gnu*)
5410 # Under GNU Hurd, this test is not required because there is
5411 # no limit to the length of command line arguments.
5412 # Libtool will interpret -1 as no limit whatsoever
5413 lt_cv_sys_max_cmd_len=-1;
5414 ;;
5415
5416 cygwin* | mingw*)
5417 # On Win9x/ME, this test blows up -- it succeeds, but takes
5418 # about 5 minutes as the teststring grows exponentially.
5419 # Worse, since 9x/ME are not pre-emptively multitasking,
5420 # you end up with a "frozen" computer, even though with patience
5421 # the test eventually succeeds (with a max line length of 256k).
5422 # Instead, let's just punt: use the minimum linelength reported by
5423 # all of the supported platforms: 8192 (on NT/2K/XP).
5424 lt_cv_sys_max_cmd_len=8192;
5425 ;;
5426
5427 amigaos*)
5428 # On AmigaOS with pdksh, this test takes hours, literally.
5429 # So we just punt and use a minimum line length of 8192.
5430 lt_cv_sys_max_cmd_len=8192;
5431 ;;
5432
5433 *)
5434 # If test is not a shell built-in, we'll probably end up computing a
5435 # maximum length that is only half of the actual maximum length, but
5436 # we can't tell.
5437 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5438 = "XX$testring") >/dev/null 2>&1 &&
5439 new_result=`expr "X$testring" : ".*" 2>&1` &&
5440 lt_cv_sys_max_cmd_len=$new_result &&
5441 test $i != 17 # 1/2 MB should be enough
5442 do
5443 i=`expr $i + 1`
5444 testring=$testring$testring
5445 done
5446 testring=
5447 # Add a significant safety factor because C++ compilers can tack on massive
5448 # amounts of additional arguments before passing them to the linker.
5449 # It appears as though 1/2 is a usable value.
5450 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5451 ;;
5452 esac
5453
5454fi
5455
5456if test -n $lt_cv_sys_max_cmd_len ; then
5457 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5458echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5459else
5460 echo "$as_me:$LINENO: result: none" >&5
5461echo "${ECHO_T}none" >&6
5462fi
5463
5464
5465
5466
5467# Check for command to grab the raw symbol name followed by C symbol from nm.
5468echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5469echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5470if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5472else
5473
5474# These are sane defaults that work on at least a few old systems.
5475# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5476
5477# Character class describing NM global symbol codes.
5478symcode='[BCDEGRST]'
5479
5480# Regexp to match symbols that can be accessed directly from C.
5481sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5482
5483# Transform the above into a raw symbol and a C symbol.
5484symxfrm='\1 \2\3 \3'
5485
5486# Transform an extracted symbol line into a proper C declaration
5487lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5488
5489# Transform an extracted symbol line into symbol name and symbol address
5490lt_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'"
5491
5492# Define system-specific variables.
5493case $host_os in
5494aix*)
5495 symcode='[BCDT]'
5496 ;;
5497cygwin* | mingw* | pw32*)
5498 symcode='[ABCDGISTW]'
5499 ;;
5500hpux*) # Its linker distinguishes data from code symbols
5501 if test "$host_cpu" = ia64; then
5502 symcode='[ABCDEGRST]'
5503 fi
5504 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5505 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'"
5506 ;;
5507irix* | nonstopux*)
5508 symcode='[BCDEGRST]'
5509 ;;
5510osf*)
5511 symcode='[BCDEGQRST]'
5512 ;;
5513solaris* | sysv5*)
5514 symcode='[BDRT]'
5515 ;;
5516sysv4)
5517 symcode='[DFNSTU]'
5518 ;;
5519esac
5520
5521# Handle CRLF in mingw tool chain
5522opt_cr=
5523case $build_os in
5524mingw*)
5525 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5526 ;;
5527esac
5528
5529# If we're using GNU nm, then use its standard symbol codes.
5530case `$NM -V 2>&1` in
5531*GNU* | *'with BFD'*)
5532 symcode='[ABCDGIRSTW]' ;;
5533esac
5534
5535# Try without a prefix undercore, then with it.
5536for ac_symprfx in "" "_"; do
5537
5538 # Write the raw and C identifiers.
5539 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5540
5541 # Check to see that the pipe works correctly.
5542 pipe_works=no
5543
5544 rm -f conftest*
5545 cat > conftest.$ac_ext <<EOF
5546#ifdef __cplusplus
5547extern "C" {
5548#endif
5549char nm_test_var;
5550void nm_test_func(){}
5551#ifdef __cplusplus
5552}
5553#endif
5554int main(){nm_test_var='a';nm_test_func();return(0);}
5555EOF
5556
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>&5
5559 ac_status=$?
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; then
5562 # Now try to grab the symbols.
5563 nlist=conftest.nm
5564 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5565 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5566 ac_status=$?
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } && test -s "$nlist"; then
5569 # Try sorting and uniquifying the output.
5570 if sort "$nlist" | uniq > "$nlist"T; then
5571 mv -f "$nlist"T "$nlist"
5572 else
5573 rm -f "$nlist"T
5574 fi
5575
5576 # Make sure that we snagged all the symbols we need.
5577 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5578 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5579 cat <<EOF > conftest.$ac_ext
5580#ifdef __cplusplus
5581extern "C" {
5582#endif
5583
5584EOF
5585 # Now generate the symbol file.
5586 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5587
5588 cat <<EOF >> conftest.$ac_ext
5589#if defined (__STDC__) && __STDC__
5590# define lt_ptr_t void *
5591#else
5592# define lt_ptr_t char *
5593# define const
5594#endif
5595
5596/* The mapping between symbol names and symbols. */
5597const struct {
5598 const char *name;
5599 lt_ptr_t address;
5600}
5601lt_preloaded_symbols[] =
5602{
5603EOF
5604 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5605 cat <<\EOF >> conftest.$ac_ext
5606 {0, (lt_ptr_t) 0}
5607};
5608
5609#ifdef __cplusplus
5610}
5611#endif
5612EOF
5613 # Now try linking the two files.
5614 mv conftest.$ac_objext conftstm.$ac_objext
5615 lt_save_LIBS="$LIBS"
5616 lt_save_CFLAGS="$CFLAGS"
5617 LIBS="conftstm.$ac_objext"
5618 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5620 (eval $ac_link) 2>&5
5621 ac_status=$?
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5624 pipe_works=yes
5625 fi
5626 LIBS="$lt_save_LIBS"
5627 CFLAGS="$lt_save_CFLAGS"
5628 else
5629 echo "cannot find nm_test_func in $nlist" >&5
5630 fi
5631 else
5632 echo "cannot find nm_test_var in $nlist" >&5
5633 fi
5634 else
5635 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5636 fi
5637 else
5638 echo "$progname: failed program was:" >&5
5639 cat conftest.$ac_ext >&5
5640 fi
5641 rm -f conftest* conftst*
5642
5643 # Do not use the global_symbol_pipe unless it works.
5644 if test "$pipe_works" = yes; then
5645 break
5646 else
5647 lt_cv_sys_global_symbol_pipe=
5648 fi
5649done
5650
5651fi
5652
5653if test -z "$lt_cv_sys_global_symbol_pipe"; then
5654 lt_cv_sys_global_symbol_to_cdecl=
5655fi
5656if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5657 echo "$as_me:$LINENO: result: failed" >&5
5658echo "${ECHO_T}failed" >&6
5659else
5660 echo "$as_me:$LINENO: result: ok" >&5
5661echo "${ECHO_T}ok" >&6
5662fi
5663
5664echo "$as_me:$LINENO: checking for objdir" >&5
5665echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5666if test "${lt_cv_objdir+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668else
5669 rm -f .libs 2>/dev/null
5670mkdir .libs 2>/dev/null
5671if test -d .libs; then
5672 lt_cv_objdir=.libs
5673else
5674 # MS-DOS does not allow filenames that begin with a dot.
5675 lt_cv_objdir=_libs
5676fi
5677rmdir .libs 2>/dev/null
5678fi
5679echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5680echo "${ECHO_T}$lt_cv_objdir" >&6
5681objdir=$lt_cv_objdir
5682
5683
5684
5685
5686
5687case $host_os in
5688aix3*)
5689 # AIX sometimes has problems with the GCC collect2 program. For some
5690 # reason, if we set the COLLECT_NAMES environment variable, the problems
5691 # vanish in a puff of smoke.
5692 if test "X${COLLECT_NAMES+set}" != Xset; then
5693 COLLECT_NAMES=
5694 export COLLECT_NAMES
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005695 fi
5696 ;;
5697esac
5698
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005699# Sed substitution that helps us do robust quoting. It backslashifies
5700# metacharacters that are still active within double-quoted strings.
5701Xsed='sed -e s/^X//'
5702sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5703
5704# Same as above, but do not quote variable references.
5705double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5706
5707# Sed substitution to delay expansion of an escaped shell variable in a
5708# double_quote_subst'ed string.
5709delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5710
5711# Sed substitution to avoid accidental globbing in evaled expressions
5712no_glob_subst='s/\*/\\\*/g'
5713
5714# Constants:
5715rm="rm -f"
5716
5717# Global variables:
5718default_ofile=libtool
5719can_build_shared=yes
5720
5721# All known linkers require a `.a' archive for static linking (except M$VC,
5722# which needs '.lib').
5723libext=a
5724ltmain="$ac_aux_dir/ltmain.sh"
5725ofile="$default_ofile"
5726with_gnu_ld="$lt_cv_prog_gnu_ld"
5727
5728if test -n "$ac_tool_prefix"; then
5729 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5730set dummy ${ac_tool_prefix}ar; ac_word=$2
5731echo "$as_me:$LINENO: checking for $ac_word" >&5
5732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5733if test "${ac_cv_prog_AR+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5735else
5736 if test -n "$AR"; then
5737 ac_cv_prog_AR="$AR" # Let the user override the test.
5738else
5739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740for as_dir in $PATH
5741do
5742 IFS=$as_save_IFS
5743 test -z "$as_dir" && as_dir=.
5744 for ac_exec_ext in '' $ac_executable_extensions; do
5745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5746 ac_cv_prog_AR="${ac_tool_prefix}ar"
5747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5748 break 2
5749 fi
5750done
5751done
5752
5753fi
5754fi
5755AR=$ac_cv_prog_AR
5756if test -n "$AR"; then
5757 echo "$as_me:$LINENO: result: $AR" >&5
5758echo "${ECHO_T}$AR" >&6
5759else
5760 echo "$as_me:$LINENO: result: no" >&5
5761echo "${ECHO_T}no" >&6
5762fi
5763
5764fi
5765if test -z "$ac_cv_prog_AR"; then
5766 ac_ct_AR=$AR
5767 # Extract the first word of "ar", so it can be a program name with args.
5768set dummy ar; ac_word=$2
5769echo "$as_me:$LINENO: checking for $ac_word" >&5
5770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5771if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5773else
5774 if test -n "$ac_ct_AR"; then
5775 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5776else
5777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778for as_dir in $PATH
5779do
5780 IFS=$as_save_IFS
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5784 ac_cv_prog_ac_ct_AR="ar"
5785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 break 2
5787 fi
5788done
5789done
5790
5791 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5792fi
5793fi
5794ac_ct_AR=$ac_cv_prog_ac_ct_AR
5795if test -n "$ac_ct_AR"; then
5796 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5797echo "${ECHO_T}$ac_ct_AR" >&6
5798else
5799 echo "$as_me:$LINENO: result: no" >&5
5800echo "${ECHO_T}no" >&6
5801fi
5802
5803 AR=$ac_ct_AR
5804else
5805 AR="$ac_cv_prog_AR"
5806fi
5807
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005808if test -n "$ac_tool_prefix"; then
5809 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5810set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5811echo "$as_me:$LINENO: checking for $ac_word" >&5
5812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5813if test "${ac_cv_prog_RANLIB+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5815else
5816 if test -n "$RANLIB"; then
5817 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5818else
5819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820for as_dir in $PATH
5821do
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 break 2
5829 fi
5830done
5831done
5832
5833fi
5834fi
5835RANLIB=$ac_cv_prog_RANLIB
5836if test -n "$RANLIB"; then
5837 echo "$as_me:$LINENO: result: $RANLIB" >&5
5838echo "${ECHO_T}$RANLIB" >&6
5839else
5840 echo "$as_me:$LINENO: result: no" >&5
5841echo "${ECHO_T}no" >&6
5842fi
5843
5844fi
5845if test -z "$ac_cv_prog_RANLIB"; then
5846 ac_ct_RANLIB=$RANLIB
5847 # Extract the first word of "ranlib", so it can be a program name with args.
5848set dummy ranlib; ac_word=$2
5849echo "$as_me:$LINENO: checking for $ac_word" >&5
5850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5851if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5853else
5854 if test -n "$ac_ct_RANLIB"; then
5855 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5856else
5857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858for as_dir in $PATH
5859do
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864 ac_cv_prog_ac_ct_RANLIB="ranlib"
5865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 break 2
5867 fi
5868done
5869done
5870
5871 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5872fi
5873fi
5874ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5875if test -n "$ac_ct_RANLIB"; then
5876 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5877echo "${ECHO_T}$ac_ct_RANLIB" >&6
5878else
5879 echo "$as_me:$LINENO: result: no" >&5
5880echo "${ECHO_T}no" >&6
5881fi
5882
5883 RANLIB=$ac_ct_RANLIB
5884else
5885 RANLIB="$ac_cv_prog_RANLIB"
5886fi
5887
5888if test -n "$ac_tool_prefix"; then
5889 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5890set dummy ${ac_tool_prefix}strip; ac_word=$2
5891echo "$as_me:$LINENO: checking for $ac_word" >&5
5892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5893if test "${ac_cv_prog_STRIP+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5895else
5896 if test -n "$STRIP"; then
5897 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5898else
5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900for as_dir in $PATH
5901do
5902 IFS=$as_save_IFS
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 break 2
5909 fi
5910done
5911done
5912
5913fi
5914fi
5915STRIP=$ac_cv_prog_STRIP
5916if test -n "$STRIP"; then
5917 echo "$as_me:$LINENO: result: $STRIP" >&5
5918echo "${ECHO_T}$STRIP" >&6
5919else
5920 echo "$as_me:$LINENO: result: no" >&5
5921echo "${ECHO_T}no" >&6
5922fi
5923
5924fi
5925if test -z "$ac_cv_prog_STRIP"; then
5926 ac_ct_STRIP=$STRIP
5927 # Extract the first word of "strip", so it can be a program name with args.
5928set dummy strip; ac_word=$2
5929echo "$as_me:$LINENO: checking for $ac_word" >&5
5930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5931if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5933else
5934 if test -n "$ac_ct_STRIP"; then
5935 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5936else
5937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938for as_dir in $PATH
5939do
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944 ac_cv_prog_ac_ct_STRIP="strip"
5945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 break 2
5947 fi
5948done
5949done
5950
5951 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5952fi
5953fi
5954ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5955if test -n "$ac_ct_STRIP"; then
5956 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5957echo "${ECHO_T}$ac_ct_STRIP" >&6
5958else
5959 echo "$as_me:$LINENO: result: no" >&5
5960echo "${ECHO_T}no" >&6
5961fi
5962
5963 STRIP=$ac_ct_STRIP
5964else
5965 STRIP="$ac_cv_prog_STRIP"
5966fi
5967
5968
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005969old_CC="$CC"
5970old_CFLAGS="$CFLAGS"
5971
5972# Set sane defaults for various variables
5973test -z "$AR" && AR=ar
5974test -z "$AR_FLAGS" && AR_FLAGS=cru
5975test -z "$AS" && AS=as
5976test -z "$CC" && CC=cc
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005977test -z "$LTCC" && LTCC=$CC
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005978test -z "$DLLTOOL" && DLLTOOL=dlltool
5979test -z "$LD" && LD=ld
5980test -z "$LN_S" && LN_S="ln -s"
5981test -z "$MAGIC_CMD" && MAGIC_CMD=file
5982test -z "$NM" && NM=nm
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005983test -z "$SED" && SED=sed
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005984test -z "$OBJDUMP" && OBJDUMP=objdump
5985test -z "$RANLIB" && RANLIB=:
5986test -z "$STRIP" && STRIP=:
5987test -z "$ac_objext" && ac_objext=o
5988
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005989# Determine commands to create old-style static archives.
5990old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5991old_postinstall_cmds='chmod 644 $oldlib'
5992old_postuninstall_cmds=
5993
5994if test -n "$RANLIB"; then
5995 case $host_os in
5996 openbsd*)
5997 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5998 ;;
5999 *)
6000 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6001 ;;
6002 esac
6003 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6004fi
6005
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006006# Only perform the check for file, if the check method requires it
6007case $deplibs_check_method in
6008file_magic*)
6009 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6010 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6011echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6012if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006014else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006015 case $MAGIC_CMD in
6016[\\/*] | ?:[\\/]*)
6017 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6018 ;;
6019*)
6020 lt_save_MAGIC_CMD="$MAGIC_CMD"
6021 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6022 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6023 for ac_dir in $ac_dummy; do
6024 IFS="$lt_save_ifs"
6025 test -z "$ac_dir" && ac_dir=.
6026 if test -f $ac_dir/${ac_tool_prefix}file; then
6027 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6028 if test -n "$file_magic_test_file"; then
6029 case $deplibs_check_method in
6030 "file_magic "*)
6031 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6032 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6033 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6034 $EGREP "$file_magic_regex" > /dev/null; then
6035 :
6036 else
6037 cat <<EOF 1>&2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006038
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006039*** Warning: the command libtool uses to detect shared libraries,
6040*** $file_magic_cmd, produces output that libtool cannot recognize.
6041*** The result is that libtool may fail to recognize shared libraries
6042*** as such. This will affect the creation of libtool libraries that
6043*** depend on shared libraries, but programs linked with such libtool
6044*** libraries will work regardless of this problem. Nevertheless, you
6045*** may want to report the problem to your system manager and/or to
6046*** bug-libtool@gnu.org
6047
6048EOF
6049 fi ;;
6050 esac
6051 fi
6052 break
6053 fi
6054 done
6055 IFS="$lt_save_ifs"
6056 MAGIC_CMD="$lt_save_MAGIC_CMD"
6057 ;;
6058esac
6059fi
6060
6061MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6062if test -n "$MAGIC_CMD"; then
6063 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6064echo "${ECHO_T}$MAGIC_CMD" >&6
6065else
6066 echo "$as_me:$LINENO: result: no" >&5
6067echo "${ECHO_T}no" >&6
6068fi
6069
6070if test -z "$lt_cv_path_MAGIC_CMD"; then
6071 if test -n "$ac_tool_prefix"; then
6072 echo "$as_me:$LINENO: checking for file" >&5
6073echo $ECHO_N "checking for file... $ECHO_C" >&6
6074if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6076else
6077 case $MAGIC_CMD in
6078[\\/*] | ?:[\\/]*)
6079 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6080 ;;
6081*)
6082 lt_save_MAGIC_CMD="$MAGIC_CMD"
6083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6084 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6085 for ac_dir in $ac_dummy; do
6086 IFS="$lt_save_ifs"
6087 test -z "$ac_dir" && ac_dir=.
6088 if test -f $ac_dir/file; then
6089 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6090 if test -n "$file_magic_test_file"; then
6091 case $deplibs_check_method in
6092 "file_magic "*)
6093 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6094 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6095 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6096 $EGREP "$file_magic_regex" > /dev/null; then
6097 :
6098 else
6099 cat <<EOF 1>&2
6100
6101*** Warning: the command libtool uses to detect shared libraries,
6102*** $file_magic_cmd, produces output that libtool cannot recognize.
6103*** The result is that libtool may fail to recognize shared libraries
6104*** as such. This will affect the creation of libtool libraries that
6105*** depend on shared libraries, but programs linked with such libtool
6106*** libraries will work regardless of this problem. Nevertheless, you
6107*** may want to report the problem to your system manager and/or to
6108*** bug-libtool@gnu.org
6109
6110EOF
6111 fi ;;
6112 esac
6113 fi
6114 break
6115 fi
6116 done
6117 IFS="$lt_save_ifs"
6118 MAGIC_CMD="$lt_save_MAGIC_CMD"
6119 ;;
6120esac
6121fi
6122
6123MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6124if test -n "$MAGIC_CMD"; then
6125 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6126echo "${ECHO_T}$MAGIC_CMD" >&6
6127else
6128 echo "$as_me:$LINENO: result: no" >&5
6129echo "${ECHO_T}no" >&6
6130fi
6131
6132 else
6133 MAGIC_CMD=:
6134 fi
6135fi
6136
6137 fi
6138 ;;
6139esac
6140
6141enable_dlopen=no
6142enable_win32_dll=no
6143
6144# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6145if test "${enable_libtool_lock+set}" = set; then
6146 enableval="$enable_libtool_lock"
6147
6148fi;
6149test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006150
6151
6152# Check whether --with-pic or --without-pic was given.
6153if test "${with_pic+set}" = set; then
6154 withval="$with_pic"
6155 pic_mode="$withval"
6156else
6157 pic_mode=default
6158fi;
6159test -z "$pic_mode" && pic_mode=default
6160
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006161# Use C for the default configuration in the libtool script
6162tagname=
6163lt_save_CC="$CC"
6164ac_ext=c
6165ac_cpp='$CPP $CPPFLAGS'
6166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6168ac_compiler_gnu=$ac_cv_c_compiler_gnu
6169
6170
6171# Source file extension for C test sources.
6172ac_ext=c
6173
6174# Object file extension for compiled C test sources.
6175objext=o
6176objext=$objext
6177
6178# Code to be used in simple compile tests
6179lt_simple_compile_test_code="int some_variable = 0;\n"
6180
6181# Code to be used in simple link tests
6182lt_simple_link_test_code='int main(){return(0);}\n'
6183
6184
6185# If no C compiler was specified, use CC.
6186LTCC=${LTCC-"$CC"}
6187
6188# Allow CC to be a program name with arguments.
6189compiler=$CC
6190
6191
6192#
6193# Check for any special shared library compilation flags.
6194#
6195lt_prog_cc_shlib=
6196if test "$GCC" = no; then
6197 case $host_os in
6198 sco3.2v5*)
6199 lt_prog_cc_shlib='-belf'
6200 ;;
6201 esac
6202fi
6203if test -n "$lt_prog_cc_shlib"; then
6204 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6205echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6206 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6207 else
6208 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6209echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6210 lt_cv_prog_cc_can_build_shared=no
6211 fi
6212fi
6213
6214
6215#
6216# Check to make sure the static flag actually works.
6217#
6218echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6219echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6220if test "${lt_prog_compiler_static_works+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006221 echo $ECHO_N "(cached) $ECHO_C" >&6
6222else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006223 lt_prog_compiler_static_works=no
6224 save_LDFLAGS="$LDFLAGS"
6225 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6226 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6227 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6228 # The compiler can only warn and ignore the option if not recognized
6229 # So say no if there are warnings
6230 if test -s conftest.err; then
6231 # Append any errors to the config.log.
6232 cat conftest.err 1>&5
6233 else
6234 lt_prog_compiler_static_works=yes
6235 fi
6236 fi
6237 $rm conftest*
6238 LDFLAGS="$save_LDFLAGS"
6239
6240fi
6241echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6242echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6243
6244if test x"$lt_prog_compiler_static_works" = xyes; then
6245 :
6246else
6247 lt_prog_compiler_static=
6248fi
6249
6250
6251
6252
6253lt_prog_compiler_no_builtin_flag=
6254
6255if test "$GCC" = yes; then
6256 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6257
6258
6259echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6260echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6261if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6263else
6264 lt_cv_prog_compiler_rtti_exceptions=no
6265 ac_outfile=conftest.$ac_objext
6266 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6267 lt_compiler_flag="-fno-rtti -fno-exceptions"
6268 # Insert the option either (1) after the last *FLAGS variable, or
6269 # (2) before a word containing "conftest.", or (3) at the end.
6270 # Note that $ac_compile itself does not contain backslashes and begins
6271 # with a dollar sign (not a hyphen), so the echo should work correctly.
6272 # The option is referenced via a variable to avoid confusing sed.
6273 lt_compile=`echo "$ac_compile" | $SED \
6274 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6276 -e 's:$: $lt_compiler_flag:'`
6277 (eval echo "\"\$as_me:6277: $lt_compile\"" >&5)
6278 (eval "$lt_compile" 2>conftest.err)
6279 ac_status=$?
6280 cat conftest.err >&5
6281 echo "$as_me:6281: \$? = $ac_status" >&5
6282 if (exit $ac_status) && test -s "$ac_outfile"; then
6283 # The compiler can only warn and ignore the option if not recognized
6284 # So say no if there are warnings
6285 if test ! -s conftest.err; then
6286 lt_cv_prog_compiler_rtti_exceptions=yes
6287 fi
6288 fi
6289 $rm conftest*
6290
6291fi
6292echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6293echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6294
6295if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6296 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6297else
6298 :
6299fi
6300
6301fi
6302
6303lt_prog_compiler_wl=
6304lt_prog_compiler_pic=
6305lt_prog_compiler_static=
6306
6307echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6308echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006309
6310 if test "$GCC" = yes; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006311 lt_prog_compiler_wl='-Wl,'
6312 lt_prog_compiler_static='-static'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006313
6314 case $host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006315 aix*)
6316 # All AIX code is PIC.
6317 if test "$host_cpu" = ia64; then
6318 # AIX 5 now supports IA64 processor
6319 lt_prog_compiler_static='-Bstatic'
6320 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006321 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006322
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006323 amigaos*)
6324 # FIXME: we need at least 68020 code to build shared libraries, but
6325 # adding the `-m68020' flag to GCC prevents building anything better,
6326 # like `-m68040'.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006327 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006328 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006329
6330 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006331 # PIC is the default for these OSes.
6332 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006333
6334 mingw* | pw32* | os2*)
6335 # This hack is so that the source file can tell whether it is being
6336 # built for inclusion in a dll (and should export symbols for example).
6337 lt_prog_compiler_pic='-DDLL_EXPORT'
6338 ;;
6339
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006340 darwin* | rhapsody*)
6341 # PIC is the default on this platform
6342 # Common symbols not allowed in MH_DYLIB files
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006343 lt_prog_compiler_pic='-fno-common'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006344 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006345
6346 msdosdjgpp*)
6347 # Just because we use GCC doesn't mean we suddenly get shared libraries
6348 # on systems that don't support them.
6349 lt_prog_compiler_can_build_shared=no
6350 enable_shared=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006351 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006352
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006353 sysv4*MP*)
6354 if test -d /usr/nec; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006355 lt_prog_compiler_pic=-Kconform_pic
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006356 fi
6357 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006358
6359 hpux*)
6360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6361 # not for PA HP-UX.
6362 case "$host_cpu" in
6363 hppa*64*|ia64*)
6364 # +Z the default
6365 ;;
6366 *)
6367 lt_prog_compiler_pic='-fPIC'
6368 ;;
6369 esac
6370 ;;
6371
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006372 *)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006373 lt_prog_compiler_pic='-fPIC'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006374 ;;
6375 esac
6376 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006377 # PORTME Check for flag to pass linker flags through the system compiler.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006378 case $host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006379 aix*)
6380 lt_prog_compiler_wl='-Wl,'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006381 if test "$host_cpu" = ia64; then
6382 # AIX 5 now supports IA64 processor
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006383 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006384 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006385 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006386 fi
6387 ;;
6388
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006389 mingw* | pw32* | os2*)
6390 # This hack is so that the source file can tell whether it is being
6391 # built for inclusion in a dll (and should export symbols for example).
6392 lt_prog_compiler_pic='-DDLL_EXPORT'
6393 ;;
6394
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006395 hpux9* | hpux10* | hpux11*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006396 lt_prog_compiler_wl='-Wl,'
6397 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6398 # not for PA HP-UX.
6399 case "$host_cpu" in
6400 hppa*64*|ia64*)
6401 # +Z the default
6402 ;;
6403 *)
6404 lt_prog_compiler_pic='+Z'
6405 ;;
6406 esac
6407 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6408 lt_prog_compiler_static='${wl}-a ${wl}archive'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006409 ;;
6410
6411 irix5* | irix6* | nonstopux*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006412 lt_prog_compiler_wl='-Wl,'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006413 # PIC (with -KPIC) is the default.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006414 lt_prog_compiler_static='-non_shared'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006415 ;;
6416
6417 newsos6)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006418 lt_prog_compiler_pic='-KPIC'
6419 lt_prog_compiler_static='-Bstatic'
6420 ;;
6421
6422 linux*)
6423 case $CC in
6424 icc* | ecc*)
6425 lt_prog_compiler_wl='-Wl,'
6426 lt_prog_compiler_pic='-KPIC'
6427 lt_prog_compiler_static='-static'
6428 ;;
6429 ccc*)
6430 lt_prog_compiler_wl='-Wl,'
6431 # All Alpha code is PIC.
6432 lt_prog_compiler_static='-non_shared'
6433 ;;
6434 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006435 ;;
6436
6437 osf3* | osf4* | osf5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006438 lt_prog_compiler_wl='-Wl,'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006439 # All OSF/1 code is PIC.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006440 lt_prog_compiler_static='-non_shared'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006441 ;;
6442
6443 sco3.2v5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006444 lt_prog_compiler_pic='-Kpic'
6445 lt_prog_compiler_static='-dn'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006446 ;;
6447
6448 solaris*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006449 lt_prog_compiler_wl='-Wl,'
6450 lt_prog_compiler_pic='-KPIC'
6451 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006452 ;;
6453
6454 sunos4*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006455 lt_prog_compiler_wl='-Qoption ld '
6456 lt_prog_compiler_pic='-PIC'
6457 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006458 ;;
6459
6460 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006461 lt_prog_compiler_wl='-Wl,'
6462 lt_prog_compiler_pic='-KPIC'
6463 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006464 ;;
6465
6466 sysv4*MP*)
6467 if test -d /usr/nec ;then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006468 lt_prog_compiler_pic='-Kconform_pic'
6469 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006470 fi
6471 ;;
6472
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006473 uts4*)
6474 lt_prog_compiler_pic='-pic'
6475 lt_prog_compiler_static='-Bstatic'
6476 ;;
6477
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006478 *)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006479 lt_prog_compiler_can_build_shared=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006480 ;;
6481 esac
6482 fi
6483
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006484echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6485echo "${ECHO_T}$lt_prog_compiler_pic" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006486
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006487#
6488# Check to make sure the PIC flag actually works.
6489#
6490if test -n "$lt_prog_compiler_pic"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006491
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006492echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6493echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6494if test "${lt_prog_compiler_pic_works+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006495 echo $ECHO_N "(cached) $ECHO_C" >&6
6496else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006497 lt_prog_compiler_pic_works=no
6498 ac_outfile=conftest.$ac_objext
6499 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6500 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6501 # Insert the option either (1) after the last *FLAGS variable, or
6502 # (2) before a word containing "conftest.", or (3) at the end.
6503 # Note that $ac_compile itself does not contain backslashes and begins
6504 # with a dollar sign (not a hyphen), so the echo should work correctly.
6505 # The option is referenced via a variable to avoid confusing sed.
6506 lt_compile=`echo "$ac_compile" | $SED \
6507 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6509 -e 's:$: $lt_compiler_flag:'`
6510 (eval echo "\"\$as_me:6510: $lt_compile\"" >&5)
6511 (eval "$lt_compile" 2>conftest.err)
6512 ac_status=$?
6513 cat conftest.err >&5
6514 echo "$as_me:6514: \$? = $ac_status" >&5
6515 if (exit $ac_status) && test -s "$ac_outfile"; then
6516 # The compiler can only warn and ignore the option if not recognized
6517 # So say no if there are warnings
6518 if test ! -s conftest.err; then
6519 lt_prog_compiler_pic_works=yes
6520 fi
6521 fi
6522 $rm conftest*
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006523
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006524fi
6525echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6526echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006527
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006528if test x"$lt_prog_compiler_pic_works" = xyes; then
6529 case $lt_prog_compiler_pic in
6530 "" | " "*) ;;
6531 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6532 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006533else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006534 lt_prog_compiler_pic=
6535 lt_prog_compiler_can_build_shared=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006536fi
6537
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006538fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006539case "$host_os" in
6540 # For platforms which do not support PIC, -DPIC is meaningless:
6541 *djgpp*)
6542 lt_prog_compiler_pic=
6543 ;;
6544 *)
6545 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6546 ;;
6547esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006548
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006549echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6550echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006551if test "${lt_cv_prog_compiler_c_o+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006552 echo $ECHO_N "(cached) $ECHO_C" >&6
6553else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006554 lt_cv_prog_compiler_c_o=no
6555 $rm -r conftest 2>/dev/null
6556 mkdir conftest
6557 cd conftest
6558 mkdir out
6559 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006560
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006561 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6562 # that will create temporary files in the current directory regardless of
6563 # the output directory. Thus, making CWD read-only will cause this test
6564 # to fail, enabling locking or at least warning the user not to do parallel
6565 # builds.
6566 chmod -w .
6567
6568 lt_compiler_flag="-o out/conftest2.$ac_objext"
6569 # Insert the option either (1) after the last *FLAGS variable, or
6570 # (2) before a word containing "conftest.", or (3) at the end.
6571 # Note that $ac_compile itself does not contain backslashes and begins
6572 # with a dollar sign (not a hyphen), so the echo should work correctly.
6573 lt_compile=`echo "$ac_compile" | $SED \
6574 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6576 -e 's:$: $lt_compiler_flag:'`
6577 (eval echo "\"\$as_me:6577: $lt_compile\"" >&5)
6578 (eval "$lt_compile" 2>out/conftest.err)
6579 ac_status=$?
6580 cat out/conftest.err >&5
6581 echo "$as_me:6581: \$? = $ac_status" >&5
6582 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6583 then
6584 # The compiler can only warn and ignore the option if not recognized
6585 # So say no if there are warnings
6586 if test ! -s out/conftest.err; then
6587 lt_cv_prog_compiler_c_o=yes
6588 fi
6589 fi
6590 chmod u+w .
6591 $rm conftest*
6592 # SGI C++ compiler will create directory out/ii_files/ for
6593 # template instantiation
6594 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6595 $rm out/* && rmdir out
6596 cd ..
6597 rmdir conftest
6598 $rm conftest*
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006599
6600fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006601echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6602echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006603
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006604
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006605hard_links="nottested"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006606if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006607 # do not overwrite the value of need_locks provided by the user
6608 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6609echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6610 hard_links=yes
6611 $rm conftest*
6612 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6613 touch conftest.a
6614 ln conftest.a conftest.b 2>&5 || hard_links=no
6615 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6616 echo "$as_me:$LINENO: result: $hard_links" >&5
6617echo "${ECHO_T}$hard_links" >&6
6618 if test "$hard_links" = no; then
6619 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6620echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6621 need_locks=warn
6622 fi
6623else
6624 need_locks=no
6625fi
6626
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006627echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6628echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006629
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006630 runpath_var=
6631 allow_undefined_flag=
6632 enable_shared_with_static_runtimes=no
6633 archive_cmds=
6634 archive_expsym_cmds=
6635 old_archive_From_new_cmds=
6636 old_archive_from_expsyms_cmds=
6637 export_dynamic_flag_spec=
6638 whole_archive_flag_spec=
6639 thread_safe_flag_spec=
6640 hardcode_libdir_flag_spec=
6641 hardcode_libdir_flag_spec_ld=
6642 hardcode_libdir_separator=
6643 hardcode_direct=no
6644 hardcode_minus_L=no
6645 hardcode_shlibpath_var=unsupported
6646 link_all_deplibs=unknown
6647 hardcode_automatic=no
6648 module_cmds=
6649 module_expsym_cmds=
6650 always_export_symbols=no
6651 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6652 # include_expsyms should be a list of space-separated symbols to be *always*
6653 # included in the symbol list
6654 include_expsyms=
6655 # exclude_expsyms can be an extended regexp of symbols to exclude
6656 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6657 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6658 # as well as any symbol that contains `d'.
6659 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6660 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6661 # platforms (ab)use it in PIC code, but their linkers get confused if
6662 # the symbol is explicitly referenced. Since portable code cannot
6663 # rely on this symbol name, it's probably fine to never include it in
6664 # preloaded symbol tables.
6665 extract_expsyms_cmds=
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006666
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006667 case $host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006668 cygwin* | mingw* | pw32*)
6669 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6670 # When not using gcc, we currently assume that we are using
6671 # Microsoft Visual C++.
6672 if test "$GCC" != yes; then
6673 with_gnu_ld=no
6674 fi
6675 ;;
6676 openbsd*)
6677 with_gnu_ld=no
6678 ;;
6679 esac
6680
6681 ld_shlibs=yes
6682 if test "$with_gnu_ld" = yes; then
6683 # If archive_cmds runs LD, not CC, wlarc should be empty
6684 wlarc='${wl}'
6685
6686 # See if GNU ld supports shared libraries.
6687 case $host_os in
6688 aix3* | aix4* | aix5*)
6689 # On AIX/PPC, the GNU linker is very broken
6690 if test "$host_cpu" != ia64; then
6691 ld_shlibs=no
6692 cat <<EOF 1>&2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006693
6694*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6695*** to be unable to reliably create shared libraries on AIX.
6696*** Therefore, libtool is disabling shared libraries support. If you
6697*** really care for shared libraries, you may want to modify your PATH
6698*** so that a non-GNU linker is found, and then restart.
6699
6700EOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006701 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006702 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006703
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006704 amigaos*)
6705 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)'
6706 hardcode_libdir_flag_spec='-L$libdir'
6707 hardcode_minus_L=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006708
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006709 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6710 # that the semantics of dynamic libraries on AmigaOS, at least up
6711 # to version 4, is to share data among multiple programs linked
6712 # with the same dynamic library. Since this doesn't match the
6713 # behavior of shared libraries on other platforms, we can't use
6714 # them.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006715 ld_shlibs=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006716 ;;
6717
6718 beos*)
6719 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6720 allow_undefined_flag=unsupported
6721 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6722 # support --undefined. This deserves some investigation. FIXME
6723 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6724 else
6725 ld_shlibs=no
6726 fi
6727 ;;
6728
6729 cygwin* | mingw* | pw32*)
6730 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6731 # as there is no search path for DLLs.
6732 hardcode_libdir_flag_spec='-L$libdir'
6733 allow_undefined_flag=unsupported
6734 always_export_symbols=no
6735 enable_shared_with_static_runtimes=yes
6736 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6737
6738 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6740 # If the export-symbols file already is a .def file (1st line
6741 # is EXPORTS), use it as is; otherwise, prepend...
6742 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6743 cp $export_symbols $output_objdir/$soname.def;
6744 else
6745 echo EXPORTS > $output_objdir/$soname.def;
6746 cat $export_symbols >> $output_objdir/$soname.def;
6747 fi~
6748 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6749 else
6750 ld_shlibs=no
6751 fi
6752 ;;
6753
6754 netbsd*)
6755 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6756 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6757 wlarc=
6758 else
6759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6760 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6761 fi
6762 ;;
6763
6764 solaris* | sysv5*)
6765 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6766 ld_shlibs=no
6767 cat <<EOF 1>&2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006768
6769*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6770*** create shared libraries on Solaris systems. Therefore, libtool
6771*** is disabling shared libraries support. We urge you to upgrade GNU
6772*** binutils to release 2.9.1 or newer. Another option is to modify
6773*** your PATH or compiler configuration so that the native linker is
6774*** used, and then restart.
6775
6776EOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006777 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6779 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 +00006780 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006781 ld_shlibs=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006782 fi
6783 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006784
6785 sunos4*)
6786 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6787 wlarc=
6788 hardcode_direct=yes
6789 hardcode_shlibpath_var=no
6790 ;;
6791
6792 linux*)
6793 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6794 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6795 archive_cmds="$tmp_archive_cmds"
6796 supports_anon_versioning=no
6797 case `$LD -v 2>/dev/null` in
6798 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6799 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6800 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6801 *\ 2.11.*) ;; # other 2.11 versions
6802 *) supports_anon_versioning=yes ;;
6803 esac
6804 if test $supports_anon_versioning = yes; then
6805 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6806cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6807$echo "local: *; };" >> $output_objdir/$libname.ver~
6808 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6809 else
6810 archive_expsym_cmds="$tmp_archive_cmds"
6811 fi
6812 else
6813 ld_shlibs=no
6814 fi
6815 ;;
6816
6817 *)
6818 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6820 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6821 else
6822 ld_shlibs=no
6823 fi
6824 ;;
6825 esac
6826
6827 if test "$ld_shlibs" = yes; then
6828 runpath_var=LD_RUN_PATH
6829 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6830 export_dynamic_flag_spec='${wl}--export-dynamic'
6831 # ancient GNU ld didn't support --whole-archive et. al.
6832 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6833 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6834 else
6835 whole_archive_flag_spec=
6836 fi
6837 fi
6838 else
6839 # PORTME fill in a description of your system's linker (not GNU ld)
6840 case $host_os in
6841 aix3*)
6842 allow_undefined_flag=unsupported
6843 always_export_symbols=yes
6844 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'
6845 # Note: this linker hardcodes the directories in LIBPATH if there
6846 # are no directories specified by -L.
6847 hardcode_minus_L=yes
6848 if test "$GCC" = yes && test -z "$link_static_flag"; then
6849 # Neither direct hardcoding nor static linking is supported with a
6850 # broken collect2.
6851 hardcode_direct=unsupported
6852 fi
6853 ;;
6854
6855 aix4* | aix5*)
6856 if test "$host_cpu" = ia64; then
6857 # On IA64, the linker does run time linking by default, so we don't
6858 # have to do anything special.
6859 aix_use_runtimelinking=no
6860 exp_sym_flag='-Bexport'
6861 no_entry_flag=""
6862 else
6863 # If we're using GNU nm, then we don't want the "-C" option.
6864 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6865 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6866 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'
6867 else
6868 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'
6869 fi
6870 aix_use_runtimelinking=no
6871
6872 # Test if we are trying to use run time linking or normal
6873 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6874 # need to do runtime linking.
6875 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6876 for ld_flag in $LDFLAGS; do
6877 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6878 aix_use_runtimelinking=yes
6879 break
6880 fi
6881 done
6882 esac
6883
6884 exp_sym_flag='-bexport'
6885 no_entry_flag='-bnoentry'
6886 fi
6887
6888 # When large executables or shared objects are built, AIX ld can
6889 # have problems creating the table of contents. If linking a library
6890 # or program results in "error TOC overflow" add -mminimal-toc to
6891 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6892 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6893
6894 archive_cmds=''
6895 hardcode_direct=yes
6896 hardcode_libdir_separator=':'
6897 link_all_deplibs=yes
6898
6899 if test "$GCC" = yes; then
6900 case $host_os in aix4.012|aix4.012.*)
6901 # We only want to do this on AIX 4.2 and lower, the check
6902 # below for broken collect2 doesn't work under 4.3+
6903 collect2name=`${CC} -print-prog-name=collect2`
6904 if test -f "$collect2name" && \
6905 strings "$collect2name" | grep resolve_lib_name >/dev/null
6906 then
6907 # We have reworked collect2
6908 hardcode_direct=yes
6909 else
6910 # We have old collect2
6911 hardcode_direct=unsupported
6912 # It fails to find uninstalled libraries when the uninstalled
6913 # path is not listed in the libpath. Setting hardcode_minus_L
6914 # to unsupported forces relinking
6915 hardcode_minus_L=yes
6916 hardcode_libdir_flag_spec='-L$libdir'
6917 hardcode_libdir_separator=
6918 fi
6919 esac
6920 shared_flag='-shared'
6921 else
6922 # not using gcc
6923 if test "$host_cpu" = ia64; then
6924 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6925 # chokes on -Wl,-G. The following line is correct:
6926 shared_flag='-G'
6927 else
6928 if test "$aix_use_runtimelinking" = yes; then
6929 shared_flag='${wl}-G'
6930 else
6931 shared_flag='${wl}-bM:SRE'
6932 fi
6933 fi
6934 fi
6935
6936 # It seems that -bexpall does not export symbols beginning with
6937 # underscore (_), so it is better to generate a list of symbols to export.
6938 always_export_symbols=yes
6939 if test "$aix_use_runtimelinking" = yes; then
6940 # Warning - without using the other runtime loading flags (-brtl),
6941 # -berok will link without error, but may produce a broken library.
6942 allow_undefined_flag='-berok'
6943 # Determine the default libpath from the value encoded in an empty executable.
6944 cat >conftest.$ac_ext <<_ACEOF
6945/* confdefs.h. */
6946_ACEOF
6947cat confdefs.h >>conftest.$ac_ext
6948cat >>conftest.$ac_ext <<_ACEOF
6949/* end confdefs.h. */
6950
6951int
6952main ()
6953{
6954
6955 ;
6956 return 0;
6957}
6958_ACEOF
6959rm -f conftest.$ac_objext conftest$ac_exeext
6960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6961 (eval $ac_link) 2>conftest.er1
6962 ac_status=$?
6963 grep -v '^ *+' conftest.er1 >conftest.err
6964 rm -f conftest.er1
6965 cat conftest.err >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } &&
6968 { ac_try='test -z "$ac_c_werror_flag"
6969 || test ! -s conftest.err'
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971 (eval $ac_try) 2>&5
6972 ac_status=$?
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; } &&
6975 { ac_try='test -s conftest$ac_exeext'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 (eval $ac_try) 2>&5
6978 ac_status=$?
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; }; then
6981
6982aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6983}'`
6984# Check for a 64-bit object if we didn't find anything.
6985if 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; }
6986}'`; fi
6987else
6988 echo "$as_me: failed program was:" >&5
6989sed 's/^/| /' conftest.$ac_ext >&5
6990
6991fi
6992rm -f conftest.err conftest.$ac_objext \
6993 conftest$ac_exeext conftest.$ac_ext
6994if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6995
6996 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6997 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"
6998 else
6999 if test "$host_cpu" = ia64; then
7000 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7001 allow_undefined_flag="-z nodefs"
7002 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"
7003 else
7004 # Determine the default libpath from the value encoded in an empty executable.
7005 cat >conftest.$ac_ext <<_ACEOF
7006/* confdefs.h. */
7007_ACEOF
7008cat confdefs.h >>conftest.$ac_ext
7009cat >>conftest.$ac_ext <<_ACEOF
7010/* end confdefs.h. */
7011
7012int
7013main ()
7014{
7015
7016 ;
7017 return 0;
7018}
7019_ACEOF
7020rm -f conftest.$ac_objext conftest$ac_exeext
7021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7022 (eval $ac_link) 2>conftest.er1
7023 ac_status=$?
7024 grep -v '^ *+' conftest.er1 >conftest.err
7025 rm -f conftest.er1
7026 cat conftest.err >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } &&
7029 { ac_try='test -z "$ac_c_werror_flag"
7030 || test ! -s conftest.err'
7031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032 (eval $ac_try) 2>&5
7033 ac_status=$?
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }; } &&
7036 { ac_try='test -s conftest$ac_exeext'
7037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7038 (eval $ac_try) 2>&5
7039 ac_status=$?
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; }; then
7042
7043aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7044}'`
7045# Check for a 64-bit object if we didn't find anything.
7046if 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; }
7047}'`; fi
7048else
7049 echo "$as_me: failed program was:" >&5
7050sed 's/^/| /' conftest.$ac_ext >&5
7051
7052fi
7053rm -f conftest.err conftest.$ac_objext \
7054 conftest$ac_exeext conftest.$ac_ext
7055if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7056
7057 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7058 # Warning - without using the other run time loading flags,
7059 # -berok will link without error, but may produce a broken library.
7060 no_undefined_flag=' ${wl}-bernotok'
7061 allow_undefined_flag=' ${wl}-berok'
7062 # -bexpall does not export symbols beginning with underscore (_)
7063 always_export_symbols=yes
7064 # Exported symbols can be pulled into shared objects from archives
7065 whole_archive_flag_spec=' '
7066 archive_cmds_need_lc=yes
7067 # This is similar to how AIX traditionally builds it's shared libraries.
7068 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'
7069 fi
7070 fi
7071 ;;
7072
7073 amigaos*)
7074 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)'
7075 hardcode_libdir_flag_spec='-L$libdir'
7076 hardcode_minus_L=yes
7077 # see comment about different semantics on the GNU ld section
7078 ld_shlibs=no
7079 ;;
7080
7081 bsdi4*)
7082 export_dynamic_flag_spec=-rdynamic
7083 ;;
7084
7085 cygwin* | mingw* | pw32*)
7086 # When not using gcc, we currently assume that we are using
7087 # Microsoft Visual C++.
7088 # hardcode_libdir_flag_spec is actually meaningless, as there is
7089 # no search path for DLLs.
7090 hardcode_libdir_flag_spec=' '
7091 allow_undefined_flag=unsupported
7092 # Tell ltmain to make .lib files, not .a files.
7093 libext=lib
7094 # Tell ltmain to make .dll files, not .so files.
7095 shrext=".dll"
7096 # FIXME: Setting linknames here is a bad hack.
7097 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7098 # The linker will automatically build a .lib file if we build a DLL.
7099 old_archive_From_new_cmds='true'
7100 # FIXME: Should let the user specify the lib program.
7101 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7102 fix_srcfile_path='`cygpath -w "$srcfile"`'
7103 enable_shared_with_static_runtimes=yes
7104 ;;
7105
7106 darwin* | rhapsody*)
7107 if test "$GXX" = yes ; then
7108 archive_cmds_need_lc=no
7109 case "$host_os" in
7110 rhapsody* | darwin1.[012])
7111 allow_undefined_flag='-undefined suppress'
7112 ;;
7113 *) # Darwin 1.3 on
7114 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7115 allow_undefined_flag='-flat_namespace -undefined suppress'
7116 else
7117 case ${MACOSX_DEPLOYMENT_TARGET} in
7118 10.[012])
7119 allow_undefined_flag='-flat_namespace -undefined suppress'
7120 ;;
7121 10.*)
7122 allow_undefined_flag='-undefined dynamic_lookup'
7123 ;;
7124 esac
7125 fi
7126 ;;
7127 esac
7128 lt_int_apple_cc_single_mod=no
7129 output_verbose_link_cmd='echo'
7130 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7131 lt_int_apple_cc_single_mod=yes
7132 fi
7133 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7134 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7135 else
7136 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'
7137 fi
7138 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7139 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7140 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7141 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}'
7142 else
7143 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}'
7144 fi
7145 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}'
7146 hardcode_direct=no
7147 hardcode_automatic=yes
7148 hardcode_shlibpath_var=unsupported
7149 whole_archive_flag_spec='-all_load $convenience'
7150 link_all_deplibs=yes
7151 else
7152 ld_shlibs=no
7153 fi
7154 ;;
7155
7156 dgux*)
7157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7158 hardcode_libdir_flag_spec='-L$libdir'
7159 hardcode_shlibpath_var=no
7160 ;;
7161
7162 freebsd1*)
7163 ld_shlibs=no
7164 ;;
7165
7166 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7167 # support. Future versions do this automatically, but an explicit c++rt0.o
7168 # does not break anything, and helps significantly (at the cost of a little
7169 # extra space).
7170 freebsd2.2*)
7171 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7172 hardcode_libdir_flag_spec='-R$libdir'
7173 hardcode_direct=yes
7174 hardcode_shlibpath_var=no
7175 ;;
7176
7177 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7178 freebsd2*)
7179 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7180 hardcode_direct=yes
7181 hardcode_minus_L=yes
7182 hardcode_shlibpath_var=no
7183 ;;
7184
7185 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7186 freebsd* | kfreebsd*-gnu)
7187 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7188 hardcode_libdir_flag_spec='-R$libdir'
7189 hardcode_direct=yes
7190 hardcode_shlibpath_var=no
7191 ;;
7192
7193 hpux9*)
7194 if test "$GCC" = yes; then
7195 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'
7196 else
7197 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'
7198 fi
7199 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7200 hardcode_libdir_separator=:
7201 hardcode_direct=yes
7202
7203 # hardcode_minus_L: Not really in the search PATH,
7204 # but as the default location of the library.
7205 hardcode_minus_L=yes
7206 export_dynamic_flag_spec='${wl}-E'
7207 ;;
7208
7209 hpux10* | hpux11*)
7210 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7211 case "$host_cpu" in
7212 hppa*64*|ia64*)
7213 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7214 ;;
7215 *)
7216 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7217 ;;
7218 esac
7219 else
7220 case "$host_cpu" in
7221 hppa*64*|ia64*)
7222 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7223 ;;
7224 *)
7225 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7226 ;;
7227 esac
7228 fi
7229 if test "$with_gnu_ld" = no; then
7230 case "$host_cpu" in
7231 hppa*64*)
7232 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7233 hardcode_libdir_flag_spec_ld='+b $libdir'
7234 hardcode_libdir_separator=:
7235 hardcode_direct=no
7236 hardcode_shlibpath_var=no
7237 ;;
7238 ia64*)
7239 hardcode_libdir_flag_spec='-L$libdir'
7240 hardcode_direct=no
7241 hardcode_shlibpath_var=no
7242
7243 # hardcode_minus_L: Not really in the search PATH,
7244 # but as the default location of the library.
7245 hardcode_minus_L=yes
7246 ;;
7247 *)
7248 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7249 hardcode_libdir_separator=:
7250 hardcode_direct=yes
7251 export_dynamic_flag_spec='${wl}-E'
7252
7253 # hardcode_minus_L: Not really in the search PATH,
7254 # but as the default location of the library.
7255 hardcode_minus_L=yes
7256 ;;
7257 esac
7258 fi
7259 ;;
7260
7261 irix5* | irix6* | nonstopux*)
7262 if test "$GCC" = yes; then
7263 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'
7264 else
7265 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'
7266 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7267 fi
7268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7269 hardcode_libdir_separator=:
7270 link_all_deplibs=yes
7271 ;;
7272
7273 netbsd*)
7274 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7276 else
7277 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7278 fi
7279 hardcode_libdir_flag_spec='-R$libdir'
7280 hardcode_direct=yes
7281 hardcode_shlibpath_var=no
7282 ;;
7283
7284 newsos6)
7285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7286 hardcode_direct=yes
7287 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7288 hardcode_libdir_separator=:
7289 hardcode_shlibpath_var=no
7290 ;;
7291
7292 openbsd*)
7293 hardcode_direct=yes
7294 hardcode_shlibpath_var=no
7295 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7296 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7297 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7298 export_dynamic_flag_spec='${wl}-E'
7299 else
7300 case $host_os in
7301 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7302 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7303 hardcode_libdir_flag_spec='-R$libdir'
7304 ;;
7305 *)
7306 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7307 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7308 ;;
7309 esac
7310 fi
7311 ;;
7312
7313 os2*)
7314 hardcode_libdir_flag_spec='-L$libdir'
7315 hardcode_minus_L=yes
7316 allow_undefined_flag=unsupported
7317 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'
7318 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7319 ;;
7320
7321 osf3*)
7322 if test "$GCC" = yes; then
7323 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7324 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'
7325 else
7326 allow_undefined_flag=' -expect_unresolved \*'
7327 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'
7328 fi
7329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7330 hardcode_libdir_separator=:
7331 ;;
7332
7333 osf4* | osf5*) # as osf3* with the addition of -msym flag
7334 if test "$GCC" = yes; then
7335 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7336 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'
7337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7338 else
7339 allow_undefined_flag=' -expect_unresolved \*'
7340 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'
7341 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7342 $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'
7343
7344 # Both c and cxx compiler support -rpath directly
7345 hardcode_libdir_flag_spec='-rpath $libdir'
7346 fi
7347 hardcode_libdir_separator=:
7348 ;;
7349
7350 sco3.2v5*)
7351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7352 hardcode_shlibpath_var=no
7353 export_dynamic_flag_spec='${wl}-Bexport'
7354 runpath_var=LD_RUN_PATH
7355 hardcode_runpath_var=yes
7356 ;;
7357
7358 solaris*)
7359 no_undefined_flag=' -z text'
7360 if test "$GCC" = yes; then
7361 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7362 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7363 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7364 else
7365 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7366 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7367 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7368 fi
7369 hardcode_libdir_flag_spec='-R$libdir'
7370 hardcode_shlibpath_var=no
7371 case $host_os in
7372 solaris2.[0-5] | solaris2.[0-5].*) ;;
7373 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7374 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7375 esac
7376 link_all_deplibs=yes
7377 ;;
7378
7379 sunos4*)
7380 if test "x$host_vendor" = xsequent; then
7381 # Use $CC to link under sequent, because it throws in some extra .o
7382 # files that make .init and .fini sections work.
7383 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7384 else
7385 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7386 fi
7387 hardcode_libdir_flag_spec='-L$libdir'
7388 hardcode_direct=yes
7389 hardcode_minus_L=yes
7390 hardcode_shlibpath_var=no
7391 ;;
7392
7393 sysv4)
7394 case $host_vendor in
7395 sni)
7396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7397 hardcode_direct=yes # is this really true???
7398 ;;
7399 siemens)
7400 ## LD is ld it makes a PLAMLIB
7401 ## CC just makes a GrossModule.
7402 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7403 reload_cmds='$CC -r -o $output$reload_objs'
7404 hardcode_direct=no
7405 ;;
7406 motorola)
7407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7408 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7409 ;;
7410 esac
7411 runpath_var='LD_RUN_PATH'
7412 hardcode_shlibpath_var=no
7413 ;;
7414
7415 sysv4.3*)
7416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7417 hardcode_shlibpath_var=no
7418 export_dynamic_flag_spec='-Bexport'
7419 ;;
7420
7421 sysv4*MP*)
7422 if test -d /usr/nec; then
7423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7424 hardcode_shlibpath_var=no
7425 runpath_var=LD_RUN_PATH
7426 hardcode_runpath_var=yes
7427 ld_shlibs=yes
7428 fi
7429 ;;
7430
7431 sysv4.2uw2*)
7432 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7433 hardcode_direct=yes
7434 hardcode_minus_L=no
7435 hardcode_shlibpath_var=no
7436 hardcode_runpath_var=yes
7437 runpath_var=LD_RUN_PATH
7438 ;;
7439
7440 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7441 no_undefined_flag='${wl}-z ${wl}text'
7442 if test "$GCC" = yes; then
7443 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7444 else
7445 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7446 fi
7447 runpath_var='LD_RUN_PATH'
7448 hardcode_shlibpath_var=no
7449 ;;
7450
7451 sysv5*)
7452 no_undefined_flag=' -z text'
7453 # $CC -shared without GNU ld will not create a library from C++
7454 # object files and a static libstdc++, better avoid it by now
7455 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7456 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7457 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7458 hardcode_libdir_flag_spec=
7459 hardcode_shlibpath_var=no
7460 runpath_var='LD_RUN_PATH'
7461 ;;
7462
7463 uts4*)
7464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7465 hardcode_libdir_flag_spec='-L$libdir'
7466 hardcode_shlibpath_var=no
7467 ;;
7468
7469 *)
7470 ld_shlibs=no
7471 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007472 esac
7473 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007474
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007475echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7476echo "${ECHO_T}$ld_shlibs" >&6
7477test "$ld_shlibs" = no && can_build_shared=no
7478
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007479variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7480if test "$GCC" = yes; then
7481 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7482fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007483
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007484#
7485# Do we need to explicitly link libc?
7486#
7487case "x$archive_cmds_need_lc" in
7488x|xyes)
7489 # Assume -lc should be added
7490 archive_cmds_need_lc=yes
7491
7492 if test "$enable_shared" = yes && test "$GCC" = yes; then
7493 case $archive_cmds in
7494 *'~'*)
7495 # FIXME: we may have to deal with multi-command sequences.
7496 ;;
7497 '$CC '*)
7498 # Test whether the compiler implicitly links with -lc since on some
7499 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7500 # to ld, don't add -lc before -lgcc.
7501 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7502echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7503 $rm conftest*
7504 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7505
7506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7507 (eval $ac_compile) 2>&5
7508 ac_status=$?
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); } 2>conftest.err; then
7511 soname=conftest
7512 lib=conftest
7513 libobjs=conftest.$ac_objext
7514 deplibs=
7515 wl=$lt_prog_compiler_wl
7516 compiler_flags=-v
7517 linker_flags=-v
7518 verstring=
7519 output_objdir=.
7520 libname=conftest
7521 lt_save_allow_undefined_flag=$allow_undefined_flag
7522 allow_undefined_flag=
7523 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7524 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7525 ac_status=$?
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); }
7528 then
7529 archive_cmds_need_lc=no
7530 else
7531 archive_cmds_need_lc=yes
7532 fi
7533 allow_undefined_flag=$lt_save_allow_undefined_flag
7534 else
7535 cat conftest.err 1>&5
7536 fi
7537 $rm conftest*
7538 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7539echo "${ECHO_T}$archive_cmds_need_lc" >&6
7540 ;;
7541 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007542 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007543 ;;
7544esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007545
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007546echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7547echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7548library_names_spec=
7549libname_spec='lib$name'
7550soname_spec=
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007551shrext=".so"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007552postinstall_cmds=
7553postuninstall_cmds=
7554finish_cmds=
7555finish_eval=
7556shlibpath_var=
7557shlibpath_overrides_runpath=unknown
7558version_type=none
7559dynamic_linker="$host_os ld.so"
7560sys_lib_dlsearch_path_spec="/lib /usr/lib"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007561if test "$GCC" = yes; then
7562 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7563 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7564 # if the path contains ";" then we assume it to be the separator
7565 # otherwise default to the standard path separator (i.e. ":") - it is
7566 # assumed that no part of a normal pathname contains ";" but that should
7567 # okay in the real world where ";" in dirpaths is itself problematic.
7568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7569 else
7570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7571 fi
7572else
7573 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7574fi
7575need_lib_prefix=unknown
7576hardcode_into_libs=no
7577
7578# when you set need_version to no, make sure it does not cause -set_version
7579# flags to be left without arguments
7580need_version=unknown
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007581
7582case $host_os in
7583aix3*)
7584 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007586 shlibpath_var=LIBPATH
7587
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007588 # AIX 3 has no versioning support, so we append a major version to the name.
7589 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007590 ;;
7591
7592aix4* | aix5*)
7593 version_type=linux
7594 need_lib_prefix=no
7595 need_version=no
7596 hardcode_into_libs=yes
7597 if test "$host_cpu" = ia64; then
7598 # AIX 5 supports IA64
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007599 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007600 shlibpath_var=LD_LIBRARY_PATH
7601 else
7602 # With GCC up to 2.95.x, collect2 would create an import file
7603 # for dependence libraries. The import file would start with
7604 # the line `#! .'. This would cause the generated library to
7605 # depend on `.', always an invalid library. This was fixed in
7606 # development snapshots of GCC prior to 3.0.
7607 case $host_os in
7608 aix4 | aix4.[01] | aix4.[01].*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007609 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7610 echo ' yes '
7611 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7612 :
7613 else
7614 can_build_shared=no
7615 fi
7616 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007617 esac
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007618 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7619 # soname into executable. Probably we can add versioning support to
7620 # collect2, so additional links can be useful in future.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007621 if test "$aix_use_runtimelinking" = yes; then
7622 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7623 # instead of lib<name>.a to let people know that these are not
7624 # typical AIX shared libraries.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007626 else
7627 # We preserve .a as extension for shared libraries through AIX4.2
7628 # and later when we are not doing run time linking.
7629 library_names_spec='${libname}${release}.a $libname.a'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007630 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007631 fi
7632 shlibpath_var=LIBPATH
7633 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007634 ;;
7635
7636amigaos*)
7637 library_names_spec='$libname.ixlibrary $libname.a'
7638 # Create ${libname}_ixlibrary.a entries in /sys/libs.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007639 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 +00007640 ;;
7641
7642beos*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007643 library_names_spec='${libname}${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007644 dynamic_linker="$host_os ld.so"
7645 shlibpath_var=LIBRARY_PATH
7646 ;;
7647
7648bsdi4*)
7649 version_type=linux
7650 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7652 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007653 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7654 shlibpath_var=LD_LIBRARY_PATH
7655 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7656 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007657 # the default ld.so.conf also contains /usr/contrib/lib and
7658 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7659 # libtool to hard-code these into programs
7660 ;;
7661
7662cygwin* | mingw* | pw32*)
7663 version_type=windows
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007664 shrext=".dll"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007665 need_version=no
7666 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007667
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007668 case $GCC,$host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007669 yes,cygwin* | yes,mingw* | yes,pw32*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007670 library_names_spec='$libname.dll.a'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007671 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7672 postinstall_cmds='base_file=`basename \${file}`~
7673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007674 dldir=$destdir/`dirname \$dlpath`~
7675 test -d \$dldir || mkdir -p \$dldir~
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007676 $install_prog $dir/$dlname \$dldir/$dlname'
7677 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007678 dlpath=$dir/\$dldll~
7679 $rm \$dlpath'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007680 shlibpath_overrides_runpath=yes
7681
7682 case $host_os in
7683 cygwin*)
7684 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7685 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7686 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7687 ;;
7688 mingw*)
7689 # MinGW DLLs use traditional 'lib' prefix
7690 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7691 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7692 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7693 # It is most probably a Windows format PATH printed by
7694 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7695 # path with ; separators, and with drive letters. We can handle the
7696 # drive letters (cygwin fileutils understands them), so leave them,
7697 # especially as we might pass files found there to a mingw objdump,
7698 # which wouldn't understand a cygwinified path. Ahh.
7699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7700 else
7701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7702 fi
7703 ;;
7704 pw32*)
7705 # pw32 DLLs use 'pw' prefix rather than 'lib'
7706 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7707 ;;
7708 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007709 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007710
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007711 *)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007712 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007713 ;;
7714 esac
7715 dynamic_linker='Win32 ld.exe'
7716 # FIXME: first we should search . and the directory the executable is in
7717 shlibpath_var=PATH
7718 ;;
7719
7720darwin* | rhapsody*)
7721 dynamic_linker="$host_os dyld"
7722 version_type=darwin
7723 need_lib_prefix=no
7724 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007725 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7726 soname_spec='${libname}${release}${major}$shared_ext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007727 shlibpath_overrides_runpath=yes
7728 shlibpath_var=DYLD_LIBRARY_PATH
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007729 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7730 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7731 if test "$GCC" = yes; then
7732 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"`
7733 else
7734 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7735 fi
7736 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7737 ;;
7738
7739dgux*)
7740 version_type=linux
7741 need_lib_prefix=no
7742 need_version=no
7743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7744 soname_spec='${libname}${release}${shared_ext}$major'
7745 shlibpath_var=LD_LIBRARY_PATH
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007746 ;;
7747
7748freebsd1*)
7749 dynamic_linker=no
7750 ;;
7751
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007752kfreebsd*-gnu)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007753 version_type=linux
7754 need_lib_prefix=no
7755 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7757 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007758 shlibpath_var=LD_LIBRARY_PATH
7759 shlibpath_overrides_runpath=no
7760 hardcode_into_libs=yes
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007761 dynamic_linker='GNU ld.so'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007762 ;;
7763
7764freebsd*)
7765 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7766 version_type=freebsd-$objformat
7767 case $version_type in
7768 freebsd-elf*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007770 need_version=no
7771 need_lib_prefix=no
7772 ;;
7773 freebsd-*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007774 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007775 need_version=yes
7776 ;;
7777 esac
7778 shlibpath_var=LD_LIBRARY_PATH
7779 case $host_os in
7780 freebsd2*)
7781 shlibpath_overrides_runpath=yes
7782 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007783 freebsd3.01* | freebsdelf3.01*)
7784 shlibpath_overrides_runpath=yes
7785 hardcode_into_libs=yes
7786 ;;
7787 *) # from 3.2 on
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007788 shlibpath_overrides_runpath=no
7789 hardcode_into_libs=yes
7790 ;;
7791 esac
7792 ;;
7793
7794gnu*)
7795 version_type=linux
7796 need_lib_prefix=no
7797 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7799 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007800 shlibpath_var=LD_LIBRARY_PATH
7801 hardcode_into_libs=yes
7802 ;;
7803
7804hpux9* | hpux10* | hpux11*)
7805 # Give a soname corresponding to the major version so that dld.sl refuses to
7806 # link against other versions.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007807 version_type=sunos
7808 need_lib_prefix=no
7809 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007810 case "$host_cpu" in
7811 ia64*)
7812 shrext='.so'
7813 hardcode_into_libs=yes
7814 dynamic_linker="$host_os dld.so"
7815 shlibpath_var=LD_LIBRARY_PATH
7816 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7818 soname_spec='${libname}${release}${shared_ext}$major'
7819 if test "X$HPUX_IA64_MODE" = X32; then
7820 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7821 else
7822 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7823 fi
7824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7825 ;;
7826 hppa*64*)
7827 shrext='.sl'
7828 hardcode_into_libs=yes
7829 dynamic_linker="$host_os dld.sl"
7830 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7833 soname_spec='${libname}${release}${shared_ext}$major'
7834 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7836 ;;
7837 *)
7838 shrext='.sl'
7839 dynamic_linker="$host_os dld.sl"
7840 shlibpath_var=SHLIB_PATH
7841 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7843 soname_spec='${libname}${release}${shared_ext}$major'
7844 ;;
7845 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007846 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7847 postinstall_cmds='chmod 555 $lib'
7848 ;;
7849
7850irix5* | irix6* | nonstopux*)
7851 case $host_os in
7852 nonstopux*) version_type=nonstopux ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007853 *)
7854 if test "$lt_cv_prog_gnu_ld" = yes; then
7855 version_type=linux
7856 else
7857 version_type=irix
7858 fi ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007859 esac
7860 need_lib_prefix=no
7861 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007862 soname_spec='${libname}${release}${shared_ext}$major'
7863 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 +00007864 case $host_os in
7865 irix5* | nonstopux*)
7866 libsuff= shlibsuff=
7867 ;;
7868 *)
7869 case $LD in # libtool.m4 will add one of these switches to LD
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007870 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7871 libsuff= shlibsuff= libmagic=32-bit;;
7872 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7873 libsuff=32 shlibsuff=N32 libmagic=N32;;
7874 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7875 libsuff=64 shlibsuff=64 libmagic=64-bit;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007876 *) libsuff= shlibsuff= libmagic=never-match;;
7877 esac
7878 ;;
7879 esac
7880 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7881 shlibpath_overrides_runpath=no
7882 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7883 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007884 hardcode_into_libs=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007885 ;;
7886
7887# No shared lib support for Linux oldld, aout, or coff.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007888linux*oldld* | linux*aout* | linux*coff*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007889 dynamic_linker=no
7890 ;;
7891
7892# This must be Linux ELF.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007893linux*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007894 version_type=linux
7895 need_lib_prefix=no
7896 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7898 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7900 shlibpath_var=LD_LIBRARY_PATH
7901 shlibpath_overrides_runpath=no
7902 # This implies no fast_install, which is unacceptable.
7903 # Some rework will be needed to allow for fast_install
7904 # before this can be enabled.
7905 hardcode_into_libs=yes
7906
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007907 # /usr/X11R6/lib and /usr/local/lib are common enough...
7908 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
7909
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007910 # We used to test for /lib/ld.so.1 and disable shared libraries on
7911 # powerpc, because MkLinux only supported shared libraries with the
7912 # GNU dynamic linker. Since this was broken with cross compilers,
7913 # most powerpc-linux boxes support dynamic linking these days and
7914 # people can always --disable-shared, the test was removed, and we
7915 # assume the GNU/Linux dynamic linker is in use.
7916 dynamic_linker='GNU/Linux ld.so'
7917 ;;
7918
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007919knetbsd*-gnu)
7920 version_type=linux
7921 need_lib_prefix=no
7922 need_version=no
7923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7924 soname_spec='${libname}${release}${shared_ext}$major'
7925 shlibpath_var=LD_LIBRARY_PATH
7926 shlibpath_overrides_runpath=no
7927 hardcode_into_libs=yes
7928 dynamic_linker='GNU ld.so'
7929 ;;
7930
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007931netbsd*)
7932 version_type=sunos
7933 need_lib_prefix=no
7934 need_version=no
7935 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7938 dynamic_linker='NetBSD (a.out) ld.so'
7939 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7941 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007942 dynamic_linker='NetBSD ld.elf_so'
7943 fi
7944 shlibpath_var=LD_LIBRARY_PATH
7945 shlibpath_overrides_runpath=yes
7946 hardcode_into_libs=yes
7947 ;;
7948
7949newsos6)
7950 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7952 shlibpath_var=LD_LIBRARY_PATH
7953 shlibpath_overrides_runpath=yes
7954 ;;
7955
7956nto-qnx*)
7957 version_type=linux
7958 need_lib_prefix=no
7959 need_version=no
7960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7961 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007962 shlibpath_var=LD_LIBRARY_PATH
7963 shlibpath_overrides_runpath=yes
7964 ;;
7965
7966openbsd*)
7967 version_type=sunos
7968 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007969 need_version=yes
7970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7972 shlibpath_var=LD_LIBRARY_PATH
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007973 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 +00007974 case $host_os in
7975 openbsd2.[89] | openbsd2.[89].*)
7976 shlibpath_overrides_runpath=no
7977 ;;
7978 *)
7979 shlibpath_overrides_runpath=yes
7980 ;;
7981 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007982 else
7983 shlibpath_overrides_runpath=yes
7984 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007985 ;;
7986
7987os2*)
7988 libname_spec='$name'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007989 shrext=".dll"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007990 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007991 library_names_spec='$libname${shared_ext} $libname.a'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007992 dynamic_linker='OS/2 ld.exe'
7993 shlibpath_var=LIBPATH
7994 ;;
7995
7996osf3* | osf4* | osf5*)
7997 version_type=osf
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007998 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007999 need_version=no
8000 soname_spec='${libname}${release}${shared_ext}$major'
8001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008002 shlibpath_var=LD_LIBRARY_PATH
8003 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8004 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008005 ;;
8006
8007sco3.2v5*)
8008 version_type=osf
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008009 soname_spec='${libname}${release}${shared_ext}$major'
8010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008011 shlibpath_var=LD_LIBRARY_PATH
8012 ;;
8013
8014solaris*)
8015 version_type=linux
8016 need_lib_prefix=no
8017 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8019 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008020 shlibpath_var=LD_LIBRARY_PATH
8021 shlibpath_overrides_runpath=yes
8022 hardcode_into_libs=yes
8023 # ldd complains unless libraries are executable
8024 postinstall_cmds='chmod +x $lib'
8025 ;;
8026
8027sunos4*)
8028 version_type=sunos
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008030 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8031 shlibpath_var=LD_LIBRARY_PATH
8032 shlibpath_overrides_runpath=yes
8033 if test "$with_gnu_ld" = yes; then
8034 need_lib_prefix=no
8035 fi
8036 need_version=yes
8037 ;;
8038
8039sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8040 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8042 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008043 shlibpath_var=LD_LIBRARY_PATH
8044 case $host_vendor in
8045 sni)
8046 shlibpath_overrides_runpath=no
8047 need_lib_prefix=no
8048 export_dynamic_flag_spec='${wl}-Blargedynsym'
8049 runpath_var=LD_RUN_PATH
8050 ;;
8051 siemens)
8052 need_lib_prefix=no
8053 ;;
8054 motorola)
8055 need_lib_prefix=no
8056 need_version=no
8057 shlibpath_overrides_runpath=no
8058 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8059 ;;
8060 esac
8061 ;;
8062
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008063sysv4*MP*)
8064 if test -d /usr/nec ;then
8065 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008066 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8067 soname_spec='$libname${shared_ext}.$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008068 shlibpath_var=LD_LIBRARY_PATH
8069 fi
8070 ;;
8071
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008072uts4*)
8073 version_type=linux
8074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8075 soname_spec='${libname}${release}${shared_ext}$major'
8076 shlibpath_var=LD_LIBRARY_PATH
8077 ;;
8078
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008079*)
8080 dynamic_linker=no
8081 ;;
8082esac
8083echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8084echo "${ECHO_T}$dynamic_linker" >&6
8085test "$dynamic_linker" = no && can_build_shared=no
8086
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008087echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8088echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8089hardcode_action=
8090if test -n "$hardcode_libdir_flag_spec" || \
8091 test -n "$runpath_var " || \
8092 test "X$hardcode_automatic"="Xyes" ; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008093
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008094 # We can hardcode non-existant directories.
8095 if test "$hardcode_direct" != no &&
8096 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8097 # have to relink, otherwise we might link with an installed library
8098 # when we should be linking with a yet-to-be-installed one
8099 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8100 test "$hardcode_minus_L" != no; then
8101 # Linking always hardcodes the temporary library directory.
8102 hardcode_action=relink
8103 else
8104 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8105 hardcode_action=immediate
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008106 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008107else
8108 # We cannot hardcode anything, or else we can only hardcode existing
8109 # directories.
8110 hardcode_action=unsupported
8111fi
8112echo "$as_me:$LINENO: result: $hardcode_action" >&5
8113echo "${ECHO_T}$hardcode_action" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008114
8115if test "$hardcode_action" = relink; then
8116 # Fast installation is not supported
8117 enable_fast_install=no
8118elif test "$shlibpath_overrides_runpath" = yes ||
8119 test "$enable_shared" = no; then
8120 # Fast installation is not necessary
8121 enable_fast_install=needless
8122fi
8123
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008124striplib=
8125old_striplib=
8126echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8127echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8128if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8129 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8130 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8131 echo "$as_me:$LINENO: result: yes" >&5
8132echo "${ECHO_T}yes" >&6
8133else
8134# FIXME - insert some real tests, host_os isn't really good enough
8135 case $host_os in
8136 darwin*)
8137 if test -n "$STRIP" ; then
8138 striplib="$STRIP -x"
8139 echo "$as_me:$LINENO: result: yes" >&5
8140echo "${ECHO_T}yes" >&6
8141 else
8142 echo "$as_me:$LINENO: result: no" >&5
8143echo "${ECHO_T}no" >&6
8144fi
8145 ;;
8146 *)
8147 echo "$as_me:$LINENO: result: no" >&5
8148echo "${ECHO_T}no" >&6
8149 ;;
8150 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008151fi
8152
8153if test "x$enable_dlopen" != xyes; then
8154 enable_dlopen=unknown
8155 enable_dlopen_self=unknown
8156 enable_dlopen_self_static=unknown
8157else
8158 lt_cv_dlopen=no
8159 lt_cv_dlopen_libs=
8160
8161 case $host_os in
8162 beos*)
8163 lt_cv_dlopen="load_add_on"
8164 lt_cv_dlopen_libs=
8165 lt_cv_dlopen_self=yes
8166 ;;
8167
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008168 mingw* | pw32*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008169 lt_cv_dlopen="LoadLibrary"
8170 lt_cv_dlopen_libs=
8171 ;;
8172
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008173 cygwin*)
8174 lt_cv_dlopen="dlopen"
8175 lt_cv_dlopen_libs=
8176 ;;
8177
8178 darwin*)
8179 # if libdl is installed we need to link against it
8180 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8181echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8182if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8184else
8185 ac_check_lib_save_LIBS=$LIBS
8186LIBS="-ldl $LIBS"
8187cat >conftest.$ac_ext <<_ACEOF
8188/* confdefs.h. */
8189_ACEOF
8190cat confdefs.h >>conftest.$ac_ext
8191cat >>conftest.$ac_ext <<_ACEOF
8192/* end confdefs.h. */
8193
8194/* Override any gcc2 internal prototype to avoid an error. */
8195#ifdef __cplusplus
8196extern "C"
8197#endif
8198/* We use char because int might match the return type of a gcc2
8199 builtin and then its argument prototype would still apply. */
8200char dlopen ();
8201int
8202main ()
8203{
8204dlopen ();
8205 ;
8206 return 0;
8207}
8208_ACEOF
8209rm -f conftest.$ac_objext conftest$ac_exeext
8210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8211 (eval $ac_link) 2>conftest.er1
8212 ac_status=$?
8213 grep -v '^ *+' conftest.er1 >conftest.err
8214 rm -f conftest.er1
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } &&
8218 { ac_try='test -z "$ac_c_werror_flag"
8219 || test ! -s conftest.err'
8220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221 (eval $ac_try) 2>&5
8222 ac_status=$?
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); }; } &&
8225 { ac_try='test -s conftest$ac_exeext'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 (eval $ac_try) 2>&5
8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; }; then
8231 ac_cv_lib_dl_dlopen=yes
8232else
8233 echo "$as_me: failed program was:" >&5
8234sed 's/^/| /' conftest.$ac_ext >&5
8235
8236ac_cv_lib_dl_dlopen=no
8237fi
8238rm -f conftest.err conftest.$ac_objext \
8239 conftest$ac_exeext conftest.$ac_ext
8240LIBS=$ac_check_lib_save_LIBS
8241fi
8242echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8243echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8244if test $ac_cv_lib_dl_dlopen = yes; then
8245 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8246else
8247
8248 lt_cv_dlopen="dyld"
8249 lt_cv_dlopen_libs=
8250 lt_cv_dlopen_self=yes
8251
8252fi
8253
8254 ;;
8255
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008256 *)
8257 echo "$as_me:$LINENO: checking for shl_load" >&5
8258echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8259if test "${ac_cv_func_shl_load+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8261else
8262 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008263/* confdefs.h. */
8264_ACEOF
8265cat confdefs.h >>conftest.$ac_ext
8266cat >>conftest.$ac_ext <<_ACEOF
8267/* end confdefs.h. */
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008268/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8270#define shl_load innocuous_shl_load
8271
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008272/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008273 which can conflict with char shl_load (); below.
8274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8275 <limits.h> exists even on freestanding compilers. */
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008276
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008277#ifdef __STDC__
8278# include <limits.h>
8279#else
8280# include <assert.h>
8281#endif
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008282
8283#undef shl_load
8284
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008285/* Override any gcc2 internal prototype to avoid an error. */
8286#ifdef __cplusplus
8287extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008288{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008289#endif
8290/* We use char because int might match the return type of a gcc2
8291 builtin and then its argument prototype would still apply. */
8292char shl_load ();
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008293/* The GNU C library defines this for functions which it implements
8294 to always fail with ENOSYS. Some functions are actually named
8295 something starting with __ and the normal name is an alias. */
8296#if defined (__stub_shl_load) || defined (__stub___shl_load)
8297choke me
8298#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008299char (*f) () = shl_load;
8300#endif
8301#ifdef __cplusplus
8302}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008303#endif
8304
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008305int
8306main ()
8307{
8308return f != shl_load;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008309 ;
8310 return 0;
8311}
8312_ACEOF
8313rm -f conftest.$ac_objext conftest$ac_exeext
8314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008315 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008316 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008317 grep -v '^ *+' conftest.er1 >conftest.err
8318 rm -f conftest.er1
8319 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008322 { ac_try='test -z "$ac_c_werror_flag"
8323 || test ! -s conftest.err'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325 (eval $ac_try) 2>&5
8326 ac_status=$?
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; } &&
8329 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 (eval $ac_try) 2>&5
8332 ac_status=$?
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; }; then
8335 ac_cv_func_shl_load=yes
8336else
8337 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008338sed 's/^/| /' conftest.$ac_ext >&5
8339
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008340ac_cv_func_shl_load=no
8341fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008342rm -f conftest.err conftest.$ac_objext \
8343 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008344fi
8345echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8346echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8347if test $ac_cv_func_shl_load = yes; then
8348 lt_cv_dlopen="shl_load"
8349else
8350 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8351echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8352if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8354else
8355 ac_check_lib_save_LIBS=$LIBS
8356LIBS="-ldld $LIBS"
8357cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008358/* confdefs.h. */
8359_ACEOF
8360cat confdefs.h >>conftest.$ac_ext
8361cat >>conftest.$ac_ext <<_ACEOF
8362/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008363
8364/* Override any gcc2 internal prototype to avoid an error. */
8365#ifdef __cplusplus
8366extern "C"
8367#endif
8368/* We use char because int might match the return type of a gcc2
8369 builtin and then its argument prototype would still apply. */
8370char shl_load ();
8371int
8372main ()
8373{
8374shl_load ();
8375 ;
8376 return 0;
8377}
8378_ACEOF
8379rm -f conftest.$ac_objext conftest$ac_exeext
8380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008381 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008382 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008383 grep -v '^ *+' conftest.er1 >conftest.err
8384 rm -f conftest.er1
8385 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008388 { ac_try='test -z "$ac_c_werror_flag"
8389 || test ! -s conftest.err'
8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391 (eval $ac_try) 2>&5
8392 ac_status=$?
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; } &&
8395 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 (eval $ac_try) 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; }; then
8401 ac_cv_lib_dld_shl_load=yes
8402else
8403 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008404sed 's/^/| /' conftest.$ac_ext >&5
8405
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008406ac_cv_lib_dld_shl_load=no
8407fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008408rm -f conftest.err conftest.$ac_objext \
8409 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008410LIBS=$ac_check_lib_save_LIBS
8411fi
8412echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8413echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8414if test $ac_cv_lib_dld_shl_load = yes; then
8415 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8416else
8417 echo "$as_me:$LINENO: checking for dlopen" >&5
8418echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8419if test "${ac_cv_func_dlopen+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8421else
8422 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008423/* confdefs.h. */
8424_ACEOF
8425cat confdefs.h >>conftest.$ac_ext
8426cat >>conftest.$ac_ext <<_ACEOF
8427/* end confdefs.h. */
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008428/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8430#define dlopen innocuous_dlopen
8431
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008432/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008433 which can conflict with char dlopen (); below.
8434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8435 <limits.h> exists even on freestanding compilers. */
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008436
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008437#ifdef __STDC__
8438# include <limits.h>
8439#else
8440# include <assert.h>
8441#endif
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008442
8443#undef dlopen
8444
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008445/* Override any gcc2 internal prototype to avoid an error. */
8446#ifdef __cplusplus
8447extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008448{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008449#endif
8450/* We use char because int might match the return type of a gcc2
8451 builtin and then its argument prototype would still apply. */
8452char dlopen ();
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008453/* The GNU C library defines this for functions which it implements
8454 to always fail with ENOSYS. Some functions are actually named
8455 something starting with __ and the normal name is an alias. */
8456#if defined (__stub_dlopen) || defined (__stub___dlopen)
8457choke me
8458#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008459char (*f) () = dlopen;
8460#endif
8461#ifdef __cplusplus
8462}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008463#endif
8464
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008465int
8466main ()
8467{
8468return f != dlopen;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008469 ;
8470 return 0;
8471}
8472_ACEOF
8473rm -f conftest.$ac_objext conftest$ac_exeext
8474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008475 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008476 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008477 grep -v '^ *+' conftest.er1 >conftest.err
8478 rm -f conftest.er1
8479 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008482 { ac_try='test -z "$ac_c_werror_flag"
8483 || test ! -s conftest.err'
8484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485 (eval $ac_try) 2>&5
8486 ac_status=$?
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); }; } &&
8489 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 (eval $ac_try) 2>&5
8492 ac_status=$?
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; }; then
8495 ac_cv_func_dlopen=yes
8496else
8497 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008498sed 's/^/| /' conftest.$ac_ext >&5
8499
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008500ac_cv_func_dlopen=no
8501fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008502rm -f conftest.err conftest.$ac_objext \
8503 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008504fi
8505echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8506echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8507if test $ac_cv_func_dlopen = yes; then
8508 lt_cv_dlopen="dlopen"
8509else
8510 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8511echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8512if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8514else
8515 ac_check_lib_save_LIBS=$LIBS
8516LIBS="-ldl $LIBS"
8517cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008518/* confdefs.h. */
8519_ACEOF
8520cat confdefs.h >>conftest.$ac_ext
8521cat >>conftest.$ac_ext <<_ACEOF
8522/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008523
8524/* Override any gcc2 internal prototype to avoid an error. */
8525#ifdef __cplusplus
8526extern "C"
8527#endif
8528/* We use char because int might match the return type of a gcc2
8529 builtin and then its argument prototype would still apply. */
8530char dlopen ();
8531int
8532main ()
8533{
8534dlopen ();
8535 ;
8536 return 0;
8537}
8538_ACEOF
8539rm -f conftest.$ac_objext conftest$ac_exeext
8540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008541 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008542 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008543 grep -v '^ *+' conftest.er1 >conftest.err
8544 rm -f conftest.er1
8545 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008548 { ac_try='test -z "$ac_c_werror_flag"
8549 || test ! -s conftest.err'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551 (eval $ac_try) 2>&5
8552 ac_status=$?
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; } &&
8555 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557 (eval $ac_try) 2>&5
8558 ac_status=$?
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; }; then
8561 ac_cv_lib_dl_dlopen=yes
8562else
8563 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008564sed 's/^/| /' conftest.$ac_ext >&5
8565
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008566ac_cv_lib_dl_dlopen=no
8567fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008568rm -f conftest.err conftest.$ac_objext \
8569 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008570LIBS=$ac_check_lib_save_LIBS
8571fi
8572echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8573echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8574if test $ac_cv_lib_dl_dlopen = yes; then
8575 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8576else
8577 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8578echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8579if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8581else
8582 ac_check_lib_save_LIBS=$LIBS
8583LIBS="-lsvld $LIBS"
8584cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008585/* confdefs.h. */
8586_ACEOF
8587cat confdefs.h >>conftest.$ac_ext
8588cat >>conftest.$ac_ext <<_ACEOF
8589/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008590
8591/* Override any gcc2 internal prototype to avoid an error. */
8592#ifdef __cplusplus
8593extern "C"
8594#endif
8595/* We use char because int might match the return type of a gcc2
8596 builtin and then its argument prototype would still apply. */
8597char dlopen ();
8598int
8599main ()
8600{
8601dlopen ();
8602 ;
8603 return 0;
8604}
8605_ACEOF
8606rm -f conftest.$ac_objext conftest$ac_exeext
8607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008608 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008609 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008610 grep -v '^ *+' conftest.er1 >conftest.err
8611 rm -f conftest.er1
8612 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008615 { ac_try='test -z "$ac_c_werror_flag"
8616 || test ! -s conftest.err'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 (eval $ac_try) 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; } &&
8622 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 (eval $ac_try) 2>&5
8625 ac_status=$?
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; }; then
8628 ac_cv_lib_svld_dlopen=yes
8629else
8630 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008631sed 's/^/| /' conftest.$ac_ext >&5
8632
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008633ac_cv_lib_svld_dlopen=no
8634fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008635rm -f conftest.err conftest.$ac_objext \
8636 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008637LIBS=$ac_check_lib_save_LIBS
8638fi
8639echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8640echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8641if test $ac_cv_lib_svld_dlopen = yes; then
8642 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8643else
8644 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8645echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8646if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8648else
8649 ac_check_lib_save_LIBS=$LIBS
8650LIBS="-ldld $LIBS"
8651cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008652/* confdefs.h. */
8653_ACEOF
8654cat confdefs.h >>conftest.$ac_ext
8655cat >>conftest.$ac_ext <<_ACEOF
8656/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008657
8658/* Override any gcc2 internal prototype to avoid an error. */
8659#ifdef __cplusplus
8660extern "C"
8661#endif
8662/* We use char because int might match the return type of a gcc2
8663 builtin and then its argument prototype would still apply. */
8664char dld_link ();
8665int
8666main ()
8667{
8668dld_link ();
8669 ;
8670 return 0;
8671}
8672_ACEOF
8673rm -f conftest.$ac_objext conftest$ac_exeext
8674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008675 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008676 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008677 grep -v '^ *+' conftest.er1 >conftest.err
8678 rm -f conftest.er1
8679 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008682 { ac_try='test -z "$ac_c_werror_flag"
8683 || test ! -s conftest.err'
8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685 (eval $ac_try) 2>&5
8686 ac_status=$?
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; } &&
8689 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 (eval $ac_try) 2>&5
8692 ac_status=$?
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; }; then
8695 ac_cv_lib_dld_dld_link=yes
8696else
8697 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008698sed 's/^/| /' conftest.$ac_ext >&5
8699
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008700ac_cv_lib_dld_dld_link=no
8701fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008702rm -f conftest.err conftest.$ac_objext \
8703 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008704LIBS=$ac_check_lib_save_LIBS
8705fi
8706echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8707echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8708if test $ac_cv_lib_dld_dld_link = yes; then
8709 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8710fi
8711
8712
8713fi
8714
8715
8716fi
8717
8718
8719fi
8720
8721
8722fi
8723
8724
8725fi
8726
8727 ;;
8728 esac
8729
8730 if test "x$lt_cv_dlopen" != xno; then
8731 enable_dlopen=yes
8732 else
8733 enable_dlopen=no
8734 fi
8735
8736 case $lt_cv_dlopen in
8737 dlopen)
8738 save_CPPFLAGS="$CPPFLAGS"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008739 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008740
8741 save_LDFLAGS="$LDFLAGS"
8742 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8743
8744 save_LIBS="$LIBS"
8745 LIBS="$lt_cv_dlopen_libs $LIBS"
8746
8747 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8748echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8749if test "${lt_cv_dlopen_self+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8751else
8752 if test "$cross_compiling" = yes; then :
8753 lt_cv_dlopen_self=cross
8754else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008755 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008756 lt_status=$lt_dlunknown
8757 cat > conftest.$ac_ext <<EOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008758#line 8758 "configure"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008759#include "confdefs.h"
8760
8761#if HAVE_DLFCN_H
8762#include <dlfcn.h>
8763#endif
8764
8765#include <stdio.h>
8766
8767#ifdef RTLD_GLOBAL
8768# define LT_DLGLOBAL RTLD_GLOBAL
8769#else
8770# ifdef DL_GLOBAL
8771# define LT_DLGLOBAL DL_GLOBAL
8772# else
8773# define LT_DLGLOBAL 0
8774# endif
8775#endif
8776
8777/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8778 find out it does not work in some platform. */
8779#ifndef LT_DLLAZY_OR_NOW
8780# ifdef RTLD_LAZY
8781# define LT_DLLAZY_OR_NOW RTLD_LAZY
8782# else
8783# ifdef DL_LAZY
8784# define LT_DLLAZY_OR_NOW DL_LAZY
8785# else
8786# ifdef RTLD_NOW
8787# define LT_DLLAZY_OR_NOW RTLD_NOW
8788# else
8789# ifdef DL_NOW
8790# define LT_DLLAZY_OR_NOW DL_NOW
8791# else
8792# define LT_DLLAZY_OR_NOW 0
8793# endif
8794# endif
8795# endif
8796# endif
8797#endif
8798
8799#ifdef __cplusplus
8800extern "C" void exit (int);
8801#endif
8802
8803void fnord() { int i=42;}
8804int main ()
8805{
8806 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8807 int status = $lt_dlunknown;
8808
8809 if (self)
8810 {
8811 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8812 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8813 /* dlclose (self); */
8814 }
8815
8816 exit (status);
8817}
8818EOF
8819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8820 (eval $ac_link) 2>&5
8821 ac_status=$?
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8824 (./conftest; exit; ) 2>/dev/null
8825 lt_status=$?
8826 case x$lt_status in
8827 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8828 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8829 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8830 esac
8831 else :
8832 # compilation failed
8833 lt_cv_dlopen_self=no
8834 fi
8835fi
8836rm -fr conftest*
8837
8838
8839fi
8840echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8841echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8842
8843 if test "x$lt_cv_dlopen_self" = xyes; then
8844 LDFLAGS="$LDFLAGS $link_static_flag"
8845 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8846echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8847if test "${lt_cv_dlopen_self_static+set}" = set; then
8848 echo $ECHO_N "(cached) $ECHO_C" >&6
8849else
8850 if test "$cross_compiling" = yes; then :
8851 lt_cv_dlopen_self_static=cross
8852else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008853 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008854 lt_status=$lt_dlunknown
8855 cat > conftest.$ac_ext <<EOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008856#line 8856 "configure"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008857#include "confdefs.h"
8858
8859#if HAVE_DLFCN_H
8860#include <dlfcn.h>
8861#endif
8862
8863#include <stdio.h>
8864
8865#ifdef RTLD_GLOBAL
8866# define LT_DLGLOBAL RTLD_GLOBAL
8867#else
8868# ifdef DL_GLOBAL
8869# define LT_DLGLOBAL DL_GLOBAL
8870# else
8871# define LT_DLGLOBAL 0
8872# endif
8873#endif
8874
8875/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8876 find out it does not work in some platform. */
8877#ifndef LT_DLLAZY_OR_NOW
8878# ifdef RTLD_LAZY
8879# define LT_DLLAZY_OR_NOW RTLD_LAZY
8880# else
8881# ifdef DL_LAZY
8882# define LT_DLLAZY_OR_NOW DL_LAZY
8883# else
8884# ifdef RTLD_NOW
8885# define LT_DLLAZY_OR_NOW RTLD_NOW
8886# else
8887# ifdef DL_NOW
8888# define LT_DLLAZY_OR_NOW DL_NOW
8889# else
8890# define LT_DLLAZY_OR_NOW 0
8891# endif
8892# endif
8893# endif
8894# endif
8895#endif
8896
8897#ifdef __cplusplus
8898extern "C" void exit (int);
8899#endif
8900
8901void fnord() { int i=42;}
8902int main ()
8903{
8904 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8905 int status = $lt_dlunknown;
8906
8907 if (self)
8908 {
8909 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8910 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8911 /* dlclose (self); */
8912 }
8913
8914 exit (status);
8915}
8916EOF
8917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8918 (eval $ac_link) 2>&5
8919 ac_status=$?
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8922 (./conftest; exit; ) 2>/dev/null
8923 lt_status=$?
8924 case x$lt_status in
8925 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8926 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8927 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8928 esac
8929 else :
8930 # compilation failed
8931 lt_cv_dlopen_self_static=no
8932 fi
8933fi
8934rm -fr conftest*
8935
8936
8937fi
8938echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8939echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8940 fi
8941
8942 CPPFLAGS="$save_CPPFLAGS"
8943 LDFLAGS="$save_LDFLAGS"
8944 LIBS="$save_LIBS"
8945 ;;
8946 esac
8947
8948 case $lt_cv_dlopen_self in
8949 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8950 *) enable_dlopen_self=unknown ;;
8951 esac
8952
8953 case $lt_cv_dlopen_self_static in
8954 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8955 *) enable_dlopen_self_static=unknown ;;
8956 esac
8957fi
8958
8959
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008960# Report which librarie types wil actually be built
8961echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8962echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8963echo "$as_me:$LINENO: result: $can_build_shared" >&5
8964echo "${ECHO_T}$can_build_shared" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008965
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008966echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8967echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8968test "$can_build_shared" = "no" && enable_shared=no
8969
8970# On AIX, shared libraries and static libraries use the same namespace, and
8971# are all built from PIC.
8972case "$host_os" in
8973aix3*)
8974 test "$enable_shared" = yes && enable_static=no
8975 if test -n "$RANLIB"; then
8976 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8977 postinstall_cmds='$RANLIB $lib'
8978 fi
8979 ;;
8980
8981aix4*)
8982 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8983 test "$enable_shared" = yes && enable_static=no
8984 fi
8985 ;;
8986 darwin* | rhapsody*)
8987 if test "$GCC" = yes; then
8988 archive_cmds_need_lc=no
8989 case "$host_os" in
8990 rhapsody* | darwin1.[012])
8991 allow_undefined_flag='-undefined suppress'
8992 ;;
8993 *) # Darwin 1.3 on
8994 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8995 allow_undefined_flag='-flat_namespace -undefined suppress'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008996 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008997 case ${MACOSX_DEPLOYMENT_TARGET} in
8998 10.[012])
8999 allow_undefined_flag='-flat_namespace -undefined suppress'
9000 ;;
9001 10.*)
9002 allow_undefined_flag='-undefined dynamic_lookup'
9003 ;;
9004 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009005 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009006 ;;
9007 esac
9008 output_verbose_link_cmd='echo'
9009 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9010 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9011 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9012 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}'
9013 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}'
9014 hardcode_direct=no
9015 hardcode_automatic=yes
9016 hardcode_shlibpath_var=unsupported
9017 whole_archive_flag_spec='-all_load $convenience'
9018 link_all_deplibs=yes
9019 else
9020 ld_shlibs=no
9021 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009022 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009023esac
9024echo "$as_me:$LINENO: result: $enable_shared" >&5
9025echo "${ECHO_T}$enable_shared" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009026
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009027echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9028echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9029# Make sure either enable_shared or enable_static is yes.
9030test "$enable_shared" = yes || enable_static=yes
9031echo "$as_me:$LINENO: result: $enable_static" >&5
9032echo "${ECHO_T}$enable_static" >&6
9033
9034# The else clause should only fire when bootstrapping the
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009035# libtool distribution, otherwise you forgot to ship ltmain.sh
9036# with your package, and you will get complaints that there are
9037# no rules to generate ltmain.sh.
9038if test -f "$ltmain"; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009039 # See if we are running on zsh, and set the options which allow our commands through
9040 # without removal of \ escapes.
9041 if test -n "${ZSH_VERSION+set}" ; then
9042 setopt NO_GLOB_SUBST
9043 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009044 # Now quote all the things that may contain metacharacters while being
9045 # careful not to overquote the AC_SUBSTed values. We take copies of the
9046 # variables and quote the copies for generation of the libtool script.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009047 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9048 SED SHELL STRIP \
9049 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9050 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9051 deplibs_check_method reload_flag reload_cmds need_locks \
9052 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9053 lt_cv_sys_global_symbol_to_c_name_address \
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009054 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009055 old_postinstall_cmds old_postuninstall_cmds \
9056 compiler \
9057 CC \
9058 LD \
9059 lt_prog_compiler_wl \
9060 lt_prog_compiler_pic \
9061 lt_prog_compiler_static \
9062 lt_prog_compiler_no_builtin_flag \
9063 export_dynamic_flag_spec \
9064 thread_safe_flag_spec \
9065 whole_archive_flag_spec \
9066 enable_shared_with_static_runtimes \
9067 old_archive_cmds \
9068 old_archive_from_new_cmds \
9069 predep_objects \
9070 postdep_objects \
9071 predeps \
9072 postdeps \
9073 compiler_lib_search_path \
9074 archive_cmds \
9075 archive_expsym_cmds \
9076 postinstall_cmds \
9077 postuninstall_cmds \
9078 old_archive_from_expsyms_cmds \
9079 allow_undefined_flag \
9080 no_undefined_flag \
9081 export_symbols_cmds \
9082 hardcode_libdir_flag_spec \
9083 hardcode_libdir_flag_spec_ld \
9084 hardcode_libdir_separator \
9085 hardcode_automatic \
9086 module_cmds \
9087 module_expsym_cmds \
9088 lt_cv_prog_compiler_c_o \
9089 exclude_expsyms \
9090 include_expsyms; do
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009091
9092 case $var in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009093 old_archive_cmds | \
9094 old_archive_from_new_cmds | \
9095 archive_cmds | \
9096 archive_expsym_cmds | \
9097 module_cmds | \
9098 module_expsym_cmds | \
9099 old_archive_from_expsyms_cmds | \
9100 export_symbols_cmds | \
9101 extract_expsyms_cmds | reload_cmds | finish_cmds | \
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009102 postinstall_cmds | postuninstall_cmds | \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009103 old_postinstall_cmds | old_postuninstall_cmds | \
9104 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009105 # Double-quote double-evaled strings.
9106 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9107 ;;
9108 *)
9109 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9110 ;;
9111 esac
9112 done
9113
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009114 case $lt_echo in
9115 *'\$0 --fallback-echo"')
9116 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9117 ;;
9118 esac
9119
9120cfgfile="${ofile}T"
9121 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9122 $rm -f "$cfgfile"
9123 { echo "$as_me:$LINENO: creating $ofile" >&5
9124echo "$as_me: creating $ofile" >&6;}
9125
9126 cat <<__EOF__ >> "$cfgfile"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009127#! $SHELL
9128
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009129# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009130# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9131# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9132#
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009133# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9134# Free Software Foundation, Inc.
9135#
9136# This file is part of GNU Libtool:
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009137# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9138#
9139# This program is free software; you can redistribute it and/or modify
9140# it under the terms of the GNU General Public License as published by
9141# the Free Software Foundation; either version 2 of the License, or
9142# (at your option) any later version.
9143#
9144# This program is distributed in the hope that it will be useful, but
9145# WITHOUT ANY WARRANTY; without even the implied warranty of
9146# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9147# General Public License for more details.
9148#
9149# You should have received a copy of the GNU General Public License
9150# along with this program; if not, write to the Free Software
9151# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9152#
9153# As a special exception to the GNU General Public License, if you
9154# distribute this file as part of a program that contains a
9155# configuration script generated by Autoconf, you may include it under
9156# the same distribution terms that you use for the rest of that program.
9157
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009158# A sed program that does not truncate output.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009159SED=$lt_SED
9160
9161# Sed that helps us avoid accidentally triggering echo(1) options like -n.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009162Xsed="$SED -e s/^X//"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009163
9164# The HP-UX ksh and POSIX shell print the target directory to stdout
9165# if CDPATH is set.
9166if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9167
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009168# The names of the tagged configurations supported by this script.
9169available_tags=
9170
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009171# ### BEGIN LIBTOOL CONFIG
9172
9173# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9174
9175# Shell to use when invoking shell scripts.
9176SHELL=$lt_SHELL
9177
9178# Whether or not to build shared libraries.
9179build_libtool_libs=$enable_shared
9180
9181# Whether or not to build static libraries.
9182build_old_libs=$enable_static
9183
9184# Whether or not to add -lc for building shared libraries.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009185build_libtool_need_lc=$archive_cmds_need_lc
9186
9187# Whether or not to disallow shared libs when runtime libs are static
9188allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009189
9190# Whether or not to optimize for fast installation.
9191fast_install=$enable_fast_install
9192
9193# The host system.
9194host_alias=$host_alias
9195host=$host
9196
9197# An echo program that does not interpret backslashes.
9198echo=$lt_echo
9199
9200# The archiver.
9201AR=$lt_AR
9202AR_FLAGS=$lt_AR_FLAGS
9203
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009204# A C compiler.
9205LTCC=$lt_LTCC
9206
9207# A language-specific compiler.
9208CC=$lt_compiler
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009209
9210# Is the compiler the GNU C compiler?
9211with_gcc=$GCC
9212
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009213# An ERE matcher.
9214EGREP=$lt_EGREP
9215
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009216# The linker used to build libraries.
9217LD=$lt_LD
9218
9219# Whether we need hard or soft links.
9220LN_S=$lt_LN_S
9221
9222# A BSD-compatible nm program.
9223NM=$lt_NM
9224
9225# A symbol stripping program
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009226STRIP=$lt_STRIP
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009227
9228# Used to examine libraries when file_magic_cmd begins "file"
9229MAGIC_CMD=$MAGIC_CMD
9230
9231# Used on cygwin: DLL creation program.
9232DLLTOOL="$DLLTOOL"
9233
9234# Used on cygwin: object dumper.
9235OBJDUMP="$OBJDUMP"
9236
9237# Used on cygwin: assembler.
9238AS="$AS"
9239
9240# The name of the directory that contains temporary libtool files.
9241objdir=$objdir
9242
9243# How to create reloadable object files.
9244reload_flag=$lt_reload_flag
9245reload_cmds=$lt_reload_cmds
9246
9247# How to pass a linker flag through the compiler.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009248wl=$lt_lt_prog_compiler_wl
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009249
9250# Object file suffix (normally "o").
9251objext="$ac_objext"
9252
9253# Old archive suffix (normally "a").
9254libext="$libext"
9255
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009256# Shared library suffix (normally ".so").
9257shrext='$shrext'
9258
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009259# Executable file suffix (normally "").
9260exeext="$exeext"
9261
9262# Additional compiler flags for building library objects.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009263pic_flag=$lt_lt_prog_compiler_pic
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009264pic_mode=$pic_mode
9265
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009266# What is the maximum length of a command?
9267max_cmd_len=$lt_cv_sys_max_cmd_len
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009268
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009269# Does compiler simultaneously support -c and -o options?
9270compiler_c_o=$lt_lt_cv_prog_compiler_c_o
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009271
9272# Must we lock files when doing compilation ?
9273need_locks=$lt_need_locks
9274
9275# Do we need the lib prefix for modules?
9276need_lib_prefix=$need_lib_prefix
9277
9278# Do we need a version for libraries?
9279need_version=$need_version
9280
9281# Whether dlopen is supported.
9282dlopen_support=$enable_dlopen
9283
9284# Whether dlopen of programs is supported.
9285dlopen_self=$enable_dlopen_self
9286
9287# Whether dlopen of statically linked programs is supported.
9288dlopen_self_static=$enable_dlopen_self_static
9289
9290# Compiler flag to prevent dynamic linking.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009291link_static_flag=$lt_lt_prog_compiler_static
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009292
9293# Compiler flag to turn off builtin functions.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009294no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009295
9296# Compiler flag to allow reflexive dlopens.
9297export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9298
9299# Compiler flag to generate shared objects directly from archives.
9300whole_archive_flag_spec=$lt_whole_archive_flag_spec
9301
9302# Compiler flag to generate thread-safe objects.
9303thread_safe_flag_spec=$lt_thread_safe_flag_spec
9304
9305# Library versioning type.
9306version_type=$version_type
9307
9308# Format of library name prefix.
9309libname_spec=$lt_libname_spec
9310
9311# List of archive names. First name is the real one, the rest are links.
9312# The last name is the one that the linker finds with -lNAME.
9313library_names_spec=$lt_library_names_spec
9314
9315# The coded name of the library, if different from the real name.
9316soname_spec=$lt_soname_spec
9317
9318# Commands used to build and install an old-style archive.
9319RANLIB=$lt_RANLIB
9320old_archive_cmds=$lt_old_archive_cmds
9321old_postinstall_cmds=$lt_old_postinstall_cmds
9322old_postuninstall_cmds=$lt_old_postuninstall_cmds
9323
9324# Create an old-style archive from a shared archive.
9325old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9326
9327# Create a temporary old-style archive to link instead of a shared archive.
9328old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9329
9330# Commands used to build and install a shared archive.
9331archive_cmds=$lt_archive_cmds
9332archive_expsym_cmds=$lt_archive_expsym_cmds
9333postinstall_cmds=$lt_postinstall_cmds
9334postuninstall_cmds=$lt_postuninstall_cmds
9335
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009336# Commands used to build a loadable module (assumed same as above if empty)
9337module_cmds=$lt_module_cmds
9338module_expsym_cmds=$lt_module_expsym_cmds
9339
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009340# Commands to strip libraries.
9341old_striplib=$lt_old_striplib
9342striplib=$lt_striplib
9343
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009344# Dependencies to place before the objects being linked to create a
9345# shared library.
9346predep_objects=$lt_predep_objects
9347
9348# Dependencies to place after the objects being linked to create a
9349# shared library.
9350postdep_objects=$lt_postdep_objects
9351
9352# Dependencies to place before the objects being linked to create a
9353# shared library.
9354predeps=$lt_predeps
9355
9356# Dependencies to place after the objects being linked to create a
9357# shared library.
9358postdeps=$lt_postdeps
9359
9360# The library search path used internally by the compiler when linking
9361# a shared library.
9362compiler_lib_search_path=$lt_compiler_lib_search_path
9363
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009364# Method to check whether dependent libraries are shared objects.
9365deplibs_check_method=$lt_deplibs_check_method
9366
9367# Command to use when deplibs_check_method == file_magic.
9368file_magic_cmd=$lt_file_magic_cmd
9369
9370# Flag that allows shared libraries with undefined symbols to be built.
9371allow_undefined_flag=$lt_allow_undefined_flag
9372
9373# Flag that forces no undefined symbols.
9374no_undefined_flag=$lt_no_undefined_flag
9375
9376# Commands used to finish a libtool library installation in a directory.
9377finish_cmds=$lt_finish_cmds
9378
9379# Same as above, but a single script fragment to be evaled but not shown.
9380finish_eval=$lt_finish_eval
9381
9382# Take the output of nm and produce a listing of raw symbols and C names.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009383global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009384
9385# Transform the output of nm in a proper C declaration
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009386global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009387
9388# Transform the output of nm in a C name address pair
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009389global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009390
9391# This is the shared library runtime path variable.
9392runpath_var=$runpath_var
9393
9394# This is the shared library path variable.
9395shlibpath_var=$shlibpath_var
9396
9397# Is shlibpath searched before the hard-coded library search path?
9398shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9399
9400# How to hardcode a shared library path into an executable.
9401hardcode_action=$hardcode_action
9402
9403# Whether we should hardcode library paths into libraries.
9404hardcode_into_libs=$hardcode_into_libs
9405
9406# Flag to hardcode \$libdir into a binary during linking.
9407# This must work even if \$libdir does not exist.
9408hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9409
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009410# If ld is used when linking, flag to hardcode \$libdir into
9411# a binary during linking. This must work even if \$libdir does
9412# not exist.
9413hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9414
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009415# Whether we need a single -rpath flag with a separated argument.
9416hardcode_libdir_separator=$lt_hardcode_libdir_separator
9417
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009418# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009419# resulting binary.
9420hardcode_direct=$hardcode_direct
9421
9422# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9423# resulting binary.
9424hardcode_minus_L=$hardcode_minus_L
9425
9426# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9427# the resulting binary.
9428hardcode_shlibpath_var=$hardcode_shlibpath_var
9429
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009430# Set to yes if building a shared library automatically hardcodes DIR into the library
9431# and all subsequent libraries and executables linked against it.
9432hardcode_automatic=$hardcode_automatic
9433
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009434# Variables whose values should be saved in libtool wrapper scripts and
9435# restored at relink time.
9436variables_saved_for_relink="$variables_saved_for_relink"
9437
9438# Whether libtool must link a program against all its dependency libraries.
9439link_all_deplibs=$link_all_deplibs
9440
9441# Compile-time system search path for libraries
9442sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9443
9444# Run-time system search path for libraries
9445sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9446
9447# Fix the shell variable \$srcfile for the compiler.
9448fix_srcfile_path="$fix_srcfile_path"
9449
9450# Set to yes if exported symbols are required.
9451always_export_symbols=$always_export_symbols
9452
9453# The commands to list exported symbols.
9454export_symbols_cmds=$lt_export_symbols_cmds
9455
9456# The commands to extract the exported symbol list from a shared archive.
9457extract_expsyms_cmds=$lt_extract_expsyms_cmds
9458
9459# Symbols that should not be listed in the preloaded symbols.
9460exclude_expsyms=$lt_exclude_expsyms
9461
9462# Symbols that must always be exported.
9463include_expsyms=$lt_include_expsyms
9464
9465# ### END LIBTOOL CONFIG
9466
9467__EOF__
9468
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009469
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009470 case $host_os in
9471 aix3*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009472 cat <<\EOF >> "$cfgfile"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009473
9474# AIX sometimes has problems with the GCC collect2 program. For some
9475# reason, if we set the COLLECT_NAMES environment variable, the problems
9476# vanish in a puff of smoke.
9477if test "X${COLLECT_NAMES+set}" != Xset; then
9478 COLLECT_NAMES=
9479 export COLLECT_NAMES
9480fi
9481EOF
9482 ;;
9483 esac
9484
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009485 # We use sed instead of cat because bash on DJGPP gets confused if
9486 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9487 # text mode, it properly converts lines to CR/LF. This bash problem
9488 # is reportedly fixed, but why not run on old versions too?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009489 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009490
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009491 mv -f "$cfgfile" "$ofile" || \
9492 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009493 chmod +x "$ofile"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009494
9495else
9496 # If there is no Makefile yet, we rely on a make rule to execute
9497 # `config.status --recheck' to rerun these tests and create the
9498 # libtool script then.
9499 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9500 if test -f "$ltmain_in"; then
9501 test -f Makefile && make "$ltmain"
9502 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009503fi
9504
9505
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009506ac_ext=c
9507ac_cpp='$CPP $CPPFLAGS'
9508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9510ac_compiler_gnu=$ac_cv_c_compiler_gnu
9511
9512CC="$lt_save_CC"
9513
9514
9515# Check whether --with-tags or --without-tags was given.
9516if test "${with_tags+set}" = set; then
9517 withval="$with_tags"
9518 tagnames="$withval"
9519fi;
9520
9521if test -f "$ltmain" && test -n "$tagnames"; then
9522 if test ! -f "${ofile}"; then
9523 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9524echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9525 fi
9526
9527 if test -z "$LTCC"; then
9528 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9529 if test -z "$LTCC"; then
9530 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9531echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9532 else
9533 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9534echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9535 fi
9536 fi
9537
9538 # Extract list of available tagged configurations in $ofile.
9539 # Note that this assumes the entire list is on one line.
9540 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9541
9542 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9543 for tagname in $tagnames; do
9544 IFS="$lt_save_ifs"
9545 # Check whether tagname contains only valid characters
9546 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9547 "") ;;
9548 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9549echo "$as_me: error: invalid tag name: $tagname" >&2;}
9550 { (exit 1); exit 1; }; }
9551 ;;
9552 esac
9553
9554 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9555 then
9556 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9557echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9558 { (exit 1); exit 1; }; }
9559 fi
9560
9561 # Update the list of available tags.
9562 if test -n "$tagname"; then
9563 echo appending configuration tag \"$tagname\" to $ofile
9564
9565 case $tagname in
9566 CXX)
9567 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9568 ac_ext=cc
9569ac_cpp='$CXXCPP $CPPFLAGS'
9570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9573
9574
9575
9576
9577archive_cmds_need_lc_CXX=no
9578allow_undefined_flag_CXX=
9579always_export_symbols_CXX=no
9580archive_expsym_cmds_CXX=
9581export_dynamic_flag_spec_CXX=
9582hardcode_direct_CXX=no
9583hardcode_libdir_flag_spec_CXX=
9584hardcode_libdir_flag_spec_ld_CXX=
9585hardcode_libdir_separator_CXX=
9586hardcode_minus_L_CXX=no
9587hardcode_automatic_CXX=no
9588module_cmds_CXX=
9589module_expsym_cmds_CXX=
9590link_all_deplibs_CXX=unknown
9591old_archive_cmds_CXX=$old_archive_cmds
9592no_undefined_flag_CXX=
9593whole_archive_flag_spec_CXX=
9594enable_shared_with_static_runtimes_CXX=no
9595
9596# Dependencies to place before and after the object being linked:
9597predep_objects_CXX=
9598postdep_objects_CXX=
9599predeps_CXX=
9600postdeps_CXX=
9601compiler_lib_search_path_CXX=
9602
9603# Source file extension for C++ test sources.
9604ac_ext=cc
9605
9606# Object file extension for compiled C++ test sources.
9607objext=o
9608objext_CXX=$objext
9609
9610# Code to be used in simple compile tests
9611lt_simple_compile_test_code="int some_variable = 0;\n"
9612
9613# Code to be used in simple link tests
9614lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9615
9616# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9617
9618# If no C compiler was specified, use CC.
9619LTCC=${LTCC-"$CC"}
9620
9621# Allow CC to be a program name with arguments.
9622compiler=$CC
9623
9624
9625# Allow CC to be a program name with arguments.
9626lt_save_CC=$CC
9627lt_save_LD=$LD
9628lt_save_GCC=$GCC
9629GCC=$GXX
9630lt_save_with_gnu_ld=$with_gnu_ld
9631lt_save_path_LD=$lt_cv_path_LD
9632if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9633 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9634else
9635 unset lt_cv_prog_gnu_ld
9636fi
9637if test -n "${lt_cv_path_LDCXX+set}"; then
9638 lt_cv_path_LD=$lt_cv_path_LDCXX
9639else
9640 unset lt_cv_path_LD
9641fi
9642test -z "${LDCXX+set}" || LD=$LDCXX
9643CC=${CXX-"c++"}
9644compiler=$CC
9645compiler_CXX=$CC
9646cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9647
9648# We don't want -fno-exception wen compiling C++ code, so set the
9649# no_builtin_flag separately
9650if test "$GXX" = yes; then
9651 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9652else
9653 lt_prog_compiler_no_builtin_flag_CXX=
9654fi
9655
9656if test "$GXX" = yes; then
9657 # Set up default GNU C++ configuration
9658
9659
9660# Check whether --with-gnu-ld or --without-gnu-ld was given.
9661if test "${with_gnu_ld+set}" = set; then
9662 withval="$with_gnu_ld"
9663 test "$withval" = no || with_gnu_ld=yes
9664else
9665 with_gnu_ld=no
9666fi;
9667ac_prog=ld
9668if test "$GCC" = yes; then
9669 # Check if gcc -print-prog-name=ld gives a path.
9670 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9671echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9672 case $host in
9673 *-*-mingw*)
9674 # gcc leaves a trailing carriage return which upsets mingw
9675 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9676 *)
9677 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9678 esac
9679 case $ac_prog in
9680 # Accept absolute paths.
9681 [\\/]* | ?:[\\/]*)
9682 re_direlt='/[^/][^/]*/\.\./'
9683 # Canonicalize the pathname of ld
9684 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9685 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9686 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9687 done
9688 test -z "$LD" && LD="$ac_prog"
9689 ;;
9690 "")
9691 # If it fails, then pretend we aren't using GCC.
9692 ac_prog=ld
9693 ;;
9694 *)
9695 # If it is relative, then search for the first ld in PATH.
9696 with_gnu_ld=unknown
9697 ;;
9698 esac
9699elif test "$with_gnu_ld" = yes; then
9700 echo "$as_me:$LINENO: checking for GNU ld" >&5
9701echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9702else
9703 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9704echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9705fi
9706if test "${lt_cv_path_LD+set}" = set; then
9707 echo $ECHO_N "(cached) $ECHO_C" >&6
9708else
9709 if test -z "$LD"; then
9710 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9711 for ac_dir in $PATH; do
9712 IFS="$lt_save_ifs"
9713 test -z "$ac_dir" && ac_dir=.
9714 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9715 lt_cv_path_LD="$ac_dir/$ac_prog"
9716 # Check to see if the program is GNU ld. I'd rather use --version,
9717 # but apparently some GNU ld's only accept -v.
9718 # Break only if it was the GNU/non-GNU ld that we prefer.
9719 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9720 *GNU* | *'with BFD'*)
9721 test "$with_gnu_ld" != no && break
9722 ;;
9723 *)
9724 test "$with_gnu_ld" != yes && break
9725 ;;
9726 esac
9727 fi
9728 done
9729 IFS="$lt_save_ifs"
9730else
9731 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9732fi
9733fi
9734
9735LD="$lt_cv_path_LD"
9736if test -n "$LD"; then
9737 echo "$as_me:$LINENO: result: $LD" >&5
9738echo "${ECHO_T}$LD" >&6
9739else
9740 echo "$as_me:$LINENO: result: no" >&5
9741echo "${ECHO_T}no" >&6
9742fi
9743test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9744echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9745 { (exit 1); exit 1; }; }
9746echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9747echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9748if test "${lt_cv_prog_gnu_ld+set}" = set; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9750else
9751 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9752case `$LD -v 2>&1 </dev/null` in
9753*GNU* | *'with BFD'*)
9754 lt_cv_prog_gnu_ld=yes
9755 ;;
9756*)
9757 lt_cv_prog_gnu_ld=no
9758 ;;
9759esac
9760fi
9761echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9762echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9763with_gnu_ld=$lt_cv_prog_gnu_ld
9764
9765
9766
9767 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9768 # archiving commands below assume that GNU ld is being used.
9769 if test "$with_gnu_ld" = yes; then
9770 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9771 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'
9772
9773 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9774 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9775
9776 # If archive_cmds runs LD, not CC, wlarc should be empty
9777 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9778 # investigate it a little bit more. (MM)
9779 wlarc='${wl}'
9780
9781 # ancient GNU ld didn't support --whole-archive et. al.
9782 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9783 grep 'no-whole-archive' > /dev/null; then
9784 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9785 else
9786 whole_archive_flag_spec_CXX=
9787 fi
9788 else
9789 with_gnu_ld=no
9790 wlarc=
9791
9792 # A generic and very simple default shared library creation
9793 # command for GNU C++ for the case where it uses the native
9794 # linker, instead of GNU ld. If possible, this setting should
9795 # overridden to take advantage of the native linker features on
9796 # the platform it is being used on.
9797 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9798 fi
9799
9800 # Commands to make compiler produce verbose output that lists
9801 # what "hidden" libraries, object files and flags are used when
9802 # linking a shared library.
9803 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9804
9805else
9806 GXX=no
9807 with_gnu_ld=no
9808 wlarc=
9809fi
9810
9811# PORTME: fill in a description of your system's C++ link characteristics
9812echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9813echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9814ld_shlibs_CXX=yes
9815case $host_os in
9816 aix3*)
9817 # FIXME: insert proper C++ library support
9818 ld_shlibs_CXX=no
9819 ;;
9820 aix4* | aix5*)
9821 if test "$host_cpu" = ia64; then
9822 # On IA64, the linker does run time linking by default, so we don't
9823 # have to do anything special.
9824 aix_use_runtimelinking=no
9825 exp_sym_flag='-Bexport'
9826 no_entry_flag=""
9827 else
9828 aix_use_runtimelinking=no
9829
9830 # Test if we are trying to use run time linking or normal
9831 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9832 # need to do runtime linking.
9833 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9834 for ld_flag in $LDFLAGS; do
9835 case $ld_flag in
9836 *-brtl*)
9837 aix_use_runtimelinking=yes
9838 break
9839 ;;
9840 esac
9841 done
9842 esac
9843
9844 exp_sym_flag='-bexport'
9845 no_entry_flag='-bnoentry'
9846 fi
9847
9848 # When large executables or shared objects are built, AIX ld can
9849 # have problems creating the table of contents. If linking a library
9850 # or program results in "error TOC overflow" add -mminimal-toc to
9851 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9852 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9853
9854 archive_cmds_CXX=''
9855 hardcode_direct_CXX=yes
9856 hardcode_libdir_separator_CXX=':'
9857 link_all_deplibs_CXX=yes
9858
9859 if test "$GXX" = yes; then
9860 case $host_os in aix4.012|aix4.012.*)
9861 # We only want to do this on AIX 4.2 and lower, the check
9862 # below for broken collect2 doesn't work under 4.3+
9863 collect2name=`${CC} -print-prog-name=collect2`
9864 if test -f "$collect2name" && \
9865 strings "$collect2name" | grep resolve_lib_name >/dev/null
9866 then
9867 # We have reworked collect2
9868 hardcode_direct_CXX=yes
9869 else
9870 # We have old collect2
9871 hardcode_direct_CXX=unsupported
9872 # It fails to find uninstalled libraries when the uninstalled
9873 # path is not listed in the libpath. Setting hardcode_minus_L
9874 # to unsupported forces relinking
9875 hardcode_minus_L_CXX=yes
9876 hardcode_libdir_flag_spec_CXX='-L$libdir'
9877 hardcode_libdir_separator_CXX=
9878 fi
9879 esac
9880 shared_flag='-shared'
9881 else
9882 # not using gcc
9883 if test "$host_cpu" = ia64; then
9884 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9885 # chokes on -Wl,-G. The following line is correct:
9886 shared_flag='-G'
9887 else
9888 if test "$aix_use_runtimelinking" = yes; then
9889 shared_flag='${wl}-G'
9890 else
9891 shared_flag='${wl}-bM:SRE'
9892 fi
9893 fi
9894 fi
9895
9896 # It seems that -bexpall does not export symbols beginning with
9897 # underscore (_), so it is better to generate a list of symbols to export.
9898 always_export_symbols_CXX=yes
9899 if test "$aix_use_runtimelinking" = yes; then
9900 # Warning - without using the other runtime loading flags (-brtl),
9901 # -berok will link without error, but may produce a broken library.
9902 allow_undefined_flag_CXX='-berok'
9903 # Determine the default libpath from the value encoded in an empty executable.
9904 cat >conftest.$ac_ext <<_ACEOF
9905/* confdefs.h. */
9906_ACEOF
9907cat confdefs.h >>conftest.$ac_ext
9908cat >>conftest.$ac_ext <<_ACEOF
9909/* end confdefs.h. */
9910
9911int
9912main ()
9913{
9914
9915 ;
9916 return 0;
9917}
9918_ACEOF
9919rm -f conftest.$ac_objext conftest$ac_exeext
9920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9921 (eval $ac_link) 2>conftest.er1
9922 ac_status=$?
9923 grep -v '^ *+' conftest.er1 >conftest.err
9924 rm -f conftest.er1
9925 cat conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } &&
9928 { ac_try='test -z "$ac_cxx_werror_flag"
9929 || test ! -s conftest.err'
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 (eval $ac_try) 2>&5
9932 ac_status=$?
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; } &&
9935 { ac_try='test -s conftest$ac_exeext'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 (eval $ac_try) 2>&5
9938 ac_status=$?
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; }; then
9941
9942aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9943}'`
9944# Check for a 64-bit object if we didn't find anything.
9945if 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; }
9946}'`; fi
9947else
9948 echo "$as_me: failed program was:" >&5
9949sed 's/^/| /' conftest.$ac_ext >&5
9950
9951fi
9952rm -f conftest.err conftest.$ac_objext \
9953 conftest$ac_exeext conftest.$ac_ext
9954if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9955
9956 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9957
9958 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"
9959 else
9960 if test "$host_cpu" = ia64; then
9961 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9962 allow_undefined_flag_CXX="-z nodefs"
9963 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"
9964 else
9965 # Determine the default libpath from the value encoded in an empty executable.
9966 cat >conftest.$ac_ext <<_ACEOF
9967/* confdefs.h. */
9968_ACEOF
9969cat confdefs.h >>conftest.$ac_ext
9970cat >>conftest.$ac_ext <<_ACEOF
9971/* end confdefs.h. */
9972
9973int
9974main ()
9975{
9976
9977 ;
9978 return 0;
9979}
9980_ACEOF
9981rm -f conftest.$ac_objext conftest$ac_exeext
9982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9983 (eval $ac_link) 2>conftest.er1
9984 ac_status=$?
9985 grep -v '^ *+' conftest.er1 >conftest.err
9986 rm -f conftest.er1
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try='test -z "$ac_cxx_werror_flag"
9991 || test ! -s conftest.err'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 (eval $ac_try) 2>&5
9994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; } &&
9997 { ac_try='test -s conftest$ac_exeext'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003
10004aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10005}'`
10006# Check for a 64-bit object if we didn't find anything.
10007if 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; }
10008}'`; fi
10009else
10010 echo "$as_me: failed program was:" >&5
10011sed 's/^/| /' conftest.$ac_ext >&5
10012
10013fi
10014rm -f conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10016if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10017
10018 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10019 # Warning - without using the other run time loading flags,
10020 # -berok will link without error, but may produce a broken library.
10021 no_undefined_flag_CXX=' ${wl}-bernotok'
10022 allow_undefined_flag_CXX=' ${wl}-berok'
10023 # -bexpall does not export symbols beginning with underscore (_)
10024 always_export_symbols_CXX=yes
10025 # Exported symbols can be pulled into shared objects from archives
10026 whole_archive_flag_spec_CXX=' '
10027 archive_cmds_need_lc_CXX=yes
10028 # This is similar to how AIX traditionally builds it's shared libraries.
10029 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'
10030 fi
10031 fi
10032 ;;
10033 chorus*)
10034 case $cc_basename in
10035 *)
10036 # FIXME: insert proper C++ library support
10037 ld_shlibs_CXX=no
10038 ;;
10039 esac
10040 ;;
10041
10042 cygwin* | mingw* | pw32*)
10043 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10044 # as there is no search path for DLLs.
10045 hardcode_libdir_flag_spec_CXX='-L$libdir'
10046 allow_undefined_flag_CXX=unsupported
10047 always_export_symbols_CXX=no
10048 enable_shared_with_static_runtimes_CXX=yes
10049
10050 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10051 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'
10052 # If the export-symbols file already is a .def file (1st line
10053 # is EXPORTS), use it as is; otherwise, prepend...
10054 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10055 cp $export_symbols $output_objdir/$soname.def;
10056 else
10057 echo EXPORTS > $output_objdir/$soname.def;
10058 cat $export_symbols >> $output_objdir/$soname.def;
10059 fi~
10060 $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'
10061 else
10062 ld_shlibs_CXX=no
10063 fi
10064 ;;
10065
10066 darwin* | rhapsody*)
10067 if test "$GXX" = yes; then
10068 archive_cmds_need_lc_CXX=no
10069 case "$host_os" in
10070 rhapsody* | darwin1.[012])
10071 allow_undefined_flag_CXX='-undefined suppress'
10072 ;;
10073 *) # Darwin 1.3 on
10074 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10075 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10076 else
10077 case ${MACOSX_DEPLOYMENT_TARGET} in
10078 10.[012])
10079 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10080 ;;
10081 10.*)
10082 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10083 ;;
10084 esac
10085 fi
10086 ;;
10087 esac
10088 lt_int_apple_cc_single_mod=no
10089 output_verbose_link_cmd='echo'
10090 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10091 lt_int_apple_cc_single_mod=yes
10092 fi
10093 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10094 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10095 else
10096 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'
10097 fi
10098 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10099
10100 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10101 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10102 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}'
10103 else
10104 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}'
10105 fi
10106 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}'
10107 hardcode_direct_CXX=no
10108 hardcode_automatic_CXX=yes
10109 hardcode_shlibpath_var_CXX=unsupported
10110 whole_archive_flag_spec_CXX='-all_load $convenience'
10111 link_all_deplibs_CXX=yes
10112 else
10113 ld_shlibs_CXX=no
10114 fi
10115 ;;
10116
10117 dgux*)
10118 case $cc_basename in
10119 ec++)
10120 # FIXME: insert proper C++ library support
10121 ld_shlibs_CXX=no
10122 ;;
10123 ghcx)
10124 # Green Hills C++ Compiler
10125 # FIXME: insert proper C++ library support
10126 ld_shlibs_CXX=no
10127 ;;
10128 *)
10129 # FIXME: insert proper C++ library support
10130 ld_shlibs_CXX=no
10131 ;;
10132 esac
10133 ;;
10134 freebsd12*)
10135 # C++ shared libraries reported to be fairly broken before switch to ELF
10136 ld_shlibs_CXX=no
10137 ;;
10138 freebsd-elf*)
10139 archive_cmds_need_lc_CXX=no
10140 ;;
10141 freebsd* | kfreebsd*-gnu)
10142 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10143 # conventions
10144 ld_shlibs_CXX=yes
10145 ;;
10146 gnu*)
10147 ;;
10148 hpux9*)
10149 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10150 hardcode_libdir_separator_CXX=:
10151 export_dynamic_flag_spec_CXX='${wl}-E'
10152 hardcode_direct_CXX=yes
10153 hardcode_minus_L_CXX=yes # Not in the search PATH,
10154 # but as the default
10155 # location of the library.
10156
10157 case $cc_basename in
10158 CC)
10159 # FIXME: insert proper C++ library support
10160 ld_shlibs_CXX=no
10161 ;;
10162 aCC)
10163 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'
10164 # Commands to make compiler produce verbose output that lists
10165 # what "hidden" libraries, object files and flags are used when
10166 # linking a shared library.
10167 #
10168 # There doesn't appear to be a way to prevent this compiler from
10169 # explicitly linking system object files so we need to strip them
10170 # from the output so that they don't get included in the library
10171 # dependencies.
10172 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'
10173 ;;
10174 *)
10175 if test "$GXX" = yes; then
10176 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'
10177 else
10178 # FIXME: insert proper C++ library support
10179 ld_shlibs_CXX=no
10180 fi
10181 ;;
10182 esac
10183 ;;
10184 hpux10*|hpux11*)
10185 if test $with_gnu_ld = no; then
10186 case "$host_cpu" in
10187 hppa*64*)
10188 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10189 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10190 hardcode_libdir_separator_CXX=:
10191 ;;
10192 ia64*)
10193 hardcode_libdir_flag_spec_CXX='-L$libdir'
10194 ;;
10195 *)
10196 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10197 hardcode_libdir_separator_CXX=:
10198 export_dynamic_flag_spec_CXX='${wl}-E'
10199 ;;
10200 esac
10201 fi
10202 case "$host_cpu" in
10203 hppa*64*)
10204 hardcode_direct_CXX=no
10205 hardcode_shlibpath_var_CXX=no
10206 ;;
10207 ia64*)
10208 hardcode_direct_CXX=no
10209 hardcode_shlibpath_var_CXX=no
10210 hardcode_minus_L_CXX=yes # Not in the search PATH,
10211 # but as the default
10212 # location of the library.
10213 ;;
10214 *)
10215 hardcode_direct_CXX=yes
10216 hardcode_minus_L_CXX=yes # Not in the search PATH,
10217 # but as the default
10218 # location of the library.
10219 ;;
10220 esac
10221
10222 case $cc_basename in
10223 CC)
10224 # FIXME: insert proper C++ library support
10225 ld_shlibs_CXX=no
10226 ;;
10227 aCC)
10228 case "$host_cpu" in
10229 hppa*64*|ia64*)
10230 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10231 ;;
10232 *)
10233 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10234 ;;
10235 esac
10236 # Commands to make compiler produce verbose output that lists
10237 # what "hidden" libraries, object files and flags are used when
10238 # linking a shared library.
10239 #
10240 # There doesn't appear to be a way to prevent this compiler from
10241 # explicitly linking system object files so we need to strip them
10242 # from the output so that they don't get included in the library
10243 # dependencies.
10244 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'
10245 ;;
10246 *)
10247 if test "$GXX" = yes; then
10248 if test $with_gnu_ld = no; then
10249 case "$host_cpu" in
10250 ia64*|hppa*64*)
10251 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10252 ;;
10253 *)
10254 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'
10255 ;;
10256 esac
10257 fi
10258 else
10259 # FIXME: insert proper C++ library support
10260 ld_shlibs_CXX=no
10261 fi
10262 ;;
10263 esac
10264 ;;
10265 irix5* | irix6*)
10266 case $cc_basename in
10267 CC)
10268 # SGI C++
10269 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'
10270
10271 # Archives containing C++ object files must be created using
10272 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10273 # necessary to make sure instantiated templates are included
10274 # in the archive.
10275 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10276 ;;
10277 *)
10278 if test "$GXX" = yes; then
10279 if test "$with_gnu_ld" = no; then
10280 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'
10281 else
10282 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10283 fi
10284 fi
10285 link_all_deplibs_CXX=yes
10286 ;;
10287 esac
10288 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10289 hardcode_libdir_separator_CXX=:
10290 ;;
10291 linux*)
10292 case $cc_basename in
10293 KCC)
10294 # Kuck and Associates, Inc. (KAI) C++ Compiler
10295
10296 # KCC will only create a shared library if the output file
10297 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10298 # to its proper name (with version) after linking.
10299 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'
10300 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'
10301 # Commands to make compiler produce verbose output that lists
10302 # what "hidden" libraries, object files and flags are used when
10303 # linking a shared library.
10304 #
10305 # There doesn't appear to be a way to prevent this compiler from
10306 # explicitly linking system object files so we need to strip them
10307 # from the output so that they don't get included in the library
10308 # dependencies.
10309 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'
10310
10311 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10312 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10313
10314 # Archives containing C++ object files must be created using
10315 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10316 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10317 ;;
10318 icpc)
10319 # Intel C++
10320 with_gnu_ld=yes
10321 archive_cmds_need_lc_CXX=no
10322 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10323 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'
10324 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10325 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10326 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10327 ;;
10328 cxx)
10329 # Compaq C++
10330 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10331 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10332
10333 runpath_var=LD_RUN_PATH
10334 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10335 hardcode_libdir_separator_CXX=:
10336
10337 # Commands to make compiler produce verbose output that lists
10338 # what "hidden" libraries, object files and flags are used when
10339 # linking a shared library.
10340 #
10341 # There doesn't appear to be a way to prevent this compiler from
10342 # explicitly linking system object files so we need to strip them
10343 # from the output so that they don't get included in the library
10344 # dependencies.
10345 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'
10346 ;;
10347 esac
10348 ;;
10349 lynxos*)
10350 # FIXME: insert proper C++ library support
10351 ld_shlibs_CXX=no
10352 ;;
10353 m88k*)
10354 # FIXME: insert proper C++ library support
10355 ld_shlibs_CXX=no
10356 ;;
10357 mvs*)
10358 case $cc_basename in
10359 cxx)
10360 # FIXME: insert proper C++ library support
10361 ld_shlibs_CXX=no
10362 ;;
10363 *)
10364 # FIXME: insert proper C++ library support
10365 ld_shlibs_CXX=no
10366 ;;
10367 esac
10368 ;;
10369 netbsd*)
10370 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10371 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10372 wlarc=
10373 hardcode_libdir_flag_spec_CXX='-R$libdir'
10374 hardcode_direct_CXX=yes
10375 hardcode_shlibpath_var_CXX=no
10376 fi
10377 # Workaround some broken pre-1.5 toolchains
10378 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10379 ;;
10380 osf3*)
10381 case $cc_basename in
10382 KCC)
10383 # Kuck and Associates, Inc. (KAI) C++ Compiler
10384
10385 # KCC will only create a shared library if the output file
10386 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10387 # to its proper name (with version) after linking.
10388 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'
10389
10390 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10391 hardcode_libdir_separator_CXX=:
10392
10393 # Archives containing C++ object files must be created using
10394 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10395 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10396
10397 ;;
10398 RCC)
10399 # Rational C++ 2.4.1
10400 # FIXME: insert proper C++ library support
10401 ld_shlibs_CXX=no
10402 ;;
10403 cxx)
10404 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10405 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'
10406
10407 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10408 hardcode_libdir_separator_CXX=:
10409
10410 # Commands to make compiler produce verbose output that lists
10411 # what "hidden" libraries, object files and flags are used when
10412 # linking a shared library.
10413 #
10414 # There doesn't appear to be a way to prevent this compiler from
10415 # explicitly linking system object files so we need to strip them
10416 # from the output so that they don't get included in the library
10417 # dependencies.
10418 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'
10419 ;;
10420 *)
10421 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10422 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10423 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'
10424
10425 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10426 hardcode_libdir_separator_CXX=:
10427
10428 # Commands to make compiler produce verbose output that lists
10429 # what "hidden" libraries, object files and flags are used when
10430 # linking a shared library.
10431 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10432
10433 else
10434 # FIXME: insert proper C++ library support
10435 ld_shlibs_CXX=no
10436 fi
10437 ;;
10438 esac
10439 ;;
10440 osf4* | osf5*)
10441 case $cc_basename in
10442 KCC)
10443 # Kuck and Associates, Inc. (KAI) C++ Compiler
10444
10445 # KCC will only create a shared library if the output file
10446 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10447 # to its proper name (with version) after linking.
10448 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'
10449
10450 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10451 hardcode_libdir_separator_CXX=:
10452
10453 # Archives containing C++ object files must be created using
10454 # the KAI C++ compiler.
10455 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10456 ;;
10457 RCC)
10458 # Rational C++ 2.4.1
10459 # FIXME: insert proper C++ library support
10460 ld_shlibs_CXX=no
10461 ;;
10462 cxx)
10463 allow_undefined_flag_CXX=' -expect_unresolved \*'
10464 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'
10465 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10466 echo "-hidden">> $lib.exp~
10467 $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~
10468 $rm $lib.exp'
10469
10470 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10471 hardcode_libdir_separator_CXX=:
10472
10473 # Commands to make compiler produce verbose output that lists
10474 # what "hidden" libraries, object files and flags are used when
10475 # linking a shared library.
10476 #
10477 # There doesn't appear to be a way to prevent this compiler from
10478 # explicitly linking system object files so we need to strip them
10479 # from the output so that they don't get included in the library
10480 # dependencies.
10481 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'
10482 ;;
10483 *)
10484 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10485 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10486 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'
10487
10488 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10489 hardcode_libdir_separator_CXX=:
10490
10491 # Commands to make compiler produce verbose output that lists
10492 # what "hidden" libraries, object files and flags are used when
10493 # linking a shared library.
10494 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10495
10496 else
10497 # FIXME: insert proper C++ library support
10498 ld_shlibs_CXX=no
10499 fi
10500 ;;
10501 esac
10502 ;;
10503 psos*)
10504 # FIXME: insert proper C++ library support
10505 ld_shlibs_CXX=no
10506 ;;
10507 sco*)
10508 archive_cmds_need_lc_CXX=no
10509 case $cc_basename in
10510 CC)
10511 # FIXME: insert proper C++ library support
10512 ld_shlibs_CXX=no
10513 ;;
10514 *)
10515 # FIXME: insert proper C++ library support
10516 ld_shlibs_CXX=no
10517 ;;
10518 esac
10519 ;;
10520 sunos4*)
10521 case $cc_basename in
10522 CC)
10523 # Sun C++ 4.x
10524 # FIXME: insert proper C++ library support
10525 ld_shlibs_CXX=no
10526 ;;
10527 lcc)
10528 # Lucid
10529 # FIXME: insert proper C++ library support
10530 ld_shlibs_CXX=no
10531 ;;
10532 *)
10533 # FIXME: insert proper C++ library support
10534 ld_shlibs_CXX=no
10535 ;;
10536 esac
10537 ;;
10538 solaris*)
10539 case $cc_basename in
10540 CC)
10541 # Sun C++ 4.2, 5.x and Centerline C++
10542 no_undefined_flag_CXX=' -zdefs'
10543 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10544 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10545 $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'
10546
10547 hardcode_libdir_flag_spec_CXX='-R$libdir'
10548 hardcode_shlibpath_var_CXX=no
10549 case $host_os in
10550 solaris2.0-5 | solaris2.0-5.*) ;;
10551 *)
10552 # The C++ compiler is used as linker so we must use $wl
10553 # flag to pass the commands to the underlying system
10554 # linker.
10555 # Supported since Solaris 2.6 (maybe 2.5.1?)
10556 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10557 ;;
10558 esac
10559 link_all_deplibs_CXX=yes
10560
10561 # Commands to make compiler produce verbose output that lists
10562 # what "hidden" libraries, object files and flags are used when
10563 # linking a shared library.
10564 #
10565 # There doesn't appear to be a way to prevent this compiler from
10566 # explicitly linking system object files so we need to strip them
10567 # from the output so that they don't get included in the library
10568 # dependencies.
10569 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'
10570
10571 # Archives containing C++ object files must be created using
10572 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10573 # necessary to make sure instantiated templates are included
10574 # in the archive.
10575 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10576 ;;
10577 gcx)
10578 # Green Hills C++ Compiler
10579 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10580
10581 # The C++ compiler must be used to create the archive.
10582 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10583 ;;
10584 *)
10585 # GNU C++ compiler with Solaris linker
10586 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10587 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10588 if $CC --version | grep -v '^2\.7' > /dev/null; then
10589 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10590 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10591 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10592
10593 # Commands to make compiler produce verbose output that lists
10594 # what "hidden" libraries, object files and flags are used when
10595 # linking a shared library.
10596 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10597 else
10598 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10599 # platform.
10600 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10601 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10602 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10603
10604 # Commands to make compiler produce verbose output that lists
10605 # what "hidden" libraries, object files and flags are used when
10606 # linking a shared library.
10607 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10608 fi
10609
10610 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10611 fi
10612 ;;
10613 esac
10614 ;;
10615 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10616 archive_cmds_need_lc_CXX=no
10617 ;;
10618 tandem*)
10619 case $cc_basename in
10620 NCC)
10621 # NonStop-UX NCC 3.20
10622 # FIXME: insert proper C++ library support
10623 ld_shlibs_CXX=no
10624 ;;
10625 *)
10626 # FIXME: insert proper C++ library support
10627 ld_shlibs_CXX=no
10628 ;;
10629 esac
10630 ;;
10631 vxworks*)
10632 # FIXME: insert proper C++ library support
10633 ld_shlibs_CXX=no
10634 ;;
10635 *)
10636 # FIXME: insert proper C++ library support
10637 ld_shlibs_CXX=no
10638 ;;
10639esac
10640echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10641echo "${ECHO_T}$ld_shlibs_CXX" >&6
10642test "$ld_shlibs_CXX" = no && can_build_shared=no
10643
10644GCC_CXX="$GXX"
10645LD_CXX="$LD"
10646
10647
10648cat > conftest.$ac_ext <<EOF
10649class Foo
10650{
10651public:
10652 Foo (void) { a = 0; }
10653private:
10654 int a;
10655};
10656EOF
10657
10658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10659 (eval $ac_compile) 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; then
10663 # Parse the compiler output and extract the necessary
10664 # objects, libraries and library flags.
10665
10666 # Sentinel used to keep track of whether or not we are before
10667 # the conftest object file.
10668 pre_test_object_deps_done=no
10669
10670 # The `*' in the case matches for architectures that use `case' in
10671 # $output_verbose_cmd can trigger glob expansion during the loop
10672 # eval without this substitution.
10673 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10674
10675 for p in `eval $output_verbose_link_cmd`; do
10676 case $p in
10677
10678 -L* | -R* | -l*)
10679 # Some compilers place space between "-{L,R}" and the path.
10680 # Remove the space.
10681 if test $p = "-L" \
10682 || test $p = "-R"; then
10683 prev=$p
10684 continue
10685 else
10686 prev=
10687 fi
10688
10689 if test "$pre_test_object_deps_done" = no; then
10690 case $p in
10691 -L* | -R*)
10692 # Internal compiler library paths should come after those
10693 # provided the user. The postdeps already come after the
10694 # user supplied libs so there is no need to process them.
10695 if test -z "$compiler_lib_search_path_CXX"; then
10696 compiler_lib_search_path_CXX="${prev}${p}"
10697 else
10698 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10699 fi
10700 ;;
10701 # The "-l" case would never come before the object being
10702 # linked, so don't bother handling this case.
10703 esac
10704 else
10705 if test -z "$postdeps_CXX"; then
10706 postdeps_CXX="${prev}${p}"
10707 else
10708 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10709 fi
10710 fi
10711 ;;
10712
10713 *.$objext)
10714 # This assumes that the test object file only shows up
10715 # once in the compiler output.
10716 if test "$p" = "conftest.$objext"; then
10717 pre_test_object_deps_done=yes
10718 continue
10719 fi
10720
10721 if test "$pre_test_object_deps_done" = no; then
10722 if test -z "$predep_objects_CXX"; then
10723 predep_objects_CXX="$p"
10724 else
10725 predep_objects_CXX="$predep_objects_CXX $p"
10726 fi
10727 else
10728 if test -z "$postdep_objects_CXX"; then
10729 postdep_objects_CXX="$p"
10730 else
10731 postdep_objects_CXX="$postdep_objects_CXX $p"
10732 fi
10733 fi
10734 ;;
10735
10736 *) ;; # Ignore the rest.
10737
10738 esac
10739 done
10740
10741 # Clean up.
10742 rm -f a.out a.exe
10743else
10744 echo "libtool.m4: error: problem compiling CXX test program"
10745fi
10746
10747$rm -f confest.$objext
10748
10749case " $postdeps_CXX " in
10750*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10751esac
10752
10753lt_prog_compiler_wl_CXX=
10754lt_prog_compiler_pic_CXX=
10755lt_prog_compiler_static_CXX=
10756
10757echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10758echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10759
10760 # C++ specific cases for pic, static, wl, etc.
10761 if test "$GXX" = yes; then
10762 lt_prog_compiler_wl_CXX='-Wl,'
10763 lt_prog_compiler_static_CXX='-static'
10764
10765 case $host_os in
10766 aix*)
10767 # All AIX code is PIC.
10768 if test "$host_cpu" = ia64; then
10769 # AIX 5 now supports IA64 processor
10770 lt_prog_compiler_static_CXX='-Bstatic'
10771 fi
10772 ;;
10773 amigaos*)
10774 # FIXME: we need at least 68020 code to build shared libraries, but
10775 # adding the `-m68020' flag to GCC prevents building anything better,
10776 # like `-m68040'.
10777 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10778 ;;
10779 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10780 # PIC is the default for these OSes.
10781 ;;
10782 mingw* | os2* | pw32*)
10783 # This hack is so that the source file can tell whether it is being
10784 # built for inclusion in a dll (and should export symbols for example).
10785 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10786 ;;
10787 darwin* | rhapsody*)
10788 # PIC is the default on this platform
10789 # Common symbols not allowed in MH_DYLIB files
10790 lt_prog_compiler_pic_CXX='-fno-common'
10791 ;;
10792 *djgpp*)
10793 # DJGPP does not support shared libraries at all
10794 lt_prog_compiler_pic_CXX=
10795 ;;
10796 sysv4*MP*)
10797 if test -d /usr/nec; then
10798 lt_prog_compiler_pic_CXX=-Kconform_pic
10799 fi
10800 ;;
10801 hpux*)
10802 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10803 # not for PA HP-UX.
10804 case "$host_cpu" in
10805 hppa*64*|ia64*)
10806 ;;
10807 *)
10808 lt_prog_compiler_pic_CXX='-fPIC'
10809 ;;
10810 esac
10811 ;;
10812 *)
10813 lt_prog_compiler_pic_CXX='-fPIC'
10814 ;;
10815 esac
10816 else
10817 case $host_os in
10818 aix4* | aix5*)
10819 # All AIX code is PIC.
10820 if test "$host_cpu" = ia64; then
10821 # AIX 5 now supports IA64 processor
10822 lt_prog_compiler_static_CXX='-Bstatic'
10823 else
10824 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10825 fi
10826 ;;
10827 chorus*)
10828 case $cc_basename in
10829 cxch68)
10830 # Green Hills C++ Compiler
10831 # _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"
10832 ;;
10833 esac
10834 ;;
10835 dgux*)
10836 case $cc_basename in
10837 ec++)
10838 lt_prog_compiler_pic_CXX='-KPIC'
10839 ;;
10840 ghcx)
10841 # Green Hills C++ Compiler
10842 lt_prog_compiler_pic_CXX='-pic'
10843 ;;
10844 *)
10845 ;;
10846 esac
10847 ;;
10848 freebsd* | kfreebsd*-gnu)
10849 # FreeBSD uses GNU C++
10850 ;;
10851 hpux9* | hpux10* | hpux11*)
10852 case $cc_basename in
10853 CC)
10854 lt_prog_compiler_wl_CXX='-Wl,'
10855 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10856 if test "$host_cpu" != ia64; then
10857 lt_prog_compiler_pic_CXX='+Z'
10858 fi
10859 ;;
10860 aCC)
10861 lt_prog_compiler_wl_CXX='-Wl,'
10862 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10863 case "$host_cpu" in
10864 hppa*64*|ia64*)
10865 # +Z the default
10866 ;;
10867 *)
10868 lt_prog_compiler_pic_CXX='+Z'
10869 ;;
10870 esac
10871 ;;
10872 *)
10873 ;;
10874 esac
10875 ;;
10876 irix5* | irix6* | nonstopux*)
10877 case $cc_basename in
10878 CC)
10879 lt_prog_compiler_wl_CXX='-Wl,'
10880 lt_prog_compiler_static_CXX='-non_shared'
10881 # CC pic flag -KPIC is the default.
10882 ;;
10883 *)
10884 ;;
10885 esac
10886 ;;
10887 linux*)
10888 case $cc_basename in
10889 KCC)
10890 # KAI C++ Compiler
10891 lt_prog_compiler_wl_CXX='--backend -Wl,'
10892 lt_prog_compiler_pic_CXX='-fPIC'
10893 ;;
10894 icpc)
10895 # Intel C++
10896 lt_prog_compiler_wl_CXX='-Wl,'
10897 lt_prog_compiler_pic_CXX='-KPIC'
10898 lt_prog_compiler_static_CXX='-static'
10899 ;;
10900 cxx)
10901 # Compaq C++
10902 # Make sure the PIC flag is empty. It appears that all Alpha
10903 # Linux and Compaq Tru64 Unix objects are PIC.
10904 lt_prog_compiler_pic_CXX=
10905 lt_prog_compiler_static_CXX='-non_shared'
10906 ;;
10907 *)
10908 ;;
10909 esac
10910 ;;
10911 lynxos*)
10912 ;;
10913 m88k*)
10914 ;;
10915 mvs*)
10916 case $cc_basename in
10917 cxx)
10918 lt_prog_compiler_pic_CXX='-W c,exportall'
10919 ;;
10920 *)
10921 ;;
10922 esac
10923 ;;
10924 netbsd*)
10925 ;;
10926 osf3* | osf4* | osf5*)
10927 case $cc_basename in
10928 KCC)
10929 lt_prog_compiler_wl_CXX='--backend -Wl,'
10930 ;;
10931 RCC)
10932 # Rational C++ 2.4.1
10933 lt_prog_compiler_pic_CXX='-pic'
10934 ;;
10935 cxx)
10936 # Digital/Compaq C++
10937 lt_prog_compiler_wl_CXX='-Wl,'
10938 # Make sure the PIC flag is empty. It appears that all Alpha
10939 # Linux and Compaq Tru64 Unix objects are PIC.
10940 lt_prog_compiler_pic_CXX=
10941 lt_prog_compiler_static_CXX='-non_shared'
10942 ;;
10943 *)
10944 ;;
10945 esac
10946 ;;
10947 psos*)
10948 ;;
10949 sco*)
10950 case $cc_basename in
10951 CC)
10952 lt_prog_compiler_pic_CXX='-fPIC'
10953 ;;
10954 *)
10955 ;;
10956 esac
10957 ;;
10958 solaris*)
10959 case $cc_basename in
10960 CC)
10961 # Sun C++ 4.2, 5.x and Centerline C++
10962 lt_prog_compiler_pic_CXX='-KPIC'
10963 lt_prog_compiler_static_CXX='-Bstatic'
10964 lt_prog_compiler_wl_CXX='-Qoption ld '
10965 ;;
10966 gcx)
10967 # Green Hills C++ Compiler
10968 lt_prog_compiler_pic_CXX='-PIC'
10969 ;;
10970 *)
10971 ;;
10972 esac
10973 ;;
10974 sunos4*)
10975 case $cc_basename in
10976 CC)
10977 # Sun C++ 4.x
10978 lt_prog_compiler_pic_CXX='-pic'
10979 lt_prog_compiler_static_CXX='-Bstatic'
10980 ;;
10981 lcc)
10982 # Lucid
10983 lt_prog_compiler_pic_CXX='-pic'
10984 ;;
10985 *)
10986 ;;
10987 esac
10988 ;;
10989 tandem*)
10990 case $cc_basename in
10991 NCC)
10992 # NonStop-UX NCC 3.20
10993 lt_prog_compiler_pic_CXX='-KPIC'
10994 ;;
10995 *)
10996 ;;
10997 esac
10998 ;;
10999 unixware*)
11000 ;;
11001 vxworks*)
11002 ;;
11003 *)
11004 lt_prog_compiler_can_build_shared_CXX=no
11005 ;;
11006 esac
11007 fi
11008
11009echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11010echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11011
11012#
11013# Check to make sure the PIC flag actually works.
11014#
11015if test -n "$lt_prog_compiler_pic_CXX"; then
11016
11017echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11018echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11019if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11021else
11022 lt_prog_compiler_pic_works_CXX=no
11023 ac_outfile=conftest.$ac_objext
11024 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11025 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11026 # Insert the option either (1) after the last *FLAGS variable, or
11027 # (2) before a word containing "conftest.", or (3) at the end.
11028 # Note that $ac_compile itself does not contain backslashes and begins
11029 # with a dollar sign (not a hyphen), so the echo should work correctly.
11030 # The option is referenced via a variable to avoid confusing sed.
11031 lt_compile=`echo "$ac_compile" | $SED \
11032 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11034 -e 's:$: $lt_compiler_flag:'`
11035 (eval echo "\"\$as_me:11035: $lt_compile\"" >&5)
11036 (eval "$lt_compile" 2>conftest.err)
11037 ac_status=$?
11038 cat conftest.err >&5
11039 echo "$as_me:11039: \$? = $ac_status" >&5
11040 if (exit $ac_status) && test -s "$ac_outfile"; then
11041 # The compiler can only warn and ignore the option if not recognized
11042 # So say no if there are warnings
11043 if test ! -s conftest.err; then
11044 lt_prog_compiler_pic_works_CXX=yes
11045 fi
11046 fi
11047 $rm conftest*
11048
11049fi
11050echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11051echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11052
11053if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11054 case $lt_prog_compiler_pic_CXX in
11055 "" | " "*) ;;
11056 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11057 esac
11058else
11059 lt_prog_compiler_pic_CXX=
11060 lt_prog_compiler_can_build_shared_CXX=no
11061fi
11062
11063fi
11064case "$host_os" in
11065 # For platforms which do not support PIC, -DPIC is meaningless:
11066 *djgpp*)
11067 lt_prog_compiler_pic_CXX=
11068 ;;
11069 *)
11070 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11071 ;;
11072esac
11073
11074echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11075echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11076if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11078else
11079 lt_cv_prog_compiler_c_o_CXX=no
11080 $rm -r conftest 2>/dev/null
11081 mkdir conftest
11082 cd conftest
11083 mkdir out
11084 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11085
11086 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11087 # that will create temporary files in the current directory regardless of
11088 # the output directory. Thus, making CWD read-only will cause this test
11089 # to fail, enabling locking or at least warning the user not to do parallel
11090 # builds.
11091 chmod -w .
11092
11093 lt_compiler_flag="-o out/conftest2.$ac_objext"
11094 # Insert the option either (1) after the last *FLAGS variable, or
11095 # (2) before a word containing "conftest.", or (3) at the end.
11096 # Note that $ac_compile itself does not contain backslashes and begins
11097 # with a dollar sign (not a hyphen), so the echo should work correctly.
11098 lt_compile=`echo "$ac_compile" | $SED \
11099 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11101 -e 's:$: $lt_compiler_flag:'`
11102 (eval echo "\"\$as_me:11102: $lt_compile\"" >&5)
11103 (eval "$lt_compile" 2>out/conftest.err)
11104 ac_status=$?
11105 cat out/conftest.err >&5
11106 echo "$as_me:11106: \$? = $ac_status" >&5
11107 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11108 then
11109 # The compiler can only warn and ignore the option if not recognized
11110 # So say no if there are warnings
11111 if test ! -s out/conftest.err; then
11112 lt_cv_prog_compiler_c_o_CXX=yes
11113 fi
11114 fi
11115 chmod u+w .
11116 $rm conftest*
11117 # SGI C++ compiler will create directory out/ii_files/ for
11118 # template instantiation
11119 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11120 $rm out/* && rmdir out
11121 cd ..
11122 rmdir conftest
11123 $rm conftest*
11124
11125fi
11126echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11127echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11128
11129
11130hard_links="nottested"
11131if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11132 # do not overwrite the value of need_locks provided by the user
11133 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11134echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11135 hard_links=yes
11136 $rm conftest*
11137 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11138 touch conftest.a
11139 ln conftest.a conftest.b 2>&5 || hard_links=no
11140 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11141 echo "$as_me:$LINENO: result: $hard_links" >&5
11142echo "${ECHO_T}$hard_links" >&6
11143 if test "$hard_links" = no; then
11144 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11145echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11146 need_locks=warn
11147 fi
11148else
11149 need_locks=no
11150fi
11151
11152echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11153echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11154
11155 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11156 case $host_os in
11157 aix4* | aix5*)
11158 # If we're using GNU nm, then we don't want the "-C" option.
11159 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11160 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11161 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'
11162 else
11163 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'
11164 fi
11165 ;;
11166 pw32*)
11167 export_symbols_cmds_CXX="$ltdll_cmds"
11168 ;;
11169 cygwin* | mingw*)
11170 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11171 ;;
11172 *)
11173 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11174 ;;
11175 esac
11176
11177echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11178echo "${ECHO_T}$ld_shlibs_CXX" >&6
11179test "$ld_shlibs_CXX" = no && can_build_shared=no
11180
11181variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11182if test "$GCC" = yes; then
11183 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11184fi
11185
11186#
11187# Do we need to explicitly link libc?
11188#
11189case "x$archive_cmds_need_lc_CXX" in
11190x|xyes)
11191 # Assume -lc should be added
11192 archive_cmds_need_lc_CXX=yes
11193
11194 if test "$enable_shared" = yes && test "$GCC" = yes; then
11195 case $archive_cmds_CXX in
11196 *'~'*)
11197 # FIXME: we may have to deal with multi-command sequences.
11198 ;;
11199 '$CC '*)
11200 # Test whether the compiler implicitly links with -lc since on some
11201 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11202 # to ld, don't add -lc before -lgcc.
11203 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11204echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11205 $rm conftest*
11206 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11207
11208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11209 (eval $ac_compile) 2>&5
11210 ac_status=$?
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } 2>conftest.err; then
11213 soname=conftest
11214 lib=conftest
11215 libobjs=conftest.$ac_objext
11216 deplibs=
11217 wl=$lt_prog_compiler_wl_CXX
11218 compiler_flags=-v
11219 linker_flags=-v
11220 verstring=
11221 output_objdir=.
11222 libname=conftest
11223 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11224 allow_undefined_flag_CXX=
11225 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11226 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }
11230 then
11231 archive_cmds_need_lc_CXX=no
11232 else
11233 archive_cmds_need_lc_CXX=yes
11234 fi
11235 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11236 else
11237 cat conftest.err 1>&5
11238 fi
11239 $rm conftest*
11240 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11241echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11242 ;;
11243 esac
11244 fi
11245 ;;
11246esac
11247
11248echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11249echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11250library_names_spec=
11251libname_spec='lib$name'
11252soname_spec=
11253shrext=".so"
11254postinstall_cmds=
11255postuninstall_cmds=
11256finish_cmds=
11257finish_eval=
11258shlibpath_var=
11259shlibpath_overrides_runpath=unknown
11260version_type=none
11261dynamic_linker="$host_os ld.so"
11262sys_lib_dlsearch_path_spec="/lib /usr/lib"
11263if test "$GCC" = yes; then
11264 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11265 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11266 # if the path contains ";" then we assume it to be the separator
11267 # otherwise default to the standard path separator (i.e. ":") - it is
11268 # assumed that no part of a normal pathname contains ";" but that should
11269 # okay in the real world where ";" in dirpaths is itself problematic.
11270 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11271 else
11272 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11273 fi
11274else
11275 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11276fi
11277need_lib_prefix=unknown
11278hardcode_into_libs=no
11279
11280# when you set need_version to no, make sure it does not cause -set_version
11281# flags to be left without arguments
11282need_version=unknown
11283
11284case $host_os in
11285aix3*)
11286 version_type=linux
11287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11288 shlibpath_var=LIBPATH
11289
11290 # AIX 3 has no versioning support, so we append a major version to the name.
11291 soname_spec='${libname}${release}${shared_ext}$major'
11292 ;;
11293
11294aix4* | aix5*)
11295 version_type=linux
11296 need_lib_prefix=no
11297 need_version=no
11298 hardcode_into_libs=yes
11299 if test "$host_cpu" = ia64; then
11300 # AIX 5 supports IA64
11301 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11302 shlibpath_var=LD_LIBRARY_PATH
11303 else
11304 # With GCC up to 2.95.x, collect2 would create an import file
11305 # for dependence libraries. The import file would start with
11306 # the line `#! .'. This would cause the generated library to
11307 # depend on `.', always an invalid library. This was fixed in
11308 # development snapshots of GCC prior to 3.0.
11309 case $host_os in
11310 aix4 | aix4.[01] | aix4.[01].*)
11311 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11312 echo ' yes '
11313 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11314 :
11315 else
11316 can_build_shared=no
11317 fi
11318 ;;
11319 esac
11320 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11321 # soname into executable. Probably we can add versioning support to
11322 # collect2, so additional links can be useful in future.
11323 if test "$aix_use_runtimelinking" = yes; then
11324 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11325 # instead of lib<name>.a to let people know that these are not
11326 # typical AIX shared libraries.
11327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11328 else
11329 # We preserve .a as extension for shared libraries through AIX4.2
11330 # and later when we are not doing run time linking.
11331 library_names_spec='${libname}${release}.a $libname.a'
11332 soname_spec='${libname}${release}${shared_ext}$major'
11333 fi
11334 shlibpath_var=LIBPATH
11335 fi
11336 ;;
11337
11338amigaos*)
11339 library_names_spec='$libname.ixlibrary $libname.a'
11340 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11341 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'
11342 ;;
11343
11344beos*)
11345 library_names_spec='${libname}${shared_ext}'
11346 dynamic_linker="$host_os ld.so"
11347 shlibpath_var=LIBRARY_PATH
11348 ;;
11349
11350bsdi4*)
11351 version_type=linux
11352 need_version=no
11353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354 soname_spec='${libname}${release}${shared_ext}$major'
11355 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11356 shlibpath_var=LD_LIBRARY_PATH
11357 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11358 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11359 # the default ld.so.conf also contains /usr/contrib/lib and
11360 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11361 # libtool to hard-code these into programs
11362 ;;
11363
11364cygwin* | mingw* | pw32*)
11365 version_type=windows
11366 shrext=".dll"
11367 need_version=no
11368 need_lib_prefix=no
11369
11370 case $GCC,$host_os in
11371 yes,cygwin* | yes,mingw* | yes,pw32*)
11372 library_names_spec='$libname.dll.a'
11373 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11374 postinstall_cmds='base_file=`basename \${file}`~
11375 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11376 dldir=$destdir/`dirname \$dlpath`~
11377 test -d \$dldir || mkdir -p \$dldir~
11378 $install_prog $dir/$dlname \$dldir/$dlname'
11379 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11380 dlpath=$dir/\$dldll~
11381 $rm \$dlpath'
11382 shlibpath_overrides_runpath=yes
11383
11384 case $host_os in
11385 cygwin*)
11386 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11387 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11388 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11389 ;;
11390 mingw*)
11391 # MinGW DLLs use traditional 'lib' prefix
11392 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11393 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11394 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11395 # It is most probably a Windows format PATH printed by
11396 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11397 # path with ; separators, and with drive letters. We can handle the
11398 # drive letters (cygwin fileutils understands them), so leave them,
11399 # especially as we might pass files found there to a mingw objdump,
11400 # which wouldn't understand a cygwinified path. Ahh.
11401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11402 else
11403 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11404 fi
11405 ;;
11406 pw32*)
11407 # pw32 DLLs use 'pw' prefix rather than 'lib'
11408 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11409 ;;
11410 esac
11411 ;;
11412
11413 *)
11414 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11415 ;;
11416 esac
11417 dynamic_linker='Win32 ld.exe'
11418 # FIXME: first we should search . and the directory the executable is in
11419 shlibpath_var=PATH
11420 ;;
11421
11422darwin* | rhapsody*)
11423 dynamic_linker="$host_os dyld"
11424 version_type=darwin
11425 need_lib_prefix=no
11426 need_version=no
11427 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11428 soname_spec='${libname}${release}${major}$shared_ext'
11429 shlibpath_overrides_runpath=yes
11430 shlibpath_var=DYLD_LIBRARY_PATH
11431 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11432 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11433 if test "$GCC" = yes; then
11434 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"`
11435 else
11436 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11437 fi
11438 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11439 ;;
11440
11441dgux*)
11442 version_type=linux
11443 need_lib_prefix=no
11444 need_version=no
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11446 soname_spec='${libname}${release}${shared_ext}$major'
11447 shlibpath_var=LD_LIBRARY_PATH
11448 ;;
11449
11450freebsd1*)
11451 dynamic_linker=no
11452 ;;
11453
11454kfreebsd*-gnu)
11455 version_type=linux
11456 need_lib_prefix=no
11457 need_version=no
11458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11459 soname_spec='${libname}${release}${shared_ext}$major'
11460 shlibpath_var=LD_LIBRARY_PATH
11461 shlibpath_overrides_runpath=no
11462 hardcode_into_libs=yes
11463 dynamic_linker='GNU ld.so'
11464 ;;
11465
11466freebsd*)
11467 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11468 version_type=freebsd-$objformat
11469 case $version_type in
11470 freebsd-elf*)
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11472 need_version=no
11473 need_lib_prefix=no
11474 ;;
11475 freebsd-*)
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11477 need_version=yes
11478 ;;
11479 esac
11480 shlibpath_var=LD_LIBRARY_PATH
11481 case $host_os in
11482 freebsd2*)
11483 shlibpath_overrides_runpath=yes
11484 ;;
11485 freebsd3.01* | freebsdelf3.01*)
11486 shlibpath_overrides_runpath=yes
11487 hardcode_into_libs=yes
11488 ;;
11489 *) # from 3.2 on
11490 shlibpath_overrides_runpath=no
11491 hardcode_into_libs=yes
11492 ;;
11493 esac
11494 ;;
11495
11496gnu*)
11497 version_type=linux
11498 need_lib_prefix=no
11499 need_version=no
11500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11501 soname_spec='${libname}${release}${shared_ext}$major'
11502 shlibpath_var=LD_LIBRARY_PATH
11503 hardcode_into_libs=yes
11504 ;;
11505
11506hpux9* | hpux10* | hpux11*)
11507 # Give a soname corresponding to the major version so that dld.sl refuses to
11508 # link against other versions.
11509 version_type=sunos
11510 need_lib_prefix=no
11511 need_version=no
11512 case "$host_cpu" in
11513 ia64*)
11514 shrext='.so'
11515 hardcode_into_libs=yes
11516 dynamic_linker="$host_os dld.so"
11517 shlibpath_var=LD_LIBRARY_PATH
11518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11520 soname_spec='${libname}${release}${shared_ext}$major'
11521 if test "X$HPUX_IA64_MODE" = X32; then
11522 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11523 else
11524 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11525 fi
11526 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11527 ;;
11528 hppa*64*)
11529 shrext='.sl'
11530 hardcode_into_libs=yes
11531 dynamic_linker="$host_os dld.sl"
11532 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11533 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11535 soname_spec='${libname}${release}${shared_ext}$major'
11536 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11538 ;;
11539 *)
11540 shrext='.sl'
11541 dynamic_linker="$host_os dld.sl"
11542 shlibpath_var=SHLIB_PATH
11543 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11545 soname_spec='${libname}${release}${shared_ext}$major'
11546 ;;
11547 esac
11548 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11549 postinstall_cmds='chmod 555 $lib'
11550 ;;
11551
11552irix5* | irix6* | nonstopux*)
11553 case $host_os in
11554 nonstopux*) version_type=nonstopux ;;
11555 *)
11556 if test "$lt_cv_prog_gnu_ld" = yes; then
11557 version_type=linux
11558 else
11559 version_type=irix
11560 fi ;;
11561 esac
11562 need_lib_prefix=no
11563 need_version=no
11564 soname_spec='${libname}${release}${shared_ext}$major'
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11566 case $host_os in
11567 irix5* | nonstopux*)
11568 libsuff= shlibsuff=
11569 ;;
11570 *)
11571 case $LD in # libtool.m4 will add one of these switches to LD
11572 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11573 libsuff= shlibsuff= libmagic=32-bit;;
11574 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11575 libsuff=32 shlibsuff=N32 libmagic=N32;;
11576 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11577 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11578 *) libsuff= shlibsuff= libmagic=never-match;;
11579 esac
11580 ;;
11581 esac
11582 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11583 shlibpath_overrides_runpath=no
11584 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11585 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11586 hardcode_into_libs=yes
11587 ;;
11588
11589# No shared lib support for Linux oldld, aout, or coff.
11590linux*oldld* | linux*aout* | linux*coff*)
11591 dynamic_linker=no
11592 ;;
11593
11594# This must be Linux ELF.
11595linux*)
11596 version_type=linux
11597 need_lib_prefix=no
11598 need_version=no
11599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11600 soname_spec='${libname}${release}${shared_ext}$major'
11601 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11602 shlibpath_var=LD_LIBRARY_PATH
11603 shlibpath_overrides_runpath=no
11604 # This implies no fast_install, which is unacceptable.
11605 # Some rework will be needed to allow for fast_install
11606 # before this can be enabled.
11607 hardcode_into_libs=yes
11608
11609 # /usr/X11R6/lib and /usr/local/lib are common enough...
11610 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
11611
11612 # We used to test for /lib/ld.so.1 and disable shared libraries on
11613 # powerpc, because MkLinux only supported shared libraries with the
11614 # GNU dynamic linker. Since this was broken with cross compilers,
11615 # most powerpc-linux boxes support dynamic linking these days and
11616 # people can always --disable-shared, the test was removed, and we
11617 # assume the GNU/Linux dynamic linker is in use.
11618 dynamic_linker='GNU/Linux ld.so'
11619 ;;
11620
11621knetbsd*-gnu)
11622 version_type=linux
11623 need_lib_prefix=no
11624 need_version=no
11625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11626 soname_spec='${libname}${release}${shared_ext}$major'
11627 shlibpath_var=LD_LIBRARY_PATH
11628 shlibpath_overrides_runpath=no
11629 hardcode_into_libs=yes
11630 dynamic_linker='GNU ld.so'
11631 ;;
11632
11633netbsd*)
11634 version_type=sunos
11635 need_lib_prefix=no
11636 need_version=no
11637 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11640 dynamic_linker='NetBSD (a.out) ld.so'
11641 else
11642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11643 soname_spec='${libname}${release}${shared_ext}$major'
11644 dynamic_linker='NetBSD ld.elf_so'
11645 fi
11646 shlibpath_var=LD_LIBRARY_PATH
11647 shlibpath_overrides_runpath=yes
11648 hardcode_into_libs=yes
11649 ;;
11650
11651newsos6)
11652 version_type=linux
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11654 shlibpath_var=LD_LIBRARY_PATH
11655 shlibpath_overrides_runpath=yes
11656 ;;
11657
11658nto-qnx*)
11659 version_type=linux
11660 need_lib_prefix=no
11661 need_version=no
11662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11663 soname_spec='${libname}${release}${shared_ext}$major'
11664 shlibpath_var=LD_LIBRARY_PATH
11665 shlibpath_overrides_runpath=yes
11666 ;;
11667
11668openbsd*)
11669 version_type=sunos
11670 need_lib_prefix=no
11671 need_version=yes
11672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11674 shlibpath_var=LD_LIBRARY_PATH
11675 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11676 case $host_os in
11677 openbsd2.[89] | openbsd2.[89].*)
11678 shlibpath_overrides_runpath=no
11679 ;;
11680 *)
11681 shlibpath_overrides_runpath=yes
11682 ;;
11683 esac
11684 else
11685 shlibpath_overrides_runpath=yes
11686 fi
11687 ;;
11688
11689os2*)
11690 libname_spec='$name'
11691 shrext=".dll"
11692 need_lib_prefix=no
11693 library_names_spec='$libname${shared_ext} $libname.a'
11694 dynamic_linker='OS/2 ld.exe'
11695 shlibpath_var=LIBPATH
11696 ;;
11697
11698osf3* | osf4* | osf5*)
11699 version_type=osf
11700 need_lib_prefix=no
11701 need_version=no
11702 soname_spec='${libname}${release}${shared_ext}$major'
11703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11704 shlibpath_var=LD_LIBRARY_PATH
11705 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11706 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11707 ;;
11708
11709sco3.2v5*)
11710 version_type=osf
11711 soname_spec='${libname}${release}${shared_ext}$major'
11712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11713 shlibpath_var=LD_LIBRARY_PATH
11714 ;;
11715
11716solaris*)
11717 version_type=linux
11718 need_lib_prefix=no
11719 need_version=no
11720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11721 soname_spec='${libname}${release}${shared_ext}$major'
11722 shlibpath_var=LD_LIBRARY_PATH
11723 shlibpath_overrides_runpath=yes
11724 hardcode_into_libs=yes
11725 # ldd complains unless libraries are executable
11726 postinstall_cmds='chmod +x $lib'
11727 ;;
11728
11729sunos4*)
11730 version_type=sunos
11731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11732 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11733 shlibpath_var=LD_LIBRARY_PATH
11734 shlibpath_overrides_runpath=yes
11735 if test "$with_gnu_ld" = yes; then
11736 need_lib_prefix=no
11737 fi
11738 need_version=yes
11739 ;;
11740
11741sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11742 version_type=linux
11743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11744 soname_spec='${libname}${release}${shared_ext}$major'
11745 shlibpath_var=LD_LIBRARY_PATH
11746 case $host_vendor in
11747 sni)
11748 shlibpath_overrides_runpath=no
11749 need_lib_prefix=no
11750 export_dynamic_flag_spec='${wl}-Blargedynsym'
11751 runpath_var=LD_RUN_PATH
11752 ;;
11753 siemens)
11754 need_lib_prefix=no
11755 ;;
11756 motorola)
11757 need_lib_prefix=no
11758 need_version=no
11759 shlibpath_overrides_runpath=no
11760 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11761 ;;
11762 esac
11763 ;;
11764
11765sysv4*MP*)
11766 if test -d /usr/nec ;then
11767 version_type=linux
11768 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11769 soname_spec='$libname${shared_ext}.$major'
11770 shlibpath_var=LD_LIBRARY_PATH
11771 fi
11772 ;;
11773
11774uts4*)
11775 version_type=linux
11776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11777 soname_spec='${libname}${release}${shared_ext}$major'
11778 shlibpath_var=LD_LIBRARY_PATH
11779 ;;
11780
11781*)
11782 dynamic_linker=no
11783 ;;
11784esac
11785echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11786echo "${ECHO_T}$dynamic_linker" >&6
11787test "$dynamic_linker" = no && can_build_shared=no
11788
11789echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11790echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11791hardcode_action_CXX=
11792if test -n "$hardcode_libdir_flag_spec_CXX" || \
11793 test -n "$runpath_var CXX" || \
11794 test "X$hardcode_automatic_CXX"="Xyes" ; then
11795
11796 # We can hardcode non-existant directories.
11797 if test "$hardcode_direct_CXX" != no &&
11798 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11799 # have to relink, otherwise we might link with an installed library
11800 # when we should be linking with a yet-to-be-installed one
11801 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11802 test "$hardcode_minus_L_CXX" != no; then
11803 # Linking always hardcodes the temporary library directory.
11804 hardcode_action_CXX=relink
11805 else
11806 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11807 hardcode_action_CXX=immediate
11808 fi
11809else
11810 # We cannot hardcode anything, or else we can only hardcode existing
11811 # directories.
11812 hardcode_action_CXX=unsupported
11813fi
11814echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11815echo "${ECHO_T}$hardcode_action_CXX" >&6
11816
11817if test "$hardcode_action_CXX" = relink; then
11818 # Fast installation is not supported
11819 enable_fast_install=no
11820elif test "$shlibpath_overrides_runpath" = yes ||
11821 test "$enable_shared" = no; then
11822 # Fast installation is not necessary
11823 enable_fast_install=needless
11824fi
11825
11826striplib=
11827old_striplib=
11828echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11829echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11830if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11831 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11832 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11833 echo "$as_me:$LINENO: result: yes" >&5
11834echo "${ECHO_T}yes" >&6
11835else
11836# FIXME - insert some real tests, host_os isn't really good enough
11837 case $host_os in
11838 darwin*)
11839 if test -n "$STRIP" ; then
11840 striplib="$STRIP -x"
11841 echo "$as_me:$LINENO: result: yes" >&5
11842echo "${ECHO_T}yes" >&6
11843 else
11844 echo "$as_me:$LINENO: result: no" >&5
11845echo "${ECHO_T}no" >&6
11846fi
11847 ;;
11848 *)
11849 echo "$as_me:$LINENO: result: no" >&5
11850echo "${ECHO_T}no" >&6
11851 ;;
11852 esac
11853fi
11854
11855if test "x$enable_dlopen" != xyes; then
11856 enable_dlopen=unknown
11857 enable_dlopen_self=unknown
11858 enable_dlopen_self_static=unknown
11859else
11860 lt_cv_dlopen=no
11861 lt_cv_dlopen_libs=
11862
11863 case $host_os in
11864 beos*)
11865 lt_cv_dlopen="load_add_on"
11866 lt_cv_dlopen_libs=
11867 lt_cv_dlopen_self=yes
11868 ;;
11869
11870 mingw* | pw32*)
11871 lt_cv_dlopen="LoadLibrary"
11872 lt_cv_dlopen_libs=
11873 ;;
11874
11875 cygwin*)
11876 lt_cv_dlopen="dlopen"
11877 lt_cv_dlopen_libs=
11878 ;;
11879
11880 darwin*)
11881 # if libdl is installed we need to link against it
11882 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11883echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11884if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11886else
11887 ac_check_lib_save_LIBS=$LIBS
11888LIBS="-ldl $LIBS"
11889cat >conftest.$ac_ext <<_ACEOF
11890/* confdefs.h. */
11891_ACEOF
11892cat confdefs.h >>conftest.$ac_ext
11893cat >>conftest.$ac_ext <<_ACEOF
11894/* end confdefs.h. */
11895
11896/* Override any gcc2 internal prototype to avoid an error. */
11897#ifdef __cplusplus
11898extern "C"
11899#endif
11900/* We use char because int might match the return type of a gcc2
11901 builtin and then its argument prototype would still apply. */
11902char dlopen ();
11903int
11904main ()
11905{
11906dlopen ();
11907 ;
11908 return 0;
11909}
11910_ACEOF
11911rm -f conftest.$ac_objext conftest$ac_exeext
11912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11913 (eval $ac_link) 2>conftest.er1
11914 ac_status=$?
11915 grep -v '^ *+' conftest.er1 >conftest.err
11916 rm -f conftest.er1
11917 cat conftest.err >&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } &&
11920 { ac_try='test -z "$ac_cxx_werror_flag"
11921 || test ! -s conftest.err'
11922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923 (eval $ac_try) 2>&5
11924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; } &&
11927 { ac_try='test -s conftest$ac_exeext'
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 ac_cv_lib_dl_dlopen=yes
11934else
11935 echo "$as_me: failed program was:" >&5
11936sed 's/^/| /' conftest.$ac_ext >&5
11937
11938ac_cv_lib_dl_dlopen=no
11939fi
11940rm -f conftest.err conftest.$ac_objext \
11941 conftest$ac_exeext conftest.$ac_ext
11942LIBS=$ac_check_lib_save_LIBS
11943fi
11944echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11945echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11946if test $ac_cv_lib_dl_dlopen = yes; then
11947 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11948else
11949
11950 lt_cv_dlopen="dyld"
11951 lt_cv_dlopen_libs=
11952 lt_cv_dlopen_self=yes
11953
11954fi
11955
11956 ;;
11957
11958 *)
11959 echo "$as_me:$LINENO: checking for shl_load" >&5
11960echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11961if test "${ac_cv_func_shl_load+set}" = set; then
11962 echo $ECHO_N "(cached) $ECHO_C" >&6
11963else
11964 cat >conftest.$ac_ext <<_ACEOF
11965/* confdefs.h. */
11966_ACEOF
11967cat confdefs.h >>conftest.$ac_ext
11968cat >>conftest.$ac_ext <<_ACEOF
11969/* end confdefs.h. */
11970/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11972#define shl_load innocuous_shl_load
11973
11974/* System header to define __stub macros and hopefully few prototypes,
11975 which can conflict with char shl_load (); below.
11976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11977 <limits.h> exists even on freestanding compilers. */
11978
11979#ifdef __STDC__
11980# include <limits.h>
11981#else
11982# include <assert.h>
11983#endif
11984
11985#undef shl_load
11986
11987/* Override any gcc2 internal prototype to avoid an error. */
11988#ifdef __cplusplus
11989extern "C"
11990{
11991#endif
11992/* We use char because int might match the return type of a gcc2
11993 builtin and then its argument prototype would still apply. */
11994char shl_load ();
11995/* The GNU C library defines this for functions which it implements
11996 to always fail with ENOSYS. Some functions are actually named
11997 something starting with __ and the normal name is an alias. */
11998#if defined (__stub_shl_load) || defined (__stub___shl_load)
11999choke me
12000#else
12001char (*f) () = shl_load;
12002#endif
12003#ifdef __cplusplus
12004}
12005#endif
12006
12007int
12008main ()
12009{
12010return f != shl_load;
12011 ;
12012 return 0;
12013}
12014_ACEOF
12015rm -f conftest.$ac_objext conftest$ac_exeext
12016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12017 (eval $ac_link) 2>conftest.er1
12018 ac_status=$?
12019 grep -v '^ *+' conftest.er1 >conftest.err
12020 rm -f conftest.er1
12021 cat conftest.err >&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } &&
12024 { ac_try='test -z "$ac_cxx_werror_flag"
12025 || test ! -s conftest.err'
12026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12027 (eval $ac_try) 2>&5
12028 ac_status=$?
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; } &&
12031 { ac_try='test -s conftest$ac_exeext'
12032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033 (eval $ac_try) 2>&5
12034 ac_status=$?
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; }; then
12037 ac_cv_func_shl_load=yes
12038else
12039 echo "$as_me: failed program was:" >&5
12040sed 's/^/| /' conftest.$ac_ext >&5
12041
12042ac_cv_func_shl_load=no
12043fi
12044rm -f conftest.err conftest.$ac_objext \
12045 conftest$ac_exeext conftest.$ac_ext
12046fi
12047echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12048echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12049if test $ac_cv_func_shl_load = yes; then
12050 lt_cv_dlopen="shl_load"
12051else
12052 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12053echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12054if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12055 echo $ECHO_N "(cached) $ECHO_C" >&6
12056else
12057 ac_check_lib_save_LIBS=$LIBS
12058LIBS="-ldld $LIBS"
12059cat >conftest.$ac_ext <<_ACEOF
12060/* confdefs.h. */
12061_ACEOF
12062cat confdefs.h >>conftest.$ac_ext
12063cat >>conftest.$ac_ext <<_ACEOF
12064/* end confdefs.h. */
12065
12066/* Override any gcc2 internal prototype to avoid an error. */
12067#ifdef __cplusplus
12068extern "C"
12069#endif
12070/* We use char because int might match the return type of a gcc2
12071 builtin and then its argument prototype would still apply. */
12072char shl_load ();
12073int
12074main ()
12075{
12076shl_load ();
12077 ;
12078 return 0;
12079}
12080_ACEOF
12081rm -f conftest.$ac_objext conftest$ac_exeext
12082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12083 (eval $ac_link) 2>conftest.er1
12084 ac_status=$?
12085 grep -v '^ *+' conftest.er1 >conftest.err
12086 rm -f conftest.er1
12087 cat conftest.err >&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } &&
12090 { ac_try='test -z "$ac_cxx_werror_flag"
12091 || test ! -s conftest.err'
12092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093 (eval $ac_try) 2>&5
12094 ac_status=$?
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; } &&
12097 { ac_try='test -s conftest$ac_exeext'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12100 ac_status=$?
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 ac_cv_lib_dld_shl_load=yes
12104else
12105 echo "$as_me: failed program was:" >&5
12106sed 's/^/| /' conftest.$ac_ext >&5
12107
12108ac_cv_lib_dld_shl_load=no
12109fi
12110rm -f conftest.err conftest.$ac_objext \
12111 conftest$ac_exeext conftest.$ac_ext
12112LIBS=$ac_check_lib_save_LIBS
12113fi
12114echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12115echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12116if test $ac_cv_lib_dld_shl_load = yes; then
12117 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12118else
12119 echo "$as_me:$LINENO: checking for dlopen" >&5
12120echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12121if test "${ac_cv_func_dlopen+set}" = set; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12123else
12124 cat >conftest.$ac_ext <<_ACEOF
12125/* confdefs.h. */
12126_ACEOF
12127cat confdefs.h >>conftest.$ac_ext
12128cat >>conftest.$ac_ext <<_ACEOF
12129/* end confdefs.h. */
12130/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12132#define dlopen innocuous_dlopen
12133
12134/* System header to define __stub macros and hopefully few prototypes,
12135 which can conflict with char dlopen (); below.
12136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12137 <limits.h> exists even on freestanding compilers. */
12138
12139#ifdef __STDC__
12140# include <limits.h>
12141#else
12142# include <assert.h>
12143#endif
12144
12145#undef dlopen
12146
12147/* Override any gcc2 internal prototype to avoid an error. */
12148#ifdef __cplusplus
12149extern "C"
12150{
12151#endif
12152/* We use char because int might match the return type of a gcc2
12153 builtin and then its argument prototype would still apply. */
12154char dlopen ();
12155/* The GNU C library defines this for functions which it implements
12156 to always fail with ENOSYS. Some functions are actually named
12157 something starting with __ and the normal name is an alias. */
12158#if defined (__stub_dlopen) || defined (__stub___dlopen)
12159choke me
12160#else
12161char (*f) () = dlopen;
12162#endif
12163#ifdef __cplusplus
12164}
12165#endif
12166
12167int
12168main ()
12169{
12170return f != dlopen;
12171 ;
12172 return 0;
12173}
12174_ACEOF
12175rm -f conftest.$ac_objext conftest$ac_exeext
12176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12177 (eval $ac_link) 2>conftest.er1
12178 ac_status=$?
12179 grep -v '^ *+' conftest.er1 >conftest.err
12180 rm -f conftest.er1
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } &&
12184 { ac_try='test -z "$ac_cxx_werror_flag"
12185 || test ! -s conftest.err'
12186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187 (eval $ac_try) 2>&5
12188 ac_status=$?
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; } &&
12191 { ac_try='test -s conftest$ac_exeext'
12192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193 (eval $ac_try) 2>&5
12194 ac_status=$?
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; }; then
12197 ac_cv_func_dlopen=yes
12198else
12199 echo "$as_me: failed program was:" >&5
12200sed 's/^/| /' conftest.$ac_ext >&5
12201
12202ac_cv_func_dlopen=no
12203fi
12204rm -f conftest.err conftest.$ac_objext \
12205 conftest$ac_exeext conftest.$ac_ext
12206fi
12207echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12208echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12209if test $ac_cv_func_dlopen = yes; then
12210 lt_cv_dlopen="dlopen"
12211else
12212 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12213echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12214if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12215 echo $ECHO_N "(cached) $ECHO_C" >&6
12216else
12217 ac_check_lib_save_LIBS=$LIBS
12218LIBS="-ldl $LIBS"
12219cat >conftest.$ac_ext <<_ACEOF
12220/* confdefs.h. */
12221_ACEOF
12222cat confdefs.h >>conftest.$ac_ext
12223cat >>conftest.$ac_ext <<_ACEOF
12224/* end confdefs.h. */
12225
12226/* Override any gcc2 internal prototype to avoid an error. */
12227#ifdef __cplusplus
12228extern "C"
12229#endif
12230/* We use char because int might match the return type of a gcc2
12231 builtin and then its argument prototype would still apply. */
12232char dlopen ();
12233int
12234main ()
12235{
12236dlopen ();
12237 ;
12238 return 0;
12239}
12240_ACEOF
12241rm -f conftest.$ac_objext conftest$ac_exeext
12242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12243 (eval $ac_link) 2>conftest.er1
12244 ac_status=$?
12245 grep -v '^ *+' conftest.er1 >conftest.err
12246 rm -f conftest.er1
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } &&
12250 { ac_try='test -z "$ac_cxx_werror_flag"
12251 || test ! -s conftest.err'
12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12254 ac_status=$?
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try='test -s conftest$ac_exeext'
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; }; then
12263 ac_cv_lib_dl_dlopen=yes
12264else
12265 echo "$as_me: failed program was:" >&5
12266sed 's/^/| /' conftest.$ac_ext >&5
12267
12268ac_cv_lib_dl_dlopen=no
12269fi
12270rm -f conftest.err conftest.$ac_objext \
12271 conftest$ac_exeext conftest.$ac_ext
12272LIBS=$ac_check_lib_save_LIBS
12273fi
12274echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12275echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12276if test $ac_cv_lib_dl_dlopen = yes; then
12277 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12278else
12279 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12280echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12281if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12283else
12284 ac_check_lib_save_LIBS=$LIBS
12285LIBS="-lsvld $LIBS"
12286cat >conftest.$ac_ext <<_ACEOF
12287/* confdefs.h. */
12288_ACEOF
12289cat confdefs.h >>conftest.$ac_ext
12290cat >>conftest.$ac_ext <<_ACEOF
12291/* end confdefs.h. */
12292
12293/* Override any gcc2 internal prototype to avoid an error. */
12294#ifdef __cplusplus
12295extern "C"
12296#endif
12297/* We use char because int might match the return type of a gcc2
12298 builtin and then its argument prototype would still apply. */
12299char dlopen ();
12300int
12301main ()
12302{
12303dlopen ();
12304 ;
12305 return 0;
12306}
12307_ACEOF
12308rm -f conftest.$ac_objext conftest$ac_exeext
12309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12310 (eval $ac_link) 2>conftest.er1
12311 ac_status=$?
12312 grep -v '^ *+' conftest.er1 >conftest.err
12313 rm -f conftest.er1
12314 cat conftest.err >&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } &&
12317 { ac_try='test -z "$ac_cxx_werror_flag"
12318 || test ! -s conftest.err'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12321 ac_status=$?
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; } &&
12324 { ac_try='test -s conftest$ac_exeext'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12330 ac_cv_lib_svld_dlopen=yes
12331else
12332 echo "$as_me: failed program was:" >&5
12333sed 's/^/| /' conftest.$ac_ext >&5
12334
12335ac_cv_lib_svld_dlopen=no
12336fi
12337rm -f conftest.err conftest.$ac_objext \
12338 conftest$ac_exeext conftest.$ac_ext
12339LIBS=$ac_check_lib_save_LIBS
12340fi
12341echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12342echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12343if test $ac_cv_lib_svld_dlopen = yes; then
12344 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12345else
12346 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12347echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12348if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12350else
12351 ac_check_lib_save_LIBS=$LIBS
12352LIBS="-ldld $LIBS"
12353cat >conftest.$ac_ext <<_ACEOF
12354/* confdefs.h. */
12355_ACEOF
12356cat confdefs.h >>conftest.$ac_ext
12357cat >>conftest.$ac_ext <<_ACEOF
12358/* end confdefs.h. */
12359
12360/* Override any gcc2 internal prototype to avoid an error. */
12361#ifdef __cplusplus
12362extern "C"
12363#endif
12364/* We use char because int might match the return type of a gcc2
12365 builtin and then its argument prototype would still apply. */
12366char dld_link ();
12367int
12368main ()
12369{
12370dld_link ();
12371 ;
12372 return 0;
12373}
12374_ACEOF
12375rm -f conftest.$ac_objext conftest$ac_exeext
12376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12377 (eval $ac_link) 2>conftest.er1
12378 ac_status=$?
12379 grep -v '^ *+' conftest.er1 >conftest.err
12380 rm -f conftest.er1
12381 cat conftest.err >&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } &&
12384 { ac_try='test -z "$ac_cxx_werror_flag"
12385 || test ! -s conftest.err'
12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12388 ac_status=$?
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; } &&
12391 { ac_try='test -s conftest$ac_exeext'
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12394 ac_status=$?
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; }; then
12397 ac_cv_lib_dld_dld_link=yes
12398else
12399 echo "$as_me: failed program was:" >&5
12400sed 's/^/| /' conftest.$ac_ext >&5
12401
12402ac_cv_lib_dld_dld_link=no
12403fi
12404rm -f conftest.err conftest.$ac_objext \
12405 conftest$ac_exeext conftest.$ac_ext
12406LIBS=$ac_check_lib_save_LIBS
12407fi
12408echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12409echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12410if test $ac_cv_lib_dld_dld_link = yes; then
12411 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12412fi
12413
12414
12415fi
12416
12417
12418fi
12419
12420
12421fi
12422
12423
12424fi
12425
12426
12427fi
12428
12429 ;;
12430 esac
12431
12432 if test "x$lt_cv_dlopen" != xno; then
12433 enable_dlopen=yes
12434 else
12435 enable_dlopen=no
12436 fi
12437
12438 case $lt_cv_dlopen in
12439 dlopen)
12440 save_CPPFLAGS="$CPPFLAGS"
12441 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12442
12443 save_LDFLAGS="$LDFLAGS"
12444 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12445
12446 save_LIBS="$LIBS"
12447 LIBS="$lt_cv_dlopen_libs $LIBS"
12448
12449 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12450echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12451if test "${lt_cv_dlopen_self+set}" = set; then
12452 echo $ECHO_N "(cached) $ECHO_C" >&6
12453else
12454 if test "$cross_compiling" = yes; then :
12455 lt_cv_dlopen_self=cross
12456else
12457 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12458 lt_status=$lt_dlunknown
12459 cat > conftest.$ac_ext <<EOF
12460#line 12460 "configure"
12461#include "confdefs.h"
12462
12463#if HAVE_DLFCN_H
12464#include <dlfcn.h>
12465#endif
12466
12467#include <stdio.h>
12468
12469#ifdef RTLD_GLOBAL
12470# define LT_DLGLOBAL RTLD_GLOBAL
12471#else
12472# ifdef DL_GLOBAL
12473# define LT_DLGLOBAL DL_GLOBAL
12474# else
12475# define LT_DLGLOBAL 0
12476# endif
12477#endif
12478
12479/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12480 find out it does not work in some platform. */
12481#ifndef LT_DLLAZY_OR_NOW
12482# ifdef RTLD_LAZY
12483# define LT_DLLAZY_OR_NOW RTLD_LAZY
12484# else
12485# ifdef DL_LAZY
12486# define LT_DLLAZY_OR_NOW DL_LAZY
12487# else
12488# ifdef RTLD_NOW
12489# define LT_DLLAZY_OR_NOW RTLD_NOW
12490# else
12491# ifdef DL_NOW
12492# define LT_DLLAZY_OR_NOW DL_NOW
12493# else
12494# define LT_DLLAZY_OR_NOW 0
12495# endif
12496# endif
12497# endif
12498# endif
12499#endif
12500
12501#ifdef __cplusplus
12502extern "C" void exit (int);
12503#endif
12504
12505void fnord() { int i=42;}
12506int main ()
12507{
12508 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12509 int status = $lt_dlunknown;
12510
12511 if (self)
12512 {
12513 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12514 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12515 /* dlclose (self); */
12516 }
12517
12518 exit (status);
12519}
12520EOF
12521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12522 (eval $ac_link) 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12526 (./conftest; exit; ) 2>/dev/null
12527 lt_status=$?
12528 case x$lt_status in
12529 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12530 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12531 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12532 esac
12533 else :
12534 # compilation failed
12535 lt_cv_dlopen_self=no
12536 fi
12537fi
12538rm -fr conftest*
12539
12540
12541fi
12542echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12543echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12544
12545 if test "x$lt_cv_dlopen_self" = xyes; then
12546 LDFLAGS="$LDFLAGS $link_static_flag"
12547 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12548echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12549if test "${lt_cv_dlopen_self_static+set}" = set; then
12550 echo $ECHO_N "(cached) $ECHO_C" >&6
12551else
12552 if test "$cross_compiling" = yes; then :
12553 lt_cv_dlopen_self_static=cross
12554else
12555 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12556 lt_status=$lt_dlunknown
12557 cat > conftest.$ac_ext <<EOF
12558#line 12558 "configure"
12559#include "confdefs.h"
12560
12561#if HAVE_DLFCN_H
12562#include <dlfcn.h>
12563#endif
12564
12565#include <stdio.h>
12566
12567#ifdef RTLD_GLOBAL
12568# define LT_DLGLOBAL RTLD_GLOBAL
12569#else
12570# ifdef DL_GLOBAL
12571# define LT_DLGLOBAL DL_GLOBAL
12572# else
12573# define LT_DLGLOBAL 0
12574# endif
12575#endif
12576
12577/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12578 find out it does not work in some platform. */
12579#ifndef LT_DLLAZY_OR_NOW
12580# ifdef RTLD_LAZY
12581# define LT_DLLAZY_OR_NOW RTLD_LAZY
12582# else
12583# ifdef DL_LAZY
12584# define LT_DLLAZY_OR_NOW DL_LAZY
12585# else
12586# ifdef RTLD_NOW
12587# define LT_DLLAZY_OR_NOW RTLD_NOW
12588# else
12589# ifdef DL_NOW
12590# define LT_DLLAZY_OR_NOW DL_NOW
12591# else
12592# define LT_DLLAZY_OR_NOW 0
12593# endif
12594# endif
12595# endif
12596# endif
12597#endif
12598
12599#ifdef __cplusplus
12600extern "C" void exit (int);
12601#endif
12602
12603void fnord() { int i=42;}
12604int main ()
12605{
12606 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12607 int status = $lt_dlunknown;
12608
12609 if (self)
12610 {
12611 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12612 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12613 /* dlclose (self); */
12614 }
12615
12616 exit (status);
12617}
12618EOF
12619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12620 (eval $ac_link) 2>&5
12621 ac_status=$?
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12624 (./conftest; exit; ) 2>/dev/null
12625 lt_status=$?
12626 case x$lt_status in
12627 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12628 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12629 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12630 esac
12631 else :
12632 # compilation failed
12633 lt_cv_dlopen_self_static=no
12634 fi
12635fi
12636rm -fr conftest*
12637
12638
12639fi
12640echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12641echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12642 fi
12643
12644 CPPFLAGS="$save_CPPFLAGS"
12645 LDFLAGS="$save_LDFLAGS"
12646 LIBS="$save_LIBS"
12647 ;;
12648 esac
12649
12650 case $lt_cv_dlopen_self in
12651 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12652 *) enable_dlopen_self=unknown ;;
12653 esac
12654
12655 case $lt_cv_dlopen_self_static in
12656 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12657 *) enable_dlopen_self_static=unknown ;;
12658 esac
12659fi
12660
12661
12662# The else clause should only fire when bootstrapping the
12663# libtool distribution, otherwise you forgot to ship ltmain.sh
12664# with your package, and you will get complaints that there are
12665# no rules to generate ltmain.sh.
12666if test -f "$ltmain"; then
12667 # See if we are running on zsh, and set the options which allow our commands through
12668 # without removal of \ escapes.
12669 if test -n "${ZSH_VERSION+set}" ; then
12670 setopt NO_GLOB_SUBST
12671 fi
12672 # Now quote all the things that may contain metacharacters while being
12673 # careful not to overquote the AC_SUBSTed values. We take copies of the
12674 # variables and quote the copies for generation of the libtool script.
12675 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12676 SED SHELL STRIP \
12677 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12678 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12679 deplibs_check_method reload_flag reload_cmds need_locks \
12680 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12681 lt_cv_sys_global_symbol_to_c_name_address \
12682 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12683 old_postinstall_cmds old_postuninstall_cmds \
12684 compiler_CXX \
12685 CC_CXX \
12686 LD_CXX \
12687 lt_prog_compiler_wl_CXX \
12688 lt_prog_compiler_pic_CXX \
12689 lt_prog_compiler_static_CXX \
12690 lt_prog_compiler_no_builtin_flag_CXX \
12691 export_dynamic_flag_spec_CXX \
12692 thread_safe_flag_spec_CXX \
12693 whole_archive_flag_spec_CXX \
12694 enable_shared_with_static_runtimes_CXX \
12695 old_archive_cmds_CXX \
12696 old_archive_from_new_cmds_CXX \
12697 predep_objects_CXX \
12698 postdep_objects_CXX \
12699 predeps_CXX \
12700 postdeps_CXX \
12701 compiler_lib_search_path_CXX \
12702 archive_cmds_CXX \
12703 archive_expsym_cmds_CXX \
12704 postinstall_cmds_CXX \
12705 postuninstall_cmds_CXX \
12706 old_archive_from_expsyms_cmds_CXX \
12707 allow_undefined_flag_CXX \
12708 no_undefined_flag_CXX \
12709 export_symbols_cmds_CXX \
12710 hardcode_libdir_flag_spec_CXX \
12711 hardcode_libdir_flag_spec_ld_CXX \
12712 hardcode_libdir_separator_CXX \
12713 hardcode_automatic_CXX \
12714 module_cmds_CXX \
12715 module_expsym_cmds_CXX \
12716 lt_cv_prog_compiler_c_o_CXX \
12717 exclude_expsyms_CXX \
12718 include_expsyms_CXX; do
12719
12720 case $var in
12721 old_archive_cmds_CXX | \
12722 old_archive_from_new_cmds_CXX | \
12723 archive_cmds_CXX | \
12724 archive_expsym_cmds_CXX | \
12725 module_cmds_CXX | \
12726 module_expsym_cmds_CXX | \
12727 old_archive_from_expsyms_cmds_CXX | \
12728 export_symbols_cmds_CXX | \
12729 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12730 postinstall_cmds | postuninstall_cmds | \
12731 old_postinstall_cmds | old_postuninstall_cmds | \
12732 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12733 # Double-quote double-evaled strings.
12734 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12735 ;;
12736 *)
12737 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12738 ;;
12739 esac
12740 done
12741
12742 case $lt_echo in
12743 *'\$0 --fallback-echo"')
12744 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12745 ;;
12746 esac
12747
12748cfgfile="$ofile"
12749
12750 cat <<__EOF__ >> "$cfgfile"
12751# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12752
12753# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12754
12755# Shell to use when invoking shell scripts.
12756SHELL=$lt_SHELL
12757
12758# Whether or not to build shared libraries.
12759build_libtool_libs=$enable_shared
12760
12761# Whether or not to build static libraries.
12762build_old_libs=$enable_static
12763
12764# Whether or not to add -lc for building shared libraries.
12765build_libtool_need_lc=$archive_cmds_need_lc_CXX
12766
12767# Whether or not to disallow shared libs when runtime libs are static
12768allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12769
12770# Whether or not to optimize for fast installation.
12771fast_install=$enable_fast_install
12772
12773# The host system.
12774host_alias=$host_alias
12775host=$host
12776
12777# An echo program that does not interpret backslashes.
12778echo=$lt_echo
12779
12780# The archiver.
12781AR=$lt_AR
12782AR_FLAGS=$lt_AR_FLAGS
12783
12784# A C compiler.
12785LTCC=$lt_LTCC
12786
12787# A language-specific compiler.
12788CC=$lt_compiler_CXX
12789
12790# Is the compiler the GNU C compiler?
12791with_gcc=$GCC_CXX
12792
12793# An ERE matcher.
12794EGREP=$lt_EGREP
12795
12796# The linker used to build libraries.
12797LD=$lt_LD_CXX
12798
12799# Whether we need hard or soft links.
12800LN_S=$lt_LN_S
12801
12802# A BSD-compatible nm program.
12803NM=$lt_NM
12804
12805# A symbol stripping program
12806STRIP=$lt_STRIP
12807
12808# Used to examine libraries when file_magic_cmd begins "file"
12809MAGIC_CMD=$MAGIC_CMD
12810
12811# Used on cygwin: DLL creation program.
12812DLLTOOL="$DLLTOOL"
12813
12814# Used on cygwin: object dumper.
12815OBJDUMP="$OBJDUMP"
12816
12817# Used on cygwin: assembler.
12818AS="$AS"
12819
12820# The name of the directory that contains temporary libtool files.
12821objdir=$objdir
12822
12823# How to create reloadable object files.
12824reload_flag=$lt_reload_flag
12825reload_cmds=$lt_reload_cmds
12826
12827# How to pass a linker flag through the compiler.
12828wl=$lt_lt_prog_compiler_wl_CXX
12829
12830# Object file suffix (normally "o").
12831objext="$ac_objext"
12832
12833# Old archive suffix (normally "a").
12834libext="$libext"
12835
12836# Shared library suffix (normally ".so").
12837shrext='$shrext'
12838
12839# Executable file suffix (normally "").
12840exeext="$exeext"
12841
12842# Additional compiler flags for building library objects.
12843pic_flag=$lt_lt_prog_compiler_pic_CXX
12844pic_mode=$pic_mode
12845
12846# What is the maximum length of a command?
12847max_cmd_len=$lt_cv_sys_max_cmd_len
12848
12849# Does compiler simultaneously support -c and -o options?
12850compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12851
12852# Must we lock files when doing compilation ?
12853need_locks=$lt_need_locks
12854
12855# Do we need the lib prefix for modules?
12856need_lib_prefix=$need_lib_prefix
12857
12858# Do we need a version for libraries?
12859need_version=$need_version
12860
12861# Whether dlopen is supported.
12862dlopen_support=$enable_dlopen
12863
12864# Whether dlopen of programs is supported.
12865dlopen_self=$enable_dlopen_self
12866
12867# Whether dlopen of statically linked programs is supported.
12868dlopen_self_static=$enable_dlopen_self_static
12869
12870# Compiler flag to prevent dynamic linking.
12871link_static_flag=$lt_lt_prog_compiler_static_CXX
12872
12873# Compiler flag to turn off builtin functions.
12874no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12875
12876# Compiler flag to allow reflexive dlopens.
12877export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12878
12879# Compiler flag to generate shared objects directly from archives.
12880whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12881
12882# Compiler flag to generate thread-safe objects.
12883thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12884
12885# Library versioning type.
12886version_type=$version_type
12887
12888# Format of library name prefix.
12889libname_spec=$lt_libname_spec
12890
12891# List of archive names. First name is the real one, the rest are links.
12892# The last name is the one that the linker finds with -lNAME.
12893library_names_spec=$lt_library_names_spec
12894
12895# The coded name of the library, if different from the real name.
12896soname_spec=$lt_soname_spec
12897
12898# Commands used to build and install an old-style archive.
12899RANLIB=$lt_RANLIB
12900old_archive_cmds=$lt_old_archive_cmds_CXX
12901old_postinstall_cmds=$lt_old_postinstall_cmds
12902old_postuninstall_cmds=$lt_old_postuninstall_cmds
12903
12904# Create an old-style archive from a shared archive.
12905old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12906
12907# Create a temporary old-style archive to link instead of a shared archive.
12908old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12909
12910# Commands used to build and install a shared archive.
12911archive_cmds=$lt_archive_cmds_CXX
12912archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12913postinstall_cmds=$lt_postinstall_cmds
12914postuninstall_cmds=$lt_postuninstall_cmds
12915
12916# Commands used to build a loadable module (assumed same as above if empty)
12917module_cmds=$lt_module_cmds_CXX
12918module_expsym_cmds=$lt_module_expsym_cmds_CXX
12919
12920# Commands to strip libraries.
12921old_striplib=$lt_old_striplib
12922striplib=$lt_striplib
12923
12924# Dependencies to place before the objects being linked to create a
12925# shared library.
12926predep_objects=$lt_predep_objects_CXX
12927
12928# Dependencies to place after the objects being linked to create a
12929# shared library.
12930postdep_objects=$lt_postdep_objects_CXX
12931
12932# Dependencies to place before the objects being linked to create a
12933# shared library.
12934predeps=$lt_predeps_CXX
12935
12936# Dependencies to place after the objects being linked to create a
12937# shared library.
12938postdeps=$lt_postdeps_CXX
12939
12940# The library search path used internally by the compiler when linking
12941# a shared library.
12942compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12943
12944# Method to check whether dependent libraries are shared objects.
12945deplibs_check_method=$lt_deplibs_check_method
12946
12947# Command to use when deplibs_check_method == file_magic.
12948file_magic_cmd=$lt_file_magic_cmd
12949
12950# Flag that allows shared libraries with undefined symbols to be built.
12951allow_undefined_flag=$lt_allow_undefined_flag_CXX
12952
12953# Flag that forces no undefined symbols.
12954no_undefined_flag=$lt_no_undefined_flag_CXX
12955
12956# Commands used to finish a libtool library installation in a directory.
12957finish_cmds=$lt_finish_cmds
12958
12959# Same as above, but a single script fragment to be evaled but not shown.
12960finish_eval=$lt_finish_eval
12961
12962# Take the output of nm and produce a listing of raw symbols and C names.
12963global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12964
12965# Transform the output of nm in a proper C declaration
12966global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12967
12968# Transform the output of nm in a C name address pair
12969global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12970
12971# This is the shared library runtime path variable.
12972runpath_var=$runpath_var
12973
12974# This is the shared library path variable.
12975shlibpath_var=$shlibpath_var
12976
12977# Is shlibpath searched before the hard-coded library search path?
12978shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12979
12980# How to hardcode a shared library path into an executable.
12981hardcode_action=$hardcode_action_CXX
12982
12983# Whether we should hardcode library paths into libraries.
12984hardcode_into_libs=$hardcode_into_libs
12985
12986# Flag to hardcode \$libdir into a binary during linking.
12987# This must work even if \$libdir does not exist.
12988hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12989
12990# If ld is used when linking, flag to hardcode \$libdir into
12991# a binary during linking. This must work even if \$libdir does
12992# not exist.
12993hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12994
12995# Whether we need a single -rpath flag with a separated argument.
12996hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12997
12998# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12999# resulting binary.
13000hardcode_direct=$hardcode_direct_CXX
13001
13002# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13003# resulting binary.
13004hardcode_minus_L=$hardcode_minus_L_CXX
13005
13006# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13007# the resulting binary.
13008hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13009
13010# Set to yes if building a shared library automatically hardcodes DIR into the library
13011# and all subsequent libraries and executables linked against it.
13012hardcode_automatic=$hardcode_automatic_CXX
13013
13014# Variables whose values should be saved in libtool wrapper scripts and
13015# restored at relink time.
13016variables_saved_for_relink="$variables_saved_for_relink"
13017
13018# Whether libtool must link a program against all its dependency libraries.
13019link_all_deplibs=$link_all_deplibs_CXX
13020
13021# Compile-time system search path for libraries
13022sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13023
13024# Run-time system search path for libraries
13025sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13026
13027# Fix the shell variable \$srcfile for the compiler.
13028fix_srcfile_path="$fix_srcfile_path_CXX"
13029
13030# Set to yes if exported symbols are required.
13031always_export_symbols=$always_export_symbols_CXX
13032
13033# The commands to list exported symbols.
13034export_symbols_cmds=$lt_export_symbols_cmds_CXX
13035
13036# The commands to extract the exported symbol list from a shared archive.
13037extract_expsyms_cmds=$lt_extract_expsyms_cmds
13038
13039# Symbols that should not be listed in the preloaded symbols.
13040exclude_expsyms=$lt_exclude_expsyms_CXX
13041
13042# Symbols that must always be exported.
13043include_expsyms=$lt_include_expsyms_CXX
13044
13045# ### END LIBTOOL TAG CONFIG: $tagname
13046
13047__EOF__
13048
13049
13050else
13051 # If there is no Makefile yet, we rely on a make rule to execute
13052 # `config.status --recheck' to rerun these tests and create the
13053 # libtool script then.
13054 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13055 if test -f "$ltmain_in"; then
13056 test -f Makefile && make "$ltmain"
13057 fi
13058fi
13059
13060
13061ac_ext=c
13062ac_cpp='$CPP $CPPFLAGS'
13063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13065ac_compiler_gnu=$ac_cv_c_compiler_gnu
13066
13067CC=$lt_save_CC
13068LDCXX=$LD
13069LD=$lt_save_LD
13070GCC=$lt_save_GCC
13071with_gnu_ldcxx=$with_gnu_ld
13072with_gnu_ld=$lt_save_with_gnu_ld
13073lt_cv_path_LDCXX=$lt_cv_path_LD
13074lt_cv_path_LD=$lt_save_path_LD
13075lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13076lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13077
13078 else
13079 tagname=""
13080 fi
13081 ;;
13082
13083 F77)
13084 if test -n "$F77" && test "X$F77" != "Xno"; then
13085
13086ac_ext=f
13087ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13088ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13089ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13090
13091
13092archive_cmds_need_lc_F77=no
13093allow_undefined_flag_F77=
13094always_export_symbols_F77=no
13095archive_expsym_cmds_F77=
13096export_dynamic_flag_spec_F77=
13097hardcode_direct_F77=no
13098hardcode_libdir_flag_spec_F77=
13099hardcode_libdir_flag_spec_ld_F77=
13100hardcode_libdir_separator_F77=
13101hardcode_minus_L_F77=no
13102hardcode_automatic_F77=no
13103module_cmds_F77=
13104module_expsym_cmds_F77=
13105link_all_deplibs_F77=unknown
13106old_archive_cmds_F77=$old_archive_cmds
13107no_undefined_flag_F77=
13108whole_archive_flag_spec_F77=
13109enable_shared_with_static_runtimes_F77=no
13110
13111# Source file extension for f77 test sources.
13112ac_ext=f
13113
13114# Object file extension for compiled f77 test sources.
13115objext=o
13116objext_F77=$objext
13117
13118# Code to be used in simple compile tests
13119lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13120
13121# Code to be used in simple link tests
13122lt_simple_link_test_code=" program t\n end\n"
13123
13124# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13125
13126# If no C compiler was specified, use CC.
13127LTCC=${LTCC-"$CC"}
13128
13129# Allow CC to be a program name with arguments.
13130compiler=$CC
13131
13132
13133# Allow CC to be a program name with arguments.
13134lt_save_CC="$CC"
13135CC=${F77-"f77"}
13136compiler=$CC
13137compiler_F77=$CC
13138cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13139
13140echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13141echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13142echo "$as_me:$LINENO: result: $can_build_shared" >&5
13143echo "${ECHO_T}$can_build_shared" >&6
13144
13145echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13146echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13147test "$can_build_shared" = "no" && enable_shared=no
13148
13149# On AIX, shared libraries and static libraries use the same namespace, and
13150# are all built from PIC.
13151case "$host_os" in
13152aix3*)
13153 test "$enable_shared" = yes && enable_static=no
13154 if test -n "$RANLIB"; then
13155 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13156 postinstall_cmds='$RANLIB $lib'
13157 fi
13158 ;;
13159aix4*)
13160 test "$enable_shared" = yes && enable_static=no
13161 ;;
13162esac
13163echo "$as_me:$LINENO: result: $enable_shared" >&5
13164echo "${ECHO_T}$enable_shared" >&6
13165
13166echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13167echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13168# Make sure either enable_shared or enable_static is yes.
13169test "$enable_shared" = yes || enable_static=yes
13170echo "$as_me:$LINENO: result: $enable_static" >&5
13171echo "${ECHO_T}$enable_static" >&6
13172
13173test "$ld_shlibs_F77" = no && can_build_shared=no
13174
13175GCC_F77="$G77"
13176LD_F77="$LD"
13177
13178lt_prog_compiler_wl_F77=
13179lt_prog_compiler_pic_F77=
13180lt_prog_compiler_static_F77=
13181
13182echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13183echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13184
13185 if test "$GCC" = yes; then
13186 lt_prog_compiler_wl_F77='-Wl,'
13187 lt_prog_compiler_static_F77='-static'
13188
13189 case $host_os in
13190 aix*)
13191 # All AIX code is PIC.
13192 if test "$host_cpu" = ia64; then
13193 # AIX 5 now supports IA64 processor
13194 lt_prog_compiler_static_F77='-Bstatic'
13195 fi
13196 ;;
13197
13198 amigaos*)
13199 # FIXME: we need at least 68020 code to build shared libraries, but
13200 # adding the `-m68020' flag to GCC prevents building anything better,
13201 # like `-m68040'.
13202 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13203 ;;
13204
13205 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13206 # PIC is the default for these OSes.
13207 ;;
13208
13209 mingw* | pw32* | os2*)
13210 # This hack is so that the source file can tell whether it is being
13211 # built for inclusion in a dll (and should export symbols for example).
13212 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13213 ;;
13214
13215 darwin* | rhapsody*)
13216 # PIC is the default on this platform
13217 # Common symbols not allowed in MH_DYLIB files
13218 lt_prog_compiler_pic_F77='-fno-common'
13219 ;;
13220
13221 msdosdjgpp*)
13222 # Just because we use GCC doesn't mean we suddenly get shared libraries
13223 # on systems that don't support them.
13224 lt_prog_compiler_can_build_shared_F77=no
13225 enable_shared=no
13226 ;;
13227
13228 sysv4*MP*)
13229 if test -d /usr/nec; then
13230 lt_prog_compiler_pic_F77=-Kconform_pic
13231 fi
13232 ;;
13233
13234 hpux*)
13235 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13236 # not for PA HP-UX.
13237 case "$host_cpu" in
13238 hppa*64*|ia64*)
13239 # +Z the default
13240 ;;
13241 *)
13242 lt_prog_compiler_pic_F77='-fPIC'
13243 ;;
13244 esac
13245 ;;
13246
13247 *)
13248 lt_prog_compiler_pic_F77='-fPIC'
13249 ;;
13250 esac
13251 else
13252 # PORTME Check for flag to pass linker flags through the system compiler.
13253 case $host_os in
13254 aix*)
13255 lt_prog_compiler_wl_F77='-Wl,'
13256 if test "$host_cpu" = ia64; then
13257 # AIX 5 now supports IA64 processor
13258 lt_prog_compiler_static_F77='-Bstatic'
13259 else
13260 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13261 fi
13262 ;;
13263
13264 mingw* | pw32* | os2*)
13265 # This hack is so that the source file can tell whether it is being
13266 # built for inclusion in a dll (and should export symbols for example).
13267 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13268 ;;
13269
13270 hpux9* | hpux10* | hpux11*)
13271 lt_prog_compiler_wl_F77='-Wl,'
13272 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13273 # not for PA HP-UX.
13274 case "$host_cpu" in
13275 hppa*64*|ia64*)
13276 # +Z the default
13277 ;;
13278 *)
13279 lt_prog_compiler_pic_F77='+Z'
13280 ;;
13281 esac
13282 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13283 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13284 ;;
13285
13286 irix5* | irix6* | nonstopux*)
13287 lt_prog_compiler_wl_F77='-Wl,'
13288 # PIC (with -KPIC) is the default.
13289 lt_prog_compiler_static_F77='-non_shared'
13290 ;;
13291
13292 newsos6)
13293 lt_prog_compiler_pic_F77='-KPIC'
13294 lt_prog_compiler_static_F77='-Bstatic'
13295 ;;
13296
13297 linux*)
13298 case $CC in
13299 icc* | ecc*)
13300 lt_prog_compiler_wl_F77='-Wl,'
13301 lt_prog_compiler_pic_F77='-KPIC'
13302 lt_prog_compiler_static_F77='-static'
13303 ;;
13304 ccc*)
13305 lt_prog_compiler_wl_F77='-Wl,'
13306 # All Alpha code is PIC.
13307 lt_prog_compiler_static_F77='-non_shared'
13308 ;;
13309 esac
13310 ;;
13311
13312 osf3* | osf4* | osf5*)
13313 lt_prog_compiler_wl_F77='-Wl,'
13314 # All OSF/1 code is PIC.
13315 lt_prog_compiler_static_F77='-non_shared'
13316 ;;
13317
13318 sco3.2v5*)
13319 lt_prog_compiler_pic_F77='-Kpic'
13320 lt_prog_compiler_static_F77='-dn'
13321 ;;
13322
13323 solaris*)
13324 lt_prog_compiler_wl_F77='-Wl,'
13325 lt_prog_compiler_pic_F77='-KPIC'
13326 lt_prog_compiler_static_F77='-Bstatic'
13327 ;;
13328
13329 sunos4*)
13330 lt_prog_compiler_wl_F77='-Qoption ld '
13331 lt_prog_compiler_pic_F77='-PIC'
13332 lt_prog_compiler_static_F77='-Bstatic'
13333 ;;
13334
13335 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13336 lt_prog_compiler_wl_F77='-Wl,'
13337 lt_prog_compiler_pic_F77='-KPIC'
13338 lt_prog_compiler_static_F77='-Bstatic'
13339 ;;
13340
13341 sysv4*MP*)
13342 if test -d /usr/nec ;then
13343 lt_prog_compiler_pic_F77='-Kconform_pic'
13344 lt_prog_compiler_static_F77='-Bstatic'
13345 fi
13346 ;;
13347
13348 uts4*)
13349 lt_prog_compiler_pic_F77='-pic'
13350 lt_prog_compiler_static_F77='-Bstatic'
13351 ;;
13352
13353 *)
13354 lt_prog_compiler_can_build_shared_F77=no
13355 ;;
13356 esac
13357 fi
13358
13359echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13360echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13361
13362#
13363# Check to make sure the PIC flag actually works.
13364#
13365if test -n "$lt_prog_compiler_pic_F77"; then
13366
13367echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13368echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13369if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6
13371else
13372 lt_prog_compiler_pic_works_F77=no
13373 ac_outfile=conftest.$ac_objext
13374 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13375 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13376 # Insert the option either (1) after the last *FLAGS variable, or
13377 # (2) before a word containing "conftest.", or (3) at the end.
13378 # Note that $ac_compile itself does not contain backslashes and begins
13379 # with a dollar sign (not a hyphen), so the echo should work correctly.
13380 # The option is referenced via a variable to avoid confusing sed.
13381 lt_compile=`echo "$ac_compile" | $SED \
13382 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13384 -e 's:$: $lt_compiler_flag:'`
13385 (eval echo "\"\$as_me:13385: $lt_compile\"" >&5)
13386 (eval "$lt_compile" 2>conftest.err)
13387 ac_status=$?
13388 cat conftest.err >&5
13389 echo "$as_me:13389: \$? = $ac_status" >&5
13390 if (exit $ac_status) && test -s "$ac_outfile"; then
13391 # The compiler can only warn and ignore the option if not recognized
13392 # So say no if there are warnings
13393 if test ! -s conftest.err; then
13394 lt_prog_compiler_pic_works_F77=yes
13395 fi
13396 fi
13397 $rm conftest*
13398
13399fi
13400echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13401echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13402
13403if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13404 case $lt_prog_compiler_pic_F77 in
13405 "" | " "*) ;;
13406 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13407 esac
13408else
13409 lt_prog_compiler_pic_F77=
13410 lt_prog_compiler_can_build_shared_F77=no
13411fi
13412
13413fi
13414case "$host_os" in
13415 # For platforms which do not support PIC, -DPIC is meaningless:
13416 *djgpp*)
13417 lt_prog_compiler_pic_F77=
13418 ;;
13419 *)
13420 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13421 ;;
13422esac
13423
13424echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13425echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13426if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13427 echo $ECHO_N "(cached) $ECHO_C" >&6
13428else
13429 lt_cv_prog_compiler_c_o_F77=no
13430 $rm -r conftest 2>/dev/null
13431 mkdir conftest
13432 cd conftest
13433 mkdir out
13434 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13435
13436 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13437 # that will create temporary files in the current directory regardless of
13438 # the output directory. Thus, making CWD read-only will cause this test
13439 # to fail, enabling locking or at least warning the user not to do parallel
13440 # builds.
13441 chmod -w .
13442
13443 lt_compiler_flag="-o out/conftest2.$ac_objext"
13444 # Insert the option either (1) after the last *FLAGS variable, or
13445 # (2) before a word containing "conftest.", or (3) at the end.
13446 # Note that $ac_compile itself does not contain backslashes and begins
13447 # with a dollar sign (not a hyphen), so the echo should work correctly.
13448 lt_compile=`echo "$ac_compile" | $SED \
13449 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13451 -e 's:$: $lt_compiler_flag:'`
13452 (eval echo "\"\$as_me:13452: $lt_compile\"" >&5)
13453 (eval "$lt_compile" 2>out/conftest.err)
13454 ac_status=$?
13455 cat out/conftest.err >&5
13456 echo "$as_me:13456: \$? = $ac_status" >&5
13457 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13458 then
13459 # The compiler can only warn and ignore the option if not recognized
13460 # So say no if there are warnings
13461 if test ! -s out/conftest.err; then
13462 lt_cv_prog_compiler_c_o_F77=yes
13463 fi
13464 fi
13465 chmod u+w .
13466 $rm conftest*
13467 # SGI C++ compiler will create directory out/ii_files/ for
13468 # template instantiation
13469 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13470 $rm out/* && rmdir out
13471 cd ..
13472 rmdir conftest
13473 $rm conftest*
13474
13475fi
13476echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13477echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13478
13479
13480hard_links="nottested"
13481if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13482 # do not overwrite the value of need_locks provided by the user
13483 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13484echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13485 hard_links=yes
13486 $rm conftest*
13487 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13488 touch conftest.a
13489 ln conftest.a conftest.b 2>&5 || hard_links=no
13490 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13491 echo "$as_me:$LINENO: result: $hard_links" >&5
13492echo "${ECHO_T}$hard_links" >&6
13493 if test "$hard_links" = no; then
13494 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13495echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13496 need_locks=warn
13497 fi
13498else
13499 need_locks=no
13500fi
13501
13502echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13503echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13504
13505 runpath_var=
13506 allow_undefined_flag_F77=
13507 enable_shared_with_static_runtimes_F77=no
13508 archive_cmds_F77=
13509 archive_expsym_cmds_F77=
13510 old_archive_From_new_cmds_F77=
13511 old_archive_from_expsyms_cmds_F77=
13512 export_dynamic_flag_spec_F77=
13513 whole_archive_flag_spec_F77=
13514 thread_safe_flag_spec_F77=
13515 hardcode_libdir_flag_spec_F77=
13516 hardcode_libdir_flag_spec_ld_F77=
13517 hardcode_libdir_separator_F77=
13518 hardcode_direct_F77=no
13519 hardcode_minus_L_F77=no
13520 hardcode_shlibpath_var_F77=unsupported
13521 link_all_deplibs_F77=unknown
13522 hardcode_automatic_F77=no
13523 module_cmds_F77=
13524 module_expsym_cmds_F77=
13525 always_export_symbols_F77=no
13526 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13527 # include_expsyms should be a list of space-separated symbols to be *always*
13528 # included in the symbol list
13529 include_expsyms_F77=
13530 # exclude_expsyms can be an extended regexp of symbols to exclude
13531 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13532 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13533 # as well as any symbol that contains `d'.
13534 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13535 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13536 # platforms (ab)use it in PIC code, but their linkers get confused if
13537 # the symbol is explicitly referenced. Since portable code cannot
13538 # rely on this symbol name, it's probably fine to never include it in
13539 # preloaded symbol tables.
13540 extract_expsyms_cmds=
13541
13542 case $host_os in
13543 cygwin* | mingw* | pw32*)
13544 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13545 # When not using gcc, we currently assume that we are using
13546 # Microsoft Visual C++.
13547 if test "$GCC" != yes; then
13548 with_gnu_ld=no
13549 fi
13550 ;;
13551 openbsd*)
13552 with_gnu_ld=no
13553 ;;
13554 esac
13555
13556 ld_shlibs_F77=yes
13557 if test "$with_gnu_ld" = yes; then
13558 # If archive_cmds runs LD, not CC, wlarc should be empty
13559 wlarc='${wl}'
13560
13561 # See if GNU ld supports shared libraries.
13562 case $host_os in
13563 aix3* | aix4* | aix5*)
13564 # On AIX/PPC, the GNU linker is very broken
13565 if test "$host_cpu" != ia64; then
13566 ld_shlibs_F77=no
13567 cat <<EOF 1>&2
13568
13569*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13570*** to be unable to reliably create shared libraries on AIX.
13571*** Therefore, libtool is disabling shared libraries support. If you
13572*** really care for shared libraries, you may want to modify your PATH
13573*** so that a non-GNU linker is found, and then restart.
13574
13575EOF
13576 fi
13577 ;;
13578
13579 amigaos*)
13580 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)'
13581 hardcode_libdir_flag_spec_F77='-L$libdir'
13582 hardcode_minus_L_F77=yes
13583
13584 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13585 # that the semantics of dynamic libraries on AmigaOS, at least up
13586 # to version 4, is to share data among multiple programs linked
13587 # with the same dynamic library. Since this doesn't match the
13588 # behavior of shared libraries on other platforms, we can't use
13589 # them.
13590 ld_shlibs_F77=no
13591 ;;
13592
13593 beos*)
13594 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13595 allow_undefined_flag_F77=unsupported
13596 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13597 # support --undefined. This deserves some investigation. FIXME
13598 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13599 else
13600 ld_shlibs_F77=no
13601 fi
13602 ;;
13603
13604 cygwin* | mingw* | pw32*)
13605 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13606 # as there is no search path for DLLs.
13607 hardcode_libdir_flag_spec_F77='-L$libdir'
13608 allow_undefined_flag_F77=unsupported
13609 always_export_symbols_F77=no
13610 enable_shared_with_static_runtimes_F77=yes
13611 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13612
13613 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13614 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13615 # If the export-symbols file already is a .def file (1st line
13616 # is EXPORTS), use it as is; otherwise, prepend...
13617 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13618 cp $export_symbols $output_objdir/$soname.def;
13619 else
13620 echo EXPORTS > $output_objdir/$soname.def;
13621 cat $export_symbols >> $output_objdir/$soname.def;
13622 fi~
13623 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13624 else
13625 ld_shlibs=no
13626 fi
13627 ;;
13628
13629 netbsd*)
13630 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13631 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13632 wlarc=
13633 else
13634 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13635 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13636 fi
13637 ;;
13638
13639 solaris* | sysv5*)
13640 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13641 ld_shlibs_F77=no
13642 cat <<EOF 1>&2
13643
13644*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13645*** create shared libraries on Solaris systems. Therefore, libtool
13646*** is disabling shared libraries support. We urge you to upgrade GNU
13647*** binutils to release 2.9.1 or newer. Another option is to modify
13648*** your PATH or compiler configuration so that the native linker is
13649*** used, and then restart.
13650
13651EOF
13652 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13653 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13654 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13655 else
13656 ld_shlibs_F77=no
13657 fi
13658 ;;
13659
13660 sunos4*)
13661 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13662 wlarc=
13663 hardcode_direct_F77=yes
13664 hardcode_shlibpath_var_F77=no
13665 ;;
13666
13667 linux*)
13668 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13669 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13670 archive_cmds_F77="$tmp_archive_cmds"
13671 supports_anon_versioning=no
13672 case `$LD -v 2>/dev/null` in
13673 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13674 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13675 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13676 *\ 2.11.*) ;; # other 2.11 versions
13677 *) supports_anon_versioning=yes ;;
13678 esac
13679 if test $supports_anon_versioning = yes; then
13680 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13681cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13682$echo "local: *; };" >> $output_objdir/$libname.ver~
13683 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13684 else
13685 archive_expsym_cmds_F77="$tmp_archive_cmds"
13686 fi
13687 else
13688 ld_shlibs_F77=no
13689 fi
13690 ;;
13691
13692 *)
13693 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13694 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13695 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13696 else
13697 ld_shlibs_F77=no
13698 fi
13699 ;;
13700 esac
13701
13702 if test "$ld_shlibs_F77" = yes; then
13703 runpath_var=LD_RUN_PATH
13704 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13705 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13706 # ancient GNU ld didn't support --whole-archive et. al.
13707 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13708 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13709 else
13710 whole_archive_flag_spec_F77=
13711 fi
13712 fi
13713 else
13714 # PORTME fill in a description of your system's linker (not GNU ld)
13715 case $host_os in
13716 aix3*)
13717 allow_undefined_flag_F77=unsupported
13718 always_export_symbols_F77=yes
13719 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'
13720 # Note: this linker hardcodes the directories in LIBPATH if there
13721 # are no directories specified by -L.
13722 hardcode_minus_L_F77=yes
13723 if test "$GCC" = yes && test -z "$link_static_flag"; then
13724 # Neither direct hardcoding nor static linking is supported with a
13725 # broken collect2.
13726 hardcode_direct_F77=unsupported
13727 fi
13728 ;;
13729
13730 aix4* | aix5*)
13731 if test "$host_cpu" = ia64; then
13732 # On IA64, the linker does run time linking by default, so we don't
13733 # have to do anything special.
13734 aix_use_runtimelinking=no
13735 exp_sym_flag='-Bexport'
13736 no_entry_flag=""
13737 else
13738 # If we're using GNU nm, then we don't want the "-C" option.
13739 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13740 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13741 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'
13742 else
13743 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'
13744 fi
13745 aix_use_runtimelinking=no
13746
13747 # Test if we are trying to use run time linking or normal
13748 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13749 # need to do runtime linking.
13750 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13751 for ld_flag in $LDFLAGS; do
13752 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13753 aix_use_runtimelinking=yes
13754 break
13755 fi
13756 done
13757 esac
13758
13759 exp_sym_flag='-bexport'
13760 no_entry_flag='-bnoentry'
13761 fi
13762
13763 # When large executables or shared objects are built, AIX ld can
13764 # have problems creating the table of contents. If linking a library
13765 # or program results in "error TOC overflow" add -mminimal-toc to
13766 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13767 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13768
13769 archive_cmds_F77=''
13770 hardcode_direct_F77=yes
13771 hardcode_libdir_separator_F77=':'
13772 link_all_deplibs_F77=yes
13773
13774 if test "$GCC" = yes; then
13775 case $host_os in aix4.012|aix4.012.*)
13776 # We only want to do this on AIX 4.2 and lower, the check
13777 # below for broken collect2 doesn't work under 4.3+
13778 collect2name=`${CC} -print-prog-name=collect2`
13779 if test -f "$collect2name" && \
13780 strings "$collect2name" | grep resolve_lib_name >/dev/null
13781 then
13782 # We have reworked collect2
13783 hardcode_direct_F77=yes
13784 else
13785 # We have old collect2
13786 hardcode_direct_F77=unsupported
13787 # It fails to find uninstalled libraries when the uninstalled
13788 # path is not listed in the libpath. Setting hardcode_minus_L
13789 # to unsupported forces relinking
13790 hardcode_minus_L_F77=yes
13791 hardcode_libdir_flag_spec_F77='-L$libdir'
13792 hardcode_libdir_separator_F77=
13793 fi
13794 esac
13795 shared_flag='-shared'
13796 else
13797 # not using gcc
13798 if test "$host_cpu" = ia64; then
13799 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13800 # chokes on -Wl,-G. The following line is correct:
13801 shared_flag='-G'
13802 else
13803 if test "$aix_use_runtimelinking" = yes; then
13804 shared_flag='${wl}-G'
13805 else
13806 shared_flag='${wl}-bM:SRE'
13807 fi
13808 fi
13809 fi
13810
13811 # It seems that -bexpall does not export symbols beginning with
13812 # underscore (_), so it is better to generate a list of symbols to export.
13813 always_export_symbols_F77=yes
13814 if test "$aix_use_runtimelinking" = yes; then
13815 # Warning - without using the other runtime loading flags (-brtl),
13816 # -berok will link without error, but may produce a broken library.
13817 allow_undefined_flag_F77='-berok'
13818 # Determine the default libpath from the value encoded in an empty executable.
13819 cat >conftest.$ac_ext <<_ACEOF
13820 program main
13821
13822 end
13823_ACEOF
13824rm -f conftest.$ac_objext conftest$ac_exeext
13825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13826 (eval $ac_link) 2>conftest.er1
13827 ac_status=$?
13828 grep -v '^ *+' conftest.er1 >conftest.err
13829 rm -f conftest.er1
13830 cat conftest.err >&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } &&
13833 { ac_try='test -z "$ac_f77_werror_flag"
13834 || test ! -s conftest.err'
13835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836 (eval $ac_try) 2>&5
13837 ac_status=$?
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; } &&
13840 { ac_try='test -s conftest$ac_exeext'
13841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842 (eval $ac_try) 2>&5
13843 ac_status=$?
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; }; then
13846
13847aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13848}'`
13849# Check for a 64-bit object if we didn't find anything.
13850if 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; }
13851}'`; fi
13852else
13853 echo "$as_me: failed program was:" >&5
13854sed 's/^/| /' conftest.$ac_ext >&5
13855
13856fi
13857rm -f conftest.err conftest.$ac_objext \
13858 conftest$ac_exeext conftest.$ac_ext
13859if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13860
13861 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13862 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"
13863 else
13864 if test "$host_cpu" = ia64; then
13865 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13866 allow_undefined_flag_F77="-z nodefs"
13867 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"
13868 else
13869 # Determine the default libpath from the value encoded in an empty executable.
13870 cat >conftest.$ac_ext <<_ACEOF
13871 program main
13872
13873 end
13874_ACEOF
13875rm -f conftest.$ac_objext conftest$ac_exeext
13876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13877 (eval $ac_link) 2>conftest.er1
13878 ac_status=$?
13879 grep -v '^ *+' conftest.er1 >conftest.err
13880 rm -f conftest.er1
13881 cat conftest.err >&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } &&
13884 { ac_try='test -z "$ac_f77_werror_flag"
13885 || test ! -s conftest.err'
13886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887 (eval $ac_try) 2>&5
13888 ac_status=$?
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); }; } &&
13891 { ac_try='test -s conftest$ac_exeext'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13894 ac_status=$?
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; }; then
13897
13898aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13899}'`
13900# Check for a 64-bit object if we didn't find anything.
13901if 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; }
13902}'`; fi
13903else
13904 echo "$as_me: failed program was:" >&5
13905sed 's/^/| /' conftest.$ac_ext >&5
13906
13907fi
13908rm -f conftest.err conftest.$ac_objext \
13909 conftest$ac_exeext conftest.$ac_ext
13910if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13911
13912 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13913 # Warning - without using the other run time loading flags,
13914 # -berok will link without error, but may produce a broken library.
13915 no_undefined_flag_F77=' ${wl}-bernotok'
13916 allow_undefined_flag_F77=' ${wl}-berok'
13917 # -bexpall does not export symbols beginning with underscore (_)
13918 always_export_symbols_F77=yes
13919 # Exported symbols can be pulled into shared objects from archives
13920 whole_archive_flag_spec_F77=' '
13921 archive_cmds_need_lc_F77=yes
13922 # This is similar to how AIX traditionally builds it's shared libraries.
13923 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'
13924 fi
13925 fi
13926 ;;
13927
13928 amigaos*)
13929 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)'
13930 hardcode_libdir_flag_spec_F77='-L$libdir'
13931 hardcode_minus_L_F77=yes
13932 # see comment about different semantics on the GNU ld section
13933 ld_shlibs_F77=no
13934 ;;
13935
13936 bsdi4*)
13937 export_dynamic_flag_spec_F77=-rdynamic
13938 ;;
13939
13940 cygwin* | mingw* | pw32*)
13941 # When not using gcc, we currently assume that we are using
13942 # Microsoft Visual C++.
13943 # hardcode_libdir_flag_spec is actually meaningless, as there is
13944 # no search path for DLLs.
13945 hardcode_libdir_flag_spec_F77=' '
13946 allow_undefined_flag_F77=unsupported
13947 # Tell ltmain to make .lib files, not .a files.
13948 libext=lib
13949 # Tell ltmain to make .dll files, not .so files.
13950 shrext=".dll"
13951 # FIXME: Setting linknames here is a bad hack.
13952 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13953 # The linker will automatically build a .lib file if we build a DLL.
13954 old_archive_From_new_cmds_F77='true'
13955 # FIXME: Should let the user specify the lib program.
13956 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13957 fix_srcfile_path='`cygpath -w "$srcfile"`'
13958 enable_shared_with_static_runtimes_F77=yes
13959 ;;
13960
13961 darwin* | rhapsody*)
13962 if test "$GXX" = yes ; then
13963 archive_cmds_need_lc_F77=no
13964 case "$host_os" in
13965 rhapsody* | darwin1.[012])
13966 allow_undefined_flag_F77='-undefined suppress'
13967 ;;
13968 *) # Darwin 1.3 on
13969 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13970 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13971 else
13972 case ${MACOSX_DEPLOYMENT_TARGET} in
13973 10.[012])
13974 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13975 ;;
13976 10.*)
13977 allow_undefined_flag_F77='-undefined dynamic_lookup'
13978 ;;
13979 esac
13980 fi
13981 ;;
13982 esac
13983 lt_int_apple_cc_single_mod=no
13984 output_verbose_link_cmd='echo'
13985 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13986 lt_int_apple_cc_single_mod=yes
13987 fi
13988 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13989 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13990 else
13991 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'
13992 fi
13993 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13994 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13995 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13996 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}'
13997 else
13998 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}'
13999 fi
14000 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}'
14001 hardcode_direct_F77=no
14002 hardcode_automatic_F77=yes
14003 hardcode_shlibpath_var_F77=unsupported
14004 whole_archive_flag_spec_F77='-all_load $convenience'
14005 link_all_deplibs_F77=yes
14006 else
14007 ld_shlibs_F77=no
14008 fi
14009 ;;
14010
14011 dgux*)
14012 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14013 hardcode_libdir_flag_spec_F77='-L$libdir'
14014 hardcode_shlibpath_var_F77=no
14015 ;;
14016
14017 freebsd1*)
14018 ld_shlibs_F77=no
14019 ;;
14020
14021 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14022 # support. Future versions do this automatically, but an explicit c++rt0.o
14023 # does not break anything, and helps significantly (at the cost of a little
14024 # extra space).
14025 freebsd2.2*)
14026 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14027 hardcode_libdir_flag_spec_F77='-R$libdir'
14028 hardcode_direct_F77=yes
14029 hardcode_shlibpath_var_F77=no
14030 ;;
14031
14032 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14033 freebsd2*)
14034 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14035 hardcode_direct_F77=yes
14036 hardcode_minus_L_F77=yes
14037 hardcode_shlibpath_var_F77=no
14038 ;;
14039
14040 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14041 freebsd* | kfreebsd*-gnu)
14042 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14043 hardcode_libdir_flag_spec_F77='-R$libdir'
14044 hardcode_direct_F77=yes
14045 hardcode_shlibpath_var_F77=no
14046 ;;
14047
14048 hpux9*)
14049 if test "$GCC" = yes; then
14050 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'
14051 else
14052 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'
14053 fi
14054 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14055 hardcode_libdir_separator_F77=:
14056 hardcode_direct_F77=yes
14057
14058 # hardcode_minus_L: Not really in the search PATH,
14059 # but as the default location of the library.
14060 hardcode_minus_L_F77=yes
14061 export_dynamic_flag_spec_F77='${wl}-E'
14062 ;;
14063
14064 hpux10* | hpux11*)
14065 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14066 case "$host_cpu" in
14067 hppa*64*|ia64*)
14068 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14069 ;;
14070 *)
14071 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14072 ;;
14073 esac
14074 else
14075 case "$host_cpu" in
14076 hppa*64*|ia64*)
14077 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14078 ;;
14079 *)
14080 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14081 ;;
14082 esac
14083 fi
14084 if test "$with_gnu_ld" = no; then
14085 case "$host_cpu" in
14086 hppa*64*)
14087 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14088 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14089 hardcode_libdir_separator_F77=:
14090 hardcode_direct_F77=no
14091 hardcode_shlibpath_var_F77=no
14092 ;;
14093 ia64*)
14094 hardcode_libdir_flag_spec_F77='-L$libdir'
14095 hardcode_direct_F77=no
14096 hardcode_shlibpath_var_F77=no
14097
14098 # hardcode_minus_L: Not really in the search PATH,
14099 # but as the default location of the library.
14100 hardcode_minus_L_F77=yes
14101 ;;
14102 *)
14103 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14104 hardcode_libdir_separator_F77=:
14105 hardcode_direct_F77=yes
14106 export_dynamic_flag_spec_F77='${wl}-E'
14107
14108 # hardcode_minus_L: Not really in the search PATH,
14109 # but as the default location of the library.
14110 hardcode_minus_L_F77=yes
14111 ;;
14112 esac
14113 fi
14114 ;;
14115
14116 irix5* | irix6* | nonstopux*)
14117 if test "$GCC" = yes; then
14118 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'
14119 else
14120 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'
14121 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14122 fi
14123 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14124 hardcode_libdir_separator_F77=:
14125 link_all_deplibs_F77=yes
14126 ;;
14127
14128 netbsd*)
14129 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14130 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14131 else
14132 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14133 fi
14134 hardcode_libdir_flag_spec_F77='-R$libdir'
14135 hardcode_direct_F77=yes
14136 hardcode_shlibpath_var_F77=no
14137 ;;
14138
14139 newsos6)
14140 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14141 hardcode_direct_F77=yes
14142 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14143 hardcode_libdir_separator_F77=:
14144 hardcode_shlibpath_var_F77=no
14145 ;;
14146
14147 openbsd*)
14148 hardcode_direct_F77=yes
14149 hardcode_shlibpath_var_F77=no
14150 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14151 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14152 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14153 export_dynamic_flag_spec_F77='${wl}-E'
14154 else
14155 case $host_os in
14156 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14157 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14158 hardcode_libdir_flag_spec_F77='-R$libdir'
14159 ;;
14160 *)
14161 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14162 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14163 ;;
14164 esac
14165 fi
14166 ;;
14167
14168 os2*)
14169 hardcode_libdir_flag_spec_F77='-L$libdir'
14170 hardcode_minus_L_F77=yes
14171 allow_undefined_flag_F77=unsupported
14172 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'
14173 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14174 ;;
14175
14176 osf3*)
14177 if test "$GCC" = yes; then
14178 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14179 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'
14180 else
14181 allow_undefined_flag_F77=' -expect_unresolved \*'
14182 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'
14183 fi
14184 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14185 hardcode_libdir_separator_F77=:
14186 ;;
14187
14188 osf4* | osf5*) # as osf3* with the addition of -msym flag
14189 if test "$GCC" = yes; then
14190 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14191 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'
14192 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14193 else
14194 allow_undefined_flag_F77=' -expect_unresolved \*'
14195 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'
14196 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~
14197 $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'
14198
14199 # Both c and cxx compiler support -rpath directly
14200 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14201 fi
14202 hardcode_libdir_separator_F77=:
14203 ;;
14204
14205 sco3.2v5*)
14206 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14207 hardcode_shlibpath_var_F77=no
14208 export_dynamic_flag_spec_F77='${wl}-Bexport'
14209 runpath_var=LD_RUN_PATH
14210 hardcode_runpath_var=yes
14211 ;;
14212
14213 solaris*)
14214 no_undefined_flag_F77=' -z text'
14215 if test "$GCC" = yes; then
14216 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14217 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14218 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14219 else
14220 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14221 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14222 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14223 fi
14224 hardcode_libdir_flag_spec_F77='-R$libdir'
14225 hardcode_shlibpath_var_F77=no
14226 case $host_os in
14227 solaris2.[0-5] | solaris2.[0-5].*) ;;
14228 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14229 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14230 esac
14231 link_all_deplibs_F77=yes
14232 ;;
14233
14234 sunos4*)
14235 if test "x$host_vendor" = xsequent; then
14236 # Use $CC to link under sequent, because it throws in some extra .o
14237 # files that make .init and .fini sections work.
14238 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14239 else
14240 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14241 fi
14242 hardcode_libdir_flag_spec_F77='-L$libdir'
14243 hardcode_direct_F77=yes
14244 hardcode_minus_L_F77=yes
14245 hardcode_shlibpath_var_F77=no
14246 ;;
14247
14248 sysv4)
14249 case $host_vendor in
14250 sni)
14251 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14252 hardcode_direct_F77=yes # is this really true???
14253 ;;
14254 siemens)
14255 ## LD is ld it makes a PLAMLIB
14256 ## CC just makes a GrossModule.
14257 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14258 reload_cmds_F77='$CC -r -o $output$reload_objs'
14259 hardcode_direct_F77=no
14260 ;;
14261 motorola)
14262 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14263 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14264 ;;
14265 esac
14266 runpath_var='LD_RUN_PATH'
14267 hardcode_shlibpath_var_F77=no
14268 ;;
14269
14270 sysv4.3*)
14271 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14272 hardcode_shlibpath_var_F77=no
14273 export_dynamic_flag_spec_F77='-Bexport'
14274 ;;
14275
14276 sysv4*MP*)
14277 if test -d /usr/nec; then
14278 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14279 hardcode_shlibpath_var_F77=no
14280 runpath_var=LD_RUN_PATH
14281 hardcode_runpath_var=yes
14282 ld_shlibs_F77=yes
14283 fi
14284 ;;
14285
14286 sysv4.2uw2*)
14287 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14288 hardcode_direct_F77=yes
14289 hardcode_minus_L_F77=no
14290 hardcode_shlibpath_var_F77=no
14291 hardcode_runpath_var=yes
14292 runpath_var=LD_RUN_PATH
14293 ;;
14294
14295 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14296 no_undefined_flag_F77='${wl}-z ${wl}text'
14297 if test "$GCC" = yes; then
14298 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14299 else
14300 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14301 fi
14302 runpath_var='LD_RUN_PATH'
14303 hardcode_shlibpath_var_F77=no
14304 ;;
14305
14306 sysv5*)
14307 no_undefined_flag_F77=' -z text'
14308 # $CC -shared without GNU ld will not create a library from C++
14309 # object files and a static libstdc++, better avoid it by now
14310 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14311 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14312 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14313 hardcode_libdir_flag_spec_F77=
14314 hardcode_shlibpath_var_F77=no
14315 runpath_var='LD_RUN_PATH'
14316 ;;
14317
14318 uts4*)
14319 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14320 hardcode_libdir_flag_spec_F77='-L$libdir'
14321 hardcode_shlibpath_var_F77=no
14322 ;;
14323
14324 *)
14325 ld_shlibs_F77=no
14326 ;;
14327 esac
14328 fi
14329
14330echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14331echo "${ECHO_T}$ld_shlibs_F77" >&6
14332test "$ld_shlibs_F77" = no && can_build_shared=no
14333
14334variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14335if test "$GCC" = yes; then
14336 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14337fi
14338
14339#
14340# Do we need to explicitly link libc?
14341#
14342case "x$archive_cmds_need_lc_F77" in
14343x|xyes)
14344 # Assume -lc should be added
14345 archive_cmds_need_lc_F77=yes
14346
14347 if test "$enable_shared" = yes && test "$GCC" = yes; then
14348 case $archive_cmds_F77 in
14349 *'~'*)
14350 # FIXME: we may have to deal with multi-command sequences.
14351 ;;
14352 '$CC '*)
14353 # Test whether the compiler implicitly links with -lc since on some
14354 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14355 # to ld, don't add -lc before -lgcc.
14356 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14357echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14358 $rm conftest*
14359 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14360
14361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14362 (eval $ac_compile) 2>&5
14363 ac_status=$?
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); } 2>conftest.err; then
14366 soname=conftest
14367 lib=conftest
14368 libobjs=conftest.$ac_objext
14369 deplibs=
14370 wl=$lt_prog_compiler_wl_F77
14371 compiler_flags=-v
14372 linker_flags=-v
14373 verstring=
14374 output_objdir=.
14375 libname=conftest
14376 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14377 allow_undefined_flag_F77=
14378 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14379 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14380 ac_status=$?
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }
14383 then
14384 archive_cmds_need_lc_F77=no
14385 else
14386 archive_cmds_need_lc_F77=yes
14387 fi
14388 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14389 else
14390 cat conftest.err 1>&5
14391 fi
14392 $rm conftest*
14393 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14394echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14395 ;;
14396 esac
14397 fi
14398 ;;
14399esac
14400
14401echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14402echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14403library_names_spec=
14404libname_spec='lib$name'
14405soname_spec=
14406shrext=".so"
14407postinstall_cmds=
14408postuninstall_cmds=
14409finish_cmds=
14410finish_eval=
14411shlibpath_var=
14412shlibpath_overrides_runpath=unknown
14413version_type=none
14414dynamic_linker="$host_os ld.so"
14415sys_lib_dlsearch_path_spec="/lib /usr/lib"
14416if test "$GCC" = yes; then
14417 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14418 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14419 # if the path contains ";" then we assume it to be the separator
14420 # otherwise default to the standard path separator (i.e. ":") - it is
14421 # assumed that no part of a normal pathname contains ";" but that should
14422 # okay in the real world where ";" in dirpaths is itself problematic.
14423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14424 else
14425 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14426 fi
14427else
14428 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14429fi
14430need_lib_prefix=unknown
14431hardcode_into_libs=no
14432
14433# when you set need_version to no, make sure it does not cause -set_version
14434# flags to be left without arguments
14435need_version=unknown
14436
14437case $host_os in
14438aix3*)
14439 version_type=linux
14440 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14441 shlibpath_var=LIBPATH
14442
14443 # AIX 3 has no versioning support, so we append a major version to the name.
14444 soname_spec='${libname}${release}${shared_ext}$major'
14445 ;;
14446
14447aix4* | aix5*)
14448 version_type=linux
14449 need_lib_prefix=no
14450 need_version=no
14451 hardcode_into_libs=yes
14452 if test "$host_cpu" = ia64; then
14453 # AIX 5 supports IA64
14454 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14455 shlibpath_var=LD_LIBRARY_PATH
14456 else
14457 # With GCC up to 2.95.x, collect2 would create an import file
14458 # for dependence libraries. The import file would start with
14459 # the line `#! .'. This would cause the generated library to
14460 # depend on `.', always an invalid library. This was fixed in
14461 # development snapshots of GCC prior to 3.0.
14462 case $host_os in
14463 aix4 | aix4.[01] | aix4.[01].*)
14464 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14465 echo ' yes '
14466 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14467 :
14468 else
14469 can_build_shared=no
14470 fi
14471 ;;
14472 esac
14473 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14474 # soname into executable. Probably we can add versioning support to
14475 # collect2, so additional links can be useful in future.
14476 if test "$aix_use_runtimelinking" = yes; then
14477 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14478 # instead of lib<name>.a to let people know that these are not
14479 # typical AIX shared libraries.
14480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14481 else
14482 # We preserve .a as extension for shared libraries through AIX4.2
14483 # and later when we are not doing run time linking.
14484 library_names_spec='${libname}${release}.a $libname.a'
14485 soname_spec='${libname}${release}${shared_ext}$major'
14486 fi
14487 shlibpath_var=LIBPATH
14488 fi
14489 ;;
14490
14491amigaos*)
14492 library_names_spec='$libname.ixlibrary $libname.a'
14493 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14494 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'
14495 ;;
14496
14497beos*)
14498 library_names_spec='${libname}${shared_ext}'
14499 dynamic_linker="$host_os ld.so"
14500 shlibpath_var=LIBRARY_PATH
14501 ;;
14502
14503bsdi4*)
14504 version_type=linux
14505 need_version=no
14506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507 soname_spec='${libname}${release}${shared_ext}$major'
14508 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14509 shlibpath_var=LD_LIBRARY_PATH
14510 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14511 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14512 # the default ld.so.conf also contains /usr/contrib/lib and
14513 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14514 # libtool to hard-code these into programs
14515 ;;
14516
14517cygwin* | mingw* | pw32*)
14518 version_type=windows
14519 shrext=".dll"
14520 need_version=no
14521 need_lib_prefix=no
14522
14523 case $GCC,$host_os in
14524 yes,cygwin* | yes,mingw* | yes,pw32*)
14525 library_names_spec='$libname.dll.a'
14526 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14527 postinstall_cmds='base_file=`basename \${file}`~
14528 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14529 dldir=$destdir/`dirname \$dlpath`~
14530 test -d \$dldir || mkdir -p \$dldir~
14531 $install_prog $dir/$dlname \$dldir/$dlname'
14532 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14533 dlpath=$dir/\$dldll~
14534 $rm \$dlpath'
14535 shlibpath_overrides_runpath=yes
14536
14537 case $host_os in
14538 cygwin*)
14539 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14540 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14541 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14542 ;;
14543 mingw*)
14544 # MinGW DLLs use traditional 'lib' prefix
14545 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14546 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14547 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14548 # It is most probably a Windows format PATH printed by
14549 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14550 # path with ; separators, and with drive letters. We can handle the
14551 # drive letters (cygwin fileutils understands them), so leave them,
14552 # especially as we might pass files found there to a mingw objdump,
14553 # which wouldn't understand a cygwinified path. Ahh.
14554 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14555 else
14556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14557 fi
14558 ;;
14559 pw32*)
14560 # pw32 DLLs use 'pw' prefix rather than 'lib'
14561 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14562 ;;
14563 esac
14564 ;;
14565
14566 *)
14567 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14568 ;;
14569 esac
14570 dynamic_linker='Win32 ld.exe'
14571 # FIXME: first we should search . and the directory the executable is in
14572 shlibpath_var=PATH
14573 ;;
14574
14575darwin* | rhapsody*)
14576 dynamic_linker="$host_os dyld"
14577 version_type=darwin
14578 need_lib_prefix=no
14579 need_version=no
14580 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14581 soname_spec='${libname}${release}${major}$shared_ext'
14582 shlibpath_overrides_runpath=yes
14583 shlibpath_var=DYLD_LIBRARY_PATH
14584 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14585 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14586 if test "$GCC" = yes; then
14587 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"`
14588 else
14589 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14590 fi
14591 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14592 ;;
14593
14594dgux*)
14595 version_type=linux
14596 need_lib_prefix=no
14597 need_version=no
14598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14599 soname_spec='${libname}${release}${shared_ext}$major'
14600 shlibpath_var=LD_LIBRARY_PATH
14601 ;;
14602
14603freebsd1*)
14604 dynamic_linker=no
14605 ;;
14606
14607kfreebsd*-gnu)
14608 version_type=linux
14609 need_lib_prefix=no
14610 need_version=no
14611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14612 soname_spec='${libname}${release}${shared_ext}$major'
14613 shlibpath_var=LD_LIBRARY_PATH
14614 shlibpath_overrides_runpath=no
14615 hardcode_into_libs=yes
14616 dynamic_linker='GNU ld.so'
14617 ;;
14618
14619freebsd*)
14620 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14621 version_type=freebsd-$objformat
14622 case $version_type in
14623 freebsd-elf*)
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14625 need_version=no
14626 need_lib_prefix=no
14627 ;;
14628 freebsd-*)
14629 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14630 need_version=yes
14631 ;;
14632 esac
14633 shlibpath_var=LD_LIBRARY_PATH
14634 case $host_os in
14635 freebsd2*)
14636 shlibpath_overrides_runpath=yes
14637 ;;
14638 freebsd3.01* | freebsdelf3.01*)
14639 shlibpath_overrides_runpath=yes
14640 hardcode_into_libs=yes
14641 ;;
14642 *) # from 3.2 on
14643 shlibpath_overrides_runpath=no
14644 hardcode_into_libs=yes
14645 ;;
14646 esac
14647 ;;
14648
14649gnu*)
14650 version_type=linux
14651 need_lib_prefix=no
14652 need_version=no
14653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14654 soname_spec='${libname}${release}${shared_ext}$major'
14655 shlibpath_var=LD_LIBRARY_PATH
14656 hardcode_into_libs=yes
14657 ;;
14658
14659hpux9* | hpux10* | hpux11*)
14660 # Give a soname corresponding to the major version so that dld.sl refuses to
14661 # link against other versions.
14662 version_type=sunos
14663 need_lib_prefix=no
14664 need_version=no
14665 case "$host_cpu" in
14666 ia64*)
14667 shrext='.so'
14668 hardcode_into_libs=yes
14669 dynamic_linker="$host_os dld.so"
14670 shlibpath_var=LD_LIBRARY_PATH
14671 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14673 soname_spec='${libname}${release}${shared_ext}$major'
14674 if test "X$HPUX_IA64_MODE" = X32; then
14675 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14676 else
14677 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14678 fi
14679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14680 ;;
14681 hppa*64*)
14682 shrext='.sl'
14683 hardcode_into_libs=yes
14684 dynamic_linker="$host_os dld.sl"
14685 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14688 soname_spec='${libname}${release}${shared_ext}$major'
14689 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14690 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14691 ;;
14692 *)
14693 shrext='.sl'
14694 dynamic_linker="$host_os dld.sl"
14695 shlibpath_var=SHLIB_PATH
14696 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14698 soname_spec='${libname}${release}${shared_ext}$major'
14699 ;;
14700 esac
14701 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14702 postinstall_cmds='chmod 555 $lib'
14703 ;;
14704
14705irix5* | irix6* | nonstopux*)
14706 case $host_os in
14707 nonstopux*) version_type=nonstopux ;;
14708 *)
14709 if test "$lt_cv_prog_gnu_ld" = yes; then
14710 version_type=linux
14711 else
14712 version_type=irix
14713 fi ;;
14714 esac
14715 need_lib_prefix=no
14716 need_version=no
14717 soname_spec='${libname}${release}${shared_ext}$major'
14718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14719 case $host_os in
14720 irix5* | nonstopux*)
14721 libsuff= shlibsuff=
14722 ;;
14723 *)
14724 case $LD in # libtool.m4 will add one of these switches to LD
14725 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14726 libsuff= shlibsuff= libmagic=32-bit;;
14727 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14728 libsuff=32 shlibsuff=N32 libmagic=N32;;
14729 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14730 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14731 *) libsuff= shlibsuff= libmagic=never-match;;
14732 esac
14733 ;;
14734 esac
14735 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14736 shlibpath_overrides_runpath=no
14737 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14738 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14739 hardcode_into_libs=yes
14740 ;;
14741
14742# No shared lib support for Linux oldld, aout, or coff.
14743linux*oldld* | linux*aout* | linux*coff*)
14744 dynamic_linker=no
14745 ;;
14746
14747# This must be Linux ELF.
14748linux*)
14749 version_type=linux
14750 need_lib_prefix=no
14751 need_version=no
14752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14753 soname_spec='${libname}${release}${shared_ext}$major'
14754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14755 shlibpath_var=LD_LIBRARY_PATH
14756 shlibpath_overrides_runpath=no
14757 # This implies no fast_install, which is unacceptable.
14758 # Some rework will be needed to allow for fast_install
14759 # before this can be enabled.
14760 hardcode_into_libs=yes
14761
14762 # /usr/X11R6/lib and /usr/local/lib are common enough...
14763 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
14764
14765 # We used to test for /lib/ld.so.1 and disable shared libraries on
14766 # powerpc, because MkLinux only supported shared libraries with the
14767 # GNU dynamic linker. Since this was broken with cross compilers,
14768 # most powerpc-linux boxes support dynamic linking these days and
14769 # people can always --disable-shared, the test was removed, and we
14770 # assume the GNU/Linux dynamic linker is in use.
14771 dynamic_linker='GNU/Linux ld.so'
14772 ;;
14773
14774knetbsd*-gnu)
14775 version_type=linux
14776 need_lib_prefix=no
14777 need_version=no
14778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14779 soname_spec='${libname}${release}${shared_ext}$major'
14780 shlibpath_var=LD_LIBRARY_PATH
14781 shlibpath_overrides_runpath=no
14782 hardcode_into_libs=yes
14783 dynamic_linker='GNU ld.so'
14784 ;;
14785
14786netbsd*)
14787 version_type=sunos
14788 need_lib_prefix=no
14789 need_version=no
14790 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14793 dynamic_linker='NetBSD (a.out) ld.so'
14794 else
14795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14796 soname_spec='${libname}${release}${shared_ext}$major'
14797 dynamic_linker='NetBSD ld.elf_so'
14798 fi
14799 shlibpath_var=LD_LIBRARY_PATH
14800 shlibpath_overrides_runpath=yes
14801 hardcode_into_libs=yes
14802 ;;
14803
14804newsos6)
14805 version_type=linux
14806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14807 shlibpath_var=LD_LIBRARY_PATH
14808 shlibpath_overrides_runpath=yes
14809 ;;
14810
14811nto-qnx*)
14812 version_type=linux
14813 need_lib_prefix=no
14814 need_version=no
14815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14816 soname_spec='${libname}${release}${shared_ext}$major'
14817 shlibpath_var=LD_LIBRARY_PATH
14818 shlibpath_overrides_runpath=yes
14819 ;;
14820
14821openbsd*)
14822 version_type=sunos
14823 need_lib_prefix=no
14824 need_version=yes
14825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14827 shlibpath_var=LD_LIBRARY_PATH
14828 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14829 case $host_os in
14830 openbsd2.[89] | openbsd2.[89].*)
14831 shlibpath_overrides_runpath=no
14832 ;;
14833 *)
14834 shlibpath_overrides_runpath=yes
14835 ;;
14836 esac
14837 else
14838 shlibpath_overrides_runpath=yes
14839 fi
14840 ;;
14841
14842os2*)
14843 libname_spec='$name'
14844 shrext=".dll"
14845 need_lib_prefix=no
14846 library_names_spec='$libname${shared_ext} $libname.a'
14847 dynamic_linker='OS/2 ld.exe'
14848 shlibpath_var=LIBPATH
14849 ;;
14850
14851osf3* | osf4* | osf5*)
14852 version_type=osf
14853 need_lib_prefix=no
14854 need_version=no
14855 soname_spec='${libname}${release}${shared_ext}$major'
14856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14857 shlibpath_var=LD_LIBRARY_PATH
14858 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14859 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14860 ;;
14861
14862sco3.2v5*)
14863 version_type=osf
14864 soname_spec='${libname}${release}${shared_ext}$major'
14865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14866 shlibpath_var=LD_LIBRARY_PATH
14867 ;;
14868
14869solaris*)
14870 version_type=linux
14871 need_lib_prefix=no
14872 need_version=no
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14874 soname_spec='${libname}${release}${shared_ext}$major'
14875 shlibpath_var=LD_LIBRARY_PATH
14876 shlibpath_overrides_runpath=yes
14877 hardcode_into_libs=yes
14878 # ldd complains unless libraries are executable
14879 postinstall_cmds='chmod +x $lib'
14880 ;;
14881
14882sunos4*)
14883 version_type=sunos
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14885 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14886 shlibpath_var=LD_LIBRARY_PATH
14887 shlibpath_overrides_runpath=yes
14888 if test "$with_gnu_ld" = yes; then
14889 need_lib_prefix=no
14890 fi
14891 need_version=yes
14892 ;;
14893
14894sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14895 version_type=linux
14896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14897 soname_spec='${libname}${release}${shared_ext}$major'
14898 shlibpath_var=LD_LIBRARY_PATH
14899 case $host_vendor in
14900 sni)
14901 shlibpath_overrides_runpath=no
14902 need_lib_prefix=no
14903 export_dynamic_flag_spec='${wl}-Blargedynsym'
14904 runpath_var=LD_RUN_PATH
14905 ;;
14906 siemens)
14907 need_lib_prefix=no
14908 ;;
14909 motorola)
14910 need_lib_prefix=no
14911 need_version=no
14912 shlibpath_overrides_runpath=no
14913 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14914 ;;
14915 esac
14916 ;;
14917
14918sysv4*MP*)
14919 if test -d /usr/nec ;then
14920 version_type=linux
14921 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14922 soname_spec='$libname${shared_ext}.$major'
14923 shlibpath_var=LD_LIBRARY_PATH
14924 fi
14925 ;;
14926
14927uts4*)
14928 version_type=linux
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930 soname_spec='${libname}${release}${shared_ext}$major'
14931 shlibpath_var=LD_LIBRARY_PATH
14932 ;;
14933
14934*)
14935 dynamic_linker=no
14936 ;;
14937esac
14938echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14939echo "${ECHO_T}$dynamic_linker" >&6
14940test "$dynamic_linker" = no && can_build_shared=no
14941
14942echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14943echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14944hardcode_action_F77=
14945if test -n "$hardcode_libdir_flag_spec_F77" || \
14946 test -n "$runpath_var F77" || \
14947 test "X$hardcode_automatic_F77"="Xyes" ; then
14948
14949 # We can hardcode non-existant directories.
14950 if test "$hardcode_direct_F77" != no &&
14951 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14952 # have to relink, otherwise we might link with an installed library
14953 # when we should be linking with a yet-to-be-installed one
14954 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14955 test "$hardcode_minus_L_F77" != no; then
14956 # Linking always hardcodes the temporary library directory.
14957 hardcode_action_F77=relink
14958 else
14959 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14960 hardcode_action_F77=immediate
14961 fi
14962else
14963 # We cannot hardcode anything, or else we can only hardcode existing
14964 # directories.
14965 hardcode_action_F77=unsupported
14966fi
14967echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14968echo "${ECHO_T}$hardcode_action_F77" >&6
14969
14970if test "$hardcode_action_F77" = relink; then
14971 # Fast installation is not supported
14972 enable_fast_install=no
14973elif test "$shlibpath_overrides_runpath" = yes ||
14974 test "$enable_shared" = no; then
14975 # Fast installation is not necessary
14976 enable_fast_install=needless
14977fi
14978
14979striplib=
14980old_striplib=
14981echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14982echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14983if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14984 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14985 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14986 echo "$as_me:$LINENO: result: yes" >&5
14987echo "${ECHO_T}yes" >&6
14988else
14989# FIXME - insert some real tests, host_os isn't really good enough
14990 case $host_os in
14991 darwin*)
14992 if test -n "$STRIP" ; then
14993 striplib="$STRIP -x"
14994 echo "$as_me:$LINENO: result: yes" >&5
14995echo "${ECHO_T}yes" >&6
14996 else
14997 echo "$as_me:$LINENO: result: no" >&5
14998echo "${ECHO_T}no" >&6
14999fi
15000 ;;
15001 *)
15002 echo "$as_me:$LINENO: result: no" >&5
15003echo "${ECHO_T}no" >&6
15004 ;;
15005 esac
15006fi
15007
15008
15009
15010# The else clause should only fire when bootstrapping the
15011# libtool distribution, otherwise you forgot to ship ltmain.sh
15012# with your package, and you will get complaints that there are
15013# no rules to generate ltmain.sh.
15014if test -f "$ltmain"; then
15015 # See if we are running on zsh, and set the options which allow our commands through
15016 # without removal of \ escapes.
15017 if test -n "${ZSH_VERSION+set}" ; then
15018 setopt NO_GLOB_SUBST
15019 fi
15020 # Now quote all the things that may contain metacharacters while being
15021 # careful not to overquote the AC_SUBSTed values. We take copies of the
15022 # variables and quote the copies for generation of the libtool script.
15023 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15024 SED SHELL STRIP \
15025 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15026 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15027 deplibs_check_method reload_flag reload_cmds need_locks \
15028 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15029 lt_cv_sys_global_symbol_to_c_name_address \
15030 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15031 old_postinstall_cmds old_postuninstall_cmds \
15032 compiler_F77 \
15033 CC_F77 \
15034 LD_F77 \
15035 lt_prog_compiler_wl_F77 \
15036 lt_prog_compiler_pic_F77 \
15037 lt_prog_compiler_static_F77 \
15038 lt_prog_compiler_no_builtin_flag_F77 \
15039 export_dynamic_flag_spec_F77 \
15040 thread_safe_flag_spec_F77 \
15041 whole_archive_flag_spec_F77 \
15042 enable_shared_with_static_runtimes_F77 \
15043 old_archive_cmds_F77 \
15044 old_archive_from_new_cmds_F77 \
15045 predep_objects_F77 \
15046 postdep_objects_F77 \
15047 predeps_F77 \
15048 postdeps_F77 \
15049 compiler_lib_search_path_F77 \
15050 archive_cmds_F77 \
15051 archive_expsym_cmds_F77 \
15052 postinstall_cmds_F77 \
15053 postuninstall_cmds_F77 \
15054 old_archive_from_expsyms_cmds_F77 \
15055 allow_undefined_flag_F77 \
15056 no_undefined_flag_F77 \
15057 export_symbols_cmds_F77 \
15058 hardcode_libdir_flag_spec_F77 \
15059 hardcode_libdir_flag_spec_ld_F77 \
15060 hardcode_libdir_separator_F77 \
15061 hardcode_automatic_F77 \
15062 module_cmds_F77 \
15063 module_expsym_cmds_F77 \
15064 lt_cv_prog_compiler_c_o_F77 \
15065 exclude_expsyms_F77 \
15066 include_expsyms_F77; do
15067
15068 case $var in
15069 old_archive_cmds_F77 | \
15070 old_archive_from_new_cmds_F77 | \
15071 archive_cmds_F77 | \
15072 archive_expsym_cmds_F77 | \
15073 module_cmds_F77 | \
15074 module_expsym_cmds_F77 | \
15075 old_archive_from_expsyms_cmds_F77 | \
15076 export_symbols_cmds_F77 | \
15077 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15078 postinstall_cmds | postuninstall_cmds | \
15079 old_postinstall_cmds | old_postuninstall_cmds | \
15080 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15081 # Double-quote double-evaled strings.
15082 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15083 ;;
15084 *)
15085 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15086 ;;
15087 esac
15088 done
15089
15090 case $lt_echo in
15091 *'\$0 --fallback-echo"')
15092 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15093 ;;
15094 esac
15095
15096cfgfile="$ofile"
15097
15098 cat <<__EOF__ >> "$cfgfile"
15099# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15100
15101# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15102
15103# Shell to use when invoking shell scripts.
15104SHELL=$lt_SHELL
15105
15106# Whether or not to build shared libraries.
15107build_libtool_libs=$enable_shared
15108
15109# Whether or not to build static libraries.
15110build_old_libs=$enable_static
15111
15112# Whether or not to add -lc for building shared libraries.
15113build_libtool_need_lc=$archive_cmds_need_lc_F77
15114
15115# Whether or not to disallow shared libs when runtime libs are static
15116allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15117
15118# Whether or not to optimize for fast installation.
15119fast_install=$enable_fast_install
15120
15121# The host system.
15122host_alias=$host_alias
15123host=$host
15124
15125# An echo program that does not interpret backslashes.
15126echo=$lt_echo
15127
15128# The archiver.
15129AR=$lt_AR
15130AR_FLAGS=$lt_AR_FLAGS
15131
15132# A C compiler.
15133LTCC=$lt_LTCC
15134
15135# A language-specific compiler.
15136CC=$lt_compiler_F77
15137
15138# Is the compiler the GNU C compiler?
15139with_gcc=$GCC_F77
15140
15141# An ERE matcher.
15142EGREP=$lt_EGREP
15143
15144# The linker used to build libraries.
15145LD=$lt_LD_F77
15146
15147# Whether we need hard or soft links.
15148LN_S=$lt_LN_S
15149
15150# A BSD-compatible nm program.
15151NM=$lt_NM
15152
15153# A symbol stripping program
15154STRIP=$lt_STRIP
15155
15156# Used to examine libraries when file_magic_cmd begins "file"
15157MAGIC_CMD=$MAGIC_CMD
15158
15159# Used on cygwin: DLL creation program.
15160DLLTOOL="$DLLTOOL"
15161
15162# Used on cygwin: object dumper.
15163OBJDUMP="$OBJDUMP"
15164
15165# Used on cygwin: assembler.
15166AS="$AS"
15167
15168# The name of the directory that contains temporary libtool files.
15169objdir=$objdir
15170
15171# How to create reloadable object files.
15172reload_flag=$lt_reload_flag
15173reload_cmds=$lt_reload_cmds
15174
15175# How to pass a linker flag through the compiler.
15176wl=$lt_lt_prog_compiler_wl_F77
15177
15178# Object file suffix (normally "o").
15179objext="$ac_objext"
15180
15181# Old archive suffix (normally "a").
15182libext="$libext"
15183
15184# Shared library suffix (normally ".so").
15185shrext='$shrext'
15186
15187# Executable file suffix (normally "").
15188exeext="$exeext"
15189
15190# Additional compiler flags for building library objects.
15191pic_flag=$lt_lt_prog_compiler_pic_F77
15192pic_mode=$pic_mode
15193
15194# What is the maximum length of a command?
15195max_cmd_len=$lt_cv_sys_max_cmd_len
15196
15197# Does compiler simultaneously support -c and -o options?
15198compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15199
15200# Must we lock files when doing compilation ?
15201need_locks=$lt_need_locks
15202
15203# Do we need the lib prefix for modules?
15204need_lib_prefix=$need_lib_prefix
15205
15206# Do we need a version for libraries?
15207need_version=$need_version
15208
15209# Whether dlopen is supported.
15210dlopen_support=$enable_dlopen
15211
15212# Whether dlopen of programs is supported.
15213dlopen_self=$enable_dlopen_self
15214
15215# Whether dlopen of statically linked programs is supported.
15216dlopen_self_static=$enable_dlopen_self_static
15217
15218# Compiler flag to prevent dynamic linking.
15219link_static_flag=$lt_lt_prog_compiler_static_F77
15220
15221# Compiler flag to turn off builtin functions.
15222no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15223
15224# Compiler flag to allow reflexive dlopens.
15225export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15226
15227# Compiler flag to generate shared objects directly from archives.
15228whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15229
15230# Compiler flag to generate thread-safe objects.
15231thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15232
15233# Library versioning type.
15234version_type=$version_type
15235
15236# Format of library name prefix.
15237libname_spec=$lt_libname_spec
15238
15239# List of archive names. First name is the real one, the rest are links.
15240# The last name is the one that the linker finds with -lNAME.
15241library_names_spec=$lt_library_names_spec
15242
15243# The coded name of the library, if different from the real name.
15244soname_spec=$lt_soname_spec
15245
15246# Commands used to build and install an old-style archive.
15247RANLIB=$lt_RANLIB
15248old_archive_cmds=$lt_old_archive_cmds_F77
15249old_postinstall_cmds=$lt_old_postinstall_cmds
15250old_postuninstall_cmds=$lt_old_postuninstall_cmds
15251
15252# Create an old-style archive from a shared archive.
15253old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15254
15255# Create a temporary old-style archive to link instead of a shared archive.
15256old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15257
15258# Commands used to build and install a shared archive.
15259archive_cmds=$lt_archive_cmds_F77
15260archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15261postinstall_cmds=$lt_postinstall_cmds
15262postuninstall_cmds=$lt_postuninstall_cmds
15263
15264# Commands used to build a loadable module (assumed same as above if empty)
15265module_cmds=$lt_module_cmds_F77
15266module_expsym_cmds=$lt_module_expsym_cmds_F77
15267
15268# Commands to strip libraries.
15269old_striplib=$lt_old_striplib
15270striplib=$lt_striplib
15271
15272# Dependencies to place before the objects being linked to create a
15273# shared library.
15274predep_objects=$lt_predep_objects_F77
15275
15276# Dependencies to place after the objects being linked to create a
15277# shared library.
15278postdep_objects=$lt_postdep_objects_F77
15279
15280# Dependencies to place before the objects being linked to create a
15281# shared library.
15282predeps=$lt_predeps_F77
15283
15284# Dependencies to place after the objects being linked to create a
15285# shared library.
15286postdeps=$lt_postdeps_F77
15287
15288# The library search path used internally by the compiler when linking
15289# a shared library.
15290compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15291
15292# Method to check whether dependent libraries are shared objects.
15293deplibs_check_method=$lt_deplibs_check_method
15294
15295# Command to use when deplibs_check_method == file_magic.
15296file_magic_cmd=$lt_file_magic_cmd
15297
15298# Flag that allows shared libraries with undefined symbols to be built.
15299allow_undefined_flag=$lt_allow_undefined_flag_F77
15300
15301# Flag that forces no undefined symbols.
15302no_undefined_flag=$lt_no_undefined_flag_F77
15303
15304# Commands used to finish a libtool library installation in a directory.
15305finish_cmds=$lt_finish_cmds
15306
15307# Same as above, but a single script fragment to be evaled but not shown.
15308finish_eval=$lt_finish_eval
15309
15310# Take the output of nm and produce a listing of raw symbols and C names.
15311global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15312
15313# Transform the output of nm in a proper C declaration
15314global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15315
15316# Transform the output of nm in a C name address pair
15317global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15318
15319# This is the shared library runtime path variable.
15320runpath_var=$runpath_var
15321
15322# This is the shared library path variable.
15323shlibpath_var=$shlibpath_var
15324
15325# Is shlibpath searched before the hard-coded library search path?
15326shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15327
15328# How to hardcode a shared library path into an executable.
15329hardcode_action=$hardcode_action_F77
15330
15331# Whether we should hardcode library paths into libraries.
15332hardcode_into_libs=$hardcode_into_libs
15333
15334# Flag to hardcode \$libdir into a binary during linking.
15335# This must work even if \$libdir does not exist.
15336hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15337
15338# If ld is used when linking, flag to hardcode \$libdir into
15339# a binary during linking. This must work even if \$libdir does
15340# not exist.
15341hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15342
15343# Whether we need a single -rpath flag with a separated argument.
15344hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15345
15346# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15347# resulting binary.
15348hardcode_direct=$hardcode_direct_F77
15349
15350# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15351# resulting binary.
15352hardcode_minus_L=$hardcode_minus_L_F77
15353
15354# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15355# the resulting binary.
15356hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15357
15358# Set to yes if building a shared library automatically hardcodes DIR into the library
15359# and all subsequent libraries and executables linked against it.
15360hardcode_automatic=$hardcode_automatic_F77
15361
15362# Variables whose values should be saved in libtool wrapper scripts and
15363# restored at relink time.
15364variables_saved_for_relink="$variables_saved_for_relink"
15365
15366# Whether libtool must link a program against all its dependency libraries.
15367link_all_deplibs=$link_all_deplibs_F77
15368
15369# Compile-time system search path for libraries
15370sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15371
15372# Run-time system search path for libraries
15373sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15374
15375# Fix the shell variable \$srcfile for the compiler.
15376fix_srcfile_path="$fix_srcfile_path_F77"
15377
15378# Set to yes if exported symbols are required.
15379always_export_symbols=$always_export_symbols_F77
15380
15381# The commands to list exported symbols.
15382export_symbols_cmds=$lt_export_symbols_cmds_F77
15383
15384# The commands to extract the exported symbol list from a shared archive.
15385extract_expsyms_cmds=$lt_extract_expsyms_cmds
15386
15387# Symbols that should not be listed in the preloaded symbols.
15388exclude_expsyms=$lt_exclude_expsyms_F77
15389
15390# Symbols that must always be exported.
15391include_expsyms=$lt_include_expsyms_F77
15392
15393# ### END LIBTOOL TAG CONFIG: $tagname
15394
15395__EOF__
15396
15397
15398else
15399 # If there is no Makefile yet, we rely on a make rule to execute
15400 # `config.status --recheck' to rerun these tests and create the
15401 # libtool script then.
15402 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15403 if test -f "$ltmain_in"; then
15404 test -f Makefile && make "$ltmain"
15405 fi
15406fi
15407
15408
15409ac_ext=c
15410ac_cpp='$CPP $CPPFLAGS'
15411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15413ac_compiler_gnu=$ac_cv_c_compiler_gnu
15414
15415CC="$lt_save_CC"
15416
15417 else
15418 tagname=""
15419 fi
15420 ;;
15421
15422 GCJ)
15423 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15424
15425
15426
15427# Source file extension for Java test sources.
15428ac_ext=java
15429
15430# Object file extension for compiled Java test sources.
15431objext=o
15432objext_GCJ=$objext
15433
15434# Code to be used in simple compile tests
15435lt_simple_compile_test_code="class foo {}\n"
15436
15437# Code to be used in simple link tests
15438lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15439
15440# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15441
15442# If no C compiler was specified, use CC.
15443LTCC=${LTCC-"$CC"}
15444
15445# Allow CC to be a program name with arguments.
15446compiler=$CC
15447
15448
15449# Allow CC to be a program name with arguments.
15450lt_save_CC="$CC"
15451CC=${GCJ-"gcj"}
15452compiler=$CC
15453compiler_GCJ=$CC
15454
15455# GCJ did not exist at the time GCC didn't implicitly link libc in.
15456archive_cmds_need_lc_GCJ=no
15457
15458
15459lt_prog_compiler_no_builtin_flag_GCJ=
15460
15461if test "$GCC" = yes; then
15462 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15463
15464
15465echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15466echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15467if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15468 echo $ECHO_N "(cached) $ECHO_C" >&6
15469else
15470 lt_cv_prog_compiler_rtti_exceptions=no
15471 ac_outfile=conftest.$ac_objext
15472 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15473 lt_compiler_flag="-fno-rtti -fno-exceptions"
15474 # Insert the option either (1) after the last *FLAGS variable, or
15475 # (2) before a word containing "conftest.", or (3) at the end.
15476 # Note that $ac_compile itself does not contain backslashes and begins
15477 # with a dollar sign (not a hyphen), so the echo should work correctly.
15478 # The option is referenced via a variable to avoid confusing sed.
15479 lt_compile=`echo "$ac_compile" | $SED \
15480 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15482 -e 's:$: $lt_compiler_flag:'`
15483 (eval echo "\"\$as_me:15483: $lt_compile\"" >&5)
15484 (eval "$lt_compile" 2>conftest.err)
15485 ac_status=$?
15486 cat conftest.err >&5
15487 echo "$as_me:15487: \$? = $ac_status" >&5
15488 if (exit $ac_status) && test -s "$ac_outfile"; then
15489 # The compiler can only warn and ignore the option if not recognized
15490 # So say no if there are warnings
15491 if test ! -s conftest.err; then
15492 lt_cv_prog_compiler_rtti_exceptions=yes
15493 fi
15494 fi
15495 $rm conftest*
15496
15497fi
15498echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15499echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15500
15501if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15502 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15503else
15504 :
15505fi
15506
15507fi
15508
15509lt_prog_compiler_wl_GCJ=
15510lt_prog_compiler_pic_GCJ=
15511lt_prog_compiler_static_GCJ=
15512
15513echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15514echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15515
15516 if test "$GCC" = yes; then
15517 lt_prog_compiler_wl_GCJ='-Wl,'
15518 lt_prog_compiler_static_GCJ='-static'
15519
15520 case $host_os in
15521 aix*)
15522 # All AIX code is PIC.
15523 if test "$host_cpu" = ia64; then
15524 # AIX 5 now supports IA64 processor
15525 lt_prog_compiler_static_GCJ='-Bstatic'
15526 fi
15527 ;;
15528
15529 amigaos*)
15530 # FIXME: we need at least 68020 code to build shared libraries, but
15531 # adding the `-m68020' flag to GCC prevents building anything better,
15532 # like `-m68040'.
15533 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15534 ;;
15535
15536 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15537 # PIC is the default for these OSes.
15538 ;;
15539
15540 mingw* | pw32* | os2*)
15541 # This hack is so that the source file can tell whether it is being
15542 # built for inclusion in a dll (and should export symbols for example).
15543 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15544 ;;
15545
15546 darwin* | rhapsody*)
15547 # PIC is the default on this platform
15548 # Common symbols not allowed in MH_DYLIB files
15549 lt_prog_compiler_pic_GCJ='-fno-common'
15550 ;;
15551
15552 msdosdjgpp*)
15553 # Just because we use GCC doesn't mean we suddenly get shared libraries
15554 # on systems that don't support them.
15555 lt_prog_compiler_can_build_shared_GCJ=no
15556 enable_shared=no
15557 ;;
15558
15559 sysv4*MP*)
15560 if test -d /usr/nec; then
15561 lt_prog_compiler_pic_GCJ=-Kconform_pic
15562 fi
15563 ;;
15564
15565 hpux*)
15566 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15567 # not for PA HP-UX.
15568 case "$host_cpu" in
15569 hppa*64*|ia64*)
15570 # +Z the default
15571 ;;
15572 *)
15573 lt_prog_compiler_pic_GCJ='-fPIC'
15574 ;;
15575 esac
15576 ;;
15577
15578 *)
15579 lt_prog_compiler_pic_GCJ='-fPIC'
15580 ;;
15581 esac
15582 else
15583 # PORTME Check for flag to pass linker flags through the system compiler.
15584 case $host_os in
15585 aix*)
15586 lt_prog_compiler_wl_GCJ='-Wl,'
15587 if test "$host_cpu" = ia64; then
15588 # AIX 5 now supports IA64 processor
15589 lt_prog_compiler_static_GCJ='-Bstatic'
15590 else
15591 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15592 fi
15593 ;;
15594
15595 mingw* | pw32* | os2*)
15596 # This hack is so that the source file can tell whether it is being
15597 # built for inclusion in a dll (and should export symbols for example).
15598 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15599 ;;
15600
15601 hpux9* | hpux10* | hpux11*)
15602 lt_prog_compiler_wl_GCJ='-Wl,'
15603 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15604 # not for PA HP-UX.
15605 case "$host_cpu" in
15606 hppa*64*|ia64*)
15607 # +Z the default
15608 ;;
15609 *)
15610 lt_prog_compiler_pic_GCJ='+Z'
15611 ;;
15612 esac
15613 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15614 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15615 ;;
15616
15617 irix5* | irix6* | nonstopux*)
15618 lt_prog_compiler_wl_GCJ='-Wl,'
15619 # PIC (with -KPIC) is the default.
15620 lt_prog_compiler_static_GCJ='-non_shared'
15621 ;;
15622
15623 newsos6)
15624 lt_prog_compiler_pic_GCJ='-KPIC'
15625 lt_prog_compiler_static_GCJ='-Bstatic'
15626 ;;
15627
15628 linux*)
15629 case $CC in
15630 icc* | ecc*)
15631 lt_prog_compiler_wl_GCJ='-Wl,'
15632 lt_prog_compiler_pic_GCJ='-KPIC'
15633 lt_prog_compiler_static_GCJ='-static'
15634 ;;
15635 ccc*)
15636 lt_prog_compiler_wl_GCJ='-Wl,'
15637 # All Alpha code is PIC.
15638 lt_prog_compiler_static_GCJ='-non_shared'
15639 ;;
15640 esac
15641 ;;
15642
15643 osf3* | osf4* | osf5*)
15644 lt_prog_compiler_wl_GCJ='-Wl,'
15645 # All OSF/1 code is PIC.
15646 lt_prog_compiler_static_GCJ='-non_shared'
15647 ;;
15648
15649 sco3.2v5*)
15650 lt_prog_compiler_pic_GCJ='-Kpic'
15651 lt_prog_compiler_static_GCJ='-dn'
15652 ;;
15653
15654 solaris*)
15655 lt_prog_compiler_wl_GCJ='-Wl,'
15656 lt_prog_compiler_pic_GCJ='-KPIC'
15657 lt_prog_compiler_static_GCJ='-Bstatic'
15658 ;;
15659
15660 sunos4*)
15661 lt_prog_compiler_wl_GCJ='-Qoption ld '
15662 lt_prog_compiler_pic_GCJ='-PIC'
15663 lt_prog_compiler_static_GCJ='-Bstatic'
15664 ;;
15665
15666 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15667 lt_prog_compiler_wl_GCJ='-Wl,'
15668 lt_prog_compiler_pic_GCJ='-KPIC'
15669 lt_prog_compiler_static_GCJ='-Bstatic'
15670 ;;
15671
15672 sysv4*MP*)
15673 if test -d /usr/nec ;then
15674 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15675 lt_prog_compiler_static_GCJ='-Bstatic'
15676 fi
15677 ;;
15678
15679 uts4*)
15680 lt_prog_compiler_pic_GCJ='-pic'
15681 lt_prog_compiler_static_GCJ='-Bstatic'
15682 ;;
15683
15684 *)
15685 lt_prog_compiler_can_build_shared_GCJ=no
15686 ;;
15687 esac
15688 fi
15689
15690echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15691echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15692
15693#
15694# Check to make sure the PIC flag actually works.
15695#
15696if test -n "$lt_prog_compiler_pic_GCJ"; then
15697
15698echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15699echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15700if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15702else
15703 lt_prog_compiler_pic_works_GCJ=no
15704 ac_outfile=conftest.$ac_objext
15705 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15706 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15707 # Insert the option either (1) after the last *FLAGS variable, or
15708 # (2) before a word containing "conftest.", or (3) at the end.
15709 # Note that $ac_compile itself does not contain backslashes and begins
15710 # with a dollar sign (not a hyphen), so the echo should work correctly.
15711 # The option is referenced via a variable to avoid confusing sed.
15712 lt_compile=`echo "$ac_compile" | $SED \
15713 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15715 -e 's:$: $lt_compiler_flag:'`
15716 (eval echo "\"\$as_me:15716: $lt_compile\"" >&5)
15717 (eval "$lt_compile" 2>conftest.err)
15718 ac_status=$?
15719 cat conftest.err >&5
15720 echo "$as_me:15720: \$? = $ac_status" >&5
15721 if (exit $ac_status) && test -s "$ac_outfile"; then
15722 # The compiler can only warn and ignore the option if not recognized
15723 # So say no if there are warnings
15724 if test ! -s conftest.err; then
15725 lt_prog_compiler_pic_works_GCJ=yes
15726 fi
15727 fi
15728 $rm conftest*
15729
15730fi
15731echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15732echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15733
15734if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15735 case $lt_prog_compiler_pic_GCJ in
15736 "" | " "*) ;;
15737 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15738 esac
15739else
15740 lt_prog_compiler_pic_GCJ=
15741 lt_prog_compiler_can_build_shared_GCJ=no
15742fi
15743
15744fi
15745case "$host_os" in
15746 # For platforms which do not support PIC, -DPIC is meaningless:
15747 *djgpp*)
15748 lt_prog_compiler_pic_GCJ=
15749 ;;
15750 *)
15751 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15752 ;;
15753esac
15754
15755echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15756echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15757if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15758 echo $ECHO_N "(cached) $ECHO_C" >&6
15759else
15760 lt_cv_prog_compiler_c_o_GCJ=no
15761 $rm -r conftest 2>/dev/null
15762 mkdir conftest
15763 cd conftest
15764 mkdir out
15765 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15766
15767 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15768 # that will create temporary files in the current directory regardless of
15769 # the output directory. Thus, making CWD read-only will cause this test
15770 # to fail, enabling locking or at least warning the user not to do parallel
15771 # builds.
15772 chmod -w .
15773
15774 lt_compiler_flag="-o out/conftest2.$ac_objext"
15775 # Insert the option either (1) after the last *FLAGS variable, or
15776 # (2) before a word containing "conftest.", or (3) at the end.
15777 # Note that $ac_compile itself does not contain backslashes and begins
15778 # with a dollar sign (not a hyphen), so the echo should work correctly.
15779 lt_compile=`echo "$ac_compile" | $SED \
15780 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15782 -e 's:$: $lt_compiler_flag:'`
15783 (eval echo "\"\$as_me:15783: $lt_compile\"" >&5)
15784 (eval "$lt_compile" 2>out/conftest.err)
15785 ac_status=$?
15786 cat out/conftest.err >&5
15787 echo "$as_me:15787: \$? = $ac_status" >&5
15788 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15789 then
15790 # The compiler can only warn and ignore the option if not recognized
15791 # So say no if there are warnings
15792 if test ! -s out/conftest.err; then
15793 lt_cv_prog_compiler_c_o_GCJ=yes
15794 fi
15795 fi
15796 chmod u+w .
15797 $rm conftest*
15798 # SGI C++ compiler will create directory out/ii_files/ for
15799 # template instantiation
15800 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15801 $rm out/* && rmdir out
15802 cd ..
15803 rmdir conftest
15804 $rm conftest*
15805
15806fi
15807echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15808echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15809
15810
15811hard_links="nottested"
15812if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15813 # do not overwrite the value of need_locks provided by the user
15814 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15815echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15816 hard_links=yes
15817 $rm conftest*
15818 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15819 touch conftest.a
15820 ln conftest.a conftest.b 2>&5 || hard_links=no
15821 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15822 echo "$as_me:$LINENO: result: $hard_links" >&5
15823echo "${ECHO_T}$hard_links" >&6
15824 if test "$hard_links" = no; then
15825 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15826echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15827 need_locks=warn
15828 fi
15829else
15830 need_locks=no
15831fi
15832
15833echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15834echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15835
15836 runpath_var=
15837 allow_undefined_flag_GCJ=
15838 enable_shared_with_static_runtimes_GCJ=no
15839 archive_cmds_GCJ=
15840 archive_expsym_cmds_GCJ=
15841 old_archive_From_new_cmds_GCJ=
15842 old_archive_from_expsyms_cmds_GCJ=
15843 export_dynamic_flag_spec_GCJ=
15844 whole_archive_flag_spec_GCJ=
15845 thread_safe_flag_spec_GCJ=
15846 hardcode_libdir_flag_spec_GCJ=
15847 hardcode_libdir_flag_spec_ld_GCJ=
15848 hardcode_libdir_separator_GCJ=
15849 hardcode_direct_GCJ=no
15850 hardcode_minus_L_GCJ=no
15851 hardcode_shlibpath_var_GCJ=unsupported
15852 link_all_deplibs_GCJ=unknown
15853 hardcode_automatic_GCJ=no
15854 module_cmds_GCJ=
15855 module_expsym_cmds_GCJ=
15856 always_export_symbols_GCJ=no
15857 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15858 # include_expsyms should be a list of space-separated symbols to be *always*
15859 # included in the symbol list
15860 include_expsyms_GCJ=
15861 # exclude_expsyms can be an extended regexp of symbols to exclude
15862 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15863 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15864 # as well as any symbol that contains `d'.
15865 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15866 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15867 # platforms (ab)use it in PIC code, but their linkers get confused if
15868 # the symbol is explicitly referenced. Since portable code cannot
15869 # rely on this symbol name, it's probably fine to never include it in
15870 # preloaded symbol tables.
15871 extract_expsyms_cmds=
15872
15873 case $host_os in
15874 cygwin* | mingw* | pw32*)
15875 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15876 # When not using gcc, we currently assume that we are using
15877 # Microsoft Visual C++.
15878 if test "$GCC" != yes; then
15879 with_gnu_ld=no
15880 fi
15881 ;;
15882 openbsd*)
15883 with_gnu_ld=no
15884 ;;
15885 esac
15886
15887 ld_shlibs_GCJ=yes
15888 if test "$with_gnu_ld" = yes; then
15889 # If archive_cmds runs LD, not CC, wlarc should be empty
15890 wlarc='${wl}'
15891
15892 # See if GNU ld supports shared libraries.
15893 case $host_os in
15894 aix3* | aix4* | aix5*)
15895 # On AIX/PPC, the GNU linker is very broken
15896 if test "$host_cpu" != ia64; then
15897 ld_shlibs_GCJ=no
15898 cat <<EOF 1>&2
15899
15900*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15901*** to be unable to reliably create shared libraries on AIX.
15902*** Therefore, libtool is disabling shared libraries support. If you
15903*** really care for shared libraries, you may want to modify your PATH
15904*** so that a non-GNU linker is found, and then restart.
15905
15906EOF
15907 fi
15908 ;;
15909
15910 amigaos*)
15911 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)'
15912 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15913 hardcode_minus_L_GCJ=yes
15914
15915 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15916 # that the semantics of dynamic libraries on AmigaOS, at least up
15917 # to version 4, is to share data among multiple programs linked
15918 # with the same dynamic library. Since this doesn't match the
15919 # behavior of shared libraries on other platforms, we can't use
15920 # them.
15921 ld_shlibs_GCJ=no
15922 ;;
15923
15924 beos*)
15925 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15926 allow_undefined_flag_GCJ=unsupported
15927 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15928 # support --undefined. This deserves some investigation. FIXME
15929 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15930 else
15931 ld_shlibs_GCJ=no
15932 fi
15933 ;;
15934
15935 cygwin* | mingw* | pw32*)
15936 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15937 # as there is no search path for DLLs.
15938 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15939 allow_undefined_flag_GCJ=unsupported
15940 always_export_symbols_GCJ=no
15941 enable_shared_with_static_runtimes_GCJ=yes
15942 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15943
15944 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15945 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15946 # If the export-symbols file already is a .def file (1st line
15947 # is EXPORTS), use it as is; otherwise, prepend...
15948 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15949 cp $export_symbols $output_objdir/$soname.def;
15950 else
15951 echo EXPORTS > $output_objdir/$soname.def;
15952 cat $export_symbols >> $output_objdir/$soname.def;
15953 fi~
15954 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15955 else
15956 ld_shlibs=no
15957 fi
15958 ;;
15959
15960 netbsd*)
15961 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15962 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15963 wlarc=
15964 else
15965 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15966 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15967 fi
15968 ;;
15969
15970 solaris* | sysv5*)
15971 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15972 ld_shlibs_GCJ=no
15973 cat <<EOF 1>&2
15974
15975*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15976*** create shared libraries on Solaris systems. Therefore, libtool
15977*** is disabling shared libraries support. We urge you to upgrade GNU
15978*** binutils to release 2.9.1 or newer. Another option is to modify
15979*** your PATH or compiler configuration so that the native linker is
15980*** used, and then restart.
15981
15982EOF
15983 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15984 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15985 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15986 else
15987 ld_shlibs_GCJ=no
15988 fi
15989 ;;
15990
15991 sunos4*)
15992 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15993 wlarc=
15994 hardcode_direct_GCJ=yes
15995 hardcode_shlibpath_var_GCJ=no
15996 ;;
15997
15998 linux*)
15999 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16000 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16001 archive_cmds_GCJ="$tmp_archive_cmds"
16002 supports_anon_versioning=no
16003 case `$LD -v 2>/dev/null` in
16004 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16005 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16006 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16007 *\ 2.11.*) ;; # other 2.11 versions
16008 *) supports_anon_versioning=yes ;;
16009 esac
16010 if test $supports_anon_versioning = yes; then
16011 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16012cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16013$echo "local: *; };" >> $output_objdir/$libname.ver~
16014 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16015 else
16016 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16017 fi
16018 else
16019 ld_shlibs_GCJ=no
16020 fi
16021 ;;
16022
16023 *)
16024 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16025 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16026 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16027 else
16028 ld_shlibs_GCJ=no
16029 fi
16030 ;;
16031 esac
16032
16033 if test "$ld_shlibs_GCJ" = yes; then
16034 runpath_var=LD_RUN_PATH
16035 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16036 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16037 # ancient GNU ld didn't support --whole-archive et. al.
16038 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16039 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16040 else
16041 whole_archive_flag_spec_GCJ=
16042 fi
16043 fi
16044 else
16045 # PORTME fill in a description of your system's linker (not GNU ld)
16046 case $host_os in
16047 aix3*)
16048 allow_undefined_flag_GCJ=unsupported
16049 always_export_symbols_GCJ=yes
16050 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'
16051 # Note: this linker hardcodes the directories in LIBPATH if there
16052 # are no directories specified by -L.
16053 hardcode_minus_L_GCJ=yes
16054 if test "$GCC" = yes && test -z "$link_static_flag"; then
16055 # Neither direct hardcoding nor static linking is supported with a
16056 # broken collect2.
16057 hardcode_direct_GCJ=unsupported
16058 fi
16059 ;;
16060
16061 aix4* | aix5*)
16062 if test "$host_cpu" = ia64; then
16063 # On IA64, the linker does run time linking by default, so we don't
16064 # have to do anything special.
16065 aix_use_runtimelinking=no
16066 exp_sym_flag='-Bexport'
16067 no_entry_flag=""
16068 else
16069 # If we're using GNU nm, then we don't want the "-C" option.
16070 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16071 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16072 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'
16073 else
16074 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'
16075 fi
16076 aix_use_runtimelinking=no
16077
16078 # Test if we are trying to use run time linking or normal
16079 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16080 # need to do runtime linking.
16081 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16082 for ld_flag in $LDFLAGS; do
16083 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16084 aix_use_runtimelinking=yes
16085 break
16086 fi
16087 done
16088 esac
16089
16090 exp_sym_flag='-bexport'
16091 no_entry_flag='-bnoentry'
16092 fi
16093
16094 # When large executables or shared objects are built, AIX ld can
16095 # have problems creating the table of contents. If linking a library
16096 # or program results in "error TOC overflow" add -mminimal-toc to
16097 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16098 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16099
16100 archive_cmds_GCJ=''
16101 hardcode_direct_GCJ=yes
16102 hardcode_libdir_separator_GCJ=':'
16103 link_all_deplibs_GCJ=yes
16104
16105 if test "$GCC" = yes; then
16106 case $host_os in aix4.012|aix4.012.*)
16107 # We only want to do this on AIX 4.2 and lower, the check
16108 # below for broken collect2 doesn't work under 4.3+
16109 collect2name=`${CC} -print-prog-name=collect2`
16110 if test -f "$collect2name" && \
16111 strings "$collect2name" | grep resolve_lib_name >/dev/null
16112 then
16113 # We have reworked collect2
16114 hardcode_direct_GCJ=yes
16115 else
16116 # We have old collect2
16117 hardcode_direct_GCJ=unsupported
16118 # It fails to find uninstalled libraries when the uninstalled
16119 # path is not listed in the libpath. Setting hardcode_minus_L
16120 # to unsupported forces relinking
16121 hardcode_minus_L_GCJ=yes
16122 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16123 hardcode_libdir_separator_GCJ=
16124 fi
16125 esac
16126 shared_flag='-shared'
16127 else
16128 # not using gcc
16129 if test "$host_cpu" = ia64; then
16130 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16131 # chokes on -Wl,-G. The following line is correct:
16132 shared_flag='-G'
16133 else
16134 if test "$aix_use_runtimelinking" = yes; then
16135 shared_flag='${wl}-G'
16136 else
16137 shared_flag='${wl}-bM:SRE'
16138 fi
16139 fi
16140 fi
16141
16142 # It seems that -bexpall does not export symbols beginning with
16143 # underscore (_), so it is better to generate a list of symbols to export.
16144 always_export_symbols_GCJ=yes
16145 if test "$aix_use_runtimelinking" = yes; then
16146 # Warning - without using the other runtime loading flags (-brtl),
16147 # -berok will link without error, but may produce a broken library.
16148 allow_undefined_flag_GCJ='-berok'
16149 # Determine the default libpath from the value encoded in an empty executable.
16150 cat >conftest.$ac_ext <<_ACEOF
16151/* confdefs.h. */
16152_ACEOF
16153cat confdefs.h >>conftest.$ac_ext
16154cat >>conftest.$ac_ext <<_ACEOF
16155/* end confdefs.h. */
16156
16157int
16158main ()
16159{
16160
16161 ;
16162 return 0;
16163}
16164_ACEOF
16165rm -f conftest.$ac_objext conftest$ac_exeext
16166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16167 (eval $ac_link) 2>conftest.er1
16168 ac_status=$?
16169 grep -v '^ *+' conftest.er1 >conftest.err
16170 rm -f conftest.er1
16171 cat conftest.err >&5
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } &&
16174 { ac_try='test -z "$ac_c_werror_flag"
16175 || test ! -s conftest.err'
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; } &&
16181 { ac_try='test -s conftest$ac_exeext'
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16184 ac_status=$?
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; }; then
16187
16188aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16189}'`
16190# Check for a 64-bit object if we didn't find anything.
16191if 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; }
16192}'`; fi
16193else
16194 echo "$as_me: failed program was:" >&5
16195sed 's/^/| /' conftest.$ac_ext >&5
16196
16197fi
16198rm -f conftest.err conftest.$ac_objext \
16199 conftest$ac_exeext conftest.$ac_ext
16200if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16201
16202 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16203 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"
16204 else
16205 if test "$host_cpu" = ia64; then
16206 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16207 allow_undefined_flag_GCJ="-z nodefs"
16208 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"
16209 else
16210 # Determine the default libpath from the value encoded in an empty executable.
16211 cat >conftest.$ac_ext <<_ACEOF
16212/* confdefs.h. */
16213_ACEOF
16214cat confdefs.h >>conftest.$ac_ext
16215cat >>conftest.$ac_ext <<_ACEOF
16216/* end confdefs.h. */
16217
16218int
16219main ()
16220{
16221
16222 ;
16223 return 0;
16224}
16225_ACEOF
16226rm -f conftest.$ac_objext conftest$ac_exeext
16227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16228 (eval $ac_link) 2>conftest.er1
16229 ac_status=$?
16230 grep -v '^ *+' conftest.er1 >conftest.err
16231 rm -f conftest.er1
16232 cat conftest.err >&5
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } &&
16235 { ac_try='test -z "$ac_c_werror_flag"
16236 || test ! -s conftest.err'
16237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16238 (eval $ac_try) 2>&5
16239 ac_status=$?
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }; } &&
16242 { ac_try='test -s conftest$ac_exeext'
16243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244 (eval $ac_try) 2>&5
16245 ac_status=$?
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; }; then
16248
16249aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16250}'`
16251# Check for a 64-bit object if we didn't find anything.
16252if 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; }
16253}'`; fi
16254else
16255 echo "$as_me: failed program was:" >&5
16256sed 's/^/| /' conftest.$ac_ext >&5
16257
16258fi
16259rm -f conftest.err conftest.$ac_objext \
16260 conftest$ac_exeext conftest.$ac_ext
16261if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16262
16263 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16264 # Warning - without using the other run time loading flags,
16265 # -berok will link without error, but may produce a broken library.
16266 no_undefined_flag_GCJ=' ${wl}-bernotok'
16267 allow_undefined_flag_GCJ=' ${wl}-berok'
16268 # -bexpall does not export symbols beginning with underscore (_)
16269 always_export_symbols_GCJ=yes
16270 # Exported symbols can be pulled into shared objects from archives
16271 whole_archive_flag_spec_GCJ=' '
16272 archive_cmds_need_lc_GCJ=yes
16273 # This is similar to how AIX traditionally builds it's shared libraries.
16274 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'
16275 fi
16276 fi
16277 ;;
16278
16279 amigaos*)
16280 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)'
16281 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16282 hardcode_minus_L_GCJ=yes
16283 # see comment about different semantics on the GNU ld section
16284 ld_shlibs_GCJ=no
16285 ;;
16286
16287 bsdi4*)
16288 export_dynamic_flag_spec_GCJ=-rdynamic
16289 ;;
16290
16291 cygwin* | mingw* | pw32*)
16292 # When not using gcc, we currently assume that we are using
16293 # Microsoft Visual C++.
16294 # hardcode_libdir_flag_spec is actually meaningless, as there is
16295 # no search path for DLLs.
16296 hardcode_libdir_flag_spec_GCJ=' '
16297 allow_undefined_flag_GCJ=unsupported
16298 # Tell ltmain to make .lib files, not .a files.
16299 libext=lib
16300 # Tell ltmain to make .dll files, not .so files.
16301 shrext=".dll"
16302 # FIXME: Setting linknames here is a bad hack.
16303 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16304 # The linker will automatically build a .lib file if we build a DLL.
16305 old_archive_From_new_cmds_GCJ='true'
16306 # FIXME: Should let the user specify the lib program.
16307 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16308 fix_srcfile_path='`cygpath -w "$srcfile"`'
16309 enable_shared_with_static_runtimes_GCJ=yes
16310 ;;
16311
16312 darwin* | rhapsody*)
16313 if test "$GXX" = yes ; then
16314 archive_cmds_need_lc_GCJ=no
16315 case "$host_os" in
16316 rhapsody* | darwin1.[012])
16317 allow_undefined_flag_GCJ='-undefined suppress'
16318 ;;
16319 *) # Darwin 1.3 on
16320 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16321 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16322 else
16323 case ${MACOSX_DEPLOYMENT_TARGET} in
16324 10.[012])
16325 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16326 ;;
16327 10.*)
16328 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16329 ;;
16330 esac
16331 fi
16332 ;;
16333 esac
16334 lt_int_apple_cc_single_mod=no
16335 output_verbose_link_cmd='echo'
16336 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16337 lt_int_apple_cc_single_mod=yes
16338 fi
16339 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16340 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16341 else
16342 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'
16343 fi
16344 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16345 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16346 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16347 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}'
16348 else
16349 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}'
16350 fi
16351 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}'
16352 hardcode_direct_GCJ=no
16353 hardcode_automatic_GCJ=yes
16354 hardcode_shlibpath_var_GCJ=unsupported
16355 whole_archive_flag_spec_GCJ='-all_load $convenience'
16356 link_all_deplibs_GCJ=yes
16357 else
16358 ld_shlibs_GCJ=no
16359 fi
16360 ;;
16361
16362 dgux*)
16363 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16364 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16365 hardcode_shlibpath_var_GCJ=no
16366 ;;
16367
16368 freebsd1*)
16369 ld_shlibs_GCJ=no
16370 ;;
16371
16372 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16373 # support. Future versions do this automatically, but an explicit c++rt0.o
16374 # does not break anything, and helps significantly (at the cost of a little
16375 # extra space).
16376 freebsd2.2*)
16377 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16378 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16379 hardcode_direct_GCJ=yes
16380 hardcode_shlibpath_var_GCJ=no
16381 ;;
16382
16383 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16384 freebsd2*)
16385 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16386 hardcode_direct_GCJ=yes
16387 hardcode_minus_L_GCJ=yes
16388 hardcode_shlibpath_var_GCJ=no
16389 ;;
16390
16391 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16392 freebsd* | kfreebsd*-gnu)
16393 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16394 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16395 hardcode_direct_GCJ=yes
16396 hardcode_shlibpath_var_GCJ=no
16397 ;;
16398
16399 hpux9*)
16400 if test "$GCC" = yes; then
16401 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'
16402 else
16403 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'
16404 fi
16405 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16406 hardcode_libdir_separator_GCJ=:
16407 hardcode_direct_GCJ=yes
16408
16409 # hardcode_minus_L: Not really in the search PATH,
16410 # but as the default location of the library.
16411 hardcode_minus_L_GCJ=yes
16412 export_dynamic_flag_spec_GCJ='${wl}-E'
16413 ;;
16414
16415 hpux10* | hpux11*)
16416 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16417 case "$host_cpu" in
16418 hppa*64*|ia64*)
16419 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16420 ;;
16421 *)
16422 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16423 ;;
16424 esac
16425 else
16426 case "$host_cpu" in
16427 hppa*64*|ia64*)
16428 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16429 ;;
16430 *)
16431 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16432 ;;
16433 esac
16434 fi
16435 if test "$with_gnu_ld" = no; then
16436 case "$host_cpu" in
16437 hppa*64*)
16438 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16439 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16440 hardcode_libdir_separator_GCJ=:
16441 hardcode_direct_GCJ=no
16442 hardcode_shlibpath_var_GCJ=no
16443 ;;
16444 ia64*)
16445 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16446 hardcode_direct_GCJ=no
16447 hardcode_shlibpath_var_GCJ=no
16448
16449 # hardcode_minus_L: Not really in the search PATH,
16450 # but as the default location of the library.
16451 hardcode_minus_L_GCJ=yes
16452 ;;
16453 *)
16454 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16455 hardcode_libdir_separator_GCJ=:
16456 hardcode_direct_GCJ=yes
16457 export_dynamic_flag_spec_GCJ='${wl}-E'
16458
16459 # hardcode_minus_L: Not really in the search PATH,
16460 # but as the default location of the library.
16461 hardcode_minus_L_GCJ=yes
16462 ;;
16463 esac
16464 fi
16465 ;;
16466
16467 irix5* | irix6* | nonstopux*)
16468 if test "$GCC" = yes; then
16469 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'
16470 else
16471 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'
16472 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16473 fi
16474 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16475 hardcode_libdir_separator_GCJ=:
16476 link_all_deplibs_GCJ=yes
16477 ;;
16478
16479 netbsd*)
16480 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16481 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16482 else
16483 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16484 fi
16485 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16486 hardcode_direct_GCJ=yes
16487 hardcode_shlibpath_var_GCJ=no
16488 ;;
16489
16490 newsos6)
16491 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16492 hardcode_direct_GCJ=yes
16493 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16494 hardcode_libdir_separator_GCJ=:
16495 hardcode_shlibpath_var_GCJ=no
16496 ;;
16497
16498 openbsd*)
16499 hardcode_direct_GCJ=yes
16500 hardcode_shlibpath_var_GCJ=no
16501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16502 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16503 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16504 export_dynamic_flag_spec_GCJ='${wl}-E'
16505 else
16506 case $host_os in
16507 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16508 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16509 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16510 ;;
16511 *)
16512 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16513 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16514 ;;
16515 esac
16516 fi
16517 ;;
16518
16519 os2*)
16520 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16521 hardcode_minus_L_GCJ=yes
16522 allow_undefined_flag_GCJ=unsupported
16523 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'
16524 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16525 ;;
16526
16527 osf3*)
16528 if test "$GCC" = yes; then
16529 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16530 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'
16531 else
16532 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16533 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'
16534 fi
16535 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16536 hardcode_libdir_separator_GCJ=:
16537 ;;
16538
16539 osf4* | osf5*) # as osf3* with the addition of -msym flag
16540 if test "$GCC" = yes; then
16541 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16542 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'
16543 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16544 else
16545 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16546 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'
16547 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~
16548 $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'
16549
16550 # Both c and cxx compiler support -rpath directly
16551 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16552 fi
16553 hardcode_libdir_separator_GCJ=:
16554 ;;
16555
16556 sco3.2v5*)
16557 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16558 hardcode_shlibpath_var_GCJ=no
16559 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16560 runpath_var=LD_RUN_PATH
16561 hardcode_runpath_var=yes
16562 ;;
16563
16564 solaris*)
16565 no_undefined_flag_GCJ=' -z text'
16566 if test "$GCC" = yes; then
16567 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16568 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16569 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16570 else
16571 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16572 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16573 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16574 fi
16575 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16576 hardcode_shlibpath_var_GCJ=no
16577 case $host_os in
16578 solaris2.[0-5] | solaris2.[0-5].*) ;;
16579 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16580 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16581 esac
16582 link_all_deplibs_GCJ=yes
16583 ;;
16584
16585 sunos4*)
16586 if test "x$host_vendor" = xsequent; then
16587 # Use $CC to link under sequent, because it throws in some extra .o
16588 # files that make .init and .fini sections work.
16589 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16590 else
16591 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16592 fi
16593 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16594 hardcode_direct_GCJ=yes
16595 hardcode_minus_L_GCJ=yes
16596 hardcode_shlibpath_var_GCJ=no
16597 ;;
16598
16599 sysv4)
16600 case $host_vendor in
16601 sni)
16602 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16603 hardcode_direct_GCJ=yes # is this really true???
16604 ;;
16605 siemens)
16606 ## LD is ld it makes a PLAMLIB
16607 ## CC just makes a GrossModule.
16608 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16609 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16610 hardcode_direct_GCJ=no
16611 ;;
16612 motorola)
16613 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16614 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16615 ;;
16616 esac
16617 runpath_var='LD_RUN_PATH'
16618 hardcode_shlibpath_var_GCJ=no
16619 ;;
16620
16621 sysv4.3*)
16622 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16623 hardcode_shlibpath_var_GCJ=no
16624 export_dynamic_flag_spec_GCJ='-Bexport'
16625 ;;
16626
16627 sysv4*MP*)
16628 if test -d /usr/nec; then
16629 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16630 hardcode_shlibpath_var_GCJ=no
16631 runpath_var=LD_RUN_PATH
16632 hardcode_runpath_var=yes
16633 ld_shlibs_GCJ=yes
16634 fi
16635 ;;
16636
16637 sysv4.2uw2*)
16638 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16639 hardcode_direct_GCJ=yes
16640 hardcode_minus_L_GCJ=no
16641 hardcode_shlibpath_var_GCJ=no
16642 hardcode_runpath_var=yes
16643 runpath_var=LD_RUN_PATH
16644 ;;
16645
16646 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16647 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16648 if test "$GCC" = yes; then
16649 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16650 else
16651 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16652 fi
16653 runpath_var='LD_RUN_PATH'
16654 hardcode_shlibpath_var_GCJ=no
16655 ;;
16656
16657 sysv5*)
16658 no_undefined_flag_GCJ=' -z text'
16659 # $CC -shared without GNU ld will not create a library from C++
16660 # object files and a static libstdc++, better avoid it by now
16661 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16662 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16663 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16664 hardcode_libdir_flag_spec_GCJ=
16665 hardcode_shlibpath_var_GCJ=no
16666 runpath_var='LD_RUN_PATH'
16667 ;;
16668
16669 uts4*)
16670 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16671 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16672 hardcode_shlibpath_var_GCJ=no
16673 ;;
16674
16675 *)
16676 ld_shlibs_GCJ=no
16677 ;;
16678 esac
16679 fi
16680
16681echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16682echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16683test "$ld_shlibs_GCJ" = no && can_build_shared=no
16684
16685variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16686if test "$GCC" = yes; then
16687 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16688fi
16689
16690#
16691# Do we need to explicitly link libc?
16692#
16693case "x$archive_cmds_need_lc_GCJ" in
16694x|xyes)
16695 # Assume -lc should be added
16696 archive_cmds_need_lc_GCJ=yes
16697
16698 if test "$enable_shared" = yes && test "$GCC" = yes; then
16699 case $archive_cmds_GCJ in
16700 *'~'*)
16701 # FIXME: we may have to deal with multi-command sequences.
16702 ;;
16703 '$CC '*)
16704 # Test whether the compiler implicitly links with -lc since on some
16705 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16706 # to ld, don't add -lc before -lgcc.
16707 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16708echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16709 $rm conftest*
16710 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16711
16712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16713 (eval $ac_compile) 2>&5
16714 ac_status=$?
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } 2>conftest.err; then
16717 soname=conftest
16718 lib=conftest
16719 libobjs=conftest.$ac_objext
16720 deplibs=
16721 wl=$lt_prog_compiler_wl_GCJ
16722 compiler_flags=-v
16723 linker_flags=-v
16724 verstring=
16725 output_objdir=.
16726 libname=conftest
16727 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16728 allow_undefined_flag_GCJ=
16729 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16730 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16731 ac_status=$?
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); }
16734 then
16735 archive_cmds_need_lc_GCJ=no
16736 else
16737 archive_cmds_need_lc_GCJ=yes
16738 fi
16739 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16740 else
16741 cat conftest.err 1>&5
16742 fi
16743 $rm conftest*
16744 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16745echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16746 ;;
16747 esac
16748 fi
16749 ;;
16750esac
16751
16752echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16753echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16754library_names_spec=
16755libname_spec='lib$name'
16756soname_spec=
16757shrext=".so"
16758postinstall_cmds=
16759postuninstall_cmds=
16760finish_cmds=
16761finish_eval=
16762shlibpath_var=
16763shlibpath_overrides_runpath=unknown
16764version_type=none
16765dynamic_linker="$host_os ld.so"
16766sys_lib_dlsearch_path_spec="/lib /usr/lib"
16767if test "$GCC" = yes; then
16768 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16769 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16770 # if the path contains ";" then we assume it to be the separator
16771 # otherwise default to the standard path separator (i.e. ":") - it is
16772 # assumed that no part of a normal pathname contains ";" but that should
16773 # okay in the real world where ";" in dirpaths is itself problematic.
16774 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16775 else
16776 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16777 fi
16778else
16779 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16780fi
16781need_lib_prefix=unknown
16782hardcode_into_libs=no
16783
16784# when you set need_version to no, make sure it does not cause -set_version
16785# flags to be left without arguments
16786need_version=unknown
16787
16788case $host_os in
16789aix3*)
16790 version_type=linux
16791 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16792 shlibpath_var=LIBPATH
16793
16794 # AIX 3 has no versioning support, so we append a major version to the name.
16795 soname_spec='${libname}${release}${shared_ext}$major'
16796 ;;
16797
16798aix4* | aix5*)
16799 version_type=linux
16800 need_lib_prefix=no
16801 need_version=no
16802 hardcode_into_libs=yes
16803 if test "$host_cpu" = ia64; then
16804 # AIX 5 supports IA64
16805 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16806 shlibpath_var=LD_LIBRARY_PATH
16807 else
16808 # With GCC up to 2.95.x, collect2 would create an import file
16809 # for dependence libraries. The import file would start with
16810 # the line `#! .'. This would cause the generated library to
16811 # depend on `.', always an invalid library. This was fixed in
16812 # development snapshots of GCC prior to 3.0.
16813 case $host_os in
16814 aix4 | aix4.[01] | aix4.[01].*)
16815 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16816 echo ' yes '
16817 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16818 :
16819 else
16820 can_build_shared=no
16821 fi
16822 ;;
16823 esac
16824 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16825 # soname into executable. Probably we can add versioning support to
16826 # collect2, so additional links can be useful in future.
16827 if test "$aix_use_runtimelinking" = yes; then
16828 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16829 # instead of lib<name>.a to let people know that these are not
16830 # typical AIX shared libraries.
16831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16832 else
16833 # We preserve .a as extension for shared libraries through AIX4.2
16834 # and later when we are not doing run time linking.
16835 library_names_spec='${libname}${release}.a $libname.a'
16836 soname_spec='${libname}${release}${shared_ext}$major'
16837 fi
16838 shlibpath_var=LIBPATH
16839 fi
16840 ;;
16841
16842amigaos*)
16843 library_names_spec='$libname.ixlibrary $libname.a'
16844 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16845 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'
16846 ;;
16847
16848beos*)
16849 library_names_spec='${libname}${shared_ext}'
16850 dynamic_linker="$host_os ld.so"
16851 shlibpath_var=LIBRARY_PATH
16852 ;;
16853
16854bsdi4*)
16855 version_type=linux
16856 need_version=no
16857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16858 soname_spec='${libname}${release}${shared_ext}$major'
16859 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16860 shlibpath_var=LD_LIBRARY_PATH
16861 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16862 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16863 # the default ld.so.conf also contains /usr/contrib/lib and
16864 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16865 # libtool to hard-code these into programs
16866 ;;
16867
16868cygwin* | mingw* | pw32*)
16869 version_type=windows
16870 shrext=".dll"
16871 need_version=no
16872 need_lib_prefix=no
16873
16874 case $GCC,$host_os in
16875 yes,cygwin* | yes,mingw* | yes,pw32*)
16876 library_names_spec='$libname.dll.a'
16877 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16878 postinstall_cmds='base_file=`basename \${file}`~
16879 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16880 dldir=$destdir/`dirname \$dlpath`~
16881 test -d \$dldir || mkdir -p \$dldir~
16882 $install_prog $dir/$dlname \$dldir/$dlname'
16883 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16884 dlpath=$dir/\$dldll~
16885 $rm \$dlpath'
16886 shlibpath_overrides_runpath=yes
16887
16888 case $host_os in
16889 cygwin*)
16890 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16891 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16892 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16893 ;;
16894 mingw*)
16895 # MinGW DLLs use traditional 'lib' prefix
16896 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16897 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16898 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16899 # It is most probably a Windows format PATH printed by
16900 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16901 # path with ; separators, and with drive letters. We can handle the
16902 # drive letters (cygwin fileutils understands them), so leave them,
16903 # especially as we might pass files found there to a mingw objdump,
16904 # which wouldn't understand a cygwinified path. Ahh.
16905 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16906 else
16907 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16908 fi
16909 ;;
16910 pw32*)
16911 # pw32 DLLs use 'pw' prefix rather than 'lib'
16912 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16913 ;;
16914 esac
16915 ;;
16916
16917 *)
16918 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16919 ;;
16920 esac
16921 dynamic_linker='Win32 ld.exe'
16922 # FIXME: first we should search . and the directory the executable is in
16923 shlibpath_var=PATH
16924 ;;
16925
16926darwin* | rhapsody*)
16927 dynamic_linker="$host_os dyld"
16928 version_type=darwin
16929 need_lib_prefix=no
16930 need_version=no
16931 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16932 soname_spec='${libname}${release}${major}$shared_ext'
16933 shlibpath_overrides_runpath=yes
16934 shlibpath_var=DYLD_LIBRARY_PATH
16935 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16936 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16937 if test "$GCC" = yes; then
16938 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"`
16939 else
16940 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16941 fi
16942 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16943 ;;
16944
16945dgux*)
16946 version_type=linux
16947 need_lib_prefix=no
16948 need_version=no
16949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16950 soname_spec='${libname}${release}${shared_ext}$major'
16951 shlibpath_var=LD_LIBRARY_PATH
16952 ;;
16953
16954freebsd1*)
16955 dynamic_linker=no
16956 ;;
16957
16958kfreebsd*-gnu)
16959 version_type=linux
16960 need_lib_prefix=no
16961 need_version=no
16962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16963 soname_spec='${libname}${release}${shared_ext}$major'
16964 shlibpath_var=LD_LIBRARY_PATH
16965 shlibpath_overrides_runpath=no
16966 hardcode_into_libs=yes
16967 dynamic_linker='GNU ld.so'
16968 ;;
16969
16970freebsd*)
16971 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16972 version_type=freebsd-$objformat
16973 case $version_type in
16974 freebsd-elf*)
16975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16976 need_version=no
16977 need_lib_prefix=no
16978 ;;
16979 freebsd-*)
16980 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16981 need_version=yes
16982 ;;
16983 esac
16984 shlibpath_var=LD_LIBRARY_PATH
16985 case $host_os in
16986 freebsd2*)
16987 shlibpath_overrides_runpath=yes
16988 ;;
16989 freebsd3.01* | freebsdelf3.01*)
16990 shlibpath_overrides_runpath=yes
16991 hardcode_into_libs=yes
16992 ;;
16993 *) # from 3.2 on
16994 shlibpath_overrides_runpath=no
16995 hardcode_into_libs=yes
16996 ;;
16997 esac
16998 ;;
16999
17000gnu*)
17001 version_type=linux
17002 need_lib_prefix=no
17003 need_version=no
17004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17005 soname_spec='${libname}${release}${shared_ext}$major'
17006 shlibpath_var=LD_LIBRARY_PATH
17007 hardcode_into_libs=yes
17008 ;;
17009
17010hpux9* | hpux10* | hpux11*)
17011 # Give a soname corresponding to the major version so that dld.sl refuses to
17012 # link against other versions.
17013 version_type=sunos
17014 need_lib_prefix=no
17015 need_version=no
17016 case "$host_cpu" in
17017 ia64*)
17018 shrext='.so'
17019 hardcode_into_libs=yes
17020 dynamic_linker="$host_os dld.so"
17021 shlibpath_var=LD_LIBRARY_PATH
17022 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17024 soname_spec='${libname}${release}${shared_ext}$major'
17025 if test "X$HPUX_IA64_MODE" = X32; then
17026 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17027 else
17028 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17029 fi
17030 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17031 ;;
17032 hppa*64*)
17033 shrext='.sl'
17034 hardcode_into_libs=yes
17035 dynamic_linker="$host_os dld.sl"
17036 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17037 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17039 soname_spec='${libname}${release}${shared_ext}$major'
17040 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17041 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17042 ;;
17043 *)
17044 shrext='.sl'
17045 dynamic_linker="$host_os dld.sl"
17046 shlibpath_var=SHLIB_PATH
17047 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17049 soname_spec='${libname}${release}${shared_ext}$major'
17050 ;;
17051 esac
17052 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17053 postinstall_cmds='chmod 555 $lib'
17054 ;;
17055
17056irix5* | irix6* | nonstopux*)
17057 case $host_os in
17058 nonstopux*) version_type=nonstopux ;;
17059 *)
17060 if test "$lt_cv_prog_gnu_ld" = yes; then
17061 version_type=linux
17062 else
17063 version_type=irix
17064 fi ;;
17065 esac
17066 need_lib_prefix=no
17067 need_version=no
17068 soname_spec='${libname}${release}${shared_ext}$major'
17069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17070 case $host_os in
17071 irix5* | nonstopux*)
17072 libsuff= shlibsuff=
17073 ;;
17074 *)
17075 case $LD in # libtool.m4 will add one of these switches to LD
17076 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17077 libsuff= shlibsuff= libmagic=32-bit;;
17078 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17079 libsuff=32 shlibsuff=N32 libmagic=N32;;
17080 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17081 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17082 *) libsuff= shlibsuff= libmagic=never-match;;
17083 esac
17084 ;;
17085 esac
17086 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17087 shlibpath_overrides_runpath=no
17088 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17089 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17090 hardcode_into_libs=yes
17091 ;;
17092
17093# No shared lib support for Linux oldld, aout, or coff.
17094linux*oldld* | linux*aout* | linux*coff*)
17095 dynamic_linker=no
17096 ;;
17097
17098# This must be Linux ELF.
17099linux*)
17100 version_type=linux
17101 need_lib_prefix=no
17102 need_version=no
17103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17104 soname_spec='${libname}${release}${shared_ext}$major'
17105 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17106 shlibpath_var=LD_LIBRARY_PATH
17107 shlibpath_overrides_runpath=no
17108 # This implies no fast_install, which is unacceptable.
17109 # Some rework will be needed to allow for fast_install
17110 # before this can be enabled.
17111 hardcode_into_libs=yes
17112
17113 # /usr/X11R6/lib and /usr/local/lib are common enough...
17114 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
17115
17116 # We used to test for /lib/ld.so.1 and disable shared libraries on
17117 # powerpc, because MkLinux only supported shared libraries with the
17118 # GNU dynamic linker. Since this was broken with cross compilers,
17119 # most powerpc-linux boxes support dynamic linking these days and
17120 # people can always --disable-shared, the test was removed, and we
17121 # assume the GNU/Linux dynamic linker is in use.
17122 dynamic_linker='GNU/Linux ld.so'
17123 ;;
17124
17125knetbsd*-gnu)
17126 version_type=linux
17127 need_lib_prefix=no
17128 need_version=no
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17130 soname_spec='${libname}${release}${shared_ext}$major'
17131 shlibpath_var=LD_LIBRARY_PATH
17132 shlibpath_overrides_runpath=no
17133 hardcode_into_libs=yes
17134 dynamic_linker='GNU ld.so'
17135 ;;
17136
17137netbsd*)
17138 version_type=sunos
17139 need_lib_prefix=no
17140 need_version=no
17141 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17144 dynamic_linker='NetBSD (a.out) ld.so'
17145 else
17146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17147 soname_spec='${libname}${release}${shared_ext}$major'
17148 dynamic_linker='NetBSD ld.elf_so'
17149 fi
17150 shlibpath_var=LD_LIBRARY_PATH
17151 shlibpath_overrides_runpath=yes
17152 hardcode_into_libs=yes
17153 ;;
17154
17155newsos6)
17156 version_type=linux
17157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17158 shlibpath_var=LD_LIBRARY_PATH
17159 shlibpath_overrides_runpath=yes
17160 ;;
17161
17162nto-qnx*)
17163 version_type=linux
17164 need_lib_prefix=no
17165 need_version=no
17166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17167 soname_spec='${libname}${release}${shared_ext}$major'
17168 shlibpath_var=LD_LIBRARY_PATH
17169 shlibpath_overrides_runpath=yes
17170 ;;
17171
17172openbsd*)
17173 version_type=sunos
17174 need_lib_prefix=no
17175 need_version=yes
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17177 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17178 shlibpath_var=LD_LIBRARY_PATH
17179 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17180 case $host_os in
17181 openbsd2.[89] | openbsd2.[89].*)
17182 shlibpath_overrides_runpath=no
17183 ;;
17184 *)
17185 shlibpath_overrides_runpath=yes
17186 ;;
17187 esac
17188 else
17189 shlibpath_overrides_runpath=yes
17190 fi
17191 ;;
17192
17193os2*)
17194 libname_spec='$name'
17195 shrext=".dll"
17196 need_lib_prefix=no
17197 library_names_spec='$libname${shared_ext} $libname.a'
17198 dynamic_linker='OS/2 ld.exe'
17199 shlibpath_var=LIBPATH
17200 ;;
17201
17202osf3* | osf4* | osf5*)
17203 version_type=osf
17204 need_lib_prefix=no
17205 need_version=no
17206 soname_spec='${libname}${release}${shared_ext}$major'
17207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17208 shlibpath_var=LD_LIBRARY_PATH
17209 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17210 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17211 ;;
17212
17213sco3.2v5*)
17214 version_type=osf
17215 soname_spec='${libname}${release}${shared_ext}$major'
17216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17217 shlibpath_var=LD_LIBRARY_PATH
17218 ;;
17219
17220solaris*)
17221 version_type=linux
17222 need_lib_prefix=no
17223 need_version=no
17224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17225 soname_spec='${libname}${release}${shared_ext}$major'
17226 shlibpath_var=LD_LIBRARY_PATH
17227 shlibpath_overrides_runpath=yes
17228 hardcode_into_libs=yes
17229 # ldd complains unless libraries are executable
17230 postinstall_cmds='chmod +x $lib'
17231 ;;
17232
17233sunos4*)
17234 version_type=sunos
17235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17236 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17237 shlibpath_var=LD_LIBRARY_PATH
17238 shlibpath_overrides_runpath=yes
17239 if test "$with_gnu_ld" = yes; then
17240 need_lib_prefix=no
17241 fi
17242 need_version=yes
17243 ;;
17244
17245sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17246 version_type=linux
17247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17248 soname_spec='${libname}${release}${shared_ext}$major'
17249 shlibpath_var=LD_LIBRARY_PATH
17250 case $host_vendor in
17251 sni)
17252 shlibpath_overrides_runpath=no
17253 need_lib_prefix=no
17254 export_dynamic_flag_spec='${wl}-Blargedynsym'
17255 runpath_var=LD_RUN_PATH
17256 ;;
17257 siemens)
17258 need_lib_prefix=no
17259 ;;
17260 motorola)
17261 need_lib_prefix=no
17262 need_version=no
17263 shlibpath_overrides_runpath=no
17264 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17265 ;;
17266 esac
17267 ;;
17268
17269sysv4*MP*)
17270 if test -d /usr/nec ;then
17271 version_type=linux
17272 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17273 soname_spec='$libname${shared_ext}.$major'
17274 shlibpath_var=LD_LIBRARY_PATH
17275 fi
17276 ;;
17277
17278uts4*)
17279 version_type=linux
17280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17281 soname_spec='${libname}${release}${shared_ext}$major'
17282 shlibpath_var=LD_LIBRARY_PATH
17283 ;;
17284
17285*)
17286 dynamic_linker=no
17287 ;;
17288esac
17289echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17290echo "${ECHO_T}$dynamic_linker" >&6
17291test "$dynamic_linker" = no && can_build_shared=no
17292
17293echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17294echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17295hardcode_action_GCJ=
17296if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17297 test -n "$runpath_var GCJ" || \
17298 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17299
17300 # We can hardcode non-existant directories.
17301 if test "$hardcode_direct_GCJ" != no &&
17302 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17303 # have to relink, otherwise we might link with an installed library
17304 # when we should be linking with a yet-to-be-installed one
17305 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17306 test "$hardcode_minus_L_GCJ" != no; then
17307 # Linking always hardcodes the temporary library directory.
17308 hardcode_action_GCJ=relink
17309 else
17310 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17311 hardcode_action_GCJ=immediate
17312 fi
17313else
17314 # We cannot hardcode anything, or else we can only hardcode existing
17315 # directories.
17316 hardcode_action_GCJ=unsupported
17317fi
17318echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17319echo "${ECHO_T}$hardcode_action_GCJ" >&6
17320
17321if test "$hardcode_action_GCJ" = relink; then
17322 # Fast installation is not supported
17323 enable_fast_install=no
17324elif test "$shlibpath_overrides_runpath" = yes ||
17325 test "$enable_shared" = no; then
17326 # Fast installation is not necessary
17327 enable_fast_install=needless
17328fi
17329
17330striplib=
17331old_striplib=
17332echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17333echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17334if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17335 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17336 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17337 echo "$as_me:$LINENO: result: yes" >&5
17338echo "${ECHO_T}yes" >&6
17339else
17340# FIXME - insert some real tests, host_os isn't really good enough
17341 case $host_os in
17342 darwin*)
17343 if test -n "$STRIP" ; then
17344 striplib="$STRIP -x"
17345 echo "$as_me:$LINENO: result: yes" >&5
17346echo "${ECHO_T}yes" >&6
17347 else
17348 echo "$as_me:$LINENO: result: no" >&5
17349echo "${ECHO_T}no" >&6
17350fi
17351 ;;
17352 *)
17353 echo "$as_me:$LINENO: result: no" >&5
17354echo "${ECHO_T}no" >&6
17355 ;;
17356 esac
17357fi
17358
17359if test "x$enable_dlopen" != xyes; then
17360 enable_dlopen=unknown
17361 enable_dlopen_self=unknown
17362 enable_dlopen_self_static=unknown
17363else
17364 lt_cv_dlopen=no
17365 lt_cv_dlopen_libs=
17366
17367 case $host_os in
17368 beos*)
17369 lt_cv_dlopen="load_add_on"
17370 lt_cv_dlopen_libs=
17371 lt_cv_dlopen_self=yes
17372 ;;
17373
17374 mingw* | pw32*)
17375 lt_cv_dlopen="LoadLibrary"
17376 lt_cv_dlopen_libs=
17377 ;;
17378
17379 cygwin*)
17380 lt_cv_dlopen="dlopen"
17381 lt_cv_dlopen_libs=
17382 ;;
17383
17384 darwin*)
17385 # if libdl is installed we need to link against it
17386 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17387echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17388if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17389 echo $ECHO_N "(cached) $ECHO_C" >&6
17390else
17391 ac_check_lib_save_LIBS=$LIBS
17392LIBS="-ldl $LIBS"
17393cat >conftest.$ac_ext <<_ACEOF
17394/* confdefs.h. */
17395_ACEOF
17396cat confdefs.h >>conftest.$ac_ext
17397cat >>conftest.$ac_ext <<_ACEOF
17398/* end confdefs.h. */
17399
17400/* Override any gcc2 internal prototype to avoid an error. */
17401#ifdef __cplusplus
17402extern "C"
17403#endif
17404/* We use char because int might match the return type of a gcc2
17405 builtin and then its argument prototype would still apply. */
17406char dlopen ();
17407int
17408main ()
17409{
17410dlopen ();
17411 ;
17412 return 0;
17413}
17414_ACEOF
17415rm -f conftest.$ac_objext conftest$ac_exeext
17416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17417 (eval $ac_link) 2>conftest.er1
17418 ac_status=$?
17419 grep -v '^ *+' conftest.er1 >conftest.err
17420 rm -f conftest.er1
17421 cat conftest.err >&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } &&
17424 { ac_try='test -z "$ac_c_werror_flag"
17425 || test ! -s conftest.err'
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17428 ac_status=$?
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; } &&
17431 { ac_try='test -s conftest$ac_exeext'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 ac_cv_lib_dl_dlopen=yes
17438else
17439 echo "$as_me: failed program was:" >&5
17440sed 's/^/| /' conftest.$ac_ext >&5
17441
17442ac_cv_lib_dl_dlopen=no
17443fi
17444rm -f conftest.err conftest.$ac_objext \
17445 conftest$ac_exeext conftest.$ac_ext
17446LIBS=$ac_check_lib_save_LIBS
17447fi
17448echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17449echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17450if test $ac_cv_lib_dl_dlopen = yes; then
17451 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17452else
17453
17454 lt_cv_dlopen="dyld"
17455 lt_cv_dlopen_libs=
17456 lt_cv_dlopen_self=yes
17457
17458fi
17459
17460 ;;
17461
17462 *)
17463 echo "$as_me:$LINENO: checking for shl_load" >&5
17464echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17465if test "${ac_cv_func_shl_load+set}" = set; then
17466 echo $ECHO_N "(cached) $ECHO_C" >&6
17467else
17468 cat >conftest.$ac_ext <<_ACEOF
17469/* confdefs.h. */
17470_ACEOF
17471cat confdefs.h >>conftest.$ac_ext
17472cat >>conftest.$ac_ext <<_ACEOF
17473/* end confdefs.h. */
17474/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17476#define shl_load innocuous_shl_load
17477
17478/* System header to define __stub macros and hopefully few prototypes,
17479 which can conflict with char shl_load (); below.
17480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17481 <limits.h> exists even on freestanding compilers. */
17482
17483#ifdef __STDC__
17484# include <limits.h>
17485#else
17486# include <assert.h>
17487#endif
17488
17489#undef shl_load
17490
17491/* Override any gcc2 internal prototype to avoid an error. */
17492#ifdef __cplusplus
17493extern "C"
17494{
17495#endif
17496/* We use char because int might match the return type of a gcc2
17497 builtin and then its argument prototype would still apply. */
17498char shl_load ();
17499/* The GNU C library defines this for functions which it implements
17500 to always fail with ENOSYS. Some functions are actually named
17501 something starting with __ and the normal name is an alias. */
17502#if defined (__stub_shl_load) || defined (__stub___shl_load)
17503choke me
17504#else
17505char (*f) () = shl_load;
17506#endif
17507#ifdef __cplusplus
17508}
17509#endif
17510
17511int
17512main ()
17513{
17514return f != shl_load;
17515 ;
17516 return 0;
17517}
17518_ACEOF
17519rm -f conftest.$ac_objext conftest$ac_exeext
17520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17521 (eval $ac_link) 2>conftest.er1
17522 ac_status=$?
17523 grep -v '^ *+' conftest.er1 >conftest.err
17524 rm -f conftest.er1
17525 cat conftest.err >&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); } &&
17528 { ac_try='test -z "$ac_c_werror_flag"
17529 || test ! -s conftest.err'
17530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17531 (eval $ac_try) 2>&5
17532 ac_status=$?
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); }; } &&
17535 { ac_try='test -s conftest$ac_exeext'
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17538 ac_status=$?
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; }; then
17541 ac_cv_func_shl_load=yes
17542else
17543 echo "$as_me: failed program was:" >&5
17544sed 's/^/| /' conftest.$ac_ext >&5
17545
17546ac_cv_func_shl_load=no
17547fi
17548rm -f conftest.err conftest.$ac_objext \
17549 conftest$ac_exeext conftest.$ac_ext
17550fi
17551echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17552echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17553if test $ac_cv_func_shl_load = yes; then
17554 lt_cv_dlopen="shl_load"
17555else
17556 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17557echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17558if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17560else
17561 ac_check_lib_save_LIBS=$LIBS
17562LIBS="-ldld $LIBS"
17563cat >conftest.$ac_ext <<_ACEOF
17564/* confdefs.h. */
17565_ACEOF
17566cat confdefs.h >>conftest.$ac_ext
17567cat >>conftest.$ac_ext <<_ACEOF
17568/* end confdefs.h. */
17569
17570/* Override any gcc2 internal prototype to avoid an error. */
17571#ifdef __cplusplus
17572extern "C"
17573#endif
17574/* We use char because int might match the return type of a gcc2
17575 builtin and then its argument prototype would still apply. */
17576char shl_load ();
17577int
17578main ()
17579{
17580shl_load ();
17581 ;
17582 return 0;
17583}
17584_ACEOF
17585rm -f conftest.$ac_objext conftest$ac_exeext
17586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17587 (eval $ac_link) 2>conftest.er1
17588 ac_status=$?
17589 grep -v '^ *+' conftest.er1 >conftest.err
17590 rm -f conftest.er1
17591 cat conftest.err >&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); } &&
17594 { ac_try='test -z "$ac_c_werror_flag"
17595 || test ! -s conftest.err'
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17598 ac_status=$?
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; } &&
17601 { ac_try='test -s conftest$ac_exeext'
17602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17603 (eval $ac_try) 2>&5
17604 ac_status=$?
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; }; then
17607 ac_cv_lib_dld_shl_load=yes
17608else
17609 echo "$as_me: failed program was:" >&5
17610sed 's/^/| /' conftest.$ac_ext >&5
17611
17612ac_cv_lib_dld_shl_load=no
17613fi
17614rm -f conftest.err conftest.$ac_objext \
17615 conftest$ac_exeext conftest.$ac_ext
17616LIBS=$ac_check_lib_save_LIBS
17617fi
17618echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17619echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17620if test $ac_cv_lib_dld_shl_load = yes; then
17621 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17622else
17623 echo "$as_me:$LINENO: checking for dlopen" >&5
17624echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17625if test "${ac_cv_func_dlopen+set}" = set; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17627else
17628 cat >conftest.$ac_ext <<_ACEOF
17629/* confdefs.h. */
17630_ACEOF
17631cat confdefs.h >>conftest.$ac_ext
17632cat >>conftest.$ac_ext <<_ACEOF
17633/* end confdefs.h. */
17634/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17636#define dlopen innocuous_dlopen
17637
17638/* System header to define __stub macros and hopefully few prototypes,
17639 which can conflict with char dlopen (); below.
17640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17641 <limits.h> exists even on freestanding compilers. */
17642
17643#ifdef __STDC__
17644# include <limits.h>
17645#else
17646# include <assert.h>
17647#endif
17648
17649#undef dlopen
17650
17651/* Override any gcc2 internal prototype to avoid an error. */
17652#ifdef __cplusplus
17653extern "C"
17654{
17655#endif
17656/* We use char because int might match the return type of a gcc2
17657 builtin and then its argument prototype would still apply. */
17658char dlopen ();
17659/* The GNU C library defines this for functions which it implements
17660 to always fail with ENOSYS. Some functions are actually named
17661 something starting with __ and the normal name is an alias. */
17662#if defined (__stub_dlopen) || defined (__stub___dlopen)
17663choke me
17664#else
17665char (*f) () = dlopen;
17666#endif
17667#ifdef __cplusplus
17668}
17669#endif
17670
17671int
17672main ()
17673{
17674return f != dlopen;
17675 ;
17676 return 0;
17677}
17678_ACEOF
17679rm -f conftest.$ac_objext conftest$ac_exeext
17680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17681 (eval $ac_link) 2>conftest.er1
17682 ac_status=$?
17683 grep -v '^ *+' conftest.er1 >conftest.err
17684 rm -f conftest.er1
17685 cat conftest.err >&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } &&
17688 { ac_try='test -z "$ac_c_werror_flag"
17689 || test ! -s conftest.err'
17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17692 ac_status=$?
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; } &&
17695 { ac_try='test -s conftest$ac_exeext'
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17698 ac_status=$?
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; }; then
17701 ac_cv_func_dlopen=yes
17702else
17703 echo "$as_me: failed program was:" >&5
17704sed 's/^/| /' conftest.$ac_ext >&5
17705
17706ac_cv_func_dlopen=no
17707fi
17708rm -f conftest.err conftest.$ac_objext \
17709 conftest$ac_exeext conftest.$ac_ext
17710fi
17711echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17712echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17713if test $ac_cv_func_dlopen = yes; then
17714 lt_cv_dlopen="dlopen"
17715else
17716 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17717echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17718if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17719 echo $ECHO_N "(cached) $ECHO_C" >&6
17720else
17721 ac_check_lib_save_LIBS=$LIBS
17722LIBS="-ldl $LIBS"
17723cat >conftest.$ac_ext <<_ACEOF
17724/* confdefs.h. */
17725_ACEOF
17726cat confdefs.h >>conftest.$ac_ext
17727cat >>conftest.$ac_ext <<_ACEOF
17728/* end confdefs.h. */
17729
17730/* Override any gcc2 internal prototype to avoid an error. */
17731#ifdef __cplusplus
17732extern "C"
17733#endif
17734/* We use char because int might match the return type of a gcc2
17735 builtin and then its argument prototype would still apply. */
17736char dlopen ();
17737int
17738main ()
17739{
17740dlopen ();
17741 ;
17742 return 0;
17743}
17744_ACEOF
17745rm -f conftest.$ac_objext conftest$ac_exeext
17746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17747 (eval $ac_link) 2>conftest.er1
17748 ac_status=$?
17749 grep -v '^ *+' conftest.er1 >conftest.err
17750 rm -f conftest.er1
17751 cat conftest.err >&5
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); } &&
17754 { ac_try='test -z "$ac_c_werror_flag"
17755 || test ! -s conftest.err'
17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17758 ac_status=$?
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; } &&
17761 { ac_try='test -s conftest$ac_exeext'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17764 ac_status=$?
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; }; then
17767 ac_cv_lib_dl_dlopen=yes
17768else
17769 echo "$as_me: failed program was:" >&5
17770sed 's/^/| /' conftest.$ac_ext >&5
17771
17772ac_cv_lib_dl_dlopen=no
17773fi
17774rm -f conftest.err conftest.$ac_objext \
17775 conftest$ac_exeext conftest.$ac_ext
17776LIBS=$ac_check_lib_save_LIBS
17777fi
17778echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17779echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17780if test $ac_cv_lib_dl_dlopen = yes; then
17781 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17782else
17783 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17784echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17785if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17786 echo $ECHO_N "(cached) $ECHO_C" >&6
17787else
17788 ac_check_lib_save_LIBS=$LIBS
17789LIBS="-lsvld $LIBS"
17790cat >conftest.$ac_ext <<_ACEOF
17791/* confdefs.h. */
17792_ACEOF
17793cat confdefs.h >>conftest.$ac_ext
17794cat >>conftest.$ac_ext <<_ACEOF
17795/* end confdefs.h. */
17796
17797/* Override any gcc2 internal prototype to avoid an error. */
17798#ifdef __cplusplus
17799extern "C"
17800#endif
17801/* We use char because int might match the return type of a gcc2
17802 builtin and then its argument prototype would still apply. */
17803char dlopen ();
17804int
17805main ()
17806{
17807dlopen ();
17808 ;
17809 return 0;
17810}
17811_ACEOF
17812rm -f conftest.$ac_objext conftest$ac_exeext
17813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17814 (eval $ac_link) 2>conftest.er1
17815 ac_status=$?
17816 grep -v '^ *+' conftest.er1 >conftest.err
17817 rm -f conftest.er1
17818 cat conftest.err >&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); } &&
17821 { ac_try='test -z "$ac_c_werror_flag"
17822 || test ! -s conftest.err'
17823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17824 (eval $ac_try) 2>&5
17825 ac_status=$?
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; } &&
17828 { ac_try='test -s conftest$ac_exeext'
17829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17830 (eval $ac_try) 2>&5
17831 ac_status=$?
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; }; then
17834 ac_cv_lib_svld_dlopen=yes
17835else
17836 echo "$as_me: failed program was:" >&5
17837sed 's/^/| /' conftest.$ac_ext >&5
17838
17839ac_cv_lib_svld_dlopen=no
17840fi
17841rm -f conftest.err conftest.$ac_objext \
17842 conftest$ac_exeext conftest.$ac_ext
17843LIBS=$ac_check_lib_save_LIBS
17844fi
17845echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17846echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17847if test $ac_cv_lib_svld_dlopen = yes; then
17848 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17849else
17850 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17851echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17852if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17853 echo $ECHO_N "(cached) $ECHO_C" >&6
17854else
17855 ac_check_lib_save_LIBS=$LIBS
17856LIBS="-ldld $LIBS"
17857cat >conftest.$ac_ext <<_ACEOF
17858/* confdefs.h. */
17859_ACEOF
17860cat confdefs.h >>conftest.$ac_ext
17861cat >>conftest.$ac_ext <<_ACEOF
17862/* end confdefs.h. */
17863
17864/* Override any gcc2 internal prototype to avoid an error. */
17865#ifdef __cplusplus
17866extern "C"
17867#endif
17868/* We use char because int might match the return type of a gcc2
17869 builtin and then its argument prototype would still apply. */
17870char dld_link ();
17871int
17872main ()
17873{
17874dld_link ();
17875 ;
17876 return 0;
17877}
17878_ACEOF
17879rm -f conftest.$ac_objext conftest$ac_exeext
17880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17881 (eval $ac_link) 2>conftest.er1
17882 ac_status=$?
17883 grep -v '^ *+' conftest.er1 >conftest.err
17884 rm -f conftest.er1
17885 cat conftest.err >&5
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); } &&
17888 { ac_try='test -z "$ac_c_werror_flag"
17889 || test ! -s conftest.err'
17890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17891 (eval $ac_try) 2>&5
17892 ac_status=$?
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); }; } &&
17895 { ac_try='test -s conftest$ac_exeext'
17896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17897 (eval $ac_try) 2>&5
17898 ac_status=$?
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); }; }; then
17901 ac_cv_lib_dld_dld_link=yes
17902else
17903 echo "$as_me: failed program was:" >&5
17904sed 's/^/| /' conftest.$ac_ext >&5
17905
17906ac_cv_lib_dld_dld_link=no
17907fi
17908rm -f conftest.err conftest.$ac_objext \
17909 conftest$ac_exeext conftest.$ac_ext
17910LIBS=$ac_check_lib_save_LIBS
17911fi
17912echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17913echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17914if test $ac_cv_lib_dld_dld_link = yes; then
17915 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17916fi
17917
17918
17919fi
17920
17921
17922fi
17923
17924
17925fi
17926
17927
17928fi
17929
17930
17931fi
17932
17933 ;;
17934 esac
17935
17936 if test "x$lt_cv_dlopen" != xno; then
17937 enable_dlopen=yes
17938 else
17939 enable_dlopen=no
17940 fi
17941
17942 case $lt_cv_dlopen in
17943 dlopen)
17944 save_CPPFLAGS="$CPPFLAGS"
17945 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17946
17947 save_LDFLAGS="$LDFLAGS"
17948 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17949
17950 save_LIBS="$LIBS"
17951 LIBS="$lt_cv_dlopen_libs $LIBS"
17952
17953 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17954echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17955if test "${lt_cv_dlopen_self+set}" = set; then
17956 echo $ECHO_N "(cached) $ECHO_C" >&6
17957else
17958 if test "$cross_compiling" = yes; then :
17959 lt_cv_dlopen_self=cross
17960else
17961 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17962 lt_status=$lt_dlunknown
17963 cat > conftest.$ac_ext <<EOF
17964#line 17964 "configure"
17965#include "confdefs.h"
17966
17967#if HAVE_DLFCN_H
17968#include <dlfcn.h>
17969#endif
17970
17971#include <stdio.h>
17972
17973#ifdef RTLD_GLOBAL
17974# define LT_DLGLOBAL RTLD_GLOBAL
17975#else
17976# ifdef DL_GLOBAL
17977# define LT_DLGLOBAL DL_GLOBAL
17978# else
17979# define LT_DLGLOBAL 0
17980# endif
17981#endif
17982
17983/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17984 find out it does not work in some platform. */
17985#ifndef LT_DLLAZY_OR_NOW
17986# ifdef RTLD_LAZY
17987# define LT_DLLAZY_OR_NOW RTLD_LAZY
17988# else
17989# ifdef DL_LAZY
17990# define LT_DLLAZY_OR_NOW DL_LAZY
17991# else
17992# ifdef RTLD_NOW
17993# define LT_DLLAZY_OR_NOW RTLD_NOW
17994# else
17995# ifdef DL_NOW
17996# define LT_DLLAZY_OR_NOW DL_NOW
17997# else
17998# define LT_DLLAZY_OR_NOW 0
17999# endif
18000# endif
18001# endif
18002# endif
18003#endif
18004
18005#ifdef __cplusplus
18006extern "C" void exit (int);
18007#endif
18008
18009void fnord() { int i=42;}
18010int main ()
18011{
18012 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18013 int status = $lt_dlunknown;
18014
18015 if (self)
18016 {
18017 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18018 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18019 /* dlclose (self); */
18020 }
18021
18022 exit (status);
18023}
18024EOF
18025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18026 (eval $ac_link) 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18030 (./conftest; exit; ) 2>/dev/null
18031 lt_status=$?
18032 case x$lt_status in
18033 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18034 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18035 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18036 esac
18037 else :
18038 # compilation failed
18039 lt_cv_dlopen_self=no
18040 fi
18041fi
18042rm -fr conftest*
18043
18044
18045fi
18046echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18047echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18048
18049 if test "x$lt_cv_dlopen_self" = xyes; then
18050 LDFLAGS="$LDFLAGS $link_static_flag"
18051 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18052echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18053if test "${lt_cv_dlopen_self_static+set}" = set; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
18055else
18056 if test "$cross_compiling" = yes; then :
18057 lt_cv_dlopen_self_static=cross
18058else
18059 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18060 lt_status=$lt_dlunknown
18061 cat > conftest.$ac_ext <<EOF
18062#line 18062 "configure"
18063#include "confdefs.h"
18064
18065#if HAVE_DLFCN_H
18066#include <dlfcn.h>
18067#endif
18068
18069#include <stdio.h>
18070
18071#ifdef RTLD_GLOBAL
18072# define LT_DLGLOBAL RTLD_GLOBAL
18073#else
18074# ifdef DL_GLOBAL
18075# define LT_DLGLOBAL DL_GLOBAL
18076# else
18077# define LT_DLGLOBAL 0
18078# endif
18079#endif
18080
18081/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18082 find out it does not work in some platform. */
18083#ifndef LT_DLLAZY_OR_NOW
18084# ifdef RTLD_LAZY
18085# define LT_DLLAZY_OR_NOW RTLD_LAZY
18086# else
18087# ifdef DL_LAZY
18088# define LT_DLLAZY_OR_NOW DL_LAZY
18089# else
18090# ifdef RTLD_NOW
18091# define LT_DLLAZY_OR_NOW RTLD_NOW
18092# else
18093# ifdef DL_NOW
18094# define LT_DLLAZY_OR_NOW DL_NOW
18095# else
18096# define LT_DLLAZY_OR_NOW 0
18097# endif
18098# endif
18099# endif
18100# endif
18101#endif
18102
18103#ifdef __cplusplus
18104extern "C" void exit (int);
18105#endif
18106
18107void fnord() { int i=42;}
18108int main ()
18109{
18110 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18111 int status = $lt_dlunknown;
18112
18113 if (self)
18114 {
18115 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18116 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18117 /* dlclose (self); */
18118 }
18119
18120 exit (status);
18121}
18122EOF
18123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18124 (eval $ac_link) 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18128 (./conftest; exit; ) 2>/dev/null
18129 lt_status=$?
18130 case x$lt_status in
18131 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18132 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18133 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18134 esac
18135 else :
18136 # compilation failed
18137 lt_cv_dlopen_self_static=no
18138 fi
18139fi
18140rm -fr conftest*
18141
18142
18143fi
18144echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18145echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18146 fi
18147
18148 CPPFLAGS="$save_CPPFLAGS"
18149 LDFLAGS="$save_LDFLAGS"
18150 LIBS="$save_LIBS"
18151 ;;
18152 esac
18153
18154 case $lt_cv_dlopen_self in
18155 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18156 *) enable_dlopen_self=unknown ;;
18157 esac
18158
18159 case $lt_cv_dlopen_self_static in
18160 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18161 *) enable_dlopen_self_static=unknown ;;
18162 esac
18163fi
18164
18165
18166# The else clause should only fire when bootstrapping the
18167# libtool distribution, otherwise you forgot to ship ltmain.sh
18168# with your package, and you will get complaints that there are
18169# no rules to generate ltmain.sh.
18170if test -f "$ltmain"; then
18171 # See if we are running on zsh, and set the options which allow our commands through
18172 # without removal of \ escapes.
18173 if test -n "${ZSH_VERSION+set}" ; then
18174 setopt NO_GLOB_SUBST
18175 fi
18176 # Now quote all the things that may contain metacharacters while being
18177 # careful not to overquote the AC_SUBSTed values. We take copies of the
18178 # variables and quote the copies for generation of the libtool script.
18179 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18180 SED SHELL STRIP \
18181 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18182 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18183 deplibs_check_method reload_flag reload_cmds need_locks \
18184 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18185 lt_cv_sys_global_symbol_to_c_name_address \
18186 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18187 old_postinstall_cmds old_postuninstall_cmds \
18188 compiler_GCJ \
18189 CC_GCJ \
18190 LD_GCJ \
18191 lt_prog_compiler_wl_GCJ \
18192 lt_prog_compiler_pic_GCJ \
18193 lt_prog_compiler_static_GCJ \
18194 lt_prog_compiler_no_builtin_flag_GCJ \
18195 export_dynamic_flag_spec_GCJ \
18196 thread_safe_flag_spec_GCJ \
18197 whole_archive_flag_spec_GCJ \
18198 enable_shared_with_static_runtimes_GCJ \
18199 old_archive_cmds_GCJ \
18200 old_archive_from_new_cmds_GCJ \
18201 predep_objects_GCJ \
18202 postdep_objects_GCJ \
18203 predeps_GCJ \
18204 postdeps_GCJ \
18205 compiler_lib_search_path_GCJ \
18206 archive_cmds_GCJ \
18207 archive_expsym_cmds_GCJ \
18208 postinstall_cmds_GCJ \
18209 postuninstall_cmds_GCJ \
18210 old_archive_from_expsyms_cmds_GCJ \
18211 allow_undefined_flag_GCJ \
18212 no_undefined_flag_GCJ \
18213 export_symbols_cmds_GCJ \
18214 hardcode_libdir_flag_spec_GCJ \
18215 hardcode_libdir_flag_spec_ld_GCJ \
18216 hardcode_libdir_separator_GCJ \
18217 hardcode_automatic_GCJ \
18218 module_cmds_GCJ \
18219 module_expsym_cmds_GCJ \
18220 lt_cv_prog_compiler_c_o_GCJ \
18221 exclude_expsyms_GCJ \
18222 include_expsyms_GCJ; do
18223
18224 case $var in
18225 old_archive_cmds_GCJ | \
18226 old_archive_from_new_cmds_GCJ | \
18227 archive_cmds_GCJ | \
18228 archive_expsym_cmds_GCJ | \
18229 module_cmds_GCJ | \
18230 module_expsym_cmds_GCJ | \
18231 old_archive_from_expsyms_cmds_GCJ | \
18232 export_symbols_cmds_GCJ | \
18233 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18234 postinstall_cmds | postuninstall_cmds | \
18235 old_postinstall_cmds | old_postuninstall_cmds | \
18236 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18237 # Double-quote double-evaled strings.
18238 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18239 ;;
18240 *)
18241 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18242 ;;
18243 esac
18244 done
18245
18246 case $lt_echo in
18247 *'\$0 --fallback-echo"')
18248 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18249 ;;
18250 esac
18251
18252cfgfile="$ofile"
18253
18254 cat <<__EOF__ >> "$cfgfile"
18255# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18256
18257# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18258
18259# Shell to use when invoking shell scripts.
18260SHELL=$lt_SHELL
18261
18262# Whether or not to build shared libraries.
18263build_libtool_libs=$enable_shared
18264
18265# Whether or not to build static libraries.
18266build_old_libs=$enable_static
18267
18268# Whether or not to add -lc for building shared libraries.
18269build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18270
18271# Whether or not to disallow shared libs when runtime libs are static
18272allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18273
18274# Whether or not to optimize for fast installation.
18275fast_install=$enable_fast_install
18276
18277# The host system.
18278host_alias=$host_alias
18279host=$host
18280
18281# An echo program that does not interpret backslashes.
18282echo=$lt_echo
18283
18284# The archiver.
18285AR=$lt_AR
18286AR_FLAGS=$lt_AR_FLAGS
18287
18288# A C compiler.
18289LTCC=$lt_LTCC
18290
18291# A language-specific compiler.
18292CC=$lt_compiler_GCJ
18293
18294# Is the compiler the GNU C compiler?
18295with_gcc=$GCC_GCJ
18296
18297# An ERE matcher.
18298EGREP=$lt_EGREP
18299
18300# The linker used to build libraries.
18301LD=$lt_LD_GCJ
18302
18303# Whether we need hard or soft links.
18304LN_S=$lt_LN_S
18305
18306# A BSD-compatible nm program.
18307NM=$lt_NM
18308
18309# A symbol stripping program
18310STRIP=$lt_STRIP
18311
18312# Used to examine libraries when file_magic_cmd begins "file"
18313MAGIC_CMD=$MAGIC_CMD
18314
18315# Used on cygwin: DLL creation program.
18316DLLTOOL="$DLLTOOL"
18317
18318# Used on cygwin: object dumper.
18319OBJDUMP="$OBJDUMP"
18320
18321# Used on cygwin: assembler.
18322AS="$AS"
18323
18324# The name of the directory that contains temporary libtool files.
18325objdir=$objdir
18326
18327# How to create reloadable object files.
18328reload_flag=$lt_reload_flag
18329reload_cmds=$lt_reload_cmds
18330
18331# How to pass a linker flag through the compiler.
18332wl=$lt_lt_prog_compiler_wl_GCJ
18333
18334# Object file suffix (normally "o").
18335objext="$ac_objext"
18336
18337# Old archive suffix (normally "a").
18338libext="$libext"
18339
18340# Shared library suffix (normally ".so").
18341shrext='$shrext'
18342
18343# Executable file suffix (normally "").
18344exeext="$exeext"
18345
18346# Additional compiler flags for building library objects.
18347pic_flag=$lt_lt_prog_compiler_pic_GCJ
18348pic_mode=$pic_mode
18349
18350# What is the maximum length of a command?
18351max_cmd_len=$lt_cv_sys_max_cmd_len
18352
18353# Does compiler simultaneously support -c and -o options?
18354compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18355
18356# Must we lock files when doing compilation ?
18357need_locks=$lt_need_locks
18358
18359# Do we need the lib prefix for modules?
18360need_lib_prefix=$need_lib_prefix
18361
18362# Do we need a version for libraries?
18363need_version=$need_version
18364
18365# Whether dlopen is supported.
18366dlopen_support=$enable_dlopen
18367
18368# Whether dlopen of programs is supported.
18369dlopen_self=$enable_dlopen_self
18370
18371# Whether dlopen of statically linked programs is supported.
18372dlopen_self_static=$enable_dlopen_self_static
18373
18374# Compiler flag to prevent dynamic linking.
18375link_static_flag=$lt_lt_prog_compiler_static_GCJ
18376
18377# Compiler flag to turn off builtin functions.
18378no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18379
18380# Compiler flag to allow reflexive dlopens.
18381export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18382
18383# Compiler flag to generate shared objects directly from archives.
18384whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18385
18386# Compiler flag to generate thread-safe objects.
18387thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18388
18389# Library versioning type.
18390version_type=$version_type
18391
18392# Format of library name prefix.
18393libname_spec=$lt_libname_spec
18394
18395# List of archive names. First name is the real one, the rest are links.
18396# The last name is the one that the linker finds with -lNAME.
18397library_names_spec=$lt_library_names_spec
18398
18399# The coded name of the library, if different from the real name.
18400soname_spec=$lt_soname_spec
18401
18402# Commands used to build and install an old-style archive.
18403RANLIB=$lt_RANLIB
18404old_archive_cmds=$lt_old_archive_cmds_GCJ
18405old_postinstall_cmds=$lt_old_postinstall_cmds
18406old_postuninstall_cmds=$lt_old_postuninstall_cmds
18407
18408# Create an old-style archive from a shared archive.
18409old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18410
18411# Create a temporary old-style archive to link instead of a shared archive.
18412old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18413
18414# Commands used to build and install a shared archive.
18415archive_cmds=$lt_archive_cmds_GCJ
18416archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18417postinstall_cmds=$lt_postinstall_cmds
18418postuninstall_cmds=$lt_postuninstall_cmds
18419
18420# Commands used to build a loadable module (assumed same as above if empty)
18421module_cmds=$lt_module_cmds_GCJ
18422module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18423
18424# Commands to strip libraries.
18425old_striplib=$lt_old_striplib
18426striplib=$lt_striplib
18427
18428# Dependencies to place before the objects being linked to create a
18429# shared library.
18430predep_objects=$lt_predep_objects_GCJ
18431
18432# Dependencies to place after the objects being linked to create a
18433# shared library.
18434postdep_objects=$lt_postdep_objects_GCJ
18435
18436# Dependencies to place before the objects being linked to create a
18437# shared library.
18438predeps=$lt_predeps_GCJ
18439
18440# Dependencies to place after the objects being linked to create a
18441# shared library.
18442postdeps=$lt_postdeps_GCJ
18443
18444# The library search path used internally by the compiler when linking
18445# a shared library.
18446compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18447
18448# Method to check whether dependent libraries are shared objects.
18449deplibs_check_method=$lt_deplibs_check_method
18450
18451# Command to use when deplibs_check_method == file_magic.
18452file_magic_cmd=$lt_file_magic_cmd
18453
18454# Flag that allows shared libraries with undefined symbols to be built.
18455allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18456
18457# Flag that forces no undefined symbols.
18458no_undefined_flag=$lt_no_undefined_flag_GCJ
18459
18460# Commands used to finish a libtool library installation in a directory.
18461finish_cmds=$lt_finish_cmds
18462
18463# Same as above, but a single script fragment to be evaled but not shown.
18464finish_eval=$lt_finish_eval
18465
18466# Take the output of nm and produce a listing of raw symbols and C names.
18467global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18468
18469# Transform the output of nm in a proper C declaration
18470global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18471
18472# Transform the output of nm in a C name address pair
18473global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18474
18475# This is the shared library runtime path variable.
18476runpath_var=$runpath_var
18477
18478# This is the shared library path variable.
18479shlibpath_var=$shlibpath_var
18480
18481# Is shlibpath searched before the hard-coded library search path?
18482shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18483
18484# How to hardcode a shared library path into an executable.
18485hardcode_action=$hardcode_action_GCJ
18486
18487# Whether we should hardcode library paths into libraries.
18488hardcode_into_libs=$hardcode_into_libs
18489
18490# Flag to hardcode \$libdir into a binary during linking.
18491# This must work even if \$libdir does not exist.
18492hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18493
18494# If ld is used when linking, flag to hardcode \$libdir into
18495# a binary during linking. This must work even if \$libdir does
18496# not exist.
18497hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18498
18499# Whether we need a single -rpath flag with a separated argument.
18500hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18501
18502# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18503# resulting binary.
18504hardcode_direct=$hardcode_direct_GCJ
18505
18506# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18507# resulting binary.
18508hardcode_minus_L=$hardcode_minus_L_GCJ
18509
18510# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18511# the resulting binary.
18512hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18513
18514# Set to yes if building a shared library automatically hardcodes DIR into the library
18515# and all subsequent libraries and executables linked against it.
18516hardcode_automatic=$hardcode_automatic_GCJ
18517
18518# Variables whose values should be saved in libtool wrapper scripts and
18519# restored at relink time.
18520variables_saved_for_relink="$variables_saved_for_relink"
18521
18522# Whether libtool must link a program against all its dependency libraries.
18523link_all_deplibs=$link_all_deplibs_GCJ
18524
18525# Compile-time system search path for libraries
18526sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18527
18528# Run-time system search path for libraries
18529sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18530
18531# Fix the shell variable \$srcfile for the compiler.
18532fix_srcfile_path="$fix_srcfile_path_GCJ"
18533
18534# Set to yes if exported symbols are required.
18535always_export_symbols=$always_export_symbols_GCJ
18536
18537# The commands to list exported symbols.
18538export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18539
18540# The commands to extract the exported symbol list from a shared archive.
18541extract_expsyms_cmds=$lt_extract_expsyms_cmds
18542
18543# Symbols that should not be listed in the preloaded symbols.
18544exclude_expsyms=$lt_exclude_expsyms_GCJ
18545
18546# Symbols that must always be exported.
18547include_expsyms=$lt_include_expsyms_GCJ
18548
18549# ### END LIBTOOL TAG CONFIG: $tagname
18550
18551__EOF__
18552
18553
18554else
18555 # If there is no Makefile yet, we rely on a make rule to execute
18556 # `config.status --recheck' to rerun these tests and create the
18557 # libtool script then.
18558 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18559 if test -f "$ltmain_in"; then
18560 test -f Makefile && make "$ltmain"
18561 fi
18562fi
18563
18564
18565ac_ext=c
18566ac_cpp='$CPP $CPPFLAGS'
18567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18569ac_compiler_gnu=$ac_cv_c_compiler_gnu
18570
18571CC="$lt_save_CC"
18572
18573 else
18574 tagname=""
18575 fi
18576 ;;
18577
18578 RC)
18579
18580
18581
18582# Source file extension for RC test sources.
18583ac_ext=rc
18584
18585# Object file extension for compiled RC test sources.
18586objext=o
18587objext_RC=$objext
18588
18589# Code to be used in simple compile tests
18590lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18591
18592# Code to be used in simple link tests
18593lt_simple_link_test_code="$lt_simple_compile_test_code"
18594
18595# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18596
18597# If no C compiler was specified, use CC.
18598LTCC=${LTCC-"$CC"}
18599
18600# Allow CC to be a program name with arguments.
18601compiler=$CC
18602
18603
18604# Allow CC to be a program name with arguments.
18605lt_save_CC="$CC"
18606CC=${RC-"windres"}
18607compiler=$CC
18608compiler_RC=$CC
18609lt_cv_prog_compiler_c_o_RC=yes
18610
18611# The else clause should only fire when bootstrapping the
18612# libtool distribution, otherwise you forgot to ship ltmain.sh
18613# with your package, and you will get complaints that there are
18614# no rules to generate ltmain.sh.
18615if test -f "$ltmain"; then
18616 # See if we are running on zsh, and set the options which allow our commands through
18617 # without removal of \ escapes.
18618 if test -n "${ZSH_VERSION+set}" ; then
18619 setopt NO_GLOB_SUBST
18620 fi
18621 # Now quote all the things that may contain metacharacters while being
18622 # careful not to overquote the AC_SUBSTed values. We take copies of the
18623 # variables and quote the copies for generation of the libtool script.
18624 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18625 SED SHELL STRIP \
18626 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18627 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18628 deplibs_check_method reload_flag reload_cmds need_locks \
18629 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18630 lt_cv_sys_global_symbol_to_c_name_address \
18631 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18632 old_postinstall_cmds old_postuninstall_cmds \
18633 compiler_RC \
18634 CC_RC \
18635 LD_RC \
18636 lt_prog_compiler_wl_RC \
18637 lt_prog_compiler_pic_RC \
18638 lt_prog_compiler_static_RC \
18639 lt_prog_compiler_no_builtin_flag_RC \
18640 export_dynamic_flag_spec_RC \
18641 thread_safe_flag_spec_RC \
18642 whole_archive_flag_spec_RC \
18643 enable_shared_with_static_runtimes_RC \
18644 old_archive_cmds_RC \
18645 old_archive_from_new_cmds_RC \
18646 predep_objects_RC \
18647 postdep_objects_RC \
18648 predeps_RC \
18649 postdeps_RC \
18650 compiler_lib_search_path_RC \
18651 archive_cmds_RC \
18652 archive_expsym_cmds_RC \
18653 postinstall_cmds_RC \
18654 postuninstall_cmds_RC \
18655 old_archive_from_expsyms_cmds_RC \
18656 allow_undefined_flag_RC \
18657 no_undefined_flag_RC \
18658 export_symbols_cmds_RC \
18659 hardcode_libdir_flag_spec_RC \
18660 hardcode_libdir_flag_spec_ld_RC \
18661 hardcode_libdir_separator_RC \
18662 hardcode_automatic_RC \
18663 module_cmds_RC \
18664 module_expsym_cmds_RC \
18665 lt_cv_prog_compiler_c_o_RC \
18666 exclude_expsyms_RC \
18667 include_expsyms_RC; do
18668
18669 case $var in
18670 old_archive_cmds_RC | \
18671 old_archive_from_new_cmds_RC | \
18672 archive_cmds_RC | \
18673 archive_expsym_cmds_RC | \
18674 module_cmds_RC | \
18675 module_expsym_cmds_RC | \
18676 old_archive_from_expsyms_cmds_RC | \
18677 export_symbols_cmds_RC | \
18678 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18679 postinstall_cmds | postuninstall_cmds | \
18680 old_postinstall_cmds | old_postuninstall_cmds | \
18681 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18682 # Double-quote double-evaled strings.
18683 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18684 ;;
18685 *)
18686 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18687 ;;
18688 esac
18689 done
18690
18691 case $lt_echo in
18692 *'\$0 --fallback-echo"')
18693 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18694 ;;
18695 esac
18696
18697cfgfile="$ofile"
18698
18699 cat <<__EOF__ >> "$cfgfile"
18700# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18701
18702# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18703
18704# Shell to use when invoking shell scripts.
18705SHELL=$lt_SHELL
18706
18707# Whether or not to build shared libraries.
18708build_libtool_libs=$enable_shared
18709
18710# Whether or not to build static libraries.
18711build_old_libs=$enable_static
18712
18713# Whether or not to add -lc for building shared libraries.
18714build_libtool_need_lc=$archive_cmds_need_lc_RC
18715
18716# Whether or not to disallow shared libs when runtime libs are static
18717allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18718
18719# Whether or not to optimize for fast installation.
18720fast_install=$enable_fast_install
18721
18722# The host system.
18723host_alias=$host_alias
18724host=$host
18725
18726# An echo program that does not interpret backslashes.
18727echo=$lt_echo
18728
18729# The archiver.
18730AR=$lt_AR
18731AR_FLAGS=$lt_AR_FLAGS
18732
18733# A C compiler.
18734LTCC=$lt_LTCC
18735
18736# A language-specific compiler.
18737CC=$lt_compiler_RC
18738
18739# Is the compiler the GNU C compiler?
18740with_gcc=$GCC_RC
18741
18742# An ERE matcher.
18743EGREP=$lt_EGREP
18744
18745# The linker used to build libraries.
18746LD=$lt_LD_RC
18747
18748# Whether we need hard or soft links.
18749LN_S=$lt_LN_S
18750
18751# A BSD-compatible nm program.
18752NM=$lt_NM
18753
18754# A symbol stripping program
18755STRIP=$lt_STRIP
18756
18757# Used to examine libraries when file_magic_cmd begins "file"
18758MAGIC_CMD=$MAGIC_CMD
18759
18760# Used on cygwin: DLL creation program.
18761DLLTOOL="$DLLTOOL"
18762
18763# Used on cygwin: object dumper.
18764OBJDUMP="$OBJDUMP"
18765
18766# Used on cygwin: assembler.
18767AS="$AS"
18768
18769# The name of the directory that contains temporary libtool files.
18770objdir=$objdir
18771
18772# How to create reloadable object files.
18773reload_flag=$lt_reload_flag
18774reload_cmds=$lt_reload_cmds
18775
18776# How to pass a linker flag through the compiler.
18777wl=$lt_lt_prog_compiler_wl_RC
18778
18779# Object file suffix (normally "o").
18780objext="$ac_objext"
18781
18782# Old archive suffix (normally "a").
18783libext="$libext"
18784
18785# Shared library suffix (normally ".so").
18786shrext='$shrext'
18787
18788# Executable file suffix (normally "").
18789exeext="$exeext"
18790
18791# Additional compiler flags for building library objects.
18792pic_flag=$lt_lt_prog_compiler_pic_RC
18793pic_mode=$pic_mode
18794
18795# What is the maximum length of a command?
18796max_cmd_len=$lt_cv_sys_max_cmd_len
18797
18798# Does compiler simultaneously support -c and -o options?
18799compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18800
18801# Must we lock files when doing compilation ?
18802need_locks=$lt_need_locks
18803
18804# Do we need the lib prefix for modules?
18805need_lib_prefix=$need_lib_prefix
18806
18807# Do we need a version for libraries?
18808need_version=$need_version
18809
18810# Whether dlopen is supported.
18811dlopen_support=$enable_dlopen
18812
18813# Whether dlopen of programs is supported.
18814dlopen_self=$enable_dlopen_self
18815
18816# Whether dlopen of statically linked programs is supported.
18817dlopen_self_static=$enable_dlopen_self_static
18818
18819# Compiler flag to prevent dynamic linking.
18820link_static_flag=$lt_lt_prog_compiler_static_RC
18821
18822# Compiler flag to turn off builtin functions.
18823no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18824
18825# Compiler flag to allow reflexive dlopens.
18826export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18827
18828# Compiler flag to generate shared objects directly from archives.
18829whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18830
18831# Compiler flag to generate thread-safe objects.
18832thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18833
18834# Library versioning type.
18835version_type=$version_type
18836
18837# Format of library name prefix.
18838libname_spec=$lt_libname_spec
18839
18840# List of archive names. First name is the real one, the rest are links.
18841# The last name is the one that the linker finds with -lNAME.
18842library_names_spec=$lt_library_names_spec
18843
18844# The coded name of the library, if different from the real name.
18845soname_spec=$lt_soname_spec
18846
18847# Commands used to build and install an old-style archive.
18848RANLIB=$lt_RANLIB
18849old_archive_cmds=$lt_old_archive_cmds_RC
18850old_postinstall_cmds=$lt_old_postinstall_cmds
18851old_postuninstall_cmds=$lt_old_postuninstall_cmds
18852
18853# Create an old-style archive from a shared archive.
18854old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18855
18856# Create a temporary old-style archive to link instead of a shared archive.
18857old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18858
18859# Commands used to build and install a shared archive.
18860archive_cmds=$lt_archive_cmds_RC
18861archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18862postinstall_cmds=$lt_postinstall_cmds
18863postuninstall_cmds=$lt_postuninstall_cmds
18864
18865# Commands used to build a loadable module (assumed same as above if empty)
18866module_cmds=$lt_module_cmds_RC
18867module_expsym_cmds=$lt_module_expsym_cmds_RC
18868
18869# Commands to strip libraries.
18870old_striplib=$lt_old_striplib
18871striplib=$lt_striplib
18872
18873# Dependencies to place before the objects being linked to create a
18874# shared library.
18875predep_objects=$lt_predep_objects_RC
18876
18877# Dependencies to place after the objects being linked to create a
18878# shared library.
18879postdep_objects=$lt_postdep_objects_RC
18880
18881# Dependencies to place before the objects being linked to create a
18882# shared library.
18883predeps=$lt_predeps_RC
18884
18885# Dependencies to place after the objects being linked to create a
18886# shared library.
18887postdeps=$lt_postdeps_RC
18888
18889# The library search path used internally by the compiler when linking
18890# a shared library.
18891compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18892
18893# Method to check whether dependent libraries are shared objects.
18894deplibs_check_method=$lt_deplibs_check_method
18895
18896# Command to use when deplibs_check_method == file_magic.
18897file_magic_cmd=$lt_file_magic_cmd
18898
18899# Flag that allows shared libraries with undefined symbols to be built.
18900allow_undefined_flag=$lt_allow_undefined_flag_RC
18901
18902# Flag that forces no undefined symbols.
18903no_undefined_flag=$lt_no_undefined_flag_RC
18904
18905# Commands used to finish a libtool library installation in a directory.
18906finish_cmds=$lt_finish_cmds
18907
18908# Same as above, but a single script fragment to be evaled but not shown.
18909finish_eval=$lt_finish_eval
18910
18911# Take the output of nm and produce a listing of raw symbols and C names.
18912global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18913
18914# Transform the output of nm in a proper C declaration
18915global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18916
18917# Transform the output of nm in a C name address pair
18918global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18919
18920# This is the shared library runtime path variable.
18921runpath_var=$runpath_var
18922
18923# This is the shared library path variable.
18924shlibpath_var=$shlibpath_var
18925
18926# Is shlibpath searched before the hard-coded library search path?
18927shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18928
18929# How to hardcode a shared library path into an executable.
18930hardcode_action=$hardcode_action_RC
18931
18932# Whether we should hardcode library paths into libraries.
18933hardcode_into_libs=$hardcode_into_libs
18934
18935# Flag to hardcode \$libdir into a binary during linking.
18936# This must work even if \$libdir does not exist.
18937hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18938
18939# If ld is used when linking, flag to hardcode \$libdir into
18940# a binary during linking. This must work even if \$libdir does
18941# not exist.
18942hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18943
18944# Whether we need a single -rpath flag with a separated argument.
18945hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18946
18947# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18948# resulting binary.
18949hardcode_direct=$hardcode_direct_RC
18950
18951# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18952# resulting binary.
18953hardcode_minus_L=$hardcode_minus_L_RC
18954
18955# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18956# the resulting binary.
18957hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18958
18959# Set to yes if building a shared library automatically hardcodes DIR into the library
18960# and all subsequent libraries and executables linked against it.
18961hardcode_automatic=$hardcode_automatic_RC
18962
18963# Variables whose values should be saved in libtool wrapper scripts and
18964# restored at relink time.
18965variables_saved_for_relink="$variables_saved_for_relink"
18966
18967# Whether libtool must link a program against all its dependency libraries.
18968link_all_deplibs=$link_all_deplibs_RC
18969
18970# Compile-time system search path for libraries
18971sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18972
18973# Run-time system search path for libraries
18974sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18975
18976# Fix the shell variable \$srcfile for the compiler.
18977fix_srcfile_path="$fix_srcfile_path_RC"
18978
18979# Set to yes if exported symbols are required.
18980always_export_symbols=$always_export_symbols_RC
18981
18982# The commands to list exported symbols.
18983export_symbols_cmds=$lt_export_symbols_cmds_RC
18984
18985# The commands to extract the exported symbol list from a shared archive.
18986extract_expsyms_cmds=$lt_extract_expsyms_cmds
18987
18988# Symbols that should not be listed in the preloaded symbols.
18989exclude_expsyms=$lt_exclude_expsyms_RC
18990
18991# Symbols that must always be exported.
18992include_expsyms=$lt_include_expsyms_RC
18993
18994# ### END LIBTOOL TAG CONFIG: $tagname
18995
18996__EOF__
18997
18998
18999else
19000 # If there is no Makefile yet, we rely on a make rule to execute
19001 # `config.status --recheck' to rerun these tests and create the
19002 # libtool script then.
19003 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19004 if test -f "$ltmain_in"; then
19005 test -f Makefile && make "$ltmain"
19006 fi
19007fi
19008
19009
19010ac_ext=c
19011ac_cpp='$CPP $CPPFLAGS'
19012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19014ac_compiler_gnu=$ac_cv_c_compiler_gnu
19015
19016CC="$lt_save_CC"
19017
19018 ;;
19019
19020 *)
19021 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19022echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19023 { (exit 1); exit 1; }; }
19024 ;;
19025 esac
19026
19027 # Append the new tag name to the list of available tags.
19028 if test -n "$tagname" ; then
19029 available_tags="$available_tags $tagname"
19030 fi
19031 fi
19032 done
19033 IFS="$lt_save_ifs"
19034
19035 # Now substitute the updated list of available tags.
19036 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19037 mv "${ofile}T" "$ofile"
19038 chmod +x "$ofile"
19039 else
19040 rm -f "${ofile}T"
19041 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19042echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19043 { (exit 1); exit 1; }; }
19044 fi
19045fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019046
19047
19048
19049# This can be used to rebuild libtool when needed
19050LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19051
19052# Always use our own libtool.
19053LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19054
19055# Prevent multiple expansion
19056
19057
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
mostang.com!davidm6af90d02003-02-15 08:53:55 +000019076# By default we simply use the C compiler to build assembly code.
19077
19078: ${CCAS='$(CC)'}
19079# Set ASFLAGS if not already set.
19080: ${CCASFLAGS='$(CFLAGS)'}
19081
19082
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019083
19084
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019085echo "$as_me:$LINENO: checking for __uc_get_grs in -luca" >&5
19086echo $ECHO_N "checking for __uc_get_grs in -luca... $ECHO_C" >&6
19087if test "${ac_cv_lib_uca___uc_get_grs+set}" = set; then
19088 echo $ECHO_N "(cached) $ECHO_C" >&6
19089else
19090 ac_check_lib_save_LIBS=$LIBS
19091LIBS="-luca $LIBS"
19092cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019093/* confdefs.h. */
19094_ACEOF
19095cat confdefs.h >>conftest.$ac_ext
19096cat >>conftest.$ac_ext <<_ACEOF
19097/* end confdefs.h. */
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019098
19099/* Override any gcc2 internal prototype to avoid an error. */
19100#ifdef __cplusplus
19101extern "C"
19102#endif
19103/* We use char because int might match the return type of a gcc2
19104 builtin and then its argument prototype would still apply. */
19105char __uc_get_grs ();
19106int
19107main ()
19108{
19109__uc_get_grs ();
19110 ;
19111 return 0;
19112}
19113_ACEOF
19114rm -f conftest.$ac_objext conftest$ac_exeext
19115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019116 (eval $ac_link) 2>conftest.er1
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019117 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019118 grep -v '^ *+' conftest.er1 >conftest.err
19119 rm -f conftest.er1
19120 cat conftest.err >&5
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019123 { ac_try='test -z "$ac_c_werror_flag"
19124 || test ! -s conftest.err'
19125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126 (eval $ac_try) 2>&5
19127 ac_status=$?
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); }; } &&
19130 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19132 (eval $ac_try) 2>&5
19133 ac_status=$?
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); }; }; then
19136 ac_cv_lib_uca___uc_get_grs=yes
19137else
19138 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019139sed 's/^/| /' conftest.$ac_ext >&5
19140
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019141ac_cv_lib_uca___uc_get_grs=no
19142fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019143rm -f conftest.err conftest.$ac_objext \
19144 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019145LIBS=$ac_check_lib_save_LIBS
19146fi
19147echo "$as_me:$LINENO: result: $ac_cv_lib_uca___uc_get_grs" >&5
19148echo "${ECHO_T}$ac_cv_lib_uca___uc_get_grs" >&6
19149if test $ac_cv_lib_uca___uc_get_grs = yes; then
19150 cat >>confdefs.h <<_ACEOF
19151#define HAVE_LIBUCA 1
19152_ACEOF
19153
19154 LIBS="-luca $LIBS"
19155
19156fi
19157
19158
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019159for ac_header in atomic_ops.h
19160do
19161as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19162if eval "test \"\${$as_ac_Header+set}\" = set"; then
19163 echo "$as_me:$LINENO: checking for $ac_header" >&5
19164echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19165if eval "test \"\${$as_ac_Header+set}\" = set"; then
19166 echo $ECHO_N "(cached) $ECHO_C" >&6
19167fi
19168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19169echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19170else
19171 # Is the header compilable?
19172echo "$as_me:$LINENO: checking $ac_header usability" >&5
19173echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19174cat >conftest.$ac_ext <<_ACEOF
19175/* confdefs.h. */
19176_ACEOF
19177cat confdefs.h >>conftest.$ac_ext
19178cat >>conftest.$ac_ext <<_ACEOF
19179/* end confdefs.h. */
19180$ac_includes_default
19181#include <$ac_header>
19182_ACEOF
19183rm -f conftest.$ac_objext
19184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19185 (eval $ac_compile) 2>conftest.er1
19186 ac_status=$?
19187 grep -v '^ *+' conftest.er1 >conftest.err
19188 rm -f conftest.er1
19189 cat conftest.err >&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); } &&
19192 { ac_try='test -z "$ac_c_werror_flag"
19193 || test ! -s conftest.err'
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; } &&
19199 { ac_try='test -s conftest.$ac_objext'
19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19202 ac_status=$?
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; }; then
19205 ac_header_compiler=yes
19206else
19207 echo "$as_me: failed program was:" >&5
19208sed 's/^/| /' conftest.$ac_ext >&5
19209
19210ac_header_compiler=no
19211fi
19212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19213echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19214echo "${ECHO_T}$ac_header_compiler" >&6
19215
19216# Is the header present?
19217echo "$as_me:$LINENO: checking $ac_header presence" >&5
19218echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19219cat >conftest.$ac_ext <<_ACEOF
19220/* confdefs.h. */
19221_ACEOF
19222cat confdefs.h >>conftest.$ac_ext
19223cat >>conftest.$ac_ext <<_ACEOF
19224/* end confdefs.h. */
19225#include <$ac_header>
19226_ACEOF
19227if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19229 ac_status=$?
19230 grep -v '^ *+' conftest.er1 >conftest.err
19231 rm -f conftest.er1
19232 cat conftest.err >&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } >/dev/null; then
19235 if test -s conftest.err; then
19236 ac_cpp_err=$ac_c_preproc_warn_flag
19237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19238 else
19239 ac_cpp_err=
19240 fi
19241else
19242 ac_cpp_err=yes
19243fi
19244if test -z "$ac_cpp_err"; then
19245 ac_header_preproc=yes
19246else
19247 echo "$as_me: failed program was:" >&5
19248sed 's/^/| /' conftest.$ac_ext >&5
19249
19250 ac_header_preproc=no
19251fi
19252rm -f conftest.err conftest.$ac_ext
19253echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19254echo "${ECHO_T}$ac_header_preproc" >&6
19255
19256# So? What about this header?
19257case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19258 yes:no: )
19259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19260echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19262echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19263 ac_header_preproc=yes
19264 ;;
19265 no:yes:* )
19266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19267echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19269echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19271echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19273echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19275echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19277echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19278 (
19279 cat <<\_ASBOX
19280## ------------------------------------------ ##
19281## Report this to the AC_PACKAGE_NAME lists. ##
19282## ------------------------------------------ ##
19283_ASBOX
19284 ) |
19285 sed "s/^/$as_me: WARNING: /" >&2
19286 ;;
19287esac
19288echo "$as_me:$LINENO: checking for $ac_header" >&5
19289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19290if eval "test \"\${$as_ac_Header+set}\" = set"; then
19291 echo $ECHO_N "(cached) $ECHO_C" >&6
19292else
19293 eval "$as_ac_Header=\$ac_header_preproc"
19294fi
19295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19296echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19297
19298fi
19299if test `eval echo '${'$as_ac_Header'}'` = yes; then
19300 cat >>confdefs.h <<_ACEOF
19301#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19302_ACEOF
19303
19304fi
19305
19306done
19307
19308
19309echo "$as_me:$LINENO: checking for main in -latomic_ops" >&5
19310echo $ECHO_N "checking for main in -latomic_ops... $ECHO_C" >&6
19311if test "${ac_cv_lib_atomic_ops_main+set}" = set; then
19312 echo $ECHO_N "(cached) $ECHO_C" >&6
19313else
19314 ac_check_lib_save_LIBS=$LIBS
19315LIBS="-latomic_ops $LIBS"
19316cat >conftest.$ac_ext <<_ACEOF
19317/* confdefs.h. */
19318_ACEOF
19319cat confdefs.h >>conftest.$ac_ext
19320cat >>conftest.$ac_ext <<_ACEOF
19321/* end confdefs.h. */
19322
19323
19324int
19325main ()
19326{
19327main ();
19328 ;
19329 return 0;
19330}
19331_ACEOF
19332rm -f conftest.$ac_objext conftest$ac_exeext
19333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19334 (eval $ac_link) 2>conftest.er1
19335 ac_status=$?
19336 grep -v '^ *+' conftest.er1 >conftest.err
19337 rm -f conftest.er1
19338 cat conftest.err >&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } &&
19341 { ac_try='test -z "$ac_c_werror_flag"
19342 || test ! -s conftest.err'
19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344 (eval $ac_try) 2>&5
19345 ac_status=$?
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; } &&
19348 { ac_try='test -s conftest$ac_exeext'
19349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19350 (eval $ac_try) 2>&5
19351 ac_status=$?
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); }; }; then
19354 ac_cv_lib_atomic_ops_main=yes
19355else
19356 echo "$as_me: failed program was:" >&5
19357sed 's/^/| /' conftest.$ac_ext >&5
19358
19359ac_cv_lib_atomic_ops_main=no
19360fi
19361rm -f conftest.err conftest.$ac_objext \
19362 conftest$ac_exeext conftest.$ac_ext
19363LIBS=$ac_check_lib_save_LIBS
19364fi
19365echo "$as_me:$LINENO: result: $ac_cv_lib_atomic_ops_main" >&5
19366echo "${ECHO_T}$ac_cv_lib_atomic_ops_main" >&6
19367if test $ac_cv_lib_atomic_ops_main = yes; then
19368 cat >>confdefs.h <<_ACEOF
19369#define HAVE_LIBATOMIC_OPS 1
19370_ACEOF
19371
19372 LIBS="-latomic_ops $LIBS"
19373
19374fi
19375
19376
19377
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019378echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19379echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19380if test "${ac_cv_header_stdc+set}" = set; then
19381 echo $ECHO_N "(cached) $ECHO_C" >&6
19382else
19383 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019384/* confdefs.h. */
19385_ACEOF
19386cat confdefs.h >>conftest.$ac_ext
19387cat >>conftest.$ac_ext <<_ACEOF
19388/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019389#include <stdlib.h>
19390#include <stdarg.h>
19391#include <string.h>
19392#include <float.h>
19393
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019394int
19395main ()
19396{
19397
19398 ;
19399 return 0;
19400}
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019401_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019402rm -f conftest.$ac_objext
19403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019404 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019405 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019406 grep -v '^ *+' conftest.er1 >conftest.err
19407 rm -f conftest.er1
19408 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019410 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019411 { ac_try='test -z "$ac_c_werror_flag"
19412 || test ! -s conftest.err'
19413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414 (eval $ac_try) 2>&5
19415 ac_status=$?
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; } &&
19418 { ac_try='test -s conftest.$ac_objext'
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19420 (eval $ac_try) 2>&5
19421 ac_status=$?
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); }; }; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019424 ac_cv_header_stdc=yes
19425else
19426 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019427sed 's/^/| /' conftest.$ac_ext >&5
19428
19429ac_cv_header_stdc=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019430fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019432
19433if test $ac_cv_header_stdc = yes; then
19434 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19435 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019436/* confdefs.h. */
19437_ACEOF
19438cat confdefs.h >>conftest.$ac_ext
19439cat >>conftest.$ac_ext <<_ACEOF
19440/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019441#include <string.h>
19442
19443_ACEOF
19444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19445 $EGREP "memchr" >/dev/null 2>&1; then
19446 :
19447else
19448 ac_cv_header_stdc=no
19449fi
19450rm -f conftest*
19451
19452fi
19453
19454if test $ac_cv_header_stdc = yes; then
19455 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19456 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019457/* confdefs.h. */
19458_ACEOF
19459cat confdefs.h >>conftest.$ac_ext
19460cat >>conftest.$ac_ext <<_ACEOF
19461/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019462#include <stdlib.h>
19463
19464_ACEOF
19465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19466 $EGREP "free" >/dev/null 2>&1; then
19467 :
19468else
19469 ac_cv_header_stdc=no
19470fi
19471rm -f conftest*
19472
19473fi
19474
19475if test $ac_cv_header_stdc = yes; then
19476 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19477 if test "$cross_compiling" = yes; then
19478 :
19479else
19480 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019481/* confdefs.h. */
19482_ACEOF
19483cat confdefs.h >>conftest.$ac_ext
19484cat >>conftest.$ac_ext <<_ACEOF
19485/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019486#include <ctype.h>
19487#if ((' ' & 0x0FF) == 0x020)
19488# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19489# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19490#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019491# define ISLOWER(c) \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019492 (('a' <= (c) && (c) <= 'i') \
19493 || ('j' <= (c) && (c) <= 'r') \
19494 || ('s' <= (c) && (c) <= 'z'))
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019495# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19496#endif
19497
19498#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19499int
19500main ()
19501{
19502 int i;
19503 for (i = 0; i < 256; i++)
19504 if (XOR (islower (i), ISLOWER (i))
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019505 || toupper (i) != TOUPPER (i))
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019506 exit(2);
19507 exit (0);
19508}
19509_ACEOF
19510rm -f conftest$ac_exeext
19511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19512 (eval $ac_link) 2>&5
19513 ac_status=$?
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19517 (eval $ac_try) 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; }; then
19521 :
19522else
19523 echo "$as_me: program exited with status $ac_status" >&5
19524echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019525sed 's/^/| /' conftest.$ac_ext >&5
19526
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019527( exit $ac_status )
19528ac_cv_header_stdc=no
19529fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019530rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019531fi
19532fi
19533fi
19534echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19535echo "${ECHO_T}$ac_cv_header_stdc" >&6
19536if test $ac_cv_header_stdc = yes; then
19537
19538cat >>confdefs.h <<\_ACEOF
19539#define STDC_HEADERS 1
19540_ACEOF
19541
19542fi
19543
19544
mostang.com!davidm6af90d02003-02-15 08:53:55 +000019545
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019546
19547
19548
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019549
hp.com!davidm9bd061e2003-09-25 05:29:14 +000019550
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019551for ac_header in asm/ptrace_offsets.h endian.h execinfo.h ia64intrin.h \
hp.com!davidm9bd061e2003-09-25 05:29:14 +000019552 sys/uc_access.h unistd.h signal.h
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019553do
19554as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19555if eval "test \"\${$as_ac_Header+set}\" = set"; then
19556 echo "$as_me:$LINENO: checking for $ac_header" >&5
19557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19558if eval "test \"\${$as_ac_Header+set}\" = set"; then
19559 echo $ECHO_N "(cached) $ECHO_C" >&6
19560fi
19561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19562echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19563else
19564 # Is the header compilable?
19565echo "$as_me:$LINENO: checking $ac_header usability" >&5
19566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19567cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019568/* confdefs.h. */
19569_ACEOF
19570cat confdefs.h >>conftest.$ac_ext
19571cat >>conftest.$ac_ext <<_ACEOF
19572/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019573$ac_includes_default
19574#include <$ac_header>
19575_ACEOF
19576rm -f conftest.$ac_objext
19577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019578 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019579 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019580 grep -v '^ *+' conftest.er1 >conftest.err
19581 rm -f conftest.er1
19582 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019585 { ac_try='test -z "$ac_c_werror_flag"
19586 || test ! -s conftest.err'
19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588 (eval $ac_try) 2>&5
19589 ac_status=$?
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; } &&
19592 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19594 (eval $ac_try) 2>&5
19595 ac_status=$?
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); }; }; then
19598 ac_header_compiler=yes
19599else
19600 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019601sed 's/^/| /' conftest.$ac_ext >&5
19602
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019603ac_header_compiler=no
19604fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019606echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19607echo "${ECHO_T}$ac_header_compiler" >&6
19608
19609# Is the header present?
19610echo "$as_me:$LINENO: checking $ac_header presence" >&5
19611echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19612cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019613/* confdefs.h. */
19614_ACEOF
19615cat confdefs.h >>conftest.$ac_ext
19616cat >>conftest.$ac_ext <<_ACEOF
19617/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019618#include <$ac_header>
19619_ACEOF
19620if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19622 ac_status=$?
19623 grep -v '^ *+' conftest.er1 >conftest.err
19624 rm -f conftest.er1
19625 cat conftest.err >&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } >/dev/null; then
19628 if test -s conftest.err; then
19629 ac_cpp_err=$ac_c_preproc_warn_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019631 else
19632 ac_cpp_err=
19633 fi
19634else
19635 ac_cpp_err=yes
19636fi
19637if test -z "$ac_cpp_err"; then
19638 ac_header_preproc=yes
19639else
19640 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019641sed 's/^/| /' conftest.$ac_ext >&5
19642
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019643 ac_header_preproc=no
19644fi
19645rm -f conftest.err conftest.$ac_ext
19646echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19647echo "${ECHO_T}$ac_header_preproc" >&6
19648
19649# So? What about this header?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019650case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19651 yes:no: )
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19653echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19655echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19656 ac_header_preproc=yes
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019657 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019658 no:yes:* )
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19660echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19662echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19664echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19666echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019668echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19670echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019671 (
19672 cat <<\_ASBOX
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019673## ------------------------------------------ ##
19674## Report this to the AC_PACKAGE_NAME lists. ##
19675## ------------------------------------------ ##
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019676_ASBOX
19677 ) |
19678 sed "s/^/$as_me: WARNING: /" >&2
19679 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019680esac
19681echo "$as_me:$LINENO: checking for $ac_header" >&5
19682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19683if eval "test \"\${$as_ac_Header+set}\" = set"; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19685else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019686 eval "$as_ac_Header=\$ac_header_preproc"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019687fi
19688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19689echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19690
19691fi
19692if test `eval echo '${'$as_ac_Header'}'` = yes; then
19693 cat >>confdefs.h <<_ACEOF
19694#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19695_ACEOF
19696
19697fi
19698
19699done
19700
19701
19702echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19703echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19704if test "${ac_cv_c_const+set}" = set; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19706else
19707 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019708/* confdefs.h. */
19709_ACEOF
19710cat confdefs.h >>conftest.$ac_ext
19711cat >>conftest.$ac_ext <<_ACEOF
19712/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019713
19714int
19715main ()
19716{
19717/* FIXME: Include the comments suggested by Paul. */
19718#ifndef __cplusplus
19719 /* Ultrix mips cc rejects this. */
19720 typedef int charset[2];
19721 const charset x;
19722 /* SunOS 4.1.1 cc rejects this. */
19723 char const *const *ccp;
19724 char **p;
19725 /* NEC SVR4.0.2 mips cc rejects this. */
19726 struct point {int x, y;};
19727 static struct point const zero = {0,0};
19728 /* AIX XL C 1.02.0.0 rejects this.
19729 It does not let you subtract one const X* pointer from another in
19730 an arm of an if-expression whose if-part is not a constant
19731 expression */
19732 const char *g = "string";
19733 ccp = &g + (g ? g-g : 0);
19734 /* HPUX 7.0 cc rejects these. */
19735 ++ccp;
19736 p = (char**) ccp;
19737 ccp = (char const *const *) p;
19738 { /* SCO 3.2v4 cc rejects this. */
19739 char *t;
19740 char const *s = 0 ? (char *) 0 : (char const *) 0;
19741
19742 *t++ = 0;
19743 }
19744 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19745 int x[] = {25, 17};
19746 const int *foo = &x[0];
19747 ++foo;
19748 }
19749 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19750 typedef const int *iptr;
19751 iptr p = 0;
19752 ++p;
19753 }
19754 { /* AIX XL C 1.02.0.0 rejects this saying
19755 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19756 struct s { int j; const int *ap[3]; };
19757 struct s *b; b->j = 5;
19758 }
19759 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19760 const int foo = 10;
19761 }
19762#endif
19763
19764 ;
19765 return 0;
19766}
19767_ACEOF
19768rm -f conftest.$ac_objext
19769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019770 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019771 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019772 grep -v '^ *+' conftest.er1 >conftest.err
19773 rm -f conftest.er1
19774 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019777 { ac_try='test -z "$ac_c_werror_flag"
19778 || test ! -s conftest.err'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19781 ac_status=$?
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; } &&
19784 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786 (eval $ac_try) 2>&5
19787 ac_status=$?
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; }; then
19790 ac_cv_c_const=yes
19791else
19792 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019793sed 's/^/| /' conftest.$ac_ext >&5
19794
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019795ac_cv_c_const=no
19796fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019798fi
19799echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19800echo "${ECHO_T}$ac_cv_c_const" >&6
19801if test $ac_cv_c_const = no; then
19802
19803cat >>confdefs.h <<\_ACEOF
19804#define const
19805_ACEOF
19806
19807fi
19808
19809echo "$as_me:$LINENO: checking for inline" >&5
19810echo $ECHO_N "checking for inline... $ECHO_C" >&6
19811if test "${ac_cv_c_inline+set}" = set; then
19812 echo $ECHO_N "(cached) $ECHO_C" >&6
19813else
19814 ac_cv_c_inline=no
19815for ac_kw in inline __inline__ __inline; do
19816 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019817/* confdefs.h. */
19818_ACEOF
19819cat confdefs.h >>conftest.$ac_ext
19820cat >>conftest.$ac_ext <<_ACEOF
19821/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019822#ifndef __cplusplus
19823typedef int foo_t;
19824static $ac_kw foo_t static_foo () {return 0; }
19825$ac_kw foo_t foo () {return 0; }
19826#endif
19827
19828_ACEOF
19829rm -f conftest.$ac_objext
19830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019831 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019832 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019833 grep -v '^ *+' conftest.er1 >conftest.err
19834 rm -f conftest.er1
19835 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019838 { ac_try='test -z "$ac_c_werror_flag"
19839 || test ! -s conftest.err'
19840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841 (eval $ac_try) 2>&5
19842 ac_status=$?
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; } &&
19845 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19848 ac_status=$?
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; }; then
19851 ac_cv_c_inline=$ac_kw; break
19852else
19853 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019854sed 's/^/| /' conftest.$ac_ext >&5
19855
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019856fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019858done
19859
19860fi
19861echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19862echo "${ECHO_T}$ac_cv_c_inline" >&6
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019863
19864
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019865case $ac_cv_c_inline in
19866 inline | yes) ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019867 *)
19868 case $ac_cv_c_inline in
19869 no) ac_val=;;
19870 *) ac_val=$ac_cv_c_inline;;
19871 esac
19872 cat >>confdefs.h <<_ACEOF
19873#ifndef __cplusplus
19874#define inline $ac_val
19875#endif
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019876_ACEOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019877 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019878esac
19879
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019880echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19881echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
19882if test "${ac_cv_type_signal+set}" = set; then
19883 echo $ECHO_N "(cached) $ECHO_C" >&6
19884else
19885 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019886/* confdefs.h. */
19887_ACEOF
19888cat confdefs.h >>conftest.$ac_ext
19889cat >>conftest.$ac_ext <<_ACEOF
19890/* end confdefs.h. */
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019891#include <sys/types.h>
19892#include <signal.h>
19893#ifdef signal
19894# undef signal
19895#endif
19896#ifdef __cplusplus
19897extern "C" void (*signal (int, void (*)(int)))(int);
19898#else
19899void (*signal ()) ();
19900#endif
19901
19902int
19903main ()
19904{
19905int i;
19906 ;
19907 return 0;
19908}
19909_ACEOF
19910rm -f conftest.$ac_objext
19911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019912 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019913 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019914 grep -v '^ *+' conftest.er1 >conftest.err
19915 rm -f conftest.er1
19916 cat conftest.err >&5
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019919 { ac_try='test -z "$ac_c_werror_flag"
19920 || test ! -s conftest.err'
19921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19922 (eval $ac_try) 2>&5
19923 ac_status=$?
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); }; } &&
19926 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19928 (eval $ac_try) 2>&5
19929 ac_status=$?
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); }; }; then
19932 ac_cv_type_signal=void
19933else
19934 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019935sed 's/^/| /' conftest.$ac_ext >&5
19936
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019937ac_cv_type_signal=int
19938fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019940fi
19941echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19942echo "${ECHO_T}$ac_cv_type_signal" >&6
19943
19944cat >>confdefs.h <<_ACEOF
19945#define RETSIGTYPE $ac_cv_type_signal
19946_ACEOF
19947
19948
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019949echo "$as_me:$LINENO: checking for size_t" >&5
19950echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19951if test "${ac_cv_type_size_t+set}" = set; then
19952 echo $ECHO_N "(cached) $ECHO_C" >&6
19953else
19954 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019955/* confdefs.h. */
19956_ACEOF
19957cat confdefs.h >>conftest.$ac_ext
19958cat >>conftest.$ac_ext <<_ACEOF
19959/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019960$ac_includes_default
19961int
19962main ()
19963{
19964if ((size_t *) 0)
19965 return 0;
19966if (sizeof (size_t))
19967 return 0;
19968 ;
19969 return 0;
19970}
19971_ACEOF
19972rm -f conftest.$ac_objext
19973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019974 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019975 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019976 grep -v '^ *+' conftest.er1 >conftest.err
19977 rm -f conftest.er1
19978 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019981 { ac_try='test -z "$ac_c_werror_flag"
19982 || test ! -s conftest.err'
19983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984 (eval $ac_try) 2>&5
19985 ac_status=$?
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }; } &&
19988 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990 (eval $ac_try) 2>&5
19991 ac_status=$?
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; }; then
19994 ac_cv_type_size_t=yes
19995else
19996 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019997sed 's/^/| /' conftest.$ac_ext >&5
19998
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019999ac_cv_type_size_t=no
20000fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020002fi
20003echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20004echo "${ECHO_T}$ac_cv_type_size_t" >&6
20005if test $ac_cv_type_size_t = yes; then
20006 :
20007else
20008
20009cat >>confdefs.h <<_ACEOF
20010#define size_t unsigned
20011_ACEOF
20012
20013fi
20014
20015
hp.com!davidm9bd061e2003-09-25 05:29:14 +000020016CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
20017if test x$enable_debug = xyes; then
20018 CPPFLAGS="${CPPFLAGS} -DDEBUG"
20019else
20020 CPPFLAGS="${CPPFLAGS} -DNDEBUG"
20021fi
20022
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020023echo "$as_me:$LINENO: checking for sighandler_t" >&5
20024echo $ECHO_N "checking for sighandler_t... $ECHO_C" >&6
20025if test "${ac_cv_type_sighandler_t+set}" = set; then
20026 echo $ECHO_N "(cached) $ECHO_C" >&6
20027else
20028 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020029/* confdefs.h. */
20030_ACEOF
20031cat confdefs.h >>conftest.$ac_ext
20032cat >>conftest.$ac_ext <<_ACEOF
20033/* end confdefs.h. */
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020034$ac_includes_default
hp.com!davidm9bd061e2003-09-25 05:29:14 +000020035#if HAVE_SIGNAL_H
20036# include <signal.h>
20037#endif
20038
20039
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020040int
20041main ()
20042{
20043if ((sighandler_t *) 0)
20044 return 0;
20045if (sizeof (sighandler_t))
20046 return 0;
20047 ;
20048 return 0;
20049}
20050_ACEOF
20051rm -f conftest.$ac_objext
20052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020053 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020054 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020055 grep -v '^ *+' conftest.er1 >conftest.err
20056 rm -f conftest.er1
20057 cat conftest.err >&5
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020060 { ac_try='test -z "$ac_c_werror_flag"
20061 || test ! -s conftest.err'
20062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063 (eval $ac_try) 2>&5
20064 ac_status=$?
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); }; } &&
20067 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069 (eval $ac_try) 2>&5
20070 ac_status=$?
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }; then
20073 ac_cv_type_sighandler_t=yes
20074else
20075 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020076sed 's/^/| /' conftest.$ac_ext >&5
20077
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020078ac_cv_type_sighandler_t=no
20079fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020081fi
20082echo "$as_me:$LINENO: result: $ac_cv_type_sighandler_t" >&5
20083echo "${ECHO_T}$ac_cv_type_sighandler_t" >&6
mostang.com!davidm46149fd2003-03-31 18:16:54 +000020084if test $ac_cv_type_sighandler_t = yes; then
20085
20086cat >>confdefs.h <<_ACEOF
20087#define HAVE_SIGHANDLER_T 1
20088_ACEOF
20089
20090
20091fi
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020092
20093
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020094echo "$as_me:$LINENO: checking for working memcmp" >&5
20095echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20096if test "${ac_cv_func_memcmp_working+set}" = set; then
20097 echo $ECHO_N "(cached) $ECHO_C" >&6
20098else
20099 if test "$cross_compiling" = yes; then
20100 ac_cv_func_memcmp_working=no
20101else
20102 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020103/* confdefs.h. */
20104_ACEOF
20105cat confdefs.h >>conftest.$ac_ext
20106cat >>conftest.$ac_ext <<_ACEOF
20107/* end confdefs.h. */
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020108$ac_includes_default
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020109int
20110main ()
20111{
20112
20113 /* Some versions of memcmp are not 8-bit clean. */
20114 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20115 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20116 exit (1);
20117
20118 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20119 or more and with at least one buffer not starting on a 4-byte boundary.
20120 William Lewis provided this test program. */
20121 {
20122 char foo[21];
20123 char bar[21];
20124 int i;
20125 for (i = 0; i < 4; i++)
20126 {
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020127 char *a = foo + i;
20128 char *b = bar + i;
20129 strcpy (a, "--------01111111");
20130 strcpy (b, "--------10000000");
20131 if (memcmp (a, b, 16) >= 0)
20132 exit (1);
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020133 }
20134 exit (0);
20135 }
20136
20137 ;
20138 return 0;
20139}
20140_ACEOF
20141rm -f conftest$ac_exeext
20142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20143 (eval $ac_link) 2>&5
20144 ac_status=$?
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148 (eval $ac_try) 2>&5
20149 ac_status=$?
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; }; then
20152 ac_cv_func_memcmp_working=yes
20153else
20154 echo "$as_me: program exited with status $ac_status" >&5
20155echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020156sed 's/^/| /' conftest.$ac_ext >&5
20157
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020158( exit $ac_status )
20159ac_cv_func_memcmp_working=no
20160fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020161rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020162fi
20163fi
20164echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
20165echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020166test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
20167 "memcmp.$ac_objext" | \
20168 *" memcmp.$ac_objext" | \
20169 "memcmp.$ac_objext "* | \
20170 *" memcmp.$ac_objext "* ) ;;
20171 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
20172esac
20173
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020174
20175echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20176echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20177if test "${ac_cv_type_signal+set}" = set; then
20178 echo $ECHO_N "(cached) $ECHO_C" >&6
20179else
20180 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020181/* confdefs.h. */
20182_ACEOF
20183cat confdefs.h >>conftest.$ac_ext
20184cat >>conftest.$ac_ext <<_ACEOF
20185/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020186#include <sys/types.h>
20187#include <signal.h>
20188#ifdef signal
20189# undef signal
20190#endif
20191#ifdef __cplusplus
20192extern "C" void (*signal (int, void (*)(int)))(int);
20193#else
20194void (*signal ()) ();
20195#endif
20196
20197int
20198main ()
20199{
20200int i;
20201 ;
20202 return 0;
20203}
20204_ACEOF
20205rm -f conftest.$ac_objext
20206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020207 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020208 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020209 grep -v '^ *+' conftest.er1 >conftest.err
20210 rm -f conftest.er1
20211 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020214 { ac_try='test -z "$ac_c_werror_flag"
20215 || test ! -s conftest.err'
20216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20217 (eval $ac_try) 2>&5
20218 ac_status=$?
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); }; } &&
20221 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20223 (eval $ac_try) 2>&5
20224 ac_status=$?
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); }; }; then
20227 ac_cv_type_signal=void
20228else
20229 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020230sed 's/^/| /' conftest.$ac_ext >&5
20231
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020232ac_cv_type_signal=int
20233fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020235fi
20236echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20237echo "${ECHO_T}$ac_cv_type_signal" >&6
20238
20239cat >>confdefs.h <<_ACEOF
20240#define RETSIGTYPE $ac_cv_type_signal
20241_ACEOF
20242
20243
20244
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020245
20246
20247
20248for ac_func in dl_iterate_phdr dlmodinfo getunwind ttrace
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020249do
20250as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20251echo "$as_me:$LINENO: checking for $ac_func" >&5
20252echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20253if eval "test \"\${$as_ac_var+set}\" = set"; then
20254 echo $ECHO_N "(cached) $ECHO_C" >&6
20255else
20256 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020257/* confdefs.h. */
20258_ACEOF
20259cat confdefs.h >>conftest.$ac_ext
20260cat >>conftest.$ac_ext <<_ACEOF
20261/* end confdefs.h. */
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020262/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20264#define $ac_func innocuous_$ac_func
20265
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020266/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020267 which can conflict with char $ac_func (); below.
20268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20269 <limits.h> exists even on freestanding compilers. */
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020270
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020271#ifdef __STDC__
20272# include <limits.h>
20273#else
20274# include <assert.h>
20275#endif
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020276
20277#undef $ac_func
20278
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020279/* Override any gcc2 internal prototype to avoid an error. */
20280#ifdef __cplusplus
20281extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020282{
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020283#endif
20284/* We use char because int might match the return type of a gcc2
20285 builtin and then its argument prototype would still apply. */
20286char $ac_func ();
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020287/* The GNU C library defines this for functions which it implements
20288 to always fail with ENOSYS. Some functions are actually named
20289 something starting with __ and the normal name is an alias. */
20290#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20291choke me
20292#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020293char (*f) () = $ac_func;
20294#endif
20295#ifdef __cplusplus
20296}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020297#endif
20298
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020299int
20300main ()
20301{
20302return f != $ac_func;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020303 ;
20304 return 0;
20305}
20306_ACEOF
20307rm -f conftest.$ac_objext conftest$ac_exeext
20308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020309 (eval $ac_link) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020310 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020311 grep -v '^ *+' conftest.er1 >conftest.err
20312 rm -f conftest.er1
20313 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020316 { ac_try='test -z "$ac_c_werror_flag"
20317 || test ! -s conftest.err'
20318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20319 (eval $ac_try) 2>&5
20320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; } &&
20323 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325 (eval $ac_try) 2>&5
20326 ac_status=$?
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; }; then
20329 eval "$as_ac_var=yes"
20330else
20331 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020332sed 's/^/| /' conftest.$ac_ext >&5
20333
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020334eval "$as_ac_var=no"
20335fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020336rm -f conftest.err conftest.$ac_objext \
20337 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020338fi
20339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20340echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20341if test `eval echo '${'$as_ac_var'}'` = yes; then
20342 cat >>confdefs.h <<_ACEOF
20343#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20344_ACEOF
20345
20346fi
20347done
20348
20349
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020350get_arch() {
20351 case "$1" in
20352 i?86) echo x86;;
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000020353 hppa*) echo hppa;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020354 *) echo $1;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020355 esac
20356}
20357
20358build_arch=`get_arch $build_cpu`
20359target_arch=`get_arch $target_cpu`
20360
20361
20362
20363if test x$target_arch != x$build_arch; then
20364 REMOTE_ONLY_TRUE=
20365 REMOTE_ONLY_FALSE='#'
20366else
20367 REMOTE_ONLY_TRUE='#'
20368 REMOTE_ONLY_FALSE=
20369fi
20370
20371
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020372
mostang.com!davidmf26451a2003-01-16 03:10:11 +000020373if test x$target_arch = xia64; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020374 ARCH_IA64_TRUE=
20375 ARCH_IA64_FALSE='#'
20376else
20377 ARCH_IA64_TRUE='#'
20378 ARCH_IA64_FALSE=
20379fi
20380
20381
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020382
mostang.com!davidmf26451a2003-01-16 03:10:11 +000020383if test x$target_arch = xhppa; then
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000020384 ARCH_HPPA_TRUE=
20385 ARCH_HPPA_FALSE='#'
20386else
20387 ARCH_HPPA_TRUE='#'
20388 ARCH_HPPA_FALSE=
20389fi
20390
20391
20392
mostang.com!davidmf26451a2003-01-16 03:10:11 +000020393if test x$target_arch = xx86; then
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020394 ARCH_X86_TRUE=
20395 ARCH_X86_FALSE='#'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020396else
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020397 ARCH_X86_TRUE='#'
20398 ARCH_X86_FALSE=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020399fi
20400
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020401
mostang.com!davidma8db0b32003-02-08 10:10:59 +000020402
20403if expr x$target_os : xlinux >/dev/null; then
20404 OS_LINUX_TRUE=
20405 OS_LINUX_FALSE='#'
20406else
20407 OS_LINUX_TRUE='#'
20408 OS_LINUX_FALSE=
20409fi
20410
20411
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000020412
20413if expr x$target_os : xhpux >/dev/null; then
20414 OS_HPUX_TRUE=
20415 OS_HPUX_FALSE='#'
20416else
20417 OS_HPUX_TRUE='#'
20418 OS_HPUX_FALSE=
20419fi
20420
20421
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020422if test x$target_arch != x$build_arch; then
20423 CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020424fi
mostang.com!davidm51e4d342002-12-12 09:17:41 +000020425 ac_config_links="$ac_config_links include/libunwind.h:include/libunwind-$target_arch.h include/tdep.h:include/tdep-$target_arch.h"
20426
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020427
20428# Check whether --enable-debug or --disable-debug was given.
20429if test "${enable_debug+set}" = set; then
20430 enableval="$enable_debug"
20431 enable_debug=yes
20432fi;
20433
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020434if test "x$enable___thread" != xno; then
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +000020435 echo "$as_me:$LINENO: checking for __thread" >&5
20436echo $ECHO_N "checking for __thread... $ECHO_C" >&6
20437if test "${libc_cv_gcc___thread+set}" = set; then
20438 echo $ECHO_N "(cached) $ECHO_C" >&6
20439else
20440 cat > conftest.c <<\EOF
20441 __thread int a = 42;
20442EOF
20443 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
20444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20445 (eval $ac_try) 2>&5
20446 ac_status=$?
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); }; }; then
20449 libc_cv_gcc___thread=yes
20450 else
20451 libc_cv_gcc___thread=no
20452 fi
20453 rm -f conftest*
20454fi
20455echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
20456echo "${ECHO_T}$libc_cv_gcc___thread" >&6
20457 if test "$libc_cv_gcc___thread" = yes; then
mostang.com!davidm57f5fae2002-12-03 08:19:58 +000020458
20459cat >>confdefs.h <<\_ACEOF
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +000020460#define HAVE___THREAD 1
20461_ACEOF
20462
20463 fi
20464else
20465 libc_cv_gcc___thread=no
20466fi
20467
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020468if test x$GCC = xyes; then
mostang.com!davidma8db0b32003-02-08 10:10:59 +000020469 CFLAGS="${CFLAGS} -Wall -Wsign-compare"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020470fi
20471
mostang.com!davidm6af90d02003-02-15 08:53:55 +000020472CCASFLAGS="${CCASFLAGS} ${CPPFLAGS}"
20473
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020474arch="$target_arch"
20475ARCH=`echo $target_arch | tr a-z A-Z`
20476
20477
20478
mostang.com!davidmf648f6f2003-01-17 07:48:52 +000020479
20480 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile doc/Makefile doc/common.tex"
20481
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020482cat >confcache <<\_ACEOF
20483# This file is a shell script that caches the results of configure
20484# tests run on this system so they can be shared between configure
20485# scripts and configure runs, see configure's option --config-cache.
20486# It is not useful on other systems. If it contains results you don't
20487# want to keep, you may remove or edit it.
20488#
20489# config.status only pays attention to the cache file if you give it
20490# the --recheck option to rerun configure.
20491#
20492# `ac_cv_env_foo' variables (set or unset) will be overridden when
20493# loading this file, other *unset* `ac_cv_foo' will be assigned the
20494# following values.
20495
20496_ACEOF
20497
20498# The following way of writing the cache mishandles newlines in values,
20499# but we know of no workaround that is simple, portable, and efficient.
20500# So, don't put newlines in cache variables' values.
20501# Ultrix sh set writes to stderr and can't be redirected directly,
20502# and sets the high bit in the cache file unless we assign to the vars.
20503{
20504 (set) 2>&1 |
20505 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20506 *ac_space=\ *)
20507 # `set' does not quote correctly, so add quotes (double-quote
20508 # substitution turns \\\\ into \\, and sed turns \\ into \).
20509 sed -n \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020510 "s/'/'\\\\''/g;
20511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020512 ;;
20513 *)
20514 # `set' quotes correctly as required by POSIX, so do not add quotes.
20515 sed -n \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020516 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020517 ;;
20518 esac;
20519} |
20520 sed '
20521 t clear
20522 : clear
20523 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20524 t end
20525 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20526 : end' >>confcache
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020527if diff $cache_file confcache >/dev/null 2>&1; then :; else
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020528 if test -w $cache_file; then
20529 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20530 cat confcache >$cache_file
20531 else
20532 echo "not updating unwritable cache $cache_file"
20533 fi
20534fi
20535rm -f confcache
20536
20537test "x$prefix" = xNONE && prefix=$ac_default_prefix
20538# Let make expand exec_prefix.
20539test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20540
20541# VPATH may cause trouble with some makes, so we remove $(srcdir),
20542# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20543# trailing colons and then remove the whole line if VPATH becomes empty
20544# (actually we leave an empty line to preserve line numbers).
20545if test "x$srcdir" = x.; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020546 ac_vpsub='/^[ ]*VPATH[ ]*=/{
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020547s/:*\$(srcdir):*/:/;
20548s/:*\${srcdir}:*/:/;
20549s/:*@srcdir@:*/:/;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020550s/^\([^=]*=[ ]*\):*/\1/;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020551s/:*$//;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020552s/^[^=]*=[ ]*$//;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020553}'
20554fi
20555
20556DEFS=-DHAVE_CONFIG_H
20557
20558ac_libobjs=
20559ac_ltlibobjs=
20560for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20561 # 1. Remove the extension, and $U if already installed.
20562 ac_i=`echo "$ac_i" |
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020563 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020564 # 2. Add them.
20565 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20566 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20567done
20568LIBOBJS=$ac_libobjs
20569
20570LTLIBOBJS=$ac_ltlibobjs
20571
20572
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020573if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20574 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20575Usually this means the macro was only invoked conditionally." >&5
20576echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20577Usually this means the macro was only invoked conditionally." >&2;}
20578 { (exit 1); exit 1; }; }
20579fi
20580if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20581 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20582Usually this means the macro was only invoked conditionally." >&5
20583echo "$as_me: error: conditional \"AMDEP\" was never defined.
20584Usually this means the macro was only invoked conditionally." >&2;}
20585 { (exit 1); exit 1; }; }
20586fi
20587if test -z "${REMOTE_ONLY_TRUE}" && test -z "${REMOTE_ONLY_FALSE}"; then
20588 { { echo "$as_me:$LINENO: error: conditional \"REMOTE_ONLY\" was never defined.
20589Usually this means the macro was only invoked conditionally." >&5
20590echo "$as_me: error: conditional \"REMOTE_ONLY\" was never defined.
20591Usually this means the macro was only invoked conditionally." >&2;}
20592 { (exit 1); exit 1; }; }
20593fi
20594if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
20595 { { echo "$as_me:$LINENO: error: conditional \"ARCH_IA64\" was never defined.
20596Usually this means the macro was only invoked conditionally." >&5
20597echo "$as_me: error: conditional \"ARCH_IA64\" was never defined.
20598Usually this means the macro was only invoked conditionally." >&2;}
20599 { (exit 1); exit 1; }; }
20600fi
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000020601if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
20602 { { echo "$as_me:$LINENO: error: conditional \"ARCH_HPPA\" was never defined.
20603Usually this means the macro was only invoked conditionally." >&5
20604echo "$as_me: error: conditional \"ARCH_HPPA\" was never defined.
20605Usually this means the macro was only invoked conditionally." >&2;}
20606 { (exit 1); exit 1; }; }
20607fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020608if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
20609 { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
20610Usually this means the macro was only invoked conditionally." >&5
20611echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
20612Usually this means the macro was only invoked conditionally." >&2;}
20613 { (exit 1); exit 1; }; }
20614fi
mostang.com!davidma8db0b32003-02-08 10:10:59 +000020615if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
20616 { { echo "$as_me:$LINENO: error: conditional \"OS_LINUX\" was never defined.
20617Usually this means the macro was only invoked conditionally." >&5
20618echo "$as_me: error: conditional \"OS_LINUX\" was never defined.
20619Usually this means the macro was only invoked conditionally." >&2;}
20620 { (exit 1); exit 1; }; }
20621fi
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000020622if test -z "${OS_HPUX_TRUE}" && test -z "${OS_HPUX_FALSE}"; then
20623 { { echo "$as_me:$LINENO: error: conditional \"OS_HPUX\" was never defined.
20624Usually this means the macro was only invoked conditionally." >&5
20625echo "$as_me: error: conditional \"OS_HPUX\" was never defined.
20626Usually this means the macro was only invoked conditionally." >&2;}
20627 { (exit 1); exit 1; }; }
20628fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020629
20630: ${CONFIG_STATUS=./config.status}
20631ac_clean_files_save=$ac_clean_files
20632ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20633{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20634echo "$as_me: creating $CONFIG_STATUS" >&6;}
20635cat >$CONFIG_STATUS <<_ACEOF
20636#! $SHELL
20637# Generated by $as_me.
20638# Run this file to recreate the current configuration.
20639# Compiler output produced by configure, useful for debugging
20640# configure, is in config.log if it exists.
20641
20642debug=false
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020643ac_cs_recheck=false
20644ac_cs_silent=false
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020645SHELL=\${CONFIG_SHELL-$SHELL}
20646_ACEOF
20647
20648cat >>$CONFIG_STATUS <<\_ACEOF
20649## --------------------- ##
20650## M4sh Initialization. ##
20651## --------------------- ##
20652
20653# Be Bourne compatible
20654if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20655 emulate sh
20656 NULLCMD=:
20657 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20658 # is contrary to our usage. Disable this feature.
20659 alias -g '${1+"$@"}'='"$@"'
20660elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20661 set -o posix
20662fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020663DUALCASE=1; export DUALCASE # for MKS sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020664
20665# Support unset when possible.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020666if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020667 as_unset=unset
20668else
20669 as_unset=false
20670fi
20671
20672
20673# Work around bugs in pre-3.0 UWIN ksh.
20674$as_unset ENV MAIL MAILPATH
20675PS1='$ '
20676PS2='> '
20677PS4='+ '
20678
20679# NLS nuisances.
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020680for as_var in \
20681 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20682 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20683 LC_TELEPHONE LC_TIME
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020684do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020685 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020686 eval $as_var=C; export $as_var
20687 else
20688 $as_unset $as_var
20689 fi
20690done
20691
20692# Required to use basename.
20693if expr a : '\(a\)' >/dev/null 2>&1; then
20694 as_expr=expr
20695else
20696 as_expr=false
20697fi
20698
20699if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20700 as_basename=basename
20701else
20702 as_basename=false
20703fi
20704
20705
20706# Name of the executable.
20707as_me=`$as_basename "$0" ||
20708$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20709 X"$0" : 'X\(//\)$' \| \
20710 X"$0" : 'X\(/\)$' \| \
20711 . : '\(.\)' 2>/dev/null ||
20712echo X/"$0" |
20713 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20714 /^X\/\(\/\/\)$/{ s//\1/; q; }
20715 /^X\/\(\/\).*/{ s//\1/; q; }
20716 s/.*/./; q'`
20717
20718
20719# PATH needs CR, and LINENO needs CR and PATH.
20720# Avoid depending upon Character Ranges.
20721as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20722as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20723as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20724as_cr_digits='0123456789'
20725as_cr_alnum=$as_cr_Letters$as_cr_digits
20726
20727# The user is always right.
20728if test "${PATH_SEPARATOR+set}" != set; then
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020729 echo "#! /bin/sh" >conf$$.sh
20730 echo "exit 0" >>conf$$.sh
20731 chmod +x conf$$.sh
20732 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020733 PATH_SEPARATOR=';'
20734 else
20735 PATH_SEPARATOR=:
20736 fi
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020737 rm -f conf$$.sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020738fi
20739
20740
20741 as_lineno_1=$LINENO
20742 as_lineno_2=$LINENO
20743 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20744 test "x$as_lineno_1" != "x$as_lineno_2" &&
20745 test "x$as_lineno_3" = "x$as_lineno_2" || {
20746 # Find who we are. Look in the path if we contain no path at all
20747 # relative or not.
20748 case $0 in
20749 *[\\/]* ) as_myself=$0 ;;
20750 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20751for as_dir in $PATH
20752do
20753 IFS=$as_save_IFS
20754 test -z "$as_dir" && as_dir=.
20755 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20756done
20757
20758 ;;
20759 esac
20760 # We did not find ourselves, most probably we were run as `sh COMMAND'
20761 # in which case we are not to be found in the path.
20762 if test "x$as_myself" = x; then
20763 as_myself=$0
20764 fi
20765 if test ! -f "$as_myself"; then
20766 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20767echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20768 { (exit 1); exit 1; }; }
20769 fi
20770 case $CONFIG_SHELL in
20771 '')
20772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20773for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20774do
20775 IFS=$as_save_IFS
20776 test -z "$as_dir" && as_dir=.
20777 for as_base in sh bash ksh sh5; do
20778 case $as_dir in
20779 /*)
20780 if ("$as_dir/$as_base" -c '
20781 as_lineno_1=$LINENO
20782 as_lineno_2=$LINENO
20783 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20784 test "x$as_lineno_1" != "x$as_lineno_2" &&
20785 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20786 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20787 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20788 CONFIG_SHELL=$as_dir/$as_base
20789 export CONFIG_SHELL
20790 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20791 fi;;
20792 esac
20793 done
20794done
20795;;
20796 esac
20797
20798 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20799 # uniformly replaced by the line number. The first 'sed' inserts a
20800 # line-number line before each line; the second 'sed' does the real
20801 # work. The second script uses 'N' to pair each line-number line
20802 # with the numbered line, and appends trailing '-' during
20803 # substitution so that $LINENO is not a special case at line end.
20804 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20805 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20806 sed '=' <$as_myself |
20807 sed '
20808 N
20809 s,$,-,
20810 : loop
20811 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20812 t loop
20813 s,-$,,
20814 s,^['$as_cr_digits']*\n,,
20815 ' >$as_me.lineno &&
20816 chmod +x $as_me.lineno ||
20817 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20818echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20819 { (exit 1); exit 1; }; }
20820
20821 # Don't try to exec as it changes $[0], causing all sort of problems
20822 # (the dirname of $[0] is not the place where we might find the
20823 # original and so on. Autoconf is especially sensible to this).
20824 . ./$as_me.lineno
20825 # Exit status is that of the last command.
20826 exit
20827}
20828
20829
20830case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20831 *c*,-n*) ECHO_N= ECHO_C='
20832' ECHO_T=' ' ;;
20833 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20834 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20835esac
20836
20837if expr a : '\(a\)' >/dev/null 2>&1; then
20838 as_expr=expr
20839else
20840 as_expr=false
20841fi
20842
20843rm -f conf$$ conf$$.exe conf$$.file
20844echo >conf$$.file
20845if ln -s conf$$.file conf$$ 2>/dev/null; then
20846 # We could just check for DJGPP; but this test a) works b) is more generic
20847 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20848 if test -f conf$$.exe; then
20849 # Don't use ln at all; we don't have any links
20850 as_ln_s='cp -p'
20851 else
20852 as_ln_s='ln -s'
20853 fi
20854elif ln conf$$.file conf$$ 2>/dev/null; then
20855 as_ln_s=ln
20856else
20857 as_ln_s='cp -p'
20858fi
20859rm -f conf$$ conf$$.exe conf$$.file
20860
20861if mkdir -p . 2>/dev/null; then
20862 as_mkdir_p=:
20863else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020864 test -d ./-p && rmdir ./-p
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020865 as_mkdir_p=false
20866fi
20867
20868as_executable_p="test -f"
20869
20870# Sed expression to map a string onto a valid CPP name.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020871as_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 +000020872
20873# Sed expression to map a string onto a valid variable name.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020874as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020875
20876
20877# IFS
20878# We need space, tab and new line, in precisely that order.
20879as_nl='
20880'
20881IFS=" $as_nl"
20882
20883# CDPATH.
20884$as_unset CDPATH
20885
20886exec 6>&1
20887
20888# Open the log real soon, to keep \$[0] and so on meaningful, and to
20889# report actual input values of CONFIG_FILES etc. instead of their
20890# values after options handling. Logging --version etc. is OK.
20891exec 5>>config.log
20892{
20893 echo
20894 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20895## Running $as_me. ##
20896_ASBOX
20897} >&5
20898cat >&5 <<_CSEOF
20899
20900This file was extended by $as_me, which was
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020901generated by GNU Autoconf 2.58. Invocation command line was
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020902
20903 CONFIG_FILES = $CONFIG_FILES
20904 CONFIG_HEADERS = $CONFIG_HEADERS
20905 CONFIG_LINKS = $CONFIG_LINKS
20906 CONFIG_COMMANDS = $CONFIG_COMMANDS
20907 $ $0 $@
20908
20909_CSEOF
20910echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20911echo >&5
20912_ACEOF
20913
20914# Files that config.status was made for.
20915if test -n "$ac_config_files"; then
20916 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20917fi
20918
20919if test -n "$ac_config_headers"; then
20920 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20921fi
20922
20923if test -n "$ac_config_links"; then
20924 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20925fi
20926
20927if test -n "$ac_config_commands"; then
20928 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20929fi
20930
20931cat >>$CONFIG_STATUS <<\_ACEOF
20932
20933ac_cs_usage="\
20934\`$as_me' instantiates files from templates according to the
20935current configuration.
20936
20937Usage: $0 [OPTIONS] [FILE]...
20938
20939 -h, --help print this help, then exit
20940 -V, --version print version number, then exit
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020941 -q, --quiet do not print progress messages
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020942 -d, --debug don't remove temporary files
20943 --recheck update $as_me by reconfiguring in the same conditions
20944 --file=FILE[:TEMPLATE]
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020945 instantiate the configuration file FILE
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020946 --header=FILE[:TEMPLATE]
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020947 instantiate the configuration header FILE
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020948
20949Configuration files:
20950$config_files
20951
20952Configuration headers:
20953$config_headers
20954
20955Configuration links:
20956$config_links
20957
20958Configuration commands:
20959$config_commands
20960
20961Report bugs to <bug-autoconf@gnu.org>."
20962_ACEOF
20963
20964cat >>$CONFIG_STATUS <<_ACEOF
20965ac_cs_version="\\
20966config.status
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020967configured by $0, generated by GNU Autoconf 2.58,
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020968 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20969
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020970Copyright (C) 2003 Free Software Foundation, Inc.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020971This config.status script is free software; the Free Software Foundation
20972gives unlimited permission to copy, distribute and modify it."
20973srcdir=$srcdir
20974INSTALL="$INSTALL"
20975_ACEOF
20976
20977cat >>$CONFIG_STATUS <<\_ACEOF
20978# If no file are specified by the user, then we need to provide default
20979# value. By we need to know if files were specified by the user.
20980ac_need_defaults=:
20981while test $# != 0
20982do
20983 case $1 in
20984 --*=*)
20985 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20986 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20987 ac_shift=:
20988 ;;
20989 -*)
20990 ac_option=$1
20991 ac_optarg=$2
20992 ac_shift=shift
20993 ;;
20994 *) # This is not an option, so the user has probably given explicit
20995 # arguments.
20996 ac_option=$1
20997 ac_need_defaults=false;;
20998 esac
20999
21000 case $ac_option in
21001 # Handling of the options.
21002_ACEOF
mostang.com!davidma8db0b32003-02-08 10:10:59 +000021003cat >>$CONFIG_STATUS <<\_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021004 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21005 ac_cs_recheck=: ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021006 --version | --vers* | -V )
21007 echo "$ac_cs_version"; exit 0 ;;
21008 --he | --h)
21009 # Conflict between --help and --header
21010 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21011Try \`$0 --help' for more information." >&5
21012echo "$as_me: error: ambiguous option: $1
21013Try \`$0 --help' for more information." >&2;}
21014 { (exit 1); exit 1; }; };;
21015 --help | --hel | -h )
21016 echo "$ac_cs_usage"; exit 0 ;;
21017 --debug | --d* | -d )
21018 debug=: ;;
21019 --file | --fil | --fi | --f )
21020 $ac_shift
21021 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21022 ac_need_defaults=false;;
21023 --header | --heade | --head | --hea )
21024 $ac_shift
21025 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21026 ac_need_defaults=false;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21028 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21029 ac_cs_silent=: ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021030
21031 # This is an error.
21032 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21033Try \`$0 --help' for more information." >&5
21034echo "$as_me: error: unrecognized option: $1
21035Try \`$0 --help' for more information." >&2;}
21036 { (exit 1); exit 1; }; } ;;
21037
21038 *) ac_config_targets="$ac_config_targets $1" ;;
21039
21040 esac
21041 shift
21042done
21043
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021044ac_configure_extra_args=
21045
21046if $ac_cs_silent; then
21047 exec 6>/dev/null
21048 ac_configure_extra_args="$ac_configure_extra_args --silent"
21049fi
21050
21051_ACEOF
21052cat >>$CONFIG_STATUS <<_ACEOF
21053if \$ac_cs_recheck; then
21054 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21055 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21056fi
21057
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021058_ACEOF
21059
21060cat >>$CONFIG_STATUS <<_ACEOF
21061#
21062# INIT-COMMANDS section.
21063#
21064
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021065AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021066
21067_ACEOF
21068
21069
21070
21071cat >>$CONFIG_STATUS <<\_ACEOF
21072for ac_config_target in $ac_config_targets
21073do
21074 case "$ac_config_target" in
21075 # Handling of arguments.
21076 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21077 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21078 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21079 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
mostang.com!davidmf648f6f2003-01-17 07:48:52 +000021080 "doc/common.tex" ) CONFIG_FILES="$CONFIG_FILES doc/common.tex" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021081 "include/libunwind.h" ) CONFIG_LINKS="$CONFIG_LINKS include/libunwind.h:include/libunwind-$target_arch.h" ;;
mostang.com!davidm51e4d342002-12-12 09:17:41 +000021082 "include/tdep.h" ) CONFIG_LINKS="$CONFIG_LINKS include/tdep.h:include/tdep-$target_arch.h" ;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021083 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021084 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21085 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21086echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21087 { (exit 1); exit 1; }; };;
21088 esac
21089done
21090
21091# If the user did not use the arguments to specify the items to instantiate,
21092# then the envvar interface is used. Set only those that are not.
21093# We use the long form for the default assignment because of an extremely
21094# bizarre bug on SunOS 4.1.3.
21095if $ac_need_defaults; then
21096 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21097 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21098 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
21099 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21100fi
21101
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021102# Have a temporary directory for convenience. Make it in the build tree
21103# simply because there is no reason to put it here, and in addition,
21104# creating and moving files from /tmp can sometimes cause problems.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021105# Create a temporary directory, and hook for its removal unless debugging.
21106$debug ||
21107{
21108 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21109 trap '{ (exit 1); exit 1; }' 1 2 13 15
21110}
21111
21112# Create a (secure) tmp directory for tmp files.
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021113
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021114{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021115 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021116 test -n "$tmp" && test -d "$tmp"
21117} ||
21118{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021119 tmp=./confstat$$-$RANDOM
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021120 (umask 077 && mkdir $tmp)
21121} ||
21122{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021123 echo "$me: cannot create a temporary directory in ." >&2
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021124 { (exit 1); exit 1; }
21125}
21126
21127_ACEOF
21128
21129cat >>$CONFIG_STATUS <<_ACEOF
21130
21131#
21132# CONFIG_FILES section.
21133#
21134
21135# No need to generate the scripts if there are no CONFIG_FILES.
21136# This happens for instance when ./config.status config.h
21137if test -n "\$CONFIG_FILES"; then
21138 # Protect against being on the right side of a sed subst in config.status.
21139 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21140 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21141s,@SHELL@,$SHELL,;t t
21142s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21143s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21144s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21145s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21146s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21147s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21148s,@exec_prefix@,$exec_prefix,;t t
21149s,@prefix@,$prefix,;t t
21150s,@program_transform_name@,$program_transform_name,;t t
21151s,@bindir@,$bindir,;t t
21152s,@sbindir@,$sbindir,;t t
21153s,@libexecdir@,$libexecdir,;t t
21154s,@datadir@,$datadir,;t t
21155s,@sysconfdir@,$sysconfdir,;t t
21156s,@sharedstatedir@,$sharedstatedir,;t t
21157s,@localstatedir@,$localstatedir,;t t
21158s,@libdir@,$libdir,;t t
21159s,@includedir@,$includedir,;t t
21160s,@oldincludedir@,$oldincludedir,;t t
21161s,@infodir@,$infodir,;t t
21162s,@mandir@,$mandir,;t t
21163s,@build_alias@,$build_alias,;t t
21164s,@host_alias@,$host_alias,;t t
21165s,@target_alias@,$target_alias,;t t
21166s,@DEFS@,$DEFS,;t t
21167s,@ECHO_C@,$ECHO_C,;t t
21168s,@ECHO_N@,$ECHO_N,;t t
21169s,@ECHO_T@,$ECHO_T,;t t
21170s,@LIBS@,$LIBS,;t t
21171s,@build@,$build,;t t
21172s,@build_cpu@,$build_cpu,;t t
21173s,@build_vendor@,$build_vendor,;t t
21174s,@build_os@,$build_os,;t t
21175s,@host@,$host,;t t
21176s,@host_cpu@,$host_cpu,;t t
21177s,@host_vendor@,$host_vendor,;t t
21178s,@host_os@,$host_os,;t t
21179s,@target@,$target,;t t
21180s,@target_cpu@,$target_cpu,;t t
21181s,@target_vendor@,$target_vendor,;t t
21182s,@target_os@,$target_os,;t t
21183s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21184s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21185s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21186s,@PACKAGE@,$PACKAGE,;t t
21187s,@VERSION@,$VERSION,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021188s,@ACLOCAL@,$ACLOCAL,;t t
21189s,@AUTOCONF@,$AUTOCONF,;t t
21190s,@AUTOMAKE@,$AUTOMAKE,;t t
21191s,@AUTOHEADER@,$AUTOHEADER,;t t
21192s,@MAKEINFO@,$MAKEINFO,;t t
21193s,@AMTAR@,$AMTAR,;t t
21194s,@install_sh@,$install_sh,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021195s,@STRIP@,$STRIP,;t t
21196s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021197s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21198s,@AWK@,$AWK,;t t
21199s,@SET_MAKE@,$SET_MAKE,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021200s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21201s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21202s,@MAINT@,$MAINT,;t t
21203s,@CC@,$CC,;t t
21204s,@CFLAGS@,$CFLAGS,;t t
21205s,@LDFLAGS@,$LDFLAGS,;t t
21206s,@CPPFLAGS@,$CPPFLAGS,;t t
21207s,@ac_ct_CC@,$ac_ct_CC,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021208s,@EXEEXT@,$EXEEXT,;t t
21209s,@OBJEXT@,$OBJEXT,;t t
21210s,@DEPDIR@,$DEPDIR,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021211s,@am__include@,$am__include,;t t
21212s,@am__quote@,$am__quote,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021213s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21214s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21215s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021216s,@CCDEPMODE@,$CCDEPMODE,;t t
mostang.com!davidm4f17bce2003-03-28 07:43:22 +000021217s,@CXX@,$CXX,;t t
21218s,@CXXFLAGS@,$CXXFLAGS,;t t
21219s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21220s,@CXXDEPMODE@,$CXXDEPMODE,;t t
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021221s,@EGREP@,$EGREP,;t t
mostang.com!davidmf26451a2003-01-16 03:10:11 +000021222s,@LN_S@,$LN_S,;t t
21223s,@ECHO@,$ECHO,;t t
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021224s,@AR@,$AR,;t t
21225s,@ac_ct_AR@,$ac_ct_AR,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021226s,@RANLIB@,$RANLIB,;t t
21227s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021228s,@CPP@,$CPP,;t t
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021229s,@CXXCPP@,$CXXCPP,;t t
21230s,@F77@,$F77,;t t
21231s,@FFLAGS@,$FFLAGS,;t t
21232s,@ac_ct_F77@,$ac_ct_F77,;t t
mostang.com!davidmf26451a2003-01-16 03:10:11 +000021233s,@LIBTOOL@,$LIBTOOL,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021234s,@CCAS@,$CCAS,;t t
21235s,@CCASFLAGS@,$CCASFLAGS,;t t
mostang.com!davidm6af90d02003-02-15 08:53:55 +000021236s,@LIBOBJS@,$LIBOBJS,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021237s,@REMOTE_ONLY_TRUE@,$REMOTE_ONLY_TRUE,;t t
21238s,@REMOTE_ONLY_FALSE@,$REMOTE_ONLY_FALSE,;t t
21239s,@ARCH_IA64_TRUE@,$ARCH_IA64_TRUE,;t t
21240s,@ARCH_IA64_FALSE@,$ARCH_IA64_FALSE,;t t
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000021241s,@ARCH_HPPA_TRUE@,$ARCH_HPPA_TRUE,;t t
21242s,@ARCH_HPPA_FALSE@,$ARCH_HPPA_FALSE,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021243s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t
21244s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t
mostang.com!davidma8db0b32003-02-08 10:10:59 +000021245s,@OS_LINUX_TRUE@,$OS_LINUX_TRUE,;t t
21246s,@OS_LINUX_FALSE@,$OS_LINUX_FALSE,;t t
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000021247s,@OS_HPUX_TRUE@,$OS_HPUX_TRUE,;t t
21248s,@OS_HPUX_FALSE@,$OS_HPUX_FALSE,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021249s,@arch@,$arch,;t t
21250s,@ARCH@,$ARCH,;t t
21251s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21252CEOF
21253
21254_ACEOF
21255
21256 cat >>$CONFIG_STATUS <<\_ACEOF
21257 # Split the substitutions into bite-sized pieces for seds with
21258 # small command number limits, like on Digital OSF/1 and HP-UX.
21259 ac_max_sed_lines=48
21260 ac_sed_frag=1 # Number of current file.
21261 ac_beg=1 # First line for current file.
21262 ac_end=$ac_max_sed_lines # Line after last line for current file.
21263 ac_more_lines=:
21264 ac_sed_cmds=
21265 while $ac_more_lines; do
21266 if test $ac_beg -gt 1; then
21267 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21268 else
21269 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21270 fi
21271 if test ! -s $tmp/subs.frag; then
21272 ac_more_lines=false
21273 else
21274 # The purpose of the label and of the branching condition is to
21275 # speed up the sed processing (if there are no `@' at all, there
21276 # is no need to browse any of the substitutions).
21277 # These are the two extra sed commands mentioned above.
21278 (echo ':t
21279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21280 if test -z "$ac_sed_cmds"; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021281 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021282 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021283 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021284 fi
21285 ac_sed_frag=`expr $ac_sed_frag + 1`
21286 ac_beg=$ac_end
21287 ac_end=`expr $ac_end + $ac_max_sed_lines`
21288 fi
21289 done
21290 if test -z "$ac_sed_cmds"; then
21291 ac_sed_cmds=cat
21292 fi
21293fi # test -n "$CONFIG_FILES"
21294
21295_ACEOF
21296cat >>$CONFIG_STATUS <<\_ACEOF
21297for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21298 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21299 case $ac_file in
21300 - | *:- | *:-:* ) # input from stdin
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021301 cat >$tmp/stdin
21302 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21303 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021304 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021305 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021306 * ) ac_file_in=$ac_file.in ;;
21307 esac
21308
21309 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21310 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21311$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021312 X"$ac_file" : 'X\(//\)[^/]' \| \
21313 X"$ac_file" : 'X\(//\)$' \| \
21314 X"$ac_file" : 'X\(/\)' \| \
21315 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021316echo X"$ac_file" |
21317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21318 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21319 /^X\(\/\/\)$/{ s//\1/; q; }
21320 /^X\(\/\).*/{ s//\1/; q; }
21321 s/.*/./; q'`
21322 { if $as_mkdir_p; then
21323 mkdir -p "$ac_dir"
21324 else
21325 as_dir="$ac_dir"
21326 as_dirs=
21327 while test ! -d "$as_dir"; do
21328 as_dirs="$as_dir $as_dirs"
21329 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021331 X"$as_dir" : 'X\(//\)[^/]' \| \
21332 X"$as_dir" : 'X\(//\)$' \| \
21333 X"$as_dir" : 'X\(/\)' \| \
21334 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021335echo X"$as_dir" |
21336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21337 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21338 /^X\(\/\/\)$/{ s//\1/; q; }
21339 /^X\(\/\).*/{ s//\1/; q; }
21340 s/.*/./; q'`
21341 done
21342 test ! -n "$as_dirs" || mkdir $as_dirs
21343 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21344echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21345 { (exit 1); exit 1; }; }; }
21346
21347 ac_builddir=.
21348
21349if test "$ac_dir" != .; then
21350 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21351 # A "../" for each directory in $ac_dir_suffix.
21352 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21353else
21354 ac_dir_suffix= ac_top_builddir=
21355fi
21356
21357case $srcdir in
21358 .) # No --srcdir option. We are building in place.
21359 ac_srcdir=.
21360 if test -z "$ac_top_builddir"; then
21361 ac_top_srcdir=.
21362 else
21363 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21364 fi ;;
21365 [\\/]* | ?:[\\/]* ) # Absolute path.
21366 ac_srcdir=$srcdir$ac_dir_suffix;
21367 ac_top_srcdir=$srcdir ;;
21368 *) # Relative path.
21369 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21370 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21371esac
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021372case "$ac_dir" in
21373.) ac_abs_builddir=$ac_builddir;;
21374*)
21375 case $ac_builddir in
21376 .) ac_abs_builddir="$ac_dir";;
21377 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
21378 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
21379 esac;;
21380esac
21381case "$ac_dir" in
21382.) ac_abs_top_builddir=${ac_top_builddir}.;;
21383*)
21384 case ${ac_top_builddir}. in
21385 .) ac_abs_top_builddir="$ac_dir";;
21386 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21387 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
21388 esac;;
21389esac
21390case "$ac_dir" in
21391.) ac_abs_srcdir=$ac_srcdir;;
21392*)
21393 case $ac_srcdir in
21394 .) ac_abs_srcdir="$ac_dir";;
21395 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21396 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
21397 esac;;
21398esac
21399case "$ac_dir" in
21400.) ac_abs_top_srcdir=$ac_top_srcdir;;
21401*)
21402 case $ac_top_srcdir in
21403 .) ac_abs_top_srcdir="$ac_dir";;
21404 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21405 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
21406 esac;;
21407esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021408
21409
21410 case $INSTALL in
21411 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21412 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21413 esac
21414
21415 if test x"$ac_file" != x-; then
21416 { echo "$as_me:$LINENO: creating $ac_file" >&5
21417echo "$as_me: creating $ac_file" >&6;}
21418 rm -f "$ac_file"
21419 fi
21420 # Let's still pretend it is `configure' which instantiates (i.e., don't
21421 # use $as_me), people would be surprised to read:
21422 # /* config.h. Generated by config.status. */
21423 if test x"$ac_file" = x-; then
21424 configure_input=
21425 else
21426 configure_input="$ac_file. "
21427 fi
21428 configure_input=$configure_input"Generated from `echo $ac_file_in |
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021429 sed 's,.*/,,'` by configure."
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021430
21431 # First look for the input files in the build tree, otherwise in the
21432 # src tree.
21433 ac_file_inputs=`IFS=:
21434 for f in $ac_file_in; do
21435 case $f in
21436 -) echo $tmp/stdin ;;
21437 [\\/$]*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021438 # Absolute (can't be DOS-style, as IFS=:)
21439 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021440echo "$as_me: error: cannot find input file: $f" >&2;}
21441 { (exit 1); exit 1; }; }
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021442 echo "$f";;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021443 *) # Relative
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021444 if test -f "$f"; then
21445 # Build tree
21446 echo "$f"
21447 elif test -f "$srcdir/$f"; then
21448 # Source tree
21449 echo "$srcdir/$f"
21450 else
21451 # /dev/null tree
21452 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021453echo "$as_me: error: cannot find input file: $f" >&2;}
21454 { (exit 1); exit 1; }; }
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021455 fi;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021456 esac
21457 done` || { (exit 1); exit 1; }
21458_ACEOF
21459cat >>$CONFIG_STATUS <<_ACEOF
21460 sed "$ac_vpsub
21461$extrasub
21462_ACEOF
21463cat >>$CONFIG_STATUS <<\_ACEOF
21464:t
21465/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21466s,@configure_input@,$configure_input,;t t
21467s,@srcdir@,$ac_srcdir,;t t
21468s,@abs_srcdir@,$ac_abs_srcdir,;t t
21469s,@top_srcdir@,$ac_top_srcdir,;t t
21470s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21471s,@builddir@,$ac_builddir,;t t
21472s,@abs_builddir@,$ac_abs_builddir,;t t
21473s,@top_builddir@,$ac_top_builddir,;t t
21474s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21475s,@INSTALL@,$ac_INSTALL,;t t
21476" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21477 rm -f $tmp/stdin
21478 if test x"$ac_file" != x-; then
21479 mv $tmp/out $ac_file
21480 else
21481 cat $tmp/out
21482 rm -f $tmp/out
21483 fi
21484
21485done
21486_ACEOF
21487cat >>$CONFIG_STATUS <<\_ACEOF
21488
21489#
21490# CONFIG_HEADER section.
21491#
21492
21493# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21494# NAME is the cpp macro being defined and VALUE is the value it is being given.
21495#
21496# ac_d sets the value in "#define NAME VALUE" lines.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021497ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21498ac_dB='[ ].*$,\1#\2'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021499ac_dC=' '
21500ac_dD=',;t'
21501# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021502ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021503ac_uB='$,\1#\2define\3'
21504ac_uC=' '
21505ac_uD=',;t'
21506
21507for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21508 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21509 case $ac_file in
21510 - | *:- | *:-:* ) # input from stdin
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021511 cat >$tmp/stdin
21512 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21513 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021514 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021515 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021516 * ) ac_file_in=$ac_file.in ;;
21517 esac
21518
21519 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21520echo "$as_me: creating $ac_file" >&6;}
21521
21522 # First look for the input files in the build tree, otherwise in the
21523 # src tree.
21524 ac_file_inputs=`IFS=:
21525 for f in $ac_file_in; do
21526 case $f in
21527 -) echo $tmp/stdin ;;
21528 [\\/$]*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021529 # Absolute (can't be DOS-style, as IFS=:)
21530 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021531echo "$as_me: error: cannot find input file: $f" >&2;}
21532 { (exit 1); exit 1; }; }
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021533 # Do quote $f, to prevent DOS paths from being IFS'd.
21534 echo "$f";;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021535 *) # Relative
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021536 if test -f "$f"; then
21537 # Build tree
21538 echo "$f"
21539 elif test -f "$srcdir/$f"; then
21540 # Source tree
21541 echo "$srcdir/$f"
21542 else
21543 # /dev/null tree
21544 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021545echo "$as_me: error: cannot find input file: $f" >&2;}
21546 { (exit 1); exit 1; }; }
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021547 fi;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021548 esac
21549 done` || { (exit 1); exit 1; }
21550 # Remove the trailing spaces.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021551 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021552
21553_ACEOF
21554
21555# Transform confdefs.h into two sed scripts, `conftest.defines' and
21556# `conftest.undefs', that substitutes the proper values into
21557# config.h.in to produce config.h. The first handles `#define'
21558# templates, and the second `#undef' templates.
21559# And first: Protect against being on the right side of a sed subst in
21560# config.status. Protect against being in an unquoted here document
21561# in config.status.
21562rm -f conftest.defines conftest.undefs
21563# Using a here document instead of a string reduces the quoting nightmare.
21564# Putting comments in sed scripts is not portable.
21565#
21566# `end' is used to avoid that the second main sed command (meant for
21567# 0-ary CPP macros) applies to n-ary macro definitions.
21568# See the Autoconf documentation for `clear'.
21569cat >confdef2sed.sed <<\_ACEOF
21570s/[\\&,]/\\&/g
21571s,[\\$`],\\&,g
21572t clear
21573: clear
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021574s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021575t end
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021576s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021577: end
21578_ACEOF
21579# If some macros were called several times there might be several times
21580# the same #defines, which is useless. Nevertheless, we may not want to
21581# sort them, since we want the *last* AC-DEFINE to be honored.
21582uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21583sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21584rm -f confdef2sed.sed
21585
21586# This sed command replaces #undef with comments. This is necessary, for
21587# example, in the case of _POSIX_SOURCE, which is predefined and required
21588# on some systems where configure will not decide to define it.
21589cat >>conftest.undefs <<\_ACEOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021590s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021591_ACEOF
21592
21593# Break up conftest.defines because some shells have a limit on the size
21594# of here documents, and old seds have small limits too (100 cmds).
21595echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021596echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021597echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21598echo ' :' >>$CONFIG_STATUS
21599rm -f conftest.tail
21600while grep . conftest.defines >/dev/null
21601do
21602 # Write a limited-size here document to $tmp/defines.sed.
21603 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21604 # Speed up: don't consider the non `#define' lines.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021605 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021606 # Work around the forget-to-reset-the-flag bug.
21607 echo 't clr' >>$CONFIG_STATUS
21608 echo ': clr' >>$CONFIG_STATUS
21609 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21610 echo 'CEOF
21611 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21612 rm -f $tmp/in
21613 mv $tmp/out $tmp/in
21614' >>$CONFIG_STATUS
21615 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21616 rm -f conftest.defines
21617 mv conftest.tail conftest.defines
21618done
21619rm -f conftest.defines
21620echo ' fi # grep' >>$CONFIG_STATUS
21621echo >>$CONFIG_STATUS
21622
21623# Break up conftest.undefs because some shells have a limit on the size
21624# of here documents, and old seds have small limits too (100 cmds).
21625echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21626rm -f conftest.tail
21627while grep . conftest.undefs >/dev/null
21628do
21629 # Write a limited-size here document to $tmp/undefs.sed.
21630 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21631 # Speed up: don't consider the non `#undef'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021632 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021633 # Work around the forget-to-reset-the-flag bug.
21634 echo 't clr' >>$CONFIG_STATUS
21635 echo ': clr' >>$CONFIG_STATUS
21636 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21637 echo 'CEOF
21638 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21639 rm -f $tmp/in
21640 mv $tmp/out $tmp/in
21641' >>$CONFIG_STATUS
21642 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21643 rm -f conftest.undefs
21644 mv conftest.tail conftest.undefs
21645done
21646rm -f conftest.undefs
21647
21648cat >>$CONFIG_STATUS <<\_ACEOF
21649 # Let's still pretend it is `configure' which instantiates (i.e., don't
21650 # use $as_me), people would be surprised to read:
21651 # /* config.h. Generated by config.status. */
21652 if test x"$ac_file" = x-; then
21653 echo "/* Generated by configure. */" >$tmp/config.h
21654 else
21655 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21656 fi
21657 cat $tmp/in >>$tmp/config.h
21658 rm -f $tmp/in
21659 if test x"$ac_file" != x-; then
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021660 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021661 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21662echo "$as_me: $ac_file is unchanged" >&6;}
21663 else
21664 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21665$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021666 X"$ac_file" : 'X\(//\)[^/]' \| \
21667 X"$ac_file" : 'X\(//\)$' \| \
21668 X"$ac_file" : 'X\(/\)' \| \
21669 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021670echo X"$ac_file" |
21671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21672 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21673 /^X\(\/\/\)$/{ s//\1/; q; }
21674 /^X\(\/\).*/{ s//\1/; q; }
21675 s/.*/./; q'`
21676 { if $as_mkdir_p; then
21677 mkdir -p "$ac_dir"
21678 else
21679 as_dir="$ac_dir"
21680 as_dirs=
21681 while test ! -d "$as_dir"; do
21682 as_dirs="$as_dir $as_dirs"
21683 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21684$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021685 X"$as_dir" : 'X\(//\)[^/]' \| \
21686 X"$as_dir" : 'X\(//\)$' \| \
21687 X"$as_dir" : 'X\(/\)' \| \
21688 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021689echo X"$as_dir" |
21690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21691 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21692 /^X\(\/\/\)$/{ s//\1/; q; }
21693 /^X\(\/\).*/{ s//\1/; q; }
21694 s/.*/./; q'`
21695 done
21696 test ! -n "$as_dirs" || mkdir $as_dirs
21697 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21698echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21699 { (exit 1); exit 1; }; }; }
21700
21701 rm -f $ac_file
21702 mv $tmp/config.h $ac_file
21703 fi
21704 else
21705 cat $tmp/config.h
21706 rm -f $tmp/config.h
21707 fi
21708 # Run the commands associated with the file.
21709 case $ac_file in
21710 include/config.h ) # update the timestamp
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021711echo 'timestamp for include/config.h' >"include/stamp-h1"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021712 ;;
21713 esac
21714done
21715_ACEOF
21716cat >>$CONFIG_STATUS <<\_ACEOF
21717
21718#
21719# CONFIG_LINKS section.
21720#
21721
21722for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
21723 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21724 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21725
21726 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
21727echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
21728
21729 if test ! -r $srcdir/$ac_source; then
21730 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
21731echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
21732 { (exit 1); exit 1; }; }
21733 fi
21734 rm -f $ac_dest
21735
21736 # Make relative symlinks.
21737 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
21738$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021739 X"$ac_dest" : 'X\(//\)[^/]' \| \
21740 X"$ac_dest" : 'X\(//\)$' \| \
21741 X"$ac_dest" : 'X\(/\)' \| \
21742 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021743echo X"$ac_dest" |
21744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21745 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21746 /^X\(\/\/\)$/{ s//\1/; q; }
21747 /^X\(\/\).*/{ s//\1/; q; }
21748 s/.*/./; q'`
21749 { if $as_mkdir_p; then
21750 mkdir -p "$ac_dest_dir"
21751 else
21752 as_dir="$ac_dest_dir"
21753 as_dirs=
21754 while test ! -d "$as_dir"; do
21755 as_dirs="$as_dir $as_dirs"
21756 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21757$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021758 X"$as_dir" : 'X\(//\)[^/]' \| \
21759 X"$as_dir" : 'X\(//\)$' \| \
21760 X"$as_dir" : 'X\(/\)' \| \
21761 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021762echo X"$as_dir" |
21763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21764 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21765 /^X\(\/\/\)$/{ s//\1/; q; }
21766 /^X\(\/\).*/{ s//\1/; q; }
21767 s/.*/./; q'`
21768 done
21769 test ! -n "$as_dirs" || mkdir $as_dirs
21770 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
21771echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
21772 { (exit 1); exit 1; }; }; }
21773
21774 ac_builddir=.
21775
21776if test "$ac_dest_dir" != .; then
21777 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
21778 # A "../" for each directory in $ac_dir_suffix.
21779 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21780else
21781 ac_dir_suffix= ac_top_builddir=
21782fi
21783
21784case $srcdir in
21785 .) # No --srcdir option. We are building in place.
21786 ac_srcdir=.
21787 if test -z "$ac_top_builddir"; then
21788 ac_top_srcdir=.
21789 else
21790 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21791 fi ;;
21792 [\\/]* | ?:[\\/]* ) # Absolute path.
21793 ac_srcdir=$srcdir$ac_dir_suffix;
21794 ac_top_srcdir=$srcdir ;;
21795 *) # Relative path.
21796 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21797 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21798esac
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021799case "$ac_dest_dir" in
21800.) ac_abs_builddir=$ac_builddir;;
21801*)
21802 case $ac_builddir in
21803 .) ac_abs_builddir="$ac_dest_dir";;
21804 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
21805 *) ac_abs_builddir="$ac_dest_dir"/$ac_builddir;;
21806 esac;;
21807esac
21808case "$ac_dest_dir" in
21809.) ac_abs_top_builddir=${ac_top_builddir}.;;
21810*)
21811 case ${ac_top_builddir}. in
21812 .) ac_abs_top_builddir="$ac_dest_dir";;
21813 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21814 *) ac_abs_top_builddir="$ac_dest_dir"/${ac_top_builddir}.;;
21815 esac;;
21816esac
21817case "$ac_dest_dir" in
21818.) ac_abs_srcdir=$ac_srcdir;;
21819*)
21820 case $ac_srcdir in
21821 .) ac_abs_srcdir="$ac_dest_dir";;
21822 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21823 *) ac_abs_srcdir="$ac_dest_dir"/$ac_srcdir;;
21824 esac;;
21825esac
21826case "$ac_dest_dir" in
21827.) ac_abs_top_srcdir=$ac_top_srcdir;;
21828*)
21829 case $ac_top_srcdir in
21830 .) ac_abs_top_srcdir="$ac_dest_dir";;
21831 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21832 *) ac_abs_top_srcdir="$ac_dest_dir"/$ac_top_srcdir;;
21833 esac;;
21834esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021835
21836
21837 case $srcdir in
21838 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
21839 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
21840 esac
21841
21842 # Try a symlink, then a hard link, then a copy.
21843 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
21844 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
21845 cp -p $srcdir/$ac_source $ac_dest ||
21846 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
21847echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
21848 { (exit 1); exit 1; }; }
21849done
21850_ACEOF
21851cat >>$CONFIG_STATUS <<\_ACEOF
21852
21853#
21854# CONFIG_COMMANDS section.
21855#
21856for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21857 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21858 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21859 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21860$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021861 X"$ac_dest" : 'X\(//\)[^/]' \| \
21862 X"$ac_dest" : 'X\(//\)$' \| \
21863 X"$ac_dest" : 'X\(/\)' \| \
21864 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021865echo X"$ac_dest" |
21866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21868 /^X\(\/\/\)$/{ s//\1/; q; }
21869 /^X\(\/\).*/{ s//\1/; q; }
21870 s/.*/./; q'`
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021871 { if $as_mkdir_p; then
21872 mkdir -p "$ac_dir"
21873 else
21874 as_dir="$ac_dir"
21875 as_dirs=
21876 while test ! -d "$as_dir"; do
21877 as_dirs="$as_dir $as_dirs"
21878 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21879$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21880 X"$as_dir" : 'X\(//\)[^/]' \| \
21881 X"$as_dir" : 'X\(//\)$' \| \
21882 X"$as_dir" : 'X\(/\)' \| \
21883 . : '\(.\)' 2>/dev/null ||
21884echo X"$as_dir" |
21885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21886 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21887 /^X\(\/\/\)$/{ s//\1/; q; }
21888 /^X\(\/\).*/{ s//\1/; q; }
21889 s/.*/./; q'`
21890 done
21891 test ! -n "$as_dirs" || mkdir $as_dirs
21892 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21893echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21894 { (exit 1); exit 1; }; }; }
21895
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021896 ac_builddir=.
21897
21898if test "$ac_dir" != .; then
21899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21900 # A "../" for each directory in $ac_dir_suffix.
21901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21902else
21903 ac_dir_suffix= ac_top_builddir=
21904fi
21905
21906case $srcdir in
21907 .) # No --srcdir option. We are building in place.
21908 ac_srcdir=.
21909 if test -z "$ac_top_builddir"; then
21910 ac_top_srcdir=.
21911 else
21912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21913 fi ;;
21914 [\\/]* | ?:[\\/]* ) # Absolute path.
21915 ac_srcdir=$srcdir$ac_dir_suffix;
21916 ac_top_srcdir=$srcdir ;;
21917 *) # Relative path.
21918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21920esac
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021921case "$ac_dir" in
21922.) ac_abs_builddir=$ac_builddir;;
21923*)
21924 case $ac_builddir in
21925 .) ac_abs_builddir="$ac_dir";;
21926 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
21927 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
21928 esac;;
21929esac
21930case "$ac_dir" in
21931.) ac_abs_top_builddir=${ac_top_builddir}.;;
21932*)
21933 case ${ac_top_builddir}. in
21934 .) ac_abs_top_builddir="$ac_dir";;
21935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21936 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
21937 esac;;
21938esac
21939case "$ac_dir" in
21940.) ac_abs_srcdir=$ac_srcdir;;
21941*)
21942 case $ac_srcdir in
21943 .) ac_abs_srcdir="$ac_dir";;
21944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21945 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
21946 esac;;
21947esac
21948case "$ac_dir" in
21949.) ac_abs_top_srcdir=$ac_top_srcdir;;
21950*)
21951 case $ac_top_srcdir in
21952 .) ac_abs_top_srcdir="$ac_dir";;
21953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21954 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
21955 esac;;
21956esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021957
21958
21959 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21960echo "$as_me: executing $ac_dest commands" >&6;}
21961 case $ac_dest in
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021962 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21963 # Strip MF so we end up with the name of the file.
21964 mf=`echo "$mf" | sed -e 's/:.*$//'`
21965 # Check whether this is an Automake generated Makefile or not.
21966 # We used to match only the files named `Makefile.in', but
21967 # some people rename them; so instead we look at the file content.
21968 # Grep'ing the first line is not enough: some people post-process
21969 # each Makefile.in and add a new line on top of each file to say so.
21970 # So let's grep whole file.
21971 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21972 dirpart=`(dirname "$mf") 2>/dev/null ||
21973$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021974 X"$mf" : 'X\(//\)[^/]' \| \
21975 X"$mf" : 'X\(//\)$' \| \
21976 X"$mf" : 'X\(/\)' \| \
21977 . : '\(.\)' 2>/dev/null ||
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021978echo X"$mf" |
21979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21981 /^X\(\/\/\)$/{ s//\1/; q; }
21982 /^X\(\/\).*/{ s//\1/; q; }
21983 s/.*/./; q'`
21984 else
21985 continue
21986 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021987 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21988 # Extract the definition of DEP_FILES from the Makefile without
21989 # running `make'.
21990 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21991 test -z "$DEPDIR" && continue
21992 # When using ansi2knr, U may be empty or an underscore; expand it
21993 U=`sed -n -e '/^U = / s///p' < "$mf"`
21994 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21995 # We invoke sed twice because it is the simplest approach to
21996 # changing $(DEPDIR) to its actual value in the expansion.
21997 for file in `sed -n -e '
21998 /^DEP_FILES = .*\\\\$/ {
21999 s/^DEP_FILES = //
22000 :loop
22001 s/\\\\$//
22002 p
22003 n
22004 /\\\\$/ b loop
22005 p
22006 }
22007 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
22008 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22009 # Make sure the directory exists.
22010 test -f "$dirpart/$file" && continue
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022011 fdir=`(dirname "$file") 2>/dev/null ||
22012$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000022013 X"$file" : 'X\(//\)[^/]' \| \
22014 X"$file" : 'X\(//\)$' \| \
22015 X"$file" : 'X\(/\)' \| \
22016 . : '\(.\)' 2>/dev/null ||
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022017echo X"$file" |
22018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22019 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22020 /^X\(\/\/\)$/{ s//\1/; q; }
22021 /^X\(\/\).*/{ s//\1/; q; }
22022 s/.*/./; q'`
22023 { if $as_mkdir_p; then
22024 mkdir -p $dirpart/$fdir
22025 else
22026 as_dir=$dirpart/$fdir
22027 as_dirs=
22028 while test ! -d "$as_dir"; do
22029 as_dirs="$as_dir $as_dirs"
22030 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22031$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000022032 X"$as_dir" : 'X\(//\)[^/]' \| \
22033 X"$as_dir" : 'X\(//\)$' \| \
22034 X"$as_dir" : 'X\(/\)' \| \
22035 . : '\(.\)' 2>/dev/null ||
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022036echo X"$as_dir" |
22037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22039 /^X\(\/\/\)$/{ s//\1/; q; }
22040 /^X\(\/\).*/{ s//\1/; q; }
22041 s/.*/./; q'`
22042 done
22043 test ! -n "$as_dirs" || mkdir $as_dirs
22044 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22045echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22046 { (exit 1); exit 1; }; }; }
22047
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022048 # echo "creating $dirpart/$file"
22049 echo '# dummy' > "$dirpart/$file"
22050 done
22051done
22052 ;;
22053 esac
22054done
22055_ACEOF
22056
22057cat >>$CONFIG_STATUS <<\_ACEOF
22058
22059{ (exit 0); exit 0; }
22060_ACEOF
22061chmod +x $CONFIG_STATUS
22062ac_clean_files=$ac_clean_files_save
22063
22064
22065# configure is writing to config.log, and then calls config.status.
22066# config.status does its own redirection, appending to config.log.
22067# Unfortunately, on DOS this fails, as config.log is still kept open
22068# by configure, so config.status won't be able to write to it; its
22069# output is simply discarded. So we exec the FD to /dev/null,
22070# effectively closing config.log, so it can be properly (re)opened and
22071# appended to by config.status. When coming back to configure, we
22072# need to make the FD available again.
22073if test "$no_create" != yes; then
22074 ac_cs_success=:
hp.com!davidm01b02dd2003-09-24 21:51:53 +000022075 ac_config_status_args=
22076 test "$silent" = yes &&
22077 ac_config_status_args="$ac_config_status_args --quiet"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022078 exec 5>/dev/null
hp.com!davidm01b02dd2003-09-24 21:51:53 +000022079 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022080 exec 5>>config.log
22081 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22082 # would make configure fail if this is the last instruction.
22083 $ac_cs_success || { (exit 1); exit 1; }
22084fi
22085