blob: b72c41bbb7dd0767456b3040d189fce5c5b31fa4 [file] [log] [blame]
drh75897232000-05-29 14:26:00 +00001#! /bin/sh
drh75897232000-05-29 14:26:00 +00002# Guess values for system-dependent variables and create Makefiles.
a.rottmann964dbb12004-02-26 19:47:42 +00003# Generated by GNU Autoconf 2.59.
drh75897232000-05-29 14:26:00 +00004#
a.rottmann964dbb12004-02-26 19:47:42 +00005# Copyright (C) 2003 Free Software Foundation, Inc.
drh75897232000-05-29 14:26:00 +00006# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00008## --------------------- ##
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
a.rottmann964dbb12004-02-26 19:47:42 +000022DUALCASE=1; export DUALCASE # for MKS sh
a.rottmann84e63352003-03-24 09:42:16 +000023
24# Support unset when possible.
a.rottmann964dbb12004-02-26 19:47:42 +000025if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a.rottmann84e63352003-03-24 09:42:16 +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.
39for 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
43do
a.rottmann964dbb12004-02-26 19:47:42 +000044 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a.rottmann84e63352003-03-24 09:42:16 +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
88 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
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
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
a.rottmann964dbb12004-02-26 19:47:42 +0000221 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +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.
a.rottmann964dbb12004-02-26 19:47:42 +0000228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000229
230# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +0000231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +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
drh75897232000-05-29 14:26:00 +0000243
a.rottmann84e63352003-03-24 09:42:16 +0000244
drh71eb93e2001-09-28 01:34:43 +0000245# 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 :
a.rottmann9bc8b932004-02-29 15:18:31 +0000262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
drh71eb93e2001-09-28 01:34:43 +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
a.rottmann9bc8b932004-02-29 15:18:31 +0000274$*
drh71eb93e2001-09-28 01:34:43 +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
a.rottmann9bc8b932004-02-29 15:18:31 +0000308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +0000309 for dir in $PATH /usr/ucb; do
a.rottmann9bc8b932004-02-29 15:18:31 +0000310 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +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
a.rottmann9bc8b932004-02-29 15:18:31 +0000319 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +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
drh71eb93e2001-09-28 01:34:43 +0000391
drh71eb93e2001-09-28 01:34:43 +0000392
a.rottmann9bc8b932004-02-29 15:18:31 +0000393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
drh71eb93e2001-09-28 01:34:43 +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#
drh75897232000-05-29 14:26:00 +0000408ac_default_prefix=/usr/local
a.rottmann84e63352003-03-24 09:42:16 +0000409ac_config_libobj_dir=.
drh71eb93e2001-09-28 01:34:43 +0000410cross_compiling=no
411subdirs=
a.rottmann84e63352003-03-24 09:42:16 +0000412MFLAGS=
413MAKEFLAGS=
drh71eb93e2001-09-28 01:34:43 +0000414SHELL=${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
a.rottmann84e63352003-03-24 09:42:16 +0000421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
drh71eb93e2001-09-28 01:34:43 +0000428ac_unique_file="src/sqlite.h.in"
a.rottmann84e63352003-03-24 09:42:16 +0000429# 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
dougcurrie65623c72004-09-20 14:57:23 +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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA program_prefix VERSION BUILD_CC BUILD_CFLAGS BUILD_LIBS TARGET_CC TARGET_CFLAGS TARGET_LINK TARGET_LFLAGS TARGET_RANLIB TARGET_AR THREADSAFE TARGET_THREAD_LIB ALLOWRELEASE TEMP_STORE BUILD_EXEEXT OS_UNIX OS_WIN TARGET_EXEEXT TARGET_LIBS TARGET_TCL_LIBS TARGET_TCL_INC TARGET_READLINE_LIBS TARGET_READLINE_INC TARGET_HAVE_READLINE LIBOBJS LTLIBOBJS'
a.rottmann84e63352003-03-24 09:42:16 +0000467ac_subst_files=''
drh75897232000-05-29 14:26:00 +0000468
469# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000470ac_init_help=
471ac_init_version=false
drh75897232000-05-29 14:26:00 +0000472# The variables have the same names as the options, with
473# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000474cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000475exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000476no_create=
drh75897232000-05-29 14:26:00 +0000477no_recursion=
478prefix=NONE
479program_prefix=NONE
480program_suffix=NONE
481program_transform_name=s,x,x,
482silent=
483site=
484srcdir=
drh75897232000-05-29 14:26:00 +0000485verbose=
486x_includes=NONE
487x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000488
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.
drh75897232000-05-29 14:26:00 +0000494bindir='${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
drh75897232000-05-29 14:26:00 +0000507ac_prev=
508for ac_option
509do
drh75897232000-05-29 14:26:00 +0000510 # 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
drh71eb93e2001-09-28 01:34:43 +0000517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
drh75897232000-05-29 14:26:00 +0000518
519 # Accept the important Cygnus configure options, so we can diagnose typos.
520
drh71eb93e2001-09-28 01:34:43 +0000521 case $ac_option in
drh75897232000-05-29 14:26:00 +0000522
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +0000526 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000527
528 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +0000529 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +0000530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +0000531 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000532
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=*)
drh71eb93e2001-09-28 01:34:43 +0000538 cache_file=$ac_optarg ;;
539
540 --config-cache | -C)
541 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +0000542
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
drh71eb93e2001-09-28 01:34:43 +0000547 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000548
549 -disable-* | --disable-*)
drh71eb93e2001-09-28 01:34:43 +0000550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000551 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000552 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" ;;
drh75897232000-05-29 14:26:00 +0000557
558 -enable-* | --enable-*)
drh71eb93e2001-09-28 01:34:43 +0000559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +0000560 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000561 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"`;;
drh75897232000-05-29 14:26:00 +0000567 *) ac_optarg=yes ;;
568 esac
drh71eb93e2001-09-28 01:34:43 +0000569 eval "enable_$ac_feature='$ac_optarg'" ;;
drh75897232000-05-29 14:26:00 +0000570
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=*)
drh71eb93e2001-09-28 01:34:43 +0000578 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000579
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
583
drh71eb93e2001-09-28 01:34:43 +0000584 -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 ;;
drh75897232000-05-29 14:26:00 +0000590
591 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +0000592 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +0000593 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +0000594 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000595
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=*)
drh71eb93e2001-09-28 01:34:43 +0000601 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000602
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 ac_prev=infodir ;;
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +0000606 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000607
608 -libdir | --libdir | --libdi | --libd)
609 ac_prev=libdir ;;
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +0000611 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000612
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +0000618 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000619
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=*)
drh71eb93e2001-09-28 01:34:43 +0000627 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000628
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 ac_prev=mandir ;;
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +0000632 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000633
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 \
a.rottmann84e63352003-03-24 09:42:16 +0000639 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +0000640 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=*)
drh71eb93e2001-09-28 01:34:43 +0000653 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000654
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 ac_prev=prefix ;;
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +0000658 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000659
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=*)
drh71eb93e2001-09-28 01:34:43 +0000665 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000666
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=*)
drh71eb93e2001-09-28 01:34:43 +0000672 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000673
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=*)
drh71eb93e2001-09-28 01:34:43 +0000689 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000690
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=*)
drh71eb93e2001-09-28 01:34:43 +0000699 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000700
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=*)
drh71eb93e2001-09-28 01:34:43 +0000710 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000711
712 -site | --site | --sit)
713 ac_prev=site ;;
714 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +0000715 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000716
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 ac_prev=srcdir ;;
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +0000720 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000721
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=*)
drh71eb93e2001-09-28 01:34:43 +0000727 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000728
729 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +0000730 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +0000731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +0000732 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000733
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
735 verbose=yes ;;
736
drh71eb93e2001-09-28 01:34:43 +0000737 -version | --version | --versio | --versi | --vers | -V)
738 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +0000739
740 -with-* | --with-*)
drh71eb93e2001-09-28 01:34:43 +0000741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +0000742 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000743 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; }; }
drh75897232000-05-29 14:26:00 +0000746 ac_package=`echo $ac_package| sed 's/-/_/g'`
drh71eb93e2001-09-28 01:34:43 +0000747 case $ac_option in
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
drh75897232000-05-29 14:26:00 +0000749 *) ac_optarg=yes ;;
750 esac
drh71eb93e2001-09-28 01:34:43 +0000751 eval "with_$ac_package='$ac_optarg'" ;;
drh75897232000-05-29 14:26:00 +0000752
753 -without-* | --without-*)
drh71eb93e2001-09-28 01:34:43 +0000754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000755 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000756 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" ;;
drh75897232000-05-29 14:26:00 +0000761
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=*)
drh71eb93e2001-09-28 01:34:43 +0000771 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000772
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=*)
drh71eb93e2001-09-28 01:34:43 +0000778 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000779
drh71eb93e2001-09-28 01:34:43 +0000780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000783 ;;
784
drh71eb93e2001-09-28 01:34:43 +0000785 *=*)
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
drh75897232000-05-29 14:26:00 +0000795 *)
drh71eb93e2001-09-28 01:34:43 +0000796 # 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}
drh75897232000-05-29 14:26:00 +0000801 ;;
802
803 esac
804done
805
806if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +0000807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000810fi
811
drh71eb93e2001-09-28 01:34:43 +0000812# Be sure to have absolute paths.
813for ac_var in exec_prefix prefix
drh75897232000-05-29 14:26:00 +0000814do
drh71eb93e2001-09-28 01:34:43 +0000815 eval ac_val=$`echo $ac_var`
816 case $ac_val in
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
a.rottmann84e63352003-03-24 09:42:16 +0000818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
drh71eb93e2001-09-28 01:34:43 +0000819 { (exit 1); exit 1; }; };;
drh75897232000-05-29 14:26:00 +0000820 esac
821done
822
drh71eb93e2001-09-28 01:34:43 +0000823# Be sure to have absolute paths.
824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
a.rottmann964dbb12004-02-26 19:47:42 +0000825 localstatedir libdir includedir oldincludedir infodir mandir
drh71eb93e2001-09-28 01:34:43 +0000826do
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* ) ;;
a.rottmann84e63352003-03-24 09:42:16 +0000830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
drh71eb93e2001-09-28 01:34:43 +0000831 { (exit 1); exit 1; }; };;
832 esac
833done
drh75897232000-05-29 14:26:00 +0000834
drh71eb93e2001-09-28 01:34:43 +0000835# There might be people who depend on the old broken behavior: `$host'
836# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +0000837# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +0000838build=$build_alias
839host=$host_alias
840target=$target_alias
drh75897232000-05-29 14:26:00 +0000841
a.rottmann84e63352003-03-24 09:42:16 +0000842# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +0000843if 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
drh75897232000-05-29 14:26:00 +0000857
a.rottmann84e63352003-03-24 09:42:16 +0000858
drh75897232000-05-29 14:26:00 +0000859# 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.
a.rottmann84e63352003-03-24 09:42:16 +0000863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +0000865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +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'`
drh75897232000-05-29 14:26:00 +0000875 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
a.rottmann84e63352003-03-24 09:42:16 +0000884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
drh71eb93e2001-09-28 01:34:43 +0000885 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000886 else
a.rottmann84e63352003-03-24 09:42:16 +0000887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
drh71eb93e2001-09-28 01:34:43 +0000888 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000889 fi
890fi
a.rottmann84e63352003-03-24 09:42:16 +0000891(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; }; }
drh71eb93e2001-09-28 01:34:43 +0000894srcdir=`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
923ac_env_CPP_set=${CPP+set}
924ac_env_CPP_value=$CPP
925ac_cv_env_CPP_set=${CPP+set}
926ac_cv_env_CPP_value=$CPP
a.rottmann9bc8b932004-02-29 15:18:31 +0000927ac_env_CXX_set=${CXX+set}
928ac_env_CXX_value=$CXX
929ac_cv_env_CXX_set=${CXX+set}
930ac_cv_env_CXX_value=$CXX
931ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932ac_env_CXXFLAGS_value=$CXXFLAGS
933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935ac_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
drh75897232000-05-29 14:26:00 +0000947
drh71eb93e2001-09-28 01:34:43 +0000948#
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.
a.rottmann84e63352003-03-24 09:42:16 +0000954 cat <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000955\`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
a.rottmann84e63352003-03-24 09:42:16 +0000975_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000976
a.rottmann84e63352003-03-24 09:42:16 +0000977 cat <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000978Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
a.rottmann964dbb12004-02-26 19:47:42 +0000980 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +0000981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
a.rottmann964dbb12004-02-26 19:47:42 +0000982 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +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]
a.rottmann84e63352003-03-24 09:42:16 +00001004_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001005
a.rottmann84e63352003-03-24 09:42:16 +00001006 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001007
1008System types:
1009 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001010 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1011_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001012fi
1013
1014if test -n "$ac_init_help"; then
1015
a.rottmann84e63352003-03-24 09:42:16 +00001016 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001017
1018Optional Features:
1019 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1020 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001021 --enable-shared[=PKGS]
1022 build shared libraries [default=yes]
1023 --enable-static[=PKGS]
1024 build static libraries [default=yes]
1025 --enable-fast-install[=PKGS]
1026 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001027 --disable-libtool-lock avoid locking (might break parallel builds)
dougcurrie0f290bf2004-06-21 18:57:29 +00001028 --enable-threadsafe Support threadsafe operation
xdong28f79f72003-09-23 00:35:21 +00001029 --enable-releasemode Support libtool link to release mode
dougcurrie0f290bf2004-06-21 18:57:29 +00001030 --enable-tempstore Use an in-ram database for temporary tables (never,no,yes,always)
drh71eb93e2001-09-28 01:34:43 +00001031
1032Optional Packages:
1033 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1034 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001035 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1036 --with-pic try to use only PIC/non-PIC objects [default=use
1037 both]
1038 --with-tags[=TAGS]
1039 include additional configurations [automatic]
drh71eb93e2001-09-28 01:34:43 +00001040 --with-hints=FILE Read configuration options from FILE
1041
1042Some influential environment variables:
1043 CC C compiler command
1044 CFLAGS C compiler flags
1045 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1046 nonstandard directory <lib dir>
1047 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1048 headers in a nonstandard directory <include dir>
1049 CPP C preprocessor
a.rottmann9bc8b932004-02-29 15:18:31 +00001050 CXX C++ compiler command
1051 CXXFLAGS C++ compiler flags
1052 CXXCPP C++ preprocessor
1053 F77 Fortran 77 compiler command
1054 FFLAGS Fortran 77 compiler flags
drh71eb93e2001-09-28 01:34:43 +00001055
1056Use these variables to override the choices made by `configure' or to help
1057it to find libraries and programs with nonstandard names/locations.
1058
a.rottmann84e63352003-03-24 09:42:16 +00001059_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001060fi
1061
1062if test "$ac_init_help" = "recursive"; then
1063 # If there are subdirs, report their specific --help.
1064 ac_popdir=`pwd`
a.rottmann84e63352003-03-24 09:42:16 +00001065 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1066 test -d $ac_dir || continue
1067 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001068
a.rottmann84e63352003-03-24 09:42:16 +00001069if test "$ac_dir" != .; then
1070 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1071 # A "../" for each directory in $ac_dir_suffix.
1072 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1073else
1074 ac_dir_suffix= ac_top_builddir=
1075fi
drh71eb93e2001-09-28 01:34:43 +00001076
a.rottmann84e63352003-03-24 09:42:16 +00001077case $srcdir in
1078 .) # No --srcdir option. We are building in place.
1079 ac_srcdir=.
1080 if test -z "$ac_top_builddir"; then
1081 ac_top_srcdir=.
1082 else
1083 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1084 fi ;;
1085 [\\/]* | ?:[\\/]* ) # Absolute path.
1086 ac_srcdir=$srcdir$ac_dir_suffix;
1087 ac_top_srcdir=$srcdir ;;
1088 *) # Relative path.
1089 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1090 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1091esac
a.rottmann964dbb12004-02-26 19:47:42 +00001092
1093# Do not use `cd foo && pwd` to compute absolute paths, because
1094# the directories may not exist.
1095case `pwd` in
1096.) ac_abs_builddir="$ac_dir";;
1097*)
1098 case "$ac_dir" in
1099 .) ac_abs_builddir=`pwd`;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1101 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1102 esac;;
1103esac
1104case $ac_abs_builddir in
1105.) ac_abs_top_builddir=${ac_top_builddir}.;;
1106*)
1107 case ${ac_top_builddir}. in
1108 .) ac_abs_top_builddir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1110 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1111 esac;;
1112esac
1113case $ac_abs_builddir in
1114.) ac_abs_srcdir=$ac_srcdir;;
1115*)
1116 case $ac_srcdir in
1117 .) ac_abs_srcdir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1119 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1120 esac;;
1121esac
1122case $ac_abs_builddir in
1123.) ac_abs_top_srcdir=$ac_top_srcdir;;
1124*)
1125 case $ac_top_srcdir in
1126 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1128 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1129 esac;;
1130esac
a.rottmann84e63352003-03-24 09:42:16 +00001131
1132 cd $ac_dir
drh71eb93e2001-09-28 01:34:43 +00001133 # Check for guested configure; otherwise get Cygnus style configure.
a.rottmann84e63352003-03-24 09:42:16 +00001134 if test -f $ac_srcdir/configure.gnu; then
drh71eb93e2001-09-28 01:34:43 +00001135 echo
a.rottmann84e63352003-03-24 09:42:16 +00001136 $SHELL $ac_srcdir/configure.gnu --help=recursive
1137 elif test -f $ac_srcdir/configure; then
drh71eb93e2001-09-28 01:34:43 +00001138 echo
a.rottmann84e63352003-03-24 09:42:16 +00001139 $SHELL $ac_srcdir/configure --help=recursive
1140 elif test -f $ac_srcdir/configure.ac ||
a.rottmann964dbb12004-02-26 19:47:42 +00001141 test -f $ac_srcdir/configure.in; then
drh71eb93e2001-09-28 01:34:43 +00001142 echo
1143 $ac_configure --help
1144 else
a.rottmann84e63352003-03-24 09:42:16 +00001145 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
drh71eb93e2001-09-28 01:34:43 +00001146 fi
dougcurrie0f290bf2004-06-21 18:57:29 +00001147 cd $ac_popdir
drh71eb93e2001-09-28 01:34:43 +00001148 done
1149fi
1150
1151test -n "$ac_init_help" && exit 0
1152if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001153 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001154
a.rottmann964dbb12004-02-26 19:47:42 +00001155Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001156This configure script is free software; the Free Software Foundation
1157gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001158_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001159 exit 0
1160fi
1161exec 5>config.log
a.rottmann84e63352003-03-24 09:42:16 +00001162cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001163This file contains any messages produced by compilers while
1164running configure, to aid debugging if configure makes a mistake.
1165
1166It was created by $as_me, which was
a.rottmann964dbb12004-02-26 19:47:42 +00001167generated by GNU Autoconf 2.59. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001168
1169 $ $0 $@
1170
a.rottmann84e63352003-03-24 09:42:16 +00001171_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001172{
1173cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001174## --------- ##
1175## Platform. ##
1176## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001177
1178hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1179uname -m = `(uname -m) 2>/dev/null || echo unknown`
1180uname -r = `(uname -r) 2>/dev/null || echo unknown`
1181uname -s = `(uname -s) 2>/dev/null || echo unknown`
1182uname -v = `(uname -v) 2>/dev/null || echo unknown`
1183
1184/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1185/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1186
1187/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1188/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1189/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1190hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1191/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1192/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1193/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1194
drh71eb93e2001-09-28 01:34:43 +00001195_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001196
1197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1198for as_dir in $PATH
1199do
1200 IFS=$as_save_IFS
1201 test -z "$as_dir" && as_dir=.
1202 echo "PATH: $as_dir"
1203done
1204
drh71eb93e2001-09-28 01:34:43 +00001205} >&5
1206
a.rottmann84e63352003-03-24 09:42:16 +00001207cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001208
a.rottmann84e63352003-03-24 09:42:16 +00001209
1210## ----------- ##
1211## Core tests. ##
1212## ----------- ##
1213
1214_ACEOF
1215
drh71eb93e2001-09-28 01:34:43 +00001216
1217# Keep a trace of the command line.
1218# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001219# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001220# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001221# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001222ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001223ac_configure_args0=
1224ac_configure_args1=
drh71eb93e2001-09-28 01:34:43 +00001225ac_sep=
a.rottmann84e63352003-03-24 09:42:16 +00001226ac_must_keep_next=false
1227for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001228do
a.rottmann84e63352003-03-24 09:42:16 +00001229 for ac_arg
1230 do
1231 case $ac_arg in
1232 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234 | -silent | --silent | --silen | --sile | --sil)
1235 continue ;;
1236 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1237 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1238 esac
1239 case $ac_pass in
1240 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1241 2)
1242 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1243 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001244 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001245 else
a.rottmann964dbb12004-02-26 19:47:42 +00001246 case $ac_arg in
1247 *=* | --config-cache | -C | -disable-* | --disable-* \
1248 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1249 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1250 | -with-* | --with-* | -without-* | --without-* | --x)
1251 case "$ac_configure_args0 " in
1252 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1253 esac
1254 ;;
1255 -* ) ac_must_keep_next=true ;;
1256 esac
a.rottmann84e63352003-03-24 09:42:16 +00001257 fi
1258 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1259 # Get rid of the leading space.
1260 ac_sep=" "
1261 ;;
1262 esac
1263 done
drh71eb93e2001-09-28 01:34:43 +00001264done
a.rottmann84e63352003-03-24 09:42:16 +00001265$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1266$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001267
1268# When interrupted or exit'd, cleanup temporary files, and complete
1269# config.log. We remove comments because anyway the quotes in there
1270# would cause problems or look ugly.
a.rottmann84e63352003-03-24 09:42:16 +00001271# WARNING: Be sure not to use single quotes in there, as some shells,
1272# such as our DU 5.0 friend, will then `close' the trap.
drh71eb93e2001-09-28 01:34:43 +00001273trap 'exit_status=$?
1274 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001275 {
1276 echo
1277
1278 cat <<\_ASBOX
1279## ---------------- ##
1280## Cache variables. ##
1281## ---------------- ##
1282_ASBOX
1283 echo
1284 # The following way of writing the cache mishandles newlines in values,
drh71eb93e2001-09-28 01:34:43 +00001285{
1286 (set) 2>&1 |
1287 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1288 *ac_space=\ *)
1289 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +00001290 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1291 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
drh71eb93e2001-09-28 01:34:43 +00001292 ;;
1293 *)
1294 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +00001295 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
drh71eb93e2001-09-28 01:34:43 +00001296 ;;
1297 esac;
a.rottmann84e63352003-03-24 09:42:16 +00001298}
1299 echo
1300
1301 cat <<\_ASBOX
1302## ----------------- ##
1303## Output variables. ##
1304## ----------------- ##
1305_ASBOX
1306 echo
1307 for ac_var in $ac_subst_vars
1308 do
1309 eval ac_val=$`echo $ac_var`
1310 echo "$ac_var='"'"'$ac_val'"'"'"
1311 done | sort
1312 echo
1313
1314 if test -n "$ac_subst_files"; then
1315 cat <<\_ASBOX
1316## ------------- ##
1317## Output files. ##
1318## ------------- ##
1319_ASBOX
1320 echo
1321 for ac_var in $ac_subst_files
1322 do
1323 eval ac_val=$`echo $ac_var`
a.rottmann964dbb12004-02-26 19:47:42 +00001324 echo "$ac_var='"'"'$ac_val'"'"'"
a.rottmann84e63352003-03-24 09:42:16 +00001325 done | sort
1326 echo
1327 fi
1328
1329 if test -s confdefs.h; then
1330 cat <<\_ASBOX
1331## ----------- ##
1332## confdefs.h. ##
1333## ----------- ##
1334_ASBOX
1335 echo
1336 sed "/^$/d" confdefs.h | sort
1337 echo
1338 fi
1339 test "$ac_signal" != 0 &&
1340 echo "$as_me: caught signal $ac_signal"
1341 echo "$as_me: exit $exit_status"
1342 } >&5
a.rottmann964dbb12004-02-26 19:47:42 +00001343 rm -f core *.core &&
a.rottmann84e63352003-03-24 09:42:16 +00001344 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001345 exit $exit_status
1346 ' 0
1347for ac_signal in 1 2 13 15; do
1348 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1349done
1350ac_signal=0
1351
1352# confdefs.h avoids OS command line length limits that DEFS can exceed.
1353rm -rf conftest* confdefs.h
1354# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1355echo >confdefs.h
1356
a.rottmann84e63352003-03-24 09:42:16 +00001357# Predefined preprocessor variables.
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_NAME "$PACKAGE_NAME"
1361_ACEOF
1362
1363
1364cat >>confdefs.h <<_ACEOF
1365#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1366_ACEOF
1367
1368
1369cat >>confdefs.h <<_ACEOF
1370#define PACKAGE_VERSION "$PACKAGE_VERSION"
1371_ACEOF
1372
1373
1374cat >>confdefs.h <<_ACEOF
1375#define PACKAGE_STRING "$PACKAGE_STRING"
1376_ACEOF
1377
1378
1379cat >>confdefs.h <<_ACEOF
1380#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1381_ACEOF
1382
1383
drh71eb93e2001-09-28 01:34:43 +00001384# Let the site file select an alternate cache file if it wants to.
drh75897232000-05-29 14:26:00 +00001385# Prefer explicitly selected file to automatically selected ones.
1386if test -z "$CONFIG_SITE"; then
1387 if test "x$prefix" != xNONE; then
1388 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1389 else
1390 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1391 fi
1392fi
1393for ac_site_file in $CONFIG_SITE; do
1394 if test -r "$ac_site_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001395 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001396echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001397 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001398 . "$ac_site_file"
1399 fi
1400done
1401
1402if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001403 # Some versions of bash will fail to source /dev/null (special
1404 # files actually), so we avoid doing that.
1405 if test -f "$cache_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001406 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001407echo "$as_me: loading cache $cache_file" >&6;}
1408 case $cache_file in
1409 [\\/]* | ?:[\\/]* ) . $cache_file;;
1410 *) . ./$cache_file;;
1411 esac
1412 fi
drh75897232000-05-29 14:26:00 +00001413else
a.rottmann84e63352003-03-24 09:42:16 +00001414 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001415echo "$as_me: creating cache $cache_file" >&6;}
1416 >$cache_file
1417fi
1418
1419# Check that the precious variables saved in the cache have kept the same
1420# value.
1421ac_cache_corrupted=false
1422for ac_var in `(set) 2>&1 |
a.rottmann964dbb12004-02-26 19:47:42 +00001423 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
drh71eb93e2001-09-28 01:34:43 +00001424 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1425 eval ac_new_set=\$ac_env_${ac_var}_set
1426 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1427 eval ac_new_val="\$ac_env_${ac_var}_value"
1428 case $ac_old_set,$ac_new_set in
1429 set,)
a.rottmann84e63352003-03-24 09:42:16 +00001430 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001431echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1432 ac_cache_corrupted=: ;;
1433 ,set)
a.rottmann84e63352003-03-24 09:42:16 +00001434 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001435echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1436 ac_cache_corrupted=: ;;
1437 ,);;
1438 *)
1439 if test "x$ac_old_val" != "x$ac_new_val"; then
a.rottmann964dbb12004-02-26 19:47:42 +00001440 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
drh71eb93e2001-09-28 01:34:43 +00001441echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001442 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001443echo "$as_me: former value: $ac_old_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001444 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001445echo "$as_me: current value: $ac_new_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001446 ac_cache_corrupted=:
drh71eb93e2001-09-28 01:34:43 +00001447 fi;;
1448 esac
a.rottmann84e63352003-03-24 09:42:16 +00001449 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001450 if test "$ac_new_set" = set; then
1451 case $ac_new_val in
1452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
a.rottmann84e63352003-03-24 09:42:16 +00001453 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1454 *) ac_arg=$ac_var=$ac_new_val ;;
1455 esac
1456 case " $ac_configure_args " in
1457 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1458 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00001459 esac
1460 fi
1461done
1462if $ac_cache_corrupted; then
a.rottmann84e63352003-03-24 09:42:16 +00001463 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
drh71eb93e2001-09-28 01:34:43 +00001464echo "$as_me: error: changes in the environment can compromise the build" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00001465 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
drh71eb93e2001-09-28 01:34:43 +00001466echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1467 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001468fi
1469
1470ac_ext=c
drh75897232000-05-29 14:26:00 +00001471ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00001472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1474ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00001475
a.rottmann84e63352003-03-24 09:42:16 +00001476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
drh75897232000-05-29 14:26:00 +00001494
1495# The following RCS revision string applies to configure.in
dougcurrie65623c72004-09-20 14:57:23 +00001496# $Revision: 1.25 $
drh75897232000-05-29 14:26:00 +00001497
1498#########
drh71eb93e2001-09-28 01:34:43 +00001499# Programs needed
drh75897232000-05-29 14:26:00 +00001500#
drh71eb93e2001-09-28 01:34:43 +00001501# Check whether --enable-shared or --disable-shared was given.
1502if test "${enable_shared+set}" = set; then
1503 enableval="$enable_shared"
1504 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001505 case $enableval in
1506 yes) enable_shared=yes ;;
1507 no) enable_shared=no ;;
1508 *)
1509 enable_shared=no
1510 # Look at the argument we got. We use all the common list separators.
1511 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1512 for pkg in $enableval; do
1513 IFS="$lt_save_ifs"
1514 if test "X$pkg" = "X$p"; then
1515 enable_shared=yes
1516 fi
1517 done
1518 IFS="$lt_save_ifs"
1519 ;;
1520 esac
drh71eb93e2001-09-28 01:34:43 +00001521else
1522 enable_shared=yes
1523fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001524
drh71eb93e2001-09-28 01:34:43 +00001525# Check whether --enable-static or --disable-static was given.
1526if test "${enable_static+set}" = set; then
1527 enableval="$enable_static"
1528 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001529 case $enableval in
1530 yes) enable_static=yes ;;
1531 no) enable_static=no ;;
1532 *)
1533 enable_static=no
1534 # Look at the argument we got. We use all the common list separators.
1535 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1536 for pkg in $enableval; do
1537 IFS="$lt_save_ifs"
1538 if test "X$pkg" = "X$p"; then
1539 enable_static=yes
1540 fi
1541 done
1542 IFS="$lt_save_ifs"
1543 ;;
1544 esac
drh71eb93e2001-09-28 01:34:43 +00001545else
1546 enable_static=yes
1547fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001548
drh71eb93e2001-09-28 01:34:43 +00001549# Check whether --enable-fast-install or --disable-fast-install was given.
1550if test "${enable_fast_install+set}" = set; then
1551 enableval="$enable_fast_install"
1552 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001553 case $enableval in
1554 yes) enable_fast_install=yes ;;
1555 no) enable_fast_install=no ;;
1556 *)
1557 enable_fast_install=no
1558 # Look at the argument we got. We use all the common list separators.
1559 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1560 for pkg in $enableval; do
1561 IFS="$lt_save_ifs"
1562 if test "X$pkg" = "X$p"; then
1563 enable_fast_install=yes
1564 fi
1565 done
1566 IFS="$lt_save_ifs"
1567 ;;
1568 esac
drh71eb93e2001-09-28 01:34:43 +00001569else
1570 enable_fast_install=yes
1571fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001572
drh71eb93e2001-09-28 01:34:43 +00001573ac_aux_dir=
1574for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1575 if test -f $ac_dir/install-sh; then
1576 ac_aux_dir=$ac_dir
1577 ac_install_sh="$ac_aux_dir/install-sh -c"
1578 break
1579 elif test -f $ac_dir/install.sh; then
1580 ac_aux_dir=$ac_dir
1581 ac_install_sh="$ac_aux_dir/install.sh -c"
1582 break
1583 elif test -f $ac_dir/shtool; then
1584 ac_aux_dir=$ac_dir
1585 ac_install_sh="$ac_aux_dir/shtool install -c"
1586 break
1587 fi
1588done
1589if test -z "$ac_aux_dir"; then
a.rottmann84e63352003-03-24 09:42:16 +00001590 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
drh71eb93e2001-09-28 01:34:43 +00001591echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1592 { (exit 1); exit 1; }; }
1593fi
1594ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1595ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1596ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1597
1598# Make sure we can run config.sub.
1599$ac_config_sub sun4 >/dev/null 2>&1 ||
a.rottmann84e63352003-03-24 09:42:16 +00001600 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
drh71eb93e2001-09-28 01:34:43 +00001601echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1602 { (exit 1); exit 1; }; }
1603
a.rottmann84e63352003-03-24 09:42:16 +00001604echo "$as_me:$LINENO: checking build system type" >&5
drh71eb93e2001-09-28 01:34:43 +00001605echo $ECHO_N "checking build system type... $ECHO_C" >&6
1606if test "${ac_cv_build+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1608else
1609 ac_cv_build_alias=$build_alias
1610test -z "$ac_cv_build_alias" &&
1611 ac_cv_build_alias=`$ac_config_guess`
1612test -z "$ac_cv_build_alias" &&
a.rottmann84e63352003-03-24 09:42:16 +00001613 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
drh71eb93e2001-09-28 01:34:43 +00001614echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1615 { (exit 1); exit 1; }; }
1616ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
a.rottmann84e63352003-03-24 09:42:16 +00001617 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1618echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001619 { (exit 1); exit 1; }; }
1620
1621fi
a.rottmann84e63352003-03-24 09:42:16 +00001622echo "$as_me:$LINENO: result: $ac_cv_build" >&5
drh71eb93e2001-09-28 01:34:43 +00001623echo "${ECHO_T}$ac_cv_build" >&6
1624build=$ac_cv_build
1625build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628
a.rottmann84e63352003-03-24 09:42:16 +00001629
1630echo "$as_me:$LINENO: checking host system type" >&5
drh71eb93e2001-09-28 01:34:43 +00001631echo $ECHO_N "checking host system type... $ECHO_C" >&6
1632if test "${ac_cv_host+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1634else
1635 ac_cv_host_alias=$host_alias
1636test -z "$ac_cv_host_alias" &&
1637 ac_cv_host_alias=$ac_cv_build_alias
1638ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
a.rottmann84e63352003-03-24 09:42:16 +00001639 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
drh71eb93e2001-09-28 01:34:43 +00001640echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1641 { (exit 1); exit 1; }; }
1642
1643fi
a.rottmann84e63352003-03-24 09:42:16 +00001644echo "$as_me:$LINENO: result: $ac_cv_host" >&5
drh71eb93e2001-09-28 01:34:43 +00001645echo "${ECHO_T}$ac_cv_host" >&6
1646host=$ac_cv_host
1647host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1648host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1649host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650
a.rottmann84e63352003-03-24 09:42:16 +00001651
drh71eb93e2001-09-28 01:34:43 +00001652ac_ext=c
1653ac_cpp='$CPP $CPPFLAGS'
1654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1656ac_compiler_gnu=$ac_cv_c_compiler_gnu
1657if test -n "$ac_tool_prefix"; then
1658 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1659set dummy ${ac_tool_prefix}gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001660echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662if test "${ac_cv_prog_CC+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1664else
1665 if test -n "$CC"; then
1666 ac_cv_prog_CC="$CC" # Let the user override the test.
1667else
a.rottmann84e63352003-03-24 09:42:16 +00001668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669for as_dir in $PATH
1670do
1671 IFS=$as_save_IFS
1672 test -z "$as_dir" && as_dir=.
1673 for ac_exec_ext in '' $ac_executable_extensions; do
1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 break 2
1678 fi
1679done
drh71eb93e2001-09-28 01:34:43 +00001680done
1681
1682fi
1683fi
1684CC=$ac_cv_prog_CC
1685if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001686 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001687echo "${ECHO_T}$CC" >&6
1688else
a.rottmann84e63352003-03-24 09:42:16 +00001689 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001690echo "${ECHO_T}no" >&6
1691fi
1692
1693fi
1694if test -z "$ac_cv_prog_CC"; then
1695 ac_ct_CC=$CC
1696 # Extract the first word of "gcc", so it can be a program name with args.
1697set dummy gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001698echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1702else
1703 if test -n "$ac_ct_CC"; then
1704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1705else
a.rottmann84e63352003-03-24 09:42:16 +00001706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707for as_dir in $PATH
1708do
1709 IFS=$as_save_IFS
1710 test -z "$as_dir" && as_dir=.
1711 for ac_exec_ext in '' $ac_executable_extensions; do
1712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713 ac_cv_prog_ac_ct_CC="gcc"
1714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 break 2
1716 fi
1717done
drh71eb93e2001-09-28 01:34:43 +00001718done
1719
1720fi
1721fi
1722ac_ct_CC=$ac_cv_prog_ac_ct_CC
1723if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001724 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001725echo "${ECHO_T}$ac_ct_CC" >&6
1726else
a.rottmann84e63352003-03-24 09:42:16 +00001727 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001728echo "${ECHO_T}no" >&6
1729fi
1730
1731 CC=$ac_ct_CC
1732else
1733 CC="$ac_cv_prog_CC"
1734fi
1735
1736if test -z "$CC"; then
1737 if test -n "$ac_tool_prefix"; then
1738 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1739set dummy ${ac_tool_prefix}cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001740echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1742if test "${ac_cv_prog_CC+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1744else
1745 if test -n "$CC"; then
1746 ac_cv_prog_CC="$CC" # Let the user override the test.
1747else
a.rottmann84e63352003-03-24 09:42:16 +00001748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749for as_dir in $PATH
1750do
1751 IFS=$as_save_IFS
1752 test -z "$as_dir" && as_dir=.
1753 for ac_exec_ext in '' $ac_executable_extensions; do
1754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1755 ac_cv_prog_CC="${ac_tool_prefix}cc"
1756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 break 2
1758 fi
1759done
drh71eb93e2001-09-28 01:34:43 +00001760done
1761
1762fi
1763fi
1764CC=$ac_cv_prog_CC
1765if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001766 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001767echo "${ECHO_T}$CC" >&6
1768else
a.rottmann84e63352003-03-24 09:42:16 +00001769 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001770echo "${ECHO_T}no" >&6
1771fi
1772
1773fi
1774if test -z "$ac_cv_prog_CC"; then
1775 ac_ct_CC=$CC
1776 # Extract the first word of "cc", so it can be a program name with args.
1777set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001778echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1780if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1781 echo $ECHO_N "(cached) $ECHO_C" >&6
1782else
1783 if test -n "$ac_ct_CC"; then
1784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1785else
a.rottmann84e63352003-03-24 09:42:16 +00001786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787for as_dir in $PATH
1788do
1789 IFS=$as_save_IFS
1790 test -z "$as_dir" && as_dir=.
1791 for ac_exec_ext in '' $ac_executable_extensions; do
1792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793 ac_cv_prog_ac_ct_CC="cc"
1794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795 break 2
1796 fi
1797done
drh71eb93e2001-09-28 01:34:43 +00001798done
1799
1800fi
1801fi
1802ac_ct_CC=$ac_cv_prog_ac_ct_CC
1803if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001804 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001805echo "${ECHO_T}$ac_ct_CC" >&6
1806else
a.rottmann84e63352003-03-24 09:42:16 +00001807 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001808echo "${ECHO_T}no" >&6
1809fi
1810
1811 CC=$ac_ct_CC
1812else
1813 CC="$ac_cv_prog_CC"
1814fi
1815
1816fi
1817if test -z "$CC"; then
1818 # Extract the first word of "cc", so it can be a program name with args.
1819set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001820echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822if test "${ac_cv_prog_CC+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1824else
1825 if test -n "$CC"; then
1826 ac_cv_prog_CC="$CC" # Let the user override the test.
1827else
1828 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00001829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830for as_dir in $PATH
1831do
1832 IFS=$as_save_IFS
1833 test -z "$as_dir" && as_dir=.
1834 for ac_exec_ext in '' $ac_executable_extensions; do
1835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1836 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1837 ac_prog_rejected=yes
1838 continue
1839 fi
1840 ac_cv_prog_CC="cc"
1841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842 break 2
1843 fi
1844done
drh71eb93e2001-09-28 01:34:43 +00001845done
1846
1847if test $ac_prog_rejected = yes; then
1848 # We found a bogon in the path, so make sure we never use it.
1849 set dummy $ac_cv_prog_CC
1850 shift
1851 if test $# != 0; then
1852 # We chose a different compiler from the bogus one.
1853 # However, it has the same basename, so the bogon will be chosen
1854 # first if we set CC to just the basename; use the full file name.
1855 shift
a.rottmann84e63352003-03-24 09:42:16 +00001856 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00001857 fi
1858fi
1859fi
1860fi
1861CC=$ac_cv_prog_CC
1862if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001863 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001864echo "${ECHO_T}$CC" >&6
1865else
a.rottmann84e63352003-03-24 09:42:16 +00001866 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001867echo "${ECHO_T}no" >&6
1868fi
1869
1870fi
1871if test -z "$CC"; then
1872 if test -n "$ac_tool_prefix"; then
1873 for ac_prog in cl
1874 do
1875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1876set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001877echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1879if test "${ac_cv_prog_CC+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1881else
1882 if test -n "$CC"; then
1883 ac_cv_prog_CC="$CC" # Let the user override the test.
1884else
a.rottmann84e63352003-03-24 09:42:16 +00001885as_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_CC="$ac_tool_prefix$ac_prog"
1893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 break 2
1895 fi
1896done
drh71eb93e2001-09-28 01:34:43 +00001897done
1898
1899fi
1900fi
1901CC=$ac_cv_prog_CC
1902if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001903 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001904echo "${ECHO_T}$CC" >&6
1905else
a.rottmann84e63352003-03-24 09:42:16 +00001906 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001907echo "${ECHO_T}no" >&6
1908fi
1909
1910 test -n "$CC" && break
1911 done
1912fi
1913if test -z "$CC"; then
1914 ac_ct_CC=$CC
1915 for ac_prog in cl
1916do
1917 # Extract the first word of "$ac_prog", so it can be a program name with args.
1918set dummy $ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001919echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923else
1924 if test -n "$ac_ct_CC"; then
1925 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1926else
a.rottmann84e63352003-03-24 09:42:16 +00001927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928for as_dir in $PATH
1929do
1930 IFS=$as_save_IFS
1931 test -z "$as_dir" && as_dir=.
1932 for ac_exec_ext in '' $ac_executable_extensions; do
1933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934 ac_cv_prog_ac_ct_CC="$ac_prog"
1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 break 2
1937 fi
1938done
drh71eb93e2001-09-28 01:34:43 +00001939done
1940
1941fi
1942fi
1943ac_ct_CC=$ac_cv_prog_ac_ct_CC
1944if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001945 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001946echo "${ECHO_T}$ac_ct_CC" >&6
1947else
a.rottmann84e63352003-03-24 09:42:16 +00001948 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001949echo "${ECHO_T}no" >&6
1950fi
1951
1952 test -n "$ac_ct_CC" && break
1953done
1954
1955 CC=$ac_ct_CC
1956fi
1957
1958fi
1959
a.rottmann84e63352003-03-24 09:42:16 +00001960
1961test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1962See \`config.log' for more details." >&5
1963echo "$as_me: error: no acceptable C compiler found in \$PATH
1964See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00001965 { (exit 1); exit 1; }; }
1966
1967# Provide some information about the compiler.
a.rottmann84e63352003-03-24 09:42:16 +00001968echo "$as_me:$LINENO:" \
drh71eb93e2001-09-28 01:34:43 +00001969 "checking for C compiler version" >&5
1970ac_compiler=`set X $ac_compile; echo $2`
a.rottmann84e63352003-03-24 09:42:16 +00001971{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001972 (eval $ac_compiler --version </dev/null >&5) 2>&5
1973 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001975 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00001976{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001977 (eval $ac_compiler -v </dev/null >&5) 2>&5
1978 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001980 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00001981{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001982 (eval $ac_compiler -V </dev/null >&5) 2>&5
1983 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001985 (exit $ac_status); }
1986
1987cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00001988/* confdefs.h. */
1989_ACEOF
1990cat confdefs.h >>conftest.$ac_ext
1991cat >>conftest.$ac_ext <<_ACEOF
1992/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00001993
1994int
1995main ()
1996{
1997
1998 ;
1999 return 0;
2000}
2001_ACEOF
2002ac_clean_files_save=$ac_clean_files
a.rottmann84e63352003-03-24 09:42:16 +00002003ac_clean_files="$ac_clean_files a.out a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002004# Try to create an executable without -o first, disregard a.out.
2005# It will help us diagnose broken compilers, and finding out an intuition
2006# of exeext.
a.rottmann964dbb12004-02-26 19:47:42 +00002007echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2008echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002009ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
a.rottmann84e63352003-03-24 09:42:16 +00002010if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002011 (eval $ac_link_default) 2>&5
2012 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002014 (exit $ac_status); }; then
2015 # Find the output, starting from the most likely. This scheme is
2016# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2017# resort.
a.rottmann84e63352003-03-24 09:42:16 +00002018
2019# Be careful to initialize this variable, since it used to be cached.
2020# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2021ac_cv_exeext=
2022# b.out is created by i960 compilers.
2023for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2024do
2025 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002026 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002028 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002029 conftest.$ac_ext )
a.rottmann964dbb12004-02-26 19:47:42 +00002030 # This is the source file.
2031 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002032 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002033 # We found the default executable, but exeext='' is most
2034 # certainly right.
2035 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002036 *.* )
a.rottmann964dbb12004-02-26 19:47:42 +00002037 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2038 # FIXME: I believe we export ac_cv_exeext for Libtool,
2039 # but it would be cool to find out if it's true. Does anybody
2040 # maintain Libtool? --akim.
2041 export ac_cv_exeext
2042 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002043 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002044 break;;
drh71eb93e2001-09-28 01:34:43 +00002045 esac
2046done
2047else
2048 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002049sed 's/^/| /' conftest.$ac_ext >&5
2050
2051{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2052See \`config.log' for more details." >&5
2053echo "$as_me: error: C compiler cannot create executables
2054See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002055 { (exit 77); exit 77; }; }
2056fi
2057
2058ac_exeext=$ac_cv_exeext
a.rottmann84e63352003-03-24 09:42:16 +00002059echo "$as_me:$LINENO: result: $ac_file" >&5
drh71eb93e2001-09-28 01:34:43 +00002060echo "${ECHO_T}$ac_file" >&6
2061
2062# Check the compiler produces executables we can run. If not, either
2063# the compiler is broken, or we cross compile.
a.rottmann84e63352003-03-24 09:42:16 +00002064echo "$as_me:$LINENO: checking whether the C compiler works" >&5
drh71eb93e2001-09-28 01:34:43 +00002065echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2066# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2067# If not cross compiling, check that we can run a simple program.
2068if test "$cross_compiling" != yes; then
2069 if { ac_try='./$ac_file'
a.rottmann84e63352003-03-24 09:42:16 +00002070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002071 (eval $ac_try) 2>&5
2072 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002074 (exit $ac_status); }; }; then
2075 cross_compiling=no
2076 else
2077 if test "$cross_compiling" = maybe; then
2078 cross_compiling=yes
2079 else
a.rottmann84e63352003-03-24 09:42:16 +00002080 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2081If you meant to cross compile, use \`--host'.
2082See \`config.log' for more details." >&5
drh71eb93e2001-09-28 01:34:43 +00002083echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002084If you meant to cross compile, use \`--host'.
2085See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002086 { (exit 1); exit 1; }; }
2087 fi
2088 fi
2089fi
a.rottmann84e63352003-03-24 09:42:16 +00002090echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00002091echo "${ECHO_T}yes" >&6
2092
a.rottmann84e63352003-03-24 09:42:16 +00002093rm -f a.out a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002094ac_clean_files=$ac_clean_files_save
2095# Check the compiler produces executables we can run. If not, either
2096# the compiler is broken, or we cross compile.
a.rottmann84e63352003-03-24 09:42:16 +00002097echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00002098echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00002099echo "$as_me:$LINENO: result: $cross_compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00002100echo "${ECHO_T}$cross_compiling" >&6
2101
a.rottmann84e63352003-03-24 09:42:16 +00002102echo "$as_me:$LINENO: checking for suffix of executables" >&5
2103echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002105 (eval $ac_link) 2>&5
2106 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002108 (exit $ac_status); }; then
2109 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2110# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2111# work properly (i.e., refer to `conftest.exe'), while it won't with
2112# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002113for ac_file in conftest.exe conftest conftest.*; do
2114 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002115 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002117 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002118 export ac_cv_exeext
2119 break;;
drh71eb93e2001-09-28 01:34:43 +00002120 * ) break;;
2121 esac
2122done
2123else
a.rottmann84e63352003-03-24 09:42:16 +00002124 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2125See \`config.log' for more details." >&5
2126echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2127See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002128 { (exit 1); exit 1; }; }
2129fi
2130
2131rm -f conftest$ac_cv_exeext
a.rottmann84e63352003-03-24 09:42:16 +00002132echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
drh71eb93e2001-09-28 01:34:43 +00002133echo "${ECHO_T}$ac_cv_exeext" >&6
2134
2135rm -f conftest.$ac_ext
2136EXEEXT=$ac_cv_exeext
2137ac_exeext=$EXEEXT
a.rottmann84e63352003-03-24 09:42:16 +00002138echo "$as_me:$LINENO: checking for suffix of object files" >&5
2139echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002140if test "${ac_cv_objext+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2142else
2143 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002144/* confdefs.h. */
2145_ACEOF
2146cat confdefs.h >>conftest.$ac_ext
2147cat >>conftest.$ac_ext <<_ACEOF
2148/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002149
2150int
2151main ()
2152{
2153
2154 ;
2155 return 0;
2156}
2157_ACEOF
2158rm -f conftest.o conftest.obj
a.rottmann84e63352003-03-24 09:42:16 +00002159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002160 (eval $ac_compile) 2>&5
2161 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002163 (exit $ac_status); }; then
2164 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2165 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
drh71eb93e2001-09-28 01:34:43 +00002167 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2168 break;;
2169 esac
2170done
2171else
2172 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002173sed 's/^/| /' conftest.$ac_ext >&5
2174
2175{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2176See \`config.log' for more details." >&5
2177echo "$as_me: error: cannot compute suffix of object files: cannot compile
2178See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002179 { (exit 1); exit 1; }; }
2180fi
2181
2182rm -f conftest.$ac_cv_objext conftest.$ac_ext
2183fi
a.rottmann84e63352003-03-24 09:42:16 +00002184echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
drh71eb93e2001-09-28 01:34:43 +00002185echo "${ECHO_T}$ac_cv_objext" >&6
2186OBJEXT=$ac_cv_objext
2187ac_objext=$OBJEXT
a.rottmann84e63352003-03-24 09:42:16 +00002188echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00002189echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2190if test "${ac_cv_c_compiler_gnu+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192else
2193 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002194/* confdefs.h. */
2195_ACEOF
2196cat confdefs.h >>conftest.$ac_ext
2197cat >>conftest.$ac_ext <<_ACEOF
2198/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002199
2200int
2201main ()
2202{
2203#ifndef __GNUC__
2204 choke me
2205#endif
2206
2207 ;
2208 return 0;
2209}
2210_ACEOF
2211rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002213 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002214 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002215 grep -v '^ *+' conftest.er1 >conftest.err
2216 rm -f conftest.er1
2217 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002219 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002220 { ac_try='test -z "$ac_c_werror_flag"
2221 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 (eval $ac_try) 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; } &&
2227 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002229 (eval $ac_try) 2>&5
2230 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002232 (exit $ac_status); }; }; then
2233 ac_compiler_gnu=yes
2234else
2235 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002236sed 's/^/| /' conftest.$ac_ext >&5
2237
drh71eb93e2001-09-28 01:34:43 +00002238ac_compiler_gnu=no
2239fi
a.rottmann964dbb12004-02-26 19:47:42 +00002240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002241ac_cv_c_compiler_gnu=$ac_compiler_gnu
2242
2243fi
a.rottmann84e63352003-03-24 09:42:16 +00002244echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh71eb93e2001-09-28 01:34:43 +00002245echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2246GCC=`test $ac_compiler_gnu = yes && echo yes`
2247ac_test_CFLAGS=${CFLAGS+set}
2248ac_save_CFLAGS=$CFLAGS
2249CFLAGS="-g"
a.rottmann84e63352003-03-24 09:42:16 +00002250echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh71eb93e2001-09-28 01:34:43 +00002251echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2252if test "${ac_cv_prog_cc_g+set}" = set; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
2254else
2255 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002256/* confdefs.h. */
2257_ACEOF
2258cat confdefs.h >>conftest.$ac_ext
2259cat >>conftest.$ac_ext <<_ACEOF
2260/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002261
2262int
2263main ()
2264{
2265
2266 ;
2267 return 0;
2268}
2269_ACEOF
2270rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002272 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002273 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002274 grep -v '^ *+' conftest.er1 >conftest.err
2275 rm -f conftest.er1
2276 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002278 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002279 { ac_try='test -z "$ac_c_werror_flag"
2280 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 (eval $ac_try) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; } &&
2286 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002288 (eval $ac_try) 2>&5
2289 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002291 (exit $ac_status); }; }; then
2292 ac_cv_prog_cc_g=yes
2293else
2294 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002295sed 's/^/| /' conftest.$ac_ext >&5
2296
drh71eb93e2001-09-28 01:34:43 +00002297ac_cv_prog_cc_g=no
2298fi
a.rottmann964dbb12004-02-26 19:47:42 +00002299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002300fi
a.rottmann84e63352003-03-24 09:42:16 +00002301echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh71eb93e2001-09-28 01:34:43 +00002302echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2303if test "$ac_test_CFLAGS" = set; then
2304 CFLAGS=$ac_save_CFLAGS
2305elif test $ac_cv_prog_cc_g = yes; then
2306 if test "$GCC" = yes; then
2307 CFLAGS="-g -O2"
2308 else
2309 CFLAGS="-g"
2310 fi
2311else
2312 if test "$GCC" = yes; then
2313 CFLAGS="-O2"
2314 else
2315 CFLAGS=
2316 fi
2317fi
a.rottmann84e63352003-03-24 09:42:16 +00002318echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2319echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2320if test "${ac_cv_prog_cc_stdc+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2322else
2323 ac_cv_prog_cc_stdc=no
2324ac_save_CC=$CC
2325cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002326/* confdefs.h. */
2327_ACEOF
2328cat confdefs.h >>conftest.$ac_ext
2329cat >>conftest.$ac_ext <<_ACEOF
2330/* end confdefs.h. */
2331#include <stdarg.h>
2332#include <stdio.h>
2333#include <sys/types.h>
2334#include <sys/stat.h>
2335/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2336struct buf { int x; };
2337FILE * (*rcsopen) (struct buf *, struct stat *, int);
2338static char *e (p, i)
2339 char **p;
2340 int i;
2341{
2342 return p[i];
2343}
2344static char *f (char * (*g) (char **, int), char **p, ...)
2345{
2346 char *s;
2347 va_list v;
2348 va_start (v,p);
2349 s = g (p, va_arg (v,int));
2350 va_end (v);
2351 return s;
2352}
a.rottmann964dbb12004-02-26 19:47:42 +00002353
2354/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2355 function prototypes and stuff, but not '\xHH' hex character constants.
2356 These don't provoke an error unfortunately, instead are silently treated
2357 as 'x'. The following induces an error, until -std1 is added to get
2358 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2359 array size at least. It's necessary to write '\x00'==0 to get something
2360 that's true only with -std1. */
2361int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2362
a.rottmann84e63352003-03-24 09:42:16 +00002363int test (int i, double x);
2364struct s1 {int (*f) (int a);};
2365struct s2 {int (*f) (double a);};
2366int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2367int argc;
2368char **argv;
2369int
2370main ()
2371{
2372return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2373 ;
2374 return 0;
2375}
2376_ACEOF
2377# Don't try gcc -ansi; that turns off useful extensions and
2378# breaks some systems' header files.
2379# AIX -qlanglvl=ansi
2380# Ultrix and OSF/1 -std1
2381# HP-UX 10.20 and later -Ae
2382# HP-UX older versions -Aa -D_HPUX_SOURCE
2383# SVR4 -Xc -D__EXTENSIONS__
2384for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2385do
2386 CC="$ac_save_CC $ac_arg"
2387 rm -f conftest.$ac_objext
2388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002389 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00002390 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002391 grep -v '^ *+' conftest.er1 >conftest.err
2392 rm -f conftest.er1
2393 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002396 { ac_try='test -z "$ac_c_werror_flag"
2397 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 (eval $ac_try) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; } &&
2403 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 (eval $ac_try) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2409 ac_cv_prog_cc_stdc=$ac_arg
2410break
2411else
2412 echo "$as_me: failed program was:" >&5
2413sed 's/^/| /' conftest.$ac_ext >&5
2414
2415fi
a.rottmann964dbb12004-02-26 19:47:42 +00002416rm -f conftest.err conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002417done
2418rm -f conftest.$ac_ext conftest.$ac_objext
2419CC=$ac_save_CC
2420
2421fi
2422
2423case "x$ac_cv_prog_cc_stdc" in
2424 x|xno)
2425 echo "$as_me:$LINENO: result: none needed" >&5
2426echo "${ECHO_T}none needed" >&6 ;;
2427 *)
2428 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2429echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2430 CC="$CC $ac_cv_prog_cc_stdc" ;;
2431esac
2432
drh71eb93e2001-09-28 01:34:43 +00002433# Some people use a C++ compiler to compile C. Since we use `exit',
2434# in C++ we need to declare it. In case someone uses the same compiler
2435# for both compiling C and C++ we need to have the C++ compiler decide
2436# the declaration of exit, since it's the most demanding environment.
2437cat >conftest.$ac_ext <<_ACEOF
2438#ifndef __cplusplus
2439 choke me
2440#endif
2441_ACEOF
2442rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002444 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002445 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002446 grep -v '^ *+' conftest.er1 >conftest.err
2447 rm -f conftest.er1
2448 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002450 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002451 { ac_try='test -z "$ac_c_werror_flag"
2452 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 (eval $ac_try) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; } &&
2458 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002460 (eval $ac_try) 2>&5
2461 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002463 (exit $ac_status); }; }; then
2464 for ac_declaration in \
a.rottmann964dbb12004-02-26 19:47:42 +00002465 '' \
drh71eb93e2001-09-28 01:34:43 +00002466 'extern "C" void std::exit (int) throw (); using std::exit;' \
2467 'extern "C" void std::exit (int); using std::exit;' \
2468 'extern "C" void exit (int) throw ();' \
2469 'extern "C" void exit (int);' \
2470 'void exit (int);'
2471do
2472 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002473/* confdefs.h. */
2474_ACEOF
2475cat confdefs.h >>conftest.$ac_ext
2476cat >>conftest.$ac_ext <<_ACEOF
2477/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002478$ac_declaration
a.rottmann964dbb12004-02-26 19:47:42 +00002479#include <stdlib.h>
drh71eb93e2001-09-28 01:34:43 +00002480int
2481main ()
2482{
2483exit (42);
2484 ;
2485 return 0;
2486}
2487_ACEOF
2488rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002490 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002491 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002492 grep -v '^ *+' conftest.er1 >conftest.err
2493 rm -f conftest.er1
2494 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002496 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002497 { ac_try='test -z "$ac_c_werror_flag"
2498 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 (eval $ac_try) 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; } &&
2504 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002506 (eval $ac_try) 2>&5
2507 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002509 (exit $ac_status); }; }; then
2510 :
2511else
2512 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002513sed 's/^/| /' conftest.$ac_ext >&5
2514
drh71eb93e2001-09-28 01:34:43 +00002515continue
2516fi
a.rottmann964dbb12004-02-26 19:47:42 +00002517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002518 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002519/* confdefs.h. */
2520_ACEOF
2521cat confdefs.h >>conftest.$ac_ext
2522cat >>conftest.$ac_ext <<_ACEOF
2523/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002524$ac_declaration
2525int
2526main ()
2527{
2528exit (42);
2529 ;
2530 return 0;
2531}
2532_ACEOF
2533rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002535 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002536 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002537 grep -v '^ *+' conftest.er1 >conftest.err
2538 rm -f conftest.er1
2539 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002541 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002542 { ac_try='test -z "$ac_c_werror_flag"
2543 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 (eval $ac_try) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; } &&
2549 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002551 (eval $ac_try) 2>&5
2552 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002554 (exit $ac_status); }; }; then
2555 break
2556else
2557 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002558sed 's/^/| /' conftest.$ac_ext >&5
2559
drh71eb93e2001-09-28 01:34:43 +00002560fi
a.rottmann964dbb12004-02-26 19:47:42 +00002561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002562done
2563rm -f conftest*
2564if test -n "$ac_declaration"; then
2565 echo '#ifdef __cplusplus' >>confdefs.h
2566 echo $ac_declaration >>confdefs.h
2567 echo '#endif' >>confdefs.h
2568fi
2569
2570else
2571 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002572sed 's/^/| /' conftest.$ac_ext >&5
2573
drh71eb93e2001-09-28 01:34:43 +00002574fi
a.rottmann964dbb12004-02-26 19:47:42 +00002575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002576ac_ext=c
2577ac_cpp='$CPP $CPPFLAGS'
2578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2580ac_compiler_gnu=$ac_cv_c_compiler_gnu
2581
a.rottmann9bc8b932004-02-29 15:18:31 +00002582echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2583echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2584if test "${lt_cv_path_SED+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2586else
2587 # Loop through the user's path and test for sed and gsed.
2588# Then use that list of sed's as ones to test for truncation.
2589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590for as_dir in $PATH
2591do
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 for lt_ac_prog in sed gsed; do
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2597 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2598 fi
2599 done
2600 done
2601done
2602lt_ac_max=0
2603lt_ac_count=0
2604# Add /usr/xpg4/bin/sed as it is typically found on Solaris
2605# along with /bin/sed that truncates output.
2606for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2607 test ! -f $lt_ac_sed && break
2608 cat /dev/null > conftest.in
2609 lt_ac_count=0
2610 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2611 # Check for GNU sed and select it if it is found.
2612 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2613 lt_cv_path_SED=$lt_ac_sed
2614 break
2615 fi
2616 while true; do
2617 cat conftest.in conftest.in >conftest.tmp
2618 mv conftest.tmp conftest.in
2619 cp conftest.in conftest.nl
2620 echo >>conftest.nl
2621 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2622 cmp -s conftest.out conftest.nl || break
2623 # 10000 chars as input seems more than enough
2624 test $lt_ac_count -gt 10 && break
2625 lt_ac_count=`expr $lt_ac_count + 1`
2626 if test $lt_ac_count -gt $lt_ac_max; then
2627 lt_ac_max=$lt_ac_count
2628 lt_cv_path_SED=$lt_ac_sed
2629 fi
2630 done
2631done
2632SED=$lt_cv_path_SED
2633
a.rottmann84e63352003-03-24 09:42:16 +00002634fi
2635
a.rottmann9bc8b932004-02-29 15:18:31 +00002636echo "$as_me:$LINENO: result: $SED" >&5
2637echo "${ECHO_T}$SED" >&6
2638
2639echo "$as_me:$LINENO: checking for egrep" >&5
2640echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2641if test "${ac_cv_prog_egrep+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2643else
2644 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2645 then ac_cv_prog_egrep='grep -E'
2646 else ac_cv_prog_egrep='egrep'
2647 fi
2648fi
2649echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2650echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2651 EGREP=$ac_cv_prog_egrep
2652
2653
a.rottmann84e63352003-03-24 09:42:16 +00002654
drh71eb93e2001-09-28 01:34:43 +00002655# Check whether --with-gnu-ld or --without-gnu-ld was given.
2656if test "${with_gnu_ld+set}" = set; then
2657 withval="$with_gnu_ld"
2658 test "$withval" = no || with_gnu_ld=yes
2659else
2660 with_gnu_ld=no
2661fi;
2662ac_prog=ld
2663if test "$GCC" = yes; then
2664 # Check if gcc -print-prog-name=ld gives a path.
a.rottmann9bc8b932004-02-29 15:18:31 +00002665 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2666echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002667 case $host in
2668 *-*-mingw*)
2669 # gcc leaves a trailing carriage return which upsets mingw
2670 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2671 *)
2672 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2673 esac
2674 case $ac_prog in
2675 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00002676 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00002677 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00002678 # Canonicalize the pathname of ld
2679 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
drh71eb93e2001-09-28 01:34:43 +00002680 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002681 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00002682 done
2683 test -z "$LD" && LD="$ac_prog"
2684 ;;
2685 "")
2686 # If it fails, then pretend we aren't using GCC.
2687 ac_prog=ld
2688 ;;
2689 *)
2690 # If it is relative, then search for the first ld in PATH.
2691 with_gnu_ld=unknown
2692 ;;
2693 esac
2694elif test "$with_gnu_ld" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00002695 echo "$as_me:$LINENO: checking for GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002696echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2697else
a.rottmann84e63352003-03-24 09:42:16 +00002698 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002699echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2700fi
2701if test "${lt_cv_path_LD+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2703else
2704 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00002705 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002706 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002707 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002708 test -z "$ac_dir" && ac_dir=.
2709 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2710 lt_cv_path_LD="$ac_dir/$ac_prog"
2711 # Check to see if the program is GNU ld. I'd rather use --version,
2712 # but apparently some GNU ld's only accept -v.
2713 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00002714 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2715 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00002716 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00002717 ;;
2718 *)
drh71eb93e2001-09-28 01:34:43 +00002719 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00002720 ;;
2721 esac
drh71eb93e2001-09-28 01:34:43 +00002722 fi
2723 done
a.rottmann9bc8b932004-02-29 15:18:31 +00002724 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002725else
2726 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2727fi
2728fi
2729
2730LD="$lt_cv_path_LD"
2731if test -n "$LD"; then
a.rottmann84e63352003-03-24 09:42:16 +00002732 echo "$as_me:$LINENO: result: $LD" >&5
drh71eb93e2001-09-28 01:34:43 +00002733echo "${ECHO_T}$LD" >&6
2734else
a.rottmann84e63352003-03-24 09:42:16 +00002735 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00002736echo "${ECHO_T}no" >&6
2737fi
a.rottmann84e63352003-03-24 09:42:16 +00002738test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
drh71eb93e2001-09-28 01:34:43 +00002739echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2740 { (exit 1); exit 1; }; }
a.rottmann84e63352003-03-24 09:42:16 +00002741echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002742echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2743if test "${lt_cv_prog_gnu_ld+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2745else
2746 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00002747case `$LD -v 2>&1 </dev/null` in
2748*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00002749 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00002750 ;;
2751*)
drh71eb93e2001-09-28 01:34:43 +00002752 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00002753 ;;
2754esac
drh71eb93e2001-09-28 01:34:43 +00002755fi
a.rottmann84e63352003-03-24 09:42:16 +00002756echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002757echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2758with_gnu_ld=$lt_cv_prog_gnu_ld
2759
a.rottmann84e63352003-03-24 09:42:16 +00002760
2761echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
drh71eb93e2001-09-28 01:34:43 +00002762echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2763if test "${lt_cv_ld_reload_flag+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2765else
2766 lt_cv_ld_reload_flag='-r'
2767fi
a.rottmann84e63352003-03-24 09:42:16 +00002768echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
drh71eb93e2001-09-28 01:34:43 +00002769echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2770reload_flag=$lt_cv_ld_reload_flag
a.rottmann9bc8b932004-02-29 15:18:31 +00002771case $reload_flag in
2772"" | " "*) ;;
2773*) reload_flag=" $reload_flag" ;;
2774esac
2775reload_cmds='$LD$reload_flag -o $output$reload_objs'
drh71eb93e2001-09-28 01:34:43 +00002776
a.rottmann84e63352003-03-24 09:42:16 +00002777echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
drh71eb93e2001-09-28 01:34:43 +00002778echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2779if test "${lt_cv_path_NM+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2781else
2782 if test -n "$NM"; then
2783 # Let the user override the test.
2784 lt_cv_path_NM="$NM"
2785else
a.rottmann9bc8b932004-02-29 15:18:31 +00002786 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002787 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002788 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002789 test -z "$ac_dir" && ac_dir=.
a.rottmann9bc8b932004-02-29 15:18:31 +00002790 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2791 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
drh71eb93e2001-09-28 01:34:43 +00002792 # Check to see if the nm accepts a BSD-compat flag.
2793 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2794 # nm: unknown option "B" ignored
2795 # Tru64's nm complains that /dev/null is an invalid object file
a.rottmann9bc8b932004-02-29 15:18:31 +00002796 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2797 */dev/null* | *'Invalid file or object type'*)
drh71eb93e2001-09-28 01:34:43 +00002798 lt_cv_path_NM="$tmp_nm -B"
2799 break
a.rottmann9bc8b932004-02-29 15:18:31 +00002800 ;;
2801 *)
2802 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2803 */dev/null*)
2804 lt_cv_path_NM="$tmp_nm -p"
2805 break
2806 ;;
2807 *)
2808 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2809 continue # so that we can try to find one that supports BSD flags
2810 ;;
2811 esac
2812 esac
drh71eb93e2001-09-28 01:34:43 +00002813 fi
2814 done
a.rottmann9bc8b932004-02-29 15:18:31 +00002815 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002816 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2817fi
2818fi
a.rottmann9bc8b932004-02-29 15:18:31 +00002819echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2820echo "${ECHO_T}$lt_cv_path_NM" >&6
a.rottmann84e63352003-03-24 09:42:16 +00002821NM="$lt_cv_path_NM"
a.rottmann84e63352003-03-24 09:42:16 +00002822
2823echo "$as_me:$LINENO: checking whether ln -s works" >&5
drh71eb93e2001-09-28 01:34:43 +00002824echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2825LN_S=$as_ln_s
2826if test "$LN_S" = "ln -s"; then
a.rottmann84e63352003-03-24 09:42:16 +00002827 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00002828echo "${ECHO_T}yes" >&6
2829else
a.rottmann84e63352003-03-24 09:42:16 +00002830 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
drh71eb93e2001-09-28 01:34:43 +00002831echo "${ECHO_T}no, using $LN_S" >&6
2832fi
2833
a.rottmann84e63352003-03-24 09:42:16 +00002834echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2835echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002836if test "${lt_cv_deplibs_check_method+set}" = set; then
2837 echo $ECHO_N "(cached) $ECHO_C" >&6
2838else
2839 lt_cv_file_magic_cmd='$MAGIC_CMD'
2840lt_cv_file_magic_test_file=
2841lt_cv_deplibs_check_method='unknown'
2842# Need to set the preceding variable on all platforms that support
2843# interlibrary dependencies.
2844# 'none' -- dependencies not supported.
2845# `unknown' -- same as none, but documents that we really don't know.
2846# 'pass_all' -- all dependencies passed with no checks.
2847# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00002848# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00002849# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00002850# If you have `file' or equivalent on your system and you're not sure
2851# whether `pass_all' will *always* work, you probably want this one.
2852
2853case $host_os in
2854aix4* | aix5*)
2855 lt_cv_deplibs_check_method=pass_all
2856 ;;
2857
2858beos*)
2859 lt_cv_deplibs_check_method=pass_all
2860 ;;
2861
2862bsdi4*)
2863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2864 lt_cv_file_magic_cmd='/usr/bin/file -L'
2865 lt_cv_file_magic_test_file=/shlib/libc.so
2866 ;;
2867
a.rottmann9bc8b932004-02-29 15:18:31 +00002868cygwin*)
2869 # win32_libid is a shell function defined in ltmain.sh
2870 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2871 lt_cv_file_magic_cmd='win32_libid'
2872 ;;
2873
2874mingw* | pw32*)
2875 # Base MSYS/MinGW do not provide the 'file' command needed by
2876 # win32_libid shell function, so use a weaker test based on 'objdump'.
drh71eb93e2001-09-28 01:34:43 +00002877 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2878 lt_cv_file_magic_cmd='$OBJDUMP -f'
2879 ;;
2880
2881darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00002882 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00002883 ;;
2884
a.rottmann9bc8b932004-02-29 15:18:31 +00002885freebsd* | kfreebsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00002886 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2887 case $host_cpu in
2888 i*86 )
2889 # Not sure whether the presence of OpenBSD here was a mistake.
2890 # Let's accept both of them until this is cleared up.
2891 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2892 lt_cv_file_magic_cmd=/usr/bin/file
2893 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2894 ;;
2895 esac
2896 else
2897 lt_cv_deplibs_check_method=pass_all
2898 fi
2899 ;;
2900
2901gnu*)
2902 lt_cv_deplibs_check_method=pass_all
2903 ;;
2904
a.rottmann9bc8b932004-02-29 15:18:31 +00002905hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00002906 lt_cv_file_magic_cmd=/usr/bin/file
a.rottmann9bc8b932004-02-29 15:18:31 +00002907 case "$host_cpu" in
2908 ia64*)
2909 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2910 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2911 ;;
2912 hppa*64*)
2913 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]'
2914 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2915 ;;
2916 *)
2917 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2918 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2919 ;;
2920 esac
drh71eb93e2001-09-28 01:34:43 +00002921 ;;
2922
a.rottmann84e63352003-03-24 09:42:16 +00002923irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00002924 case $LD in
2925 *-32|*"-32 ") libmagic=32-bit;;
2926 *-n32|*"-n32 ") libmagic=N32;;
2927 *-64|*"-64 ") libmagic=64-bit;;
2928 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00002929 esac
drh71eb93e2001-09-28 01:34:43 +00002930 lt_cv_deplibs_check_method=pass_all
2931 ;;
2932
2933# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00002934linux*)
2935 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00002936 ;;
2937
a.rottmann9bc8b932004-02-29 15:18:31 +00002938netbsd* | knetbsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00002939 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00002940 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00002941 else
a.rottmann9bc8b932004-02-29 15:18:31 +00002942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00002943 fi
2944 ;;
2945
2946newos6*)
2947 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2948 lt_cv_file_magic_cmd=/usr/bin/file
2949 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2950 ;;
2951
a.rottmann9bc8b932004-02-29 15:18:31 +00002952nto-qnx*)
2953 lt_cv_deplibs_check_method=unknown
2954 ;;
2955
a.rottmann84e63352003-03-24 09:42:16 +00002956openbsd*)
2957 lt_cv_file_magic_cmd=/usr/bin/file
2958 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2959 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2960 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2961 else
2962 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2963 fi
drh71eb93e2001-09-28 01:34:43 +00002964 ;;
2965
2966osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00002967 lt_cv_deplibs_check_method=pass_all
2968 ;;
2969
2970sco3.2v5*)
2971 lt_cv_deplibs_check_method=pass_all
2972 ;;
2973
2974solaris*)
2975 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00002976 ;;
2977
drh71eb93e2001-09-28 01:34:43 +00002978sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2979 case $host_vendor in
2980 motorola)
2981 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]'
2982 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2983 ;;
2984 ncr)
2985 lt_cv_deplibs_check_method=pass_all
2986 ;;
2987 sequent)
2988 lt_cv_file_magic_cmd='/bin/file'
2989 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2990 ;;
2991 sni)
2992 lt_cv_file_magic_cmd='/bin/file'
2993 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2994 lt_cv_file_magic_test_file=/lib/libc.so
2995 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002996 siemens)
2997 lt_cv_deplibs_check_method=pass_all
2998 ;;
drh71eb93e2001-09-28 01:34:43 +00002999 esac
3000 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00003001
3002sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3003 lt_cv_deplibs_check_method=pass_all
3004 ;;
drh71eb93e2001-09-28 01:34:43 +00003005esac
3006
3007fi
a.rottmann84e63352003-03-24 09:42:16 +00003008echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
drh71eb93e2001-09-28 01:34:43 +00003009echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3010file_magic_cmd=$lt_cv_file_magic_cmd
3011deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00003012test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00003013
drh71eb93e2001-09-28 01:34:43 +00003014
drh71eb93e2001-09-28 01:34:43 +00003015
drh71eb93e2001-09-28 01:34:43 +00003016
a.rottmann9bc8b932004-02-29 15:18:31 +00003017# If no C compiler was specified, use CC.
3018LTCC=${LTCC-"$CC"}
3019
3020# Allow CC to be a program name with arguments.
3021compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00003022
drh71eb93e2001-09-28 01:34:43 +00003023
a.rottmann9bc8b932004-02-29 15:18:31 +00003024# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3025if test "${enable_libtool_lock+set}" = set; then
3026 enableval="$enable_libtool_lock"
drh71eb93e2001-09-28 01:34:43 +00003027
a.rottmann9bc8b932004-02-29 15:18:31 +00003028fi;
3029test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00003030
a.rottmann9bc8b932004-02-29 15:18:31 +00003031# Some flags need to be propagated to the compiler or linker for good
3032# libtool support.
3033case $host in
3034ia64-*-hpux*)
3035 # Find out which ABI we are using.
3036 echo 'int i;' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00003038 (eval $ac_compile) 2>&5
3039 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00003041 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003042 case `/usr/bin/file conftest.$ac_objext` in
3043 *ELF-32*)
3044 HPUX_IA64_MODE="32"
3045 ;;
3046 *ELF-64*)
3047 HPUX_IA64_MODE="64"
3048 ;;
3049 esac
3050 fi
3051 rm -rf conftest*
3052 ;;
3053*-*-irix6*)
3054 # Find out which ABI we are using.
dougcurrie0f290bf2004-06-21 18:57:29 +00003055 echo '#line 3055 "configure"' > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00003056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3057 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00003058 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003060 (exit $ac_status); }; then
3061 if test "$lt_cv_prog_gnu_ld" = yes; then
3062 case `/usr/bin/file conftest.$ac_objext` in
3063 *32-bit*)
3064 LD="${LD-ld} -melf32bsmip"
3065 ;;
3066 *N32*)
3067 LD="${LD-ld} -melf32bmipn32"
3068 ;;
3069 *64-bit*)
3070 LD="${LD-ld} -melf64bmip"
3071 ;;
3072 esac
3073 else
3074 case `/usr/bin/file conftest.$ac_objext` in
3075 *32-bit*)
3076 LD="${LD-ld} -32"
3077 ;;
3078 *N32*)
3079 LD="${LD-ld} -n32"
3080 ;;
3081 *64-bit*)
3082 LD="${LD-ld} -64"
3083 ;;
3084 esac
3085 fi
3086 fi
3087 rm -rf conftest*
3088 ;;
drh71eb93e2001-09-28 01:34:43 +00003089
a.rottmann9bc8b932004-02-29 15:18:31 +00003090x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3091 # Find out which ABI we are using.
3092 echo 'int i;' > conftest.$ac_ext
3093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3094 (eval $ac_compile) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; then
3098 case "`/usr/bin/file conftest.o`" in
3099 *32-bit*)
3100 case $host in
3101 x86_64-*linux*)
3102 LD="${LD-ld} -m elf_i386"
3103 ;;
3104 ppc64-*linux*|powerpc64-*linux*)
3105 LD="${LD-ld} -m elf32ppclinux"
3106 ;;
3107 s390x-*linux*)
3108 LD="${LD-ld} -m elf_s390"
3109 ;;
3110 sparc64-*linux*)
3111 LD="${LD-ld} -m elf32_sparc"
3112 ;;
3113 esac
3114 ;;
3115 *64-bit*)
3116 case $host in
3117 x86_64-*linux*)
3118 LD="${LD-ld} -m elf_x86_64"
3119 ;;
3120 ppc*-*linux*|powerpc*-*linux*)
3121 LD="${LD-ld} -m elf64ppc"
3122 ;;
3123 s390*-*linux*)
3124 LD="${LD-ld} -m elf64_s390"
3125 ;;
3126 sparc*-*linux*)
3127 LD="${LD-ld} -m elf64_sparc"
3128 ;;
3129 esac
3130 ;;
3131 esac
3132 fi
3133 rm -rf conftest*
3134 ;;
drh71eb93e2001-09-28 01:34:43 +00003135
a.rottmann9bc8b932004-02-29 15:18:31 +00003136*-*-sco3.2v5*)
3137 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3138 SAVE_CFLAGS="$CFLAGS"
3139 CFLAGS="$CFLAGS -belf"
3140 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3141echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3142if test "${lt_cv_cc_needs_belf+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3144else
3145 ac_ext=c
3146ac_cpp='$CPP $CPPFLAGS'
3147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3149ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00003150
a.rottmann9bc8b932004-02-29 15:18:31 +00003151 cat >conftest.$ac_ext <<_ACEOF
3152/* confdefs.h. */
3153_ACEOF
3154cat confdefs.h >>conftest.$ac_ext
3155cat >>conftest.$ac_ext <<_ACEOF
3156/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003157
a.rottmann9bc8b932004-02-29 15:18:31 +00003158int
3159main ()
drh71eb93e2001-09-28 01:34:43 +00003160{
drh71eb93e2001-09-28 01:34:43 +00003161
a.rottmann9bc8b932004-02-29 15:18:31 +00003162 ;
3163 return 0;
drh71eb93e2001-09-28 01:34:43 +00003164}
a.rottmann9bc8b932004-02-29 15:18:31 +00003165_ACEOF
3166rm -f conftest.$ac_objext conftest$ac_exeext
3167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3168 (eval $ac_link) 2>conftest.er1
3169 ac_status=$?
3170 grep -v '^ *+' conftest.er1 >conftest.err
3171 rm -f conftest.er1
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003175 { ac_try='test -z "$ac_c_werror_flag"
3176 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00003177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 (eval $ac_try) 2>&5
drh71eb93e2001-09-28 01:34:43 +00003179 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003181 (exit $ac_status); }; } &&
3182 { ac_try='test -s conftest$ac_exeext'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 (eval $ac_try) 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
3188 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00003189else
a.rottmann9bc8b932004-02-29 15:18:31 +00003190 echo "$as_me: failed program was:" >&5
3191sed 's/^/| /' conftest.$ac_ext >&5
3192
3193lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00003194fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003195rm -f conftest.err conftest.$ac_objext \
3196 conftest$ac_exeext conftest.$ac_ext
3197 ac_ext=c
3198ac_cpp='$CPP $CPPFLAGS'
3199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202
drh71eb93e2001-09-28 01:34:43 +00003203fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003204echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3205echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3206 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3207 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3208 CFLAGS="$SAVE_CFLAGS"
3209 fi
3210 ;;
3211
3212esac
3213
3214need_locks="$enable_libtool_lock"
3215
drh71eb93e2001-09-28 01:34:43 +00003216
a.rottmann84e63352003-03-24 09:42:16 +00003217ac_ext=c
3218ac_cpp='$CPP $CPPFLAGS'
3219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221ac_compiler_gnu=$ac_cv_c_compiler_gnu
3222echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3223echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3224# On Suns, sometimes $CPP names a directory.
3225if test -n "$CPP" && test -d "$CPP"; then
3226 CPP=
3227fi
3228if test -z "$CPP"; then
3229 if test "${ac_cv_prog_CPP+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003230 echo $ECHO_N "(cached) $ECHO_C" >&6
3231else
a.rottmann84e63352003-03-24 09:42:16 +00003232 # Double quotes because CPP needs to be expanded
3233 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3234 do
3235 ac_preproc_ok=false
3236for ac_c_preproc_warn_flag in '' yes
3237do
3238 # Use a header file that comes with gcc, so configuring glibc
3239 # with a fresh cross-compiler works.
3240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3241 # <limits.h> exists even on freestanding compilers.
3242 # On the NeXT, cc -E runs the code through the compiler's parser,
3243 # not just through cpp. "Syntax error" is here to catch this case.
3244 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003245/* confdefs.h. */
3246_ACEOF
3247cat confdefs.h >>conftest.$ac_ext
3248cat >>conftest.$ac_ext <<_ACEOF
3249/* end confdefs.h. */
3250#ifdef __STDC__
3251# include <limits.h>
3252#else
3253# include <assert.h>
3254#endif
a.rottmann964dbb12004-02-26 19:47:42 +00003255 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00003256_ACEOF
3257if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3259 ac_status=$?
3260 grep -v '^ *+' conftest.er1 >conftest.err
3261 rm -f conftest.er1
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } >/dev/null; then
3265 if test -s conftest.err; then
3266 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003268 else
3269 ac_cpp_err=
drh71eb93e2001-09-28 01:34:43 +00003270 fi
a.rottmann84e63352003-03-24 09:42:16 +00003271else
3272 ac_cpp_err=yes
3273fi
3274if test -z "$ac_cpp_err"; then
3275 :
3276else
3277 echo "$as_me: failed program was:" >&5
3278sed 's/^/| /' conftest.$ac_ext >&5
3279
3280 # Broken: fails on valid input.
3281continue
3282fi
3283rm -f conftest.err conftest.$ac_ext
3284
3285 # OK, works on sane cases. Now check whether non-existent headers
3286 # can be detected and how.
3287 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003288/* confdefs.h. */
3289_ACEOF
3290cat confdefs.h >>conftest.$ac_ext
3291cat >>conftest.$ac_ext <<_ACEOF
3292/* end confdefs.h. */
3293#include <ac_nonexistent.h>
3294_ACEOF
3295if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3297 ac_status=$?
3298 grep -v '^ *+' conftest.er1 >conftest.err
3299 rm -f conftest.er1
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } >/dev/null; then
3303 if test -s conftest.err; then
3304 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003306 else
3307 ac_cpp_err=
3308 fi
3309else
3310 ac_cpp_err=yes
3311fi
3312if test -z "$ac_cpp_err"; then
3313 # Broken: success on invalid input.
3314continue
3315else
3316 echo "$as_me: failed program was:" >&5
3317sed 's/^/| /' conftest.$ac_ext >&5
3318
3319 # Passes both tests.
3320ac_preproc_ok=:
3321break
3322fi
3323rm -f conftest.err conftest.$ac_ext
3324
3325done
3326# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3327rm -f conftest.err conftest.$ac_ext
3328if $ac_preproc_ok; then
3329 break
3330fi
3331
3332 done
3333 ac_cv_prog_CPP=$CPP
3334
3335fi
3336 CPP=$ac_cv_prog_CPP
3337else
3338 ac_cv_prog_CPP=$CPP
3339fi
3340echo "$as_me:$LINENO: result: $CPP" >&5
3341echo "${ECHO_T}$CPP" >&6
3342ac_preproc_ok=false
3343for ac_c_preproc_warn_flag in '' yes
3344do
3345 # Use a header file that comes with gcc, so configuring glibc
3346 # with a fresh cross-compiler works.
3347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3348 # <limits.h> exists even on freestanding compilers.
3349 # On the NeXT, cc -E runs the code through the compiler's parser,
3350 # not just through cpp. "Syntax error" is here to catch this case.
3351 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003352/* confdefs.h. */
3353_ACEOF
3354cat confdefs.h >>conftest.$ac_ext
3355cat >>conftest.$ac_ext <<_ACEOF
3356/* end confdefs.h. */
3357#ifdef __STDC__
3358# include <limits.h>
3359#else
3360# include <assert.h>
3361#endif
a.rottmann964dbb12004-02-26 19:47:42 +00003362 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00003363_ACEOF
3364if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3366 ac_status=$?
3367 grep -v '^ *+' conftest.er1 >conftest.err
3368 rm -f conftest.er1
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } >/dev/null; then
3372 if test -s conftest.err; then
3373 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003375 else
3376 ac_cpp_err=
3377 fi
3378else
3379 ac_cpp_err=yes
3380fi
3381if test -z "$ac_cpp_err"; then
3382 :
3383else
3384 echo "$as_me: failed program was:" >&5
3385sed 's/^/| /' conftest.$ac_ext >&5
3386
3387 # Broken: fails on valid input.
3388continue
3389fi
3390rm -f conftest.err conftest.$ac_ext
3391
3392 # OK, works on sane cases. Now check whether non-existent headers
3393 # can be detected and how.
3394 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003395/* confdefs.h. */
3396_ACEOF
3397cat confdefs.h >>conftest.$ac_ext
3398cat >>conftest.$ac_ext <<_ACEOF
3399/* end confdefs.h. */
3400#include <ac_nonexistent.h>
3401_ACEOF
3402if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3404 ac_status=$?
3405 grep -v '^ *+' conftest.er1 >conftest.err
3406 rm -f conftest.er1
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } >/dev/null; then
3410 if test -s conftest.err; then
3411 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003413 else
3414 ac_cpp_err=
3415 fi
3416else
3417 ac_cpp_err=yes
3418fi
3419if test -z "$ac_cpp_err"; then
3420 # Broken: success on invalid input.
3421continue
3422else
3423 echo "$as_me: failed program was:" >&5
3424sed 's/^/| /' conftest.$ac_ext >&5
3425
3426 # Passes both tests.
3427ac_preproc_ok=:
3428break
3429fi
3430rm -f conftest.err conftest.$ac_ext
3431
3432done
3433# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3434rm -f conftest.err conftest.$ac_ext
3435if $ac_preproc_ok; then
3436 :
3437else
3438 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3439See \`config.log' for more details." >&5
3440echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3441See \`config.log' for more details." >&2;}
3442 { (exit 1); exit 1; }; }
3443fi
3444
3445ac_ext=c
3446ac_cpp='$CPP $CPPFLAGS'
3447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449ac_compiler_gnu=$ac_cv_c_compiler_gnu
3450
3451
a.rottmann84e63352003-03-24 09:42:16 +00003452echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3453echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3454if test "${ac_cv_header_stdc+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3456else
3457 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003458/* confdefs.h. */
3459_ACEOF
3460cat confdefs.h >>conftest.$ac_ext
3461cat >>conftest.$ac_ext <<_ACEOF
3462/* end confdefs.h. */
3463#include <stdlib.h>
3464#include <stdarg.h>
3465#include <string.h>
3466#include <float.h>
3467
3468int
3469main ()
3470{
3471
3472 ;
3473 return 0;
3474}
3475_ACEOF
3476rm -f conftest.$ac_objext
3477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003478 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003479 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003485 { ac_try='test -z "$ac_c_werror_flag"
3486 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00003487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 (eval $ac_try) 2>&5
3489 ac_status=$?
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; } &&
3492 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494 (eval $ac_try) 2>&5
3495 ac_status=$?
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }; }; then
3498 ac_cv_header_stdc=yes
3499else
3500 echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
3503ac_cv_header_stdc=no
3504fi
a.rottmann964dbb12004-02-26 19:47:42 +00003505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003506
3507if test $ac_cv_header_stdc = yes; then
3508 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3509 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003510/* confdefs.h. */
3511_ACEOF
3512cat confdefs.h >>conftest.$ac_ext
3513cat >>conftest.$ac_ext <<_ACEOF
3514/* end confdefs.h. */
3515#include <string.h>
3516
3517_ACEOF
3518if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3519 $EGREP "memchr" >/dev/null 2>&1; then
3520 :
3521else
3522 ac_cv_header_stdc=no
3523fi
3524rm -f conftest*
3525
3526fi
3527
3528if test $ac_cv_header_stdc = yes; then
3529 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3530 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003531/* confdefs.h. */
3532_ACEOF
3533cat confdefs.h >>conftest.$ac_ext
3534cat >>conftest.$ac_ext <<_ACEOF
3535/* end confdefs.h. */
3536#include <stdlib.h>
3537
3538_ACEOF
3539if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3540 $EGREP "free" >/dev/null 2>&1; then
3541 :
3542else
3543 ac_cv_header_stdc=no
3544fi
3545rm -f conftest*
3546
3547fi
3548
3549if test $ac_cv_header_stdc = yes; then
3550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3551 if test "$cross_compiling" = yes; then
3552 :
3553else
3554 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003555/* confdefs.h. */
3556_ACEOF
3557cat confdefs.h >>conftest.$ac_ext
3558cat >>conftest.$ac_ext <<_ACEOF
3559/* end confdefs.h. */
3560#include <ctype.h>
3561#if ((' ' & 0x0FF) == 0x020)
3562# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3563# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3564#else
3565# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00003566 (('a' <= (c) && (c) <= 'i') \
3567 || ('j' <= (c) && (c) <= 'r') \
3568 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00003569# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3570#endif
3571
3572#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3573int
3574main ()
3575{
3576 int i;
3577 for (i = 0; i < 256; i++)
3578 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00003579 || toupper (i) != TOUPPER (i))
a.rottmann84e63352003-03-24 09:42:16 +00003580 exit(2);
3581 exit (0);
3582}
3583_ACEOF
3584rm -f conftest$ac_exeext
3585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3586 (eval $ac_link) 2>&5
3587 ac_status=$?
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 (eval $ac_try) 2>&5
3592 ac_status=$?
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; }; then
3595 :
3596else
3597 echo "$as_me: program exited with status $ac_status" >&5
3598echo "$as_me: failed program was:" >&5
3599sed 's/^/| /' conftest.$ac_ext >&5
3600
3601( exit $ac_status )
3602ac_cv_header_stdc=no
3603fi
a.rottmann964dbb12004-02-26 19:47:42 +00003604rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003605fi
3606fi
3607fi
3608echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3609echo "${ECHO_T}$ac_cv_header_stdc" >&6
3610if test $ac_cv_header_stdc = yes; then
3611
3612cat >>confdefs.h <<\_ACEOF
3613#define STDC_HEADERS 1
3614_ACEOF
3615
3616fi
3617
3618# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00003629 inttypes.h stdint.h unistd.h
a.rottmann84e63352003-03-24 09:42:16 +00003630do
3631as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3632echo "$as_me:$LINENO: checking for $ac_header" >&5
3633echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3634if eval "test \"\${$as_ac_Header+set}\" = set"; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3636else
3637 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003638/* confdefs.h. */
3639_ACEOF
3640cat confdefs.h >>conftest.$ac_ext
3641cat >>conftest.$ac_ext <<_ACEOF
3642/* end confdefs.h. */
3643$ac_includes_default
3644
3645#include <$ac_header>
3646_ACEOF
3647rm -f conftest.$ac_objext
3648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003649 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003650 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003651 grep -v '^ *+' conftest.er1 >conftest.err
3652 rm -f conftest.er1
3653 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003656 { ac_try='test -z "$ac_c_werror_flag"
3657 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00003658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 (eval $ac_try) 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; } &&
3663 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 (eval $ac_try) 2>&5
3666 ac_status=$?
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3669 eval "$as_ac_Header=yes"
3670else
3671 echo "$as_me: failed program was:" >&5
3672sed 's/^/| /' conftest.$ac_ext >&5
3673
3674eval "$as_ac_Header=no"
3675fi
a.rottmann964dbb12004-02-26 19:47:42 +00003676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003677fi
3678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3679echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3680if test `eval echo '${'$as_ac_Header'}'` = yes; then
3681 cat >>confdefs.h <<_ACEOF
3682#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3683_ACEOF
3684
3685fi
3686
3687done
3688
3689
3690
3691for ac_header in dlfcn.h
3692do
3693as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3694if eval "test \"\${$as_ac_Header+set}\" = set"; then
3695 echo "$as_me:$LINENO: checking for $ac_header" >&5
3696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3697if eval "test \"\${$as_ac_Header+set}\" = set"; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3699fi
3700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3702else
3703 # Is the header compilable?
3704echo "$as_me:$LINENO: checking $ac_header usability" >&5
3705echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3706cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003707/* confdefs.h. */
3708_ACEOF
3709cat confdefs.h >>conftest.$ac_ext
3710cat >>conftest.$ac_ext <<_ACEOF
3711/* end confdefs.h. */
3712$ac_includes_default
3713#include <$ac_header>
3714_ACEOF
3715rm -f conftest.$ac_objext
3716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003717 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003718 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003719 grep -v '^ *+' conftest.er1 >conftest.err
3720 rm -f conftest.er1
3721 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003724 { ac_try='test -z "$ac_c_werror_flag"
3725 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00003726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 (eval $ac_try) 2>&5
3728 ac_status=$?
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; } &&
3731 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 (eval $ac_try) 2>&5
3734 ac_status=$?
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; }; then
3737 ac_header_compiler=yes
3738else
3739 echo "$as_me: failed program was:" >&5
3740sed 's/^/| /' conftest.$ac_ext >&5
3741
3742ac_header_compiler=no
3743fi
a.rottmann964dbb12004-02-26 19:47:42 +00003744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003745echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3746echo "${ECHO_T}$ac_header_compiler" >&6
3747
3748# Is the header present?
3749echo "$as_me:$LINENO: checking $ac_header presence" >&5
3750echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3751cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003752/* confdefs.h. */
3753_ACEOF
3754cat confdefs.h >>conftest.$ac_ext
3755cat >>conftest.$ac_ext <<_ACEOF
3756/* end confdefs.h. */
3757#include <$ac_header>
3758_ACEOF
3759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3761 ac_status=$?
3762 grep -v '^ *+' conftest.er1 >conftest.err
3763 rm -f conftest.er1
3764 cat conftest.err >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } >/dev/null; then
3767 if test -s conftest.err; then
3768 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003770 else
3771 ac_cpp_err=
3772 fi
3773else
3774 ac_cpp_err=yes
3775fi
3776if test -z "$ac_cpp_err"; then
3777 ac_header_preproc=yes
3778else
3779 echo "$as_me: failed program was:" >&5
3780sed 's/^/| /' conftest.$ac_ext >&5
3781
3782 ac_header_preproc=no
3783fi
3784rm -f conftest.err conftest.$ac_ext
3785echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3786echo "${ECHO_T}$ac_header_preproc" >&6
3787
3788# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +00003789case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3790 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +00003791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3792echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3794echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3795 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +00003796 ;;
a.rottmann964dbb12004-02-26 19:47:42 +00003797 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +00003798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3799echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3801echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3802 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3803echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3804 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3805echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00003806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3807echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003808 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3809echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00003810 (
3811 cat <<\_ASBOX
a.rottmann964dbb12004-02-26 19:47:42 +00003812## ------------------------------------------ ##
3813## Report this to the AC_PACKAGE_NAME lists. ##
3814## ------------------------------------------ ##
a.rottmann84e63352003-03-24 09:42:16 +00003815_ASBOX
3816 ) |
3817 sed "s/^/$as_me: WARNING: /" >&2
3818 ;;
drh71eb93e2001-09-28 01:34:43 +00003819esac
a.rottmann84e63352003-03-24 09:42:16 +00003820echo "$as_me:$LINENO: checking for $ac_header" >&5
3821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3822if eval "test \"\${$as_ac_Header+set}\" = set"; then
drh71eb93e2001-09-28 01:34:43 +00003823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824else
a.rottmann964dbb12004-02-26 19:47:42 +00003825 eval "$as_ac_Header=\$ac_header_preproc"
a.rottmann84e63352003-03-24 09:42:16 +00003826fi
3827echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3828echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3829
3830fi
3831if test `eval echo '${'$as_ac_Header'}'` = yes; then
3832 cat >>confdefs.h <<_ACEOF
3833#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3834_ACEOF
3835
3836fi
3837
drh71eb93e2001-09-28 01:34:43 +00003838done
3839
a.rottmann9bc8b932004-02-29 15:18:31 +00003840ac_ext=cc
3841ac_cpp='$CXXCPP $CPPFLAGS'
3842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3845if test -n "$ac_tool_prefix"; then
3846 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3847 do
3848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3849set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3850echo "$as_me:$LINENO: checking for $ac_word" >&5
3851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3852if test "${ac_cv_prog_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003853 echo $ECHO_N "(cached) $ECHO_C" >&6
3854else
a.rottmann9bc8b932004-02-29 15:18:31 +00003855 if test -n "$CXX"; then
3856 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3857else
3858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859for as_dir in $PATH
3860do
3861 IFS=$as_save_IFS
3862 test -z "$as_dir" && as_dir=.
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3865 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 break 2
3868 fi
3869done
3870done
drh71eb93e2001-09-28 01:34:43 +00003871
drh71eb93e2001-09-28 01:34:43 +00003872fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003873fi
3874CXX=$ac_cv_prog_CXX
3875if test -n "$CXX"; then
3876 echo "$as_me:$LINENO: result: $CXX" >&5
3877echo "${ECHO_T}$CXX" >&6
drh71eb93e2001-09-28 01:34:43 +00003878else
a.rottmann84e63352003-03-24 09:42:16 +00003879 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00003880echo "${ECHO_T}no" >&6
3881fi
3882
a.rottmann9bc8b932004-02-29 15:18:31 +00003883 test -n "$CXX" && break
3884 done
3885fi
3886if test -z "$CXX"; then
3887 ac_ct_CXX=$CXX
3888 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3889do
3890 # Extract the first word of "$ac_prog", so it can be a program name with args.
3891set dummy $ac_prog; ac_word=$2
3892echo "$as_me:$LINENO: checking for $ac_word" >&5
3893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3894if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003895 echo $ECHO_N "(cached) $ECHO_C" >&6
3896else
a.rottmann9bc8b932004-02-29 15:18:31 +00003897 if test -n "$ac_ct_CXX"; then
3898 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3899else
3900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901for as_dir in $PATH
3902do
3903 IFS=$as_save_IFS
3904 test -z "$as_dir" && as_dir=.
3905 for ac_exec_ext in '' $ac_executable_extensions; do
3906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3907 ac_cv_prog_ac_ct_CXX="$ac_prog"
3908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 break 2
3910 fi
3911done
3912done
drh71eb93e2001-09-28 01:34:43 +00003913
drh71eb93e2001-09-28 01:34:43 +00003914fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003915fi
3916ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3917if test -n "$ac_ct_CXX"; then
3918 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3919echo "${ECHO_T}$ac_ct_CXX" >&6
drh71eb93e2001-09-28 01:34:43 +00003920else
a.rottmann84e63352003-03-24 09:42:16 +00003921 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00003922echo "${ECHO_T}no" >&6
3923fi
3924
a.rottmann9bc8b932004-02-29 15:18:31 +00003925 test -n "$ac_ct_CXX" && break
3926done
3927test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3928
3929 CXX=$ac_ct_CXX
3930fi
3931
3932
3933# Provide some information about the compiler.
3934echo "$as_me:$LINENO:" \
3935 "checking for C++ compiler version" >&5
3936ac_compiler=`set X $ac_compile; echo $2`
3937{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3938 (eval $ac_compiler --version </dev/null >&5) 2>&5
3939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }
3942{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3943 (eval $ac_compiler -v </dev/null >&5) 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }
3947{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3948 (eval $ac_compiler -V </dev/null >&5) 2>&5
3949 ac_status=$?
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }
3952
3953echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3954echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3955if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957else
3958 cat >conftest.$ac_ext <<_ACEOF
3959/* confdefs.h. */
3960_ACEOF
3961cat confdefs.h >>conftest.$ac_ext
3962cat >>conftest.$ac_ext <<_ACEOF
3963/* end confdefs.h. */
3964
3965int
3966main ()
3967{
3968#ifndef __GNUC__
3969 choke me
3970#endif
3971
3972 ;
3973 return 0;
3974}
3975_ACEOF
3976rm -f conftest.$ac_objext
3977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3978 (eval $ac_compile) 2>conftest.er1
3979 ac_status=$?
3980 grep -v '^ *+' conftest.er1 >conftest.err
3981 rm -f conftest.er1
3982 cat conftest.err >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003985 { ac_try='test -z "$ac_cxx_werror_flag"
3986 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00003987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 (eval $ac_try) 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; } &&
3992 { ac_try='test -s conftest.$ac_objext'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 (eval $ac_try) 2>&5
3995 ac_status=$?
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
3998 ac_compiler_gnu=yes
3999else
4000 echo "$as_me: failed program was:" >&5
4001sed 's/^/| /' conftest.$ac_ext >&5
4002
4003ac_compiler_gnu=no
4004fi
4005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4006ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4007
4008fi
4009echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4010echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4011GXX=`test $ac_compiler_gnu = yes && echo yes`
4012ac_test_CXXFLAGS=${CXXFLAGS+set}
4013ac_save_CXXFLAGS=$CXXFLAGS
4014CXXFLAGS="-g"
4015echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4016echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4017if test "${ac_cv_prog_cxx_g+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019else
4020 cat >conftest.$ac_ext <<_ACEOF
4021/* confdefs.h. */
4022_ACEOF
4023cat confdefs.h >>conftest.$ac_ext
4024cat >>conftest.$ac_ext <<_ACEOF
4025/* end confdefs.h. */
4026
4027int
4028main ()
4029{
4030
4031 ;
4032 return 0;
4033}
4034_ACEOF
4035rm -f conftest.$ac_objext
4036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4037 (eval $ac_compile) 2>conftest.er1
4038 ac_status=$?
4039 grep -v '^ *+' conftest.er1 >conftest.err
4040 rm -f conftest.er1
4041 cat conftest.err >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004044 { ac_try='test -z "$ac_cxx_werror_flag"
4045 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 (eval $ac_try) 2>&5
4048 ac_status=$?
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; } &&
4051 { ac_try='test -s conftest.$ac_objext'
4052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053 (eval $ac_try) 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
4057 ac_cv_prog_cxx_g=yes
4058else
4059 echo "$as_me: failed program was:" >&5
4060sed 's/^/| /' conftest.$ac_ext >&5
4061
4062ac_cv_prog_cxx_g=no
4063fi
4064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4065fi
4066echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4067echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4068if test "$ac_test_CXXFLAGS" = set; then
4069 CXXFLAGS=$ac_save_CXXFLAGS
4070elif test $ac_cv_prog_cxx_g = yes; then
4071 if test "$GXX" = yes; then
4072 CXXFLAGS="-g -O2"
drh71eb93e2001-09-28 01:34:43 +00004073 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004074 CXXFLAGS="-g"
4075 fi
4076else
4077 if test "$GXX" = yes; then
4078 CXXFLAGS="-O2"
4079 else
4080 CXXFLAGS=
4081 fi
4082fi
4083for ac_declaration in \
4084 '' \
4085 'extern "C" void std::exit (int) throw (); using std::exit;' \
4086 'extern "C" void std::exit (int); using std::exit;' \
4087 'extern "C" void exit (int) throw ();' \
4088 'extern "C" void exit (int);' \
4089 'void exit (int);'
4090do
4091 cat >conftest.$ac_ext <<_ACEOF
4092/* confdefs.h. */
4093_ACEOF
4094cat confdefs.h >>conftest.$ac_ext
4095cat >>conftest.$ac_ext <<_ACEOF
4096/* end confdefs.h. */
4097$ac_declaration
4098#include <stdlib.h>
4099int
4100main ()
4101{
4102exit (42);
4103 ;
4104 return 0;
4105}
4106_ACEOF
4107rm -f conftest.$ac_objext
4108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109 (eval $ac_compile) 2>conftest.er1
4110 ac_status=$?
4111 grep -v '^ *+' conftest.er1 >conftest.err
4112 rm -f conftest.er1
4113 cat conftest.err >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004116 { ac_try='test -z "$ac_cxx_werror_flag"
4117 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 (eval $ac_try) 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; } &&
4123 { ac_try='test -s conftest.$ac_objext'
4124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125 (eval $ac_try) 2>&5
4126 ac_status=$?
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 :
4130else
4131 echo "$as_me: failed program was:" >&5
4132sed 's/^/| /' conftest.$ac_ext >&5
4133
4134continue
4135fi
4136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4137 cat >conftest.$ac_ext <<_ACEOF
4138/* confdefs.h. */
4139_ACEOF
4140cat confdefs.h >>conftest.$ac_ext
4141cat >>conftest.$ac_ext <<_ACEOF
4142/* end confdefs.h. */
4143$ac_declaration
4144int
4145main ()
4146{
4147exit (42);
4148 ;
4149 return 0;
4150}
4151_ACEOF
4152rm -f conftest.$ac_objext
4153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4154 (eval $ac_compile) 2>conftest.er1
4155 ac_status=$?
4156 grep -v '^ *+' conftest.er1 >conftest.err
4157 rm -f conftest.er1
4158 cat conftest.err >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004161 { ac_try='test -z "$ac_cxx_werror_flag"
4162 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164 (eval $ac_try) 2>&5
4165 ac_status=$?
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; } &&
4168 { ac_try='test -s conftest.$ac_objext'
4169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 (eval $ac_try) 2>&5
4171 ac_status=$?
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; }; then
4174 break
4175else
4176 echo "$as_me: failed program was:" >&5
4177sed 's/^/| /' conftest.$ac_ext >&5
4178
4179fi
4180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4181done
4182rm -f conftest*
4183if test -n "$ac_declaration"; then
4184 echo '#ifdef __cplusplus' >>confdefs.h
4185 echo $ac_declaration >>confdefs.h
4186 echo '#endif' >>confdefs.h
4187fi
4188
4189ac_ext=cc
4190ac_cpp='$CXXCPP $CPPFLAGS'
4191ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4194
4195ac_ext=cc
4196ac_cpp='$CXXCPP $CPPFLAGS'
4197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4200echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4201echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4202if test -z "$CXXCPP"; then
4203 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4205else
4206 # Double quotes because CXXCPP needs to be expanded
4207 for CXXCPP in "$CXX -E" "/lib/cpp"
4208 do
4209 ac_preproc_ok=false
4210for ac_cxx_preproc_warn_flag in '' yes
4211do
4212 # Use a header file that comes with gcc, so configuring glibc
4213 # with a fresh cross-compiler works.
4214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4215 # <limits.h> exists even on freestanding compilers.
4216 # On the NeXT, cc -E runs the code through the compiler's parser,
4217 # not just through cpp. "Syntax error" is here to catch this case.
4218 cat >conftest.$ac_ext <<_ACEOF
4219/* confdefs.h. */
4220_ACEOF
4221cat confdefs.h >>conftest.$ac_ext
4222cat >>conftest.$ac_ext <<_ACEOF
4223/* end confdefs.h. */
4224#ifdef __STDC__
4225# include <limits.h>
4226#else
4227# include <assert.h>
4228#endif
4229 Syntax error
4230_ACEOF
4231if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4233 ac_status=$?
4234 grep -v '^ *+' conftest.er1 >conftest.err
4235 rm -f conftest.er1
4236 cat conftest.err >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } >/dev/null; then
4239 if test -s conftest.err; then
4240 ac_cpp_err=$ac_cxx_preproc_warn_flag
4241 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4242 else
4243 ac_cpp_err=
4244 fi
4245else
4246 ac_cpp_err=yes
4247fi
4248if test -z "$ac_cpp_err"; then
4249 :
4250else
4251 echo "$as_me: failed program was:" >&5
4252sed 's/^/| /' conftest.$ac_ext >&5
4253
4254 # Broken: fails on valid input.
4255continue
4256fi
4257rm -f conftest.err conftest.$ac_ext
4258
4259 # OK, works on sane cases. Now check whether non-existent headers
4260 # can be detected and how.
4261 cat >conftest.$ac_ext <<_ACEOF
4262/* confdefs.h. */
4263_ACEOF
4264cat confdefs.h >>conftest.$ac_ext
4265cat >>conftest.$ac_ext <<_ACEOF
4266/* end confdefs.h. */
4267#include <ac_nonexistent.h>
4268_ACEOF
4269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4271 ac_status=$?
4272 grep -v '^ *+' conftest.er1 >conftest.err
4273 rm -f conftest.er1
4274 cat conftest.err >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } >/dev/null; then
4277 if test -s conftest.err; then
4278 ac_cpp_err=$ac_cxx_preproc_warn_flag
4279 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4280 else
4281 ac_cpp_err=
4282 fi
4283else
4284 ac_cpp_err=yes
4285fi
4286if test -z "$ac_cpp_err"; then
4287 # Broken: success on invalid input.
4288continue
4289else
4290 echo "$as_me: failed program was:" >&5
4291sed 's/^/| /' conftest.$ac_ext >&5
4292
4293 # Passes both tests.
4294ac_preproc_ok=:
4295break
4296fi
4297rm -f conftest.err conftest.$ac_ext
4298
4299done
4300# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4301rm -f conftest.err conftest.$ac_ext
4302if $ac_preproc_ok; then
4303 break
4304fi
4305
4306 done
4307 ac_cv_prog_CXXCPP=$CXXCPP
4308
4309fi
4310 CXXCPP=$ac_cv_prog_CXXCPP
4311else
4312 ac_cv_prog_CXXCPP=$CXXCPP
4313fi
4314echo "$as_me:$LINENO: result: $CXXCPP" >&5
4315echo "${ECHO_T}$CXXCPP" >&6
4316ac_preproc_ok=false
4317for ac_cxx_preproc_warn_flag in '' yes
4318do
4319 # Use a header file that comes with gcc, so configuring glibc
4320 # with a fresh cross-compiler works.
4321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4322 # <limits.h> exists even on freestanding compilers.
4323 # On the NeXT, cc -E runs the code through the compiler's parser,
4324 # not just through cpp. "Syntax error" is here to catch this case.
4325 cat >conftest.$ac_ext <<_ACEOF
4326/* confdefs.h. */
4327_ACEOF
4328cat confdefs.h >>conftest.$ac_ext
4329cat >>conftest.$ac_ext <<_ACEOF
4330/* end confdefs.h. */
4331#ifdef __STDC__
4332# include <limits.h>
4333#else
4334# include <assert.h>
4335#endif
4336 Syntax error
4337_ACEOF
4338if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4340 ac_status=$?
4341 grep -v '^ *+' conftest.er1 >conftest.err
4342 rm -f conftest.er1
4343 cat conftest.err >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } >/dev/null; then
4346 if test -s conftest.err; then
4347 ac_cpp_err=$ac_cxx_preproc_warn_flag
4348 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4349 else
4350 ac_cpp_err=
4351 fi
4352else
4353 ac_cpp_err=yes
4354fi
4355if test -z "$ac_cpp_err"; then
4356 :
4357else
4358 echo "$as_me: failed program was:" >&5
4359sed 's/^/| /' conftest.$ac_ext >&5
4360
4361 # Broken: fails on valid input.
4362continue
4363fi
4364rm -f conftest.err conftest.$ac_ext
4365
4366 # OK, works on sane cases. Now check whether non-existent headers
4367 # can be detected and how.
4368 cat >conftest.$ac_ext <<_ACEOF
4369/* confdefs.h. */
4370_ACEOF
4371cat confdefs.h >>conftest.$ac_ext
4372cat >>conftest.$ac_ext <<_ACEOF
4373/* end confdefs.h. */
4374#include <ac_nonexistent.h>
4375_ACEOF
4376if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4378 ac_status=$?
4379 grep -v '^ *+' conftest.er1 >conftest.err
4380 rm -f conftest.er1
4381 cat conftest.err >&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } >/dev/null; then
4384 if test -s conftest.err; then
4385 ac_cpp_err=$ac_cxx_preproc_warn_flag
4386 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4387 else
4388 ac_cpp_err=
4389 fi
4390else
4391 ac_cpp_err=yes
4392fi
4393if test -z "$ac_cpp_err"; then
4394 # Broken: success on invalid input.
4395continue
4396else
4397 echo "$as_me: failed program was:" >&5
4398sed 's/^/| /' conftest.$ac_ext >&5
4399
4400 # Passes both tests.
4401ac_preproc_ok=:
4402break
4403fi
4404rm -f conftest.err conftest.$ac_ext
4405
4406done
4407# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4408rm -f conftest.err conftest.$ac_ext
4409if $ac_preproc_ok; then
4410 :
4411else
4412 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4413See \`config.log' for more details." >&5
4414echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4415See \`config.log' for more details." >&2;}
4416 { (exit 1); exit 1; }; }
4417fi
4418
4419ac_ext=cc
4420ac_cpp='$CXXCPP $CPPFLAGS'
4421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4424
4425
4426ac_ext=f
4427ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4428ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4430if test -n "$ac_tool_prefix"; then
4431 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4432 do
4433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4434set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4435echo "$as_me:$LINENO: checking for $ac_word" >&5
4436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4437if test "${ac_cv_prog_F77+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4439else
4440 if test -n "$F77"; then
4441 ac_cv_prog_F77="$F77" # Let the user override the test.
4442else
4443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444for as_dir in $PATH
4445do
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4450 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4453 fi
4454done
4455done
4456
4457fi
4458fi
4459F77=$ac_cv_prog_F77
4460if test -n "$F77"; then
4461 echo "$as_me:$LINENO: result: $F77" >&5
4462echo "${ECHO_T}$F77" >&6
4463else
4464 echo "$as_me:$LINENO: result: no" >&5
4465echo "${ECHO_T}no" >&6
4466fi
4467
4468 test -n "$F77" && break
4469 done
4470fi
4471if test -z "$F77"; then
4472 ac_ct_F77=$F77
4473 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4474do
4475 # Extract the first word of "$ac_prog", so it can be a program name with args.
4476set dummy $ac_prog; ac_word=$2
4477echo "$as_me:$LINENO: checking for $ac_word" >&5
4478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4479if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4481else
4482 if test -n "$ac_ct_F77"; then
4483 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4484else
4485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486for as_dir in $PATH
4487do
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4492 ac_cv_prog_ac_ct_F77="$ac_prog"
4493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 break 2
4495 fi
4496done
4497done
4498
4499fi
4500fi
4501ac_ct_F77=$ac_cv_prog_ac_ct_F77
4502if test -n "$ac_ct_F77"; then
4503 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4504echo "${ECHO_T}$ac_ct_F77" >&6
4505else
4506 echo "$as_me:$LINENO: result: no" >&5
4507echo "${ECHO_T}no" >&6
4508fi
4509
4510 test -n "$ac_ct_F77" && break
4511done
4512
4513 F77=$ac_ct_F77
4514fi
4515
4516
4517# Provide some information about the compiler.
dougcurrie0f290bf2004-06-21 18:57:29 +00004518echo "$as_me:4518:" \
a.rottmann9bc8b932004-02-29 15:18:31 +00004519 "checking for Fortran 77 compiler version" >&5
4520ac_compiler=`set X $ac_compile; echo $2`
4521{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4522 (eval $ac_compiler --version </dev/null >&5) 2>&5
4523 ac_status=$?
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }
4526{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4527 (eval $ac_compiler -v </dev/null >&5) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }
4531{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4532 (eval $ac_compiler -V </dev/null >&5) 2>&5
4533 ac_status=$?
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }
4536rm -f a.out
4537
4538# If we don't use `.F' as extension, the preprocessor is not run on the
4539# input file. (Note that this only needs to work for GNU compilers.)
4540ac_save_ext=$ac_ext
4541ac_ext=F
4542echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4543echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4544if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546else
4547 cat >conftest.$ac_ext <<_ACEOF
4548 program main
4549#ifndef __GNUC__
4550 choke me
4551#endif
4552
4553 end
4554_ACEOF
4555rm -f conftest.$ac_objext
4556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4557 (eval $ac_compile) 2>conftest.er1
4558 ac_status=$?
4559 grep -v '^ *+' conftest.er1 >conftest.err
4560 rm -f conftest.er1
4561 cat conftest.err >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004564 { ac_try='test -z "$ac_f77_werror_flag"
4565 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 (eval $ac_try) 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; } &&
4571 { ac_try='test -s conftest.$ac_objext'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 (eval $ac_try) 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4577 ac_compiler_gnu=yes
4578else
4579 echo "$as_me: failed program was:" >&5
4580sed 's/^/| /' conftest.$ac_ext >&5
4581
4582ac_compiler_gnu=no
4583fi
4584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4585ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4586
4587fi
4588echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4589echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4590ac_ext=$ac_save_ext
4591ac_test_FFLAGS=${FFLAGS+set}
4592ac_save_FFLAGS=$FFLAGS
4593FFLAGS=
4594echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4595echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4596if test "${ac_cv_prog_f77_g+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598else
4599 FFLAGS=-g
4600cat >conftest.$ac_ext <<_ACEOF
4601 program main
4602
4603 end
4604_ACEOF
4605rm -f conftest.$ac_objext
4606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607 (eval $ac_compile) 2>conftest.er1
4608 ac_status=$?
4609 grep -v '^ *+' conftest.er1 >conftest.err
4610 rm -f conftest.er1
4611 cat conftest.err >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004614 { ac_try='test -z "$ac_f77_werror_flag"
4615 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest.$ac_objext'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 (eval $ac_try) 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 ac_cv_prog_f77_g=yes
4628else
4629 echo "$as_me: failed program was:" >&5
4630sed 's/^/| /' conftest.$ac_ext >&5
4631
4632ac_cv_prog_f77_g=no
4633fi
4634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4635
4636fi
4637echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4638echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4639if test "$ac_test_FFLAGS" = set; then
4640 FFLAGS=$ac_save_FFLAGS
4641elif test $ac_cv_prog_f77_g = yes; then
4642 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4643 FFLAGS="-g -O2"
4644 else
4645 FFLAGS="-g"
4646 fi
4647else
4648 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4649 FFLAGS="-O2"
4650 else
4651 FFLAGS=
drh71eb93e2001-09-28 01:34:43 +00004652 fi
4653fi
4654
a.rottmann9bc8b932004-02-29 15:18:31 +00004655G77=`test $ac_compiler_gnu = yes && echo yes`
4656ac_ext=c
4657ac_cpp='$CPP $CPPFLAGS'
4658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4660ac_compiler_gnu=$ac_cv_c_compiler_gnu
4661
4662
4663
4664# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4665
4666# find the maximum length of command line arguments
4667echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4668echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4669if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4671else
4672 i=0
4673 testring="ABCD"
4674
4675 case $build_os in
4676 msdosdjgpp*)
4677 # On DJGPP, this test can blow up pretty badly due to problems in libc
4678 # (any single argument exceeding 2000 bytes causes a buffer overrun
4679 # during glob expansion). Even if it were fixed, the result of this
4680 # check would be larger than it should be.
4681 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4682 ;;
4683
4684 gnu*)
4685 # Under GNU Hurd, this test is not required because there is
4686 # no limit to the length of command line arguments.
4687 # Libtool will interpret -1 as no limit whatsoever
4688 lt_cv_sys_max_cmd_len=-1;
4689 ;;
4690
4691 cygwin* | mingw*)
4692 # On Win9x/ME, this test blows up -- it succeeds, but takes
4693 # about 5 minutes as the teststring grows exponentially.
4694 # Worse, since 9x/ME are not pre-emptively multitasking,
4695 # you end up with a "frozen" computer, even though with patience
4696 # the test eventually succeeds (with a max line length of 256k).
4697 # Instead, let's just punt: use the minimum linelength reported by
4698 # all of the supported platforms: 8192 (on NT/2K/XP).
4699 lt_cv_sys_max_cmd_len=8192;
4700 ;;
4701
4702 amigaos*)
4703 # On AmigaOS with pdksh, this test takes hours, literally.
4704 # So we just punt and use a minimum line length of 8192.
4705 lt_cv_sys_max_cmd_len=8192;
4706 ;;
4707
4708 *)
4709 # If test is not a shell built-in, we'll probably end up computing a
4710 # maximum length that is only half of the actual maximum length, but
4711 # we can't tell.
4712 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4713 = "XX$testring") >/dev/null 2>&1 &&
4714 new_result=`expr "X$testring" : ".*" 2>&1` &&
4715 lt_cv_sys_max_cmd_len=$new_result &&
4716 test $i != 17 # 1/2 MB should be enough
4717 do
4718 i=`expr $i + 1`
4719 testring=$testring$testring
4720 done
4721 testring=
4722 # Add a significant safety factor because C++ compilers can tack on massive
4723 # amounts of additional arguments before passing them to the linker.
4724 # It appears as though 1/2 is a usable value.
4725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4726 ;;
4727 esac
4728
4729fi
4730
4731if test -n $lt_cv_sys_max_cmd_len ; then
4732 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4733echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4734else
4735 echo "$as_me:$LINENO: result: none" >&5
4736echo "${ECHO_T}none" >&6
4737fi
4738
4739
4740
4741
4742# Check for command to grab the raw symbol name followed by C symbol from nm.
4743echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4744echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4745if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747else
4748
4749# These are sane defaults that work on at least a few old systems.
4750# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4751
4752# Character class describing NM global symbol codes.
4753symcode='[BCDEGRST]'
4754
4755# Regexp to match symbols that can be accessed directly from C.
4756sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4757
4758# Transform the above into a raw symbol and a C symbol.
4759symxfrm='\1 \2\3 \3'
4760
4761# Transform an extracted symbol line into a proper C declaration
4762lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4763
4764# Transform an extracted symbol line into symbol name and symbol address
4765lt_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'"
4766
4767# Define system-specific variables.
4768case $host_os in
4769aix*)
4770 symcode='[BCDT]'
4771 ;;
4772cygwin* | mingw* | pw32*)
4773 symcode='[ABCDGISTW]'
4774 ;;
4775hpux*) # Its linker distinguishes data from code symbols
4776 if test "$host_cpu" = ia64; then
4777 symcode='[ABCDEGRST]'
4778 fi
4779 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4780 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'"
4781 ;;
4782irix* | nonstopux*)
4783 symcode='[BCDEGRST]'
4784 ;;
4785osf*)
4786 symcode='[BCDEGQRST]'
4787 ;;
4788solaris* | sysv5*)
4789 symcode='[BDRT]'
4790 ;;
4791sysv4)
4792 symcode='[DFNSTU]'
4793 ;;
4794esac
4795
4796# Handle CRLF in mingw tool chain
4797opt_cr=
4798case $build_os in
4799mingw*)
4800 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4801 ;;
4802esac
4803
4804# If we're using GNU nm, then use its standard symbol codes.
4805case `$NM -V 2>&1` in
4806*GNU* | *'with BFD'*)
4807 symcode='[ABCDGIRSTW]' ;;
4808esac
4809
4810# Try without a prefix undercore, then with it.
4811for ac_symprfx in "" "_"; do
4812
4813 # Write the raw and C identifiers.
4814 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4815
4816 # Check to see that the pipe works correctly.
4817 pipe_works=no
4818
4819 rm -f conftest*
4820 cat > conftest.$ac_ext <<EOF
4821#ifdef __cplusplus
4822extern "C" {
4823#endif
4824char nm_test_var;
4825void nm_test_func(){}
4826#ifdef __cplusplus
4827}
4828#endif
4829int main(){nm_test_var='a';nm_test_func();return(0);}
4830EOF
4831
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833 (eval $ac_compile) 2>&5
4834 ac_status=$?
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; then
4837 # Now try to grab the symbols.
4838 nlist=conftest.nm
4839 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4840 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } && test -s "$nlist"; then
4844 # Try sorting and uniquifying the output.
4845 if sort "$nlist" | uniq > "$nlist"T; then
4846 mv -f "$nlist"T "$nlist"
4847 else
4848 rm -f "$nlist"T
4849 fi
4850
4851 # Make sure that we snagged all the symbols we need.
4852 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4853 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4854 cat <<EOF > conftest.$ac_ext
4855#ifdef __cplusplus
4856extern "C" {
4857#endif
4858
4859EOF
4860 # Now generate the symbol file.
4861 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4862
4863 cat <<EOF >> conftest.$ac_ext
4864#if defined (__STDC__) && __STDC__
4865# define lt_ptr_t void *
4866#else
4867# define lt_ptr_t char *
4868# define const
4869#endif
4870
4871/* The mapping between symbol names and symbols. */
4872const struct {
4873 const char *name;
4874 lt_ptr_t address;
4875}
4876lt_preloaded_symbols[] =
4877{
4878EOF
4879 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4880 cat <<\EOF >> conftest.$ac_ext
4881 {0, (lt_ptr_t) 0}
4882};
4883
4884#ifdef __cplusplus
4885}
4886#endif
4887EOF
4888 # Now try linking the two files.
4889 mv conftest.$ac_objext conftstm.$ac_objext
4890 lt_save_LIBS="$LIBS"
4891 lt_save_CFLAGS="$CFLAGS"
4892 LIBS="conftstm.$ac_objext"
4893 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4895 (eval $ac_link) 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4899 pipe_works=yes
4900 fi
4901 LIBS="$lt_save_LIBS"
4902 CFLAGS="$lt_save_CFLAGS"
4903 else
4904 echo "cannot find nm_test_func in $nlist" >&5
4905 fi
4906 else
4907 echo "cannot find nm_test_var in $nlist" >&5
4908 fi
4909 else
4910 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4911 fi
4912 else
4913 echo "$progname: failed program was:" >&5
4914 cat conftest.$ac_ext >&5
4915 fi
4916 rm -f conftest* conftst*
4917
4918 # Do not use the global_symbol_pipe unless it works.
4919 if test "$pipe_works" = yes; then
4920 break
4921 else
4922 lt_cv_sys_global_symbol_pipe=
4923 fi
4924done
4925
4926fi
4927
4928if test -z "$lt_cv_sys_global_symbol_pipe"; then
4929 lt_cv_sys_global_symbol_to_cdecl=
4930fi
4931if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4932 echo "$as_me:$LINENO: result: failed" >&5
4933echo "${ECHO_T}failed" >&6
4934else
4935 echo "$as_me:$LINENO: result: ok" >&5
4936echo "${ECHO_T}ok" >&6
4937fi
4938
4939echo "$as_me:$LINENO: checking for objdir" >&5
4940echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4941if test "${lt_cv_objdir+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4943else
4944 rm -f .libs 2>/dev/null
4945mkdir .libs 2>/dev/null
4946if test -d .libs; then
4947 lt_cv_objdir=.libs
4948else
4949 # MS-DOS does not allow filenames that begin with a dot.
4950 lt_cv_objdir=_libs
4951fi
4952rmdir .libs 2>/dev/null
4953fi
4954echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
4955echo "${ECHO_T}$lt_cv_objdir" >&6
4956objdir=$lt_cv_objdir
4957
4958
4959
4960
4961
4962case $host_os in
4963aix3*)
4964 # AIX sometimes has problems with the GCC collect2 program. For some
4965 # reason, if we set the COLLECT_NAMES environment variable, the problems
4966 # vanish in a puff of smoke.
4967 if test "X${COLLECT_NAMES+set}" != Xset; then
4968 COLLECT_NAMES=
4969 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00004970 fi
4971 ;;
4972esac
4973
a.rottmann9bc8b932004-02-29 15:18:31 +00004974# Sed substitution that helps us do robust quoting. It backslashifies
4975# metacharacters that are still active within double-quoted strings.
4976Xsed='sed -e s/^X//'
4977sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4978
4979# Same as above, but do not quote variable references.
4980double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4981
4982# Sed substitution to delay expansion of an escaped shell variable in a
4983# double_quote_subst'ed string.
4984delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4985
4986# Sed substitution to avoid accidental globbing in evaled expressions
4987no_glob_subst='s/\*/\\\*/g'
4988
4989# Constants:
4990rm="rm -f"
4991
4992# Global variables:
4993default_ofile=libtool
4994can_build_shared=yes
4995
4996# All known linkers require a `.a' archive for static linking (except M$VC,
4997# which needs '.lib').
4998libext=a
4999ltmain="$ac_aux_dir/ltmain.sh"
5000ofile="$default_ofile"
5001with_gnu_ld="$lt_cv_prog_gnu_ld"
5002
5003if test -n "$ac_tool_prefix"; then
5004 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5005set dummy ${ac_tool_prefix}ar; ac_word=$2
5006echo "$as_me:$LINENO: checking for $ac_word" >&5
5007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5008if test "${ac_cv_prog_AR+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5010else
5011 if test -n "$AR"; then
5012 ac_cv_prog_AR="$AR" # Let the user override the test.
5013else
5014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015for as_dir in $PATH
5016do
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021 ac_cv_prog_AR="${ac_tool_prefix}ar"
5022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5024 fi
5025done
5026done
5027
5028fi
5029fi
5030AR=$ac_cv_prog_AR
5031if test -n "$AR"; then
5032 echo "$as_me:$LINENO: result: $AR" >&5
5033echo "${ECHO_T}$AR" >&6
5034else
5035 echo "$as_me:$LINENO: result: no" >&5
5036echo "${ECHO_T}no" >&6
5037fi
5038
5039fi
5040if test -z "$ac_cv_prog_AR"; then
5041 ac_ct_AR=$AR
5042 # Extract the first word of "ar", so it can be a program name with args.
5043set dummy ar; ac_word=$2
5044echo "$as_me:$LINENO: checking for $ac_word" >&5
5045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5046if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5048else
5049 if test -n "$ac_ct_AR"; then
5050 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5051else
5052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053for as_dir in $PATH
5054do
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5059 ac_cv_prog_ac_ct_AR="ar"
5060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5062 fi
5063done
5064done
5065
5066 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5067fi
5068fi
5069ac_ct_AR=$ac_cv_prog_ac_ct_AR
5070if test -n "$ac_ct_AR"; then
5071 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5072echo "${ECHO_T}$ac_ct_AR" >&6
5073else
5074 echo "$as_me:$LINENO: result: no" >&5
5075echo "${ECHO_T}no" >&6
5076fi
5077
5078 AR=$ac_ct_AR
5079else
5080 AR="$ac_cv_prog_AR"
5081fi
5082
a.rottmann84e63352003-03-24 09:42:16 +00005083if test -n "$ac_tool_prefix"; then
5084 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5085set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5086echo "$as_me:$LINENO: checking for $ac_word" >&5
5087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5088if test "${ac_cv_prog_RANLIB+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5090else
5091 if test -n "$RANLIB"; then
5092 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5093else
5094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095for as_dir in $PATH
5096do
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5101 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5104 fi
5105done
5106done
5107
5108fi
5109fi
5110RANLIB=$ac_cv_prog_RANLIB
5111if test -n "$RANLIB"; then
5112 echo "$as_me:$LINENO: result: $RANLIB" >&5
5113echo "${ECHO_T}$RANLIB" >&6
5114else
5115 echo "$as_me:$LINENO: result: no" >&5
5116echo "${ECHO_T}no" >&6
5117fi
5118
5119fi
5120if test -z "$ac_cv_prog_RANLIB"; then
5121 ac_ct_RANLIB=$RANLIB
5122 # Extract the first word of "ranlib", so it can be a program name with args.
5123set dummy ranlib; ac_word=$2
5124echo "$as_me:$LINENO: checking for $ac_word" >&5
5125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5126if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5128else
5129 if test -n "$ac_ct_RANLIB"; then
5130 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5131else
5132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133for as_dir in $PATH
5134do
5135 IFS=$as_save_IFS
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5139 ac_cv_prog_ac_ct_RANLIB="ranlib"
5140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 break 2
5142 fi
5143done
5144done
5145
5146 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5147fi
5148fi
5149ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5150if test -n "$ac_ct_RANLIB"; then
5151 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5152echo "${ECHO_T}$ac_ct_RANLIB" >&6
5153else
5154 echo "$as_me:$LINENO: result: no" >&5
5155echo "${ECHO_T}no" >&6
5156fi
5157
5158 RANLIB=$ac_ct_RANLIB
5159else
5160 RANLIB="$ac_cv_prog_RANLIB"
5161fi
5162
5163if test -n "$ac_tool_prefix"; then
5164 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5165set dummy ${ac_tool_prefix}strip; ac_word=$2
5166echo "$as_me:$LINENO: checking for $ac_word" >&5
5167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5168if test "${ac_cv_prog_STRIP+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5170else
5171 if test -n "$STRIP"; then
5172 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5173else
5174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175for as_dir in $PATH
5176do
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5181 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5184 fi
5185done
5186done
5187
5188fi
5189fi
5190STRIP=$ac_cv_prog_STRIP
5191if test -n "$STRIP"; then
5192 echo "$as_me:$LINENO: result: $STRIP" >&5
5193echo "${ECHO_T}$STRIP" >&6
5194else
5195 echo "$as_me:$LINENO: result: no" >&5
5196echo "${ECHO_T}no" >&6
5197fi
5198
5199fi
5200if test -z "$ac_cv_prog_STRIP"; then
5201 ac_ct_STRIP=$STRIP
5202 # Extract the first word of "strip", so it can be a program name with args.
5203set dummy strip; ac_word=$2
5204echo "$as_me:$LINENO: checking for $ac_word" >&5
5205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5206if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5208else
5209 if test -n "$ac_ct_STRIP"; then
5210 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5211else
5212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213for as_dir in $PATH
5214do
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5219 ac_cv_prog_ac_ct_STRIP="strip"
5220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 break 2
5222 fi
5223done
5224done
5225
5226 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5227fi
5228fi
5229ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5230if test -n "$ac_ct_STRIP"; then
5231 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5232echo "${ECHO_T}$ac_ct_STRIP" >&6
5233else
5234 echo "$as_me:$LINENO: result: no" >&5
5235echo "${ECHO_T}no" >&6
5236fi
5237
5238 STRIP=$ac_ct_STRIP
5239else
5240 STRIP="$ac_cv_prog_STRIP"
5241fi
5242
5243
a.rottmann84e63352003-03-24 09:42:16 +00005244old_CC="$CC"
5245old_CFLAGS="$CFLAGS"
5246
5247# Set sane defaults for various variables
5248test -z "$AR" && AR=ar
5249test -z "$AR_FLAGS" && AR_FLAGS=cru
5250test -z "$AS" && AS=as
5251test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00005252test -z "$LTCC" && LTCC=$CC
a.rottmann84e63352003-03-24 09:42:16 +00005253test -z "$DLLTOOL" && DLLTOOL=dlltool
5254test -z "$LD" && LD=ld
5255test -z "$LN_S" && LN_S="ln -s"
5256test -z "$MAGIC_CMD" && MAGIC_CMD=file
5257test -z "$NM" && NM=nm
a.rottmann9bc8b932004-02-29 15:18:31 +00005258test -z "$SED" && SED=sed
a.rottmann84e63352003-03-24 09:42:16 +00005259test -z "$OBJDUMP" && OBJDUMP=objdump
5260test -z "$RANLIB" && RANLIB=:
5261test -z "$STRIP" && STRIP=:
5262test -z "$ac_objext" && ac_objext=o
5263
a.rottmann84e63352003-03-24 09:42:16 +00005264# Determine commands to create old-style static archives.
5265old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5266old_postinstall_cmds='chmod 644 $oldlib'
5267old_postuninstall_cmds=
5268
5269if test -n "$RANLIB"; then
5270 case $host_os in
5271 openbsd*)
5272 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5273 ;;
5274 *)
5275 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5276 ;;
5277 esac
5278 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5279fi
5280
a.rottmann9bc8b932004-02-29 15:18:31 +00005281# Only perform the check for file, if the check method requires it
5282case $deplibs_check_method in
5283file_magic*)
5284 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5285 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5286echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5287if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005289else
a.rottmann9bc8b932004-02-29 15:18:31 +00005290 case $MAGIC_CMD in
5291[\\/*] | ?:[\\/]*)
5292 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5293 ;;
5294*)
5295 lt_save_MAGIC_CMD="$MAGIC_CMD"
5296 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5297 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5298 for ac_dir in $ac_dummy; do
5299 IFS="$lt_save_ifs"
5300 test -z "$ac_dir" && ac_dir=.
5301 if test -f $ac_dir/${ac_tool_prefix}file; then
5302 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5303 if test -n "$file_magic_test_file"; then
5304 case $deplibs_check_method in
5305 "file_magic "*)
5306 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5307 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5308 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5309 $EGREP "$file_magic_regex" > /dev/null; then
5310 :
5311 else
5312 cat <<EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00005313
a.rottmann9bc8b932004-02-29 15:18:31 +00005314*** Warning: the command libtool uses to detect shared libraries,
5315*** $file_magic_cmd, produces output that libtool cannot recognize.
5316*** The result is that libtool may fail to recognize shared libraries
5317*** as such. This will affect the creation of libtool libraries that
5318*** depend on shared libraries, but programs linked with such libtool
5319*** libraries will work regardless of this problem. Nevertheless, you
5320*** may want to report the problem to your system manager and/or to
5321*** bug-libtool@gnu.org
5322
5323EOF
5324 fi ;;
5325 esac
5326 fi
5327 break
5328 fi
5329 done
5330 IFS="$lt_save_ifs"
5331 MAGIC_CMD="$lt_save_MAGIC_CMD"
5332 ;;
5333esac
5334fi
5335
5336MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5337if test -n "$MAGIC_CMD"; then
5338 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5339echo "${ECHO_T}$MAGIC_CMD" >&6
5340else
5341 echo "$as_me:$LINENO: result: no" >&5
5342echo "${ECHO_T}no" >&6
5343fi
5344
5345if test -z "$lt_cv_path_MAGIC_CMD"; then
5346 if test -n "$ac_tool_prefix"; then
5347 echo "$as_me:$LINENO: checking for file" >&5
5348echo $ECHO_N "checking for file... $ECHO_C" >&6
5349if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5351else
5352 case $MAGIC_CMD in
5353[\\/*] | ?:[\\/]*)
5354 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5355 ;;
5356*)
5357 lt_save_MAGIC_CMD="$MAGIC_CMD"
5358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5359 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5360 for ac_dir in $ac_dummy; do
5361 IFS="$lt_save_ifs"
5362 test -z "$ac_dir" && ac_dir=.
5363 if test -f $ac_dir/file; then
5364 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5365 if test -n "$file_magic_test_file"; then
5366 case $deplibs_check_method in
5367 "file_magic "*)
5368 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5369 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5370 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5371 $EGREP "$file_magic_regex" > /dev/null; then
5372 :
5373 else
5374 cat <<EOF 1>&2
5375
5376*** Warning: the command libtool uses to detect shared libraries,
5377*** $file_magic_cmd, produces output that libtool cannot recognize.
5378*** The result is that libtool may fail to recognize shared libraries
5379*** as such. This will affect the creation of libtool libraries that
5380*** depend on shared libraries, but programs linked with such libtool
5381*** libraries will work regardless of this problem. Nevertheless, you
5382*** may want to report the problem to your system manager and/or to
5383*** bug-libtool@gnu.org
5384
5385EOF
5386 fi ;;
5387 esac
5388 fi
5389 break
5390 fi
5391 done
5392 IFS="$lt_save_ifs"
5393 MAGIC_CMD="$lt_save_MAGIC_CMD"
5394 ;;
5395esac
5396fi
5397
5398MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5399if test -n "$MAGIC_CMD"; then
5400 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5401echo "${ECHO_T}$MAGIC_CMD" >&6
5402else
5403 echo "$as_me:$LINENO: result: no" >&5
5404echo "${ECHO_T}no" >&6
5405fi
5406
5407 else
5408 MAGIC_CMD=:
5409 fi
5410fi
5411
5412 fi
5413 ;;
5414esac
5415
5416enable_dlopen=no
5417enable_win32_dll=no
5418
5419# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5420if test "${enable_libtool_lock+set}" = set; then
5421 enableval="$enable_libtool_lock"
5422
5423fi;
5424test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
a.rottmann84e63352003-03-24 09:42:16 +00005425
5426
drh71eb93e2001-09-28 01:34:43 +00005427# Check whether --with-pic or --without-pic was given.
5428if test "${with_pic+set}" = set; then
5429 withval="$with_pic"
5430 pic_mode="$withval"
5431else
5432 pic_mode=default
5433fi;
5434test -z "$pic_mode" && pic_mode=default
5435
a.rottmann9bc8b932004-02-29 15:18:31 +00005436# Use C for the default configuration in the libtool script
5437tagname=
5438lt_save_CC="$CC"
5439ac_ext=c
5440ac_cpp='$CPP $CPPFLAGS'
5441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5443ac_compiler_gnu=$ac_cv_c_compiler_gnu
5444
5445
5446# Source file extension for C test sources.
5447ac_ext=c
5448
5449# Object file extension for compiled C test sources.
5450objext=o
5451objext=$objext
5452
5453# Code to be used in simple compile tests
5454lt_simple_compile_test_code="int some_variable = 0;\n"
5455
5456# Code to be used in simple link tests
5457lt_simple_link_test_code='int main(){return(0);}\n'
5458
5459
5460# If no C compiler was specified, use CC.
5461LTCC=${LTCC-"$CC"}
5462
5463# Allow CC to be a program name with arguments.
5464compiler=$CC
5465
5466
5467#
5468# Check for any special shared library compilation flags.
5469#
5470lt_prog_cc_shlib=
5471if test "$GCC" = no; then
5472 case $host_os in
5473 sco3.2v5*)
5474 lt_prog_cc_shlib='-belf'
5475 ;;
5476 esac
5477fi
5478if test -n "$lt_prog_cc_shlib"; then
5479 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5480echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5481 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5482 else
5483 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5484echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5485 lt_cv_prog_cc_can_build_shared=no
5486 fi
5487fi
5488
5489
5490#
5491# Check to make sure the static flag actually works.
5492#
5493echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5494echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5495if test "${lt_prog_compiler_static_works+set}" = set; then
a.rottmann84e63352003-03-24 09:42:16 +00005496 echo $ECHO_N "(cached) $ECHO_C" >&6
5497else
a.rottmann9bc8b932004-02-29 15:18:31 +00005498 lt_prog_compiler_static_works=no
5499 save_LDFLAGS="$LDFLAGS"
5500 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5501 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5502 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5503 # The compiler can only warn and ignore the option if not recognized
5504 # So say no if there are warnings
5505 if test -s conftest.err; then
5506 # Append any errors to the config.log.
5507 cat conftest.err 1>&5
5508 else
5509 lt_prog_compiler_static_works=yes
5510 fi
5511 fi
5512 $rm conftest*
5513 LDFLAGS="$save_LDFLAGS"
5514
5515fi
5516echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5517echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5518
5519if test x"$lt_prog_compiler_static_works" = xyes; then
5520 :
5521else
5522 lt_prog_compiler_static=
5523fi
5524
5525
5526
5527
5528lt_prog_compiler_no_builtin_flag=
5529
5530if test "$GCC" = yes; then
5531 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5532
5533
5534echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5535echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5536if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5538else
5539 lt_cv_prog_compiler_rtti_exceptions=no
5540 ac_outfile=conftest.$ac_objext
5541 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5542 lt_compiler_flag="-fno-rtti -fno-exceptions"
5543 # Insert the option either (1) after the last *FLAGS variable, or
5544 # (2) before a word containing "conftest.", or (3) at the end.
5545 # Note that $ac_compile itself does not contain backslashes and begins
5546 # with a dollar sign (not a hyphen), so the echo should work correctly.
5547 # The option is referenced via a variable to avoid confusing sed.
5548 lt_compile=`echo "$ac_compile" | $SED \
5549 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5551 -e 's:$: $lt_compiler_flag:'`
dougcurrie0f290bf2004-06-21 18:57:29 +00005552 (eval echo "\"\$as_me:5552: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00005553 (eval "$lt_compile" 2>conftest.err)
5554 ac_status=$?
5555 cat conftest.err >&5
dougcurrie0f290bf2004-06-21 18:57:29 +00005556 echo "$as_me:5556: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005557 if (exit $ac_status) && test -s "$ac_outfile"; then
5558 # The compiler can only warn and ignore the option if not recognized
5559 # So say no if there are warnings
5560 if test ! -s conftest.err; then
5561 lt_cv_prog_compiler_rtti_exceptions=yes
5562 fi
5563 fi
5564 $rm conftest*
5565
5566fi
5567echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5568echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5569
5570if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5571 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5572else
5573 :
5574fi
5575
5576fi
5577
5578lt_prog_compiler_wl=
5579lt_prog_compiler_pic=
5580lt_prog_compiler_static=
5581
5582echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5583echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005584
drh71eb93e2001-09-28 01:34:43 +00005585 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005586 lt_prog_compiler_wl='-Wl,'
5587 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00005588
5589 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00005590 aix*)
5591 # All AIX code is PIC.
5592 if test "$host_cpu" = ia64; then
5593 # AIX 5 now supports IA64 processor
5594 lt_prog_compiler_static='-Bstatic'
5595 fi
drh71eb93e2001-09-28 01:34:43 +00005596 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005597
drh71eb93e2001-09-28 01:34:43 +00005598 amigaos*)
5599 # FIXME: we need at least 68020 code to build shared libraries, but
5600 # adding the `-m68020' flag to GCC prevents building anything better,
5601 # like `-m68040'.
a.rottmann9bc8b932004-02-29 15:18:31 +00005602 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
drh71eb93e2001-09-28 01:34:43 +00005603 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005604
5605 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00005606 # PIC is the default for these OSes.
5607 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005608
5609 mingw* | pw32* | os2*)
5610 # This hack is so that the source file can tell whether it is being
5611 # built for inclusion in a dll (and should export symbols for example).
5612 lt_prog_compiler_pic='-DDLL_EXPORT'
5613 ;;
5614
drh71eb93e2001-09-28 01:34:43 +00005615 darwin* | rhapsody*)
5616 # PIC is the default on this platform
5617 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00005618 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00005619 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005620
5621 msdosdjgpp*)
5622 # Just because we use GCC doesn't mean we suddenly get shared libraries
5623 # on systems that don't support them.
5624 lt_prog_compiler_can_build_shared=no
5625 enable_shared=no
drh71eb93e2001-09-28 01:34:43 +00005626 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005627
drh71eb93e2001-09-28 01:34:43 +00005628 sysv4*MP*)
5629 if test -d /usr/nec; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005630 lt_prog_compiler_pic=-Kconform_pic
drh71eb93e2001-09-28 01:34:43 +00005631 fi
5632 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005633
5634 hpux*)
5635 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5636 # not for PA HP-UX.
5637 case "$host_cpu" in
5638 hppa*64*|ia64*)
5639 # +Z the default
5640 ;;
5641 *)
5642 lt_prog_compiler_pic='-fPIC'
5643 ;;
5644 esac
5645 ;;
5646
drh71eb93e2001-09-28 01:34:43 +00005647 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00005648 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00005649 ;;
5650 esac
5651 else
a.rottmann9bc8b932004-02-29 15:18:31 +00005652 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00005653 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00005654 aix*)
5655 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00005656 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00005657 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00005658 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005659 else
a.rottmann9bc8b932004-02-29 15:18:31 +00005660 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00005661 fi
5662 ;;
5663
a.rottmann9bc8b932004-02-29 15:18:31 +00005664 mingw* | pw32* | os2*)
5665 # This hack is so that the source file can tell whether it is being
5666 # built for inclusion in a dll (and should export symbols for example).
5667 lt_prog_compiler_pic='-DDLL_EXPORT'
5668 ;;
5669
a.rottmann84e63352003-03-24 09:42:16 +00005670 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005671 lt_prog_compiler_wl='-Wl,'
5672 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5673 # not for PA HP-UX.
5674 case "$host_cpu" in
5675 hppa*64*|ia64*)
5676 # +Z the default
5677 ;;
5678 *)
5679 lt_prog_compiler_pic='+Z'
5680 ;;
5681 esac
5682 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5683 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00005684 ;;
5685
5686 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005687 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00005688 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00005689 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00005690 ;;
5691
5692 newsos6)
a.rottmann9bc8b932004-02-29 15:18:31 +00005693 lt_prog_compiler_pic='-KPIC'
5694 lt_prog_compiler_static='-Bstatic'
5695 ;;
5696
5697 linux*)
5698 case $CC in
5699 icc* | ecc*)
5700 lt_prog_compiler_wl='-Wl,'
5701 lt_prog_compiler_pic='-KPIC'
5702 lt_prog_compiler_static='-static'
5703 ;;
5704 ccc*)
5705 lt_prog_compiler_wl='-Wl,'
5706 # All Alpha code is PIC.
5707 lt_prog_compiler_static='-non_shared'
5708 ;;
5709 esac
drh71eb93e2001-09-28 01:34:43 +00005710 ;;
5711
5712 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005713 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00005714 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00005715 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00005716 ;;
5717
5718 sco3.2v5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005719 lt_prog_compiler_pic='-Kpic'
5720 lt_prog_compiler_static='-dn'
drh71eb93e2001-09-28 01:34:43 +00005721 ;;
5722
5723 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005724 lt_prog_compiler_wl='-Wl,'
5725 lt_prog_compiler_pic='-KPIC'
5726 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005727 ;;
5728
5729 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005730 lt_prog_compiler_wl='-Qoption ld '
5731 lt_prog_compiler_pic='-PIC'
5732 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005733 ;;
5734
5735 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005736 lt_prog_compiler_wl='-Wl,'
5737 lt_prog_compiler_pic='-KPIC'
5738 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005739 ;;
5740
5741 sysv4*MP*)
5742 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00005743 lt_prog_compiler_pic='-Kconform_pic'
5744 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005745 fi
5746 ;;
5747
a.rottmann9bc8b932004-02-29 15:18:31 +00005748 uts4*)
5749 lt_prog_compiler_pic='-pic'
5750 lt_prog_compiler_static='-Bstatic'
5751 ;;
5752
drh71eb93e2001-09-28 01:34:43 +00005753 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00005754 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00005755 ;;
5756 esac
5757 fi
5758
a.rottmann9bc8b932004-02-29 15:18:31 +00005759echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5760echo "${ECHO_T}$lt_prog_compiler_pic" >&6
drh71eb93e2001-09-28 01:34:43 +00005761
a.rottmann9bc8b932004-02-29 15:18:31 +00005762#
5763# Check to make sure the PIC flag actually works.
5764#
5765if test -n "$lt_prog_compiler_pic"; then
a.rottmann84e63352003-03-24 09:42:16 +00005766
a.rottmann9bc8b932004-02-29 15:18:31 +00005767echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5768echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5769if test "${lt_prog_compiler_pic_works+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00005770 echo $ECHO_N "(cached) $ECHO_C" >&6
5771else
a.rottmann9bc8b932004-02-29 15:18:31 +00005772 lt_prog_compiler_pic_works=no
5773 ac_outfile=conftest.$ac_objext
5774 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5775 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5776 # Insert the option either (1) after the last *FLAGS variable, or
5777 # (2) before a word containing "conftest.", or (3) at the end.
5778 # Note that $ac_compile itself does not contain backslashes and begins
5779 # with a dollar sign (not a hyphen), so the echo should work correctly.
5780 # The option is referenced via a variable to avoid confusing sed.
5781 lt_compile=`echo "$ac_compile" | $SED \
5782 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5784 -e 's:$: $lt_compiler_flag:'`
dougcurrie0f290bf2004-06-21 18:57:29 +00005785 (eval echo "\"\$as_me:5785: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00005786 (eval "$lt_compile" 2>conftest.err)
5787 ac_status=$?
5788 cat conftest.err >&5
dougcurrie0f290bf2004-06-21 18:57:29 +00005789 echo "$as_me:5789: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005790 if (exit $ac_status) && test -s "$ac_outfile"; then
5791 # The compiler can only warn and ignore the option if not recognized
5792 # So say no if there are warnings
5793 if test ! -s conftest.err; then
5794 lt_prog_compiler_pic_works=yes
5795 fi
5796 fi
5797 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00005798
a.rottmann9bc8b932004-02-29 15:18:31 +00005799fi
5800echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5801echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
drh71eb93e2001-09-28 01:34:43 +00005802
a.rottmann9bc8b932004-02-29 15:18:31 +00005803if test x"$lt_prog_compiler_pic_works" = xyes; then
5804 case $lt_prog_compiler_pic in
5805 "" | " "*) ;;
5806 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5807 esac
drh71eb93e2001-09-28 01:34:43 +00005808else
a.rottmann9bc8b932004-02-29 15:18:31 +00005809 lt_prog_compiler_pic=
5810 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00005811fi
5812
a.rottmann84e63352003-03-24 09:42:16 +00005813fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005814case "$host_os" in
5815 # For platforms which do not support PIC, -DPIC is meaningless:
5816 *djgpp*)
5817 lt_prog_compiler_pic=
5818 ;;
5819 *)
5820 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5821 ;;
5822esac
a.rottmann84e63352003-03-24 09:42:16 +00005823
a.rottmann84e63352003-03-24 09:42:16 +00005824echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
drh71eb93e2001-09-28 01:34:43 +00005825echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005826if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00005827 echo $ECHO_N "(cached) $ECHO_C" >&6
5828else
a.rottmann9bc8b932004-02-29 15:18:31 +00005829 lt_cv_prog_compiler_c_o=no
5830 $rm -r conftest 2>/dev/null
5831 mkdir conftest
5832 cd conftest
5833 mkdir out
5834 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00005835
a.rottmann9bc8b932004-02-29 15:18:31 +00005836 lt_compiler_flag="-o out/conftest2.$ac_objext"
5837 # Insert the option either (1) after the last *FLAGS variable, or
5838 # (2) before a word containing "conftest.", or (3) at the end.
5839 # Note that $ac_compile itself does not contain backslashes and begins
5840 # with a dollar sign (not a hyphen), so the echo should work correctly.
5841 lt_compile=`echo "$ac_compile" | $SED \
5842 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5844 -e 's:$: $lt_compiler_flag:'`
dougcurrie0f290bf2004-06-21 18:57:29 +00005845 (eval echo "\"\$as_me:5845: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00005846 (eval "$lt_compile" 2>out/conftest.err)
5847 ac_status=$?
5848 cat out/conftest.err >&5
dougcurrie0f290bf2004-06-21 18:57:29 +00005849 echo "$as_me:5849: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005850 if (exit $ac_status) && test -s out/conftest2.$ac_objext
5851 then
5852 # The compiler can only warn and ignore the option if not recognized
5853 # So say no if there are warnings
5854 if test ! -s out/conftest.err; then
5855 lt_cv_prog_compiler_c_o=yes
5856 fi
5857 fi
5858 chmod u+w .
5859 $rm conftest*
5860 # SGI C++ compiler will create directory out/ii_files/ for
5861 # template instantiation
5862 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
5863 $rm out/* && rmdir out
5864 cd ..
5865 rmdir conftest
5866 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00005867
5868fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005869echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5870echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
drh71eb93e2001-09-28 01:34:43 +00005871
a.rottmann84e63352003-03-24 09:42:16 +00005872
drh71eb93e2001-09-28 01:34:43 +00005873hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00005874if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00005875 # do not overwrite the value of need_locks provided by the user
a.rottmann84e63352003-03-24 09:42:16 +00005876 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
drh71eb93e2001-09-28 01:34:43 +00005877echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5878 hard_links=yes
5879 $rm conftest*
5880 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5881 touch conftest.a
5882 ln conftest.a conftest.b 2>&5 || hard_links=no
5883 ln conftest.a conftest.b 2>/dev/null && hard_links=no
a.rottmann84e63352003-03-24 09:42:16 +00005884 echo "$as_me:$LINENO: result: $hard_links" >&5
drh71eb93e2001-09-28 01:34:43 +00005885echo "${ECHO_T}$hard_links" >&6
5886 if test "$hard_links" = no; then
a.rottmann84e63352003-03-24 09:42:16 +00005887 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh71eb93e2001-09-28 01:34:43 +00005888echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5889 need_locks=warn
5890 fi
5891else
5892 need_locks=no
5893fi
5894
a.rottmann9bc8b932004-02-29 15:18:31 +00005895echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5896echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5897
5898 runpath_var=
5899 allow_undefined_flag=
5900 enable_shared_with_static_runtimes=no
5901 archive_cmds=
5902 archive_expsym_cmds=
5903 old_archive_From_new_cmds=
5904 old_archive_from_expsyms_cmds=
5905 export_dynamic_flag_spec=
5906 whole_archive_flag_spec=
5907 thread_safe_flag_spec=
5908 hardcode_libdir_flag_spec=
5909 hardcode_libdir_flag_spec_ld=
5910 hardcode_libdir_separator=
5911 hardcode_direct=no
5912 hardcode_minus_L=no
5913 hardcode_shlibpath_var=unsupported
5914 link_all_deplibs=unknown
5915 hardcode_automatic=no
5916 module_cmds=
5917 module_expsym_cmds=
5918 always_export_symbols=no
5919 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5920 # include_expsyms should be a list of space-separated symbols to be *always*
5921 # included in the symbol list
5922 include_expsyms=
5923 # exclude_expsyms can be an extended regexp of symbols to exclude
5924 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5925 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5926 # as well as any symbol that contains `d'.
5927 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5928 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5929 # platforms (ab)use it in PIC code, but their linkers get confused if
5930 # the symbol is explicitly referenced. Since portable code cannot
5931 # rely on this symbol name, it's probably fine to never include it in
5932 # preloaded symbol tables.
5933 extract_expsyms_cmds=
5934
5935 case $host_os in
5936 cygwin* | mingw* | pw32*)
5937 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5938 # When not using gcc, we currently assume that we are using
5939 # Microsoft Visual C++.
5940 if test "$GCC" != yes; then
5941 with_gnu_ld=no
5942 fi
5943 ;;
5944 openbsd*)
5945 with_gnu_ld=no
5946 ;;
5947 esac
5948
5949 ld_shlibs=yes
5950 if test "$with_gnu_ld" = yes; then
5951 # If archive_cmds runs LD, not CC, wlarc should be empty
5952 wlarc='${wl}'
5953
5954 # See if GNU ld supports shared libraries.
5955 case $host_os in
5956 aix3* | aix4* | aix5*)
5957 # On AIX/PPC, the GNU linker is very broken
5958 if test "$host_cpu" != ia64; then
5959 ld_shlibs=no
5960 cat <<EOF 1>&2
5961
5962*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5963*** to be unable to reliably create shared libraries on AIX.
5964*** Therefore, libtool is disabling shared libraries support. If you
5965*** really care for shared libraries, you may want to modify your PATH
5966*** so that a non-GNU linker is found, and then restart.
5967
5968EOF
5969 fi
5970 ;;
5971
5972 amigaos*)
5973 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)'
5974 hardcode_libdir_flag_spec='-L$libdir'
5975 hardcode_minus_L=yes
5976
5977 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5978 # that the semantics of dynamic libraries on AmigaOS, at least up
5979 # to version 4, is to share data among multiple programs linked
5980 # with the same dynamic library. Since this doesn't match the
5981 # behavior of shared libraries on other platforms, we can't use
5982 # them.
5983 ld_shlibs=no
5984 ;;
5985
5986 beos*)
5987 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5988 allow_undefined_flag=unsupported
5989 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5990 # support --undefined. This deserves some investigation. FIXME
5991 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5992 else
5993 ld_shlibs=no
5994 fi
5995 ;;
5996
5997 cygwin* | mingw* | pw32*)
5998 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
5999 # as there is no search path for DLLs.
6000 hardcode_libdir_flag_spec='-L$libdir'
6001 allow_undefined_flag=unsupported
6002 always_export_symbols=no
6003 enable_shared_with_static_runtimes=yes
6004 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6005
6006 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6008 # If the export-symbols file already is a .def file (1st line
6009 # is EXPORTS), use it as is; otherwise, prepend...
6010 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6011 cp $export_symbols $output_objdir/$soname.def;
6012 else
6013 echo EXPORTS > $output_objdir/$soname.def;
6014 cat $export_symbols >> $output_objdir/$soname.def;
6015 fi~
6016 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6017 else
6018 ld_shlibs=no
6019 fi
6020 ;;
6021
6022 netbsd* | knetbsd*-gnu)
6023 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6024 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6025 wlarc=
6026 else
6027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6028 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6029 fi
6030 ;;
6031
6032 solaris* | sysv5*)
6033 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6034 ld_shlibs=no
6035 cat <<EOF 1>&2
6036
6037*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6038*** create shared libraries on Solaris systems. Therefore, libtool
6039*** is disabling shared libraries support. We urge you to upgrade GNU
6040*** binutils to release 2.9.1 or newer. Another option is to modify
6041*** your PATH or compiler configuration so that the native linker is
6042*** used, and then restart.
6043
6044EOF
6045 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6047 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6048 else
6049 ld_shlibs=no
6050 fi
6051 ;;
6052
6053 sunos4*)
6054 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6055 wlarc=
6056 hardcode_direct=yes
6057 hardcode_shlibpath_var=no
6058 ;;
6059
6060 linux*)
6061 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6062 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6063 archive_cmds="$tmp_archive_cmds"
6064 supports_anon_versioning=no
6065 case `$LD -v 2>/dev/null` in
6066 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6067 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6068 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6069 *\ 2.11.*) ;; # other 2.11 versions
6070 *) supports_anon_versioning=yes ;;
6071 esac
6072 if test $supports_anon_versioning = yes; then
6073 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6074cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6075$echo "local: *; };" >> $output_objdir/$libname.ver~
6076 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6077 else
6078 archive_expsym_cmds="$tmp_archive_cmds"
6079 fi
6080 else
6081 ld_shlibs=no
6082 fi
6083 ;;
6084
6085 *)
6086 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6087 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6088 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6089 else
6090 ld_shlibs=no
6091 fi
6092 ;;
6093 esac
6094
6095 if test "$ld_shlibs" = yes; then
6096 runpath_var=LD_RUN_PATH
6097 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6098 export_dynamic_flag_spec='${wl}--export-dynamic'
6099 # ancient GNU ld didn't support --whole-archive et. al.
6100 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6101 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6102 else
6103 whole_archive_flag_spec=
6104 fi
6105 fi
6106 else
6107 # PORTME fill in a description of your system's linker (not GNU ld)
6108 case $host_os in
6109 aix3*)
6110 allow_undefined_flag=unsupported
6111 always_export_symbols=yes
6112 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'
6113 # Note: this linker hardcodes the directories in LIBPATH if there
6114 # are no directories specified by -L.
6115 hardcode_minus_L=yes
6116 if test "$GCC" = yes && test -z "$link_static_flag"; then
6117 # Neither direct hardcoding nor static linking is supported with a
6118 # broken collect2.
6119 hardcode_direct=unsupported
6120 fi
6121 ;;
6122
6123 aix4* | aix5*)
6124 if test "$host_cpu" = ia64; then
6125 # On IA64, the linker does run time linking by default, so we don't
6126 # have to do anything special.
6127 aix_use_runtimelinking=no
6128 exp_sym_flag='-Bexport'
6129 no_entry_flag=""
6130 else
6131 # If we're using GNU nm, then we don't want the "-C" option.
6132 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6133 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6134 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'
6135 else
6136 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'
6137 fi
6138 aix_use_runtimelinking=no
6139
6140 # Test if we are trying to use run time linking or normal
6141 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6142 # need to do runtime linking.
6143 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6144 for ld_flag in $LDFLAGS; do
6145 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6146 aix_use_runtimelinking=yes
6147 break
6148 fi
6149 done
6150 esac
6151
6152 exp_sym_flag='-bexport'
6153 no_entry_flag='-bnoentry'
6154 fi
6155
6156 # When large executables or shared objects are built, AIX ld can
6157 # have problems creating the table of contents. If linking a library
6158 # or program results in "error TOC overflow" add -mminimal-toc to
6159 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6160 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6161
6162 archive_cmds=''
6163 hardcode_direct=yes
6164 hardcode_libdir_separator=':'
6165 link_all_deplibs=yes
6166
6167 if test "$GCC" = yes; then
6168 case $host_os in aix4.012|aix4.012.*)
6169 # We only want to do this on AIX 4.2 and lower, the check
6170 # below for broken collect2 doesn't work under 4.3+
6171 collect2name=`${CC} -print-prog-name=collect2`
6172 if test -f "$collect2name" && \
6173 strings "$collect2name" | grep resolve_lib_name >/dev/null
6174 then
6175 # We have reworked collect2
6176 hardcode_direct=yes
6177 else
6178 # We have old collect2
6179 hardcode_direct=unsupported
6180 # It fails to find uninstalled libraries when the uninstalled
6181 # path is not listed in the libpath. Setting hardcode_minus_L
6182 # to unsupported forces relinking
6183 hardcode_minus_L=yes
6184 hardcode_libdir_flag_spec='-L$libdir'
6185 hardcode_libdir_separator=
6186 fi
6187 esac
6188 shared_flag='-shared'
6189 else
6190 # not using gcc
6191 if test "$host_cpu" = ia64; then
6192 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6193 # chokes on -Wl,-G. The following line is correct:
6194 shared_flag='-G'
6195 else
6196 if test "$aix_use_runtimelinking" = yes; then
6197 shared_flag='${wl}-G'
6198 else
6199 shared_flag='${wl}-bM:SRE'
6200 fi
6201 fi
6202 fi
6203
6204 # It seems that -bexpall does not export symbols beginning with
6205 # underscore (_), so it is better to generate a list of symbols to export.
6206 always_export_symbols=yes
6207 if test "$aix_use_runtimelinking" = yes; then
6208 # Warning - without using the other runtime loading flags (-brtl),
6209 # -berok will link without error, but may produce a broken library.
6210 allow_undefined_flag='-berok'
6211 # Determine the default libpath from the value encoded in an empty executable.
6212 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006213/* confdefs.h. */
6214_ACEOF
6215cat confdefs.h >>conftest.$ac_ext
6216cat >>conftest.$ac_ext <<_ACEOF
6217/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006218
a.rottmann84e63352003-03-24 09:42:16 +00006219int
6220main ()
6221{
a.rottmann9bc8b932004-02-29 15:18:31 +00006222
a.rottmann84e63352003-03-24 09:42:16 +00006223 ;
6224 return 0;
6225}
6226_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006227rm -f conftest.$ac_objext conftest$ac_exeext
6228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6229 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006230 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006231 grep -v '^ *+' conftest.er1 >conftest.err
6232 rm -f conftest.er1
6233 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00006234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00006236 { ac_try='test -z "$ac_c_werror_flag"
6237 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00006238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 (eval $ac_try) 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; } &&
a.rottmann9bc8b932004-02-29 15:18:31 +00006243 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245 (eval $ac_try) 2>&5
6246 ac_status=$?
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00006249
a.rottmann9bc8b932004-02-29 15:18:31 +00006250aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6251}'`
6252# Check for a 64-bit object if we didn't find anything.
6253if 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; }
6254}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00006255else
6256 echo "$as_me: failed program was:" >&5
6257sed 's/^/| /' conftest.$ac_ext >&5
6258
6259fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006260rm -f conftest.err conftest.$ac_objext \
6261 conftest$ac_exeext conftest.$ac_ext
6262if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00006263
a.rottmann9bc8b932004-02-29 15:18:31 +00006264 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6265 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"
6266 else
6267 if test "$host_cpu" = ia64; then
6268 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6269 allow_undefined_flag="-z nodefs"
6270 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"
6271 else
6272 # Determine the default libpath from the value encoded in an empty executable.
6273 cat >conftest.$ac_ext <<_ACEOF
6274/* confdefs.h. */
6275_ACEOF
6276cat confdefs.h >>conftest.$ac_ext
6277cat >>conftest.$ac_ext <<_ACEOF
6278/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00006279
a.rottmann9bc8b932004-02-29 15:18:31 +00006280int
6281main ()
6282{
a.rottmann84e63352003-03-24 09:42:16 +00006283
a.rottmann9bc8b932004-02-29 15:18:31 +00006284 ;
6285 return 0;
6286}
6287_ACEOF
6288rm -f conftest.$ac_objext conftest$ac_exeext
6289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6290 (eval $ac_link) 2>conftest.er1
6291 ac_status=$?
6292 grep -v '^ *+' conftest.er1 >conftest.err
6293 rm -f conftest.er1
6294 cat conftest.err >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00006297 { ac_try='test -z "$ac_c_werror_flag"
6298 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00006299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 (eval $ac_try) 2>&5
6301 ac_status=$?
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; } &&
6304 { ac_try='test -s conftest$ac_exeext'
6305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306 (eval $ac_try) 2>&5
6307 ac_status=$?
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00006310
a.rottmann9bc8b932004-02-29 15:18:31 +00006311aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6312}'`
6313# Check for a 64-bit object if we didn't find anything.
6314if 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; }
6315}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00006316else
a.rottmann9bc8b932004-02-29 15:18:31 +00006317 echo "$as_me: failed program was:" >&5
6318sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00006319
a.rottmann9bc8b932004-02-29 15:18:31 +00006320fi
6321rm -f conftest.err conftest.$ac_objext \
6322 conftest$ac_exeext conftest.$ac_ext
6323if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00006324
a.rottmann9bc8b932004-02-29 15:18:31 +00006325 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6326 # Warning - without using the other run time loading flags,
6327 # -berok will link without error, but may produce a broken library.
6328 no_undefined_flag=' ${wl}-bernotok'
6329 allow_undefined_flag=' ${wl}-berok'
6330 # -bexpall does not export symbols beginning with underscore (_)
6331 always_export_symbols=yes
6332 # Exported symbols can be pulled into shared objects from archives
6333 whole_archive_flag_spec=' '
6334 archive_cmds_need_lc=yes
6335 # This is similar to how AIX traditionally builds it's shared libraries.
6336 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'
a.rottmann84e63352003-03-24 09:42:16 +00006337 fi
6338 fi
a.rottmann84e63352003-03-24 09:42:16 +00006339 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006340
6341 amigaos*)
6342 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)'
6343 hardcode_libdir_flag_spec='-L$libdir'
6344 hardcode_minus_L=yes
6345 # see comment about different semantics on the GNU ld section
6346 ld_shlibs=no
a.rottmann84e63352003-03-24 09:42:16 +00006347 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006348
a.rottmann9bc8b932004-02-29 15:18:31 +00006349 bsdi4*)
6350 export_dynamic_flag_spec=-rdynamic
6351 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006352
a.rottmann9bc8b932004-02-29 15:18:31 +00006353 cygwin* | mingw* | pw32*)
6354 # When not using gcc, we currently assume that we are using
6355 # Microsoft Visual C++.
6356 # hardcode_libdir_flag_spec is actually meaningless, as there is
6357 # no search path for DLLs.
6358 hardcode_libdir_flag_spec=' '
6359 allow_undefined_flag=unsupported
6360 # Tell ltmain to make .lib files, not .a files.
6361 libext=lib
6362 # Tell ltmain to make .dll files, not .so files.
6363 shrext=".dll"
6364 # FIXME: Setting linknames here is a bad hack.
6365 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6366 # The linker will automatically build a .lib file if we build a DLL.
6367 old_archive_From_new_cmds='true'
6368 # FIXME: Should let the user specify the lib program.
6369 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6370 fix_srcfile_path='`cygpath -w "$srcfile"`'
6371 enable_shared_with_static_runtimes=yes
6372 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006373
a.rottmann9bc8b932004-02-29 15:18:31 +00006374 darwin* | rhapsody*)
6375 if test "$GXX" = yes ; then
6376 archive_cmds_need_lc=no
a.rottmann84e63352003-03-24 09:42:16 +00006377 case "$host_os" in
a.rottmann9bc8b932004-02-29 15:18:31 +00006378 rhapsody* | darwin1.[012])
6379 allow_undefined_flag='-undefined suppress'
6380 ;;
6381 *) # Darwin 1.3 on
6382 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6383 allow_undefined_flag='-flat_namespace -undefined suppress'
6384 else
6385 case ${MACOSX_DEPLOYMENT_TARGET} in
6386 10.[012])
6387 allow_undefined_flag='-flat_namespace -undefined suppress'
6388 ;;
6389 10.*)
6390 allow_undefined_flag='-undefined dynamic_lookup'
6391 ;;
6392 esac
6393 fi
a.rottmann84e63352003-03-24 09:42:16 +00006394 ;;
6395 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006396 lt_int_apple_cc_single_mod=no
6397 output_verbose_link_cmd='echo'
6398 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6399 lt_int_apple_cc_single_mod=yes
6400 fi
6401 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6402 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6403 else
6404 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'
6405 fi
6406 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6407 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6408 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6409 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}'
6410 else
6411 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}'
6412 fi
6413 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}'
6414 hardcode_direct=no
6415 hardcode_automatic=yes
6416 hardcode_shlibpath_var=unsupported
6417 whole_archive_flag_spec='-all_load $convenience'
6418 link_all_deplibs=yes
a.rottmann84e63352003-03-24 09:42:16 +00006419 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006420 ld_shlibs=no
a.rottmann84e63352003-03-24 09:42:16 +00006421 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006422 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006423
a.rottmann9bc8b932004-02-29 15:18:31 +00006424 dgux*)
6425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6426 hardcode_libdir_flag_spec='-L$libdir'
6427 hardcode_shlibpath_var=no
6428 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006429
a.rottmann9bc8b932004-02-29 15:18:31 +00006430 freebsd1*)
6431 ld_shlibs=no
6432 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006433
a.rottmann9bc8b932004-02-29 15:18:31 +00006434 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6435 # support. Future versions do this automatically, but an explicit c++rt0.o
6436 # does not break anything, and helps significantly (at the cost of a little
6437 # extra space).
6438 freebsd2.2*)
6439 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6440 hardcode_libdir_flag_spec='-R$libdir'
6441 hardcode_direct=yes
6442 hardcode_shlibpath_var=no
6443 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006444
a.rottmann9bc8b932004-02-29 15:18:31 +00006445 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6446 freebsd2*)
6447 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6448 hardcode_direct=yes
6449 hardcode_minus_L=yes
6450 hardcode_shlibpath_var=no
6451 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006452
a.rottmann9bc8b932004-02-29 15:18:31 +00006453 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6454 freebsd* | kfreebsd*-gnu)
6455 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6456 hardcode_libdir_flag_spec='-R$libdir'
6457 hardcode_direct=yes
6458 hardcode_shlibpath_var=no
6459 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006460
a.rottmann9bc8b932004-02-29 15:18:31 +00006461 hpux9*)
6462 if test "$GCC" = yes; then
6463 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'
6464 else
6465 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'
6466 fi
6467 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6468 hardcode_libdir_separator=:
6469 hardcode_direct=yes
6470
6471 # hardcode_minus_L: Not really in the search PATH,
6472 # but as the default location of the library.
6473 hardcode_minus_L=yes
6474 export_dynamic_flag_spec='${wl}-E'
6475 ;;
6476
6477 hpux10* | hpux11*)
6478 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6479 case "$host_cpu" in
6480 hppa*64*|ia64*)
6481 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6482 ;;
6483 *)
6484 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6485 ;;
6486 esac
6487 else
6488 case "$host_cpu" in
6489 hppa*64*|ia64*)
6490 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6491 ;;
6492 *)
6493 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6494 ;;
6495 esac
6496 fi
6497 if test "$with_gnu_ld" = no; then
6498 case "$host_cpu" in
6499 hppa*64*)
6500 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6501 hardcode_libdir_flag_spec_ld='+b $libdir'
6502 hardcode_libdir_separator=:
6503 hardcode_direct=no
6504 hardcode_shlibpath_var=no
6505 ;;
6506 ia64*)
6507 hardcode_libdir_flag_spec='-L$libdir'
6508 hardcode_direct=no
6509 hardcode_shlibpath_var=no
6510
6511 # hardcode_minus_L: Not really in the search PATH,
6512 # but as the default location of the library.
6513 hardcode_minus_L=yes
6514 ;;
6515 *)
6516 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6517 hardcode_libdir_separator=:
6518 hardcode_direct=yes
6519 export_dynamic_flag_spec='${wl}-E'
6520
6521 # hardcode_minus_L: Not really in the search PATH,
6522 # but as the default location of the library.
6523 hardcode_minus_L=yes
6524 ;;
6525 esac
6526 fi
6527 ;;
6528
6529 irix5* | irix6* | nonstopux*)
6530 if test "$GCC" = yes; then
6531 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'
6532 else
6533 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'
6534 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6535 fi
6536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6537 hardcode_libdir_separator=:
6538 link_all_deplibs=yes
6539 ;;
6540
6541 netbsd* | knetbsd*-gnu)
6542 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6544 else
6545 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6546 fi
6547 hardcode_libdir_flag_spec='-R$libdir'
6548 hardcode_direct=yes
6549 hardcode_shlibpath_var=no
6550 ;;
6551
6552 newsos6)
6553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6554 hardcode_direct=yes
6555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6556 hardcode_libdir_separator=:
6557 hardcode_shlibpath_var=no
6558 ;;
6559
6560 openbsd*)
6561 hardcode_direct=yes
6562 hardcode_shlibpath_var=no
6563 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6564 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6565 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6566 export_dynamic_flag_spec='${wl}-E'
6567 else
6568 case $host_os in
6569 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6571 hardcode_libdir_flag_spec='-R$libdir'
6572 ;;
6573 *)
6574 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6575 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6576 ;;
6577 esac
6578 fi
6579 ;;
6580
6581 os2*)
6582 hardcode_libdir_flag_spec='-L$libdir'
6583 hardcode_minus_L=yes
6584 allow_undefined_flag=unsupported
6585 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'
6586 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6587 ;;
6588
6589 osf3*)
6590 if test "$GCC" = yes; then
6591 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6592 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'
6593 else
6594 allow_undefined_flag=' -expect_unresolved \*'
6595 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'
6596 fi
6597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6598 hardcode_libdir_separator=:
6599 ;;
6600
6601 osf4* | osf5*) # as osf3* with the addition of -msym flag
6602 if test "$GCC" = yes; then
6603 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6604 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'
6605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6606 else
6607 allow_undefined_flag=' -expect_unresolved \*'
6608 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'
6609 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6610 $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'
6611
6612 # Both c and cxx compiler support -rpath directly
6613 hardcode_libdir_flag_spec='-rpath $libdir'
6614 fi
6615 hardcode_libdir_separator=:
6616 ;;
6617
6618 sco3.2v5*)
a.rottmann84e63352003-03-24 09:42:16 +00006619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6620 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006621 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann84e63352003-03-24 09:42:16 +00006622 runpath_var=LD_RUN_PATH
6623 hardcode_runpath_var=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006624 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006625
a.rottmann9bc8b932004-02-29 15:18:31 +00006626 solaris*)
6627 no_undefined_flag=' -z text'
6628 if test "$GCC" = yes; then
6629 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6630 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6631 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6632 else
6633 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6634 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6635 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6636 fi
6637 hardcode_libdir_flag_spec='-R$libdir'
6638 hardcode_shlibpath_var=no
6639 case $host_os in
6640 solaris2.[0-5] | solaris2.[0-5].*) ;;
6641 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6642 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6643 esac
6644 link_all_deplibs=yes
6645 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006646
a.rottmann9bc8b932004-02-29 15:18:31 +00006647 sunos4*)
6648 if test "x$host_vendor" = xsequent; then
6649 # Use $CC to link under sequent, because it throws in some extra .o
6650 # files that make .init and .fini sections work.
6651 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6652 else
6653 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6654 fi
6655 hardcode_libdir_flag_spec='-L$libdir'
6656 hardcode_direct=yes
6657 hardcode_minus_L=yes
6658 hardcode_shlibpath_var=no
6659 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006660
a.rottmann9bc8b932004-02-29 15:18:31 +00006661 sysv4)
6662 case $host_vendor in
6663 sni)
6664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6665 hardcode_direct=yes # is this really true???
6666 ;;
6667 siemens)
6668 ## LD is ld it makes a PLAMLIB
6669 ## CC just makes a GrossModule.
6670 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6671 reload_cmds='$CC -r -o $output$reload_objs'
6672 hardcode_direct=no
6673 ;;
6674 motorola)
6675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6676 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6677 ;;
6678 esac
6679 runpath_var='LD_RUN_PATH'
6680 hardcode_shlibpath_var=no
6681 ;;
6682
6683 sysv4.3*)
6684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6685 hardcode_shlibpath_var=no
6686 export_dynamic_flag_spec='-Bexport'
6687 ;;
6688
6689 sysv4*MP*)
6690 if test -d /usr/nec; then
6691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6692 hardcode_shlibpath_var=no
6693 runpath_var=LD_RUN_PATH
6694 hardcode_runpath_var=yes
6695 ld_shlibs=yes
6696 fi
6697 ;;
6698
6699 sysv4.2uw2*)
6700 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6701 hardcode_direct=yes
6702 hardcode_minus_L=no
6703 hardcode_shlibpath_var=no
6704 hardcode_runpath_var=yes
6705 runpath_var=LD_RUN_PATH
6706 ;;
6707
6708 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6709 no_undefined_flag='${wl}-z ${wl}text'
6710 if test "$GCC" = yes; then
6711 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6712 else
6713 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6714 fi
6715 runpath_var='LD_RUN_PATH'
6716 hardcode_shlibpath_var=no
6717 ;;
6718
6719 sysv5*)
6720 no_undefined_flag=' -z text'
6721 # $CC -shared without GNU ld will not create a library from C++
6722 # object files and a static libstdc++, better avoid it by now
6723 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6724 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6725 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6726 hardcode_libdir_flag_spec=
6727 hardcode_shlibpath_var=no
6728 runpath_var='LD_RUN_PATH'
6729 ;;
6730
6731 uts4*)
6732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6733 hardcode_libdir_flag_spec='-L$libdir'
6734 hardcode_shlibpath_var=no
6735 ;;
6736
6737 *)
6738 ld_shlibs=no
6739 ;;
6740 esac
6741 fi
6742
a.rottmann84e63352003-03-24 09:42:16 +00006743echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6744echo "${ECHO_T}$ld_shlibs" >&6
6745test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006746
a.rottmann9bc8b932004-02-29 15:18:31 +00006747variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6748if test "$GCC" = yes; then
6749 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6750fi
drh71eb93e2001-09-28 01:34:43 +00006751
a.rottmann9bc8b932004-02-29 15:18:31 +00006752#
6753# Do we need to explicitly link libc?
6754#
6755case "x$archive_cmds_need_lc" in
6756x|xyes)
6757 # Assume -lc should be added
6758 archive_cmds_need_lc=yes
6759
6760 if test "$enable_shared" = yes && test "$GCC" = yes; then
6761 case $archive_cmds in
6762 *'~'*)
6763 # FIXME: we may have to deal with multi-command sequences.
6764 ;;
6765 '$CC '*)
6766 # Test whether the compiler implicitly links with -lc since on some
6767 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6768 # to ld, don't add -lc before -lgcc.
6769 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6770echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6771 $rm conftest*
6772 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6773
6774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6775 (eval $ac_compile) 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } 2>conftest.err; then
6779 soname=conftest
6780 lib=conftest
6781 libobjs=conftest.$ac_objext
6782 deplibs=
6783 wl=$lt_prog_compiler_wl
6784 compiler_flags=-v
6785 linker_flags=-v
6786 verstring=
6787 output_objdir=.
6788 libname=conftest
6789 lt_save_allow_undefined_flag=$allow_undefined_flag
6790 allow_undefined_flag=
6791 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6792 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6793 ac_status=$?
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); }
6796 then
6797 archive_cmds_need_lc=no
6798 else
6799 archive_cmds_need_lc=yes
6800 fi
6801 allow_undefined_flag=$lt_save_allow_undefined_flag
6802 else
6803 cat conftest.err 1>&5
6804 fi
6805 $rm conftest*
6806 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6807echo "${ECHO_T}$archive_cmds_need_lc" >&6
6808 ;;
6809 esac
drh71eb93e2001-09-28 01:34:43 +00006810 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006811 ;;
6812esac
drh71eb93e2001-09-28 01:34:43 +00006813
a.rottmann84e63352003-03-24 09:42:16 +00006814echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
drh71eb93e2001-09-28 01:34:43 +00006815echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6816library_names_spec=
6817libname_spec='lib$name'
6818soname_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00006819shrext=".so"
drh71eb93e2001-09-28 01:34:43 +00006820postinstall_cmds=
6821postuninstall_cmds=
6822finish_cmds=
6823finish_eval=
6824shlibpath_var=
6825shlibpath_overrides_runpath=unknown
6826version_type=none
6827dynamic_linker="$host_os ld.so"
6828sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00006829if test "$GCC" = yes; then
6830 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6831 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6832 # if the path contains ";" then we assume it to be the separator
6833 # otherwise default to the standard path separator (i.e. ":") - it is
6834 # assumed that no part of a normal pathname contains ";" but that should
6835 # okay in the real world where ";" in dirpaths is itself problematic.
6836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6837 else
6838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6839 fi
6840else
6841 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6842fi
6843need_lib_prefix=unknown
6844hardcode_into_libs=no
6845
6846# when you set need_version to no, make sure it does not cause -set_version
6847# flags to be left without arguments
6848need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00006849
6850case $host_os in
6851aix3*)
6852 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00006853 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00006854 shlibpath_var=LIBPATH
6855
a.rottmann9bc8b932004-02-29 15:18:31 +00006856 # AIX 3 has no versioning support, so we append a major version to the name.
6857 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00006858 ;;
6859
6860aix4* | aix5*)
6861 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00006862 need_lib_prefix=no
6863 need_version=no
6864 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00006865 if test "$host_cpu" = ia64; then
6866 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00006867 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00006868 shlibpath_var=LD_LIBRARY_PATH
6869 else
6870 # With GCC up to 2.95.x, collect2 would create an import file
6871 # for dependence libraries. The import file would start with
6872 # the line `#! .'. This would cause the generated library to
6873 # depend on `.', always an invalid library. This was fixed in
6874 # development snapshots of GCC prior to 3.0.
6875 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00006876 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006877 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6878 echo ' yes '
6879 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6880 :
6881 else
6882 can_build_shared=no
6883 fi
6884 ;;
drh71eb93e2001-09-28 01:34:43 +00006885 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006886 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6887 # soname into executable. Probably we can add versioning support to
6888 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00006889 if test "$aix_use_runtimelinking" = yes; then
6890 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6891 # instead of lib<name>.a to let people know that these are not
6892 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00006893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00006894 else
6895 # We preserve .a as extension for shared libraries through AIX4.2
6896 # and later when we are not doing run time linking.
6897 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00006898 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00006899 fi
6900 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00006901 fi
6902 ;;
6903
6904amigaos*)
6905 library_names_spec='$libname.ixlibrary $libname.a'
6906 # Create ${libname}_ixlibrary.a entries in /sys/libs.
a.rottmann9bc8b932004-02-29 15:18:31 +00006907 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'
drh71eb93e2001-09-28 01:34:43 +00006908 ;;
6909
6910beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006911 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00006912 dynamic_linker="$host_os ld.so"
6913 shlibpath_var=LIBRARY_PATH
6914 ;;
6915
6916bsdi4*)
6917 version_type=linux
6918 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6920 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00006921 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6922 shlibpath_var=LD_LIBRARY_PATH
6923 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6924 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6925 # the default ld.so.conf also contains /usr/contrib/lib and
6926 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6927 # libtool to hard-code these into programs
6928 ;;
6929
6930cygwin* | mingw* | pw32*)
6931 version_type=windows
a.rottmann9bc8b932004-02-29 15:18:31 +00006932 shrext=".dll"
drh71eb93e2001-09-28 01:34:43 +00006933 need_version=no
6934 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006935
drh71eb93e2001-09-28 01:34:43 +00006936 case $GCC,$host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006937 yes,cygwin* | yes,mingw* | yes,pw32*)
drh71eb93e2001-09-28 01:34:43 +00006938 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00006939 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6940 postinstall_cmds='base_file=`basename \${file}`~
6941 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00006942 dldir=$destdir/`dirname \$dlpath`~
6943 test -d \$dldir || mkdir -p \$dldir~
a.rottmann9bc8b932004-02-29 15:18:31 +00006944 $install_prog $dir/$dlname \$dldir/$dlname'
6945 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00006946 dlpath=$dir/\$dldll~
6947 $rm \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00006948 shlibpath_overrides_runpath=yes
6949
6950 case $host_os in
6951 cygwin*)
6952 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6953 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6954 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6955 ;;
6956 mingw*)
6957 # MinGW DLLs use traditional 'lib' prefix
6958 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6959 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6960 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6961 # It is most probably a Windows format PATH printed by
6962 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6963 # path with ; separators, and with drive letters. We can handle the
6964 # drive letters (cygwin fileutils understands them), so leave them,
6965 # especially as we might pass files found there to a mingw objdump,
6966 # which wouldn't understand a cygwinified path. Ahh.
6967 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6968 else
6969 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6970 fi
6971 ;;
6972 pw32*)
6973 # pw32 DLLs use 'pw' prefix rather than 'lib'
6974 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6975 ;;
6976 esac
drh71eb93e2001-09-28 01:34:43 +00006977 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006978
drh71eb93e2001-09-28 01:34:43 +00006979 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006980 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00006981 ;;
6982 esac
6983 dynamic_linker='Win32 ld.exe'
6984 # FIXME: first we should search . and the directory the executable is in
6985 shlibpath_var=PATH
6986 ;;
6987
6988darwin* | rhapsody*)
6989 dynamic_linker="$host_os dyld"
6990 version_type=darwin
6991 need_lib_prefix=no
6992 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006993 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6994 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00006995 shlibpath_overrides_runpath=yes
6996 shlibpath_var=DYLD_LIBRARY_PATH
a.rottmann9bc8b932004-02-29 15:18:31 +00006997 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6998 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6999 if test "$GCC" = yes; then
7000 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"`
7001 else
7002 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7003 fi
7004 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7005 ;;
7006
7007dgux*)
7008 version_type=linux
7009 need_lib_prefix=no
7010 need_version=no
7011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7012 soname_spec='${libname}${release}${shared_ext}$major'
7013 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00007014 ;;
7015
a.rottmann84e63352003-03-24 09:42:16 +00007016freebsd1*)
7017 dynamic_linker=no
7018 ;;
7019
a.rottmann9bc8b932004-02-29 15:18:31 +00007020kfreebsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00007021 version_type=linux
7022 need_lib_prefix=no
7023 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7025 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007026 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00007027 shlibpath_overrides_runpath=no
7028 hardcode_into_libs=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007029 dynamic_linker='GNU ld.so'
drh71eb93e2001-09-28 01:34:43 +00007030 ;;
7031
7032freebsd*)
7033 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7034 version_type=freebsd-$objformat
7035 case $version_type in
7036 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007038 need_version=no
7039 need_lib_prefix=no
7040 ;;
7041 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007042 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007043 need_version=yes
7044 ;;
7045 esac
7046 shlibpath_var=LD_LIBRARY_PATH
7047 case $host_os in
7048 freebsd2*)
7049 shlibpath_overrides_runpath=yes
7050 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007051 freebsd3.01* | freebsdelf3.01*)
7052 shlibpath_overrides_runpath=yes
7053 hardcode_into_libs=yes
7054 ;;
7055 *) # from 3.2 on
drh71eb93e2001-09-28 01:34:43 +00007056 shlibpath_overrides_runpath=no
7057 hardcode_into_libs=yes
7058 ;;
7059 esac
7060 ;;
7061
7062gnu*)
7063 version_type=linux
7064 need_lib_prefix=no
7065 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7067 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007068 shlibpath_var=LD_LIBRARY_PATH
7069 hardcode_into_libs=yes
7070 ;;
7071
7072hpux9* | hpux10* | hpux11*)
7073 # Give a soname corresponding to the major version so that dld.sl refuses to
7074 # link against other versions.
7075 version_type=sunos
7076 need_lib_prefix=no
7077 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007078 case "$host_cpu" in
7079 ia64*)
7080 shrext='.so'
7081 hardcode_into_libs=yes
7082 dynamic_linker="$host_os dld.so"
7083 shlibpath_var=LD_LIBRARY_PATH
7084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7086 soname_spec='${libname}${release}${shared_ext}$major'
7087 if test "X$HPUX_IA64_MODE" = X32; then
7088 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7089 else
7090 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7091 fi
7092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7093 ;;
7094 hppa*64*)
7095 shrext='.sl'
7096 hardcode_into_libs=yes
7097 dynamic_linker="$host_os dld.sl"
7098 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7101 soname_spec='${libname}${release}${shared_ext}$major'
7102 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7104 ;;
7105 *)
7106 shrext='.sl'
7107 dynamic_linker="$host_os dld.sl"
7108 shlibpath_var=SHLIB_PATH
7109 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7111 soname_spec='${libname}${release}${shared_ext}$major'
7112 ;;
7113 esac
drh71eb93e2001-09-28 01:34:43 +00007114 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7115 postinstall_cmds='chmod 555 $lib'
7116 ;;
7117
a.rottmann84e63352003-03-24 09:42:16 +00007118irix5* | irix6* | nonstopux*)
7119 case $host_os in
7120 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007121 *)
7122 if test "$lt_cv_prog_gnu_ld" = yes; then
7123 version_type=linux
7124 else
7125 version_type=irix
7126 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00007127 esac
drh71eb93e2001-09-28 01:34:43 +00007128 need_lib_prefix=no
7129 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007130 soname_spec='${libname}${release}${shared_ext}$major'
7131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007132 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00007133 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00007134 libsuff= shlibsuff=
7135 ;;
7136 *)
7137 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00007138 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7139 libsuff= shlibsuff= libmagic=32-bit;;
7140 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7141 libsuff=32 shlibsuff=N32 libmagic=N32;;
7142 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7143 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00007144 *) libsuff= shlibsuff= libmagic=never-match;;
7145 esac
7146 ;;
7147 esac
7148 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7149 shlibpath_overrides_runpath=no
7150 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7151 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00007152 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00007153 ;;
7154
7155# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00007156linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00007157 dynamic_linker=no
7158 ;;
7159
7160# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00007161linux*)
drh71eb93e2001-09-28 01:34:43 +00007162 version_type=linux
7163 need_lib_prefix=no
7164 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7166 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7168 shlibpath_var=LD_LIBRARY_PATH
7169 shlibpath_overrides_runpath=no
7170 # This implies no fast_install, which is unacceptable.
7171 # Some rework will be needed to allow for fast_install
7172 # before this can be enabled.
7173 hardcode_into_libs=yes
7174
a.rottmann9bc8b932004-02-29 15:18:31 +00007175 # Append ld.so.conf contents to the search path
7176 if test -f /etc/ld.so.conf; then
7177 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7178 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7179 fi
7180
drh71eb93e2001-09-28 01:34:43 +00007181 # We used to test for /lib/ld.so.1 and disable shared libraries on
7182 # powerpc, because MkLinux only supported shared libraries with the
7183 # GNU dynamic linker. Since this was broken with cross compilers,
7184 # most powerpc-linux boxes support dynamic linking these days and
7185 # people can always --disable-shared, the test was removed, and we
7186 # assume the GNU/Linux dynamic linker is in use.
7187 dynamic_linker='GNU/Linux ld.so'
7188 ;;
7189
a.rottmann9bc8b932004-02-29 15:18:31 +00007190knetbsd*-gnu)
7191 version_type=linux
7192 need_lib_prefix=no
7193 need_version=no
7194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7195 soname_spec='${libname}${release}${shared_ext}$major'
7196 shlibpath_var=LD_LIBRARY_PATH
7197 shlibpath_overrides_runpath=no
7198 hardcode_into_libs=yes
7199 dynamic_linker='GNU ld.so'
7200 ;;
7201
drh71eb93e2001-09-28 01:34:43 +00007202netbsd*)
7203 version_type=sunos
7204 need_lib_prefix=no
7205 need_version=no
7206 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7209 dynamic_linker='NetBSD (a.out) ld.so'
7210 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7212 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007213 dynamic_linker='NetBSD ld.elf_so'
7214 fi
7215 shlibpath_var=LD_LIBRARY_PATH
7216 shlibpath_overrides_runpath=yes
7217 hardcode_into_libs=yes
7218 ;;
7219
7220newsos6)
7221 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7223 shlibpath_var=LD_LIBRARY_PATH
7224 shlibpath_overrides_runpath=yes
7225 ;;
7226
7227nto-qnx*)
7228 version_type=linux
7229 need_lib_prefix=no
7230 need_version=no
7231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7232 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007233 shlibpath_var=LD_LIBRARY_PATH
7234 shlibpath_overrides_runpath=yes
7235 ;;
7236
drh71eb93e2001-09-28 01:34:43 +00007237openbsd*)
7238 version_type=sunos
a.rottmann84e63352003-03-24 09:42:16 +00007239 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007240 need_version=yes
7241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7242 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7243 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00007244 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007245 case $host_os in
7246 openbsd2.[89] | openbsd2.[89].*)
7247 shlibpath_overrides_runpath=no
7248 ;;
7249 *)
7250 shlibpath_overrides_runpath=yes
7251 ;;
7252 esac
a.rottmann84e63352003-03-24 09:42:16 +00007253 else
7254 shlibpath_overrides_runpath=yes
7255 fi
drh71eb93e2001-09-28 01:34:43 +00007256 ;;
7257
7258os2*)
7259 libname_spec='$name'
a.rottmann9bc8b932004-02-29 15:18:31 +00007260 shrext=".dll"
drh71eb93e2001-09-28 01:34:43 +00007261 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007262 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00007263 dynamic_linker='OS/2 ld.exe'
7264 shlibpath_var=LIBPATH
7265 ;;
7266
7267osf3* | osf4* | osf5*)
7268 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00007269 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007270 need_version=no
7271 soname_spec='${libname}${release}${shared_ext}$major'
7272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007273 shlibpath_var=LD_LIBRARY_PATH
7274 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7275 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7276 ;;
7277
7278sco3.2v5*)
7279 version_type=osf
a.rottmann9bc8b932004-02-29 15:18:31 +00007280 soname_spec='${libname}${release}${shared_ext}$major'
7281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007282 shlibpath_var=LD_LIBRARY_PATH
7283 ;;
7284
7285solaris*)
7286 version_type=linux
7287 need_lib_prefix=no
7288 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7290 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007291 shlibpath_var=LD_LIBRARY_PATH
7292 shlibpath_overrides_runpath=yes
7293 hardcode_into_libs=yes
7294 # ldd complains unless libraries are executable
7295 postinstall_cmds='chmod +x $lib'
7296 ;;
7297
7298sunos4*)
7299 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00007300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007301 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7302 shlibpath_var=LD_LIBRARY_PATH
7303 shlibpath_overrides_runpath=yes
7304 if test "$with_gnu_ld" = yes; then
7305 need_lib_prefix=no
7306 fi
7307 need_version=yes
7308 ;;
7309
7310sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7311 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7313 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007314 shlibpath_var=LD_LIBRARY_PATH
7315 case $host_vendor in
7316 sni)
7317 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00007318 need_lib_prefix=no
7319 export_dynamic_flag_spec='${wl}-Blargedynsym'
7320 runpath_var=LD_RUN_PATH
7321 ;;
7322 siemens)
7323 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00007324 ;;
7325 motorola)
7326 need_lib_prefix=no
7327 need_version=no
7328 shlibpath_overrides_runpath=no
7329 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7330 ;;
7331 esac
7332 ;;
7333
7334sysv4*MP*)
7335 if test -d /usr/nec ;then
7336 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007337 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7338 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00007339 shlibpath_var=LD_LIBRARY_PATH
7340 fi
7341 ;;
7342
a.rottmann9bc8b932004-02-29 15:18:31 +00007343uts4*)
7344 version_type=linux
7345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7346 soname_spec='${libname}${release}${shared_ext}$major'
7347 shlibpath_var=LD_LIBRARY_PATH
7348 ;;
7349
drh71eb93e2001-09-28 01:34:43 +00007350*)
7351 dynamic_linker=no
7352 ;;
7353esac
a.rottmann84e63352003-03-24 09:42:16 +00007354echo "$as_me:$LINENO: result: $dynamic_linker" >&5
drh71eb93e2001-09-28 01:34:43 +00007355echo "${ECHO_T}$dynamic_linker" >&6
7356test "$dynamic_linker" = no && can_build_shared=no
7357
a.rottmann9bc8b932004-02-29 15:18:31 +00007358echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7359echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7360hardcode_action=
7361if test -n "$hardcode_libdir_flag_spec" || \
7362 test -n "$runpath_var " || \
7363 test "X$hardcode_automatic"="Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00007364
a.rottmann9bc8b932004-02-29 15:18:31 +00007365 # We can hardcode non-existant directories.
7366 if test "$hardcode_direct" != no &&
7367 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7368 # have to relink, otherwise we might link with an installed library
7369 # when we should be linking with a yet-to-be-installed one
7370 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7371 test "$hardcode_minus_L" != no; then
7372 # Linking always hardcodes the temporary library directory.
7373 hardcode_action=relink
7374 else
7375 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7376 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00007377 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007378else
7379 # We cannot hardcode anything, or else we can only hardcode existing
7380 # directories.
7381 hardcode_action=unsupported
7382fi
7383echo "$as_me:$LINENO: result: $hardcode_action" >&5
7384echo "${ECHO_T}$hardcode_action" >&6
a.rottmann84e63352003-03-24 09:42:16 +00007385
7386if test "$hardcode_action" = relink; then
7387 # Fast installation is not supported
7388 enable_fast_install=no
7389elif test "$shlibpath_overrides_runpath" = yes ||
7390 test "$enable_shared" = no; then
7391 # Fast installation is not necessary
7392 enable_fast_install=needless
7393fi
7394
a.rottmann9bc8b932004-02-29 15:18:31 +00007395striplib=
7396old_striplib=
7397echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7398echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7399if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7400 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7401 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7402 echo "$as_me:$LINENO: result: yes" >&5
7403echo "${ECHO_T}yes" >&6
7404else
7405# FIXME - insert some real tests, host_os isn't really good enough
7406 case $host_os in
7407 darwin*)
7408 if test -n "$STRIP" ; then
7409 striplib="$STRIP -x"
7410 echo "$as_me:$LINENO: result: yes" >&5
7411echo "${ECHO_T}yes" >&6
7412 else
7413 echo "$as_me:$LINENO: result: no" >&5
7414echo "${ECHO_T}no" >&6
7415fi
7416 ;;
7417 *)
7418 echo "$as_me:$LINENO: result: no" >&5
7419echo "${ECHO_T}no" >&6
7420 ;;
7421 esac
a.rottmann84e63352003-03-24 09:42:16 +00007422fi
7423
drh71eb93e2001-09-28 01:34:43 +00007424if test "x$enable_dlopen" != xyes; then
7425 enable_dlopen=unknown
7426 enable_dlopen_self=unknown
7427 enable_dlopen_self_static=unknown
7428else
7429 lt_cv_dlopen=no
7430 lt_cv_dlopen_libs=
7431
7432 case $host_os in
7433 beos*)
7434 lt_cv_dlopen="load_add_on"
7435 lt_cv_dlopen_libs=
7436 lt_cv_dlopen_self=yes
7437 ;;
7438
a.rottmann9bc8b932004-02-29 15:18:31 +00007439 mingw* | pw32*)
drh71eb93e2001-09-28 01:34:43 +00007440 lt_cv_dlopen="LoadLibrary"
7441 lt_cv_dlopen_libs=
7442 ;;
7443
a.rottmann9bc8b932004-02-29 15:18:31 +00007444 cygwin*)
7445 lt_cv_dlopen="dlopen"
7446 lt_cv_dlopen_libs=
7447 ;;
7448
7449 darwin*)
7450 # if libdl is installed we need to link against it
7451 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7452echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7453if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7455else
7456 ac_check_lib_save_LIBS=$LIBS
7457LIBS="-ldl $LIBS"
7458cat >conftest.$ac_ext <<_ACEOF
7459/* confdefs.h. */
7460_ACEOF
7461cat confdefs.h >>conftest.$ac_ext
7462cat >>conftest.$ac_ext <<_ACEOF
7463/* end confdefs.h. */
7464
7465/* Override any gcc2 internal prototype to avoid an error. */
7466#ifdef __cplusplus
7467extern "C"
7468#endif
7469/* We use char because int might match the return type of a gcc2
7470 builtin and then its argument prototype would still apply. */
7471char dlopen ();
7472int
7473main ()
7474{
7475dlopen ();
7476 ;
7477 return 0;
7478}
7479_ACEOF
7480rm -f conftest.$ac_objext conftest$ac_exeext
7481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7482 (eval $ac_link) 2>conftest.er1
7483 ac_status=$?
7484 grep -v '^ *+' conftest.er1 >conftest.err
7485 rm -f conftest.er1
7486 cat conftest.err >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007489 { ac_try='test -z "$ac_c_werror_flag"
7490 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00007491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492 (eval $ac_try) 2>&5
7493 ac_status=$?
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; } &&
7496 { ac_try='test -s conftest$ac_exeext'
7497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498 (eval $ac_try) 2>&5
7499 ac_status=$?
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); }; }; then
7502 ac_cv_lib_dl_dlopen=yes
7503else
7504 echo "$as_me: failed program was:" >&5
7505sed 's/^/| /' conftest.$ac_ext >&5
7506
7507ac_cv_lib_dl_dlopen=no
7508fi
7509rm -f conftest.err conftest.$ac_objext \
7510 conftest$ac_exeext conftest.$ac_ext
7511LIBS=$ac_check_lib_save_LIBS
7512fi
7513echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7514echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7515if test $ac_cv_lib_dl_dlopen = yes; then
7516 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7517else
7518
7519 lt_cv_dlopen="dyld"
7520 lt_cv_dlopen_libs=
7521 lt_cv_dlopen_self=yes
7522
7523fi
7524
7525 ;;
7526
drh71eb93e2001-09-28 01:34:43 +00007527 *)
a.rottmann84e63352003-03-24 09:42:16 +00007528 echo "$as_me:$LINENO: checking for shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00007529echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7530if test "${ac_cv_func_shl_load+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7532else
7533 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007534/* confdefs.h. */
7535_ACEOF
7536cat confdefs.h >>conftest.$ac_ext
7537cat >>conftest.$ac_ext <<_ACEOF
7538/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00007539/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7541#define shl_load innocuous_shl_load
7542
drh71eb93e2001-09-28 01:34:43 +00007543/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00007544 which can conflict with char shl_load (); below.
7545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7546 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00007547
a.rottmann84e63352003-03-24 09:42:16 +00007548#ifdef __STDC__
7549# include <limits.h>
7550#else
7551# include <assert.h>
7552#endif
a.rottmann964dbb12004-02-26 19:47:42 +00007553
7554#undef shl_load
7555
drh71eb93e2001-09-28 01:34:43 +00007556/* Override any gcc2 internal prototype to avoid an error. */
7557#ifdef __cplusplus
7558extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00007559{
drh71eb93e2001-09-28 01:34:43 +00007560#endif
7561/* We use char because int might match the return type of a gcc2
7562 builtin and then its argument prototype would still apply. */
7563char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00007564/* The GNU C library defines this for functions which it implements
7565 to always fail with ENOSYS. Some functions are actually named
7566 something starting with __ and the normal name is an alias. */
7567#if defined (__stub_shl_load) || defined (__stub___shl_load)
7568choke me
7569#else
a.rottmann84e63352003-03-24 09:42:16 +00007570char (*f) () = shl_load;
7571#endif
7572#ifdef __cplusplus
7573}
drh71eb93e2001-09-28 01:34:43 +00007574#endif
7575
a.rottmann84e63352003-03-24 09:42:16 +00007576int
7577main ()
7578{
7579return f != shl_load;
drh71eb93e2001-09-28 01:34:43 +00007580 ;
7581 return 0;
7582}
7583_ACEOF
7584rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007586 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007587 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007588 grep -v '^ *+' conftest.er1 >conftest.err
7589 rm -f conftest.er1
7590 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007592 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007593 { ac_try='test -z "$ac_c_werror_flag"
7594 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596 (eval $ac_try) 2>&5
7597 ac_status=$?
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; } &&
7600 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007602 (eval $ac_try) 2>&5
7603 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007605 (exit $ac_status); }; }; then
7606 ac_cv_func_shl_load=yes
7607else
7608 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007609sed 's/^/| /' conftest.$ac_ext >&5
7610
drh71eb93e2001-09-28 01:34:43 +00007611ac_cv_func_shl_load=no
7612fi
a.rottmann964dbb12004-02-26 19:47:42 +00007613rm -f conftest.err conftest.$ac_objext \
7614 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007615fi
a.rottmann84e63352003-03-24 09:42:16 +00007616echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00007617echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7618if test $ac_cv_func_shl_load = yes; then
7619 lt_cv_dlopen="shl_load"
7620else
a.rottmann84e63352003-03-24 09:42:16 +00007621 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
drh71eb93e2001-09-28 01:34:43 +00007622echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7623if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7625else
7626 ac_check_lib_save_LIBS=$LIBS
7627LIBS="-ldld $LIBS"
7628cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007629/* confdefs.h. */
7630_ACEOF
7631cat confdefs.h >>conftest.$ac_ext
7632cat >>conftest.$ac_ext <<_ACEOF
7633/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007634
7635/* Override any gcc2 internal prototype to avoid an error. */
7636#ifdef __cplusplus
7637extern "C"
7638#endif
7639/* We use char because int might match the return type of a gcc2
7640 builtin and then its argument prototype would still apply. */
7641char shl_load ();
7642int
7643main ()
7644{
7645shl_load ();
7646 ;
7647 return 0;
7648}
7649_ACEOF
7650rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007652 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007653 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007654 grep -v '^ *+' conftest.er1 >conftest.err
7655 rm -f conftest.er1
7656 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007658 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007659 { ac_try='test -z "$ac_c_werror_flag"
7660 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662 (eval $ac_try) 2>&5
7663 ac_status=$?
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); }; } &&
7666 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007668 (eval $ac_try) 2>&5
7669 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007671 (exit $ac_status); }; }; then
7672 ac_cv_lib_dld_shl_load=yes
7673else
7674 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007675sed 's/^/| /' conftest.$ac_ext >&5
7676
drh71eb93e2001-09-28 01:34:43 +00007677ac_cv_lib_dld_shl_load=no
7678fi
a.rottmann964dbb12004-02-26 19:47:42 +00007679rm -f conftest.err conftest.$ac_objext \
7680 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007681LIBS=$ac_check_lib_save_LIBS
7682fi
a.rottmann84e63352003-03-24 09:42:16 +00007683echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00007684echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7685if test $ac_cv_lib_dld_shl_load = yes; then
7686 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7687else
a.rottmann84e63352003-03-24 09:42:16 +00007688 echo "$as_me:$LINENO: checking for dlopen" >&5
7689echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7690if test "${ac_cv_func_dlopen+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7692else
7693 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007694/* confdefs.h. */
7695_ACEOF
7696cat confdefs.h >>conftest.$ac_ext
7697cat >>conftest.$ac_ext <<_ACEOF
7698/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00007699/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7701#define dlopen innocuous_dlopen
7702
a.rottmann84e63352003-03-24 09:42:16 +00007703/* System header to define __stub macros and hopefully few prototypes,
7704 which can conflict with char dlopen (); below.
7705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7706 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00007707
a.rottmann84e63352003-03-24 09:42:16 +00007708#ifdef __STDC__
7709# include <limits.h>
7710#else
7711# include <assert.h>
7712#endif
a.rottmann964dbb12004-02-26 19:47:42 +00007713
7714#undef dlopen
7715
a.rottmann84e63352003-03-24 09:42:16 +00007716/* Override any gcc2 internal prototype to avoid an error. */
7717#ifdef __cplusplus
7718extern "C"
7719{
7720#endif
7721/* We use char because int might match the return type of a gcc2
7722 builtin and then its argument prototype would still apply. */
7723char dlopen ();
7724/* The GNU C library defines this for functions which it implements
7725 to always fail with ENOSYS. Some functions are actually named
7726 something starting with __ and the normal name is an alias. */
7727#if defined (__stub_dlopen) || defined (__stub___dlopen)
7728choke me
7729#else
7730char (*f) () = dlopen;
7731#endif
7732#ifdef __cplusplus
7733}
7734#endif
7735
7736int
7737main ()
7738{
7739return f != dlopen;
7740 ;
7741 return 0;
7742}
7743_ACEOF
7744rm -f conftest.$ac_objext conftest$ac_exeext
7745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007746 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007747 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007748 grep -v '^ *+' conftest.er1 >conftest.err
7749 rm -f conftest.er1
7750 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007753 { ac_try='test -z "$ac_c_werror_flag"
7754 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 (eval $ac_try) 2>&5
7757 ac_status=$?
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; } &&
7760 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762 (eval $ac_try) 2>&5
7763 ac_status=$?
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 ac_cv_func_dlopen=yes
7767else
7768 echo "$as_me: failed program was:" >&5
7769sed 's/^/| /' conftest.$ac_ext >&5
7770
7771ac_cv_func_dlopen=no
7772fi
a.rottmann964dbb12004-02-26 19:47:42 +00007773rm -f conftest.err conftest.$ac_objext \
7774 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007775fi
7776echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7777echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7778if test $ac_cv_func_dlopen = yes; then
7779 lt_cv_dlopen="dlopen"
7780else
7781 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh71eb93e2001-09-28 01:34:43 +00007782echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7783if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7785else
7786 ac_check_lib_save_LIBS=$LIBS
7787LIBS="-ldl $LIBS"
7788cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007789/* confdefs.h. */
7790_ACEOF
7791cat confdefs.h >>conftest.$ac_ext
7792cat >>conftest.$ac_ext <<_ACEOF
7793/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007794
7795/* Override any gcc2 internal prototype to avoid an error. */
7796#ifdef __cplusplus
7797extern "C"
7798#endif
7799/* We use char because int might match the return type of a gcc2
7800 builtin and then its argument prototype would still apply. */
7801char dlopen ();
7802int
7803main ()
7804{
7805dlopen ();
7806 ;
7807 return 0;
7808}
7809_ACEOF
7810rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007812 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007813 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007814 grep -v '^ *+' conftest.er1 >conftest.err
7815 rm -f conftest.er1
7816 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007818 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007819 { ac_try='test -z "$ac_c_werror_flag"
7820 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822 (eval $ac_try) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; } &&
7826 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007828 (eval $ac_try) 2>&5
7829 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007831 (exit $ac_status); }; }; then
7832 ac_cv_lib_dl_dlopen=yes
7833else
7834 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007835sed 's/^/| /' conftest.$ac_ext >&5
7836
drh71eb93e2001-09-28 01:34:43 +00007837ac_cv_lib_dl_dlopen=no
7838fi
a.rottmann964dbb12004-02-26 19:47:42 +00007839rm -f conftest.err conftest.$ac_objext \
7840 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007841LIBS=$ac_check_lib_save_LIBS
7842fi
a.rottmann84e63352003-03-24 09:42:16 +00007843echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00007844echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7845if test $ac_cv_lib_dl_dlopen = yes; then
7846 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7847else
a.rottmann84e63352003-03-24 09:42:16 +00007848 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
drh71eb93e2001-09-28 01:34:43 +00007849echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7850if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7852else
7853 ac_check_lib_save_LIBS=$LIBS
7854LIBS="-lsvld $LIBS"
7855cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007856/* confdefs.h. */
7857_ACEOF
7858cat confdefs.h >>conftest.$ac_ext
7859cat >>conftest.$ac_ext <<_ACEOF
7860/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007861
7862/* Override any gcc2 internal prototype to avoid an error. */
7863#ifdef __cplusplus
7864extern "C"
7865#endif
7866/* We use char because int might match the return type of a gcc2
7867 builtin and then its argument prototype would still apply. */
7868char dlopen ();
7869int
7870main ()
7871{
7872dlopen ();
7873 ;
7874 return 0;
7875}
7876_ACEOF
7877rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007879 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007880 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007881 grep -v '^ *+' conftest.er1 >conftest.err
7882 rm -f conftest.er1
7883 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007885 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007886 { ac_try='test -z "$ac_c_werror_flag"
7887 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 (eval $ac_try) 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; } &&
7893 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007895 (eval $ac_try) 2>&5
7896 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007898 (exit $ac_status); }; }; then
7899 ac_cv_lib_svld_dlopen=yes
7900else
7901 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007902sed 's/^/| /' conftest.$ac_ext >&5
7903
drh71eb93e2001-09-28 01:34:43 +00007904ac_cv_lib_svld_dlopen=no
7905fi
a.rottmann964dbb12004-02-26 19:47:42 +00007906rm -f conftest.err conftest.$ac_objext \
7907 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007908LIBS=$ac_check_lib_save_LIBS
7909fi
a.rottmann84e63352003-03-24 09:42:16 +00007910echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00007911echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7912if test $ac_cv_lib_svld_dlopen = yes; then
7913 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00007914else
7915 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7916echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7917if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7919else
7920 ac_check_lib_save_LIBS=$LIBS
7921LIBS="-ldld $LIBS"
7922cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007923/* confdefs.h. */
7924_ACEOF
7925cat confdefs.h >>conftest.$ac_ext
7926cat >>conftest.$ac_ext <<_ACEOF
7927/* end confdefs.h. */
7928
7929/* Override any gcc2 internal prototype to avoid an error. */
7930#ifdef __cplusplus
7931extern "C"
7932#endif
7933/* We use char because int might match the return type of a gcc2
7934 builtin and then its argument prototype would still apply. */
7935char dld_link ();
7936int
7937main ()
7938{
7939dld_link ();
7940 ;
7941 return 0;
7942}
7943_ACEOF
7944rm -f conftest.$ac_objext conftest$ac_exeext
7945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007946 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007947 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007948 grep -v '^ *+' conftest.er1 >conftest.err
7949 rm -f conftest.er1
7950 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007953 { ac_try='test -z "$ac_c_werror_flag"
7954 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956 (eval $ac_try) 2>&5
7957 ac_status=$?
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; } &&
7960 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962 (eval $ac_try) 2>&5
7963 ac_status=$?
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; }; then
7966 ac_cv_lib_dld_dld_link=yes
7967else
7968 echo "$as_me: failed program was:" >&5
7969sed 's/^/| /' conftest.$ac_ext >&5
7970
7971ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00007972fi
a.rottmann964dbb12004-02-26 19:47:42 +00007973rm -f conftest.err conftest.$ac_objext \
7974 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007975LIBS=$ac_check_lib_save_LIBS
7976fi
7977echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7978echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7979if test $ac_cv_lib_dld_dld_link = yes; then
7980 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7981fi
7982
drh71eb93e2001-09-28 01:34:43 +00007983
7984fi
7985
drh71eb93e2001-09-28 01:34:43 +00007986
7987fi
7988
a.rottmann84e63352003-03-24 09:42:16 +00007989
7990fi
7991
7992
7993fi
7994
7995
drh71eb93e2001-09-28 01:34:43 +00007996fi
7997
7998 ;;
7999 esac
8000
8001 if test "x$lt_cv_dlopen" != xno; then
8002 enable_dlopen=yes
8003 else
8004 enable_dlopen=no
8005 fi
8006
8007 case $lt_cv_dlopen in
8008 dlopen)
8009 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00008010 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00008011
8012 save_LDFLAGS="$LDFLAGS"
8013 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8014
8015 save_LIBS="$LIBS"
8016 LIBS="$lt_cv_dlopen_libs $LIBS"
8017
a.rottmann84e63352003-03-24 09:42:16 +00008018 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
drh71eb93e2001-09-28 01:34:43 +00008019echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8020if test "${lt_cv_dlopen_self+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8022else
8023 if test "$cross_compiling" = yes; then :
8024 lt_cv_dlopen_self=cross
8025else
a.rottmann9bc8b932004-02-29 15:18:31 +00008026 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00008027 lt_status=$lt_dlunknown
8028 cat > conftest.$ac_ext <<EOF
dougcurrie0f290bf2004-06-21 18:57:29 +00008029#line 8029 "configure"
drh71eb93e2001-09-28 01:34:43 +00008030#include "confdefs.h"
8031
8032#if HAVE_DLFCN_H
8033#include <dlfcn.h>
8034#endif
8035
8036#include <stdio.h>
8037
8038#ifdef RTLD_GLOBAL
8039# define LT_DLGLOBAL RTLD_GLOBAL
8040#else
8041# ifdef DL_GLOBAL
8042# define LT_DLGLOBAL DL_GLOBAL
8043# else
8044# define LT_DLGLOBAL 0
8045# endif
8046#endif
8047
8048/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8049 find out it does not work in some platform. */
8050#ifndef LT_DLLAZY_OR_NOW
8051# ifdef RTLD_LAZY
8052# define LT_DLLAZY_OR_NOW RTLD_LAZY
8053# else
8054# ifdef DL_LAZY
8055# define LT_DLLAZY_OR_NOW DL_LAZY
8056# else
8057# ifdef RTLD_NOW
8058# define LT_DLLAZY_OR_NOW RTLD_NOW
8059# else
8060# ifdef DL_NOW
8061# define LT_DLLAZY_OR_NOW DL_NOW
8062# else
8063# define LT_DLLAZY_OR_NOW 0
8064# endif
8065# endif
8066# endif
8067# endif
8068#endif
8069
8070#ifdef __cplusplus
8071extern "C" void exit (int);
8072#endif
8073
8074void fnord() { int i=42;}
8075int main ()
8076{
8077 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8078 int status = $lt_dlunknown;
8079
8080 if (self)
8081 {
8082 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8083 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8084 /* dlclose (self); */
8085 }
8086
8087 exit (status);
8088}
8089EOF
a.rottmann84e63352003-03-24 09:42:16 +00008090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008091 (eval $ac_link) 2>&5
8092 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008094 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8095 (./conftest; exit; ) 2>/dev/null
8096 lt_status=$?
8097 case x$lt_status in
8098 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8099 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8100 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8101 esac
8102 else :
8103 # compilation failed
8104 lt_cv_dlopen_self=no
8105 fi
8106fi
8107rm -fr conftest*
8108
a.rottmann84e63352003-03-24 09:42:16 +00008109
drh71eb93e2001-09-28 01:34:43 +00008110fi
a.rottmann84e63352003-03-24 09:42:16 +00008111echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
drh71eb93e2001-09-28 01:34:43 +00008112echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8113
8114 if test "x$lt_cv_dlopen_self" = xyes; then
8115 LDFLAGS="$LDFLAGS $link_static_flag"
a.rottmann84e63352003-03-24 09:42:16 +00008116 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
drh71eb93e2001-09-28 01:34:43 +00008117echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8118if test "${lt_cv_dlopen_self_static+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8120else
8121 if test "$cross_compiling" = yes; then :
8122 lt_cv_dlopen_self_static=cross
8123else
a.rottmann9bc8b932004-02-29 15:18:31 +00008124 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00008125 lt_status=$lt_dlunknown
8126 cat > conftest.$ac_ext <<EOF
dougcurrie0f290bf2004-06-21 18:57:29 +00008127#line 8127 "configure"
drh71eb93e2001-09-28 01:34:43 +00008128#include "confdefs.h"
8129
8130#if HAVE_DLFCN_H
8131#include <dlfcn.h>
8132#endif
8133
8134#include <stdio.h>
8135
8136#ifdef RTLD_GLOBAL
8137# define LT_DLGLOBAL RTLD_GLOBAL
8138#else
8139# ifdef DL_GLOBAL
8140# define LT_DLGLOBAL DL_GLOBAL
8141# else
8142# define LT_DLGLOBAL 0
8143# endif
8144#endif
8145
8146/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8147 find out it does not work in some platform. */
8148#ifndef LT_DLLAZY_OR_NOW
8149# ifdef RTLD_LAZY
8150# define LT_DLLAZY_OR_NOW RTLD_LAZY
8151# else
8152# ifdef DL_LAZY
8153# define LT_DLLAZY_OR_NOW DL_LAZY
8154# else
8155# ifdef RTLD_NOW
8156# define LT_DLLAZY_OR_NOW RTLD_NOW
8157# else
8158# ifdef DL_NOW
8159# define LT_DLLAZY_OR_NOW DL_NOW
8160# else
8161# define LT_DLLAZY_OR_NOW 0
8162# endif
8163# endif
8164# endif
8165# endif
8166#endif
8167
8168#ifdef __cplusplus
8169extern "C" void exit (int);
8170#endif
8171
8172void fnord() { int i=42;}
8173int main ()
8174{
8175 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8176 int status = $lt_dlunknown;
8177
8178 if (self)
8179 {
8180 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8181 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8182 /* dlclose (self); */
8183 }
8184
8185 exit (status);
8186}
8187EOF
a.rottmann84e63352003-03-24 09:42:16 +00008188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008189 (eval $ac_link) 2>&5
8190 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008192 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8193 (./conftest; exit; ) 2>/dev/null
8194 lt_status=$?
8195 case x$lt_status in
8196 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8197 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8198 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8199 esac
8200 else :
8201 # compilation failed
8202 lt_cv_dlopen_self_static=no
8203 fi
8204fi
8205rm -fr conftest*
8206
a.rottmann84e63352003-03-24 09:42:16 +00008207
drh71eb93e2001-09-28 01:34:43 +00008208fi
a.rottmann84e63352003-03-24 09:42:16 +00008209echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
drh71eb93e2001-09-28 01:34:43 +00008210echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8211 fi
8212
8213 CPPFLAGS="$save_CPPFLAGS"
8214 LDFLAGS="$save_LDFLAGS"
8215 LIBS="$save_LIBS"
8216 ;;
8217 esac
8218
8219 case $lt_cv_dlopen_self in
8220 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8221 *) enable_dlopen_self=unknown ;;
8222 esac
8223
8224 case $lt_cv_dlopen_self_static in
8225 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8226 *) enable_dlopen_self_static=unknown ;;
8227 esac
8228fi
8229
drh71eb93e2001-09-28 01:34:43 +00008230
a.rottmann9bc8b932004-02-29 15:18:31 +00008231# Report which librarie types wil actually be built
8232echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8233echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8234echo "$as_me:$LINENO: result: $can_build_shared" >&5
8235echo "${ECHO_T}$can_build_shared" >&6
drh71eb93e2001-09-28 01:34:43 +00008236
a.rottmann9bc8b932004-02-29 15:18:31 +00008237echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8238echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8239test "$can_build_shared" = "no" && enable_shared=no
8240
8241# On AIX, shared libraries and static libraries use the same namespace, and
8242# are all built from PIC.
8243case "$host_os" in
8244aix3*)
8245 test "$enable_shared" = yes && enable_static=no
8246 if test -n "$RANLIB"; then
8247 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8248 postinstall_cmds='$RANLIB $lib'
8249 fi
8250 ;;
8251
8252aix4*)
8253 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8254 test "$enable_shared" = yes && enable_static=no
8255 fi
8256 ;;
8257 darwin* | rhapsody*)
8258 if test "$GCC" = yes; then
8259 archive_cmds_need_lc=no
8260 case "$host_os" in
8261 rhapsody* | darwin1.[012])
8262 allow_undefined_flag='-undefined suppress'
8263 ;;
8264 *) # Darwin 1.3 on
8265 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8266 allow_undefined_flag='-flat_namespace -undefined suppress'
a.rottmann84e63352003-03-24 09:42:16 +00008267 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008268 case ${MACOSX_DEPLOYMENT_TARGET} in
8269 10.[012])
8270 allow_undefined_flag='-flat_namespace -undefined suppress'
8271 ;;
8272 10.*)
8273 allow_undefined_flag='-undefined dynamic_lookup'
8274 ;;
8275 esac
a.rottmann84e63352003-03-24 09:42:16 +00008276 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008277 ;;
8278 esac
8279 output_verbose_link_cmd='echo'
8280 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8281 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8282 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8283 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}'
8284 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}'
8285 hardcode_direct=no
8286 hardcode_automatic=yes
8287 hardcode_shlibpath_var=unsupported
8288 whole_archive_flag_spec='-all_load $convenience'
8289 link_all_deplibs=yes
8290 else
8291 ld_shlibs=no
8292 fi
a.rottmann84e63352003-03-24 09:42:16 +00008293 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008294esac
8295echo "$as_me:$LINENO: result: $enable_shared" >&5
8296echo "${ECHO_T}$enable_shared" >&6
drh71eb93e2001-09-28 01:34:43 +00008297
a.rottmann9bc8b932004-02-29 15:18:31 +00008298echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8299echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8300# Make sure either enable_shared or enable_static is yes.
8301test "$enable_shared" = yes || enable_static=yes
8302echo "$as_me:$LINENO: result: $enable_static" >&5
8303echo "${ECHO_T}$enable_static" >&6
8304
8305# The else clause should only fire when bootstrapping the
drh71eb93e2001-09-28 01:34:43 +00008306# libtool distribution, otherwise you forgot to ship ltmain.sh
8307# with your package, and you will get complaints that there are
8308# no rules to generate ltmain.sh.
8309if test -f "$ltmain"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008310 # See if we are running on zsh, and set the options which allow our commands through
8311 # without removal of \ escapes.
8312 if test -n "${ZSH_VERSION+set}" ; then
8313 setopt NO_GLOB_SUBST
8314 fi
drh71eb93e2001-09-28 01:34:43 +00008315 # Now quote all the things that may contain metacharacters while being
8316 # careful not to overquote the AC_SUBSTed values. We take copies of the
8317 # variables and quote the copies for generation of the libtool script.
a.rottmann9bc8b932004-02-29 15:18:31 +00008318 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8319 SED SHELL STRIP \
8320 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8321 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8322 deplibs_check_method reload_flag reload_cmds need_locks \
8323 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8324 lt_cv_sys_global_symbol_to_c_name_address \
drh71eb93e2001-09-28 01:34:43 +00008325 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
a.rottmann9bc8b932004-02-29 15:18:31 +00008326 old_postinstall_cmds old_postuninstall_cmds \
8327 compiler \
8328 CC \
8329 LD \
8330 lt_prog_compiler_wl \
8331 lt_prog_compiler_pic \
8332 lt_prog_compiler_static \
8333 lt_prog_compiler_no_builtin_flag \
8334 export_dynamic_flag_spec \
8335 thread_safe_flag_spec \
8336 whole_archive_flag_spec \
8337 enable_shared_with_static_runtimes \
8338 old_archive_cmds \
8339 old_archive_from_new_cmds \
8340 predep_objects \
8341 postdep_objects \
8342 predeps \
8343 postdeps \
8344 compiler_lib_search_path \
8345 archive_cmds \
8346 archive_expsym_cmds \
8347 postinstall_cmds \
8348 postuninstall_cmds \
8349 old_archive_from_expsyms_cmds \
8350 allow_undefined_flag \
8351 no_undefined_flag \
8352 export_symbols_cmds \
8353 hardcode_libdir_flag_spec \
8354 hardcode_libdir_flag_spec_ld \
8355 hardcode_libdir_separator \
8356 hardcode_automatic \
8357 module_cmds \
8358 module_expsym_cmds \
8359 lt_cv_prog_compiler_c_o \
8360 exclude_expsyms \
8361 include_expsyms; do
drh71eb93e2001-09-28 01:34:43 +00008362
8363 case $var in
a.rottmann9bc8b932004-02-29 15:18:31 +00008364 old_archive_cmds | \
8365 old_archive_from_new_cmds | \
8366 archive_cmds | \
8367 archive_expsym_cmds | \
8368 module_cmds | \
8369 module_expsym_cmds | \
8370 old_archive_from_expsyms_cmds | \
8371 export_symbols_cmds | \
8372 extract_expsyms_cmds | reload_cmds | finish_cmds | \
a.rottmann84e63352003-03-24 09:42:16 +00008373 postinstall_cmds | postuninstall_cmds | \
a.rottmann9bc8b932004-02-29 15:18:31 +00008374 old_postinstall_cmds | old_postuninstall_cmds | \
8375 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
drh71eb93e2001-09-28 01:34:43 +00008376 # Double-quote double-evaled strings.
8377 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8378 ;;
8379 *)
8380 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8381 ;;
8382 esac
8383 done
8384
a.rottmann9bc8b932004-02-29 15:18:31 +00008385 case $lt_echo in
8386 *'\$0 --fallback-echo"')
8387 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8388 ;;
8389 esac
8390
8391cfgfile="${ofile}T"
8392 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8393 $rm -f "$cfgfile"
8394 { echo "$as_me:$LINENO: creating $ofile" >&5
8395echo "$as_me: creating $ofile" >&6;}
8396
8397 cat <<__EOF__ >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +00008398#! $SHELL
8399
a.rottmann9bc8b932004-02-29 15:18:31 +00008400# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
drh71eb93e2001-09-28 01:34:43 +00008401# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8402# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8403#
a.rottmann9bc8b932004-02-29 15:18:31 +00008404# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8405# Free Software Foundation, Inc.
8406#
8407# This file is part of GNU Libtool:
drh71eb93e2001-09-28 01:34:43 +00008408# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8409#
8410# This program is free software; you can redistribute it and/or modify
8411# it under the terms of the GNU General Public License as published by
8412# the Free Software Foundation; either version 2 of the License, or
8413# (at your option) any later version.
8414#
8415# This program is distributed in the hope that it will be useful, but
8416# WITHOUT ANY WARRANTY; without even the implied warranty of
8417# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8418# General Public License for more details.
8419#
8420# You should have received a copy of the GNU General Public License
8421# along with this program; if not, write to the Free Software
8422# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8423#
8424# As a special exception to the GNU General Public License, if you
8425# distribute this file as part of a program that contains a
8426# configuration script generated by Autoconf, you may include it under
8427# the same distribution terms that you use for the rest of that program.
8428
a.rottmann9bc8b932004-02-29 15:18:31 +00008429# A sed program that does not truncate output.
a.rottmann84e63352003-03-24 09:42:16 +00008430SED=$lt_SED
8431
drh71eb93e2001-09-28 01:34:43 +00008432# Sed that helps us avoid accidentally triggering echo(1) options like -n.
a.rottmann9bc8b932004-02-29 15:18:31 +00008433Xsed="$SED -e s/^X//"
drh71eb93e2001-09-28 01:34:43 +00008434
8435# The HP-UX ksh and POSIX shell print the target directory to stdout
8436# if CDPATH is set.
8437if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8438
a.rottmann9bc8b932004-02-29 15:18:31 +00008439# The names of the tagged configurations supported by this script.
8440available_tags=
8441
drh71eb93e2001-09-28 01:34:43 +00008442# ### BEGIN LIBTOOL CONFIG
8443
8444# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8445
8446# Shell to use when invoking shell scripts.
8447SHELL=$lt_SHELL
8448
8449# Whether or not to build shared libraries.
8450build_libtool_libs=$enable_shared
8451
8452# Whether or not to build static libraries.
8453build_old_libs=$enable_static
8454
8455# Whether or not to add -lc for building shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008456build_libtool_need_lc=$archive_cmds_need_lc
8457
8458# Whether or not to disallow shared libs when runtime libs are static
8459allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
drh71eb93e2001-09-28 01:34:43 +00008460
8461# Whether or not to optimize for fast installation.
8462fast_install=$enable_fast_install
8463
8464# The host system.
8465host_alias=$host_alias
8466host=$host
8467
8468# An echo program that does not interpret backslashes.
8469echo=$lt_echo
8470
8471# The archiver.
8472AR=$lt_AR
8473AR_FLAGS=$lt_AR_FLAGS
8474
a.rottmann9bc8b932004-02-29 15:18:31 +00008475# A C compiler.
8476LTCC=$lt_LTCC
8477
8478# A language-specific compiler.
8479CC=$lt_compiler
drh71eb93e2001-09-28 01:34:43 +00008480
8481# Is the compiler the GNU C compiler?
8482with_gcc=$GCC
8483
a.rottmann9bc8b932004-02-29 15:18:31 +00008484# An ERE matcher.
8485EGREP=$lt_EGREP
8486
drh71eb93e2001-09-28 01:34:43 +00008487# The linker used to build libraries.
8488LD=$lt_LD
8489
8490# Whether we need hard or soft links.
8491LN_S=$lt_LN_S
8492
8493# A BSD-compatible nm program.
8494NM=$lt_NM
8495
8496# A symbol stripping program
a.rottmann9bc8b932004-02-29 15:18:31 +00008497STRIP=$lt_STRIP
drh71eb93e2001-09-28 01:34:43 +00008498
8499# Used to examine libraries when file_magic_cmd begins "file"
8500MAGIC_CMD=$MAGIC_CMD
8501
8502# Used on cygwin: DLL creation program.
8503DLLTOOL="$DLLTOOL"
8504
8505# Used on cygwin: object dumper.
8506OBJDUMP="$OBJDUMP"
8507
8508# Used on cygwin: assembler.
8509AS="$AS"
8510
8511# The name of the directory that contains temporary libtool files.
8512objdir=$objdir
8513
8514# How to create reloadable object files.
8515reload_flag=$lt_reload_flag
8516reload_cmds=$lt_reload_cmds
8517
8518# How to pass a linker flag through the compiler.
a.rottmann9bc8b932004-02-29 15:18:31 +00008519wl=$lt_lt_prog_compiler_wl
drh71eb93e2001-09-28 01:34:43 +00008520
8521# Object file suffix (normally "o").
8522objext="$ac_objext"
8523
8524# Old archive suffix (normally "a").
8525libext="$libext"
8526
a.rottmann9bc8b932004-02-29 15:18:31 +00008527# Shared library suffix (normally ".so").
8528shrext='$shrext'
8529
drh71eb93e2001-09-28 01:34:43 +00008530# Executable file suffix (normally "").
8531exeext="$exeext"
8532
8533# Additional compiler flags for building library objects.
a.rottmann9bc8b932004-02-29 15:18:31 +00008534pic_flag=$lt_lt_prog_compiler_pic
drh71eb93e2001-09-28 01:34:43 +00008535pic_mode=$pic_mode
8536
a.rottmann9bc8b932004-02-29 15:18:31 +00008537# What is the maximum length of a command?
8538max_cmd_len=$lt_cv_sys_max_cmd_len
a.rottmann84e63352003-03-24 09:42:16 +00008539
a.rottmann9bc8b932004-02-29 15:18:31 +00008540# Does compiler simultaneously support -c and -o options?
8541compiler_c_o=$lt_lt_cv_prog_compiler_c_o
drh71eb93e2001-09-28 01:34:43 +00008542
8543# Must we lock files when doing compilation ?
8544need_locks=$lt_need_locks
8545
8546# Do we need the lib prefix for modules?
8547need_lib_prefix=$need_lib_prefix
8548
8549# Do we need a version for libraries?
8550need_version=$need_version
8551
8552# Whether dlopen is supported.
8553dlopen_support=$enable_dlopen
8554
8555# Whether dlopen of programs is supported.
8556dlopen_self=$enable_dlopen_self
8557
8558# Whether dlopen of statically linked programs is supported.
8559dlopen_self_static=$enable_dlopen_self_static
8560
8561# Compiler flag to prevent dynamic linking.
a.rottmann9bc8b932004-02-29 15:18:31 +00008562link_static_flag=$lt_lt_prog_compiler_static
drh71eb93e2001-09-28 01:34:43 +00008563
8564# Compiler flag to turn off builtin functions.
a.rottmann9bc8b932004-02-29 15:18:31 +00008565no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
drh71eb93e2001-09-28 01:34:43 +00008566
8567# Compiler flag to allow reflexive dlopens.
8568export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8569
8570# Compiler flag to generate shared objects directly from archives.
8571whole_archive_flag_spec=$lt_whole_archive_flag_spec
8572
8573# Compiler flag to generate thread-safe objects.
8574thread_safe_flag_spec=$lt_thread_safe_flag_spec
8575
8576# Library versioning type.
8577version_type=$version_type
8578
8579# Format of library name prefix.
8580libname_spec=$lt_libname_spec
8581
8582# List of archive names. First name is the real one, the rest are links.
8583# The last name is the one that the linker finds with -lNAME.
8584library_names_spec=$lt_library_names_spec
8585
8586# The coded name of the library, if different from the real name.
8587soname_spec=$lt_soname_spec
8588
8589# Commands used to build and install an old-style archive.
8590RANLIB=$lt_RANLIB
8591old_archive_cmds=$lt_old_archive_cmds
8592old_postinstall_cmds=$lt_old_postinstall_cmds
8593old_postuninstall_cmds=$lt_old_postuninstall_cmds
8594
8595# Create an old-style archive from a shared archive.
8596old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8597
8598# Create a temporary old-style archive to link instead of a shared archive.
8599old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8600
8601# Commands used to build and install a shared archive.
8602archive_cmds=$lt_archive_cmds
8603archive_expsym_cmds=$lt_archive_expsym_cmds
8604postinstall_cmds=$lt_postinstall_cmds
8605postuninstall_cmds=$lt_postuninstall_cmds
8606
a.rottmann9bc8b932004-02-29 15:18:31 +00008607# Commands used to build a loadable module (assumed same as above if empty)
8608module_cmds=$lt_module_cmds
8609module_expsym_cmds=$lt_module_expsym_cmds
8610
drh71eb93e2001-09-28 01:34:43 +00008611# Commands to strip libraries.
8612old_striplib=$lt_old_striplib
8613striplib=$lt_striplib
8614
a.rottmann9bc8b932004-02-29 15:18:31 +00008615# Dependencies to place before the objects being linked to create a
8616# shared library.
8617predep_objects=$lt_predep_objects
8618
8619# Dependencies to place after the objects being linked to create a
8620# shared library.
8621postdep_objects=$lt_postdep_objects
8622
8623# Dependencies to place before the objects being linked to create a
8624# shared library.
8625predeps=$lt_predeps
8626
8627# Dependencies to place after the objects being linked to create a
8628# shared library.
8629postdeps=$lt_postdeps
8630
8631# The library search path used internally by the compiler when linking
8632# a shared library.
8633compiler_lib_search_path=$lt_compiler_lib_search_path
8634
drh71eb93e2001-09-28 01:34:43 +00008635# Method to check whether dependent libraries are shared objects.
8636deplibs_check_method=$lt_deplibs_check_method
8637
8638# Command to use when deplibs_check_method == file_magic.
8639file_magic_cmd=$lt_file_magic_cmd
8640
8641# Flag that allows shared libraries with undefined symbols to be built.
8642allow_undefined_flag=$lt_allow_undefined_flag
8643
8644# Flag that forces no undefined symbols.
8645no_undefined_flag=$lt_no_undefined_flag
8646
8647# Commands used to finish a libtool library installation in a directory.
8648finish_cmds=$lt_finish_cmds
8649
8650# Same as above, but a single script fragment to be evaled but not shown.
8651finish_eval=$lt_finish_eval
8652
8653# Take the output of nm and produce a listing of raw symbols and C names.
a.rottmann9bc8b932004-02-29 15:18:31 +00008654global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
drh71eb93e2001-09-28 01:34:43 +00008655
8656# Transform the output of nm in a proper C declaration
a.rottmann9bc8b932004-02-29 15:18:31 +00008657global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
drh71eb93e2001-09-28 01:34:43 +00008658
8659# Transform the output of nm in a C name address pair
a.rottmann9bc8b932004-02-29 15:18:31 +00008660global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
drh71eb93e2001-09-28 01:34:43 +00008661
8662# This is the shared library runtime path variable.
8663runpath_var=$runpath_var
8664
8665# This is the shared library path variable.
8666shlibpath_var=$shlibpath_var
8667
8668# Is shlibpath searched before the hard-coded library search path?
8669shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8670
8671# How to hardcode a shared library path into an executable.
8672hardcode_action=$hardcode_action
8673
8674# Whether we should hardcode library paths into libraries.
8675hardcode_into_libs=$hardcode_into_libs
8676
8677# Flag to hardcode \$libdir into a binary during linking.
8678# This must work even if \$libdir does not exist.
8679hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8680
a.rottmann9bc8b932004-02-29 15:18:31 +00008681# If ld is used when linking, flag to hardcode \$libdir into
8682# a binary during linking. This must work even if \$libdir does
8683# not exist.
8684hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8685
drh71eb93e2001-09-28 01:34:43 +00008686# Whether we need a single -rpath flag with a separated argument.
8687hardcode_libdir_separator=$lt_hardcode_libdir_separator
8688
a.rottmann9bc8b932004-02-29 15:18:31 +00008689# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
drh71eb93e2001-09-28 01:34:43 +00008690# resulting binary.
8691hardcode_direct=$hardcode_direct
8692
8693# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8694# resulting binary.
8695hardcode_minus_L=$hardcode_minus_L
8696
8697# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8698# the resulting binary.
8699hardcode_shlibpath_var=$hardcode_shlibpath_var
8700
a.rottmann9bc8b932004-02-29 15:18:31 +00008701# Set to yes if building a shared library automatically hardcodes DIR into the library
8702# and all subsequent libraries and executables linked against it.
8703hardcode_automatic=$hardcode_automatic
8704
drh71eb93e2001-09-28 01:34:43 +00008705# Variables whose values should be saved in libtool wrapper scripts and
8706# restored at relink time.
8707variables_saved_for_relink="$variables_saved_for_relink"
8708
8709# Whether libtool must link a program against all its dependency libraries.
8710link_all_deplibs=$link_all_deplibs
8711
8712# Compile-time system search path for libraries
8713sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8714
8715# Run-time system search path for libraries
8716sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8717
8718# Fix the shell variable \$srcfile for the compiler.
8719fix_srcfile_path="$fix_srcfile_path"
8720
8721# Set to yes if exported symbols are required.
8722always_export_symbols=$always_export_symbols
8723
8724# The commands to list exported symbols.
8725export_symbols_cmds=$lt_export_symbols_cmds
8726
8727# The commands to extract the exported symbol list from a shared archive.
8728extract_expsyms_cmds=$lt_extract_expsyms_cmds
8729
8730# Symbols that should not be listed in the preloaded symbols.
8731exclude_expsyms=$lt_exclude_expsyms
8732
8733# Symbols that must always be exported.
8734include_expsyms=$lt_include_expsyms
8735
8736# ### END LIBTOOL CONFIG
8737
8738__EOF__
8739
a.rottmann9bc8b932004-02-29 15:18:31 +00008740
drh71eb93e2001-09-28 01:34:43 +00008741 case $host_os in
8742 aix3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008743 cat <<\EOF >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +00008744
8745# AIX sometimes has problems with the GCC collect2 program. For some
8746# reason, if we set the COLLECT_NAMES environment variable, the problems
8747# vanish in a puff of smoke.
8748if test "X${COLLECT_NAMES+set}" != Xset; then
8749 COLLECT_NAMES=
8750 export COLLECT_NAMES
8751fi
8752EOF
8753 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008754 esac
drh71eb93e2001-09-28 01:34:43 +00008755
drh71eb93e2001-09-28 01:34:43 +00008756 # We use sed instead of cat because bash on DJGPP gets confused if
8757 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8758 # text mode, it properly converts lines to CR/LF. This bash problem
8759 # is reportedly fixed, but why not run on old versions too?
a.rottmann9bc8b932004-02-29 15:18:31 +00008760 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
drh71eb93e2001-09-28 01:34:43 +00008761
a.rottmann9bc8b932004-02-29 15:18:31 +00008762 mv -f "$cfgfile" "$ofile" || \
8763 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
drh71eb93e2001-09-28 01:34:43 +00008764 chmod +x "$ofile"
a.rottmann9bc8b932004-02-29 15:18:31 +00008765
8766else
8767 # If there is no Makefile yet, we rely on a make rule to execute
8768 # `config.status --recheck' to rerun these tests and create the
8769 # libtool script then.
8770 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8771 if test -f "$ltmain_in"; then
8772 test -f Makefile && make "$ltmain"
8773 fi
drh71eb93e2001-09-28 01:34:43 +00008774fi
8775
drh71eb93e2001-09-28 01:34:43 +00008776
a.rottmann9bc8b932004-02-29 15:18:31 +00008777ac_ext=c
8778ac_cpp='$CPP $CPPFLAGS'
8779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8781ac_compiler_gnu=$ac_cv_c_compiler_gnu
8782
8783CC="$lt_save_CC"
8784
8785
8786# Check whether --with-tags or --without-tags was given.
8787if test "${with_tags+set}" = set; then
8788 withval="$with_tags"
8789 tagnames="$withval"
8790fi;
8791
8792if test -f "$ltmain" && test -n "$tagnames"; then
8793 if test ! -f "${ofile}"; then
8794 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8795echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8796 fi
8797
8798 if test -z "$LTCC"; then
8799 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8800 if test -z "$LTCC"; then
8801 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8802echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8803 else
8804 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8805echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8806 fi
8807 fi
8808
8809 # Extract list of available tagged configurations in $ofile.
8810 # Note that this assumes the entire list is on one line.
8811 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8812
8813 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8814 for tagname in $tagnames; do
8815 IFS="$lt_save_ifs"
8816 # Check whether tagname contains only valid characters
8817 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8818 "") ;;
8819 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8820echo "$as_me: error: invalid tag name: $tagname" >&2;}
8821 { (exit 1); exit 1; }; }
8822 ;;
8823 esac
8824
8825 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8826 then
8827 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8828echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8829 { (exit 1); exit 1; }; }
8830 fi
8831
8832 # Update the list of available tags.
8833 if test -n "$tagname"; then
8834 echo appending configuration tag \"$tagname\" to $ofile
8835
8836 case $tagname in
8837 CXX)
8838 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8839 ac_ext=cc
8840ac_cpp='$CXXCPP $CPPFLAGS'
8841ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8842ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8843ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8844
8845
8846
8847
8848archive_cmds_need_lc_CXX=no
8849allow_undefined_flag_CXX=
8850always_export_symbols_CXX=no
8851archive_expsym_cmds_CXX=
8852export_dynamic_flag_spec_CXX=
8853hardcode_direct_CXX=no
8854hardcode_libdir_flag_spec_CXX=
8855hardcode_libdir_flag_spec_ld_CXX=
8856hardcode_libdir_separator_CXX=
8857hardcode_minus_L_CXX=no
8858hardcode_automatic_CXX=no
8859module_cmds_CXX=
8860module_expsym_cmds_CXX=
8861link_all_deplibs_CXX=unknown
8862old_archive_cmds_CXX=$old_archive_cmds
8863no_undefined_flag_CXX=
8864whole_archive_flag_spec_CXX=
8865enable_shared_with_static_runtimes_CXX=no
8866
8867# Dependencies to place before and after the object being linked:
8868predep_objects_CXX=
8869postdep_objects_CXX=
8870predeps_CXX=
8871postdeps_CXX=
8872compiler_lib_search_path_CXX=
8873
8874# Source file extension for C++ test sources.
8875ac_ext=cc
8876
8877# Object file extension for compiled C++ test sources.
8878objext=o
8879objext_CXX=$objext
8880
8881# Code to be used in simple compile tests
8882lt_simple_compile_test_code="int some_variable = 0;\n"
8883
8884# Code to be used in simple link tests
8885lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8886
8887# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8888
8889# If no C compiler was specified, use CC.
8890LTCC=${LTCC-"$CC"}
8891
8892# Allow CC to be a program name with arguments.
8893compiler=$CC
8894
8895
8896# Allow CC to be a program name with arguments.
8897lt_save_CC=$CC
8898lt_save_LD=$LD
8899lt_save_GCC=$GCC
8900GCC=$GXX
8901lt_save_with_gnu_ld=$with_gnu_ld
8902lt_save_path_LD=$lt_cv_path_LD
8903if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8904 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8905else
8906 unset lt_cv_prog_gnu_ld
8907fi
8908if test -n "${lt_cv_path_LDCXX+set}"; then
8909 lt_cv_path_LD=$lt_cv_path_LDCXX
8910else
8911 unset lt_cv_path_LD
8912fi
8913test -z "${LDCXX+set}" || LD=$LDCXX
8914CC=${CXX-"c++"}
8915compiler=$CC
8916compiler_CXX=$CC
8917cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8918
8919# We don't want -fno-exception wen compiling C++ code, so set the
8920# no_builtin_flag separately
8921if test "$GXX" = yes; then
8922 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8923else
8924 lt_prog_compiler_no_builtin_flag_CXX=
8925fi
8926
8927if test "$GXX" = yes; then
8928 # Set up default GNU C++ configuration
8929
8930
8931# Check whether --with-gnu-ld or --without-gnu-ld was given.
8932if test "${with_gnu_ld+set}" = set; then
8933 withval="$with_gnu_ld"
8934 test "$withval" = no || with_gnu_ld=yes
8935else
8936 with_gnu_ld=no
8937fi;
8938ac_prog=ld
8939if test "$GCC" = yes; then
8940 # Check if gcc -print-prog-name=ld gives a path.
8941 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8942echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8943 case $host in
8944 *-*-mingw*)
8945 # gcc leaves a trailing carriage return which upsets mingw
8946 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8947 *)
8948 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8949 esac
8950 case $ac_prog in
8951 # Accept absolute paths.
8952 [\\/]* | ?:[\\/]*)
8953 re_direlt='/[^/][^/]*/\.\./'
8954 # Canonicalize the pathname of ld
8955 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8956 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8957 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8958 done
8959 test -z "$LD" && LD="$ac_prog"
8960 ;;
8961 "")
8962 # If it fails, then pretend we aren't using GCC.
8963 ac_prog=ld
8964 ;;
8965 *)
8966 # If it is relative, then search for the first ld in PATH.
8967 with_gnu_ld=unknown
8968 ;;
8969 esac
8970elif test "$with_gnu_ld" = yes; then
8971 echo "$as_me:$LINENO: checking for GNU ld" >&5
8972echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8973else
8974 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8975echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8976fi
8977if test "${lt_cv_path_LD+set}" = set; then
8978 echo $ECHO_N "(cached) $ECHO_C" >&6
8979else
8980 if test -z "$LD"; then
8981 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8982 for ac_dir in $PATH; do
8983 IFS="$lt_save_ifs"
8984 test -z "$ac_dir" && ac_dir=.
8985 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8986 lt_cv_path_LD="$ac_dir/$ac_prog"
8987 # Check to see if the program is GNU ld. I'd rather use --version,
8988 # but apparently some GNU ld's only accept -v.
8989 # Break only if it was the GNU/non-GNU ld that we prefer.
8990 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8991 *GNU* | *'with BFD'*)
8992 test "$with_gnu_ld" != no && break
8993 ;;
8994 *)
8995 test "$with_gnu_ld" != yes && break
8996 ;;
8997 esac
8998 fi
8999 done
9000 IFS="$lt_save_ifs"
9001else
9002 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9003fi
9004fi
9005
9006LD="$lt_cv_path_LD"
9007if test -n "$LD"; then
9008 echo "$as_me:$LINENO: result: $LD" >&5
9009echo "${ECHO_T}$LD" >&6
9010else
9011 echo "$as_me:$LINENO: result: no" >&5
9012echo "${ECHO_T}no" >&6
9013fi
9014test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9015echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9016 { (exit 1); exit 1; }; }
9017echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9018echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9019if test "${lt_cv_prog_gnu_ld+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9021else
9022 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9023case `$LD -v 2>&1 </dev/null` in
9024*GNU* | *'with BFD'*)
9025 lt_cv_prog_gnu_ld=yes
9026 ;;
9027*)
9028 lt_cv_prog_gnu_ld=no
9029 ;;
9030esac
9031fi
9032echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9033echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9034with_gnu_ld=$lt_cv_prog_gnu_ld
9035
9036
9037
9038 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9039 # archiving commands below assume that GNU ld is being used.
9040 if test "$with_gnu_ld" = yes; then
9041 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9042 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'
9043
9044 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9045 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9046
9047 # If archive_cmds runs LD, not CC, wlarc should be empty
9048 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9049 # investigate it a little bit more. (MM)
9050 wlarc='${wl}'
9051
9052 # ancient GNU ld didn't support --whole-archive et. al.
9053 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9054 grep 'no-whole-archive' > /dev/null; then
9055 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9056 else
9057 whole_archive_flag_spec_CXX=
9058 fi
9059 else
9060 with_gnu_ld=no
9061 wlarc=
9062
9063 # A generic and very simple default shared library creation
9064 # command for GNU C++ for the case where it uses the native
9065 # linker, instead of GNU ld. If possible, this setting should
9066 # overridden to take advantage of the native linker features on
9067 # the platform it is being used on.
9068 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9069 fi
9070
9071 # Commands to make compiler produce verbose output that lists
9072 # what "hidden" libraries, object files and flags are used when
9073 # linking a shared library.
9074 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9075
9076else
9077 GXX=no
9078 with_gnu_ld=no
9079 wlarc=
9080fi
9081
9082# PORTME: fill in a description of your system's C++ link characteristics
9083echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9084echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9085ld_shlibs_CXX=yes
9086case $host_os in
9087 aix3*)
9088 # FIXME: insert proper C++ library support
9089 ld_shlibs_CXX=no
9090 ;;
9091 aix4* | aix5*)
9092 if test "$host_cpu" = ia64; then
9093 # On IA64, the linker does run time linking by default, so we don't
9094 # have to do anything special.
9095 aix_use_runtimelinking=no
9096 exp_sym_flag='-Bexport'
9097 no_entry_flag=""
9098 else
9099 aix_use_runtimelinking=no
9100
9101 # Test if we are trying to use run time linking or normal
9102 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9103 # need to do runtime linking.
9104 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9105 for ld_flag in $LDFLAGS; do
9106 case $ld_flag in
9107 *-brtl*)
9108 aix_use_runtimelinking=yes
9109 break
9110 ;;
9111 esac
9112 done
9113 esac
9114
9115 exp_sym_flag='-bexport'
9116 no_entry_flag='-bnoentry'
9117 fi
9118
9119 # When large executables or shared objects are built, AIX ld can
9120 # have problems creating the table of contents. If linking a library
9121 # or program results in "error TOC overflow" add -mminimal-toc to
9122 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9123 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9124
9125 archive_cmds_CXX=''
9126 hardcode_direct_CXX=yes
9127 hardcode_libdir_separator_CXX=':'
9128 link_all_deplibs_CXX=yes
9129
9130 if test "$GXX" = yes; then
9131 case $host_os in aix4.012|aix4.012.*)
9132 # We only want to do this on AIX 4.2 and lower, the check
9133 # below for broken collect2 doesn't work under 4.3+
9134 collect2name=`${CC} -print-prog-name=collect2`
9135 if test -f "$collect2name" && \
9136 strings "$collect2name" | grep resolve_lib_name >/dev/null
9137 then
9138 # We have reworked collect2
9139 hardcode_direct_CXX=yes
9140 else
9141 # We have old collect2
9142 hardcode_direct_CXX=unsupported
9143 # It fails to find uninstalled libraries when the uninstalled
9144 # path is not listed in the libpath. Setting hardcode_minus_L
9145 # to unsupported forces relinking
9146 hardcode_minus_L_CXX=yes
9147 hardcode_libdir_flag_spec_CXX='-L$libdir'
9148 hardcode_libdir_separator_CXX=
9149 fi
9150 esac
9151 shared_flag='-shared'
9152 else
9153 # not using gcc
9154 if test "$host_cpu" = ia64; then
9155 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9156 # chokes on -Wl,-G. The following line is correct:
9157 shared_flag='-G'
9158 else
9159 if test "$aix_use_runtimelinking" = yes; then
9160 shared_flag='${wl}-G'
9161 else
9162 shared_flag='${wl}-bM:SRE'
9163 fi
9164 fi
9165 fi
9166
9167 # It seems that -bexpall does not export symbols beginning with
9168 # underscore (_), so it is better to generate a list of symbols to export.
9169 always_export_symbols_CXX=yes
9170 if test "$aix_use_runtimelinking" = yes; then
9171 # Warning - without using the other runtime loading flags (-brtl),
9172 # -berok will link without error, but may produce a broken library.
9173 allow_undefined_flag_CXX='-berok'
9174 # Determine the default libpath from the value encoded in an empty executable.
9175 cat >conftest.$ac_ext <<_ACEOF
9176/* confdefs.h. */
9177_ACEOF
9178cat confdefs.h >>conftest.$ac_ext
9179cat >>conftest.$ac_ext <<_ACEOF
9180/* end confdefs.h. */
9181
9182int
9183main ()
9184{
9185
9186 ;
9187 return 0;
9188}
9189_ACEOF
9190rm -f conftest.$ac_objext conftest$ac_exeext
9191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9192 (eval $ac_link) 2>conftest.er1
9193 ac_status=$?
9194 grep -v '^ *+' conftest.er1 >conftest.err
9195 rm -f conftest.er1
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00009199 { ac_try='test -z "$ac_cxx_werror_flag"
9200 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00009201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 (eval $ac_try) 2>&5
9203 ac_status=$?
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; } &&
9206 { ac_try='test -s conftest$ac_exeext'
9207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 (eval $ac_try) 2>&5
9209 ac_status=$?
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }; }; then
9212
9213aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9214}'`
9215# Check for a 64-bit object if we didn't find anything.
9216if 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; }
9217}'`; fi
9218else
9219 echo "$as_me: failed program was:" >&5
9220sed 's/^/| /' conftest.$ac_ext >&5
9221
9222fi
9223rm -f conftest.err conftest.$ac_objext \
9224 conftest$ac_exeext conftest.$ac_ext
9225if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9226
9227 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9228
9229 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"
9230 else
9231 if test "$host_cpu" = ia64; then
9232 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9233 allow_undefined_flag_CXX="-z nodefs"
9234 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"
9235 else
9236 # Determine the default libpath from the value encoded in an empty executable.
9237 cat >conftest.$ac_ext <<_ACEOF
9238/* confdefs.h. */
9239_ACEOF
9240cat confdefs.h >>conftest.$ac_ext
9241cat >>conftest.$ac_ext <<_ACEOF
9242/* end confdefs.h. */
9243
9244int
9245main ()
9246{
9247
9248 ;
9249 return 0;
9250}
9251_ACEOF
9252rm -f conftest.$ac_objext conftest$ac_exeext
9253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9254 (eval $ac_link) 2>conftest.er1
9255 ac_status=$?
9256 grep -v '^ *+' conftest.er1 >conftest.err
9257 rm -f conftest.er1
9258 cat conftest.err >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00009261 { ac_try='test -z "$ac_cxx_werror_flag"
9262 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00009263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 (eval $ac_try) 2>&5
9265 ac_status=$?
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; } &&
9268 { ac_try='test -s conftest$ac_exeext'
9269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9270 (eval $ac_try) 2>&5
9271 ac_status=$?
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); }; }; then
9274
9275aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9276}'`
9277# Check for a 64-bit object if we didn't find anything.
9278if 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; }
9279}'`; fi
9280else
9281 echo "$as_me: failed program was:" >&5
9282sed 's/^/| /' conftest.$ac_ext >&5
9283
9284fi
9285rm -f conftest.err conftest.$ac_objext \
9286 conftest$ac_exeext conftest.$ac_ext
9287if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9288
9289 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9290 # Warning - without using the other run time loading flags,
9291 # -berok will link without error, but may produce a broken library.
9292 no_undefined_flag_CXX=' ${wl}-bernotok'
9293 allow_undefined_flag_CXX=' ${wl}-berok'
9294 # -bexpall does not export symbols beginning with underscore (_)
9295 always_export_symbols_CXX=yes
9296 # Exported symbols can be pulled into shared objects from archives
9297 whole_archive_flag_spec_CXX=' '
9298 archive_cmds_need_lc_CXX=yes
9299 # This is similar to how AIX traditionally builds it's shared libraries.
9300 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'
9301 fi
9302 fi
9303 ;;
9304 chorus*)
9305 case $cc_basename in
9306 *)
9307 # FIXME: insert proper C++ library support
9308 ld_shlibs_CXX=no
9309 ;;
9310 esac
9311 ;;
9312
9313 cygwin* | mingw* | pw32*)
9314 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9315 # as there is no search path for DLLs.
9316 hardcode_libdir_flag_spec_CXX='-L$libdir'
9317 allow_undefined_flag_CXX=unsupported
9318 always_export_symbols_CXX=no
9319 enable_shared_with_static_runtimes_CXX=yes
9320
9321 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9322 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'
9323 # If the export-symbols file already is a .def file (1st line
9324 # is EXPORTS), use it as is; otherwise, prepend...
9325 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9326 cp $export_symbols $output_objdir/$soname.def;
9327 else
9328 echo EXPORTS > $output_objdir/$soname.def;
9329 cat $export_symbols >> $output_objdir/$soname.def;
9330 fi~
9331 $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'
9332 else
9333 ld_shlibs_CXX=no
9334 fi
9335 ;;
9336
9337 darwin* | rhapsody*)
9338 if test "$GXX" = yes; then
9339 archive_cmds_need_lc_CXX=no
9340 case "$host_os" in
9341 rhapsody* | darwin1.[012])
9342 allow_undefined_flag_CXX='-undefined suppress'
9343 ;;
9344 *) # Darwin 1.3 on
9345 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9346 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9347 else
9348 case ${MACOSX_DEPLOYMENT_TARGET} in
9349 10.[012])
9350 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9351 ;;
9352 10.*)
9353 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9354 ;;
9355 esac
9356 fi
9357 ;;
9358 esac
9359 lt_int_apple_cc_single_mod=no
9360 output_verbose_link_cmd='echo'
9361 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9362 lt_int_apple_cc_single_mod=yes
9363 fi
9364 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9365 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9366 else
9367 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'
9368 fi
9369 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9370
9371 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9372 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9373 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}'
9374 else
9375 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}'
9376 fi
9377 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}'
9378 hardcode_direct_CXX=no
9379 hardcode_automatic_CXX=yes
9380 hardcode_shlibpath_var_CXX=unsupported
9381 whole_archive_flag_spec_CXX='-all_load $convenience'
9382 link_all_deplibs_CXX=yes
9383 else
9384 ld_shlibs_CXX=no
9385 fi
9386 ;;
9387
9388 dgux*)
9389 case $cc_basename in
9390 ec++)
9391 # FIXME: insert proper C++ library support
9392 ld_shlibs_CXX=no
9393 ;;
9394 ghcx)
9395 # Green Hills C++ Compiler
9396 # FIXME: insert proper C++ library support
9397 ld_shlibs_CXX=no
9398 ;;
9399 *)
9400 # FIXME: insert proper C++ library support
9401 ld_shlibs_CXX=no
9402 ;;
9403 esac
9404 ;;
9405 freebsd12*)
9406 # C++ shared libraries reported to be fairly broken before switch to ELF
9407 ld_shlibs_CXX=no
9408 ;;
9409 freebsd-elf*)
9410 archive_cmds_need_lc_CXX=no
9411 ;;
9412 freebsd* | kfreebsd*-gnu)
9413 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9414 # conventions
9415 ld_shlibs_CXX=yes
9416 ;;
9417 gnu*)
9418 ;;
9419 hpux9*)
9420 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9421 hardcode_libdir_separator_CXX=:
9422 export_dynamic_flag_spec_CXX='${wl}-E'
9423 hardcode_direct_CXX=yes
9424 hardcode_minus_L_CXX=yes # Not in the search PATH,
9425 # but as the default
9426 # location of the library.
9427
9428 case $cc_basename in
9429 CC)
9430 # FIXME: insert proper C++ library support
9431 ld_shlibs_CXX=no
9432 ;;
9433 aCC)
9434 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'
9435 # Commands to make compiler produce verbose output that lists
9436 # what "hidden" libraries, object files and flags are used when
9437 # linking a shared library.
9438 #
9439 # There doesn't appear to be a way to prevent this compiler from
9440 # explicitly linking system object files so we need to strip them
9441 # from the output so that they don't get included in the library
9442 # dependencies.
9443 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'
9444 ;;
9445 *)
9446 if test "$GXX" = yes; then
9447 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'
9448 else
9449 # FIXME: insert proper C++ library support
9450 ld_shlibs_CXX=no
9451 fi
9452 ;;
9453 esac
9454 ;;
9455 hpux10*|hpux11*)
9456 if test $with_gnu_ld = no; then
9457 case "$host_cpu" in
9458 hppa*64*)
9459 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9460 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9461 hardcode_libdir_separator_CXX=:
9462 ;;
9463 ia64*)
9464 hardcode_libdir_flag_spec_CXX='-L$libdir'
9465 ;;
9466 *)
9467 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9468 hardcode_libdir_separator_CXX=:
9469 export_dynamic_flag_spec_CXX='${wl}-E'
9470 ;;
9471 esac
9472 fi
9473 case "$host_cpu" in
9474 hppa*64*)
9475 hardcode_direct_CXX=no
9476 hardcode_shlibpath_var_CXX=no
9477 ;;
9478 ia64*)
9479 hardcode_direct_CXX=no
9480 hardcode_shlibpath_var_CXX=no
9481 hardcode_minus_L_CXX=yes # Not in the search PATH,
9482 # but as the default
9483 # location of the library.
9484 ;;
9485 *)
9486 hardcode_direct_CXX=yes
9487 hardcode_minus_L_CXX=yes # Not in the search PATH,
9488 # but as the default
9489 # location of the library.
9490 ;;
9491 esac
9492
9493 case $cc_basename in
9494 CC)
9495 # FIXME: insert proper C++ library support
9496 ld_shlibs_CXX=no
9497 ;;
9498 aCC)
9499 case "$host_cpu" in
9500 hppa*64*|ia64*)
9501 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9502 ;;
9503 *)
9504 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9505 ;;
9506 esac
9507 # Commands to make compiler produce verbose output that lists
9508 # what "hidden" libraries, object files and flags are used when
9509 # linking a shared library.
9510 #
9511 # There doesn't appear to be a way to prevent this compiler from
9512 # explicitly linking system object files so we need to strip them
9513 # from the output so that they don't get included in the library
9514 # dependencies.
9515 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'
9516 ;;
9517 *)
9518 if test "$GXX" = yes; then
9519 if test $with_gnu_ld = no; then
9520 case "$host_cpu" in
9521 ia64*|hppa*64*)
9522 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9523 ;;
9524 *)
9525 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'
9526 ;;
9527 esac
9528 fi
9529 else
9530 # FIXME: insert proper C++ library support
9531 ld_shlibs_CXX=no
9532 fi
9533 ;;
9534 esac
9535 ;;
9536 irix5* | irix6*)
9537 case $cc_basename in
9538 CC)
9539 # SGI C++
9540 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'
9541
9542 # Archives containing C++ object files must be created using
9543 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9544 # necessary to make sure instantiated templates are included
9545 # in the archive.
9546 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9547 ;;
9548 *)
9549 if test "$GXX" = yes; then
9550 if test "$with_gnu_ld" = no; then
9551 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'
9552 else
9553 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'
9554 fi
9555 fi
9556 link_all_deplibs_CXX=yes
9557 ;;
9558 esac
9559 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9560 hardcode_libdir_separator_CXX=:
9561 ;;
9562 linux*)
9563 case $cc_basename in
9564 KCC)
9565 # Kuck and Associates, Inc. (KAI) C++ Compiler
9566
9567 # KCC will only create a shared library if the output file
9568 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9569 # to its proper name (with version) after linking.
9570 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'
9571 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'
9572 # Commands to make compiler produce verbose output that lists
9573 # what "hidden" libraries, object files and flags are used when
9574 # linking a shared library.
9575 #
9576 # There doesn't appear to be a way to prevent this compiler from
9577 # explicitly linking system object files so we need to strip them
9578 # from the output so that they don't get included in the library
9579 # dependencies.
9580 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'
9581
9582 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9583 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9584
9585 # Archives containing C++ object files must be created using
9586 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9587 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9588 ;;
9589 icpc)
9590 # Intel C++
9591 with_gnu_ld=yes
9592 archive_cmds_need_lc_CXX=no
9593 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9594 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'
9595 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9596 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9597 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9598 ;;
9599 cxx)
9600 # Compaq C++
9601 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9602 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'
9603
9604 runpath_var=LD_RUN_PATH
9605 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9606 hardcode_libdir_separator_CXX=:
9607
9608 # Commands to make compiler produce verbose output that lists
9609 # what "hidden" libraries, object files and flags are used when
9610 # linking a shared library.
9611 #
9612 # There doesn't appear to be a way to prevent this compiler from
9613 # explicitly linking system object files so we need to strip them
9614 # from the output so that they don't get included in the library
9615 # dependencies.
9616 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'
9617 ;;
9618 esac
9619 ;;
9620 lynxos*)
9621 # FIXME: insert proper C++ library support
9622 ld_shlibs_CXX=no
9623 ;;
9624 m88k*)
9625 # FIXME: insert proper C++ library support
9626 ld_shlibs_CXX=no
9627 ;;
9628 mvs*)
9629 case $cc_basename in
9630 cxx)
9631 # FIXME: insert proper C++ library support
9632 ld_shlibs_CXX=no
9633 ;;
9634 *)
9635 # FIXME: insert proper C++ library support
9636 ld_shlibs_CXX=no
9637 ;;
9638 esac
9639 ;;
9640 netbsd* | knetbsd*-gnu)
9641 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9642 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9643 wlarc=
9644 hardcode_libdir_flag_spec_CXX='-R$libdir'
9645 hardcode_direct_CXX=yes
9646 hardcode_shlibpath_var_CXX=no
9647 fi
9648 # Workaround some broken pre-1.5 toolchains
9649 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9650 ;;
9651 osf3*)
9652 case $cc_basename in
9653 KCC)
9654 # Kuck and Associates, Inc. (KAI) C++ Compiler
9655
9656 # KCC will only create a shared library if the output file
9657 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9658 # to its proper name (with version) after linking.
9659 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'
9660
9661 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9662 hardcode_libdir_separator_CXX=:
9663
9664 # Archives containing C++ object files must be created using
9665 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9666 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9667
9668 ;;
9669 RCC)
9670 # Rational C++ 2.4.1
9671 # FIXME: insert proper C++ library support
9672 ld_shlibs_CXX=no
9673 ;;
9674 cxx)
9675 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9676 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'
9677
9678 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9679 hardcode_libdir_separator_CXX=:
9680
9681 # Commands to make compiler produce verbose output that lists
9682 # what "hidden" libraries, object files and flags are used when
9683 # linking a shared library.
9684 #
9685 # There doesn't appear to be a way to prevent this compiler from
9686 # explicitly linking system object files so we need to strip them
9687 # from the output so that they don't get included in the library
9688 # dependencies.
9689 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'
9690 ;;
9691 *)
9692 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9693 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9694 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'
9695
9696 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9697 hardcode_libdir_separator_CXX=:
9698
9699 # Commands to make compiler produce verbose output that lists
9700 # what "hidden" libraries, object files and flags are used when
9701 # linking a shared library.
9702 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9703
9704 else
9705 # FIXME: insert proper C++ library support
9706 ld_shlibs_CXX=no
9707 fi
9708 ;;
9709 esac
9710 ;;
9711 osf4* | osf5*)
9712 case $cc_basename in
9713 KCC)
9714 # Kuck and Associates, Inc. (KAI) C++ Compiler
9715
9716 # KCC will only create a shared library if the output file
9717 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9718 # to its proper name (with version) after linking.
9719 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'
9720
9721 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9722 hardcode_libdir_separator_CXX=:
9723
9724 # Archives containing C++ object files must be created using
9725 # the KAI C++ compiler.
9726 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9727 ;;
9728 RCC)
9729 # Rational C++ 2.4.1
9730 # FIXME: insert proper C++ library support
9731 ld_shlibs_CXX=no
9732 ;;
9733 cxx)
9734 allow_undefined_flag_CXX=' -expect_unresolved \*'
9735 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'
9736 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9737 echo "-hidden">> $lib.exp~
9738 $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~
9739 $rm $lib.exp'
9740
9741 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9742 hardcode_libdir_separator_CXX=:
9743
9744 # Commands to make compiler produce verbose output that lists
9745 # what "hidden" libraries, object files and flags are used when
9746 # linking a shared library.
9747 #
9748 # There doesn't appear to be a way to prevent this compiler from
9749 # explicitly linking system object files so we need to strip them
9750 # from the output so that they don't get included in the library
9751 # dependencies.
9752 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'
9753 ;;
9754 *)
9755 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9756 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9757 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'
9758
9759 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9760 hardcode_libdir_separator_CXX=:
9761
9762 # Commands to make compiler produce verbose output that lists
9763 # what "hidden" libraries, object files and flags are used when
9764 # linking a shared library.
9765 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9766
9767 else
9768 # FIXME: insert proper C++ library support
9769 ld_shlibs_CXX=no
9770 fi
9771 ;;
9772 esac
9773 ;;
9774 psos*)
9775 # FIXME: insert proper C++ library support
9776 ld_shlibs_CXX=no
9777 ;;
9778 sco*)
9779 archive_cmds_need_lc_CXX=no
9780 case $cc_basename in
9781 CC)
9782 # FIXME: insert proper C++ library support
9783 ld_shlibs_CXX=no
9784 ;;
9785 *)
9786 # FIXME: insert proper C++ library support
9787 ld_shlibs_CXX=no
9788 ;;
9789 esac
9790 ;;
9791 sunos4*)
9792 case $cc_basename in
9793 CC)
9794 # Sun C++ 4.x
9795 # FIXME: insert proper C++ library support
9796 ld_shlibs_CXX=no
9797 ;;
9798 lcc)
9799 # Lucid
9800 # FIXME: insert proper C++ library support
9801 ld_shlibs_CXX=no
9802 ;;
9803 *)
9804 # FIXME: insert proper C++ library support
9805 ld_shlibs_CXX=no
9806 ;;
9807 esac
9808 ;;
9809 solaris*)
9810 case $cc_basename in
9811 CC)
9812 # Sun C++ 4.2, 5.x and Centerline C++
9813 no_undefined_flag_CXX=' -zdefs'
9814 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9815 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9816 $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'
9817
9818 hardcode_libdir_flag_spec_CXX='-R$libdir'
9819 hardcode_shlibpath_var_CXX=no
9820 case $host_os in
9821 solaris2.0-5 | solaris2.0-5.*) ;;
9822 *)
9823 # The C++ compiler is used as linker so we must use $wl
9824 # flag to pass the commands to the underlying system
9825 # linker.
9826 # Supported since Solaris 2.6 (maybe 2.5.1?)
9827 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9828 ;;
9829 esac
9830 link_all_deplibs_CXX=yes
9831
9832 # Commands to make compiler produce verbose output that lists
9833 # what "hidden" libraries, object files and flags are used when
9834 # linking a shared library.
9835 #
9836 # There doesn't appear to be a way to prevent this compiler from
9837 # explicitly linking system object files so we need to strip them
9838 # from the output so that they don't get included in the library
9839 # dependencies.
9840 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'
9841
9842 # Archives containing C++ object files must be created using
9843 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9844 # necessary to make sure instantiated templates are included
9845 # in the archive.
9846 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9847 ;;
9848 gcx)
9849 # Green Hills C++ Compiler
9850 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9851
9852 # The C++ compiler must be used to create the archive.
9853 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9854 ;;
9855 *)
9856 # GNU C++ compiler with Solaris linker
9857 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9858 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9859 if $CC --version | grep -v '^2\.7' > /dev/null; then
9860 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9861 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9862 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9863
9864 # Commands to make compiler produce verbose output that lists
9865 # what "hidden" libraries, object files and flags are used when
9866 # linking a shared library.
9867 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9868 else
9869 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9870 # platform.
9871 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9872 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9873 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9874
9875 # Commands to make compiler produce verbose output that lists
9876 # what "hidden" libraries, object files and flags are used when
9877 # linking a shared library.
9878 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9879 fi
9880
9881 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9882 fi
9883 ;;
9884 esac
9885 ;;
9886 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9887 archive_cmds_need_lc_CXX=no
9888 ;;
9889 tandem*)
9890 case $cc_basename in
9891 NCC)
9892 # NonStop-UX NCC 3.20
9893 # FIXME: insert proper C++ library support
9894 ld_shlibs_CXX=no
9895 ;;
9896 *)
9897 # FIXME: insert proper C++ library support
9898 ld_shlibs_CXX=no
9899 ;;
9900 esac
9901 ;;
9902 vxworks*)
9903 # FIXME: insert proper C++ library support
9904 ld_shlibs_CXX=no
9905 ;;
9906 *)
9907 # FIXME: insert proper C++ library support
9908 ld_shlibs_CXX=no
9909 ;;
9910esac
9911echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9912echo "${ECHO_T}$ld_shlibs_CXX" >&6
9913test "$ld_shlibs_CXX" = no && can_build_shared=no
9914
9915GCC_CXX="$GXX"
9916LD_CXX="$LD"
9917
9918
9919cat > conftest.$ac_ext <<EOF
9920class Foo
9921{
9922public:
9923 Foo (void) { a = 0; }
9924private:
9925 int a;
9926};
9927EOF
9928
9929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9930 (eval $ac_compile) 2>&5
9931 ac_status=$?
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; then
9934 # Parse the compiler output and extract the necessary
9935 # objects, libraries and library flags.
9936
9937 # Sentinel used to keep track of whether or not we are before
9938 # the conftest object file.
9939 pre_test_object_deps_done=no
9940
9941 # The `*' in the case matches for architectures that use `case' in
9942 # $output_verbose_cmd can trigger glob expansion during the loop
9943 # eval without this substitution.
9944 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9945
9946 for p in `eval $output_verbose_link_cmd`; do
9947 case $p in
9948
9949 -L* | -R* | -l*)
9950 # Some compilers place space between "-{L,R}" and the path.
9951 # Remove the space.
9952 if test $p = "-L" \
9953 || test $p = "-R"; then
9954 prev=$p
9955 continue
9956 else
9957 prev=
9958 fi
9959
9960 if test "$pre_test_object_deps_done" = no; then
9961 case $p in
9962 -L* | -R*)
9963 # Internal compiler library paths should come after those
9964 # provided the user. The postdeps already come after the
9965 # user supplied libs so there is no need to process them.
9966 if test -z "$compiler_lib_search_path_CXX"; then
9967 compiler_lib_search_path_CXX="${prev}${p}"
9968 else
9969 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9970 fi
9971 ;;
9972 # The "-l" case would never come before the object being
9973 # linked, so don't bother handling this case.
9974 esac
9975 else
9976 if test -z "$postdeps_CXX"; then
9977 postdeps_CXX="${prev}${p}"
9978 else
9979 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9980 fi
9981 fi
9982 ;;
9983
9984 *.$objext)
9985 # This assumes that the test object file only shows up
9986 # once in the compiler output.
9987 if test "$p" = "conftest.$objext"; then
9988 pre_test_object_deps_done=yes
9989 continue
9990 fi
9991
9992 if test "$pre_test_object_deps_done" = no; then
9993 if test -z "$predep_objects_CXX"; then
9994 predep_objects_CXX="$p"
9995 else
9996 predep_objects_CXX="$predep_objects_CXX $p"
9997 fi
9998 else
9999 if test -z "$postdep_objects_CXX"; then
10000 postdep_objects_CXX="$p"
10001 else
10002 postdep_objects_CXX="$postdep_objects_CXX $p"
10003 fi
10004 fi
10005 ;;
10006
10007 *) ;; # Ignore the rest.
10008
10009 esac
10010 done
10011
10012 # Clean up.
10013 rm -f a.out a.exe
10014else
10015 echo "libtool.m4: error: problem compiling CXX test program"
10016fi
10017
10018$rm -f confest.$objext
10019
10020case " $postdeps_CXX " in
10021*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10022esac
10023
10024lt_prog_compiler_wl_CXX=
10025lt_prog_compiler_pic_CXX=
10026lt_prog_compiler_static_CXX=
10027
10028echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10029echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10030
10031 # C++ specific cases for pic, static, wl, etc.
10032 if test "$GXX" = yes; then
10033 lt_prog_compiler_wl_CXX='-Wl,'
10034 lt_prog_compiler_static_CXX='-static'
10035
10036 case $host_os in
10037 aix*)
10038 # All AIX code is PIC.
10039 if test "$host_cpu" = ia64; then
10040 # AIX 5 now supports IA64 processor
10041 lt_prog_compiler_static_CXX='-Bstatic'
10042 fi
10043 ;;
10044 amigaos*)
10045 # FIXME: we need at least 68020 code to build shared libraries, but
10046 # adding the `-m68020' flag to GCC prevents building anything better,
10047 # like `-m68040'.
10048 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10049 ;;
10050 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10051 # PIC is the default for these OSes.
10052 ;;
10053 mingw* | os2* | pw32*)
10054 # This hack is so that the source file can tell whether it is being
10055 # built for inclusion in a dll (and should export symbols for example).
10056 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10057 ;;
10058 darwin* | rhapsody*)
10059 # PIC is the default on this platform
10060 # Common symbols not allowed in MH_DYLIB files
10061 lt_prog_compiler_pic_CXX='-fno-common'
10062 ;;
10063 *djgpp*)
10064 # DJGPP does not support shared libraries at all
10065 lt_prog_compiler_pic_CXX=
10066 ;;
10067 sysv4*MP*)
10068 if test -d /usr/nec; then
10069 lt_prog_compiler_pic_CXX=-Kconform_pic
10070 fi
10071 ;;
10072 hpux*)
10073 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10074 # not for PA HP-UX.
10075 case "$host_cpu" in
10076 hppa*64*|ia64*)
10077 ;;
10078 *)
10079 lt_prog_compiler_pic_CXX='-fPIC'
10080 ;;
10081 esac
10082 ;;
10083 *)
10084 lt_prog_compiler_pic_CXX='-fPIC'
10085 ;;
10086 esac
10087 else
10088 case $host_os in
10089 aix4* | aix5*)
10090 # All AIX code is PIC.
10091 if test "$host_cpu" = ia64; then
10092 # AIX 5 now supports IA64 processor
10093 lt_prog_compiler_static_CXX='-Bstatic'
10094 else
10095 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10096 fi
10097 ;;
10098 chorus*)
10099 case $cc_basename in
10100 cxch68)
10101 # Green Hills C++ Compiler
10102 # _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"
10103 ;;
10104 esac
10105 ;;
10106 dgux*)
10107 case $cc_basename in
10108 ec++)
10109 lt_prog_compiler_pic_CXX='-KPIC'
10110 ;;
10111 ghcx)
10112 # Green Hills C++ Compiler
10113 lt_prog_compiler_pic_CXX='-pic'
10114 ;;
10115 *)
10116 ;;
10117 esac
10118 ;;
10119 freebsd* | kfreebsd*-gnu)
10120 # FreeBSD uses GNU C++
10121 ;;
10122 hpux9* | hpux10* | hpux11*)
10123 case $cc_basename in
10124 CC)
10125 lt_prog_compiler_wl_CXX='-Wl,'
10126 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10127 if test "$host_cpu" != ia64; then
10128 lt_prog_compiler_pic_CXX='+Z'
10129 fi
10130 ;;
10131 aCC)
10132 lt_prog_compiler_wl_CXX='-Wl,'
10133 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10134 case "$host_cpu" in
10135 hppa*64*|ia64*)
10136 # +Z the default
10137 ;;
10138 *)
10139 lt_prog_compiler_pic_CXX='+Z'
10140 ;;
10141 esac
10142 ;;
10143 *)
10144 ;;
10145 esac
10146 ;;
10147 irix5* | irix6* | nonstopux*)
10148 case $cc_basename in
10149 CC)
10150 lt_prog_compiler_wl_CXX='-Wl,'
10151 lt_prog_compiler_static_CXX='-non_shared'
10152 # CC pic flag -KPIC is the default.
10153 ;;
10154 *)
10155 ;;
10156 esac
10157 ;;
10158 linux*)
10159 case $cc_basename in
10160 KCC)
10161 # KAI C++ Compiler
10162 lt_prog_compiler_wl_CXX='--backend -Wl,'
10163 lt_prog_compiler_pic_CXX='-fPIC'
10164 ;;
10165 icpc)
10166 # Intel C++
10167 lt_prog_compiler_wl_CXX='-Wl,'
10168 lt_prog_compiler_pic_CXX='-KPIC'
10169 lt_prog_compiler_static_CXX='-static'
10170 ;;
10171 cxx)
10172 # Compaq C++
10173 # Make sure the PIC flag is empty. It appears that all Alpha
10174 # Linux and Compaq Tru64 Unix objects are PIC.
10175 lt_prog_compiler_pic_CXX=
10176 lt_prog_compiler_static_CXX='-non_shared'
10177 ;;
10178 *)
10179 ;;
10180 esac
10181 ;;
10182 lynxos*)
10183 ;;
10184 m88k*)
10185 ;;
10186 mvs*)
10187 case $cc_basename in
10188 cxx)
10189 lt_prog_compiler_pic_CXX='-W c,exportall'
10190 ;;
10191 *)
10192 ;;
10193 esac
10194 ;;
10195 netbsd* | knetbsd*-gnu)
10196 ;;
10197 osf3* | osf4* | osf5*)
10198 case $cc_basename in
10199 KCC)
10200 lt_prog_compiler_wl_CXX='--backend -Wl,'
10201 ;;
10202 RCC)
10203 # Rational C++ 2.4.1
10204 lt_prog_compiler_pic_CXX='-pic'
10205 ;;
10206 cxx)
10207 # Digital/Compaq C++
10208 lt_prog_compiler_wl_CXX='-Wl,'
10209 # Make sure the PIC flag is empty. It appears that all Alpha
10210 # Linux and Compaq Tru64 Unix objects are PIC.
10211 lt_prog_compiler_pic_CXX=
10212 lt_prog_compiler_static_CXX='-non_shared'
10213 ;;
10214 *)
10215 ;;
10216 esac
10217 ;;
10218 psos*)
10219 ;;
10220 sco*)
10221 case $cc_basename in
10222 CC)
10223 lt_prog_compiler_pic_CXX='-fPIC'
10224 ;;
10225 *)
10226 ;;
10227 esac
10228 ;;
10229 solaris*)
10230 case $cc_basename in
10231 CC)
10232 # Sun C++ 4.2, 5.x and Centerline C++
10233 lt_prog_compiler_pic_CXX='-KPIC'
10234 lt_prog_compiler_static_CXX='-Bstatic'
10235 lt_prog_compiler_wl_CXX='-Qoption ld '
10236 ;;
10237 gcx)
10238 # Green Hills C++ Compiler
10239 lt_prog_compiler_pic_CXX='-PIC'
10240 ;;
10241 *)
10242 ;;
10243 esac
10244 ;;
10245 sunos4*)
10246 case $cc_basename in
10247 CC)
10248 # Sun C++ 4.x
10249 lt_prog_compiler_pic_CXX='-pic'
10250 lt_prog_compiler_static_CXX='-Bstatic'
10251 ;;
10252 lcc)
10253 # Lucid
10254 lt_prog_compiler_pic_CXX='-pic'
10255 ;;
10256 *)
10257 ;;
10258 esac
10259 ;;
10260 tandem*)
10261 case $cc_basename in
10262 NCC)
10263 # NonStop-UX NCC 3.20
10264 lt_prog_compiler_pic_CXX='-KPIC'
10265 ;;
10266 *)
10267 ;;
10268 esac
10269 ;;
10270 unixware*)
10271 ;;
10272 vxworks*)
10273 ;;
10274 *)
10275 lt_prog_compiler_can_build_shared_CXX=no
10276 ;;
10277 esac
10278 fi
10279
10280echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10281echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10282
10283#
10284# Check to make sure the PIC flag actually works.
10285#
10286if test -n "$lt_prog_compiler_pic_CXX"; then
10287
10288echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10289echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10290if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10292else
10293 lt_prog_compiler_pic_works_CXX=no
10294 ac_outfile=conftest.$ac_objext
10295 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10296 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10297 # Insert the option either (1) after the last *FLAGS variable, or
10298 # (2) before a word containing "conftest.", or (3) at the end.
10299 # Note that $ac_compile itself does not contain backslashes and begins
10300 # with a dollar sign (not a hyphen), so the echo should work correctly.
10301 # The option is referenced via a variable to avoid confusing sed.
10302 lt_compile=`echo "$ac_compile" | $SED \
10303 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10305 -e 's:$: $lt_compiler_flag:'`
dougcurrie0f290bf2004-06-21 18:57:29 +000010306 (eval echo "\"\$as_me:10306: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000010307 (eval "$lt_compile" 2>conftest.err)
10308 ac_status=$?
10309 cat conftest.err >&5
dougcurrie0f290bf2004-06-21 18:57:29 +000010310 echo "$as_me:10310: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000010311 if (exit $ac_status) && test -s "$ac_outfile"; then
10312 # The compiler can only warn and ignore the option if not recognized
10313 # So say no if there are warnings
10314 if test ! -s conftest.err; then
10315 lt_prog_compiler_pic_works_CXX=yes
10316 fi
10317 fi
10318 $rm conftest*
10319
10320fi
10321echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10322echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10323
10324if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10325 case $lt_prog_compiler_pic_CXX in
10326 "" | " "*) ;;
10327 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10328 esac
10329else
10330 lt_prog_compiler_pic_CXX=
10331 lt_prog_compiler_can_build_shared_CXX=no
10332fi
10333
10334fi
10335case "$host_os" in
10336 # For platforms which do not support PIC, -DPIC is meaningless:
10337 *djgpp*)
10338 lt_prog_compiler_pic_CXX=
10339 ;;
10340 *)
10341 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10342 ;;
10343esac
10344
10345echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10346echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10347if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10349else
10350 lt_cv_prog_compiler_c_o_CXX=no
10351 $rm -r conftest 2>/dev/null
10352 mkdir conftest
10353 cd conftest
10354 mkdir out
10355 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10356
10357 lt_compiler_flag="-o out/conftest2.$ac_objext"
10358 # Insert the option either (1) after the last *FLAGS variable, or
10359 # (2) before a word containing "conftest.", or (3) at the end.
10360 # Note that $ac_compile itself does not contain backslashes and begins
10361 # with a dollar sign (not a hyphen), so the echo should work correctly.
10362 lt_compile=`echo "$ac_compile" | $SED \
10363 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10365 -e 's:$: $lt_compiler_flag:'`
dougcurrie0f290bf2004-06-21 18:57:29 +000010366 (eval echo "\"\$as_me:10366: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000010367 (eval "$lt_compile" 2>out/conftest.err)
10368 ac_status=$?
10369 cat out/conftest.err >&5
dougcurrie0f290bf2004-06-21 18:57:29 +000010370 echo "$as_me:10370: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000010371 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10372 then
10373 # The compiler can only warn and ignore the option if not recognized
10374 # So say no if there are warnings
10375 if test ! -s out/conftest.err; then
10376 lt_cv_prog_compiler_c_o_CXX=yes
10377 fi
10378 fi
10379 chmod u+w .
10380 $rm conftest*
10381 # SGI C++ compiler will create directory out/ii_files/ for
10382 # template instantiation
10383 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10384 $rm out/* && rmdir out
10385 cd ..
10386 rmdir conftest
10387 $rm conftest*
10388
10389fi
10390echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10391echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10392
10393
10394hard_links="nottested"
10395if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10396 # do not overwrite the value of need_locks provided by the user
10397 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10398echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10399 hard_links=yes
10400 $rm conftest*
10401 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10402 touch conftest.a
10403 ln conftest.a conftest.b 2>&5 || hard_links=no
10404 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10405 echo "$as_me:$LINENO: result: $hard_links" >&5
10406echo "${ECHO_T}$hard_links" >&6
10407 if test "$hard_links" = no; then
10408 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10409echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10410 need_locks=warn
10411 fi
10412else
10413 need_locks=no
10414fi
10415
10416echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10417echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10418
10419 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10420 case $host_os in
10421 aix4* | aix5*)
10422 # If we're using GNU nm, then we don't want the "-C" option.
10423 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10424 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10425 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'
10426 else
10427 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'
10428 fi
10429 ;;
10430 pw32*)
10431 export_symbols_cmds_CXX="$ltdll_cmds"
10432 ;;
10433 cygwin* | mingw*)
10434 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10435 ;;
10436 *)
10437 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10438 ;;
10439 esac
10440
10441echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10442echo "${ECHO_T}$ld_shlibs_CXX" >&6
10443test "$ld_shlibs_CXX" = no && can_build_shared=no
10444
10445variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10446if test "$GCC" = yes; then
10447 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10448fi
10449
10450#
10451# Do we need to explicitly link libc?
10452#
10453case "x$archive_cmds_need_lc_CXX" in
10454x|xyes)
10455 # Assume -lc should be added
10456 archive_cmds_need_lc_CXX=yes
10457
10458 if test "$enable_shared" = yes && test "$GCC" = yes; then
10459 case $archive_cmds_CXX in
10460 *'~'*)
10461 # FIXME: we may have to deal with multi-command sequences.
10462 ;;
10463 '$CC '*)
10464 # Test whether the compiler implicitly links with -lc since on some
10465 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10466 # to ld, don't add -lc before -lgcc.
10467 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10468echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10469 $rm conftest*
10470 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10471
10472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10473 (eval $ac_compile) 2>&5
10474 ac_status=$?
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } 2>conftest.err; then
10477 soname=conftest
10478 lib=conftest
10479 libobjs=conftest.$ac_objext
10480 deplibs=
10481 wl=$lt_prog_compiler_wl_CXX
10482 compiler_flags=-v
10483 linker_flags=-v
10484 verstring=
10485 output_objdir=.
10486 libname=conftest
10487 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10488 allow_undefined_flag_CXX=
10489 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10490 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10491 ac_status=$?
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }
10494 then
10495 archive_cmds_need_lc_CXX=no
10496 else
10497 archive_cmds_need_lc_CXX=yes
10498 fi
10499 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10500 else
10501 cat conftest.err 1>&5
10502 fi
10503 $rm conftest*
10504 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10505echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10506 ;;
10507 esac
10508 fi
10509 ;;
10510esac
10511
10512echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10513echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10514library_names_spec=
10515libname_spec='lib$name'
10516soname_spec=
10517shrext=".so"
10518postinstall_cmds=
10519postuninstall_cmds=
10520finish_cmds=
10521finish_eval=
10522shlibpath_var=
10523shlibpath_overrides_runpath=unknown
10524version_type=none
10525dynamic_linker="$host_os ld.so"
10526sys_lib_dlsearch_path_spec="/lib /usr/lib"
10527if test "$GCC" = yes; then
10528 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10529 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10530 # if the path contains ";" then we assume it to be the separator
10531 # otherwise default to the standard path separator (i.e. ":") - it is
10532 # assumed that no part of a normal pathname contains ";" but that should
10533 # okay in the real world where ";" in dirpaths is itself problematic.
10534 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10535 else
10536 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10537 fi
10538else
10539 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10540fi
10541need_lib_prefix=unknown
10542hardcode_into_libs=no
10543
10544# when you set need_version to no, make sure it does not cause -set_version
10545# flags to be left without arguments
10546need_version=unknown
10547
10548case $host_os in
10549aix3*)
10550 version_type=linux
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10552 shlibpath_var=LIBPATH
10553
10554 # AIX 3 has no versioning support, so we append a major version to the name.
10555 soname_spec='${libname}${release}${shared_ext}$major'
10556 ;;
10557
10558aix4* | aix5*)
10559 version_type=linux
10560 need_lib_prefix=no
10561 need_version=no
10562 hardcode_into_libs=yes
10563 if test "$host_cpu" = ia64; then
10564 # AIX 5 supports IA64
10565 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10566 shlibpath_var=LD_LIBRARY_PATH
10567 else
10568 # With GCC up to 2.95.x, collect2 would create an import file
10569 # for dependence libraries. The import file would start with
10570 # the line `#! .'. This would cause the generated library to
10571 # depend on `.', always an invalid library. This was fixed in
10572 # development snapshots of GCC prior to 3.0.
10573 case $host_os in
10574 aix4 | aix4.[01] | aix4.[01].*)
10575 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10576 echo ' yes '
10577 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10578 :
10579 else
10580 can_build_shared=no
10581 fi
10582 ;;
10583 esac
10584 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10585 # soname into executable. Probably we can add versioning support to
10586 # collect2, so additional links can be useful in future.
10587 if test "$aix_use_runtimelinking" = yes; then
10588 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10589 # instead of lib<name>.a to let people know that these are not
10590 # typical AIX shared libraries.
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592 else
10593 # We preserve .a as extension for shared libraries through AIX4.2
10594 # and later when we are not doing run time linking.
10595 library_names_spec='${libname}${release}.a $libname.a'
10596 soname_spec='${libname}${release}${shared_ext}$major'
10597 fi
10598 shlibpath_var=LIBPATH
10599 fi
10600 ;;
10601
10602amigaos*)
10603 library_names_spec='$libname.ixlibrary $libname.a'
10604 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10605 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'
10606 ;;
10607
10608beos*)
10609 library_names_spec='${libname}${shared_ext}'
10610 dynamic_linker="$host_os ld.so"
10611 shlibpath_var=LIBRARY_PATH
10612 ;;
10613
10614bsdi4*)
10615 version_type=linux
10616 need_version=no
10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10618 soname_spec='${libname}${release}${shared_ext}$major'
10619 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10620 shlibpath_var=LD_LIBRARY_PATH
10621 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10622 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10623 # the default ld.so.conf also contains /usr/contrib/lib and
10624 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10625 # libtool to hard-code these into programs
10626 ;;
10627
10628cygwin* | mingw* | pw32*)
10629 version_type=windows
10630 shrext=".dll"
10631 need_version=no
10632 need_lib_prefix=no
10633
10634 case $GCC,$host_os in
10635 yes,cygwin* | yes,mingw* | yes,pw32*)
10636 library_names_spec='$libname.dll.a'
10637 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10638 postinstall_cmds='base_file=`basename \${file}`~
10639 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10640 dldir=$destdir/`dirname \$dlpath`~
10641 test -d \$dldir || mkdir -p \$dldir~
10642 $install_prog $dir/$dlname \$dldir/$dlname'
10643 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10644 dlpath=$dir/\$dldll~
10645 $rm \$dlpath'
10646 shlibpath_overrides_runpath=yes
10647
10648 case $host_os in
10649 cygwin*)
10650 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10651 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10652 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10653 ;;
10654 mingw*)
10655 # MinGW DLLs use traditional 'lib' prefix
10656 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10657 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10658 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10659 # It is most probably a Windows format PATH printed by
10660 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10661 # path with ; separators, and with drive letters. We can handle the
10662 # drive letters (cygwin fileutils understands them), so leave them,
10663 # especially as we might pass files found there to a mingw objdump,
10664 # which wouldn't understand a cygwinified path. Ahh.
10665 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10666 else
10667 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10668 fi
10669 ;;
10670 pw32*)
10671 # pw32 DLLs use 'pw' prefix rather than 'lib'
10672 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10673 ;;
10674 esac
10675 ;;
10676
10677 *)
10678 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10679 ;;
10680 esac
10681 dynamic_linker='Win32 ld.exe'
10682 # FIXME: first we should search . and the directory the executable is in
10683 shlibpath_var=PATH
10684 ;;
10685
10686darwin* | rhapsody*)
10687 dynamic_linker="$host_os dyld"
10688 version_type=darwin
10689 need_lib_prefix=no
10690 need_version=no
10691 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10692 soname_spec='${libname}${release}${major}$shared_ext'
10693 shlibpath_overrides_runpath=yes
10694 shlibpath_var=DYLD_LIBRARY_PATH
10695 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10696 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10697 if test "$GCC" = yes; then
10698 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"`
10699 else
10700 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10701 fi
10702 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10703 ;;
10704
10705dgux*)
10706 version_type=linux
10707 need_lib_prefix=no
10708 need_version=no
10709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10710 soname_spec='${libname}${release}${shared_ext}$major'
10711 shlibpath_var=LD_LIBRARY_PATH
10712 ;;
10713
10714freebsd1*)
10715 dynamic_linker=no
10716 ;;
10717
10718kfreebsd*-gnu)
10719 version_type=linux
10720 need_lib_prefix=no
10721 need_version=no
10722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10723 soname_spec='${libname}${release}${shared_ext}$major'
10724 shlibpath_var=LD_LIBRARY_PATH
10725 shlibpath_overrides_runpath=no
10726 hardcode_into_libs=yes
10727 dynamic_linker='GNU ld.so'
10728 ;;
10729
10730freebsd*)
10731 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10732 version_type=freebsd-$objformat
10733 case $version_type in
10734 freebsd-elf*)
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10736 need_version=no
10737 need_lib_prefix=no
10738 ;;
10739 freebsd-*)
10740 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10741 need_version=yes
10742 ;;
10743 esac
10744 shlibpath_var=LD_LIBRARY_PATH
10745 case $host_os in
10746 freebsd2*)
10747 shlibpath_overrides_runpath=yes
10748 ;;
10749 freebsd3.01* | freebsdelf3.01*)
10750 shlibpath_overrides_runpath=yes
10751 hardcode_into_libs=yes
10752 ;;
10753 *) # from 3.2 on
10754 shlibpath_overrides_runpath=no
10755 hardcode_into_libs=yes
10756 ;;
10757 esac
10758 ;;
10759
10760gnu*)
10761 version_type=linux
10762 need_lib_prefix=no
10763 need_version=no
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10765 soname_spec='${libname}${release}${shared_ext}$major'
10766 shlibpath_var=LD_LIBRARY_PATH
10767 hardcode_into_libs=yes
10768 ;;
10769
10770hpux9* | hpux10* | hpux11*)
10771 # Give a soname corresponding to the major version so that dld.sl refuses to
10772 # link against other versions.
10773 version_type=sunos
10774 need_lib_prefix=no
10775 need_version=no
10776 case "$host_cpu" in
10777 ia64*)
10778 shrext='.so'
10779 hardcode_into_libs=yes
10780 dynamic_linker="$host_os dld.so"
10781 shlibpath_var=LD_LIBRARY_PATH
10782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10784 soname_spec='${libname}${release}${shared_ext}$major'
10785 if test "X$HPUX_IA64_MODE" = X32; then
10786 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10787 else
10788 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10789 fi
10790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10791 ;;
10792 hppa*64*)
10793 shrext='.sl'
10794 hardcode_into_libs=yes
10795 dynamic_linker="$host_os dld.sl"
10796 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10799 soname_spec='${libname}${release}${shared_ext}$major'
10800 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10802 ;;
10803 *)
10804 shrext='.sl'
10805 dynamic_linker="$host_os dld.sl"
10806 shlibpath_var=SHLIB_PATH
10807 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10809 soname_spec='${libname}${release}${shared_ext}$major'
10810 ;;
10811 esac
10812 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10813 postinstall_cmds='chmod 555 $lib'
10814 ;;
10815
10816irix5* | irix6* | nonstopux*)
10817 case $host_os in
10818 nonstopux*) version_type=nonstopux ;;
10819 *)
10820 if test "$lt_cv_prog_gnu_ld" = yes; then
10821 version_type=linux
10822 else
10823 version_type=irix
10824 fi ;;
10825 esac
10826 need_lib_prefix=no
10827 need_version=no
10828 soname_spec='${libname}${release}${shared_ext}$major'
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10830 case $host_os in
10831 irix5* | nonstopux*)
10832 libsuff= shlibsuff=
10833 ;;
10834 *)
10835 case $LD in # libtool.m4 will add one of these switches to LD
10836 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10837 libsuff= shlibsuff= libmagic=32-bit;;
10838 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10839 libsuff=32 shlibsuff=N32 libmagic=N32;;
10840 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10841 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10842 *) libsuff= shlibsuff= libmagic=never-match;;
10843 esac
10844 ;;
10845 esac
10846 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10847 shlibpath_overrides_runpath=no
10848 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10849 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10850 hardcode_into_libs=yes
10851 ;;
10852
10853# No shared lib support for Linux oldld, aout, or coff.
10854linux*oldld* | linux*aout* | linux*coff*)
10855 dynamic_linker=no
10856 ;;
10857
10858# This must be Linux ELF.
10859linux*)
10860 version_type=linux
10861 need_lib_prefix=no
10862 need_version=no
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864 soname_spec='${libname}${release}${shared_ext}$major'
10865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10866 shlibpath_var=LD_LIBRARY_PATH
10867 shlibpath_overrides_runpath=no
10868 # This implies no fast_install, which is unacceptable.
10869 # Some rework will be needed to allow for fast_install
10870 # before this can be enabled.
10871 hardcode_into_libs=yes
10872
10873 # Append ld.so.conf contents to the search path
10874 if test -f /etc/ld.so.conf; then
10875 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
10876 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
10877 fi
10878
10879 # We used to test for /lib/ld.so.1 and disable shared libraries on
10880 # powerpc, because MkLinux only supported shared libraries with the
10881 # GNU dynamic linker. Since this was broken with cross compilers,
10882 # most powerpc-linux boxes support dynamic linking these days and
10883 # people can always --disable-shared, the test was removed, and we
10884 # assume the GNU/Linux dynamic linker is in use.
10885 dynamic_linker='GNU/Linux ld.so'
10886 ;;
10887
10888knetbsd*-gnu)
10889 version_type=linux
10890 need_lib_prefix=no
10891 need_version=no
10892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10893 soname_spec='${libname}${release}${shared_ext}$major'
10894 shlibpath_var=LD_LIBRARY_PATH
10895 shlibpath_overrides_runpath=no
10896 hardcode_into_libs=yes
10897 dynamic_linker='GNU ld.so'
10898 ;;
10899
10900netbsd*)
10901 version_type=sunos
10902 need_lib_prefix=no
10903 need_version=no
10904 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10907 dynamic_linker='NetBSD (a.out) ld.so'
10908 else
10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10910 soname_spec='${libname}${release}${shared_ext}$major'
10911 dynamic_linker='NetBSD ld.elf_so'
10912 fi
10913 shlibpath_var=LD_LIBRARY_PATH
10914 shlibpath_overrides_runpath=yes
10915 hardcode_into_libs=yes
10916 ;;
10917
10918newsos6)
10919 version_type=linux
10920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10921 shlibpath_var=LD_LIBRARY_PATH
10922 shlibpath_overrides_runpath=yes
10923 ;;
10924
10925nto-qnx*)
10926 version_type=linux
10927 need_lib_prefix=no
10928 need_version=no
10929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10930 soname_spec='${libname}${release}${shared_ext}$major'
10931 shlibpath_var=LD_LIBRARY_PATH
10932 shlibpath_overrides_runpath=yes
10933 ;;
10934
10935openbsd*)
10936 version_type=sunos
10937 need_lib_prefix=no
10938 need_version=yes
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10941 shlibpath_var=LD_LIBRARY_PATH
10942 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10943 case $host_os in
10944 openbsd2.[89] | openbsd2.[89].*)
10945 shlibpath_overrides_runpath=no
10946 ;;
10947 *)
10948 shlibpath_overrides_runpath=yes
10949 ;;
10950 esac
10951 else
10952 shlibpath_overrides_runpath=yes
10953 fi
10954 ;;
10955
10956os2*)
10957 libname_spec='$name'
10958 shrext=".dll"
10959 need_lib_prefix=no
10960 library_names_spec='$libname${shared_ext} $libname.a'
10961 dynamic_linker='OS/2 ld.exe'
10962 shlibpath_var=LIBPATH
10963 ;;
10964
10965osf3* | osf4* | osf5*)
10966 version_type=osf
10967 need_lib_prefix=no
10968 need_version=no
10969 soname_spec='${libname}${release}${shared_ext}$major'
10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971 shlibpath_var=LD_LIBRARY_PATH
10972 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10973 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10974 ;;
10975
10976sco3.2v5*)
10977 version_type=osf
10978 soname_spec='${libname}${release}${shared_ext}$major'
10979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10980 shlibpath_var=LD_LIBRARY_PATH
10981 ;;
10982
10983solaris*)
10984 version_type=linux
10985 need_lib_prefix=no
10986 need_version=no
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988 soname_spec='${libname}${release}${shared_ext}$major'
10989 shlibpath_var=LD_LIBRARY_PATH
10990 shlibpath_overrides_runpath=yes
10991 hardcode_into_libs=yes
10992 # ldd complains unless libraries are executable
10993 postinstall_cmds='chmod +x $lib'
10994 ;;
10995
10996sunos4*)
10997 version_type=sunos
10998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10999 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11000 shlibpath_var=LD_LIBRARY_PATH
11001 shlibpath_overrides_runpath=yes
11002 if test "$with_gnu_ld" = yes; then
11003 need_lib_prefix=no
11004 fi
11005 need_version=yes
11006 ;;
11007
11008sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11009 version_type=linux
11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11011 soname_spec='${libname}${release}${shared_ext}$major'
11012 shlibpath_var=LD_LIBRARY_PATH
11013 case $host_vendor in
11014 sni)
11015 shlibpath_overrides_runpath=no
11016 need_lib_prefix=no
11017 export_dynamic_flag_spec='${wl}-Blargedynsym'
11018 runpath_var=LD_RUN_PATH
11019 ;;
11020 siemens)
11021 need_lib_prefix=no
11022 ;;
11023 motorola)
11024 need_lib_prefix=no
11025 need_version=no
11026 shlibpath_overrides_runpath=no
11027 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11028 ;;
11029 esac
11030 ;;
11031
11032sysv4*MP*)
11033 if test -d /usr/nec ;then
11034 version_type=linux
11035 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11036 soname_spec='$libname${shared_ext}.$major'
11037 shlibpath_var=LD_LIBRARY_PATH
11038 fi
11039 ;;
11040
11041uts4*)
11042 version_type=linux
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11044 soname_spec='${libname}${release}${shared_ext}$major'
11045 shlibpath_var=LD_LIBRARY_PATH
11046 ;;
11047
11048*)
11049 dynamic_linker=no
11050 ;;
11051esac
11052echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11053echo "${ECHO_T}$dynamic_linker" >&6
11054test "$dynamic_linker" = no && can_build_shared=no
11055
11056echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11057echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11058hardcode_action_CXX=
11059if test -n "$hardcode_libdir_flag_spec_CXX" || \
11060 test -n "$runpath_var CXX" || \
11061 test "X$hardcode_automatic_CXX"="Xyes" ; then
11062
11063 # We can hardcode non-existant directories.
11064 if test "$hardcode_direct_CXX" != no &&
11065 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11066 # have to relink, otherwise we might link with an installed library
11067 # when we should be linking with a yet-to-be-installed one
11068 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11069 test "$hardcode_minus_L_CXX" != no; then
11070 # Linking always hardcodes the temporary library directory.
11071 hardcode_action_CXX=relink
11072 else
11073 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11074 hardcode_action_CXX=immediate
11075 fi
11076else
11077 # We cannot hardcode anything, or else we can only hardcode existing
11078 # directories.
11079 hardcode_action_CXX=unsupported
11080fi
11081echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11082echo "${ECHO_T}$hardcode_action_CXX" >&6
11083
11084if test "$hardcode_action_CXX" = relink; then
11085 # Fast installation is not supported
11086 enable_fast_install=no
11087elif test "$shlibpath_overrides_runpath" = yes ||
11088 test "$enable_shared" = no; then
11089 # Fast installation is not necessary
11090 enable_fast_install=needless
11091fi
11092
11093striplib=
11094old_striplib=
11095echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11096echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11097if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11098 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11099 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11100 echo "$as_me:$LINENO: result: yes" >&5
11101echo "${ECHO_T}yes" >&6
11102else
11103# FIXME - insert some real tests, host_os isn't really good enough
11104 case $host_os in
11105 darwin*)
11106 if test -n "$STRIP" ; then
11107 striplib="$STRIP -x"
11108 echo "$as_me:$LINENO: result: yes" >&5
11109echo "${ECHO_T}yes" >&6
11110 else
11111 echo "$as_me:$LINENO: result: no" >&5
11112echo "${ECHO_T}no" >&6
11113fi
11114 ;;
11115 *)
11116 echo "$as_me:$LINENO: result: no" >&5
11117echo "${ECHO_T}no" >&6
11118 ;;
11119 esac
11120fi
11121
11122if test "x$enable_dlopen" != xyes; then
11123 enable_dlopen=unknown
11124 enable_dlopen_self=unknown
11125 enable_dlopen_self_static=unknown
11126else
11127 lt_cv_dlopen=no
11128 lt_cv_dlopen_libs=
11129
11130 case $host_os in
11131 beos*)
11132 lt_cv_dlopen="load_add_on"
11133 lt_cv_dlopen_libs=
11134 lt_cv_dlopen_self=yes
11135 ;;
11136
11137 mingw* | pw32*)
11138 lt_cv_dlopen="LoadLibrary"
11139 lt_cv_dlopen_libs=
11140 ;;
11141
11142 cygwin*)
11143 lt_cv_dlopen="dlopen"
11144 lt_cv_dlopen_libs=
11145 ;;
11146
11147 darwin*)
11148 # if libdl is installed we need to link against it
11149 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11150echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11151if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11153else
11154 ac_check_lib_save_LIBS=$LIBS
11155LIBS="-ldl $LIBS"
11156cat >conftest.$ac_ext <<_ACEOF
11157/* confdefs.h. */
11158_ACEOF
11159cat confdefs.h >>conftest.$ac_ext
11160cat >>conftest.$ac_ext <<_ACEOF
11161/* end confdefs.h. */
11162
11163/* Override any gcc2 internal prototype to avoid an error. */
11164#ifdef __cplusplus
11165extern "C"
11166#endif
11167/* We use char because int might match the return type of a gcc2
11168 builtin and then its argument prototype would still apply. */
11169char dlopen ();
11170int
11171main ()
11172{
11173dlopen ();
11174 ;
11175 return 0;
11176}
11177_ACEOF
11178rm -f conftest.$ac_objext conftest$ac_exeext
11179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11180 (eval $ac_link) 2>conftest.er1
11181 ac_status=$?
11182 grep -v '^ *+' conftest.er1 >conftest.err
11183 rm -f conftest.er1
11184 cat conftest.err >&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011187 { ac_try='test -z "$ac_cxx_werror_flag"
11188 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190 (eval $ac_try) 2>&5
11191 ac_status=$?
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; } &&
11194 { ac_try='test -s conftest$ac_exeext'
11195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196 (eval $ac_try) 2>&5
11197 ac_status=$?
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; }; then
11200 ac_cv_lib_dl_dlopen=yes
11201else
11202 echo "$as_me: failed program was:" >&5
11203sed 's/^/| /' conftest.$ac_ext >&5
11204
11205ac_cv_lib_dl_dlopen=no
11206fi
11207rm -f conftest.err conftest.$ac_objext \
11208 conftest$ac_exeext conftest.$ac_ext
11209LIBS=$ac_check_lib_save_LIBS
11210fi
11211echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11212echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11213if test $ac_cv_lib_dl_dlopen = yes; then
11214 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11215else
11216
11217 lt_cv_dlopen="dyld"
11218 lt_cv_dlopen_libs=
11219 lt_cv_dlopen_self=yes
11220
11221fi
11222
11223 ;;
11224
11225 *)
11226 echo "$as_me:$LINENO: checking for shl_load" >&5
11227echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11228if test "${ac_cv_func_shl_load+set}" = set; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11230else
11231 cat >conftest.$ac_ext <<_ACEOF
11232/* confdefs.h. */
11233_ACEOF
11234cat confdefs.h >>conftest.$ac_ext
11235cat >>conftest.$ac_ext <<_ACEOF
11236/* end confdefs.h. */
11237/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11239#define shl_load innocuous_shl_load
11240
11241/* System header to define __stub macros and hopefully few prototypes,
11242 which can conflict with char shl_load (); below.
11243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11244 <limits.h> exists even on freestanding compilers. */
11245
11246#ifdef __STDC__
11247# include <limits.h>
11248#else
11249# include <assert.h>
11250#endif
11251
11252#undef shl_load
11253
11254/* Override any gcc2 internal prototype to avoid an error. */
11255#ifdef __cplusplus
11256extern "C"
11257{
11258#endif
11259/* We use char because int might match the return type of a gcc2
11260 builtin and then its argument prototype would still apply. */
11261char shl_load ();
11262/* The GNU C library defines this for functions which it implements
11263 to always fail with ENOSYS. Some functions are actually named
11264 something starting with __ and the normal name is an alias. */
11265#if defined (__stub_shl_load) || defined (__stub___shl_load)
11266choke me
11267#else
11268char (*f) () = shl_load;
11269#endif
11270#ifdef __cplusplus
11271}
11272#endif
11273
11274int
11275main ()
11276{
11277return f != shl_load;
11278 ;
11279 return 0;
11280}
11281_ACEOF
11282rm -f conftest.$ac_objext conftest$ac_exeext
11283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11284 (eval $ac_link) 2>conftest.er1
11285 ac_status=$?
11286 grep -v '^ *+' conftest.er1 >conftest.err
11287 rm -f conftest.er1
11288 cat conftest.err >&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011291 { ac_try='test -z "$ac_cxx_werror_flag"
11292 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11295 ac_status=$?
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; } &&
11298 { ac_try='test -s conftest$ac_exeext'
11299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300 (eval $ac_try) 2>&5
11301 ac_status=$?
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; }; then
11304 ac_cv_func_shl_load=yes
11305else
11306 echo "$as_me: failed program was:" >&5
11307sed 's/^/| /' conftest.$ac_ext >&5
11308
11309ac_cv_func_shl_load=no
11310fi
11311rm -f conftest.err conftest.$ac_objext \
11312 conftest$ac_exeext conftest.$ac_ext
11313fi
11314echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11315echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11316if test $ac_cv_func_shl_load = yes; then
11317 lt_cv_dlopen="shl_load"
11318else
11319 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11320echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11321if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11323else
11324 ac_check_lib_save_LIBS=$LIBS
11325LIBS="-ldld $LIBS"
11326cat >conftest.$ac_ext <<_ACEOF
11327/* confdefs.h. */
11328_ACEOF
11329cat confdefs.h >>conftest.$ac_ext
11330cat >>conftest.$ac_ext <<_ACEOF
11331/* end confdefs.h. */
11332
11333/* Override any gcc2 internal prototype to avoid an error. */
11334#ifdef __cplusplus
11335extern "C"
11336#endif
11337/* We use char because int might match the return type of a gcc2
11338 builtin and then its argument prototype would still apply. */
11339char shl_load ();
11340int
11341main ()
11342{
11343shl_load ();
11344 ;
11345 return 0;
11346}
11347_ACEOF
11348rm -f conftest.$ac_objext conftest$ac_exeext
11349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11350 (eval $ac_link) 2>conftest.er1
11351 ac_status=$?
11352 grep -v '^ *+' conftest.er1 >conftest.err
11353 rm -f conftest.er1
11354 cat conftest.err >&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011357 { ac_try='test -z "$ac_cxx_werror_flag"
11358 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11360 (eval $ac_try) 2>&5
11361 ac_status=$?
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); }; } &&
11364 { ac_try='test -s conftest$ac_exeext'
11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 (eval $ac_try) 2>&5
11367 ac_status=$?
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; }; then
11370 ac_cv_lib_dld_shl_load=yes
11371else
11372 echo "$as_me: failed program was:" >&5
11373sed 's/^/| /' conftest.$ac_ext >&5
11374
11375ac_cv_lib_dld_shl_load=no
11376fi
11377rm -f conftest.err conftest.$ac_objext \
11378 conftest$ac_exeext conftest.$ac_ext
11379LIBS=$ac_check_lib_save_LIBS
11380fi
11381echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11382echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11383if test $ac_cv_lib_dld_shl_load = yes; then
11384 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11385else
11386 echo "$as_me:$LINENO: checking for dlopen" >&5
11387echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11388if test "${ac_cv_func_dlopen+set}" = set; then
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11390else
11391 cat >conftest.$ac_ext <<_ACEOF
11392/* confdefs.h. */
11393_ACEOF
11394cat confdefs.h >>conftest.$ac_ext
11395cat >>conftest.$ac_ext <<_ACEOF
11396/* end confdefs.h. */
11397/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11399#define dlopen innocuous_dlopen
11400
11401/* System header to define __stub macros and hopefully few prototypes,
11402 which can conflict with char dlopen (); below.
11403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11404 <limits.h> exists even on freestanding compilers. */
11405
11406#ifdef __STDC__
11407# include <limits.h>
11408#else
11409# include <assert.h>
11410#endif
11411
11412#undef dlopen
11413
11414/* Override any gcc2 internal prototype to avoid an error. */
11415#ifdef __cplusplus
11416extern "C"
11417{
11418#endif
11419/* We use char because int might match the return type of a gcc2
11420 builtin and then its argument prototype would still apply. */
11421char dlopen ();
11422/* The GNU C library defines this for functions which it implements
11423 to always fail with ENOSYS. Some functions are actually named
11424 something starting with __ and the normal name is an alias. */
11425#if defined (__stub_dlopen) || defined (__stub___dlopen)
11426choke me
11427#else
11428char (*f) () = dlopen;
11429#endif
11430#ifdef __cplusplus
11431}
11432#endif
11433
11434int
11435main ()
11436{
11437return f != dlopen;
11438 ;
11439 return 0;
11440}
11441_ACEOF
11442rm -f conftest.$ac_objext conftest$ac_exeext
11443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11444 (eval $ac_link) 2>conftest.er1
11445 ac_status=$?
11446 grep -v '^ *+' conftest.er1 >conftest.err
11447 rm -f conftest.er1
11448 cat conftest.err >&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011451 { ac_try='test -z "$ac_cxx_werror_flag"
11452 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454 (eval $ac_try) 2>&5
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; } &&
11458 { ac_try='test -s conftest$ac_exeext'
11459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11461 ac_status=$?
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; }; then
11464 ac_cv_func_dlopen=yes
11465else
11466 echo "$as_me: failed program was:" >&5
11467sed 's/^/| /' conftest.$ac_ext >&5
11468
11469ac_cv_func_dlopen=no
11470fi
11471rm -f conftest.err conftest.$ac_objext \
11472 conftest$ac_exeext conftest.$ac_ext
11473fi
11474echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11475echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11476if test $ac_cv_func_dlopen = yes; then
11477 lt_cv_dlopen="dlopen"
11478else
11479 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11480echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11481if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
11483else
11484 ac_check_lib_save_LIBS=$LIBS
11485LIBS="-ldl $LIBS"
11486cat >conftest.$ac_ext <<_ACEOF
11487/* confdefs.h. */
11488_ACEOF
11489cat confdefs.h >>conftest.$ac_ext
11490cat >>conftest.$ac_ext <<_ACEOF
11491/* end confdefs.h. */
11492
11493/* Override any gcc2 internal prototype to avoid an error. */
11494#ifdef __cplusplus
11495extern "C"
11496#endif
11497/* We use char because int might match the return type of a gcc2
11498 builtin and then its argument prototype would still apply. */
11499char dlopen ();
11500int
11501main ()
11502{
11503dlopen ();
11504 ;
11505 return 0;
11506}
11507_ACEOF
11508rm -f conftest.$ac_objext conftest$ac_exeext
11509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11510 (eval $ac_link) 2>conftest.er1
11511 ac_status=$?
11512 grep -v '^ *+' conftest.er1 >conftest.err
11513 rm -f conftest.er1
11514 cat conftest.err >&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011517 { ac_try='test -z "$ac_cxx_werror_flag"
11518 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11521 ac_status=$?
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; } &&
11524 { ac_try='test -s conftest$ac_exeext'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }; then
11530 ac_cv_lib_dl_dlopen=yes
11531else
11532 echo "$as_me: failed program was:" >&5
11533sed 's/^/| /' conftest.$ac_ext >&5
11534
11535ac_cv_lib_dl_dlopen=no
11536fi
11537rm -f conftest.err conftest.$ac_objext \
11538 conftest$ac_exeext conftest.$ac_ext
11539LIBS=$ac_check_lib_save_LIBS
11540fi
11541echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11542echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11543if test $ac_cv_lib_dl_dlopen = yes; then
11544 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11545else
11546 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11547echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11548if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11550else
11551 ac_check_lib_save_LIBS=$LIBS
11552LIBS="-lsvld $LIBS"
11553cat >conftest.$ac_ext <<_ACEOF
11554/* confdefs.h. */
11555_ACEOF
11556cat confdefs.h >>conftest.$ac_ext
11557cat >>conftest.$ac_ext <<_ACEOF
11558/* end confdefs.h. */
11559
11560/* Override any gcc2 internal prototype to avoid an error. */
11561#ifdef __cplusplus
11562extern "C"
11563#endif
11564/* We use char because int might match the return type of a gcc2
11565 builtin and then its argument prototype would still apply. */
11566char dlopen ();
11567int
11568main ()
11569{
11570dlopen ();
11571 ;
11572 return 0;
11573}
11574_ACEOF
11575rm -f conftest.$ac_objext conftest$ac_exeext
11576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11577 (eval $ac_link) 2>conftest.er1
11578 ac_status=$?
11579 grep -v '^ *+' conftest.er1 >conftest.err
11580 rm -f conftest.er1
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011584 { ac_try='test -z "$ac_cxx_werror_flag"
11585 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11587 (eval $ac_try) 2>&5
11588 ac_status=$?
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); }; } &&
11591 { ac_try='test -s conftest$ac_exeext'
11592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11593 (eval $ac_try) 2>&5
11594 ac_status=$?
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; }; then
11597 ac_cv_lib_svld_dlopen=yes
11598else
11599 echo "$as_me: failed program was:" >&5
11600sed 's/^/| /' conftest.$ac_ext >&5
11601
11602ac_cv_lib_svld_dlopen=no
11603fi
11604rm -f conftest.err conftest.$ac_objext \
11605 conftest$ac_exeext conftest.$ac_ext
11606LIBS=$ac_check_lib_save_LIBS
11607fi
11608echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11609echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11610if test $ac_cv_lib_svld_dlopen = yes; then
11611 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11612else
11613 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11614echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11615if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11617else
11618 ac_check_lib_save_LIBS=$LIBS
11619LIBS="-ldld $LIBS"
11620cat >conftest.$ac_ext <<_ACEOF
11621/* confdefs.h. */
11622_ACEOF
11623cat confdefs.h >>conftest.$ac_ext
11624cat >>conftest.$ac_ext <<_ACEOF
11625/* end confdefs.h. */
11626
11627/* Override any gcc2 internal prototype to avoid an error. */
11628#ifdef __cplusplus
11629extern "C"
11630#endif
11631/* We use char because int might match the return type of a gcc2
11632 builtin and then its argument prototype would still apply. */
11633char dld_link ();
11634int
11635main ()
11636{
11637dld_link ();
11638 ;
11639 return 0;
11640}
11641_ACEOF
11642rm -f conftest.$ac_objext conftest$ac_exeext
11643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11644 (eval $ac_link) 2>conftest.er1
11645 ac_status=$?
11646 grep -v '^ *+' conftest.er1 >conftest.err
11647 rm -f conftest.er1
11648 cat conftest.err >&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011651 { ac_try='test -z "$ac_cxx_werror_flag"
11652 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654 (eval $ac_try) 2>&5
11655 ac_status=$?
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; } &&
11658 { ac_try='test -s conftest$ac_exeext'
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11661 ac_status=$?
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; }; then
11664 ac_cv_lib_dld_dld_link=yes
11665else
11666 echo "$as_me: failed program was:" >&5
11667sed 's/^/| /' conftest.$ac_ext >&5
11668
11669ac_cv_lib_dld_dld_link=no
11670fi
11671rm -f conftest.err conftest.$ac_objext \
11672 conftest$ac_exeext conftest.$ac_ext
11673LIBS=$ac_check_lib_save_LIBS
11674fi
11675echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11676echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11677if test $ac_cv_lib_dld_dld_link = yes; then
11678 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11679fi
11680
11681
11682fi
11683
11684
11685fi
11686
11687
11688fi
11689
11690
11691fi
11692
11693
11694fi
11695
11696 ;;
11697 esac
11698
11699 if test "x$lt_cv_dlopen" != xno; then
11700 enable_dlopen=yes
11701 else
11702 enable_dlopen=no
11703 fi
11704
11705 case $lt_cv_dlopen in
11706 dlopen)
11707 save_CPPFLAGS="$CPPFLAGS"
11708 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11709
11710 save_LDFLAGS="$LDFLAGS"
11711 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11712
11713 save_LIBS="$LIBS"
11714 LIBS="$lt_cv_dlopen_libs $LIBS"
11715
11716 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11717echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11718if test "${lt_cv_dlopen_self+set}" = set; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11720else
11721 if test "$cross_compiling" = yes; then :
11722 lt_cv_dlopen_self=cross
11723else
11724 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11725 lt_status=$lt_dlunknown
11726 cat > conftest.$ac_ext <<EOF
dougcurrie0f290bf2004-06-21 18:57:29 +000011727#line 11727 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000011728#include "confdefs.h"
11729
11730#if HAVE_DLFCN_H
11731#include <dlfcn.h>
11732#endif
11733
11734#include <stdio.h>
11735
11736#ifdef RTLD_GLOBAL
11737# define LT_DLGLOBAL RTLD_GLOBAL
11738#else
11739# ifdef DL_GLOBAL
11740# define LT_DLGLOBAL DL_GLOBAL
11741# else
11742# define LT_DLGLOBAL 0
11743# endif
11744#endif
11745
11746/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11747 find out it does not work in some platform. */
11748#ifndef LT_DLLAZY_OR_NOW
11749# ifdef RTLD_LAZY
11750# define LT_DLLAZY_OR_NOW RTLD_LAZY
11751# else
11752# ifdef DL_LAZY
11753# define LT_DLLAZY_OR_NOW DL_LAZY
11754# else
11755# ifdef RTLD_NOW
11756# define LT_DLLAZY_OR_NOW RTLD_NOW
11757# else
11758# ifdef DL_NOW
11759# define LT_DLLAZY_OR_NOW DL_NOW
11760# else
11761# define LT_DLLAZY_OR_NOW 0
11762# endif
11763# endif
11764# endif
11765# endif
11766#endif
11767
11768#ifdef __cplusplus
11769extern "C" void exit (int);
11770#endif
11771
11772void fnord() { int i=42;}
11773int main ()
11774{
11775 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11776 int status = $lt_dlunknown;
11777
11778 if (self)
11779 {
11780 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11781 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11782 /* dlclose (self); */
11783 }
11784
11785 exit (status);
11786}
11787EOF
11788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11789 (eval $ac_link) 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11793 (./conftest; exit; ) 2>/dev/null
11794 lt_status=$?
11795 case x$lt_status in
11796 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11797 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11798 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11799 esac
11800 else :
11801 # compilation failed
11802 lt_cv_dlopen_self=no
11803 fi
11804fi
11805rm -fr conftest*
11806
11807
11808fi
11809echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11810echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11811
11812 if test "x$lt_cv_dlopen_self" = xyes; then
11813 LDFLAGS="$LDFLAGS $link_static_flag"
11814 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11815echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11816if test "${lt_cv_dlopen_self_static+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11818else
11819 if test "$cross_compiling" = yes; then :
11820 lt_cv_dlopen_self_static=cross
11821else
11822 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11823 lt_status=$lt_dlunknown
11824 cat > conftest.$ac_ext <<EOF
dougcurrie0f290bf2004-06-21 18:57:29 +000011825#line 11825 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000011826#include "confdefs.h"
11827
11828#if HAVE_DLFCN_H
11829#include <dlfcn.h>
11830#endif
11831
11832#include <stdio.h>
11833
11834#ifdef RTLD_GLOBAL
11835# define LT_DLGLOBAL RTLD_GLOBAL
11836#else
11837# ifdef DL_GLOBAL
11838# define LT_DLGLOBAL DL_GLOBAL
11839# else
11840# define LT_DLGLOBAL 0
11841# endif
11842#endif
11843
11844/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11845 find out it does not work in some platform. */
11846#ifndef LT_DLLAZY_OR_NOW
11847# ifdef RTLD_LAZY
11848# define LT_DLLAZY_OR_NOW RTLD_LAZY
11849# else
11850# ifdef DL_LAZY
11851# define LT_DLLAZY_OR_NOW DL_LAZY
11852# else
11853# ifdef RTLD_NOW
11854# define LT_DLLAZY_OR_NOW RTLD_NOW
11855# else
11856# ifdef DL_NOW
11857# define LT_DLLAZY_OR_NOW DL_NOW
11858# else
11859# define LT_DLLAZY_OR_NOW 0
11860# endif
11861# endif
11862# endif
11863# endif
11864#endif
11865
11866#ifdef __cplusplus
11867extern "C" void exit (int);
11868#endif
11869
11870void fnord() { int i=42;}
11871int main ()
11872{
11873 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11874 int status = $lt_dlunknown;
11875
11876 if (self)
11877 {
11878 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11879 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11880 /* dlclose (self); */
11881 }
11882
11883 exit (status);
11884}
11885EOF
11886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11887 (eval $ac_link) 2>&5
11888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11891 (./conftest; exit; ) 2>/dev/null
11892 lt_status=$?
11893 case x$lt_status in
11894 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11895 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11896 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11897 esac
11898 else :
11899 # compilation failed
11900 lt_cv_dlopen_self_static=no
11901 fi
11902fi
11903rm -fr conftest*
11904
11905
11906fi
11907echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11908echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11909 fi
11910
11911 CPPFLAGS="$save_CPPFLAGS"
11912 LDFLAGS="$save_LDFLAGS"
11913 LIBS="$save_LIBS"
11914 ;;
11915 esac
11916
11917 case $lt_cv_dlopen_self in
11918 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11919 *) enable_dlopen_self=unknown ;;
11920 esac
11921
11922 case $lt_cv_dlopen_self_static in
11923 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11924 *) enable_dlopen_self_static=unknown ;;
11925 esac
11926fi
11927
11928
11929# The else clause should only fire when bootstrapping the
11930# libtool distribution, otherwise you forgot to ship ltmain.sh
11931# with your package, and you will get complaints that there are
11932# no rules to generate ltmain.sh.
11933if test -f "$ltmain"; then
11934 # See if we are running on zsh, and set the options which allow our commands through
11935 # without removal of \ escapes.
11936 if test -n "${ZSH_VERSION+set}" ; then
11937 setopt NO_GLOB_SUBST
11938 fi
11939 # Now quote all the things that may contain metacharacters while being
11940 # careful not to overquote the AC_SUBSTed values. We take copies of the
11941 # variables and quote the copies for generation of the libtool script.
11942 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11943 SED SHELL STRIP \
11944 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11945 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11946 deplibs_check_method reload_flag reload_cmds need_locks \
11947 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11948 lt_cv_sys_global_symbol_to_c_name_address \
11949 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11950 old_postinstall_cmds old_postuninstall_cmds \
11951 compiler_CXX \
11952 CC_CXX \
11953 LD_CXX \
11954 lt_prog_compiler_wl_CXX \
11955 lt_prog_compiler_pic_CXX \
11956 lt_prog_compiler_static_CXX \
11957 lt_prog_compiler_no_builtin_flag_CXX \
11958 export_dynamic_flag_spec_CXX \
11959 thread_safe_flag_spec_CXX \
11960 whole_archive_flag_spec_CXX \
11961 enable_shared_with_static_runtimes_CXX \
11962 old_archive_cmds_CXX \
11963 old_archive_from_new_cmds_CXX \
11964 predep_objects_CXX \
11965 postdep_objects_CXX \
11966 predeps_CXX \
11967 postdeps_CXX \
11968 compiler_lib_search_path_CXX \
11969 archive_cmds_CXX \
11970 archive_expsym_cmds_CXX \
11971 postinstall_cmds_CXX \
11972 postuninstall_cmds_CXX \
11973 old_archive_from_expsyms_cmds_CXX \
11974 allow_undefined_flag_CXX \
11975 no_undefined_flag_CXX \
11976 export_symbols_cmds_CXX \
11977 hardcode_libdir_flag_spec_CXX \
11978 hardcode_libdir_flag_spec_ld_CXX \
11979 hardcode_libdir_separator_CXX \
11980 hardcode_automatic_CXX \
11981 module_cmds_CXX \
11982 module_expsym_cmds_CXX \
11983 lt_cv_prog_compiler_c_o_CXX \
11984 exclude_expsyms_CXX \
11985 include_expsyms_CXX; do
11986
11987 case $var in
11988 old_archive_cmds_CXX | \
11989 old_archive_from_new_cmds_CXX | \
11990 archive_cmds_CXX | \
11991 archive_expsym_cmds_CXX | \
11992 module_cmds_CXX | \
11993 module_expsym_cmds_CXX | \
11994 old_archive_from_expsyms_cmds_CXX | \
11995 export_symbols_cmds_CXX | \
11996 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11997 postinstall_cmds | postuninstall_cmds | \
11998 old_postinstall_cmds | old_postuninstall_cmds | \
11999 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12000 # Double-quote double-evaled strings.
12001 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12002 ;;
12003 *)
12004 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12005 ;;
12006 esac
12007 done
12008
12009 case $lt_echo in
12010 *'\$0 --fallback-echo"')
12011 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12012 ;;
12013 esac
12014
12015cfgfile="$ofile"
12016
12017 cat <<__EOF__ >> "$cfgfile"
12018# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12019
12020# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12021
12022# Shell to use when invoking shell scripts.
12023SHELL=$lt_SHELL
12024
12025# Whether or not to build shared libraries.
12026build_libtool_libs=$enable_shared
12027
12028# Whether or not to build static libraries.
12029build_old_libs=$enable_static
12030
12031# Whether or not to add -lc for building shared libraries.
12032build_libtool_need_lc=$archive_cmds_need_lc_CXX
12033
12034# Whether or not to disallow shared libs when runtime libs are static
12035allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12036
12037# Whether or not to optimize for fast installation.
12038fast_install=$enable_fast_install
12039
12040# The host system.
12041host_alias=$host_alias
12042host=$host
12043
12044# An echo program that does not interpret backslashes.
12045echo=$lt_echo
12046
12047# The archiver.
12048AR=$lt_AR
12049AR_FLAGS=$lt_AR_FLAGS
12050
12051# A C compiler.
12052LTCC=$lt_LTCC
12053
12054# A language-specific compiler.
12055CC=$lt_compiler_CXX
12056
12057# Is the compiler the GNU C compiler?
12058with_gcc=$GCC_CXX
12059
12060# An ERE matcher.
12061EGREP=$lt_EGREP
12062
12063# The linker used to build libraries.
12064LD=$lt_LD_CXX
12065
12066# Whether we need hard or soft links.
12067LN_S=$lt_LN_S
12068
12069# A BSD-compatible nm program.
12070NM=$lt_NM
12071
12072# A symbol stripping program
12073STRIP=$lt_STRIP
12074
12075# Used to examine libraries when file_magic_cmd begins "file"
12076MAGIC_CMD=$MAGIC_CMD
12077
12078# Used on cygwin: DLL creation program.
12079DLLTOOL="$DLLTOOL"
12080
12081# Used on cygwin: object dumper.
12082OBJDUMP="$OBJDUMP"
12083
12084# Used on cygwin: assembler.
12085AS="$AS"
12086
12087# The name of the directory that contains temporary libtool files.
12088objdir=$objdir
12089
12090# How to create reloadable object files.
12091reload_flag=$lt_reload_flag
12092reload_cmds=$lt_reload_cmds
12093
12094# How to pass a linker flag through the compiler.
12095wl=$lt_lt_prog_compiler_wl_CXX
12096
12097# Object file suffix (normally "o").
12098objext="$ac_objext"
12099
12100# Old archive suffix (normally "a").
12101libext="$libext"
12102
12103# Shared library suffix (normally ".so").
12104shrext='$shrext'
12105
12106# Executable file suffix (normally "").
12107exeext="$exeext"
12108
12109# Additional compiler flags for building library objects.
12110pic_flag=$lt_lt_prog_compiler_pic_CXX
12111pic_mode=$pic_mode
12112
12113# What is the maximum length of a command?
12114max_cmd_len=$lt_cv_sys_max_cmd_len
12115
12116# Does compiler simultaneously support -c and -o options?
12117compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12118
12119# Must we lock files when doing compilation ?
12120need_locks=$lt_need_locks
12121
12122# Do we need the lib prefix for modules?
12123need_lib_prefix=$need_lib_prefix
12124
12125# Do we need a version for libraries?
12126need_version=$need_version
12127
12128# Whether dlopen is supported.
12129dlopen_support=$enable_dlopen
12130
12131# Whether dlopen of programs is supported.
12132dlopen_self=$enable_dlopen_self
12133
12134# Whether dlopen of statically linked programs is supported.
12135dlopen_self_static=$enable_dlopen_self_static
12136
12137# Compiler flag to prevent dynamic linking.
12138link_static_flag=$lt_lt_prog_compiler_static_CXX
12139
12140# Compiler flag to turn off builtin functions.
12141no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12142
12143# Compiler flag to allow reflexive dlopens.
12144export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12145
12146# Compiler flag to generate shared objects directly from archives.
12147whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12148
12149# Compiler flag to generate thread-safe objects.
12150thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12151
12152# Library versioning type.
12153version_type=$version_type
12154
12155# Format of library name prefix.
12156libname_spec=$lt_libname_spec
12157
12158# List of archive names. First name is the real one, the rest are links.
12159# The last name is the one that the linker finds with -lNAME.
12160library_names_spec=$lt_library_names_spec
12161
12162# The coded name of the library, if different from the real name.
12163soname_spec=$lt_soname_spec
12164
12165# Commands used to build and install an old-style archive.
12166RANLIB=$lt_RANLIB
12167old_archive_cmds=$lt_old_archive_cmds_CXX
12168old_postinstall_cmds=$lt_old_postinstall_cmds
12169old_postuninstall_cmds=$lt_old_postuninstall_cmds
12170
12171# Create an old-style archive from a shared archive.
12172old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12173
12174# Create a temporary old-style archive to link instead of a shared archive.
12175old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12176
12177# Commands used to build and install a shared archive.
12178archive_cmds=$lt_archive_cmds_CXX
12179archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12180postinstall_cmds=$lt_postinstall_cmds
12181postuninstall_cmds=$lt_postuninstall_cmds
12182
12183# Commands used to build a loadable module (assumed same as above if empty)
12184module_cmds=$lt_module_cmds_CXX
12185module_expsym_cmds=$lt_module_expsym_cmds_CXX
12186
12187# Commands to strip libraries.
12188old_striplib=$lt_old_striplib
12189striplib=$lt_striplib
12190
12191# Dependencies to place before the objects being linked to create a
12192# shared library.
12193predep_objects=$lt_predep_objects_CXX
12194
12195# Dependencies to place after the objects being linked to create a
12196# shared library.
12197postdep_objects=$lt_postdep_objects_CXX
12198
12199# Dependencies to place before the objects being linked to create a
12200# shared library.
12201predeps=$lt_predeps_CXX
12202
12203# Dependencies to place after the objects being linked to create a
12204# shared library.
12205postdeps=$lt_postdeps_CXX
12206
12207# The library search path used internally by the compiler when linking
12208# a shared library.
12209compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12210
12211# Method to check whether dependent libraries are shared objects.
12212deplibs_check_method=$lt_deplibs_check_method
12213
12214# Command to use when deplibs_check_method == file_magic.
12215file_magic_cmd=$lt_file_magic_cmd
12216
12217# Flag that allows shared libraries with undefined symbols to be built.
12218allow_undefined_flag=$lt_allow_undefined_flag_CXX
12219
12220# Flag that forces no undefined symbols.
12221no_undefined_flag=$lt_no_undefined_flag_CXX
12222
12223# Commands used to finish a libtool library installation in a directory.
12224finish_cmds=$lt_finish_cmds
12225
12226# Same as above, but a single script fragment to be evaled but not shown.
12227finish_eval=$lt_finish_eval
12228
12229# Take the output of nm and produce a listing of raw symbols and C names.
12230global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12231
12232# Transform the output of nm in a proper C declaration
12233global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12234
12235# Transform the output of nm in a C name address pair
12236global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12237
12238# This is the shared library runtime path variable.
12239runpath_var=$runpath_var
12240
12241# This is the shared library path variable.
12242shlibpath_var=$shlibpath_var
12243
12244# Is shlibpath searched before the hard-coded library search path?
12245shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12246
12247# How to hardcode a shared library path into an executable.
12248hardcode_action=$hardcode_action_CXX
12249
12250# Whether we should hardcode library paths into libraries.
12251hardcode_into_libs=$hardcode_into_libs
12252
12253# Flag to hardcode \$libdir into a binary during linking.
12254# This must work even if \$libdir does not exist.
12255hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12256
12257# If ld is used when linking, flag to hardcode \$libdir into
12258# a binary during linking. This must work even if \$libdir does
12259# not exist.
12260hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12261
12262# Whether we need a single -rpath flag with a separated argument.
12263hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12264
12265# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12266# resulting binary.
12267hardcode_direct=$hardcode_direct_CXX
12268
12269# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12270# resulting binary.
12271hardcode_minus_L=$hardcode_minus_L_CXX
12272
12273# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12274# the resulting binary.
12275hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12276
12277# Set to yes if building a shared library automatically hardcodes DIR into the library
12278# and all subsequent libraries and executables linked against it.
12279hardcode_automatic=$hardcode_automatic_CXX
12280
12281# Variables whose values should be saved in libtool wrapper scripts and
12282# restored at relink time.
12283variables_saved_for_relink="$variables_saved_for_relink"
12284
12285# Whether libtool must link a program against all its dependency libraries.
12286link_all_deplibs=$link_all_deplibs_CXX
12287
12288# Compile-time system search path for libraries
12289sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12290
12291# Run-time system search path for libraries
12292sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12293
12294# Fix the shell variable \$srcfile for the compiler.
12295fix_srcfile_path="$fix_srcfile_path_CXX"
12296
12297# Set to yes if exported symbols are required.
12298always_export_symbols=$always_export_symbols_CXX
12299
12300# The commands to list exported symbols.
12301export_symbols_cmds=$lt_export_symbols_cmds_CXX
12302
12303# The commands to extract the exported symbol list from a shared archive.
12304extract_expsyms_cmds=$lt_extract_expsyms_cmds
12305
12306# Symbols that should not be listed in the preloaded symbols.
12307exclude_expsyms=$lt_exclude_expsyms_CXX
12308
12309# Symbols that must always be exported.
12310include_expsyms=$lt_include_expsyms_CXX
12311
12312# ### END LIBTOOL TAG CONFIG: $tagname
12313
12314__EOF__
12315
12316
12317else
12318 # If there is no Makefile yet, we rely on a make rule to execute
12319 # `config.status --recheck' to rerun these tests and create the
12320 # libtool script then.
12321 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12322 if test -f "$ltmain_in"; then
12323 test -f Makefile && make "$ltmain"
12324 fi
12325fi
12326
12327
12328ac_ext=c
12329ac_cpp='$CPP $CPPFLAGS'
12330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12332ac_compiler_gnu=$ac_cv_c_compiler_gnu
12333
12334CC=$lt_save_CC
12335LDCXX=$LD
12336LD=$lt_save_LD
12337GCC=$lt_save_GCC
12338with_gnu_ldcxx=$with_gnu_ld
12339with_gnu_ld=$lt_save_with_gnu_ld
12340lt_cv_path_LDCXX=$lt_cv_path_LD
12341lt_cv_path_LD=$lt_save_path_LD
12342lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12343lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12344
12345 else
12346 tagname=""
12347 fi
12348 ;;
12349
12350 F77)
12351 if test -n "$F77" && test "X$F77" != "Xno"; then
12352
12353ac_ext=f
12354ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12355ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12356ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12357
12358
12359archive_cmds_need_lc_F77=no
12360allow_undefined_flag_F77=
12361always_export_symbols_F77=no
12362archive_expsym_cmds_F77=
12363export_dynamic_flag_spec_F77=
12364hardcode_direct_F77=no
12365hardcode_libdir_flag_spec_F77=
12366hardcode_libdir_flag_spec_ld_F77=
12367hardcode_libdir_separator_F77=
12368hardcode_minus_L_F77=no
12369hardcode_automatic_F77=no
12370module_cmds_F77=
12371module_expsym_cmds_F77=
12372link_all_deplibs_F77=unknown
12373old_archive_cmds_F77=$old_archive_cmds
12374no_undefined_flag_F77=
12375whole_archive_flag_spec_F77=
12376enable_shared_with_static_runtimes_F77=no
12377
12378# Source file extension for f77 test sources.
12379ac_ext=f
12380
12381# Object file extension for compiled f77 test sources.
12382objext=o
12383objext_F77=$objext
12384
12385# Code to be used in simple compile tests
12386lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12387
12388# Code to be used in simple link tests
12389lt_simple_link_test_code=" program t\n end\n"
12390
12391# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12392
12393# If no C compiler was specified, use CC.
12394LTCC=${LTCC-"$CC"}
12395
12396# Allow CC to be a program name with arguments.
12397compiler=$CC
12398
12399
12400# Allow CC to be a program name with arguments.
12401lt_save_CC="$CC"
12402CC=${F77-"f77"}
12403compiler=$CC
12404compiler_F77=$CC
12405cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12406
12407echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12408echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12409echo "$as_me:$LINENO: result: $can_build_shared" >&5
12410echo "${ECHO_T}$can_build_shared" >&6
12411
12412echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12413echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12414test "$can_build_shared" = "no" && enable_shared=no
12415
12416# On AIX, shared libraries and static libraries use the same namespace, and
12417# are all built from PIC.
12418case "$host_os" in
12419aix3*)
12420 test "$enable_shared" = yes && enable_static=no
12421 if test -n "$RANLIB"; then
12422 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12423 postinstall_cmds='$RANLIB $lib'
12424 fi
12425 ;;
12426aix4*)
12427 test "$enable_shared" = yes && enable_static=no
12428 ;;
12429esac
12430echo "$as_me:$LINENO: result: $enable_shared" >&5
12431echo "${ECHO_T}$enable_shared" >&6
12432
12433echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12434echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12435# Make sure either enable_shared or enable_static is yes.
12436test "$enable_shared" = yes || enable_static=yes
12437echo "$as_me:$LINENO: result: $enable_static" >&5
12438echo "${ECHO_T}$enable_static" >&6
12439
12440test "$ld_shlibs_F77" = no && can_build_shared=no
12441
12442GCC_F77="$G77"
12443LD_F77="$LD"
12444
12445lt_prog_compiler_wl_F77=
12446lt_prog_compiler_pic_F77=
12447lt_prog_compiler_static_F77=
12448
12449echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12450echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12451
12452 if test "$GCC" = yes; then
12453 lt_prog_compiler_wl_F77='-Wl,'
12454 lt_prog_compiler_static_F77='-static'
12455
12456 case $host_os in
12457 aix*)
12458 # All AIX code is PIC.
12459 if test "$host_cpu" = ia64; then
12460 # AIX 5 now supports IA64 processor
12461 lt_prog_compiler_static_F77='-Bstatic'
12462 fi
12463 ;;
12464
12465 amigaos*)
12466 # FIXME: we need at least 68020 code to build shared libraries, but
12467 # adding the `-m68020' flag to GCC prevents building anything better,
12468 # like `-m68040'.
12469 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12470 ;;
12471
12472 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12473 # PIC is the default for these OSes.
12474 ;;
12475
12476 mingw* | pw32* | os2*)
12477 # This hack is so that the source file can tell whether it is being
12478 # built for inclusion in a dll (and should export symbols for example).
12479 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12480 ;;
12481
12482 darwin* | rhapsody*)
12483 # PIC is the default on this platform
12484 # Common symbols not allowed in MH_DYLIB files
12485 lt_prog_compiler_pic_F77='-fno-common'
12486 ;;
12487
12488 msdosdjgpp*)
12489 # Just because we use GCC doesn't mean we suddenly get shared libraries
12490 # on systems that don't support them.
12491 lt_prog_compiler_can_build_shared_F77=no
12492 enable_shared=no
12493 ;;
12494
12495 sysv4*MP*)
12496 if test -d /usr/nec; then
12497 lt_prog_compiler_pic_F77=-Kconform_pic
12498 fi
12499 ;;
12500
12501 hpux*)
12502 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12503 # not for PA HP-UX.
12504 case "$host_cpu" in
12505 hppa*64*|ia64*)
12506 # +Z the default
12507 ;;
12508 *)
12509 lt_prog_compiler_pic_F77='-fPIC'
12510 ;;
12511 esac
12512 ;;
12513
12514 *)
12515 lt_prog_compiler_pic_F77='-fPIC'
12516 ;;
12517 esac
12518 else
12519 # PORTME Check for flag to pass linker flags through the system compiler.
12520 case $host_os in
12521 aix*)
12522 lt_prog_compiler_wl_F77='-Wl,'
12523 if test "$host_cpu" = ia64; then
12524 # AIX 5 now supports IA64 processor
12525 lt_prog_compiler_static_F77='-Bstatic'
12526 else
12527 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12528 fi
12529 ;;
12530
12531 mingw* | pw32* | os2*)
12532 # This hack is so that the source file can tell whether it is being
12533 # built for inclusion in a dll (and should export symbols for example).
12534 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12535 ;;
12536
12537 hpux9* | hpux10* | hpux11*)
12538 lt_prog_compiler_wl_F77='-Wl,'
12539 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12540 # not for PA HP-UX.
12541 case "$host_cpu" in
12542 hppa*64*|ia64*)
12543 # +Z the default
12544 ;;
12545 *)
12546 lt_prog_compiler_pic_F77='+Z'
12547 ;;
12548 esac
12549 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12550 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12551 ;;
12552
12553 irix5* | irix6* | nonstopux*)
12554 lt_prog_compiler_wl_F77='-Wl,'
12555 # PIC (with -KPIC) is the default.
12556 lt_prog_compiler_static_F77='-non_shared'
12557 ;;
12558
12559 newsos6)
12560 lt_prog_compiler_pic_F77='-KPIC'
12561 lt_prog_compiler_static_F77='-Bstatic'
12562 ;;
12563
12564 linux*)
12565 case $CC in
12566 icc* | ecc*)
12567 lt_prog_compiler_wl_F77='-Wl,'
12568 lt_prog_compiler_pic_F77='-KPIC'
12569 lt_prog_compiler_static_F77='-static'
12570 ;;
12571 ccc*)
12572 lt_prog_compiler_wl_F77='-Wl,'
12573 # All Alpha code is PIC.
12574 lt_prog_compiler_static_F77='-non_shared'
12575 ;;
12576 esac
12577 ;;
12578
12579 osf3* | osf4* | osf5*)
12580 lt_prog_compiler_wl_F77='-Wl,'
12581 # All OSF/1 code is PIC.
12582 lt_prog_compiler_static_F77='-non_shared'
12583 ;;
12584
12585 sco3.2v5*)
12586 lt_prog_compiler_pic_F77='-Kpic'
12587 lt_prog_compiler_static_F77='-dn'
12588 ;;
12589
12590 solaris*)
12591 lt_prog_compiler_wl_F77='-Wl,'
12592 lt_prog_compiler_pic_F77='-KPIC'
12593 lt_prog_compiler_static_F77='-Bstatic'
12594 ;;
12595
12596 sunos4*)
12597 lt_prog_compiler_wl_F77='-Qoption ld '
12598 lt_prog_compiler_pic_F77='-PIC'
12599 lt_prog_compiler_static_F77='-Bstatic'
12600 ;;
12601
12602 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12603 lt_prog_compiler_wl_F77='-Wl,'
12604 lt_prog_compiler_pic_F77='-KPIC'
12605 lt_prog_compiler_static_F77='-Bstatic'
12606 ;;
12607
12608 sysv4*MP*)
12609 if test -d /usr/nec ;then
12610 lt_prog_compiler_pic_F77='-Kconform_pic'
12611 lt_prog_compiler_static_F77='-Bstatic'
12612 fi
12613 ;;
12614
12615 uts4*)
12616 lt_prog_compiler_pic_F77='-pic'
12617 lt_prog_compiler_static_F77='-Bstatic'
12618 ;;
12619
12620 *)
12621 lt_prog_compiler_can_build_shared_F77=no
12622 ;;
12623 esac
12624 fi
12625
12626echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12627echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12628
12629#
12630# Check to make sure the PIC flag actually works.
12631#
12632if test -n "$lt_prog_compiler_pic_F77"; then
12633
12634echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12635echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12636if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12637 echo $ECHO_N "(cached) $ECHO_C" >&6
12638else
12639 lt_prog_compiler_pic_works_F77=no
12640 ac_outfile=conftest.$ac_objext
12641 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12642 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12643 # Insert the option either (1) after the last *FLAGS variable, or
12644 # (2) before a word containing "conftest.", or (3) at the end.
12645 # Note that $ac_compile itself does not contain backslashes and begins
12646 # with a dollar sign (not a hyphen), so the echo should work correctly.
12647 # The option is referenced via a variable to avoid confusing sed.
12648 lt_compile=`echo "$ac_compile" | $SED \
12649 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12651 -e 's:$: $lt_compiler_flag:'`
dougcurrie0f290bf2004-06-21 18:57:29 +000012652 (eval echo "\"\$as_me:12652: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000012653 (eval "$lt_compile" 2>conftest.err)
12654 ac_status=$?
12655 cat conftest.err >&5
dougcurrie0f290bf2004-06-21 18:57:29 +000012656 echo "$as_me:12656: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000012657 if (exit $ac_status) && test -s "$ac_outfile"; then
12658 # The compiler can only warn and ignore the option if not recognized
12659 # So say no if there are warnings
12660 if test ! -s conftest.err; then
12661 lt_prog_compiler_pic_works_F77=yes
12662 fi
12663 fi
12664 $rm conftest*
12665
12666fi
12667echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12668echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12669
12670if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12671 case $lt_prog_compiler_pic_F77 in
12672 "" | " "*) ;;
12673 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12674 esac
12675else
12676 lt_prog_compiler_pic_F77=
12677 lt_prog_compiler_can_build_shared_F77=no
12678fi
12679
12680fi
12681case "$host_os" in
12682 # For platforms which do not support PIC, -DPIC is meaningless:
12683 *djgpp*)
12684 lt_prog_compiler_pic_F77=
12685 ;;
12686 *)
12687 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12688 ;;
12689esac
12690
12691echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12692echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12693if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12694 echo $ECHO_N "(cached) $ECHO_C" >&6
12695else
12696 lt_cv_prog_compiler_c_o_F77=no
12697 $rm -r conftest 2>/dev/null
12698 mkdir conftest
12699 cd conftest
12700 mkdir out
12701 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12702
12703 lt_compiler_flag="-o out/conftest2.$ac_objext"
12704 # Insert the option either (1) after the last *FLAGS variable, or
12705 # (2) before a word containing "conftest.", or (3) at the end.
12706 # Note that $ac_compile itself does not contain backslashes and begins
12707 # with a dollar sign (not a hyphen), so the echo should work correctly.
12708 lt_compile=`echo "$ac_compile" | $SED \
12709 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12711 -e 's:$: $lt_compiler_flag:'`
dougcurrie0f290bf2004-06-21 18:57:29 +000012712 (eval echo "\"\$as_me:12712: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000012713 (eval "$lt_compile" 2>out/conftest.err)
12714 ac_status=$?
12715 cat out/conftest.err >&5
dougcurrie0f290bf2004-06-21 18:57:29 +000012716 echo "$as_me:12716: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000012717 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12718 then
12719 # The compiler can only warn and ignore the option if not recognized
12720 # So say no if there are warnings
12721 if test ! -s out/conftest.err; then
12722 lt_cv_prog_compiler_c_o_F77=yes
12723 fi
12724 fi
12725 chmod u+w .
12726 $rm conftest*
12727 # SGI C++ compiler will create directory out/ii_files/ for
12728 # template instantiation
12729 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12730 $rm out/* && rmdir out
12731 cd ..
12732 rmdir conftest
12733 $rm conftest*
12734
12735fi
12736echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12737echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12738
12739
12740hard_links="nottested"
12741if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12742 # do not overwrite the value of need_locks provided by the user
12743 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12744echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12745 hard_links=yes
12746 $rm conftest*
12747 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12748 touch conftest.a
12749 ln conftest.a conftest.b 2>&5 || hard_links=no
12750 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12751 echo "$as_me:$LINENO: result: $hard_links" >&5
12752echo "${ECHO_T}$hard_links" >&6
12753 if test "$hard_links" = no; then
12754 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12755echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12756 need_locks=warn
12757 fi
12758else
12759 need_locks=no
12760fi
12761
12762echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12763echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12764
12765 runpath_var=
12766 allow_undefined_flag_F77=
12767 enable_shared_with_static_runtimes_F77=no
12768 archive_cmds_F77=
12769 archive_expsym_cmds_F77=
12770 old_archive_From_new_cmds_F77=
12771 old_archive_from_expsyms_cmds_F77=
12772 export_dynamic_flag_spec_F77=
12773 whole_archive_flag_spec_F77=
12774 thread_safe_flag_spec_F77=
12775 hardcode_libdir_flag_spec_F77=
12776 hardcode_libdir_flag_spec_ld_F77=
12777 hardcode_libdir_separator_F77=
12778 hardcode_direct_F77=no
12779 hardcode_minus_L_F77=no
12780 hardcode_shlibpath_var_F77=unsupported
12781 link_all_deplibs_F77=unknown
12782 hardcode_automatic_F77=no
12783 module_cmds_F77=
12784 module_expsym_cmds_F77=
12785 always_export_symbols_F77=no
12786 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12787 # include_expsyms should be a list of space-separated symbols to be *always*
12788 # included in the symbol list
12789 include_expsyms_F77=
12790 # exclude_expsyms can be an extended regexp of symbols to exclude
12791 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12792 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12793 # as well as any symbol that contains `d'.
12794 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12795 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12796 # platforms (ab)use it in PIC code, but their linkers get confused if
12797 # the symbol is explicitly referenced. Since portable code cannot
12798 # rely on this symbol name, it's probably fine to never include it in
12799 # preloaded symbol tables.
12800 extract_expsyms_cmds=
12801
12802 case $host_os in
12803 cygwin* | mingw* | pw32*)
12804 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12805 # When not using gcc, we currently assume that we are using
12806 # Microsoft Visual C++.
12807 if test "$GCC" != yes; then
12808 with_gnu_ld=no
12809 fi
12810 ;;
12811 openbsd*)
12812 with_gnu_ld=no
12813 ;;
12814 esac
12815
12816 ld_shlibs_F77=yes
12817 if test "$with_gnu_ld" = yes; then
12818 # If archive_cmds runs LD, not CC, wlarc should be empty
12819 wlarc='${wl}'
12820
12821 # See if GNU ld supports shared libraries.
12822 case $host_os in
12823 aix3* | aix4* | aix5*)
12824 # On AIX/PPC, the GNU linker is very broken
12825 if test "$host_cpu" != ia64; then
12826 ld_shlibs_F77=no
12827 cat <<EOF 1>&2
12828
12829*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12830*** to be unable to reliably create shared libraries on AIX.
12831*** Therefore, libtool is disabling shared libraries support. If you
12832*** really care for shared libraries, you may want to modify your PATH
12833*** so that a non-GNU linker is found, and then restart.
12834
12835EOF
12836 fi
12837 ;;
12838
12839 amigaos*)
12840 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)'
12841 hardcode_libdir_flag_spec_F77='-L$libdir'
12842 hardcode_minus_L_F77=yes
12843
12844 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12845 # that the semantics of dynamic libraries on AmigaOS, at least up
12846 # to version 4, is to share data among multiple programs linked
12847 # with the same dynamic library. Since this doesn't match the
12848 # behavior of shared libraries on other platforms, we can't use
12849 # them.
12850 ld_shlibs_F77=no
12851 ;;
12852
12853 beos*)
12854 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12855 allow_undefined_flag_F77=unsupported
12856 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12857 # support --undefined. This deserves some investigation. FIXME
12858 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12859 else
12860 ld_shlibs_F77=no
12861 fi
12862 ;;
12863
12864 cygwin* | mingw* | pw32*)
12865 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12866 # as there is no search path for DLLs.
12867 hardcode_libdir_flag_spec_F77='-L$libdir'
12868 allow_undefined_flag_F77=unsupported
12869 always_export_symbols_F77=no
12870 enable_shared_with_static_runtimes_F77=yes
12871 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12872
12873 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12874 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12875 # If the export-symbols file already is a .def file (1st line
12876 # is EXPORTS), use it as is; otherwise, prepend...
12877 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12878 cp $export_symbols $output_objdir/$soname.def;
12879 else
12880 echo EXPORTS > $output_objdir/$soname.def;
12881 cat $export_symbols >> $output_objdir/$soname.def;
12882 fi~
12883 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12884 else
12885 ld_shlibs=no
12886 fi
12887 ;;
12888
12889 netbsd* | knetbsd*-gnu)
12890 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12891 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12892 wlarc=
12893 else
12894 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12895 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12896 fi
12897 ;;
12898
12899 solaris* | sysv5*)
12900 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12901 ld_shlibs_F77=no
12902 cat <<EOF 1>&2
12903
12904*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12905*** create shared libraries on Solaris systems. Therefore, libtool
12906*** is disabling shared libraries support. We urge you to upgrade GNU
12907*** binutils to release 2.9.1 or newer. Another option is to modify
12908*** your PATH or compiler configuration so that the native linker is
12909*** used, and then restart.
12910
12911EOF
12912 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12913 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12914 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12915 else
12916 ld_shlibs_F77=no
12917 fi
12918 ;;
12919
12920 sunos4*)
12921 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12922 wlarc=
12923 hardcode_direct_F77=yes
12924 hardcode_shlibpath_var_F77=no
12925 ;;
12926
12927 linux*)
12928 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12929 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12930 archive_cmds_F77="$tmp_archive_cmds"
12931 supports_anon_versioning=no
12932 case `$LD -v 2>/dev/null` in
12933 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12934 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12935 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12936 *\ 2.11.*) ;; # other 2.11 versions
12937 *) supports_anon_versioning=yes ;;
12938 esac
12939 if test $supports_anon_versioning = yes; then
12940 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
12941cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12942$echo "local: *; };" >> $output_objdir/$libname.ver~
12943 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12944 else
12945 archive_expsym_cmds_F77="$tmp_archive_cmds"
12946 fi
12947 else
12948 ld_shlibs_F77=no
12949 fi
12950 ;;
12951
12952 *)
12953 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12954 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12955 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12956 else
12957 ld_shlibs_F77=no
12958 fi
12959 ;;
12960 esac
12961
12962 if test "$ld_shlibs_F77" = yes; then
12963 runpath_var=LD_RUN_PATH
12964 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12965 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12966 # ancient GNU ld didn't support --whole-archive et. al.
12967 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12968 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12969 else
12970 whole_archive_flag_spec_F77=
12971 fi
12972 fi
12973 else
12974 # PORTME fill in a description of your system's linker (not GNU ld)
12975 case $host_os in
12976 aix3*)
12977 allow_undefined_flag_F77=unsupported
12978 always_export_symbols_F77=yes
12979 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'
12980 # Note: this linker hardcodes the directories in LIBPATH if there
12981 # are no directories specified by -L.
12982 hardcode_minus_L_F77=yes
12983 if test "$GCC" = yes && test -z "$link_static_flag"; then
12984 # Neither direct hardcoding nor static linking is supported with a
12985 # broken collect2.
12986 hardcode_direct_F77=unsupported
12987 fi
12988 ;;
12989
12990 aix4* | aix5*)
12991 if test "$host_cpu" = ia64; then
12992 # On IA64, the linker does run time linking by default, so we don't
12993 # have to do anything special.
12994 aix_use_runtimelinking=no
12995 exp_sym_flag='-Bexport'
12996 no_entry_flag=""
12997 else
12998 # If we're using GNU nm, then we don't want the "-C" option.
12999 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13000 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13001 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'
13002 else
13003 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'
13004 fi
13005 aix_use_runtimelinking=no
13006
13007 # Test if we are trying to use run time linking or normal
13008 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13009 # need to do runtime linking.
13010 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13011 for ld_flag in $LDFLAGS; do
13012 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13013 aix_use_runtimelinking=yes
13014 break
13015 fi
13016 done
13017 esac
13018
13019 exp_sym_flag='-bexport'
13020 no_entry_flag='-bnoentry'
13021 fi
13022
13023 # When large executables or shared objects are built, AIX ld can
13024 # have problems creating the table of contents. If linking a library
13025 # or program results in "error TOC overflow" add -mminimal-toc to
13026 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13027 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13028
13029 archive_cmds_F77=''
13030 hardcode_direct_F77=yes
13031 hardcode_libdir_separator_F77=':'
13032 link_all_deplibs_F77=yes
13033
13034 if test "$GCC" = yes; then
13035 case $host_os in aix4.012|aix4.012.*)
13036 # We only want to do this on AIX 4.2 and lower, the check
13037 # below for broken collect2 doesn't work under 4.3+
13038 collect2name=`${CC} -print-prog-name=collect2`
13039 if test -f "$collect2name" && \
13040 strings "$collect2name" | grep resolve_lib_name >/dev/null
13041 then
13042 # We have reworked collect2
13043 hardcode_direct_F77=yes
13044 else
13045 # We have old collect2
13046 hardcode_direct_F77=unsupported
13047 # It fails to find uninstalled libraries when the uninstalled
13048 # path is not listed in the libpath. Setting hardcode_minus_L
13049 # to unsupported forces relinking
13050 hardcode_minus_L_F77=yes
13051 hardcode_libdir_flag_spec_F77='-L$libdir'
13052 hardcode_libdir_separator_F77=
13053 fi
13054 esac
13055 shared_flag='-shared'
13056 else
13057 # not using gcc
13058 if test "$host_cpu" = ia64; then
13059 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13060 # chokes on -Wl,-G. The following line is correct:
13061 shared_flag='-G'
13062 else
13063 if test "$aix_use_runtimelinking" = yes; then
13064 shared_flag='${wl}-G'
13065 else
13066 shared_flag='${wl}-bM:SRE'
13067 fi
13068 fi
13069 fi
13070
13071 # It seems that -bexpall does not export symbols beginning with
13072 # underscore (_), so it is better to generate a list of symbols to export.
13073 always_export_symbols_F77=yes
13074 if test "$aix_use_runtimelinking" = yes; then
13075 # Warning - without using the other runtime loading flags (-brtl),
13076 # -berok will link without error, but may produce a broken library.
13077 allow_undefined_flag_F77='-berok'
13078 # Determine the default libpath from the value encoded in an empty executable.
13079 cat >conftest.$ac_ext <<_ACEOF
13080 program main
13081
13082 end
13083_ACEOF
13084rm -f conftest.$ac_objext conftest$ac_exeext
13085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13086 (eval $ac_link) 2>conftest.er1
13087 ac_status=$?
13088 grep -v '^ *+' conftest.er1 >conftest.err
13089 rm -f conftest.er1
13090 cat conftest.err >&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000013093 { ac_try='test -z "$ac_f77_werror_flag"
13094 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000013095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13097 ac_status=$?
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; } &&
13100 { ac_try='test -s conftest$ac_exeext'
13101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102 (eval $ac_try) 2>&5
13103 ac_status=$?
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
13106
13107aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13108}'`
13109# Check for a 64-bit object if we didn't find anything.
13110if 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; }
13111}'`; fi
13112else
13113 echo "$as_me: failed program was:" >&5
13114sed 's/^/| /' conftest.$ac_ext >&5
13115
13116fi
13117rm -f conftest.err conftest.$ac_objext \
13118 conftest$ac_exeext conftest.$ac_ext
13119if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13120
13121 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13122 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"
13123 else
13124 if test "$host_cpu" = ia64; then
13125 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13126 allow_undefined_flag_F77="-z nodefs"
13127 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"
13128 else
13129 # Determine the default libpath from the value encoded in an empty executable.
13130 cat >conftest.$ac_ext <<_ACEOF
13131 program main
13132
13133 end
13134_ACEOF
13135rm -f conftest.$ac_objext conftest$ac_exeext
13136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13137 (eval $ac_link) 2>conftest.er1
13138 ac_status=$?
13139 grep -v '^ *+' conftest.er1 >conftest.err
13140 rm -f conftest.er1
13141 cat conftest.err >&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000013144 { ac_try='test -z "$ac_f77_werror_flag"
13145 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000013146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147 (eval $ac_try) 2>&5
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; } &&
13151 { ac_try='test -s conftest$ac_exeext'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13157
13158aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13159}'`
13160# Check for a 64-bit object if we didn't find anything.
13161if 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; }
13162}'`; fi
13163else
13164 echo "$as_me: failed program was:" >&5
13165sed 's/^/| /' conftest.$ac_ext >&5
13166
13167fi
13168rm -f conftest.err conftest.$ac_objext \
13169 conftest$ac_exeext conftest.$ac_ext
13170if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13171
13172 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13173 # Warning - without using the other run time loading flags,
13174 # -berok will link without error, but may produce a broken library.
13175 no_undefined_flag_F77=' ${wl}-bernotok'
13176 allow_undefined_flag_F77=' ${wl}-berok'
13177 # -bexpall does not export symbols beginning with underscore (_)
13178 always_export_symbols_F77=yes
13179 # Exported symbols can be pulled into shared objects from archives
13180 whole_archive_flag_spec_F77=' '
13181 archive_cmds_need_lc_F77=yes
13182 # This is similar to how AIX traditionally builds it's shared libraries.
13183 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'
13184 fi
13185 fi
13186 ;;
13187
13188 amigaos*)
13189 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)'
13190 hardcode_libdir_flag_spec_F77='-L$libdir'
13191 hardcode_minus_L_F77=yes
13192 # see comment about different semantics on the GNU ld section
13193 ld_shlibs_F77=no
13194 ;;
13195
13196 bsdi4*)
13197 export_dynamic_flag_spec_F77=-rdynamic
13198 ;;
13199
13200 cygwin* | mingw* | pw32*)
13201 # When not using gcc, we currently assume that we are using
13202 # Microsoft Visual C++.
13203 # hardcode_libdir_flag_spec is actually meaningless, as there is
13204 # no search path for DLLs.
13205 hardcode_libdir_flag_spec_F77=' '
13206 allow_undefined_flag_F77=unsupported
13207 # Tell ltmain to make .lib files, not .a files.
13208 libext=lib
13209 # Tell ltmain to make .dll files, not .so files.
13210 shrext=".dll"
13211 # FIXME: Setting linknames here is a bad hack.
13212 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13213 # The linker will automatically build a .lib file if we build a DLL.
13214 old_archive_From_new_cmds_F77='true'
13215 # FIXME: Should let the user specify the lib program.
13216 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13217 fix_srcfile_path='`cygpath -w "$srcfile"`'
13218 enable_shared_with_static_runtimes_F77=yes
13219 ;;
13220
13221 darwin* | rhapsody*)
13222 if test "$GXX" = yes ; then
13223 archive_cmds_need_lc_F77=no
13224 case "$host_os" in
13225 rhapsody* | darwin1.[012])
13226 allow_undefined_flag_F77='-undefined suppress'
13227 ;;
13228 *) # Darwin 1.3 on
13229 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13230 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13231 else
13232 case ${MACOSX_DEPLOYMENT_TARGET} in
13233 10.[012])
13234 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13235 ;;
13236 10.*)
13237 allow_undefined_flag_F77='-undefined dynamic_lookup'
13238 ;;
13239 esac
13240 fi
13241 ;;
13242 esac
13243 lt_int_apple_cc_single_mod=no
13244 output_verbose_link_cmd='echo'
13245 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13246 lt_int_apple_cc_single_mod=yes
13247 fi
13248 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13249 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13250 else
13251 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'
13252 fi
13253 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13254 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13255 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13256 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}'
13257 else
13258 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}'
13259 fi
13260 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}'
13261 hardcode_direct_F77=no
13262 hardcode_automatic_F77=yes
13263 hardcode_shlibpath_var_F77=unsupported
13264 whole_archive_flag_spec_F77='-all_load $convenience'
13265 link_all_deplibs_F77=yes
13266 else
13267 ld_shlibs_F77=no
13268 fi
13269 ;;
13270
13271 dgux*)
13272 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13273 hardcode_libdir_flag_spec_F77='-L$libdir'
13274 hardcode_shlibpath_var_F77=no
13275 ;;
13276
13277 freebsd1*)
13278 ld_shlibs_F77=no
13279 ;;
13280
13281 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13282 # support. Future versions do this automatically, but an explicit c++rt0.o
13283 # does not break anything, and helps significantly (at the cost of a little
13284 # extra space).
13285 freebsd2.2*)
13286 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13287 hardcode_libdir_flag_spec_F77='-R$libdir'
13288 hardcode_direct_F77=yes
13289 hardcode_shlibpath_var_F77=no
13290 ;;
13291
13292 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13293 freebsd2*)
13294 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13295 hardcode_direct_F77=yes
13296 hardcode_minus_L_F77=yes
13297 hardcode_shlibpath_var_F77=no
13298 ;;
13299
13300 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13301 freebsd* | kfreebsd*-gnu)
13302 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13303 hardcode_libdir_flag_spec_F77='-R$libdir'
13304 hardcode_direct_F77=yes
13305 hardcode_shlibpath_var_F77=no
13306 ;;
13307
13308 hpux9*)
13309 if test "$GCC" = yes; then
13310 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'
13311 else
13312 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'
13313 fi
13314 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13315 hardcode_libdir_separator_F77=:
13316 hardcode_direct_F77=yes
13317
13318 # hardcode_minus_L: Not really in the search PATH,
13319 # but as the default location of the library.
13320 hardcode_minus_L_F77=yes
13321 export_dynamic_flag_spec_F77='${wl}-E'
13322 ;;
13323
13324 hpux10* | hpux11*)
13325 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13326 case "$host_cpu" in
13327 hppa*64*|ia64*)
13328 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13329 ;;
13330 *)
13331 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13332 ;;
13333 esac
13334 else
13335 case "$host_cpu" in
13336 hppa*64*|ia64*)
13337 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13338 ;;
13339 *)
13340 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13341 ;;
13342 esac
13343 fi
13344 if test "$with_gnu_ld" = no; then
13345 case "$host_cpu" in
13346 hppa*64*)
13347 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13348 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13349 hardcode_libdir_separator_F77=:
13350 hardcode_direct_F77=no
13351 hardcode_shlibpath_var_F77=no
13352 ;;
13353 ia64*)
13354 hardcode_libdir_flag_spec_F77='-L$libdir'
13355 hardcode_direct_F77=no
13356 hardcode_shlibpath_var_F77=no
13357
13358 # hardcode_minus_L: Not really in the search PATH,
13359 # but as the default location of the library.
13360 hardcode_minus_L_F77=yes
13361 ;;
13362 *)
13363 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13364 hardcode_libdir_separator_F77=:
13365 hardcode_direct_F77=yes
13366 export_dynamic_flag_spec_F77='${wl}-E'
13367
13368 # hardcode_minus_L: Not really in the search PATH,
13369 # but as the default location of the library.
13370 hardcode_minus_L_F77=yes
13371 ;;
13372 esac
13373 fi
13374 ;;
13375
13376 irix5* | irix6* | nonstopux*)
13377 if test "$GCC" = yes; then
13378 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'
13379 else
13380 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'
13381 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13382 fi
13383 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13384 hardcode_libdir_separator_F77=:
13385 link_all_deplibs_F77=yes
13386 ;;
13387
13388 netbsd* | knetbsd*-gnu)
13389 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13390 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13391 else
13392 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13393 fi
13394 hardcode_libdir_flag_spec_F77='-R$libdir'
13395 hardcode_direct_F77=yes
13396 hardcode_shlibpath_var_F77=no
13397 ;;
13398
13399 newsos6)
13400 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13401 hardcode_direct_F77=yes
13402 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13403 hardcode_libdir_separator_F77=:
13404 hardcode_shlibpath_var_F77=no
13405 ;;
13406
13407 openbsd*)
13408 hardcode_direct_F77=yes
13409 hardcode_shlibpath_var_F77=no
13410 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13411 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13412 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13413 export_dynamic_flag_spec_F77='${wl}-E'
13414 else
13415 case $host_os in
13416 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13417 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13418 hardcode_libdir_flag_spec_F77='-R$libdir'
13419 ;;
13420 *)
13421 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13422 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13423 ;;
13424 esac
13425 fi
13426 ;;
13427
13428 os2*)
13429 hardcode_libdir_flag_spec_F77='-L$libdir'
13430 hardcode_minus_L_F77=yes
13431 allow_undefined_flag_F77=unsupported
13432 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'
13433 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13434 ;;
13435
13436 osf3*)
13437 if test "$GCC" = yes; then
13438 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13439 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'
13440 else
13441 allow_undefined_flag_F77=' -expect_unresolved \*'
13442 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'
13443 fi
13444 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13445 hardcode_libdir_separator_F77=:
13446 ;;
13447
13448 osf4* | osf5*) # as osf3* with the addition of -msym flag
13449 if test "$GCC" = yes; then
13450 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13451 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'
13452 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13453 else
13454 allow_undefined_flag_F77=' -expect_unresolved \*'
13455 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'
13456 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~
13457 $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'
13458
13459 # Both c and cxx compiler support -rpath directly
13460 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13461 fi
13462 hardcode_libdir_separator_F77=:
13463 ;;
13464
13465 sco3.2v5*)
13466 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13467 hardcode_shlibpath_var_F77=no
13468 export_dynamic_flag_spec_F77='${wl}-Bexport'
13469 runpath_var=LD_RUN_PATH
13470 hardcode_runpath_var=yes
13471 ;;
13472
13473 solaris*)
13474 no_undefined_flag_F77=' -z text'
13475 if test "$GCC" = yes; then
13476 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13477 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13478 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13479 else
13480 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13481 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13482 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13483 fi
13484 hardcode_libdir_flag_spec_F77='-R$libdir'
13485 hardcode_shlibpath_var_F77=no
13486 case $host_os in
13487 solaris2.[0-5] | solaris2.[0-5].*) ;;
13488 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13489 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13490 esac
13491 link_all_deplibs_F77=yes
13492 ;;
13493
13494 sunos4*)
13495 if test "x$host_vendor" = xsequent; then
13496 # Use $CC to link under sequent, because it throws in some extra .o
13497 # files that make .init and .fini sections work.
13498 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13499 else
13500 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13501 fi
13502 hardcode_libdir_flag_spec_F77='-L$libdir'
13503 hardcode_direct_F77=yes
13504 hardcode_minus_L_F77=yes
13505 hardcode_shlibpath_var_F77=no
13506 ;;
13507
13508 sysv4)
13509 case $host_vendor in
13510 sni)
13511 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13512 hardcode_direct_F77=yes # is this really true???
13513 ;;
13514 siemens)
13515 ## LD is ld it makes a PLAMLIB
13516 ## CC just makes a GrossModule.
13517 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13518 reload_cmds_F77='$CC -r -o $output$reload_objs'
13519 hardcode_direct_F77=no
13520 ;;
13521 motorola)
13522 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13523 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13524 ;;
13525 esac
13526 runpath_var='LD_RUN_PATH'
13527 hardcode_shlibpath_var_F77=no
13528 ;;
13529
13530 sysv4.3*)
13531 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13532 hardcode_shlibpath_var_F77=no
13533 export_dynamic_flag_spec_F77='-Bexport'
13534 ;;
13535
13536 sysv4*MP*)
13537 if test -d /usr/nec; then
13538 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13539 hardcode_shlibpath_var_F77=no
13540 runpath_var=LD_RUN_PATH
13541 hardcode_runpath_var=yes
13542 ld_shlibs_F77=yes
13543 fi
13544 ;;
13545
13546 sysv4.2uw2*)
13547 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13548 hardcode_direct_F77=yes
13549 hardcode_minus_L_F77=no
13550 hardcode_shlibpath_var_F77=no
13551 hardcode_runpath_var=yes
13552 runpath_var=LD_RUN_PATH
13553 ;;
13554
13555 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13556 no_undefined_flag_F77='${wl}-z ${wl}text'
13557 if test "$GCC" = yes; then
13558 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13559 else
13560 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13561 fi
13562 runpath_var='LD_RUN_PATH'
13563 hardcode_shlibpath_var_F77=no
13564 ;;
13565
13566 sysv5*)
13567 no_undefined_flag_F77=' -z text'
13568 # $CC -shared without GNU ld will not create a library from C++
13569 # object files and a static libstdc++, better avoid it by now
13570 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13571 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13572 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13573 hardcode_libdir_flag_spec_F77=
13574 hardcode_shlibpath_var_F77=no
13575 runpath_var='LD_RUN_PATH'
13576 ;;
13577
13578 uts4*)
13579 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13580 hardcode_libdir_flag_spec_F77='-L$libdir'
13581 hardcode_shlibpath_var_F77=no
13582 ;;
13583
13584 *)
13585 ld_shlibs_F77=no
13586 ;;
13587 esac
13588 fi
13589
13590echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13591echo "${ECHO_T}$ld_shlibs_F77" >&6
13592test "$ld_shlibs_F77" = no && can_build_shared=no
13593
13594variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13595if test "$GCC" = yes; then
13596 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13597fi
13598
13599#
13600# Do we need to explicitly link libc?
13601#
13602case "x$archive_cmds_need_lc_F77" in
13603x|xyes)
13604 # Assume -lc should be added
13605 archive_cmds_need_lc_F77=yes
13606
13607 if test "$enable_shared" = yes && test "$GCC" = yes; then
13608 case $archive_cmds_F77 in
13609 *'~'*)
13610 # FIXME: we may have to deal with multi-command sequences.
13611 ;;
13612 '$CC '*)
13613 # Test whether the compiler implicitly links with -lc since on some
13614 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13615 # to ld, don't add -lc before -lgcc.
13616 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13617echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13618 $rm conftest*
13619 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13620
13621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13622 (eval $ac_compile) 2>&5
13623 ac_status=$?
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } 2>conftest.err; then
13626 soname=conftest
13627 lib=conftest
13628 libobjs=conftest.$ac_objext
13629 deplibs=
13630 wl=$lt_prog_compiler_wl_F77
13631 compiler_flags=-v
13632 linker_flags=-v
13633 verstring=
13634 output_objdir=.
13635 libname=conftest
13636 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13637 allow_undefined_flag_F77=
13638 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13639 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13640 ac_status=$?
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }
13643 then
13644 archive_cmds_need_lc_F77=no
13645 else
13646 archive_cmds_need_lc_F77=yes
13647 fi
13648 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13649 else
13650 cat conftest.err 1>&5
13651 fi
13652 $rm conftest*
13653 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13654echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13655 ;;
13656 esac
13657 fi
13658 ;;
13659esac
13660
13661echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13662echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13663library_names_spec=
13664libname_spec='lib$name'
13665soname_spec=
13666shrext=".so"
13667postinstall_cmds=
13668postuninstall_cmds=
13669finish_cmds=
13670finish_eval=
13671shlibpath_var=
13672shlibpath_overrides_runpath=unknown
13673version_type=none
13674dynamic_linker="$host_os ld.so"
13675sys_lib_dlsearch_path_spec="/lib /usr/lib"
13676if test "$GCC" = yes; then
13677 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13678 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13679 # if the path contains ";" then we assume it to be the separator
13680 # otherwise default to the standard path separator (i.e. ":") - it is
13681 # assumed that no part of a normal pathname contains ";" but that should
13682 # okay in the real world where ";" in dirpaths is itself problematic.
13683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13684 else
13685 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13686 fi
13687else
13688 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13689fi
13690need_lib_prefix=unknown
13691hardcode_into_libs=no
13692
13693# when you set need_version to no, make sure it does not cause -set_version
13694# flags to be left without arguments
13695need_version=unknown
13696
13697case $host_os in
13698aix3*)
13699 version_type=linux
13700 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13701 shlibpath_var=LIBPATH
13702
13703 # AIX 3 has no versioning support, so we append a major version to the name.
13704 soname_spec='${libname}${release}${shared_ext}$major'
13705 ;;
13706
13707aix4* | aix5*)
13708 version_type=linux
13709 need_lib_prefix=no
13710 need_version=no
13711 hardcode_into_libs=yes
13712 if test "$host_cpu" = ia64; then
13713 # AIX 5 supports IA64
13714 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13715 shlibpath_var=LD_LIBRARY_PATH
13716 else
13717 # With GCC up to 2.95.x, collect2 would create an import file
13718 # for dependence libraries. The import file would start with
13719 # the line `#! .'. This would cause the generated library to
13720 # depend on `.', always an invalid library. This was fixed in
13721 # development snapshots of GCC prior to 3.0.
13722 case $host_os in
13723 aix4 | aix4.[01] | aix4.[01].*)
13724 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13725 echo ' yes '
13726 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13727 :
13728 else
13729 can_build_shared=no
13730 fi
13731 ;;
13732 esac
13733 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13734 # soname into executable. Probably we can add versioning support to
13735 # collect2, so additional links can be useful in future.
13736 if test "$aix_use_runtimelinking" = yes; then
13737 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13738 # instead of lib<name>.a to let people know that these are not
13739 # typical AIX shared libraries.
13740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13741 else
13742 # We preserve .a as extension for shared libraries through AIX4.2
13743 # and later when we are not doing run time linking.
13744 library_names_spec='${libname}${release}.a $libname.a'
13745 soname_spec='${libname}${release}${shared_ext}$major'
13746 fi
13747 shlibpath_var=LIBPATH
13748 fi
13749 ;;
13750
13751amigaos*)
13752 library_names_spec='$libname.ixlibrary $libname.a'
13753 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13754 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'
13755 ;;
13756
13757beos*)
13758 library_names_spec='${libname}${shared_ext}'
13759 dynamic_linker="$host_os ld.so"
13760 shlibpath_var=LIBRARY_PATH
13761 ;;
13762
13763bsdi4*)
13764 version_type=linux
13765 need_version=no
13766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13767 soname_spec='${libname}${release}${shared_ext}$major'
13768 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13769 shlibpath_var=LD_LIBRARY_PATH
13770 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13771 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13772 # the default ld.so.conf also contains /usr/contrib/lib and
13773 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13774 # libtool to hard-code these into programs
13775 ;;
13776
13777cygwin* | mingw* | pw32*)
13778 version_type=windows
13779 shrext=".dll"
13780 need_version=no
13781 need_lib_prefix=no
13782
13783 case $GCC,$host_os in
13784 yes,cygwin* | yes,mingw* | yes,pw32*)
13785 library_names_spec='$libname.dll.a'
13786 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13787 postinstall_cmds='base_file=`basename \${file}`~
13788 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13789 dldir=$destdir/`dirname \$dlpath`~
13790 test -d \$dldir || mkdir -p \$dldir~
13791 $install_prog $dir/$dlname \$dldir/$dlname'
13792 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13793 dlpath=$dir/\$dldll~
13794 $rm \$dlpath'
13795 shlibpath_overrides_runpath=yes
13796
13797 case $host_os in
13798 cygwin*)
13799 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13800 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13801 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13802 ;;
13803 mingw*)
13804 # MinGW DLLs use traditional 'lib' prefix
13805 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13806 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13807 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13808 # It is most probably a Windows format PATH printed by
13809 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13810 # path with ; separators, and with drive letters. We can handle the
13811 # drive letters (cygwin fileutils understands them), so leave them,
13812 # especially as we might pass files found there to a mingw objdump,
13813 # which wouldn't understand a cygwinified path. Ahh.
13814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13815 else
13816 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13817 fi
13818 ;;
13819 pw32*)
13820 # pw32 DLLs use 'pw' prefix rather than 'lib'
13821 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13822 ;;
13823 esac
13824 ;;
13825
13826 *)
13827 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13828 ;;
13829 esac
13830 dynamic_linker='Win32 ld.exe'
13831 # FIXME: first we should search . and the directory the executable is in
13832 shlibpath_var=PATH
13833 ;;
13834
13835darwin* | rhapsody*)
13836 dynamic_linker="$host_os dyld"
13837 version_type=darwin
13838 need_lib_prefix=no
13839 need_version=no
13840 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13841 soname_spec='${libname}${release}${major}$shared_ext'
13842 shlibpath_overrides_runpath=yes
13843 shlibpath_var=DYLD_LIBRARY_PATH
13844 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13845 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13846 if test "$GCC" = yes; then
13847 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"`
13848 else
13849 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13850 fi
13851 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13852 ;;
13853
13854dgux*)
13855 version_type=linux
13856 need_lib_prefix=no
13857 need_version=no
13858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13859 soname_spec='${libname}${release}${shared_ext}$major'
13860 shlibpath_var=LD_LIBRARY_PATH
13861 ;;
13862
13863freebsd1*)
13864 dynamic_linker=no
13865 ;;
13866
13867kfreebsd*-gnu)
13868 version_type=linux
13869 need_lib_prefix=no
13870 need_version=no
13871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13872 soname_spec='${libname}${release}${shared_ext}$major'
13873 shlibpath_var=LD_LIBRARY_PATH
13874 shlibpath_overrides_runpath=no
13875 hardcode_into_libs=yes
13876 dynamic_linker='GNU ld.so'
13877 ;;
13878
13879freebsd*)
13880 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13881 version_type=freebsd-$objformat
13882 case $version_type in
13883 freebsd-elf*)
13884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13885 need_version=no
13886 need_lib_prefix=no
13887 ;;
13888 freebsd-*)
13889 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13890 need_version=yes
13891 ;;
13892 esac
13893 shlibpath_var=LD_LIBRARY_PATH
13894 case $host_os in
13895 freebsd2*)
13896 shlibpath_overrides_runpath=yes
13897 ;;
13898 freebsd3.01* | freebsdelf3.01*)
13899 shlibpath_overrides_runpath=yes
13900 hardcode_into_libs=yes
13901 ;;
13902 *) # from 3.2 on
13903 shlibpath_overrides_runpath=no
13904 hardcode_into_libs=yes
13905 ;;
13906 esac
13907 ;;
13908
13909gnu*)
13910 version_type=linux
13911 need_lib_prefix=no
13912 need_version=no
13913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13914 soname_spec='${libname}${release}${shared_ext}$major'
13915 shlibpath_var=LD_LIBRARY_PATH
13916 hardcode_into_libs=yes
13917 ;;
13918
13919hpux9* | hpux10* | hpux11*)
13920 # Give a soname corresponding to the major version so that dld.sl refuses to
13921 # link against other versions.
13922 version_type=sunos
13923 need_lib_prefix=no
13924 need_version=no
13925 case "$host_cpu" in
13926 ia64*)
13927 shrext='.so'
13928 hardcode_into_libs=yes
13929 dynamic_linker="$host_os dld.so"
13930 shlibpath_var=LD_LIBRARY_PATH
13931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13933 soname_spec='${libname}${release}${shared_ext}$major'
13934 if test "X$HPUX_IA64_MODE" = X32; then
13935 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13936 else
13937 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13938 fi
13939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13940 ;;
13941 hppa*64*)
13942 shrext='.sl'
13943 hardcode_into_libs=yes
13944 dynamic_linker="$host_os dld.sl"
13945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13948 soname_spec='${libname}${release}${shared_ext}$major'
13949 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13951 ;;
13952 *)
13953 shrext='.sl'
13954 dynamic_linker="$host_os dld.sl"
13955 shlibpath_var=SHLIB_PATH
13956 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13958 soname_spec='${libname}${release}${shared_ext}$major'
13959 ;;
13960 esac
13961 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13962 postinstall_cmds='chmod 555 $lib'
13963 ;;
13964
13965irix5* | irix6* | nonstopux*)
13966 case $host_os in
13967 nonstopux*) version_type=nonstopux ;;
13968 *)
13969 if test "$lt_cv_prog_gnu_ld" = yes; then
13970 version_type=linux
13971 else
13972 version_type=irix
13973 fi ;;
13974 esac
13975 need_lib_prefix=no
13976 need_version=no
13977 soname_spec='${libname}${release}${shared_ext}$major'
13978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13979 case $host_os in
13980 irix5* | nonstopux*)
13981 libsuff= shlibsuff=
13982 ;;
13983 *)
13984 case $LD in # libtool.m4 will add one of these switches to LD
13985 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13986 libsuff= shlibsuff= libmagic=32-bit;;
13987 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13988 libsuff=32 shlibsuff=N32 libmagic=N32;;
13989 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13990 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13991 *) libsuff= shlibsuff= libmagic=never-match;;
13992 esac
13993 ;;
13994 esac
13995 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13996 shlibpath_overrides_runpath=no
13997 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13998 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13999 hardcode_into_libs=yes
14000 ;;
14001
14002# No shared lib support for Linux oldld, aout, or coff.
14003linux*oldld* | linux*aout* | linux*coff*)
14004 dynamic_linker=no
14005 ;;
14006
14007# This must be Linux ELF.
14008linux*)
14009 version_type=linux
14010 need_lib_prefix=no
14011 need_version=no
14012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14013 soname_spec='${libname}${release}${shared_ext}$major'
14014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14015 shlibpath_var=LD_LIBRARY_PATH
14016 shlibpath_overrides_runpath=no
14017 # This implies no fast_install, which is unacceptable.
14018 # Some rework will be needed to allow for fast_install
14019 # before this can be enabled.
14020 hardcode_into_libs=yes
14021
14022 # Append ld.so.conf contents to the search path
14023 if test -f /etc/ld.so.conf; then
14024 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14025 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14026 fi
14027
14028 # We used to test for /lib/ld.so.1 and disable shared libraries on
14029 # powerpc, because MkLinux only supported shared libraries with the
14030 # GNU dynamic linker. Since this was broken with cross compilers,
14031 # most powerpc-linux boxes support dynamic linking these days and
14032 # people can always --disable-shared, the test was removed, and we
14033 # assume the GNU/Linux dynamic linker is in use.
14034 dynamic_linker='GNU/Linux ld.so'
14035 ;;
14036
14037knetbsd*-gnu)
14038 version_type=linux
14039 need_lib_prefix=no
14040 need_version=no
14041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14042 soname_spec='${libname}${release}${shared_ext}$major'
14043 shlibpath_var=LD_LIBRARY_PATH
14044 shlibpath_overrides_runpath=no
14045 hardcode_into_libs=yes
14046 dynamic_linker='GNU ld.so'
14047 ;;
14048
14049netbsd*)
14050 version_type=sunos
14051 need_lib_prefix=no
14052 need_version=no
14053 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14056 dynamic_linker='NetBSD (a.out) ld.so'
14057 else
14058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14059 soname_spec='${libname}${release}${shared_ext}$major'
14060 dynamic_linker='NetBSD ld.elf_so'
14061 fi
14062 shlibpath_var=LD_LIBRARY_PATH
14063 shlibpath_overrides_runpath=yes
14064 hardcode_into_libs=yes
14065 ;;
14066
14067newsos6)
14068 version_type=linux
14069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14070 shlibpath_var=LD_LIBRARY_PATH
14071 shlibpath_overrides_runpath=yes
14072 ;;
14073
14074nto-qnx*)
14075 version_type=linux
14076 need_lib_prefix=no
14077 need_version=no
14078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14079 soname_spec='${libname}${release}${shared_ext}$major'
14080 shlibpath_var=LD_LIBRARY_PATH
14081 shlibpath_overrides_runpath=yes
14082 ;;
14083
14084openbsd*)
14085 version_type=sunos
14086 need_lib_prefix=no
14087 need_version=yes
14088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14090 shlibpath_var=LD_LIBRARY_PATH
14091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14092 case $host_os in
14093 openbsd2.[89] | openbsd2.[89].*)
14094 shlibpath_overrides_runpath=no
14095 ;;
14096 *)
14097 shlibpath_overrides_runpath=yes
14098 ;;
14099 esac
14100 else
14101 shlibpath_overrides_runpath=yes
14102 fi
14103 ;;
14104
14105os2*)
14106 libname_spec='$name'
14107 shrext=".dll"
14108 need_lib_prefix=no
14109 library_names_spec='$libname${shared_ext} $libname.a'
14110 dynamic_linker='OS/2 ld.exe'
14111 shlibpath_var=LIBPATH
14112 ;;
14113
14114osf3* | osf4* | osf5*)
14115 version_type=osf
14116 need_lib_prefix=no
14117 need_version=no
14118 soname_spec='${libname}${release}${shared_ext}$major'
14119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14120 shlibpath_var=LD_LIBRARY_PATH
14121 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14122 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14123 ;;
14124
14125sco3.2v5*)
14126 version_type=osf
14127 soname_spec='${libname}${release}${shared_ext}$major'
14128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14129 shlibpath_var=LD_LIBRARY_PATH
14130 ;;
14131
14132solaris*)
14133 version_type=linux
14134 need_lib_prefix=no
14135 need_version=no
14136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14137 soname_spec='${libname}${release}${shared_ext}$major'
14138 shlibpath_var=LD_LIBRARY_PATH
14139 shlibpath_overrides_runpath=yes
14140 hardcode_into_libs=yes
14141 # ldd complains unless libraries are executable
14142 postinstall_cmds='chmod +x $lib'
14143 ;;
14144
14145sunos4*)
14146 version_type=sunos
14147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14148 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14149 shlibpath_var=LD_LIBRARY_PATH
14150 shlibpath_overrides_runpath=yes
14151 if test "$with_gnu_ld" = yes; then
14152 need_lib_prefix=no
14153 fi
14154 need_version=yes
14155 ;;
14156
14157sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14158 version_type=linux
14159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14160 soname_spec='${libname}${release}${shared_ext}$major'
14161 shlibpath_var=LD_LIBRARY_PATH
14162 case $host_vendor in
14163 sni)
14164 shlibpath_overrides_runpath=no
14165 need_lib_prefix=no
14166 export_dynamic_flag_spec='${wl}-Blargedynsym'
14167 runpath_var=LD_RUN_PATH
14168 ;;
14169 siemens)
14170 need_lib_prefix=no
14171 ;;
14172 motorola)
14173 need_lib_prefix=no
14174 need_version=no
14175 shlibpath_overrides_runpath=no
14176 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14177 ;;
14178 esac
14179 ;;
14180
14181sysv4*MP*)
14182 if test -d /usr/nec ;then
14183 version_type=linux
14184 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14185 soname_spec='$libname${shared_ext}.$major'
14186 shlibpath_var=LD_LIBRARY_PATH
14187 fi
14188 ;;
14189
14190uts4*)
14191 version_type=linux
14192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14193 soname_spec='${libname}${release}${shared_ext}$major'
14194 shlibpath_var=LD_LIBRARY_PATH
14195 ;;
14196
14197*)
14198 dynamic_linker=no
14199 ;;
14200esac
14201echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14202echo "${ECHO_T}$dynamic_linker" >&6
14203test "$dynamic_linker" = no && can_build_shared=no
14204
14205echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14206echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14207hardcode_action_F77=
14208if test -n "$hardcode_libdir_flag_spec_F77" || \
14209 test -n "$runpath_var F77" || \
14210 test "X$hardcode_automatic_F77"="Xyes" ; then
14211
14212 # We can hardcode non-existant directories.
14213 if test "$hardcode_direct_F77" != no &&
14214 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14215 # have to relink, otherwise we might link with an installed library
14216 # when we should be linking with a yet-to-be-installed one
14217 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14218 test "$hardcode_minus_L_F77" != no; then
14219 # Linking always hardcodes the temporary library directory.
14220 hardcode_action_F77=relink
14221 else
14222 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14223 hardcode_action_F77=immediate
14224 fi
14225else
14226 # We cannot hardcode anything, or else we can only hardcode existing
14227 # directories.
14228 hardcode_action_F77=unsupported
14229fi
14230echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14231echo "${ECHO_T}$hardcode_action_F77" >&6
14232
14233if test "$hardcode_action_F77" = relink; then
14234 # Fast installation is not supported
14235 enable_fast_install=no
14236elif test "$shlibpath_overrides_runpath" = yes ||
14237 test "$enable_shared" = no; then
14238 # Fast installation is not necessary
14239 enable_fast_install=needless
14240fi
14241
14242striplib=
14243old_striplib=
14244echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14245echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14246if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14247 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14248 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14249 echo "$as_me:$LINENO: result: yes" >&5
14250echo "${ECHO_T}yes" >&6
14251else
14252# FIXME - insert some real tests, host_os isn't really good enough
14253 case $host_os in
14254 darwin*)
14255 if test -n "$STRIP" ; then
14256 striplib="$STRIP -x"
14257 echo "$as_me:$LINENO: result: yes" >&5
14258echo "${ECHO_T}yes" >&6
14259 else
14260 echo "$as_me:$LINENO: result: no" >&5
14261echo "${ECHO_T}no" >&6
14262fi
14263 ;;
14264 *)
14265 echo "$as_me:$LINENO: result: no" >&5
14266echo "${ECHO_T}no" >&6
14267 ;;
14268 esac
14269fi
14270
14271
14272
14273# The else clause should only fire when bootstrapping the
14274# libtool distribution, otherwise you forgot to ship ltmain.sh
14275# with your package, and you will get complaints that there are
14276# no rules to generate ltmain.sh.
14277if test -f "$ltmain"; then
14278 # See if we are running on zsh, and set the options which allow our commands through
14279 # without removal of \ escapes.
14280 if test -n "${ZSH_VERSION+set}" ; then
14281 setopt NO_GLOB_SUBST
14282 fi
14283 # Now quote all the things that may contain metacharacters while being
14284 # careful not to overquote the AC_SUBSTed values. We take copies of the
14285 # variables and quote the copies for generation of the libtool script.
14286 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14287 SED SHELL STRIP \
14288 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14289 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14290 deplibs_check_method reload_flag reload_cmds need_locks \
14291 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14292 lt_cv_sys_global_symbol_to_c_name_address \
14293 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14294 old_postinstall_cmds old_postuninstall_cmds \
14295 compiler_F77 \
14296 CC_F77 \
14297 LD_F77 \
14298 lt_prog_compiler_wl_F77 \
14299 lt_prog_compiler_pic_F77 \
14300 lt_prog_compiler_static_F77 \
14301 lt_prog_compiler_no_builtin_flag_F77 \
14302 export_dynamic_flag_spec_F77 \
14303 thread_safe_flag_spec_F77 \
14304 whole_archive_flag_spec_F77 \
14305 enable_shared_with_static_runtimes_F77 \
14306 old_archive_cmds_F77 \
14307 old_archive_from_new_cmds_F77 \
14308 predep_objects_F77 \
14309 postdep_objects_F77 \
14310 predeps_F77 \
14311 postdeps_F77 \
14312 compiler_lib_search_path_F77 \
14313 archive_cmds_F77 \
14314 archive_expsym_cmds_F77 \
14315 postinstall_cmds_F77 \
14316 postuninstall_cmds_F77 \
14317 old_archive_from_expsyms_cmds_F77 \
14318 allow_undefined_flag_F77 \
14319 no_undefined_flag_F77 \
14320 export_symbols_cmds_F77 \
14321 hardcode_libdir_flag_spec_F77 \
14322 hardcode_libdir_flag_spec_ld_F77 \
14323 hardcode_libdir_separator_F77 \
14324 hardcode_automatic_F77 \
14325 module_cmds_F77 \
14326 module_expsym_cmds_F77 \
14327 lt_cv_prog_compiler_c_o_F77 \
14328 exclude_expsyms_F77 \
14329 include_expsyms_F77; do
14330
14331 case $var in
14332 old_archive_cmds_F77 | \
14333 old_archive_from_new_cmds_F77 | \
14334 archive_cmds_F77 | \
14335 archive_expsym_cmds_F77 | \
14336 module_cmds_F77 | \
14337 module_expsym_cmds_F77 | \
14338 old_archive_from_expsyms_cmds_F77 | \
14339 export_symbols_cmds_F77 | \
14340 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14341 postinstall_cmds | postuninstall_cmds | \
14342 old_postinstall_cmds | old_postuninstall_cmds | \
14343 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14344 # Double-quote double-evaled strings.
14345 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14346 ;;
14347 *)
14348 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14349 ;;
14350 esac
14351 done
14352
14353 case $lt_echo in
14354 *'\$0 --fallback-echo"')
14355 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14356 ;;
14357 esac
14358
14359cfgfile="$ofile"
14360
14361 cat <<__EOF__ >> "$cfgfile"
14362# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14363
14364# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14365
14366# Shell to use when invoking shell scripts.
14367SHELL=$lt_SHELL
14368
14369# Whether or not to build shared libraries.
14370build_libtool_libs=$enable_shared
14371
14372# Whether or not to build static libraries.
14373build_old_libs=$enable_static
14374
14375# Whether or not to add -lc for building shared libraries.
14376build_libtool_need_lc=$archive_cmds_need_lc_F77
14377
14378# Whether or not to disallow shared libs when runtime libs are static
14379allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14380
14381# Whether or not to optimize for fast installation.
14382fast_install=$enable_fast_install
14383
14384# The host system.
14385host_alias=$host_alias
14386host=$host
14387
14388# An echo program that does not interpret backslashes.
14389echo=$lt_echo
14390
14391# The archiver.
14392AR=$lt_AR
14393AR_FLAGS=$lt_AR_FLAGS
14394
14395# A C compiler.
14396LTCC=$lt_LTCC
14397
14398# A language-specific compiler.
14399CC=$lt_compiler_F77
14400
14401# Is the compiler the GNU C compiler?
14402with_gcc=$GCC_F77
14403
14404# An ERE matcher.
14405EGREP=$lt_EGREP
14406
14407# The linker used to build libraries.
14408LD=$lt_LD_F77
14409
14410# Whether we need hard or soft links.
14411LN_S=$lt_LN_S
14412
14413# A BSD-compatible nm program.
14414NM=$lt_NM
14415
14416# A symbol stripping program
14417STRIP=$lt_STRIP
14418
14419# Used to examine libraries when file_magic_cmd begins "file"
14420MAGIC_CMD=$MAGIC_CMD
14421
14422# Used on cygwin: DLL creation program.
14423DLLTOOL="$DLLTOOL"
14424
14425# Used on cygwin: object dumper.
14426OBJDUMP="$OBJDUMP"
14427
14428# Used on cygwin: assembler.
14429AS="$AS"
14430
14431# The name of the directory that contains temporary libtool files.
14432objdir=$objdir
14433
14434# How to create reloadable object files.
14435reload_flag=$lt_reload_flag
14436reload_cmds=$lt_reload_cmds
14437
14438# How to pass a linker flag through the compiler.
14439wl=$lt_lt_prog_compiler_wl_F77
14440
14441# Object file suffix (normally "o").
14442objext="$ac_objext"
14443
14444# Old archive suffix (normally "a").
14445libext="$libext"
14446
14447# Shared library suffix (normally ".so").
14448shrext='$shrext'
14449
14450# Executable file suffix (normally "").
14451exeext="$exeext"
14452
14453# Additional compiler flags for building library objects.
14454pic_flag=$lt_lt_prog_compiler_pic_F77
14455pic_mode=$pic_mode
14456
14457# What is the maximum length of a command?
14458max_cmd_len=$lt_cv_sys_max_cmd_len
14459
14460# Does compiler simultaneously support -c and -o options?
14461compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14462
14463# Must we lock files when doing compilation ?
14464need_locks=$lt_need_locks
14465
14466# Do we need the lib prefix for modules?
14467need_lib_prefix=$need_lib_prefix
14468
14469# Do we need a version for libraries?
14470need_version=$need_version
14471
14472# Whether dlopen is supported.
14473dlopen_support=$enable_dlopen
14474
14475# Whether dlopen of programs is supported.
14476dlopen_self=$enable_dlopen_self
14477
14478# Whether dlopen of statically linked programs is supported.
14479dlopen_self_static=$enable_dlopen_self_static
14480
14481# Compiler flag to prevent dynamic linking.
14482link_static_flag=$lt_lt_prog_compiler_static_F77
14483
14484# Compiler flag to turn off builtin functions.
14485no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14486
14487# Compiler flag to allow reflexive dlopens.
14488export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14489
14490# Compiler flag to generate shared objects directly from archives.
14491whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14492
14493# Compiler flag to generate thread-safe objects.
14494thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14495
14496# Library versioning type.
14497version_type=$version_type
14498
14499# Format of library name prefix.
14500libname_spec=$lt_libname_spec
14501
14502# List of archive names. First name is the real one, the rest are links.
14503# The last name is the one that the linker finds with -lNAME.
14504library_names_spec=$lt_library_names_spec
14505
14506# The coded name of the library, if different from the real name.
14507soname_spec=$lt_soname_spec
14508
14509# Commands used to build and install an old-style archive.
14510RANLIB=$lt_RANLIB
14511old_archive_cmds=$lt_old_archive_cmds_F77
14512old_postinstall_cmds=$lt_old_postinstall_cmds
14513old_postuninstall_cmds=$lt_old_postuninstall_cmds
14514
14515# Create an old-style archive from a shared archive.
14516old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14517
14518# Create a temporary old-style archive to link instead of a shared archive.
14519old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14520
14521# Commands used to build and install a shared archive.
14522archive_cmds=$lt_archive_cmds_F77
14523archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14524postinstall_cmds=$lt_postinstall_cmds
14525postuninstall_cmds=$lt_postuninstall_cmds
14526
14527# Commands used to build a loadable module (assumed same as above if empty)
14528module_cmds=$lt_module_cmds_F77
14529module_expsym_cmds=$lt_module_expsym_cmds_F77
14530
14531# Commands to strip libraries.
14532old_striplib=$lt_old_striplib
14533striplib=$lt_striplib
14534
14535# Dependencies to place before the objects being linked to create a
14536# shared library.
14537predep_objects=$lt_predep_objects_F77
14538
14539# Dependencies to place after the objects being linked to create a
14540# shared library.
14541postdep_objects=$lt_postdep_objects_F77
14542
14543# Dependencies to place before the objects being linked to create a
14544# shared library.
14545predeps=$lt_predeps_F77
14546
14547# Dependencies to place after the objects being linked to create a
14548# shared library.
14549postdeps=$lt_postdeps_F77
14550
14551# The library search path used internally by the compiler when linking
14552# a shared library.
14553compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14554
14555# Method to check whether dependent libraries are shared objects.
14556deplibs_check_method=$lt_deplibs_check_method
14557
14558# Command to use when deplibs_check_method == file_magic.
14559file_magic_cmd=$lt_file_magic_cmd
14560
14561# Flag that allows shared libraries with undefined symbols to be built.
14562allow_undefined_flag=$lt_allow_undefined_flag_F77
14563
14564# Flag that forces no undefined symbols.
14565no_undefined_flag=$lt_no_undefined_flag_F77
14566
14567# Commands used to finish a libtool library installation in a directory.
14568finish_cmds=$lt_finish_cmds
14569
14570# Same as above, but a single script fragment to be evaled but not shown.
14571finish_eval=$lt_finish_eval
14572
14573# Take the output of nm and produce a listing of raw symbols and C names.
14574global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14575
14576# Transform the output of nm in a proper C declaration
14577global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14578
14579# Transform the output of nm in a C name address pair
14580global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14581
14582# This is the shared library runtime path variable.
14583runpath_var=$runpath_var
14584
14585# This is the shared library path variable.
14586shlibpath_var=$shlibpath_var
14587
14588# Is shlibpath searched before the hard-coded library search path?
14589shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14590
14591# How to hardcode a shared library path into an executable.
14592hardcode_action=$hardcode_action_F77
14593
14594# Whether we should hardcode library paths into libraries.
14595hardcode_into_libs=$hardcode_into_libs
14596
14597# Flag to hardcode \$libdir into a binary during linking.
14598# This must work even if \$libdir does not exist.
14599hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14600
14601# If ld is used when linking, flag to hardcode \$libdir into
14602# a binary during linking. This must work even if \$libdir does
14603# not exist.
14604hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14605
14606# Whether we need a single -rpath flag with a separated argument.
14607hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14608
14609# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14610# resulting binary.
14611hardcode_direct=$hardcode_direct_F77
14612
14613# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14614# resulting binary.
14615hardcode_minus_L=$hardcode_minus_L_F77
14616
14617# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14618# the resulting binary.
14619hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14620
14621# Set to yes if building a shared library automatically hardcodes DIR into the library
14622# and all subsequent libraries and executables linked against it.
14623hardcode_automatic=$hardcode_automatic_F77
14624
14625# Variables whose values should be saved in libtool wrapper scripts and
14626# restored at relink time.
14627variables_saved_for_relink="$variables_saved_for_relink"
14628
14629# Whether libtool must link a program against all its dependency libraries.
14630link_all_deplibs=$link_all_deplibs_F77
14631
14632# Compile-time system search path for libraries
14633sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14634
14635# Run-time system search path for libraries
14636sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14637
14638# Fix the shell variable \$srcfile for the compiler.
14639fix_srcfile_path="$fix_srcfile_path_F77"
14640
14641# Set to yes if exported symbols are required.
14642always_export_symbols=$always_export_symbols_F77
14643
14644# The commands to list exported symbols.
14645export_symbols_cmds=$lt_export_symbols_cmds_F77
14646
14647# The commands to extract the exported symbol list from a shared archive.
14648extract_expsyms_cmds=$lt_extract_expsyms_cmds
14649
14650# Symbols that should not be listed in the preloaded symbols.
14651exclude_expsyms=$lt_exclude_expsyms_F77
14652
14653# Symbols that must always be exported.
14654include_expsyms=$lt_include_expsyms_F77
14655
14656# ### END LIBTOOL TAG CONFIG: $tagname
14657
14658__EOF__
14659
14660
14661else
14662 # If there is no Makefile yet, we rely on a make rule to execute
14663 # `config.status --recheck' to rerun these tests and create the
14664 # libtool script then.
14665 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14666 if test -f "$ltmain_in"; then
14667 test -f Makefile && make "$ltmain"
14668 fi
14669fi
14670
14671
14672ac_ext=c
14673ac_cpp='$CPP $CPPFLAGS'
14674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14676ac_compiler_gnu=$ac_cv_c_compiler_gnu
14677
14678CC="$lt_save_CC"
14679
14680 else
14681 tagname=""
14682 fi
14683 ;;
14684
14685 GCJ)
14686 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14687
14688
14689
14690# Source file extension for Java test sources.
14691ac_ext=java
14692
14693# Object file extension for compiled Java test sources.
14694objext=o
14695objext_GCJ=$objext
14696
14697# Code to be used in simple compile tests
14698lt_simple_compile_test_code="class foo {}\n"
14699
14700# Code to be used in simple link tests
14701lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14702
14703# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14704
14705# If no C compiler was specified, use CC.
14706LTCC=${LTCC-"$CC"}
14707
14708# Allow CC to be a program name with arguments.
14709compiler=$CC
14710
14711
14712# Allow CC to be a program name with arguments.
14713lt_save_CC="$CC"
14714CC=${GCJ-"gcj"}
14715compiler=$CC
14716compiler_GCJ=$CC
14717
14718# GCJ did not exist at the time GCC didn't implicitly link libc in.
14719archive_cmds_need_lc_GCJ=no
14720
14721
14722lt_prog_compiler_no_builtin_flag_GCJ=
14723
14724if test "$GCC" = yes; then
14725 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14726
14727
14728echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14729echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14730if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14731 echo $ECHO_N "(cached) $ECHO_C" >&6
14732else
14733 lt_cv_prog_compiler_rtti_exceptions=no
14734 ac_outfile=conftest.$ac_objext
14735 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14736 lt_compiler_flag="-fno-rtti -fno-exceptions"
14737 # Insert the option either (1) after the last *FLAGS variable, or
14738 # (2) before a word containing "conftest.", or (3) at the end.
14739 # Note that $ac_compile itself does not contain backslashes and begins
14740 # with a dollar sign (not a hyphen), so the echo should work correctly.
14741 # The option is referenced via a variable to avoid confusing sed.
14742 lt_compile=`echo "$ac_compile" | $SED \
14743 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14745 -e 's:$: $lt_compiler_flag:'`
dougcurrie0f290bf2004-06-21 18:57:29 +000014746 (eval echo "\"\$as_me:14746: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000014747 (eval "$lt_compile" 2>conftest.err)
14748 ac_status=$?
14749 cat conftest.err >&5
dougcurrie0f290bf2004-06-21 18:57:29 +000014750 echo "$as_me:14750: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000014751 if (exit $ac_status) && test -s "$ac_outfile"; then
14752 # The compiler can only warn and ignore the option if not recognized
14753 # So say no if there are warnings
14754 if test ! -s conftest.err; then
14755 lt_cv_prog_compiler_rtti_exceptions=yes
14756 fi
14757 fi
14758 $rm conftest*
14759
14760fi
14761echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14762echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14763
14764if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14765 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14766else
14767 :
14768fi
14769
14770fi
14771
14772lt_prog_compiler_wl_GCJ=
14773lt_prog_compiler_pic_GCJ=
14774lt_prog_compiler_static_GCJ=
14775
14776echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14777echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14778
14779 if test "$GCC" = yes; then
14780 lt_prog_compiler_wl_GCJ='-Wl,'
14781 lt_prog_compiler_static_GCJ='-static'
14782
14783 case $host_os in
14784 aix*)
14785 # All AIX code is PIC.
14786 if test "$host_cpu" = ia64; then
14787 # AIX 5 now supports IA64 processor
14788 lt_prog_compiler_static_GCJ='-Bstatic'
14789 fi
14790 ;;
14791
14792 amigaos*)
14793 # FIXME: we need at least 68020 code to build shared libraries, but
14794 # adding the `-m68020' flag to GCC prevents building anything better,
14795 # like `-m68040'.
14796 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14797 ;;
14798
14799 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14800 # PIC is the default for these OSes.
14801 ;;
14802
14803 mingw* | pw32* | os2*)
14804 # This hack is so that the source file can tell whether it is being
14805 # built for inclusion in a dll (and should export symbols for example).
14806 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14807 ;;
14808
14809 darwin* | rhapsody*)
14810 # PIC is the default on this platform
14811 # Common symbols not allowed in MH_DYLIB files
14812 lt_prog_compiler_pic_GCJ='-fno-common'
14813 ;;
14814
14815 msdosdjgpp*)
14816 # Just because we use GCC doesn't mean we suddenly get shared libraries
14817 # on systems that don't support them.
14818 lt_prog_compiler_can_build_shared_GCJ=no
14819 enable_shared=no
14820 ;;
14821
14822 sysv4*MP*)
14823 if test -d /usr/nec; then
14824 lt_prog_compiler_pic_GCJ=-Kconform_pic
14825 fi
14826 ;;
14827
14828 hpux*)
14829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14830 # not for PA HP-UX.
14831 case "$host_cpu" in
14832 hppa*64*|ia64*)
14833 # +Z the default
14834 ;;
14835 *)
14836 lt_prog_compiler_pic_GCJ='-fPIC'
14837 ;;
14838 esac
14839 ;;
14840
14841 *)
14842 lt_prog_compiler_pic_GCJ='-fPIC'
14843 ;;
14844 esac
14845 else
14846 # PORTME Check for flag to pass linker flags through the system compiler.
14847 case $host_os in
14848 aix*)
14849 lt_prog_compiler_wl_GCJ='-Wl,'
14850 if test "$host_cpu" = ia64; then
14851 # AIX 5 now supports IA64 processor
14852 lt_prog_compiler_static_GCJ='-Bstatic'
14853 else
14854 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14855 fi
14856 ;;
14857
14858 mingw* | pw32* | os2*)
14859 # This hack is so that the source file can tell whether it is being
14860 # built for inclusion in a dll (and should export symbols for example).
14861 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14862 ;;
14863
14864 hpux9* | hpux10* | hpux11*)
14865 lt_prog_compiler_wl_GCJ='-Wl,'
14866 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14867 # not for PA HP-UX.
14868 case "$host_cpu" in
14869 hppa*64*|ia64*)
14870 # +Z the default
14871 ;;
14872 *)
14873 lt_prog_compiler_pic_GCJ='+Z'
14874 ;;
14875 esac
14876 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14877 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14878 ;;
14879
14880 irix5* | irix6* | nonstopux*)
14881 lt_prog_compiler_wl_GCJ='-Wl,'
14882 # PIC (with -KPIC) is the default.
14883 lt_prog_compiler_static_GCJ='-non_shared'
14884 ;;
14885
14886 newsos6)
14887 lt_prog_compiler_pic_GCJ='-KPIC'
14888 lt_prog_compiler_static_GCJ='-Bstatic'
14889 ;;
14890
14891 linux*)
14892 case $CC in
14893 icc* | ecc*)
14894 lt_prog_compiler_wl_GCJ='-Wl,'
14895 lt_prog_compiler_pic_GCJ='-KPIC'
14896 lt_prog_compiler_static_GCJ='-static'
14897 ;;
14898 ccc*)
14899 lt_prog_compiler_wl_GCJ='-Wl,'
14900 # All Alpha code is PIC.
14901 lt_prog_compiler_static_GCJ='-non_shared'
14902 ;;
14903 esac
14904 ;;
14905
14906 osf3* | osf4* | osf5*)
14907 lt_prog_compiler_wl_GCJ='-Wl,'
14908 # All OSF/1 code is PIC.
14909 lt_prog_compiler_static_GCJ='-non_shared'
14910 ;;
14911
14912 sco3.2v5*)
14913 lt_prog_compiler_pic_GCJ='-Kpic'
14914 lt_prog_compiler_static_GCJ='-dn'
14915 ;;
14916
14917 solaris*)
14918 lt_prog_compiler_wl_GCJ='-Wl,'
14919 lt_prog_compiler_pic_GCJ='-KPIC'
14920 lt_prog_compiler_static_GCJ='-Bstatic'
14921 ;;
14922
14923 sunos4*)
14924 lt_prog_compiler_wl_GCJ='-Qoption ld '
14925 lt_prog_compiler_pic_GCJ='-PIC'
14926 lt_prog_compiler_static_GCJ='-Bstatic'
14927 ;;
14928
14929 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14930 lt_prog_compiler_wl_GCJ='-Wl,'
14931 lt_prog_compiler_pic_GCJ='-KPIC'
14932 lt_prog_compiler_static_GCJ='-Bstatic'
14933 ;;
14934
14935 sysv4*MP*)
14936 if test -d /usr/nec ;then
14937 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14938 lt_prog_compiler_static_GCJ='-Bstatic'
14939 fi
14940 ;;
14941
14942 uts4*)
14943 lt_prog_compiler_pic_GCJ='-pic'
14944 lt_prog_compiler_static_GCJ='-Bstatic'
14945 ;;
14946
14947 *)
14948 lt_prog_compiler_can_build_shared_GCJ=no
14949 ;;
14950 esac
14951 fi
14952
14953echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14954echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14955
14956#
14957# Check to make sure the PIC flag actually works.
14958#
14959if test -n "$lt_prog_compiler_pic_GCJ"; then
14960
14961echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14962echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14963if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14965else
14966 lt_prog_compiler_pic_works_GCJ=no
14967 ac_outfile=conftest.$ac_objext
14968 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14969 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14970 # Insert the option either (1) after the last *FLAGS variable, or
14971 # (2) before a word containing "conftest.", or (3) at the end.
14972 # Note that $ac_compile itself does not contain backslashes and begins
14973 # with a dollar sign (not a hyphen), so the echo should work correctly.
14974 # The option is referenced via a variable to avoid confusing sed.
14975 lt_compile=`echo "$ac_compile" | $SED \
14976 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14978 -e 's:$: $lt_compiler_flag:'`
dougcurrie0f290bf2004-06-21 18:57:29 +000014979 (eval echo "\"\$as_me:14979: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000014980 (eval "$lt_compile" 2>conftest.err)
14981 ac_status=$?
14982 cat conftest.err >&5
dougcurrie0f290bf2004-06-21 18:57:29 +000014983 echo "$as_me:14983: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000014984 if (exit $ac_status) && test -s "$ac_outfile"; then
14985 # The compiler can only warn and ignore the option if not recognized
14986 # So say no if there are warnings
14987 if test ! -s conftest.err; then
14988 lt_prog_compiler_pic_works_GCJ=yes
14989 fi
14990 fi
14991 $rm conftest*
14992
14993fi
14994echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14995echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14996
14997if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14998 case $lt_prog_compiler_pic_GCJ in
14999 "" | " "*) ;;
15000 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15001 esac
15002else
15003 lt_prog_compiler_pic_GCJ=
15004 lt_prog_compiler_can_build_shared_GCJ=no
15005fi
15006
15007fi
15008case "$host_os" in
15009 # For platforms which do not support PIC, -DPIC is meaningless:
15010 *djgpp*)
15011 lt_prog_compiler_pic_GCJ=
15012 ;;
15013 *)
15014 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15015 ;;
15016esac
15017
15018echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15019echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15020if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15021 echo $ECHO_N "(cached) $ECHO_C" >&6
15022else
15023 lt_cv_prog_compiler_c_o_GCJ=no
15024 $rm -r conftest 2>/dev/null
15025 mkdir conftest
15026 cd conftest
15027 mkdir out
15028 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15029
15030 lt_compiler_flag="-o out/conftest2.$ac_objext"
15031 # Insert the option either (1) after the last *FLAGS variable, or
15032 # (2) before a word containing "conftest.", or (3) at the end.
15033 # Note that $ac_compile itself does not contain backslashes and begins
15034 # with a dollar sign (not a hyphen), so the echo should work correctly.
15035 lt_compile=`echo "$ac_compile" | $SED \
15036 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15038 -e 's:$: $lt_compiler_flag:'`
dougcurrie0f290bf2004-06-21 18:57:29 +000015039 (eval echo "\"\$as_me:15039: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000015040 (eval "$lt_compile" 2>out/conftest.err)
15041 ac_status=$?
15042 cat out/conftest.err >&5
dougcurrie0f290bf2004-06-21 18:57:29 +000015043 echo "$as_me:15043: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015044 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15045 then
15046 # The compiler can only warn and ignore the option if not recognized
15047 # So say no if there are warnings
15048 if test ! -s out/conftest.err; then
15049 lt_cv_prog_compiler_c_o_GCJ=yes
15050 fi
15051 fi
15052 chmod u+w .
15053 $rm conftest*
15054 # SGI C++ compiler will create directory out/ii_files/ for
15055 # template instantiation
15056 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15057 $rm out/* && rmdir out
15058 cd ..
15059 rmdir conftest
15060 $rm conftest*
15061
15062fi
15063echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15064echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15065
15066
15067hard_links="nottested"
15068if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15069 # do not overwrite the value of need_locks provided by the user
15070 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15071echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15072 hard_links=yes
15073 $rm conftest*
15074 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15075 touch conftest.a
15076 ln conftest.a conftest.b 2>&5 || hard_links=no
15077 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15078 echo "$as_me:$LINENO: result: $hard_links" >&5
15079echo "${ECHO_T}$hard_links" >&6
15080 if test "$hard_links" = no; then
15081 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15082echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15083 need_locks=warn
15084 fi
15085else
15086 need_locks=no
15087fi
15088
15089echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15090echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15091
15092 runpath_var=
15093 allow_undefined_flag_GCJ=
15094 enable_shared_with_static_runtimes_GCJ=no
15095 archive_cmds_GCJ=
15096 archive_expsym_cmds_GCJ=
15097 old_archive_From_new_cmds_GCJ=
15098 old_archive_from_expsyms_cmds_GCJ=
15099 export_dynamic_flag_spec_GCJ=
15100 whole_archive_flag_spec_GCJ=
15101 thread_safe_flag_spec_GCJ=
15102 hardcode_libdir_flag_spec_GCJ=
15103 hardcode_libdir_flag_spec_ld_GCJ=
15104 hardcode_libdir_separator_GCJ=
15105 hardcode_direct_GCJ=no
15106 hardcode_minus_L_GCJ=no
15107 hardcode_shlibpath_var_GCJ=unsupported
15108 link_all_deplibs_GCJ=unknown
15109 hardcode_automatic_GCJ=no
15110 module_cmds_GCJ=
15111 module_expsym_cmds_GCJ=
15112 always_export_symbols_GCJ=no
15113 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15114 # include_expsyms should be a list of space-separated symbols to be *always*
15115 # included in the symbol list
15116 include_expsyms_GCJ=
15117 # exclude_expsyms can be an extended regexp of symbols to exclude
15118 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15119 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15120 # as well as any symbol that contains `d'.
15121 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15122 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15123 # platforms (ab)use it in PIC code, but their linkers get confused if
15124 # the symbol is explicitly referenced. Since portable code cannot
15125 # rely on this symbol name, it's probably fine to never include it in
15126 # preloaded symbol tables.
15127 extract_expsyms_cmds=
15128
15129 case $host_os in
15130 cygwin* | mingw* | pw32*)
15131 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15132 # When not using gcc, we currently assume that we are using
15133 # Microsoft Visual C++.
15134 if test "$GCC" != yes; then
15135 with_gnu_ld=no
15136 fi
15137 ;;
15138 openbsd*)
15139 with_gnu_ld=no
15140 ;;
15141 esac
15142
15143 ld_shlibs_GCJ=yes
15144 if test "$with_gnu_ld" = yes; then
15145 # If archive_cmds runs LD, not CC, wlarc should be empty
15146 wlarc='${wl}'
15147
15148 # See if GNU ld supports shared libraries.
15149 case $host_os in
15150 aix3* | aix4* | aix5*)
15151 # On AIX/PPC, the GNU linker is very broken
15152 if test "$host_cpu" != ia64; then
15153 ld_shlibs_GCJ=no
15154 cat <<EOF 1>&2
15155
15156*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15157*** to be unable to reliably create shared libraries on AIX.
15158*** Therefore, libtool is disabling shared libraries support. If you
15159*** really care for shared libraries, you may want to modify your PATH
15160*** so that a non-GNU linker is found, and then restart.
15161
15162EOF
15163 fi
15164 ;;
15165
15166 amigaos*)
15167 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)'
15168 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15169 hardcode_minus_L_GCJ=yes
15170
15171 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15172 # that the semantics of dynamic libraries on AmigaOS, at least up
15173 # to version 4, is to share data among multiple programs linked
15174 # with the same dynamic library. Since this doesn't match the
15175 # behavior of shared libraries on other platforms, we can't use
15176 # them.
15177 ld_shlibs_GCJ=no
15178 ;;
15179
15180 beos*)
15181 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15182 allow_undefined_flag_GCJ=unsupported
15183 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15184 # support --undefined. This deserves some investigation. FIXME
15185 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15186 else
15187 ld_shlibs_GCJ=no
15188 fi
15189 ;;
15190
15191 cygwin* | mingw* | pw32*)
15192 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15193 # as there is no search path for DLLs.
15194 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15195 allow_undefined_flag_GCJ=unsupported
15196 always_export_symbols_GCJ=no
15197 enable_shared_with_static_runtimes_GCJ=yes
15198 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15199
15200 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15201 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15202 # If the export-symbols file already is a .def file (1st line
15203 # is EXPORTS), use it as is; otherwise, prepend...
15204 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15205 cp $export_symbols $output_objdir/$soname.def;
15206 else
15207 echo EXPORTS > $output_objdir/$soname.def;
15208 cat $export_symbols >> $output_objdir/$soname.def;
15209 fi~
15210 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15211 else
15212 ld_shlibs=no
15213 fi
15214 ;;
15215
15216 netbsd* | knetbsd*-gnu)
15217 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15218 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15219 wlarc=
15220 else
15221 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15222 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15223 fi
15224 ;;
15225
15226 solaris* | sysv5*)
15227 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15228 ld_shlibs_GCJ=no
15229 cat <<EOF 1>&2
15230
15231*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15232*** create shared libraries on Solaris systems. Therefore, libtool
15233*** is disabling shared libraries support. We urge you to upgrade GNU
15234*** binutils to release 2.9.1 or newer. Another option is to modify
15235*** your PATH or compiler configuration so that the native linker is
15236*** used, and then restart.
15237
15238EOF
15239 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15240 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15241 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15242 else
15243 ld_shlibs_GCJ=no
15244 fi
15245 ;;
15246
15247 sunos4*)
15248 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15249 wlarc=
15250 hardcode_direct_GCJ=yes
15251 hardcode_shlibpath_var_GCJ=no
15252 ;;
15253
15254 linux*)
15255 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15256 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15257 archive_cmds_GCJ="$tmp_archive_cmds"
15258 supports_anon_versioning=no
15259 case `$LD -v 2>/dev/null` in
15260 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15261 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15262 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15263 *\ 2.11.*) ;; # other 2.11 versions
15264 *) supports_anon_versioning=yes ;;
15265 esac
15266 if test $supports_anon_versioning = yes; then
15267 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15268cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15269$echo "local: *; };" >> $output_objdir/$libname.ver~
15270 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15271 else
15272 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15273 fi
15274 else
15275 ld_shlibs_GCJ=no
15276 fi
15277 ;;
15278
15279 *)
15280 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15281 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15282 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15283 else
15284 ld_shlibs_GCJ=no
15285 fi
15286 ;;
15287 esac
15288
15289 if test "$ld_shlibs_GCJ" = yes; then
15290 runpath_var=LD_RUN_PATH
15291 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15292 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15293 # ancient GNU ld didn't support --whole-archive et. al.
15294 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15295 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15296 else
15297 whole_archive_flag_spec_GCJ=
15298 fi
15299 fi
15300 else
15301 # PORTME fill in a description of your system's linker (not GNU ld)
15302 case $host_os in
15303 aix3*)
15304 allow_undefined_flag_GCJ=unsupported
15305 always_export_symbols_GCJ=yes
15306 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'
15307 # Note: this linker hardcodes the directories in LIBPATH if there
15308 # are no directories specified by -L.
15309 hardcode_minus_L_GCJ=yes
15310 if test "$GCC" = yes && test -z "$link_static_flag"; then
15311 # Neither direct hardcoding nor static linking is supported with a
15312 # broken collect2.
15313 hardcode_direct_GCJ=unsupported
15314 fi
15315 ;;
15316
15317 aix4* | aix5*)
15318 if test "$host_cpu" = ia64; then
15319 # On IA64, the linker does run time linking by default, so we don't
15320 # have to do anything special.
15321 aix_use_runtimelinking=no
15322 exp_sym_flag='-Bexport'
15323 no_entry_flag=""
15324 else
15325 # If we're using GNU nm, then we don't want the "-C" option.
15326 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15327 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15328 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'
15329 else
15330 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'
15331 fi
15332 aix_use_runtimelinking=no
15333
15334 # Test if we are trying to use run time linking or normal
15335 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15336 # need to do runtime linking.
15337 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15338 for ld_flag in $LDFLAGS; do
15339 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15340 aix_use_runtimelinking=yes
15341 break
15342 fi
15343 done
15344 esac
15345
15346 exp_sym_flag='-bexport'
15347 no_entry_flag='-bnoentry'
15348 fi
15349
15350 # When large executables or shared objects are built, AIX ld can
15351 # have problems creating the table of contents. If linking a library
15352 # or program results in "error TOC overflow" add -mminimal-toc to
15353 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15354 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15355
15356 archive_cmds_GCJ=''
15357 hardcode_direct_GCJ=yes
15358 hardcode_libdir_separator_GCJ=':'
15359 link_all_deplibs_GCJ=yes
15360
15361 if test "$GCC" = yes; then
15362 case $host_os in aix4.012|aix4.012.*)
15363 # We only want to do this on AIX 4.2 and lower, the check
15364 # below for broken collect2 doesn't work under 4.3+
15365 collect2name=`${CC} -print-prog-name=collect2`
15366 if test -f "$collect2name" && \
15367 strings "$collect2name" | grep resolve_lib_name >/dev/null
15368 then
15369 # We have reworked collect2
15370 hardcode_direct_GCJ=yes
15371 else
15372 # We have old collect2
15373 hardcode_direct_GCJ=unsupported
15374 # It fails to find uninstalled libraries when the uninstalled
15375 # path is not listed in the libpath. Setting hardcode_minus_L
15376 # to unsupported forces relinking
15377 hardcode_minus_L_GCJ=yes
15378 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15379 hardcode_libdir_separator_GCJ=
15380 fi
15381 esac
15382 shared_flag='-shared'
15383 else
15384 # not using gcc
15385 if test "$host_cpu" = ia64; then
15386 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15387 # chokes on -Wl,-G. The following line is correct:
15388 shared_flag='-G'
15389 else
15390 if test "$aix_use_runtimelinking" = yes; then
15391 shared_flag='${wl}-G'
15392 else
15393 shared_flag='${wl}-bM:SRE'
15394 fi
15395 fi
15396 fi
15397
15398 # It seems that -bexpall does not export symbols beginning with
15399 # underscore (_), so it is better to generate a list of symbols to export.
15400 always_export_symbols_GCJ=yes
15401 if test "$aix_use_runtimelinking" = yes; then
15402 # Warning - without using the other runtime loading flags (-brtl),
15403 # -berok will link without error, but may produce a broken library.
15404 allow_undefined_flag_GCJ='-berok'
15405 # Determine the default libpath from the value encoded in an empty executable.
15406 cat >conftest.$ac_ext <<_ACEOF
15407/* confdefs.h. */
15408_ACEOF
15409cat confdefs.h >>conftest.$ac_ext
15410cat >>conftest.$ac_ext <<_ACEOF
15411/* end confdefs.h. */
15412
15413int
15414main ()
15415{
15416
15417 ;
15418 return 0;
15419}
15420_ACEOF
15421rm -f conftest.$ac_objext conftest$ac_exeext
15422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15423 (eval $ac_link) 2>conftest.er1
15424 ac_status=$?
15425 grep -v '^ *+' conftest.er1 >conftest.err
15426 rm -f conftest.er1
15427 cat conftest.err >&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000015430 { ac_try='test -z "$ac_c_werror_flag"
15431 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000015432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433 (eval $ac_try) 2>&5
15434 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; } &&
15437 { ac_try='test -s conftest$ac_exeext'
15438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439 (eval $ac_try) 2>&5
15440 ac_status=$?
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; }; then
15443
15444aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15445}'`
15446# Check for a 64-bit object if we didn't find anything.
15447if 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; }
15448}'`; fi
15449else
15450 echo "$as_me: failed program was:" >&5
15451sed 's/^/| /' conftest.$ac_ext >&5
15452
15453fi
15454rm -f conftest.err conftest.$ac_objext \
15455 conftest$ac_exeext conftest.$ac_ext
15456if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15457
15458 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15459 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"
15460 else
15461 if test "$host_cpu" = ia64; then
15462 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15463 allow_undefined_flag_GCJ="-z nodefs"
15464 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"
15465 else
15466 # Determine the default libpath from the value encoded in an empty executable.
15467 cat >conftest.$ac_ext <<_ACEOF
15468/* confdefs.h. */
15469_ACEOF
15470cat confdefs.h >>conftest.$ac_ext
15471cat >>conftest.$ac_ext <<_ACEOF
15472/* end confdefs.h. */
15473
15474int
15475main ()
15476{
15477
15478 ;
15479 return 0;
15480}
15481_ACEOF
15482rm -f conftest.$ac_objext conftest$ac_exeext
15483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15484 (eval $ac_link) 2>conftest.er1
15485 ac_status=$?
15486 grep -v '^ *+' conftest.er1 >conftest.err
15487 rm -f conftest.er1
15488 cat conftest.err >&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000015491 { ac_try='test -z "$ac_c_werror_flag"
15492 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000015493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15495 ac_status=$?
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; } &&
15498 { ac_try='test -s conftest$ac_exeext'
15499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500 (eval $ac_try) 2>&5
15501 ac_status=$?
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
15504
15505aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15506}'`
15507# Check for a 64-bit object if we didn't find anything.
15508if 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; }
15509}'`; fi
15510else
15511 echo "$as_me: failed program was:" >&5
15512sed 's/^/| /' conftest.$ac_ext >&5
15513
15514fi
15515rm -f conftest.err conftest.$ac_objext \
15516 conftest$ac_exeext conftest.$ac_ext
15517if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15518
15519 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15520 # Warning - without using the other run time loading flags,
15521 # -berok will link without error, but may produce a broken library.
15522 no_undefined_flag_GCJ=' ${wl}-bernotok'
15523 allow_undefined_flag_GCJ=' ${wl}-berok'
15524 # -bexpall does not export symbols beginning with underscore (_)
15525 always_export_symbols_GCJ=yes
15526 # Exported symbols can be pulled into shared objects from archives
15527 whole_archive_flag_spec_GCJ=' '
15528 archive_cmds_need_lc_GCJ=yes
15529 # This is similar to how AIX traditionally builds it's shared libraries.
15530 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'
15531 fi
15532 fi
15533 ;;
15534
15535 amigaos*)
15536 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)'
15537 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15538 hardcode_minus_L_GCJ=yes
15539 # see comment about different semantics on the GNU ld section
15540 ld_shlibs_GCJ=no
15541 ;;
15542
15543 bsdi4*)
15544 export_dynamic_flag_spec_GCJ=-rdynamic
15545 ;;
15546
15547 cygwin* | mingw* | pw32*)
15548 # When not using gcc, we currently assume that we are using
15549 # Microsoft Visual C++.
15550 # hardcode_libdir_flag_spec is actually meaningless, as there is
15551 # no search path for DLLs.
15552 hardcode_libdir_flag_spec_GCJ=' '
15553 allow_undefined_flag_GCJ=unsupported
15554 # Tell ltmain to make .lib files, not .a files.
15555 libext=lib
15556 # Tell ltmain to make .dll files, not .so files.
15557 shrext=".dll"
15558 # FIXME: Setting linknames here is a bad hack.
15559 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15560 # The linker will automatically build a .lib file if we build a DLL.
15561 old_archive_From_new_cmds_GCJ='true'
15562 # FIXME: Should let the user specify the lib program.
15563 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15564 fix_srcfile_path='`cygpath -w "$srcfile"`'
15565 enable_shared_with_static_runtimes_GCJ=yes
15566 ;;
15567
15568 darwin* | rhapsody*)
15569 if test "$GXX" = yes ; then
15570 archive_cmds_need_lc_GCJ=no
15571 case "$host_os" in
15572 rhapsody* | darwin1.[012])
15573 allow_undefined_flag_GCJ='-undefined suppress'
15574 ;;
15575 *) # Darwin 1.3 on
15576 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15577 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15578 else
15579 case ${MACOSX_DEPLOYMENT_TARGET} in
15580 10.[012])
15581 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15582 ;;
15583 10.*)
15584 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15585 ;;
15586 esac
15587 fi
15588 ;;
15589 esac
15590 lt_int_apple_cc_single_mod=no
15591 output_verbose_link_cmd='echo'
15592 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15593 lt_int_apple_cc_single_mod=yes
15594 fi
15595 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15596 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15597 else
15598 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'
15599 fi
15600 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15601 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15602 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15603 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}'
15604 else
15605 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}'
15606 fi
15607 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}'
15608 hardcode_direct_GCJ=no
15609 hardcode_automatic_GCJ=yes
15610 hardcode_shlibpath_var_GCJ=unsupported
15611 whole_archive_flag_spec_GCJ='-all_load $convenience'
15612 link_all_deplibs_GCJ=yes
15613 else
15614 ld_shlibs_GCJ=no
15615 fi
15616 ;;
15617
15618 dgux*)
15619 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15620 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15621 hardcode_shlibpath_var_GCJ=no
15622 ;;
15623
15624 freebsd1*)
15625 ld_shlibs_GCJ=no
15626 ;;
15627
15628 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15629 # support. Future versions do this automatically, but an explicit c++rt0.o
15630 # does not break anything, and helps significantly (at the cost of a little
15631 # extra space).
15632 freebsd2.2*)
15633 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15634 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15635 hardcode_direct_GCJ=yes
15636 hardcode_shlibpath_var_GCJ=no
15637 ;;
15638
15639 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15640 freebsd2*)
15641 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15642 hardcode_direct_GCJ=yes
15643 hardcode_minus_L_GCJ=yes
15644 hardcode_shlibpath_var_GCJ=no
15645 ;;
15646
15647 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15648 freebsd* | kfreebsd*-gnu)
15649 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15650 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15651 hardcode_direct_GCJ=yes
15652 hardcode_shlibpath_var_GCJ=no
15653 ;;
15654
15655 hpux9*)
15656 if test "$GCC" = yes; then
15657 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'
15658 else
15659 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'
15660 fi
15661 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15662 hardcode_libdir_separator_GCJ=:
15663 hardcode_direct_GCJ=yes
15664
15665 # hardcode_minus_L: Not really in the search PATH,
15666 # but as the default location of the library.
15667 hardcode_minus_L_GCJ=yes
15668 export_dynamic_flag_spec_GCJ='${wl}-E'
15669 ;;
15670
15671 hpux10* | hpux11*)
15672 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15673 case "$host_cpu" in
15674 hppa*64*|ia64*)
15675 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15676 ;;
15677 *)
15678 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15679 ;;
15680 esac
15681 else
15682 case "$host_cpu" in
15683 hppa*64*|ia64*)
15684 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15685 ;;
15686 *)
15687 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15688 ;;
15689 esac
15690 fi
15691 if test "$with_gnu_ld" = no; then
15692 case "$host_cpu" in
15693 hppa*64*)
15694 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15695 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15696 hardcode_libdir_separator_GCJ=:
15697 hardcode_direct_GCJ=no
15698 hardcode_shlibpath_var_GCJ=no
15699 ;;
15700 ia64*)
15701 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15702 hardcode_direct_GCJ=no
15703 hardcode_shlibpath_var_GCJ=no
15704
15705 # hardcode_minus_L: Not really in the search PATH,
15706 # but as the default location of the library.
15707 hardcode_minus_L_GCJ=yes
15708 ;;
15709 *)
15710 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15711 hardcode_libdir_separator_GCJ=:
15712 hardcode_direct_GCJ=yes
15713 export_dynamic_flag_spec_GCJ='${wl}-E'
15714
15715 # hardcode_minus_L: Not really in the search PATH,
15716 # but as the default location of the library.
15717 hardcode_minus_L_GCJ=yes
15718 ;;
15719 esac
15720 fi
15721 ;;
15722
15723 irix5* | irix6* | nonstopux*)
15724 if test "$GCC" = yes; then
15725 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'
15726 else
15727 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'
15728 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15729 fi
15730 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15731 hardcode_libdir_separator_GCJ=:
15732 link_all_deplibs_GCJ=yes
15733 ;;
15734
15735 netbsd* | knetbsd*-gnu)
15736 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15737 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15738 else
15739 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15740 fi
15741 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15742 hardcode_direct_GCJ=yes
15743 hardcode_shlibpath_var_GCJ=no
15744 ;;
15745
15746 newsos6)
15747 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15748 hardcode_direct_GCJ=yes
15749 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15750 hardcode_libdir_separator_GCJ=:
15751 hardcode_shlibpath_var_GCJ=no
15752 ;;
15753
15754 openbsd*)
15755 hardcode_direct_GCJ=yes
15756 hardcode_shlibpath_var_GCJ=no
15757 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15758 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15759 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15760 export_dynamic_flag_spec_GCJ='${wl}-E'
15761 else
15762 case $host_os in
15763 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15764 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15765 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15766 ;;
15767 *)
15768 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15769 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15770 ;;
15771 esac
15772 fi
15773 ;;
15774
15775 os2*)
15776 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15777 hardcode_minus_L_GCJ=yes
15778 allow_undefined_flag_GCJ=unsupported
15779 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'
15780 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15781 ;;
15782
15783 osf3*)
15784 if test "$GCC" = yes; then
15785 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15786 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'
15787 else
15788 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15789 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'
15790 fi
15791 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15792 hardcode_libdir_separator_GCJ=:
15793 ;;
15794
15795 osf4* | osf5*) # as osf3* with the addition of -msym flag
15796 if test "$GCC" = yes; then
15797 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15798 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'
15799 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15800 else
15801 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15802 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'
15803 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~
15804 $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'
15805
15806 # Both c and cxx compiler support -rpath directly
15807 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15808 fi
15809 hardcode_libdir_separator_GCJ=:
15810 ;;
15811
15812 sco3.2v5*)
15813 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15814 hardcode_shlibpath_var_GCJ=no
15815 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15816 runpath_var=LD_RUN_PATH
15817 hardcode_runpath_var=yes
15818 ;;
15819
15820 solaris*)
15821 no_undefined_flag_GCJ=' -z text'
15822 if test "$GCC" = yes; then
15823 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15824 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15825 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15826 else
15827 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15828 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15829 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15830 fi
15831 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15832 hardcode_shlibpath_var_GCJ=no
15833 case $host_os in
15834 solaris2.[0-5] | solaris2.[0-5].*) ;;
15835 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15836 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15837 esac
15838 link_all_deplibs_GCJ=yes
15839 ;;
15840
15841 sunos4*)
15842 if test "x$host_vendor" = xsequent; then
15843 # Use $CC to link under sequent, because it throws in some extra .o
15844 # files that make .init and .fini sections work.
15845 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15846 else
15847 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15848 fi
15849 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15850 hardcode_direct_GCJ=yes
15851 hardcode_minus_L_GCJ=yes
15852 hardcode_shlibpath_var_GCJ=no
15853 ;;
15854
15855 sysv4)
15856 case $host_vendor in
15857 sni)
15858 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15859 hardcode_direct_GCJ=yes # is this really true???
15860 ;;
15861 siemens)
15862 ## LD is ld it makes a PLAMLIB
15863 ## CC just makes a GrossModule.
15864 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15865 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15866 hardcode_direct_GCJ=no
15867 ;;
15868 motorola)
15869 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15870 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15871 ;;
15872 esac
15873 runpath_var='LD_RUN_PATH'
15874 hardcode_shlibpath_var_GCJ=no
15875 ;;
15876
15877 sysv4.3*)
15878 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15879 hardcode_shlibpath_var_GCJ=no
15880 export_dynamic_flag_spec_GCJ='-Bexport'
15881 ;;
15882
15883 sysv4*MP*)
15884 if test -d /usr/nec; then
15885 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15886 hardcode_shlibpath_var_GCJ=no
15887 runpath_var=LD_RUN_PATH
15888 hardcode_runpath_var=yes
15889 ld_shlibs_GCJ=yes
15890 fi
15891 ;;
15892
15893 sysv4.2uw2*)
15894 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15895 hardcode_direct_GCJ=yes
15896 hardcode_minus_L_GCJ=no
15897 hardcode_shlibpath_var_GCJ=no
15898 hardcode_runpath_var=yes
15899 runpath_var=LD_RUN_PATH
15900 ;;
15901
15902 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15903 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15904 if test "$GCC" = yes; then
15905 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15906 else
15907 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15908 fi
15909 runpath_var='LD_RUN_PATH'
15910 hardcode_shlibpath_var_GCJ=no
15911 ;;
15912
15913 sysv5*)
15914 no_undefined_flag_GCJ=' -z text'
15915 # $CC -shared without GNU ld will not create a library from C++
15916 # object files and a static libstdc++, better avoid it by now
15917 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15918 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15919 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15920 hardcode_libdir_flag_spec_GCJ=
15921 hardcode_shlibpath_var_GCJ=no
15922 runpath_var='LD_RUN_PATH'
15923 ;;
15924
15925 uts4*)
15926 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15927 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15928 hardcode_shlibpath_var_GCJ=no
15929 ;;
15930
15931 *)
15932 ld_shlibs_GCJ=no
15933 ;;
15934 esac
15935 fi
15936
15937echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15938echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15939test "$ld_shlibs_GCJ" = no && can_build_shared=no
15940
15941variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15942if test "$GCC" = yes; then
15943 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15944fi
15945
15946#
15947# Do we need to explicitly link libc?
15948#
15949case "x$archive_cmds_need_lc_GCJ" in
15950x|xyes)
15951 # Assume -lc should be added
15952 archive_cmds_need_lc_GCJ=yes
15953
15954 if test "$enable_shared" = yes && test "$GCC" = yes; then
15955 case $archive_cmds_GCJ in
15956 *'~'*)
15957 # FIXME: we may have to deal with multi-command sequences.
15958 ;;
15959 '$CC '*)
15960 # Test whether the compiler implicitly links with -lc since on some
15961 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15962 # to ld, don't add -lc before -lgcc.
15963 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15964echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15965 $rm conftest*
15966 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15967
15968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15969 (eval $ac_compile) 2>&5
15970 ac_status=$?
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); } 2>conftest.err; then
15973 soname=conftest
15974 lib=conftest
15975 libobjs=conftest.$ac_objext
15976 deplibs=
15977 wl=$lt_prog_compiler_wl_GCJ
15978 compiler_flags=-v
15979 linker_flags=-v
15980 verstring=
15981 output_objdir=.
15982 libname=conftest
15983 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15984 allow_undefined_flag_GCJ=
15985 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15986 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15987 ac_status=$?
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }
15990 then
15991 archive_cmds_need_lc_GCJ=no
15992 else
15993 archive_cmds_need_lc_GCJ=yes
15994 fi
15995 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15996 else
15997 cat conftest.err 1>&5
15998 fi
15999 $rm conftest*
16000 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16001echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16002 ;;
16003 esac
16004 fi
16005 ;;
16006esac
16007
16008echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16009echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16010library_names_spec=
16011libname_spec='lib$name'
16012soname_spec=
16013shrext=".so"
16014postinstall_cmds=
16015postuninstall_cmds=
16016finish_cmds=
16017finish_eval=
16018shlibpath_var=
16019shlibpath_overrides_runpath=unknown
16020version_type=none
16021dynamic_linker="$host_os ld.so"
16022sys_lib_dlsearch_path_spec="/lib /usr/lib"
16023if test "$GCC" = yes; then
16024 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16025 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16026 # if the path contains ";" then we assume it to be the separator
16027 # otherwise default to the standard path separator (i.e. ":") - it is
16028 # assumed that no part of a normal pathname contains ";" but that should
16029 # okay in the real world where ";" in dirpaths is itself problematic.
16030 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16031 else
16032 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16033 fi
16034else
16035 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16036fi
16037need_lib_prefix=unknown
16038hardcode_into_libs=no
16039
16040# when you set need_version to no, make sure it does not cause -set_version
16041# flags to be left without arguments
16042need_version=unknown
16043
16044case $host_os in
16045aix3*)
16046 version_type=linux
16047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16048 shlibpath_var=LIBPATH
16049
16050 # AIX 3 has no versioning support, so we append a major version to the name.
16051 soname_spec='${libname}${release}${shared_ext}$major'
16052 ;;
16053
16054aix4* | aix5*)
16055 version_type=linux
16056 need_lib_prefix=no
16057 need_version=no
16058 hardcode_into_libs=yes
16059 if test "$host_cpu" = ia64; then
16060 # AIX 5 supports IA64
16061 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16062 shlibpath_var=LD_LIBRARY_PATH
16063 else
16064 # With GCC up to 2.95.x, collect2 would create an import file
16065 # for dependence libraries. The import file would start with
16066 # the line `#! .'. This would cause the generated library to
16067 # depend on `.', always an invalid library. This was fixed in
16068 # development snapshots of GCC prior to 3.0.
16069 case $host_os in
16070 aix4 | aix4.[01] | aix4.[01].*)
16071 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16072 echo ' yes '
16073 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16074 :
16075 else
16076 can_build_shared=no
16077 fi
16078 ;;
16079 esac
16080 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16081 # soname into executable. Probably we can add versioning support to
16082 # collect2, so additional links can be useful in future.
16083 if test "$aix_use_runtimelinking" = yes; then
16084 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16085 # instead of lib<name>.a to let people know that these are not
16086 # typical AIX shared libraries.
16087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16088 else
16089 # We preserve .a as extension for shared libraries through AIX4.2
16090 # and later when we are not doing run time linking.
16091 library_names_spec='${libname}${release}.a $libname.a'
16092 soname_spec='${libname}${release}${shared_ext}$major'
16093 fi
16094 shlibpath_var=LIBPATH
16095 fi
16096 ;;
16097
16098amigaos*)
16099 library_names_spec='$libname.ixlibrary $libname.a'
16100 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16101 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'
16102 ;;
16103
16104beos*)
16105 library_names_spec='${libname}${shared_ext}'
16106 dynamic_linker="$host_os ld.so"
16107 shlibpath_var=LIBRARY_PATH
16108 ;;
16109
16110bsdi4*)
16111 version_type=linux
16112 need_version=no
16113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16114 soname_spec='${libname}${release}${shared_ext}$major'
16115 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16116 shlibpath_var=LD_LIBRARY_PATH
16117 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16118 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16119 # the default ld.so.conf also contains /usr/contrib/lib and
16120 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16121 # libtool to hard-code these into programs
16122 ;;
16123
16124cygwin* | mingw* | pw32*)
16125 version_type=windows
16126 shrext=".dll"
16127 need_version=no
16128 need_lib_prefix=no
16129
16130 case $GCC,$host_os in
16131 yes,cygwin* | yes,mingw* | yes,pw32*)
16132 library_names_spec='$libname.dll.a'
16133 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16134 postinstall_cmds='base_file=`basename \${file}`~
16135 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16136 dldir=$destdir/`dirname \$dlpath`~
16137 test -d \$dldir || mkdir -p \$dldir~
16138 $install_prog $dir/$dlname \$dldir/$dlname'
16139 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16140 dlpath=$dir/\$dldll~
16141 $rm \$dlpath'
16142 shlibpath_overrides_runpath=yes
16143
16144 case $host_os in
16145 cygwin*)
16146 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16147 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16148 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16149 ;;
16150 mingw*)
16151 # MinGW DLLs use traditional 'lib' prefix
16152 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16153 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16154 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16155 # It is most probably a Windows format PATH printed by
16156 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16157 # path with ; separators, and with drive letters. We can handle the
16158 # drive letters (cygwin fileutils understands them), so leave them,
16159 # especially as we might pass files found there to a mingw objdump,
16160 # which wouldn't understand a cygwinified path. Ahh.
16161 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16162 else
16163 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16164 fi
16165 ;;
16166 pw32*)
16167 # pw32 DLLs use 'pw' prefix rather than 'lib'
16168 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16169 ;;
16170 esac
16171 ;;
16172
16173 *)
16174 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16175 ;;
16176 esac
16177 dynamic_linker='Win32 ld.exe'
16178 # FIXME: first we should search . and the directory the executable is in
16179 shlibpath_var=PATH
16180 ;;
16181
16182darwin* | rhapsody*)
16183 dynamic_linker="$host_os dyld"
16184 version_type=darwin
16185 need_lib_prefix=no
16186 need_version=no
16187 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16188 soname_spec='${libname}${release}${major}$shared_ext'
16189 shlibpath_overrides_runpath=yes
16190 shlibpath_var=DYLD_LIBRARY_PATH
16191 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16192 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16193 if test "$GCC" = yes; then
16194 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"`
16195 else
16196 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16197 fi
16198 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16199 ;;
16200
16201dgux*)
16202 version_type=linux
16203 need_lib_prefix=no
16204 need_version=no
16205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16206 soname_spec='${libname}${release}${shared_ext}$major'
16207 shlibpath_var=LD_LIBRARY_PATH
16208 ;;
16209
16210freebsd1*)
16211 dynamic_linker=no
16212 ;;
16213
16214kfreebsd*-gnu)
16215 version_type=linux
16216 need_lib_prefix=no
16217 need_version=no
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16219 soname_spec='${libname}${release}${shared_ext}$major'
16220 shlibpath_var=LD_LIBRARY_PATH
16221 shlibpath_overrides_runpath=no
16222 hardcode_into_libs=yes
16223 dynamic_linker='GNU ld.so'
16224 ;;
16225
16226freebsd*)
16227 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16228 version_type=freebsd-$objformat
16229 case $version_type in
16230 freebsd-elf*)
16231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16232 need_version=no
16233 need_lib_prefix=no
16234 ;;
16235 freebsd-*)
16236 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16237 need_version=yes
16238 ;;
16239 esac
16240 shlibpath_var=LD_LIBRARY_PATH
16241 case $host_os in
16242 freebsd2*)
16243 shlibpath_overrides_runpath=yes
16244 ;;
16245 freebsd3.01* | freebsdelf3.01*)
16246 shlibpath_overrides_runpath=yes
16247 hardcode_into_libs=yes
16248 ;;
16249 *) # from 3.2 on
16250 shlibpath_overrides_runpath=no
16251 hardcode_into_libs=yes
16252 ;;
16253 esac
16254 ;;
16255
16256gnu*)
16257 version_type=linux
16258 need_lib_prefix=no
16259 need_version=no
16260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16261 soname_spec='${libname}${release}${shared_ext}$major'
16262 shlibpath_var=LD_LIBRARY_PATH
16263 hardcode_into_libs=yes
16264 ;;
16265
16266hpux9* | hpux10* | hpux11*)
16267 # Give a soname corresponding to the major version so that dld.sl refuses to
16268 # link against other versions.
16269 version_type=sunos
16270 need_lib_prefix=no
16271 need_version=no
16272 case "$host_cpu" in
16273 ia64*)
16274 shrext='.so'
16275 hardcode_into_libs=yes
16276 dynamic_linker="$host_os dld.so"
16277 shlibpath_var=LD_LIBRARY_PATH
16278 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16280 soname_spec='${libname}${release}${shared_ext}$major'
16281 if test "X$HPUX_IA64_MODE" = X32; then
16282 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16283 else
16284 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16285 fi
16286 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16287 ;;
16288 hppa*64*)
16289 shrext='.sl'
16290 hardcode_into_libs=yes
16291 dynamic_linker="$host_os dld.sl"
16292 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16295 soname_spec='${libname}${release}${shared_ext}$major'
16296 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16298 ;;
16299 *)
16300 shrext='.sl'
16301 dynamic_linker="$host_os dld.sl"
16302 shlibpath_var=SHLIB_PATH
16303 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16305 soname_spec='${libname}${release}${shared_ext}$major'
16306 ;;
16307 esac
16308 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16309 postinstall_cmds='chmod 555 $lib'
16310 ;;
16311
16312irix5* | irix6* | nonstopux*)
16313 case $host_os in
16314 nonstopux*) version_type=nonstopux ;;
16315 *)
16316 if test "$lt_cv_prog_gnu_ld" = yes; then
16317 version_type=linux
16318 else
16319 version_type=irix
16320 fi ;;
16321 esac
16322 need_lib_prefix=no
16323 need_version=no
16324 soname_spec='${libname}${release}${shared_ext}$major'
16325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16326 case $host_os in
16327 irix5* | nonstopux*)
16328 libsuff= shlibsuff=
16329 ;;
16330 *)
16331 case $LD in # libtool.m4 will add one of these switches to LD
16332 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16333 libsuff= shlibsuff= libmagic=32-bit;;
16334 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16335 libsuff=32 shlibsuff=N32 libmagic=N32;;
16336 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16337 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16338 *) libsuff= shlibsuff= libmagic=never-match;;
16339 esac
16340 ;;
16341 esac
16342 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16343 shlibpath_overrides_runpath=no
16344 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16345 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16346 hardcode_into_libs=yes
16347 ;;
16348
16349# No shared lib support for Linux oldld, aout, or coff.
16350linux*oldld* | linux*aout* | linux*coff*)
16351 dynamic_linker=no
16352 ;;
16353
16354# This must be Linux ELF.
16355linux*)
16356 version_type=linux
16357 need_lib_prefix=no
16358 need_version=no
16359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16360 soname_spec='${libname}${release}${shared_ext}$major'
16361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16362 shlibpath_var=LD_LIBRARY_PATH
16363 shlibpath_overrides_runpath=no
16364 # This implies no fast_install, which is unacceptable.
16365 # Some rework will be needed to allow for fast_install
16366 # before this can be enabled.
16367 hardcode_into_libs=yes
16368
16369 # Append ld.so.conf contents to the search path
16370 if test -f /etc/ld.so.conf; then
16371 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
16372 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
16373 fi
16374
16375 # We used to test for /lib/ld.so.1 and disable shared libraries on
16376 # powerpc, because MkLinux only supported shared libraries with the
16377 # GNU dynamic linker. Since this was broken with cross compilers,
16378 # most powerpc-linux boxes support dynamic linking these days and
16379 # people can always --disable-shared, the test was removed, and we
16380 # assume the GNU/Linux dynamic linker is in use.
16381 dynamic_linker='GNU/Linux ld.so'
16382 ;;
16383
16384knetbsd*-gnu)
16385 version_type=linux
16386 need_lib_prefix=no
16387 need_version=no
16388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16389 soname_spec='${libname}${release}${shared_ext}$major'
16390 shlibpath_var=LD_LIBRARY_PATH
16391 shlibpath_overrides_runpath=no
16392 hardcode_into_libs=yes
16393 dynamic_linker='GNU ld.so'
16394 ;;
16395
16396netbsd*)
16397 version_type=sunos
16398 need_lib_prefix=no
16399 need_version=no
16400 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16403 dynamic_linker='NetBSD (a.out) ld.so'
16404 else
16405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16406 soname_spec='${libname}${release}${shared_ext}$major'
16407 dynamic_linker='NetBSD ld.elf_so'
16408 fi
16409 shlibpath_var=LD_LIBRARY_PATH
16410 shlibpath_overrides_runpath=yes
16411 hardcode_into_libs=yes
16412 ;;
16413
16414newsos6)
16415 version_type=linux
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417 shlibpath_var=LD_LIBRARY_PATH
16418 shlibpath_overrides_runpath=yes
16419 ;;
16420
16421nto-qnx*)
16422 version_type=linux
16423 need_lib_prefix=no
16424 need_version=no
16425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16426 soname_spec='${libname}${release}${shared_ext}$major'
16427 shlibpath_var=LD_LIBRARY_PATH
16428 shlibpath_overrides_runpath=yes
16429 ;;
16430
16431openbsd*)
16432 version_type=sunos
16433 need_lib_prefix=no
16434 need_version=yes
16435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16437 shlibpath_var=LD_LIBRARY_PATH
16438 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16439 case $host_os in
16440 openbsd2.[89] | openbsd2.[89].*)
16441 shlibpath_overrides_runpath=no
16442 ;;
16443 *)
16444 shlibpath_overrides_runpath=yes
16445 ;;
16446 esac
16447 else
16448 shlibpath_overrides_runpath=yes
16449 fi
16450 ;;
16451
16452os2*)
16453 libname_spec='$name'
16454 shrext=".dll"
16455 need_lib_prefix=no
16456 library_names_spec='$libname${shared_ext} $libname.a'
16457 dynamic_linker='OS/2 ld.exe'
16458 shlibpath_var=LIBPATH
16459 ;;
16460
16461osf3* | osf4* | osf5*)
16462 version_type=osf
16463 need_lib_prefix=no
16464 need_version=no
16465 soname_spec='${libname}${release}${shared_ext}$major'
16466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16467 shlibpath_var=LD_LIBRARY_PATH
16468 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16469 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16470 ;;
16471
16472sco3.2v5*)
16473 version_type=osf
16474 soname_spec='${libname}${release}${shared_ext}$major'
16475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476 shlibpath_var=LD_LIBRARY_PATH
16477 ;;
16478
16479solaris*)
16480 version_type=linux
16481 need_lib_prefix=no
16482 need_version=no
16483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16484 soname_spec='${libname}${release}${shared_ext}$major'
16485 shlibpath_var=LD_LIBRARY_PATH
16486 shlibpath_overrides_runpath=yes
16487 hardcode_into_libs=yes
16488 # ldd complains unless libraries are executable
16489 postinstall_cmds='chmod +x $lib'
16490 ;;
16491
16492sunos4*)
16493 version_type=sunos
16494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16495 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16496 shlibpath_var=LD_LIBRARY_PATH
16497 shlibpath_overrides_runpath=yes
16498 if test "$with_gnu_ld" = yes; then
16499 need_lib_prefix=no
16500 fi
16501 need_version=yes
16502 ;;
16503
16504sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16505 version_type=linux
16506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16507 soname_spec='${libname}${release}${shared_ext}$major'
16508 shlibpath_var=LD_LIBRARY_PATH
16509 case $host_vendor in
16510 sni)
16511 shlibpath_overrides_runpath=no
16512 need_lib_prefix=no
16513 export_dynamic_flag_spec='${wl}-Blargedynsym'
16514 runpath_var=LD_RUN_PATH
16515 ;;
16516 siemens)
16517 need_lib_prefix=no
16518 ;;
16519 motorola)
16520 need_lib_prefix=no
16521 need_version=no
16522 shlibpath_overrides_runpath=no
16523 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16524 ;;
16525 esac
16526 ;;
16527
16528sysv4*MP*)
16529 if test -d /usr/nec ;then
16530 version_type=linux
16531 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16532 soname_spec='$libname${shared_ext}.$major'
16533 shlibpath_var=LD_LIBRARY_PATH
16534 fi
16535 ;;
16536
16537uts4*)
16538 version_type=linux
16539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16540 soname_spec='${libname}${release}${shared_ext}$major'
16541 shlibpath_var=LD_LIBRARY_PATH
16542 ;;
16543
16544*)
16545 dynamic_linker=no
16546 ;;
16547esac
16548echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16549echo "${ECHO_T}$dynamic_linker" >&6
16550test "$dynamic_linker" = no && can_build_shared=no
16551
16552echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16553echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16554hardcode_action_GCJ=
16555if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16556 test -n "$runpath_var GCJ" || \
16557 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16558
16559 # We can hardcode non-existant directories.
16560 if test "$hardcode_direct_GCJ" != no &&
16561 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16562 # have to relink, otherwise we might link with an installed library
16563 # when we should be linking with a yet-to-be-installed one
16564 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16565 test "$hardcode_minus_L_GCJ" != no; then
16566 # Linking always hardcodes the temporary library directory.
16567 hardcode_action_GCJ=relink
16568 else
16569 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16570 hardcode_action_GCJ=immediate
16571 fi
16572else
16573 # We cannot hardcode anything, or else we can only hardcode existing
16574 # directories.
16575 hardcode_action_GCJ=unsupported
16576fi
16577echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16578echo "${ECHO_T}$hardcode_action_GCJ" >&6
16579
16580if test "$hardcode_action_GCJ" = relink; then
16581 # Fast installation is not supported
16582 enable_fast_install=no
16583elif test "$shlibpath_overrides_runpath" = yes ||
16584 test "$enable_shared" = no; then
16585 # Fast installation is not necessary
16586 enable_fast_install=needless
16587fi
16588
16589striplib=
16590old_striplib=
16591echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16592echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16593if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16594 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16595 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16596 echo "$as_me:$LINENO: result: yes" >&5
16597echo "${ECHO_T}yes" >&6
16598else
16599# FIXME - insert some real tests, host_os isn't really good enough
16600 case $host_os in
16601 darwin*)
16602 if test -n "$STRIP" ; then
16603 striplib="$STRIP -x"
16604 echo "$as_me:$LINENO: result: yes" >&5
16605echo "${ECHO_T}yes" >&6
16606 else
16607 echo "$as_me:$LINENO: result: no" >&5
16608echo "${ECHO_T}no" >&6
16609fi
16610 ;;
16611 *)
16612 echo "$as_me:$LINENO: result: no" >&5
16613echo "${ECHO_T}no" >&6
16614 ;;
16615 esac
16616fi
16617
16618if test "x$enable_dlopen" != xyes; then
16619 enable_dlopen=unknown
16620 enable_dlopen_self=unknown
16621 enable_dlopen_self_static=unknown
16622else
16623 lt_cv_dlopen=no
16624 lt_cv_dlopen_libs=
16625
16626 case $host_os in
16627 beos*)
16628 lt_cv_dlopen="load_add_on"
16629 lt_cv_dlopen_libs=
16630 lt_cv_dlopen_self=yes
16631 ;;
16632
16633 mingw* | pw32*)
16634 lt_cv_dlopen="LoadLibrary"
16635 lt_cv_dlopen_libs=
16636 ;;
16637
16638 cygwin*)
16639 lt_cv_dlopen="dlopen"
16640 lt_cv_dlopen_libs=
16641 ;;
16642
16643 darwin*)
16644 # if libdl is installed we need to link against it
16645 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16646echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16647if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16649else
16650 ac_check_lib_save_LIBS=$LIBS
16651LIBS="-ldl $LIBS"
16652cat >conftest.$ac_ext <<_ACEOF
16653/* confdefs.h. */
16654_ACEOF
16655cat confdefs.h >>conftest.$ac_ext
16656cat >>conftest.$ac_ext <<_ACEOF
16657/* end confdefs.h. */
16658
16659/* Override any gcc2 internal prototype to avoid an error. */
16660#ifdef __cplusplus
16661extern "C"
16662#endif
16663/* We use char because int might match the return type of a gcc2
16664 builtin and then its argument prototype would still apply. */
16665char dlopen ();
16666int
16667main ()
16668{
16669dlopen ();
16670 ;
16671 return 0;
16672}
16673_ACEOF
16674rm -f conftest.$ac_objext conftest$ac_exeext
16675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16676 (eval $ac_link) 2>conftest.er1
16677 ac_status=$?
16678 grep -v '^ *+' conftest.er1 >conftest.err
16679 rm -f conftest.er1
16680 cat conftest.err >&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016683 { ac_try='test -z "$ac_c_werror_flag"
16684 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686 (eval $ac_try) 2>&5
16687 ac_status=$?
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; } &&
16690 { ac_try='test -s conftest$ac_exeext'
16691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692 (eval $ac_try) 2>&5
16693 ac_status=$?
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); }; }; then
16696 ac_cv_lib_dl_dlopen=yes
16697else
16698 echo "$as_me: failed program was:" >&5
16699sed 's/^/| /' conftest.$ac_ext >&5
16700
16701ac_cv_lib_dl_dlopen=no
16702fi
16703rm -f conftest.err conftest.$ac_objext \
16704 conftest$ac_exeext conftest.$ac_ext
16705LIBS=$ac_check_lib_save_LIBS
16706fi
16707echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16708echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16709if test $ac_cv_lib_dl_dlopen = yes; then
16710 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16711else
16712
16713 lt_cv_dlopen="dyld"
16714 lt_cv_dlopen_libs=
16715 lt_cv_dlopen_self=yes
16716
16717fi
16718
16719 ;;
16720
16721 *)
16722 echo "$as_me:$LINENO: checking for shl_load" >&5
16723echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16724if test "${ac_cv_func_shl_load+set}" = set; then
16725 echo $ECHO_N "(cached) $ECHO_C" >&6
16726else
16727 cat >conftest.$ac_ext <<_ACEOF
16728/* confdefs.h. */
16729_ACEOF
16730cat confdefs.h >>conftest.$ac_ext
16731cat >>conftest.$ac_ext <<_ACEOF
16732/* end confdefs.h. */
16733/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16735#define shl_load innocuous_shl_load
16736
16737/* System header to define __stub macros and hopefully few prototypes,
16738 which can conflict with char shl_load (); below.
16739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16740 <limits.h> exists even on freestanding compilers. */
16741
16742#ifdef __STDC__
16743# include <limits.h>
16744#else
16745# include <assert.h>
16746#endif
16747
16748#undef shl_load
16749
16750/* Override any gcc2 internal prototype to avoid an error. */
16751#ifdef __cplusplus
16752extern "C"
16753{
16754#endif
16755/* We use char because int might match the return type of a gcc2
16756 builtin and then its argument prototype would still apply. */
16757char shl_load ();
16758/* The GNU C library defines this for functions which it implements
16759 to always fail with ENOSYS. Some functions are actually named
16760 something starting with __ and the normal name is an alias. */
16761#if defined (__stub_shl_load) || defined (__stub___shl_load)
16762choke me
16763#else
16764char (*f) () = shl_load;
16765#endif
16766#ifdef __cplusplus
16767}
16768#endif
16769
16770int
16771main ()
16772{
16773return f != shl_load;
16774 ;
16775 return 0;
16776}
16777_ACEOF
16778rm -f conftest.$ac_objext conftest$ac_exeext
16779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16780 (eval $ac_link) 2>conftest.er1
16781 ac_status=$?
16782 grep -v '^ *+' conftest.er1 >conftest.err
16783 rm -f conftest.er1
16784 cat conftest.err >&5
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016787 { ac_try='test -z "$ac_c_werror_flag"
16788 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790 (eval $ac_try) 2>&5
16791 ac_status=$?
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; } &&
16794 { ac_try='test -s conftest$ac_exeext'
16795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796 (eval $ac_try) 2>&5
16797 ac_status=$?
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; }; then
16800 ac_cv_func_shl_load=yes
16801else
16802 echo "$as_me: failed program was:" >&5
16803sed 's/^/| /' conftest.$ac_ext >&5
16804
16805ac_cv_func_shl_load=no
16806fi
16807rm -f conftest.err conftest.$ac_objext \
16808 conftest$ac_exeext conftest.$ac_ext
16809fi
16810echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16811echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16812if test $ac_cv_func_shl_load = yes; then
16813 lt_cv_dlopen="shl_load"
16814else
16815 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16816echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16817if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16818 echo $ECHO_N "(cached) $ECHO_C" >&6
16819else
16820 ac_check_lib_save_LIBS=$LIBS
16821LIBS="-ldld $LIBS"
16822cat >conftest.$ac_ext <<_ACEOF
16823/* confdefs.h. */
16824_ACEOF
16825cat confdefs.h >>conftest.$ac_ext
16826cat >>conftest.$ac_ext <<_ACEOF
16827/* end confdefs.h. */
16828
16829/* Override any gcc2 internal prototype to avoid an error. */
16830#ifdef __cplusplus
16831extern "C"
16832#endif
16833/* We use char because int might match the return type of a gcc2
16834 builtin and then its argument prototype would still apply. */
16835char shl_load ();
16836int
16837main ()
16838{
16839shl_load ();
16840 ;
16841 return 0;
16842}
16843_ACEOF
16844rm -f conftest.$ac_objext conftest$ac_exeext
16845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16846 (eval $ac_link) 2>conftest.er1
16847 ac_status=$?
16848 grep -v '^ *+' conftest.er1 >conftest.err
16849 rm -f conftest.er1
16850 cat conftest.err >&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016853 { ac_try='test -z "$ac_c_werror_flag"
16854 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856 (eval $ac_try) 2>&5
16857 ac_status=$?
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; } &&
16860 { ac_try='test -s conftest$ac_exeext'
16861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862 (eval $ac_try) 2>&5
16863 ac_status=$?
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; }; then
16866 ac_cv_lib_dld_shl_load=yes
16867else
16868 echo "$as_me: failed program was:" >&5
16869sed 's/^/| /' conftest.$ac_ext >&5
16870
16871ac_cv_lib_dld_shl_load=no
16872fi
16873rm -f conftest.err conftest.$ac_objext \
16874 conftest$ac_exeext conftest.$ac_ext
16875LIBS=$ac_check_lib_save_LIBS
16876fi
16877echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16878echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16879if test $ac_cv_lib_dld_shl_load = yes; then
16880 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16881else
16882 echo "$as_me:$LINENO: checking for dlopen" >&5
16883echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16884if test "${ac_cv_func_dlopen+set}" = set; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16886else
16887 cat >conftest.$ac_ext <<_ACEOF
16888/* confdefs.h. */
16889_ACEOF
16890cat confdefs.h >>conftest.$ac_ext
16891cat >>conftest.$ac_ext <<_ACEOF
16892/* end confdefs.h. */
16893/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16895#define dlopen innocuous_dlopen
16896
16897/* System header to define __stub macros and hopefully few prototypes,
16898 which can conflict with char dlopen (); below.
16899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16900 <limits.h> exists even on freestanding compilers. */
16901
16902#ifdef __STDC__
16903# include <limits.h>
16904#else
16905# include <assert.h>
16906#endif
16907
16908#undef dlopen
16909
16910/* Override any gcc2 internal prototype to avoid an error. */
16911#ifdef __cplusplus
16912extern "C"
16913{
16914#endif
16915/* We use char because int might match the return type of a gcc2
16916 builtin and then its argument prototype would still apply. */
16917char dlopen ();
16918/* The GNU C library defines this for functions which it implements
16919 to always fail with ENOSYS. Some functions are actually named
16920 something starting with __ and the normal name is an alias. */
16921#if defined (__stub_dlopen) || defined (__stub___dlopen)
16922choke me
16923#else
16924char (*f) () = dlopen;
16925#endif
16926#ifdef __cplusplus
16927}
16928#endif
16929
16930int
16931main ()
16932{
16933return f != dlopen;
16934 ;
16935 return 0;
16936}
16937_ACEOF
16938rm -f conftest.$ac_objext conftest$ac_exeext
16939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16940 (eval $ac_link) 2>conftest.er1
16941 ac_status=$?
16942 grep -v '^ *+' conftest.er1 >conftest.err
16943 rm -f conftest.er1
16944 cat conftest.err >&5
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016947 { ac_try='test -z "$ac_c_werror_flag"
16948 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; } &&
16954 { ac_try='test -s conftest$ac_exeext'
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16957 ac_status=$?
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; }; then
16960 ac_cv_func_dlopen=yes
16961else
16962 echo "$as_me: failed program was:" >&5
16963sed 's/^/| /' conftest.$ac_ext >&5
16964
16965ac_cv_func_dlopen=no
16966fi
16967rm -f conftest.err conftest.$ac_objext \
16968 conftest$ac_exeext conftest.$ac_ext
16969fi
16970echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16971echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16972if test $ac_cv_func_dlopen = yes; then
16973 lt_cv_dlopen="dlopen"
16974else
16975 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16976echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16977if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16978 echo $ECHO_N "(cached) $ECHO_C" >&6
16979else
16980 ac_check_lib_save_LIBS=$LIBS
16981LIBS="-ldl $LIBS"
16982cat >conftest.$ac_ext <<_ACEOF
16983/* confdefs.h. */
16984_ACEOF
16985cat confdefs.h >>conftest.$ac_ext
16986cat >>conftest.$ac_ext <<_ACEOF
16987/* end confdefs.h. */
16988
16989/* Override any gcc2 internal prototype to avoid an error. */
16990#ifdef __cplusplus
16991extern "C"
16992#endif
16993/* We use char because int might match the return type of a gcc2
16994 builtin and then its argument prototype would still apply. */
16995char dlopen ();
16996int
16997main ()
16998{
16999dlopen ();
17000 ;
17001 return 0;
17002}
17003_ACEOF
17004rm -f conftest.$ac_objext conftest$ac_exeext
17005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17006 (eval $ac_link) 2>conftest.er1
17007 ac_status=$?
17008 grep -v '^ *+' conftest.er1 >conftest.err
17009 rm -f conftest.er1
17010 cat conftest.err >&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000017013 { ac_try='test -z "$ac_c_werror_flag"
17014 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000017015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17016 (eval $ac_try) 2>&5
17017 ac_status=$?
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); }; } &&
17020 { ac_try='test -s conftest$ac_exeext'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; }; then
17026 ac_cv_lib_dl_dlopen=yes
17027else
17028 echo "$as_me: failed program was:" >&5
17029sed 's/^/| /' conftest.$ac_ext >&5
17030
17031ac_cv_lib_dl_dlopen=no
17032fi
17033rm -f conftest.err conftest.$ac_objext \
17034 conftest$ac_exeext conftest.$ac_ext
17035LIBS=$ac_check_lib_save_LIBS
17036fi
17037echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17038echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17039if test $ac_cv_lib_dl_dlopen = yes; then
17040 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17041else
17042 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17043echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17044if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17046else
17047 ac_check_lib_save_LIBS=$LIBS
17048LIBS="-lsvld $LIBS"
17049cat >conftest.$ac_ext <<_ACEOF
17050/* confdefs.h. */
17051_ACEOF
17052cat confdefs.h >>conftest.$ac_ext
17053cat >>conftest.$ac_ext <<_ACEOF
17054/* end confdefs.h. */
17055
17056/* Override any gcc2 internal prototype to avoid an error. */
17057#ifdef __cplusplus
17058extern "C"
17059#endif
17060/* We use char because int might match the return type of a gcc2
17061 builtin and then its argument prototype would still apply. */
17062char dlopen ();
17063int
17064main ()
17065{
17066dlopen ();
17067 ;
17068 return 0;
17069}
17070_ACEOF
17071rm -f conftest.$ac_objext conftest$ac_exeext
17072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17073 (eval $ac_link) 2>conftest.er1
17074 ac_status=$?
17075 grep -v '^ *+' conftest.er1 >conftest.err
17076 rm -f conftest.er1
17077 cat conftest.err >&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000017080 { ac_try='test -z "$ac_c_werror_flag"
17081 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000017082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17083 (eval $ac_try) 2>&5
17084 ac_status=$?
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); }; } &&
17087 { ac_try='test -s conftest$ac_exeext'
17088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17089 (eval $ac_try) 2>&5
17090 ac_status=$?
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); }; }; then
17093 ac_cv_lib_svld_dlopen=yes
17094else
17095 echo "$as_me: failed program was:" >&5
17096sed 's/^/| /' conftest.$ac_ext >&5
17097
17098ac_cv_lib_svld_dlopen=no
17099fi
17100rm -f conftest.err conftest.$ac_objext \
17101 conftest$ac_exeext conftest.$ac_ext
17102LIBS=$ac_check_lib_save_LIBS
17103fi
17104echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17105echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17106if test $ac_cv_lib_svld_dlopen = yes; then
17107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17108else
17109 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17110echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17111if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17112 echo $ECHO_N "(cached) $ECHO_C" >&6
17113else
17114 ac_check_lib_save_LIBS=$LIBS
17115LIBS="-ldld $LIBS"
17116cat >conftest.$ac_ext <<_ACEOF
17117/* confdefs.h. */
17118_ACEOF
17119cat confdefs.h >>conftest.$ac_ext
17120cat >>conftest.$ac_ext <<_ACEOF
17121/* end confdefs.h. */
17122
17123/* Override any gcc2 internal prototype to avoid an error. */
17124#ifdef __cplusplus
17125extern "C"
17126#endif
17127/* We use char because int might match the return type of a gcc2
17128 builtin and then its argument prototype would still apply. */
17129char dld_link ();
17130int
17131main ()
17132{
17133dld_link ();
17134 ;
17135 return 0;
17136}
17137_ACEOF
17138rm -f conftest.$ac_objext conftest$ac_exeext
17139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17140 (eval $ac_link) 2>conftest.er1
17141 ac_status=$?
17142 grep -v '^ *+' conftest.er1 >conftest.err
17143 rm -f conftest.er1
17144 cat conftest.err >&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000017147 { ac_try='test -z "$ac_c_werror_flag"
17148 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000017149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150 (eval $ac_try) 2>&5
17151 ac_status=$?
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; } &&
17154 { ac_try='test -s conftest$ac_exeext'
17155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17156 (eval $ac_try) 2>&5
17157 ac_status=$?
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); }; }; then
17160 ac_cv_lib_dld_dld_link=yes
17161else
17162 echo "$as_me: failed program was:" >&5
17163sed 's/^/| /' conftest.$ac_ext >&5
17164
17165ac_cv_lib_dld_dld_link=no
17166fi
17167rm -f conftest.err conftest.$ac_objext \
17168 conftest$ac_exeext conftest.$ac_ext
17169LIBS=$ac_check_lib_save_LIBS
17170fi
17171echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17172echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17173if test $ac_cv_lib_dld_dld_link = yes; then
17174 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17175fi
17176
17177
17178fi
17179
17180
17181fi
17182
17183
17184fi
17185
17186
17187fi
17188
17189
17190fi
17191
17192 ;;
17193 esac
17194
17195 if test "x$lt_cv_dlopen" != xno; then
17196 enable_dlopen=yes
17197 else
17198 enable_dlopen=no
17199 fi
17200
17201 case $lt_cv_dlopen in
17202 dlopen)
17203 save_CPPFLAGS="$CPPFLAGS"
17204 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17205
17206 save_LDFLAGS="$LDFLAGS"
17207 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17208
17209 save_LIBS="$LIBS"
17210 LIBS="$lt_cv_dlopen_libs $LIBS"
17211
17212 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17213echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17214if test "${lt_cv_dlopen_self+set}" = set; then
17215 echo $ECHO_N "(cached) $ECHO_C" >&6
17216else
17217 if test "$cross_compiling" = yes; then :
17218 lt_cv_dlopen_self=cross
17219else
17220 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17221 lt_status=$lt_dlunknown
17222 cat > conftest.$ac_ext <<EOF
dougcurrie0f290bf2004-06-21 18:57:29 +000017223#line 17223 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000017224#include "confdefs.h"
17225
17226#if HAVE_DLFCN_H
17227#include <dlfcn.h>
17228#endif
17229
17230#include <stdio.h>
17231
17232#ifdef RTLD_GLOBAL
17233# define LT_DLGLOBAL RTLD_GLOBAL
17234#else
17235# ifdef DL_GLOBAL
17236# define LT_DLGLOBAL DL_GLOBAL
17237# else
17238# define LT_DLGLOBAL 0
17239# endif
17240#endif
17241
17242/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17243 find out it does not work in some platform. */
17244#ifndef LT_DLLAZY_OR_NOW
17245# ifdef RTLD_LAZY
17246# define LT_DLLAZY_OR_NOW RTLD_LAZY
17247# else
17248# ifdef DL_LAZY
17249# define LT_DLLAZY_OR_NOW DL_LAZY
17250# else
17251# ifdef RTLD_NOW
17252# define LT_DLLAZY_OR_NOW RTLD_NOW
17253# else
17254# ifdef DL_NOW
17255# define LT_DLLAZY_OR_NOW DL_NOW
17256# else
17257# define LT_DLLAZY_OR_NOW 0
17258# endif
17259# endif
17260# endif
17261# endif
17262#endif
17263
17264#ifdef __cplusplus
17265extern "C" void exit (int);
17266#endif
17267
17268void fnord() { int i=42;}
17269int main ()
17270{
17271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17272 int status = $lt_dlunknown;
17273
17274 if (self)
17275 {
17276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17277 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17278 /* dlclose (self); */
17279 }
17280
17281 exit (status);
17282}
17283EOF
17284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17285 (eval $ac_link) 2>&5
17286 ac_status=$?
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17289 (./conftest; exit; ) 2>/dev/null
17290 lt_status=$?
17291 case x$lt_status in
17292 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17293 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17294 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17295 esac
17296 else :
17297 # compilation failed
17298 lt_cv_dlopen_self=no
17299 fi
17300fi
17301rm -fr conftest*
17302
17303
17304fi
17305echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17306echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17307
17308 if test "x$lt_cv_dlopen_self" = xyes; then
17309 LDFLAGS="$LDFLAGS $link_static_flag"
17310 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17311echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17312if test "${lt_cv_dlopen_self_static+set}" = set; then
17313 echo $ECHO_N "(cached) $ECHO_C" >&6
17314else
17315 if test "$cross_compiling" = yes; then :
17316 lt_cv_dlopen_self_static=cross
17317else
17318 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17319 lt_status=$lt_dlunknown
17320 cat > conftest.$ac_ext <<EOF
dougcurrie0f290bf2004-06-21 18:57:29 +000017321#line 17321 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000017322#include "confdefs.h"
17323
17324#if HAVE_DLFCN_H
17325#include <dlfcn.h>
17326#endif
17327
17328#include <stdio.h>
17329
17330#ifdef RTLD_GLOBAL
17331# define LT_DLGLOBAL RTLD_GLOBAL
17332#else
17333# ifdef DL_GLOBAL
17334# define LT_DLGLOBAL DL_GLOBAL
17335# else
17336# define LT_DLGLOBAL 0
17337# endif
17338#endif
17339
17340/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17341 find out it does not work in some platform. */
17342#ifndef LT_DLLAZY_OR_NOW
17343# ifdef RTLD_LAZY
17344# define LT_DLLAZY_OR_NOW RTLD_LAZY
17345# else
17346# ifdef DL_LAZY
17347# define LT_DLLAZY_OR_NOW DL_LAZY
17348# else
17349# ifdef RTLD_NOW
17350# define LT_DLLAZY_OR_NOW RTLD_NOW
17351# else
17352# ifdef DL_NOW
17353# define LT_DLLAZY_OR_NOW DL_NOW
17354# else
17355# define LT_DLLAZY_OR_NOW 0
17356# endif
17357# endif
17358# endif
17359# endif
17360#endif
17361
17362#ifdef __cplusplus
17363extern "C" void exit (int);
17364#endif
17365
17366void fnord() { int i=42;}
17367int main ()
17368{
17369 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17370 int status = $lt_dlunknown;
17371
17372 if (self)
17373 {
17374 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17375 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17376 /* dlclose (self); */
17377 }
17378
17379 exit (status);
17380}
17381EOF
17382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17383 (eval $ac_link) 2>&5
17384 ac_status=$?
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17387 (./conftest; exit; ) 2>/dev/null
17388 lt_status=$?
17389 case x$lt_status in
17390 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17391 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17392 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17393 esac
17394 else :
17395 # compilation failed
17396 lt_cv_dlopen_self_static=no
17397 fi
17398fi
17399rm -fr conftest*
17400
17401
17402fi
17403echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17404echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17405 fi
17406
17407 CPPFLAGS="$save_CPPFLAGS"
17408 LDFLAGS="$save_LDFLAGS"
17409 LIBS="$save_LIBS"
17410 ;;
17411 esac
17412
17413 case $lt_cv_dlopen_self in
17414 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17415 *) enable_dlopen_self=unknown ;;
17416 esac
17417
17418 case $lt_cv_dlopen_self_static in
17419 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17420 *) enable_dlopen_self_static=unknown ;;
17421 esac
17422fi
17423
17424
17425# The else clause should only fire when bootstrapping the
17426# libtool distribution, otherwise you forgot to ship ltmain.sh
17427# with your package, and you will get complaints that there are
17428# no rules to generate ltmain.sh.
17429if test -f "$ltmain"; then
17430 # See if we are running on zsh, and set the options which allow our commands through
17431 # without removal of \ escapes.
17432 if test -n "${ZSH_VERSION+set}" ; then
17433 setopt NO_GLOB_SUBST
17434 fi
17435 # Now quote all the things that may contain metacharacters while being
17436 # careful not to overquote the AC_SUBSTed values. We take copies of the
17437 # variables and quote the copies for generation of the libtool script.
17438 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17439 SED SHELL STRIP \
17440 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17441 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17442 deplibs_check_method reload_flag reload_cmds need_locks \
17443 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17444 lt_cv_sys_global_symbol_to_c_name_address \
17445 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17446 old_postinstall_cmds old_postuninstall_cmds \
17447 compiler_GCJ \
17448 CC_GCJ \
17449 LD_GCJ \
17450 lt_prog_compiler_wl_GCJ \
17451 lt_prog_compiler_pic_GCJ \
17452 lt_prog_compiler_static_GCJ \
17453 lt_prog_compiler_no_builtin_flag_GCJ \
17454 export_dynamic_flag_spec_GCJ \
17455 thread_safe_flag_spec_GCJ \
17456 whole_archive_flag_spec_GCJ \
17457 enable_shared_with_static_runtimes_GCJ \
17458 old_archive_cmds_GCJ \
17459 old_archive_from_new_cmds_GCJ \
17460 predep_objects_GCJ \
17461 postdep_objects_GCJ \
17462 predeps_GCJ \
17463 postdeps_GCJ \
17464 compiler_lib_search_path_GCJ \
17465 archive_cmds_GCJ \
17466 archive_expsym_cmds_GCJ \
17467 postinstall_cmds_GCJ \
17468 postuninstall_cmds_GCJ \
17469 old_archive_from_expsyms_cmds_GCJ \
17470 allow_undefined_flag_GCJ \
17471 no_undefined_flag_GCJ \
17472 export_symbols_cmds_GCJ \
17473 hardcode_libdir_flag_spec_GCJ \
17474 hardcode_libdir_flag_spec_ld_GCJ \
17475 hardcode_libdir_separator_GCJ \
17476 hardcode_automatic_GCJ \
17477 module_cmds_GCJ \
17478 module_expsym_cmds_GCJ \
17479 lt_cv_prog_compiler_c_o_GCJ \
17480 exclude_expsyms_GCJ \
17481 include_expsyms_GCJ; do
17482
17483 case $var in
17484 old_archive_cmds_GCJ | \
17485 old_archive_from_new_cmds_GCJ | \
17486 archive_cmds_GCJ | \
17487 archive_expsym_cmds_GCJ | \
17488 module_cmds_GCJ | \
17489 module_expsym_cmds_GCJ | \
17490 old_archive_from_expsyms_cmds_GCJ | \
17491 export_symbols_cmds_GCJ | \
17492 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17493 postinstall_cmds | postuninstall_cmds | \
17494 old_postinstall_cmds | old_postuninstall_cmds | \
17495 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17496 # Double-quote double-evaled strings.
17497 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17498 ;;
17499 *)
17500 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17501 ;;
17502 esac
17503 done
17504
17505 case $lt_echo in
17506 *'\$0 --fallback-echo"')
17507 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17508 ;;
17509 esac
17510
17511cfgfile="$ofile"
17512
17513 cat <<__EOF__ >> "$cfgfile"
17514# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17515
17516# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17517
17518# Shell to use when invoking shell scripts.
17519SHELL=$lt_SHELL
17520
17521# Whether or not to build shared libraries.
17522build_libtool_libs=$enable_shared
17523
17524# Whether or not to build static libraries.
17525build_old_libs=$enable_static
17526
17527# Whether or not to add -lc for building shared libraries.
17528build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17529
17530# Whether or not to disallow shared libs when runtime libs are static
17531allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17532
17533# Whether or not to optimize for fast installation.
17534fast_install=$enable_fast_install
17535
17536# The host system.
17537host_alias=$host_alias
17538host=$host
17539
17540# An echo program that does not interpret backslashes.
17541echo=$lt_echo
17542
17543# The archiver.
17544AR=$lt_AR
17545AR_FLAGS=$lt_AR_FLAGS
17546
17547# A C compiler.
17548LTCC=$lt_LTCC
17549
17550# A language-specific compiler.
17551CC=$lt_compiler_GCJ
17552
17553# Is the compiler the GNU C compiler?
17554with_gcc=$GCC_GCJ
17555
17556# An ERE matcher.
17557EGREP=$lt_EGREP
17558
17559# The linker used to build libraries.
17560LD=$lt_LD_GCJ
17561
17562# Whether we need hard or soft links.
17563LN_S=$lt_LN_S
17564
17565# A BSD-compatible nm program.
17566NM=$lt_NM
17567
17568# A symbol stripping program
17569STRIP=$lt_STRIP
17570
17571# Used to examine libraries when file_magic_cmd begins "file"
17572MAGIC_CMD=$MAGIC_CMD
17573
17574# Used on cygwin: DLL creation program.
17575DLLTOOL="$DLLTOOL"
17576
17577# Used on cygwin: object dumper.
17578OBJDUMP="$OBJDUMP"
17579
17580# Used on cygwin: assembler.
17581AS="$AS"
17582
17583# The name of the directory that contains temporary libtool files.
17584objdir=$objdir
17585
17586# How to create reloadable object files.
17587reload_flag=$lt_reload_flag
17588reload_cmds=$lt_reload_cmds
17589
17590# How to pass a linker flag through the compiler.
17591wl=$lt_lt_prog_compiler_wl_GCJ
17592
17593# Object file suffix (normally "o").
17594objext="$ac_objext"
17595
17596# Old archive suffix (normally "a").
17597libext="$libext"
17598
17599# Shared library suffix (normally ".so").
17600shrext='$shrext'
17601
17602# Executable file suffix (normally "").
17603exeext="$exeext"
17604
17605# Additional compiler flags for building library objects.
17606pic_flag=$lt_lt_prog_compiler_pic_GCJ
17607pic_mode=$pic_mode
17608
17609# What is the maximum length of a command?
17610max_cmd_len=$lt_cv_sys_max_cmd_len
17611
17612# Does compiler simultaneously support -c and -o options?
17613compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17614
17615# Must we lock files when doing compilation ?
17616need_locks=$lt_need_locks
17617
17618# Do we need the lib prefix for modules?
17619need_lib_prefix=$need_lib_prefix
17620
17621# Do we need a version for libraries?
17622need_version=$need_version
17623
17624# Whether dlopen is supported.
17625dlopen_support=$enable_dlopen
17626
17627# Whether dlopen of programs is supported.
17628dlopen_self=$enable_dlopen_self
17629
17630# Whether dlopen of statically linked programs is supported.
17631dlopen_self_static=$enable_dlopen_self_static
17632
17633# Compiler flag to prevent dynamic linking.
17634link_static_flag=$lt_lt_prog_compiler_static_GCJ
17635
17636# Compiler flag to turn off builtin functions.
17637no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17638
17639# Compiler flag to allow reflexive dlopens.
17640export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17641
17642# Compiler flag to generate shared objects directly from archives.
17643whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17644
17645# Compiler flag to generate thread-safe objects.
17646thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17647
17648# Library versioning type.
17649version_type=$version_type
17650
17651# Format of library name prefix.
17652libname_spec=$lt_libname_spec
17653
17654# List of archive names. First name is the real one, the rest are links.
17655# The last name is the one that the linker finds with -lNAME.
17656library_names_spec=$lt_library_names_spec
17657
17658# The coded name of the library, if different from the real name.
17659soname_spec=$lt_soname_spec
17660
17661# Commands used to build and install an old-style archive.
17662RANLIB=$lt_RANLIB
17663old_archive_cmds=$lt_old_archive_cmds_GCJ
17664old_postinstall_cmds=$lt_old_postinstall_cmds
17665old_postuninstall_cmds=$lt_old_postuninstall_cmds
17666
17667# Create an old-style archive from a shared archive.
17668old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17669
17670# Create a temporary old-style archive to link instead of a shared archive.
17671old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17672
17673# Commands used to build and install a shared archive.
17674archive_cmds=$lt_archive_cmds_GCJ
17675archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17676postinstall_cmds=$lt_postinstall_cmds
17677postuninstall_cmds=$lt_postuninstall_cmds
17678
17679# Commands used to build a loadable module (assumed same as above if empty)
17680module_cmds=$lt_module_cmds_GCJ
17681module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17682
17683# Commands to strip libraries.
17684old_striplib=$lt_old_striplib
17685striplib=$lt_striplib
17686
17687# Dependencies to place before the objects being linked to create a
17688# shared library.
17689predep_objects=$lt_predep_objects_GCJ
17690
17691# Dependencies to place after the objects being linked to create a
17692# shared library.
17693postdep_objects=$lt_postdep_objects_GCJ
17694
17695# Dependencies to place before the objects being linked to create a
17696# shared library.
17697predeps=$lt_predeps_GCJ
17698
17699# Dependencies to place after the objects being linked to create a
17700# shared library.
17701postdeps=$lt_postdeps_GCJ
17702
17703# The library search path used internally by the compiler when linking
17704# a shared library.
17705compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17706
17707# Method to check whether dependent libraries are shared objects.
17708deplibs_check_method=$lt_deplibs_check_method
17709
17710# Command to use when deplibs_check_method == file_magic.
17711file_magic_cmd=$lt_file_magic_cmd
17712
17713# Flag that allows shared libraries with undefined symbols to be built.
17714allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17715
17716# Flag that forces no undefined symbols.
17717no_undefined_flag=$lt_no_undefined_flag_GCJ
17718
17719# Commands used to finish a libtool library installation in a directory.
17720finish_cmds=$lt_finish_cmds
17721
17722# Same as above, but a single script fragment to be evaled but not shown.
17723finish_eval=$lt_finish_eval
17724
17725# Take the output of nm and produce a listing of raw symbols and C names.
17726global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17727
17728# Transform the output of nm in a proper C declaration
17729global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17730
17731# Transform the output of nm in a C name address pair
17732global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17733
17734# This is the shared library runtime path variable.
17735runpath_var=$runpath_var
17736
17737# This is the shared library path variable.
17738shlibpath_var=$shlibpath_var
17739
17740# Is shlibpath searched before the hard-coded library search path?
17741shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17742
17743# How to hardcode a shared library path into an executable.
17744hardcode_action=$hardcode_action_GCJ
17745
17746# Whether we should hardcode library paths into libraries.
17747hardcode_into_libs=$hardcode_into_libs
17748
17749# Flag to hardcode \$libdir into a binary during linking.
17750# This must work even if \$libdir does not exist.
17751hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17752
17753# If ld is used when linking, flag to hardcode \$libdir into
17754# a binary during linking. This must work even if \$libdir does
17755# not exist.
17756hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17757
17758# Whether we need a single -rpath flag with a separated argument.
17759hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17760
17761# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17762# resulting binary.
17763hardcode_direct=$hardcode_direct_GCJ
17764
17765# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17766# resulting binary.
17767hardcode_minus_L=$hardcode_minus_L_GCJ
17768
17769# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17770# the resulting binary.
17771hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17772
17773# Set to yes if building a shared library automatically hardcodes DIR into the library
17774# and all subsequent libraries and executables linked against it.
17775hardcode_automatic=$hardcode_automatic_GCJ
17776
17777# Variables whose values should be saved in libtool wrapper scripts and
17778# restored at relink time.
17779variables_saved_for_relink="$variables_saved_for_relink"
17780
17781# Whether libtool must link a program against all its dependency libraries.
17782link_all_deplibs=$link_all_deplibs_GCJ
17783
17784# Compile-time system search path for libraries
17785sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17786
17787# Run-time system search path for libraries
17788sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17789
17790# Fix the shell variable \$srcfile for the compiler.
17791fix_srcfile_path="$fix_srcfile_path_GCJ"
17792
17793# Set to yes if exported symbols are required.
17794always_export_symbols=$always_export_symbols_GCJ
17795
17796# The commands to list exported symbols.
17797export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17798
17799# The commands to extract the exported symbol list from a shared archive.
17800extract_expsyms_cmds=$lt_extract_expsyms_cmds
17801
17802# Symbols that should not be listed in the preloaded symbols.
17803exclude_expsyms=$lt_exclude_expsyms_GCJ
17804
17805# Symbols that must always be exported.
17806include_expsyms=$lt_include_expsyms_GCJ
17807
17808# ### END LIBTOOL TAG CONFIG: $tagname
17809
17810__EOF__
17811
17812
17813else
17814 # If there is no Makefile yet, we rely on a make rule to execute
17815 # `config.status --recheck' to rerun these tests and create the
17816 # libtool script then.
17817 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17818 if test -f "$ltmain_in"; then
17819 test -f Makefile && make "$ltmain"
17820 fi
17821fi
17822
17823
17824ac_ext=c
17825ac_cpp='$CPP $CPPFLAGS'
17826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17828ac_compiler_gnu=$ac_cv_c_compiler_gnu
17829
17830CC="$lt_save_CC"
17831
17832 else
17833 tagname=""
17834 fi
17835 ;;
17836
17837 RC)
17838
17839
17840
17841# Source file extension for RC test sources.
17842ac_ext=rc
17843
17844# Object file extension for compiled RC test sources.
17845objext=o
17846objext_RC=$objext
17847
17848# Code to be used in simple compile tests
17849lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17850
17851# Code to be used in simple link tests
17852lt_simple_link_test_code="$lt_simple_compile_test_code"
17853
17854# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17855
17856# If no C compiler was specified, use CC.
17857LTCC=${LTCC-"$CC"}
17858
17859# Allow CC to be a program name with arguments.
17860compiler=$CC
17861
17862
17863# Allow CC to be a program name with arguments.
17864lt_save_CC="$CC"
17865CC=${RC-"windres"}
17866compiler=$CC
17867compiler_RC=$CC
17868lt_cv_prog_compiler_c_o_RC=yes
17869
17870# The else clause should only fire when bootstrapping the
17871# libtool distribution, otherwise you forgot to ship ltmain.sh
17872# with your package, and you will get complaints that there are
17873# no rules to generate ltmain.sh.
17874if test -f "$ltmain"; then
17875 # See if we are running on zsh, and set the options which allow our commands through
17876 # without removal of \ escapes.
17877 if test -n "${ZSH_VERSION+set}" ; then
17878 setopt NO_GLOB_SUBST
17879 fi
17880 # Now quote all the things that may contain metacharacters while being
17881 # careful not to overquote the AC_SUBSTed values. We take copies of the
17882 # variables and quote the copies for generation of the libtool script.
17883 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17884 SED SHELL STRIP \
17885 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17886 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17887 deplibs_check_method reload_flag reload_cmds need_locks \
17888 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17889 lt_cv_sys_global_symbol_to_c_name_address \
17890 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17891 old_postinstall_cmds old_postuninstall_cmds \
17892 compiler_RC \
17893 CC_RC \
17894 LD_RC \
17895 lt_prog_compiler_wl_RC \
17896 lt_prog_compiler_pic_RC \
17897 lt_prog_compiler_static_RC \
17898 lt_prog_compiler_no_builtin_flag_RC \
17899 export_dynamic_flag_spec_RC \
17900 thread_safe_flag_spec_RC \
17901 whole_archive_flag_spec_RC \
17902 enable_shared_with_static_runtimes_RC \
17903 old_archive_cmds_RC \
17904 old_archive_from_new_cmds_RC \
17905 predep_objects_RC \
17906 postdep_objects_RC \
17907 predeps_RC \
17908 postdeps_RC \
17909 compiler_lib_search_path_RC \
17910 archive_cmds_RC \
17911 archive_expsym_cmds_RC \
17912 postinstall_cmds_RC \
17913 postuninstall_cmds_RC \
17914 old_archive_from_expsyms_cmds_RC \
17915 allow_undefined_flag_RC \
17916 no_undefined_flag_RC \
17917 export_symbols_cmds_RC \
17918 hardcode_libdir_flag_spec_RC \
17919 hardcode_libdir_flag_spec_ld_RC \
17920 hardcode_libdir_separator_RC \
17921 hardcode_automatic_RC \
17922 module_cmds_RC \
17923 module_expsym_cmds_RC \
17924 lt_cv_prog_compiler_c_o_RC \
17925 exclude_expsyms_RC \
17926 include_expsyms_RC; do
17927
17928 case $var in
17929 old_archive_cmds_RC | \
17930 old_archive_from_new_cmds_RC | \
17931 archive_cmds_RC | \
17932 archive_expsym_cmds_RC | \
17933 module_cmds_RC | \
17934 module_expsym_cmds_RC | \
17935 old_archive_from_expsyms_cmds_RC | \
17936 export_symbols_cmds_RC | \
17937 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17938 postinstall_cmds | postuninstall_cmds | \
17939 old_postinstall_cmds | old_postuninstall_cmds | \
17940 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17941 # Double-quote double-evaled strings.
17942 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17943 ;;
17944 *)
17945 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17946 ;;
17947 esac
17948 done
17949
17950 case $lt_echo in
17951 *'\$0 --fallback-echo"')
17952 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17953 ;;
17954 esac
17955
17956cfgfile="$ofile"
17957
17958 cat <<__EOF__ >> "$cfgfile"
17959# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17960
17961# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17962
17963# Shell to use when invoking shell scripts.
17964SHELL=$lt_SHELL
17965
17966# Whether or not to build shared libraries.
17967build_libtool_libs=$enable_shared
17968
17969# Whether or not to build static libraries.
17970build_old_libs=$enable_static
17971
17972# Whether or not to add -lc for building shared libraries.
17973build_libtool_need_lc=$archive_cmds_need_lc_RC
17974
17975# Whether or not to disallow shared libs when runtime libs are static
17976allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17977
17978# Whether or not to optimize for fast installation.
17979fast_install=$enable_fast_install
17980
17981# The host system.
17982host_alias=$host_alias
17983host=$host
17984
17985# An echo program that does not interpret backslashes.
17986echo=$lt_echo
17987
17988# The archiver.
17989AR=$lt_AR
17990AR_FLAGS=$lt_AR_FLAGS
17991
17992# A C compiler.
17993LTCC=$lt_LTCC
17994
17995# A language-specific compiler.
17996CC=$lt_compiler_RC
17997
17998# Is the compiler the GNU C compiler?
17999with_gcc=$GCC_RC
18000
18001# An ERE matcher.
18002EGREP=$lt_EGREP
18003
18004# The linker used to build libraries.
18005LD=$lt_LD_RC
18006
18007# Whether we need hard or soft links.
18008LN_S=$lt_LN_S
18009
18010# A BSD-compatible nm program.
18011NM=$lt_NM
18012
18013# A symbol stripping program
18014STRIP=$lt_STRIP
18015
18016# Used to examine libraries when file_magic_cmd begins "file"
18017MAGIC_CMD=$MAGIC_CMD
18018
18019# Used on cygwin: DLL creation program.
18020DLLTOOL="$DLLTOOL"
18021
18022# Used on cygwin: object dumper.
18023OBJDUMP="$OBJDUMP"
18024
18025# Used on cygwin: assembler.
18026AS="$AS"
18027
18028# The name of the directory that contains temporary libtool files.
18029objdir=$objdir
18030
18031# How to create reloadable object files.
18032reload_flag=$lt_reload_flag
18033reload_cmds=$lt_reload_cmds
18034
18035# How to pass a linker flag through the compiler.
18036wl=$lt_lt_prog_compiler_wl_RC
18037
18038# Object file suffix (normally "o").
18039objext="$ac_objext"
18040
18041# Old archive suffix (normally "a").
18042libext="$libext"
18043
18044# Shared library suffix (normally ".so").
18045shrext='$shrext'
18046
18047# Executable file suffix (normally "").
18048exeext="$exeext"
18049
18050# Additional compiler flags for building library objects.
18051pic_flag=$lt_lt_prog_compiler_pic_RC
18052pic_mode=$pic_mode
18053
18054# What is the maximum length of a command?
18055max_cmd_len=$lt_cv_sys_max_cmd_len
18056
18057# Does compiler simultaneously support -c and -o options?
18058compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18059
18060# Must we lock files when doing compilation ?
18061need_locks=$lt_need_locks
18062
18063# Do we need the lib prefix for modules?
18064need_lib_prefix=$need_lib_prefix
18065
18066# Do we need a version for libraries?
18067need_version=$need_version
18068
18069# Whether dlopen is supported.
18070dlopen_support=$enable_dlopen
18071
18072# Whether dlopen of programs is supported.
18073dlopen_self=$enable_dlopen_self
18074
18075# Whether dlopen of statically linked programs is supported.
18076dlopen_self_static=$enable_dlopen_self_static
18077
18078# Compiler flag to prevent dynamic linking.
18079link_static_flag=$lt_lt_prog_compiler_static_RC
18080
18081# Compiler flag to turn off builtin functions.
18082no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18083
18084# Compiler flag to allow reflexive dlopens.
18085export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18086
18087# Compiler flag to generate shared objects directly from archives.
18088whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18089
18090# Compiler flag to generate thread-safe objects.
18091thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18092
18093# Library versioning type.
18094version_type=$version_type
18095
18096# Format of library name prefix.
18097libname_spec=$lt_libname_spec
18098
18099# List of archive names. First name is the real one, the rest are links.
18100# The last name is the one that the linker finds with -lNAME.
18101library_names_spec=$lt_library_names_spec
18102
18103# The coded name of the library, if different from the real name.
18104soname_spec=$lt_soname_spec
18105
18106# Commands used to build and install an old-style archive.
18107RANLIB=$lt_RANLIB
18108old_archive_cmds=$lt_old_archive_cmds_RC
18109old_postinstall_cmds=$lt_old_postinstall_cmds
18110old_postuninstall_cmds=$lt_old_postuninstall_cmds
18111
18112# Create an old-style archive from a shared archive.
18113old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18114
18115# Create a temporary old-style archive to link instead of a shared archive.
18116old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18117
18118# Commands used to build and install a shared archive.
18119archive_cmds=$lt_archive_cmds_RC
18120archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18121postinstall_cmds=$lt_postinstall_cmds
18122postuninstall_cmds=$lt_postuninstall_cmds
18123
18124# Commands used to build a loadable module (assumed same as above if empty)
18125module_cmds=$lt_module_cmds_RC
18126module_expsym_cmds=$lt_module_expsym_cmds_RC
18127
18128# Commands to strip libraries.
18129old_striplib=$lt_old_striplib
18130striplib=$lt_striplib
18131
18132# Dependencies to place before the objects being linked to create a
18133# shared library.
18134predep_objects=$lt_predep_objects_RC
18135
18136# Dependencies to place after the objects being linked to create a
18137# shared library.
18138postdep_objects=$lt_postdep_objects_RC
18139
18140# Dependencies to place before the objects being linked to create a
18141# shared library.
18142predeps=$lt_predeps_RC
18143
18144# Dependencies to place after the objects being linked to create a
18145# shared library.
18146postdeps=$lt_postdeps_RC
18147
18148# The library search path used internally by the compiler when linking
18149# a shared library.
18150compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18151
18152# Method to check whether dependent libraries are shared objects.
18153deplibs_check_method=$lt_deplibs_check_method
18154
18155# Command to use when deplibs_check_method == file_magic.
18156file_magic_cmd=$lt_file_magic_cmd
18157
18158# Flag that allows shared libraries with undefined symbols to be built.
18159allow_undefined_flag=$lt_allow_undefined_flag_RC
18160
18161# Flag that forces no undefined symbols.
18162no_undefined_flag=$lt_no_undefined_flag_RC
18163
18164# Commands used to finish a libtool library installation in a directory.
18165finish_cmds=$lt_finish_cmds
18166
18167# Same as above, but a single script fragment to be evaled but not shown.
18168finish_eval=$lt_finish_eval
18169
18170# Take the output of nm and produce a listing of raw symbols and C names.
18171global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18172
18173# Transform the output of nm in a proper C declaration
18174global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18175
18176# Transform the output of nm in a C name address pair
18177global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18178
18179# This is the shared library runtime path variable.
18180runpath_var=$runpath_var
18181
18182# This is the shared library path variable.
18183shlibpath_var=$shlibpath_var
18184
18185# Is shlibpath searched before the hard-coded library search path?
18186shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18187
18188# How to hardcode a shared library path into an executable.
18189hardcode_action=$hardcode_action_RC
18190
18191# Whether we should hardcode library paths into libraries.
18192hardcode_into_libs=$hardcode_into_libs
18193
18194# Flag to hardcode \$libdir into a binary during linking.
18195# This must work even if \$libdir does not exist.
18196hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18197
18198# If ld is used when linking, flag to hardcode \$libdir into
18199# a binary during linking. This must work even if \$libdir does
18200# not exist.
18201hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18202
18203# Whether we need a single -rpath flag with a separated argument.
18204hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18205
18206# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18207# resulting binary.
18208hardcode_direct=$hardcode_direct_RC
18209
18210# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18211# resulting binary.
18212hardcode_minus_L=$hardcode_minus_L_RC
18213
18214# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18215# the resulting binary.
18216hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18217
18218# Set to yes if building a shared library automatically hardcodes DIR into the library
18219# and all subsequent libraries and executables linked against it.
18220hardcode_automatic=$hardcode_automatic_RC
18221
18222# Variables whose values should be saved in libtool wrapper scripts and
18223# restored at relink time.
18224variables_saved_for_relink="$variables_saved_for_relink"
18225
18226# Whether libtool must link a program against all its dependency libraries.
18227link_all_deplibs=$link_all_deplibs_RC
18228
18229# Compile-time system search path for libraries
18230sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18231
18232# Run-time system search path for libraries
18233sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18234
18235# Fix the shell variable \$srcfile for the compiler.
18236fix_srcfile_path="$fix_srcfile_path_RC"
18237
18238# Set to yes if exported symbols are required.
18239always_export_symbols=$always_export_symbols_RC
18240
18241# The commands to list exported symbols.
18242export_symbols_cmds=$lt_export_symbols_cmds_RC
18243
18244# The commands to extract the exported symbol list from a shared archive.
18245extract_expsyms_cmds=$lt_extract_expsyms_cmds
18246
18247# Symbols that should not be listed in the preloaded symbols.
18248exclude_expsyms=$lt_exclude_expsyms_RC
18249
18250# Symbols that must always be exported.
18251include_expsyms=$lt_include_expsyms_RC
18252
18253# ### END LIBTOOL TAG CONFIG: $tagname
18254
18255__EOF__
18256
18257
18258else
18259 # If there is no Makefile yet, we rely on a make rule to execute
18260 # `config.status --recheck' to rerun these tests and create the
18261 # libtool script then.
18262 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18263 if test -f "$ltmain_in"; then
18264 test -f Makefile && make "$ltmain"
18265 fi
18266fi
18267
18268
18269ac_ext=c
18270ac_cpp='$CPP $CPPFLAGS'
18271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18273ac_compiler_gnu=$ac_cv_c_compiler_gnu
18274
18275CC="$lt_save_CC"
18276
18277 ;;
18278
18279 *)
18280 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18281echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18282 { (exit 1); exit 1; }; }
18283 ;;
18284 esac
18285
18286 # Append the new tag name to the list of available tags.
18287 if test -n "$tagname" ; then
18288 available_tags="$available_tags $tagname"
18289 fi
18290 fi
18291 done
18292 IFS="$lt_save_ifs"
18293
18294 # Now substitute the updated list of available tags.
18295 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18296 mv "${ofile}T" "$ofile"
18297 chmod +x "$ofile"
18298 else
18299 rm -f "${ofile}T"
18300 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18301echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18302 { (exit 1); exit 1; }; }
18303 fi
18304fi
drh71eb93e2001-09-28 01:34:43 +000018305
drh71eb93e2001-09-28 01:34:43 +000018306
drh71eb93e2001-09-28 01:34:43 +000018307
18308# This can be used to rebuild libtool when needed
18309LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18310
18311# Always use our own libtool.
18312LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18313
18314# Prevent multiple expansion
18315
a.rottmann84e63352003-03-24 09:42:16 +000018316
a.rottmann9bc8b932004-02-29 15:18:31 +000018317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
drh71eb93e2001-09-28 01:34:43 +000018335# Find a good install program. We prefer a C program (faster),
18336# so one script is as good as another. But avoid the broken or
18337# incompatible versions:
18338# SysV /etc/install, /usr/sbin/install
18339# SunOS /usr/etc/install
18340# IRIX /sbin/install
18341# AIX /bin/install
18342# AmigaOS /C/install, which installs bootblocks on floppy discs
18343# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18344# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18345# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +000018346# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +000018347# ./install, which can be erroneously created by make from ./install.sh.
a.rottmann84e63352003-03-24 09:42:16 +000018348echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18349echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +000018350if test -z "$INSTALL"; then
18351if test "${ac_cv_path_install+set}" = set; then
18352 echo $ECHO_N "(cached) $ECHO_C" >&6
18353else
a.rottmann84e63352003-03-24 09:42:16 +000018354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18355for as_dir in $PATH
18356do
18357 IFS=$as_save_IFS
18358 test -z "$as_dir" && as_dir=.
18359 # Account for people who put trailing slashes in PATH elements.
18360case $as_dir/ in
18361 ./ | .// | /cC/* | \
18362 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a.rottmann964dbb12004-02-26 19:47:42 +000018363 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +000018364 /usr/ucb/* ) ;;
18365 *)
18366 # OSF1 and SCO ODT 3.0 have their own names for install.
18367 # Don't use installbsd from OSF since it installs stuff as root
18368 # by default.
18369 for ac_prog in ginstall scoinst install; do
18370 for ac_exec_ext in '' $ac_executable_extensions; do
a.rottmann964dbb12004-02-26 19:47:42 +000018371 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18372 if test $ac_prog = install &&
18373 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18374 # AIX install. It has an incompatible calling convention.
18375 :
18376 elif test $ac_prog = install &&
18377 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18378 # program-specific install script used by HP pwplus--don't use.
18379 :
18380 else
18381 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18382 break 3
18383 fi
18384 fi
drh71eb93e2001-09-28 01:34:43 +000018385 done
a.rottmann84e63352003-03-24 09:42:16 +000018386 done
18387 ;;
18388esac
18389done
18390
drh71eb93e2001-09-28 01:34:43 +000018391
18392fi
18393 if test "${ac_cv_path_install+set}" = set; then
18394 INSTALL=$ac_cv_path_install
18395 else
18396 # As a last resort, use the slow shell script. We don't cache a
18397 # path for INSTALL within a source directory, because that will
18398 # break other packages using the cache if that directory is
18399 # removed, or if the path is relative.
18400 INSTALL=$ac_install_sh
18401 fi
18402fi
a.rottmann84e63352003-03-24 09:42:16 +000018403echo "$as_me:$LINENO: result: $INSTALL" >&5
drh71eb93e2001-09-28 01:34:43 +000018404echo "${ECHO_T}$INSTALL" >&6
18405
18406# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18407# It thinks the first close brace ends the variable substitution.
18408test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18409
18410test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18411
18412test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18413
a.rottmann84e63352003-03-24 09:42:16 +000018414
drh75897232000-05-29 14:26:00 +000018415#########
18416# Set up an appropriate program prefix
18417#
18418if test "$program_prefix" = "NONE"; then
18419 program_prefix=""
18420fi
18421
a.rottmann84e63352003-03-24 09:42:16 +000018422
18423if test -f VERSION; then
18424 VERSION=`cat VERSION`
18425 echo "Version set to $VERSION"
18426fi
18427
18428
drh75897232000-05-29 14:26:00 +000018429#########
18430# Check to see if the --with-hints=FILE option is used. If there is none,
18431# then check for a files named "$host.hints" and ../$hosts.hints where
18432# $host is the hostname of the build system. If still no hints are
18433# found, try looking in $system.hints and ../$system.hints where
18434# $system is the result of uname -s.
18435#
drh71eb93e2001-09-28 01:34:43 +000018436
drh75897232000-05-29 14:26:00 +000018437# Check whether --with-hints or --without-hints was given.
18438if test "${with_hints+set}" = set; then
18439 withval="$with_hints"
18440 hints=$withval
drh71eb93e2001-09-28 01:34:43 +000018441fi;
drh75897232000-05-29 14:26:00 +000018442if test "$hints" = ""; then
18443 host=`hostname | sed 's/\..*//'`
18444 if test -r $host.hints; then
18445 hints=$host.hints
18446 else
18447 if test -r ../$host.hints; then
18448 hints=../$host.hints
18449 fi
18450 fi
18451fi
18452if test "$hints" = ""; then
18453 sys=`uname -s`
18454 if test -r $sys.hints; then
18455 hints=$sys.hints
18456 else
18457 if test -r ../$sys.hints; then
18458 hints=../$sys.hints
18459 fi
18460 fi
18461fi
18462if test "$hints" != ""; then
a.rottmann84e63352003-03-24 09:42:16 +000018463 echo "$as_me:$LINENO: result: reading hints from $hints" >&5
drh71eb93e2001-09-28 01:34:43 +000018464echo "${ECHO_T}reading hints from $hints" >&6
drh75897232000-05-29 14:26:00 +000018465 . $hints
18466fi
18467
18468#########
18469# Locate a compiler for the build machine. This compiler should
18470# generate command-line programs that run on the build machine.
18471#
18472default_build_cflags="-g"
18473if test "$config_BUILD_CC" = ""; then
drh71eb93e2001-09-28 01:34:43 +000018474 ac_ext=c
18475ac_cpp='$CPP $CPPFLAGS'
18476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18478ac_compiler_gnu=$ac_cv_c_compiler_gnu
18479if test -n "$ac_tool_prefix"; then
18480 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18481set dummy ${ac_tool_prefix}gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018482echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18484if test "${ac_cv_prog_CC+set}" = set; then
18485 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018486else
18487 if test -n "$CC"; then
18488 ac_cv_prog_CC="$CC" # Let the user override the test.
18489else
a.rottmann84e63352003-03-24 09:42:16 +000018490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18491for as_dir in $PATH
18492do
18493 IFS=$as_save_IFS
18494 test -z "$as_dir" && as_dir=.
18495 for ac_exec_ext in '' $ac_executable_extensions; do
18496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18497 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18499 break 2
18500 fi
18501done
drh71eb93e2001-09-28 01:34:43 +000018502done
18503
drh75897232000-05-29 14:26:00 +000018504fi
18505fi
drh71eb93e2001-09-28 01:34:43 +000018506CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000018507if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018508 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018509echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000018510else
a.rottmann84e63352003-03-24 09:42:16 +000018511 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018512echo "${ECHO_T}no" >&6
18513fi
18514
18515fi
18516if test -z "$ac_cv_prog_CC"; then
18517 ac_ct_CC=$CC
18518 # Extract the first word of "gcc", so it can be a program name with args.
18519set dummy gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018520echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18522if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18523 echo $ECHO_N "(cached) $ECHO_C" >&6
18524else
18525 if test -n "$ac_ct_CC"; then
18526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18527else
a.rottmann84e63352003-03-24 09:42:16 +000018528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18529for as_dir in $PATH
18530do
18531 IFS=$as_save_IFS
18532 test -z "$as_dir" && as_dir=.
18533 for ac_exec_ext in '' $ac_executable_extensions; do
18534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18535 ac_cv_prog_ac_ct_CC="gcc"
18536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18537 break 2
18538 fi
18539done
drh71eb93e2001-09-28 01:34:43 +000018540done
18541
18542fi
18543fi
18544ac_ct_CC=$ac_cv_prog_ac_ct_CC
18545if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018546 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018547echo "${ECHO_T}$ac_ct_CC" >&6
18548else
a.rottmann84e63352003-03-24 09:42:16 +000018549 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018550echo "${ECHO_T}no" >&6
18551fi
18552
18553 CC=$ac_ct_CC
18554else
18555 CC="$ac_cv_prog_CC"
drh75897232000-05-29 14:26:00 +000018556fi
18557
18558if test -z "$CC"; then
drh71eb93e2001-09-28 01:34:43 +000018559 if test -n "$ac_tool_prefix"; then
18560 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18561set dummy ${ac_tool_prefix}cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018562echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18564if test "${ac_cv_prog_CC+set}" = set; then
18565 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018566else
18567 if test -n "$CC"; then
18568 ac_cv_prog_CC="$CC" # Let the user override the test.
18569else
a.rottmann84e63352003-03-24 09:42:16 +000018570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18571for as_dir in $PATH
18572do
18573 IFS=$as_save_IFS
18574 test -z "$as_dir" && as_dir=.
18575 for ac_exec_ext in '' $ac_executable_extensions; do
18576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18577 ac_cv_prog_CC="${ac_tool_prefix}cc"
18578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18579 break 2
18580 fi
18581done
drh71eb93e2001-09-28 01:34:43 +000018582done
18583
18584fi
18585fi
18586CC=$ac_cv_prog_CC
18587if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018588 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018589echo "${ECHO_T}$CC" >&6
18590else
a.rottmann84e63352003-03-24 09:42:16 +000018591 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018592echo "${ECHO_T}no" >&6
18593fi
18594
18595fi
18596if test -z "$ac_cv_prog_CC"; then
18597 ac_ct_CC=$CC
18598 # Extract the first word of "cc", so it can be a program name with args.
18599set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018600echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18602if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18603 echo $ECHO_N "(cached) $ECHO_C" >&6
18604else
18605 if test -n "$ac_ct_CC"; then
18606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18607else
a.rottmann84e63352003-03-24 09:42:16 +000018608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18609for as_dir in $PATH
18610do
18611 IFS=$as_save_IFS
18612 test -z "$as_dir" && as_dir=.
18613 for ac_exec_ext in '' $ac_executable_extensions; do
18614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18615 ac_cv_prog_ac_ct_CC="cc"
18616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18617 break 2
18618 fi
18619done
drh71eb93e2001-09-28 01:34:43 +000018620done
18621
18622fi
18623fi
18624ac_ct_CC=$ac_cv_prog_ac_ct_CC
18625if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018626 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018627echo "${ECHO_T}$ac_ct_CC" >&6
18628else
a.rottmann84e63352003-03-24 09:42:16 +000018629 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018630echo "${ECHO_T}no" >&6
18631fi
18632
18633 CC=$ac_ct_CC
18634else
18635 CC="$ac_cv_prog_CC"
18636fi
18637
18638fi
18639if test -z "$CC"; then
18640 # Extract the first word of "cc", so it can be a program name with args.
18641set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018642echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18644if test "${ac_cv_prog_CC+set}" = set; then
18645 echo $ECHO_N "(cached) $ECHO_C" >&6
18646else
18647 if test -n "$CC"; then
18648 ac_cv_prog_CC="$CC" # Let the user override the test.
18649else
drh75897232000-05-29 14:26:00 +000018650 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +000018651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18652for as_dir in $PATH
18653do
18654 IFS=$as_save_IFS
18655 test -z "$as_dir" && as_dir=.
18656 for ac_exec_ext in '' $ac_executable_extensions; do
18657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18658 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18659 ac_prog_rejected=yes
18660 continue
18661 fi
18662 ac_cv_prog_CC="cc"
18663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18664 break 2
18665 fi
18666done
drh71eb93e2001-09-28 01:34:43 +000018667done
18668
drh75897232000-05-29 14:26:00 +000018669if test $ac_prog_rejected = yes; then
18670 # We found a bogon in the path, so make sure we never use it.
18671 set dummy $ac_cv_prog_CC
18672 shift
drh71eb93e2001-09-28 01:34:43 +000018673 if test $# != 0; then
drh75897232000-05-29 14:26:00 +000018674 # We chose a different compiler from the bogus one.
18675 # However, it has the same basename, so the bogon will be chosen
18676 # first if we set CC to just the basename; use the full file name.
18677 shift
a.rottmann84e63352003-03-24 09:42:16 +000018678 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh75897232000-05-29 14:26:00 +000018679 fi
18680fi
18681fi
18682fi
drh71eb93e2001-09-28 01:34:43 +000018683CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000018684if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018685 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018686echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000018687else
a.rottmann84e63352003-03-24 09:42:16 +000018688 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018689echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000018690fi
18691
drh71eb93e2001-09-28 01:34:43 +000018692fi
18693if test -z "$CC"; then
18694 if test -n "$ac_tool_prefix"; then
18695 for ac_prog in cl
18696 do
18697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18698set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018699echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18701if test "${ac_cv_prog_CC+set}" = set; then
18702 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018703else
18704 if test -n "$CC"; then
18705 ac_cv_prog_CC="$CC" # Let the user override the test.
18706else
a.rottmann84e63352003-03-24 09:42:16 +000018707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18708for as_dir in $PATH
18709do
18710 IFS=$as_save_IFS
18711 test -z "$as_dir" && as_dir=.
18712 for ac_exec_ext in '' $ac_executable_extensions; do
18713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18714 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18716 break 2
18717 fi
18718done
drh71eb93e2001-09-28 01:34:43 +000018719done
18720
drh75897232000-05-29 14:26:00 +000018721fi
18722fi
drh71eb93e2001-09-28 01:34:43 +000018723CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000018724if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018725 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018726echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000018727else
a.rottmann84e63352003-03-24 09:42:16 +000018728 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018729echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000018730fi
18731
drh71eb93e2001-09-28 01:34:43 +000018732 test -n "$CC" && break
18733 done
18734fi
18735if test -z "$CC"; then
18736 ac_ct_CC=$CC
18737 for ac_prog in cl
18738do
18739 # Extract the first word of "$ac_prog", so it can be a program name with args.
18740set dummy $ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018741echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18743if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18744 echo $ECHO_N "(cached) $ECHO_C" >&6
18745else
18746 if test -n "$ac_ct_CC"; then
18747 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18748else
a.rottmann84e63352003-03-24 09:42:16 +000018749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18750for as_dir in $PATH
18751do
18752 IFS=$as_save_IFS
18753 test -z "$as_dir" && as_dir=.
18754 for ac_exec_ext in '' $ac_executable_extensions; do
18755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18756 ac_cv_prog_ac_ct_CC="$ac_prog"
18757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18758 break 2
18759 fi
18760done
drh71eb93e2001-09-28 01:34:43 +000018761done
drh75897232000-05-29 14:26:00 +000018762
drh71eb93e2001-09-28 01:34:43 +000018763fi
18764fi
18765ac_ct_CC=$ac_cv_prog_ac_ct_CC
18766if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018767 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018768echo "${ECHO_T}$ac_ct_CC" >&6
18769else
a.rottmann84e63352003-03-24 09:42:16 +000018770 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018771echo "${ECHO_T}no" >&6
18772fi
drh75897232000-05-29 14:26:00 +000018773
drh71eb93e2001-09-28 01:34:43 +000018774 test -n "$ac_ct_CC" && break
18775done
drh75897232000-05-29 14:26:00 +000018776
drh71eb93e2001-09-28 01:34:43 +000018777 CC=$ac_ct_CC
18778fi
18779
18780fi
18781
a.rottmann84e63352003-03-24 09:42:16 +000018782
18783test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18784See \`config.log' for more details." >&5
18785echo "$as_me: error: no acceptable C compiler found in \$PATH
18786See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +000018787 { (exit 1); exit 1; }; }
18788
18789# Provide some information about the compiler.
a.rottmann84e63352003-03-24 09:42:16 +000018790echo "$as_me:$LINENO:" \
drh71eb93e2001-09-28 01:34:43 +000018791 "checking for C compiler version" >&5
18792ac_compiler=`set X $ac_compile; echo $2`
a.rottmann84e63352003-03-24 09:42:16 +000018793{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018794 (eval $ac_compiler --version </dev/null >&5) 2>&5
18795 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018797 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +000018798{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018799 (eval $ac_compiler -v </dev/null >&5) 2>&5
18800 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018802 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +000018803{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018804 (eval $ac_compiler -V </dev/null >&5) 2>&5
18805 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018807 (exit $ac_status); }
18808
a.rottmann84e63352003-03-24 09:42:16 +000018809echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000018810echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
18811if test "${ac_cv_c_compiler_gnu+set}" = set; then
18812 echo $ECHO_N "(cached) $ECHO_C" >&6
18813else
18814 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018815/* confdefs.h. */
18816_ACEOF
18817cat confdefs.h >>conftest.$ac_ext
18818cat >>conftest.$ac_ext <<_ACEOF
18819/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000018820
drh71eb93e2001-09-28 01:34:43 +000018821int
18822main ()
18823{
18824#ifndef __GNUC__
18825 choke me
drh75897232000-05-29 14:26:00 +000018826#endif
drh75897232000-05-29 14:26:00 +000018827
drh71eb93e2001-09-28 01:34:43 +000018828 ;
18829 return 0;
18830}
18831_ACEOF
18832rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000018833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000018834 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000018835 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000018836 grep -v '^ *+' conftest.er1 >conftest.err
18837 rm -f conftest.er1
18838 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000018839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018840 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000018841 { ac_try='test -z "$ac_c_werror_flag"
18842 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000018843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18844 (eval $ac_try) 2>&5
18845 ac_status=$?
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); }; } &&
18848 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000018849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018850 (eval $ac_try) 2>&5
18851 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018853 (exit $ac_status); }; }; then
18854 ac_compiler_gnu=yes
drh75897232000-05-29 14:26:00 +000018855else
drh71eb93e2001-09-28 01:34:43 +000018856 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000018857sed 's/^/| /' conftest.$ac_ext >&5
18858
drh71eb93e2001-09-28 01:34:43 +000018859ac_compiler_gnu=no
drh75897232000-05-29 14:26:00 +000018860fi
a.rottmann964dbb12004-02-26 19:47:42 +000018861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000018862ac_cv_c_compiler_gnu=$ac_compiler_gnu
drh75897232000-05-29 14:26:00 +000018863
drh71eb93e2001-09-28 01:34:43 +000018864fi
a.rottmann84e63352003-03-24 09:42:16 +000018865echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh71eb93e2001-09-28 01:34:43 +000018866echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
18867GCC=`test $ac_compiler_gnu = yes && echo yes`
18868ac_test_CFLAGS=${CFLAGS+set}
18869ac_save_CFLAGS=$CFLAGS
18870CFLAGS="-g"
a.rottmann84e63352003-03-24 09:42:16 +000018871echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh71eb93e2001-09-28 01:34:43 +000018872echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
18873if test "${ac_cv_prog_cc_g+set}" = set; then
18874 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018875else
drh71eb93e2001-09-28 01:34:43 +000018876 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018877/* confdefs.h. */
18878_ACEOF
18879cat confdefs.h >>conftest.$ac_ext
18880cat >>conftest.$ac_ext <<_ACEOF
18881/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000018882
18883int
18884main ()
18885{
18886
18887 ;
18888 return 0;
18889}
18890_ACEOF
18891rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000018892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000018893 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000018894 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000018895 grep -v '^ *+' conftest.er1 >conftest.err
18896 rm -f conftest.er1
18897 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000018898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018899 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000018900 { ac_try='test -z "$ac_c_werror_flag"
18901 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000018902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18903 (eval $ac_try) 2>&5
18904 ac_status=$?
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); }; } &&
18907 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000018908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018909 (eval $ac_try) 2>&5
18910 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018912 (exit $ac_status); }; }; then
drh75897232000-05-29 14:26:00 +000018913 ac_cv_prog_cc_g=yes
18914else
drh71eb93e2001-09-28 01:34:43 +000018915 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000018916sed 's/^/| /' conftest.$ac_ext >&5
18917
drh71eb93e2001-09-28 01:34:43 +000018918ac_cv_prog_cc_g=no
drh75897232000-05-29 14:26:00 +000018919fi
a.rottmann964dbb12004-02-26 19:47:42 +000018920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh75897232000-05-29 14:26:00 +000018921fi
a.rottmann84e63352003-03-24 09:42:16 +000018922echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh71eb93e2001-09-28 01:34:43 +000018923echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
drh75897232000-05-29 14:26:00 +000018924if test "$ac_test_CFLAGS" = set; then
drh71eb93e2001-09-28 01:34:43 +000018925 CFLAGS=$ac_save_CFLAGS
drh75897232000-05-29 14:26:00 +000018926elif test $ac_cv_prog_cc_g = yes; then
18927 if test "$GCC" = yes; then
18928 CFLAGS="-g -O2"
18929 else
18930 CFLAGS="-g"
18931 fi
18932else
18933 if test "$GCC" = yes; then
18934 CFLAGS="-O2"
18935 else
18936 CFLAGS=
18937 fi
18938fi
a.rottmann84e63352003-03-24 09:42:16 +000018939echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
18940echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
18941if test "${ac_cv_prog_cc_stdc+set}" = set; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18943else
18944 ac_cv_prog_cc_stdc=no
18945ac_save_CC=$CC
18946cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018947/* confdefs.h. */
18948_ACEOF
18949cat confdefs.h >>conftest.$ac_ext
18950cat >>conftest.$ac_ext <<_ACEOF
18951/* end confdefs.h. */
18952#include <stdarg.h>
18953#include <stdio.h>
18954#include <sys/types.h>
18955#include <sys/stat.h>
18956/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
18957struct buf { int x; };
18958FILE * (*rcsopen) (struct buf *, struct stat *, int);
18959static char *e (p, i)
18960 char **p;
18961 int i;
18962{
18963 return p[i];
18964}
18965static char *f (char * (*g) (char **, int), char **p, ...)
18966{
18967 char *s;
18968 va_list v;
18969 va_start (v,p);
18970 s = g (p, va_arg (v,int));
18971 va_end (v);
18972 return s;
18973}
a.rottmann964dbb12004-02-26 19:47:42 +000018974
18975/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
18976 function prototypes and stuff, but not '\xHH' hex character constants.
18977 These don't provoke an error unfortunately, instead are silently treated
18978 as 'x'. The following induces an error, until -std1 is added to get
18979 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
18980 array size at least. It's necessary to write '\x00'==0 to get something
18981 that's true only with -std1. */
18982int osf4_cc_array ['\x00' == 0 ? 1 : -1];
18983
a.rottmann84e63352003-03-24 09:42:16 +000018984int test (int i, double x);
18985struct s1 {int (*f) (int a);};
18986struct s2 {int (*f) (double a);};
18987int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18988int argc;
18989char **argv;
18990int
18991main ()
18992{
18993return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
18994 ;
18995 return 0;
18996}
18997_ACEOF
18998# Don't try gcc -ansi; that turns off useful extensions and
18999# breaks some systems' header files.
19000# AIX -qlanglvl=ansi
19001# Ultrix and OSF/1 -std1
19002# HP-UX 10.20 and later -Ae
19003# HP-UX older versions -Aa -D_HPUX_SOURCE
19004# SVR4 -Xc -D__EXTENSIONS__
19005for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19006do
19007 CC="$ac_save_CC $ac_arg"
19008 rm -f conftest.$ac_objext
19009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019010 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000019011 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019012 grep -v '^ *+' conftest.er1 >conftest.err
19013 rm -f conftest.er1
19014 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019017 { ac_try='test -z "$ac_c_werror_flag"
19018 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19020 (eval $ac_try) 2>&5
19021 ac_status=$?
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; } &&
19024 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19026 (eval $ac_try) 2>&5
19027 ac_status=$?
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); }; }; then
19030 ac_cv_prog_cc_stdc=$ac_arg
19031break
19032else
19033 echo "$as_me: failed program was:" >&5
19034sed 's/^/| /' conftest.$ac_ext >&5
19035
19036fi
a.rottmann964dbb12004-02-26 19:47:42 +000019037rm -f conftest.err conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019038done
19039rm -f conftest.$ac_ext conftest.$ac_objext
19040CC=$ac_save_CC
19041
19042fi
19043
19044case "x$ac_cv_prog_cc_stdc" in
19045 x|xno)
19046 echo "$as_me:$LINENO: result: none needed" >&5
19047echo "${ECHO_T}none needed" >&6 ;;
19048 *)
19049 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19050echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19051 CC="$CC $ac_cv_prog_cc_stdc" ;;
19052esac
19053
drh71eb93e2001-09-28 01:34:43 +000019054# Some people use a C++ compiler to compile C. Since we use `exit',
19055# in C++ we need to declare it. In case someone uses the same compiler
19056# for both compiling C and C++ we need to have the C++ compiler decide
19057# the declaration of exit, since it's the most demanding environment.
19058cat >conftest.$ac_ext <<_ACEOF
19059#ifndef __cplusplus
19060 choke me
19061#endif
19062_ACEOF
19063rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019065 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019066 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019067 grep -v '^ *+' conftest.er1 >conftest.err
19068 rm -f conftest.er1
19069 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019071 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019072 { ac_try='test -z "$ac_c_werror_flag"
19073 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; } &&
19079 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019081 (eval $ac_try) 2>&5
19082 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019084 (exit $ac_status); }; }; then
19085 for ac_declaration in \
a.rottmann964dbb12004-02-26 19:47:42 +000019086 '' \
drh71eb93e2001-09-28 01:34:43 +000019087 'extern "C" void std::exit (int) throw (); using std::exit;' \
19088 'extern "C" void std::exit (int); using std::exit;' \
19089 'extern "C" void exit (int) throw ();' \
19090 'extern "C" void exit (int);' \
19091 'void exit (int);'
19092do
19093 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019094/* confdefs.h. */
19095_ACEOF
19096cat confdefs.h >>conftest.$ac_ext
19097cat >>conftest.$ac_ext <<_ACEOF
19098/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000019099$ac_declaration
a.rottmann964dbb12004-02-26 19:47:42 +000019100#include <stdlib.h>
drh71eb93e2001-09-28 01:34:43 +000019101int
19102main ()
19103{
19104exit (42);
19105 ;
19106 return 0;
19107}
19108_ACEOF
19109rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019111 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019112 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019113 grep -v '^ *+' conftest.er1 >conftest.err
19114 rm -f conftest.er1
19115 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019117 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019118 { ac_try='test -z "$ac_c_werror_flag"
19119 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; } &&
19125 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019127 (eval $ac_try) 2>&5
19128 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019130 (exit $ac_status); }; }; then
19131 :
19132else
19133 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019134sed 's/^/| /' conftest.$ac_ext >&5
19135
drh71eb93e2001-09-28 01:34:43 +000019136continue
19137fi
a.rottmann964dbb12004-02-26 19:47:42 +000019138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019139 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019140/* confdefs.h. */
19141_ACEOF
19142cat confdefs.h >>conftest.$ac_ext
19143cat >>conftest.$ac_ext <<_ACEOF
19144/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000019145$ac_declaration
19146int
19147main ()
19148{
19149exit (42);
19150 ;
19151 return 0;
19152}
19153_ACEOF
19154rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019156 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019157 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019158 grep -v '^ *+' conftest.er1 >conftest.err
19159 rm -f conftest.er1
19160 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019162 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019163 { ac_try='test -z "$ac_c_werror_flag"
19164 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19166 (eval $ac_try) 2>&5
19167 ac_status=$?
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); }; } &&
19170 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019172 (eval $ac_try) 2>&5
19173 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019175 (exit $ac_status); }; }; then
19176 break
19177else
19178 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019179sed 's/^/| /' conftest.$ac_ext >&5
19180
drh71eb93e2001-09-28 01:34:43 +000019181fi
a.rottmann964dbb12004-02-26 19:47:42 +000019182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019183done
19184rm -f conftest*
19185if test -n "$ac_declaration"; then
19186 echo '#ifdef __cplusplus' >>confdefs.h
19187 echo $ac_declaration >>confdefs.h
19188 echo '#endif' >>confdefs.h
19189fi
19190
19191else
19192 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019193sed 's/^/| /' conftest.$ac_ext >&5
19194
drh71eb93e2001-09-28 01:34:43 +000019195fi
a.rottmann964dbb12004-02-26 19:47:42 +000019196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019197ac_ext=c
19198ac_cpp='$CPP $CPPFLAGS'
19199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19201ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +000019202
xdong28f79f72003-09-23 00:35:21 +000019203 if test "$cross_compiling" = "yes"; then
19204 { { echo "$as_me:$LINENO: error: unable to find a compiler for building build tools" >&5
19205echo "$as_me: error: unable to find a compiler for building build tools" >&2;}
19206 { (exit 1); exit 1; }; }
19207 fi
drh75897232000-05-29 14:26:00 +000019208 BUILD_CC=$CC
19209 default_build_cflags=$CFLAGS
19210else
19211 BUILD_CC=$config_BUILD_CC
a.rottmann84e63352003-03-24 09:42:16 +000019212 echo "$as_me:$LINENO: checking host compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019213echo $ECHO_N "checking host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019214 CC=$BUILD_CC
a.rottmann84e63352003-03-24 09:42:16 +000019215 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000019216echo "${ECHO_T}$BUILD_CC" >&6
drh75897232000-05-29 14:26:00 +000019217fi
a.rottmann84e63352003-03-24 09:42:16 +000019218echo "$as_me:$LINENO: checking switches for the host compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019219echo $ECHO_N "checking switches for the host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019220if test "$config_BUILD_CFLAGS" != ""; then
19221 CFLAGS=$config_BUILD_CFLAGS
19222 BUILD_CFLAGS=$config_BUILD_CFLAGS
19223else
19224 BUILD_CFLAGS=$default_build_cflags
19225fi
a.rottmann84e63352003-03-24 09:42:16 +000019226echo "$as_me:$LINENO: result: $BUILD_CFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +000019227echo "${ECHO_T}$BUILD_CFLAGS" >&6
drh75897232000-05-29 14:26:00 +000019228if test "$config_BUILD_LIBS" != ""; then
19229 BUILD_LIBS=$config_BUILD_LIBS
19230fi
19231
a.rottmann84e63352003-03-24 09:42:16 +000019232
19233
19234
drh75897232000-05-29 14:26:00 +000019235##########
19236# Locate a compiler that converts C code into *.o files that run on
19237# the target machine.
19238#
a.rottmann84e63352003-03-24 09:42:16 +000019239echo "$as_me:$LINENO: checking target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019240echo $ECHO_N "checking target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019241if test "$config_TARGET_CC" != ""; then
19242 TARGET_CC=$config_TARGET_CC
19243else
19244 TARGET_CC=$BUILD_CC
19245fi
a.rottmann84e63352003-03-24 09:42:16 +000019246echo "$as_me:$LINENO: result: $TARGET_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000019247echo "${ECHO_T}$TARGET_CC" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019248echo "$as_me:$LINENO: checking switches on the target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019249echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019250if test "$config_TARGET_CFLAGS" != ""; then
19251 TARGET_CFLAGS=$config_TARGET_CFLAGS
19252else
19253 TARGET_CFLAGS=$BUILD_CFLAGS
19254fi
a.rottmann84e63352003-03-24 09:42:16 +000019255echo "$as_me:$LINENO: result: $TARGET_CFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +000019256echo "${ECHO_T}$TARGET_CFLAGS" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019257echo "$as_me:$LINENO: checking target linker" >&5
drh71eb93e2001-09-28 01:34:43 +000019258echo $ECHO_N "checking target linker... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019259if test "$config_TARGET_LINK" = ""; then
19260 TARGET_LINK=$TARGET_CC
19261else
19262 TARGET_LINK=$config_TARGET_LINK
19263fi
a.rottmann84e63352003-03-24 09:42:16 +000019264echo "$as_me:$LINENO: result: $TARGET_LINK" >&5
drh71eb93e2001-09-28 01:34:43 +000019265echo "${ECHO_T}$TARGET_LINK" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019266echo "$as_me:$LINENO: checking switches on the target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019267echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019268if test "$config_TARGET_TFLAGS" != ""; then
19269 TARGET_TFLAGS=$config_TARGET_TFLAGS
19270else
19271 TARGET_TFLAGS=$BUILD_CFLAGS
19272fi
19273if test "$config_TARGET_RANLIB" != ""; then
19274 TARGET_RANLIB=$config_TARGET_RANLIB
19275else
drh71eb93e2001-09-28 01:34:43 +000019276 if test -n "$ac_tool_prefix"; then
19277 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19278set dummy ${ac_tool_prefix}ranlib; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000019279echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000019280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19281if test "${ac_cv_prog_RANLIB+set}" = set; then
19282 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019283else
19284 if test -n "$RANLIB"; then
19285 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19286else
a.rottmann84e63352003-03-24 09:42:16 +000019287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19288for as_dir in $PATH
19289do
19290 IFS=$as_save_IFS
19291 test -z "$as_dir" && as_dir=.
19292 for ac_exec_ext in '' $ac_executable_extensions; do
19293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19294 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19296 break 2
19297 fi
19298done
drh71eb93e2001-09-28 01:34:43 +000019299done
19300
drh75897232000-05-29 14:26:00 +000019301fi
19302fi
drh71eb93e2001-09-28 01:34:43 +000019303RANLIB=$ac_cv_prog_RANLIB
drh75897232000-05-29 14:26:00 +000019304if test -n "$RANLIB"; then
a.rottmann84e63352003-03-24 09:42:16 +000019305 echo "$as_me:$LINENO: result: $RANLIB" >&5
drh71eb93e2001-09-28 01:34:43 +000019306echo "${ECHO_T}$RANLIB" >&6
drh75897232000-05-29 14:26:00 +000019307else
a.rottmann84e63352003-03-24 09:42:16 +000019308 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000019309echo "${ECHO_T}no" >&6
19310fi
19311
19312fi
19313if test -z "$ac_cv_prog_RANLIB"; then
19314 ac_ct_RANLIB=$RANLIB
19315 # Extract the first word of "ranlib", so it can be a program name with args.
19316set dummy ranlib; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000019317echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000019318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19319if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
19320 echo $ECHO_N "(cached) $ECHO_C" >&6
19321else
19322 if test -n "$ac_ct_RANLIB"; then
19323 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19324else
a.rottmann84e63352003-03-24 09:42:16 +000019325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19326for as_dir in $PATH
19327do
19328 IFS=$as_save_IFS
19329 test -z "$as_dir" && as_dir=.
19330 for ac_exec_ext in '' $ac_executable_extensions; do
19331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19332 ac_cv_prog_ac_ct_RANLIB="ranlib"
19333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19334 break 2
19335 fi
19336done
drh71eb93e2001-09-28 01:34:43 +000019337done
19338
19339 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
19340fi
19341fi
19342ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19343if test -n "$ac_ct_RANLIB"; then
a.rottmann84e63352003-03-24 09:42:16 +000019344 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
drh71eb93e2001-09-28 01:34:43 +000019345echo "${ECHO_T}$ac_ct_RANLIB" >&6
19346else
a.rottmann84e63352003-03-24 09:42:16 +000019347 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000019348echo "${ECHO_T}no" >&6
19349fi
19350
19351 RANLIB=$ac_ct_RANLIB
19352else
19353 RANLIB="$ac_cv_prog_RANLIB"
drh75897232000-05-29 14:26:00 +000019354fi
19355
19356 TARGET_RANLIB=$RANLIB
19357fi
19358if test "$config_TARGET_AR" != ""; then
drh82ad3832000-07-31 13:38:24 +000019359 TARGET_AR=$config_TARGET_AR
drh75897232000-05-29 14:26:00 +000019360else
19361 TARGET_AR='ar cr'
19362fi
a.rottmann84e63352003-03-24 09:42:16 +000019363echo "$as_me:$LINENO: result: $TARGET_TFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +000019364echo "${ECHO_T}$TARGET_TFLAGS" >&6
drh75897232000-05-29 14:26:00 +000019365
a.rottmann84e63352003-03-24 09:42:16 +000019366
19367
19368
19369
19370
19371
drh75897232000-05-29 14:26:00 +000019372# Set the $cross variable if we are cross-compiling. Make
19373# it 0 if we are not.
19374#
a.rottmann84e63352003-03-24 09:42:16 +000019375echo "$as_me:$LINENO: checking if host and target compilers are the same" >&5
drh71eb93e2001-09-28 01:34:43 +000019376echo $ECHO_N "checking if host and target compilers are the same... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019377if test "$BUILD_CC" = "$TARGET_CC"; then
19378 cross=0
a.rottmann84e63352003-03-24 09:42:16 +000019379 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +000019380echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +000019381else
19382 cross=1
a.rottmann84e63352003-03-24 09:42:16 +000019383 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000019384echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000019385fi
19386
drh297ecf12001-04-05 15:57:13 +000019387##########
dougcurrie0f290bf2004-06-21 18:57:29 +000019388# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000019389#
dougcurrie0f290bf2004-06-21 18:57:29 +000019390# Check whether --enable-threadsafe or --disable-threadsafe was given.
19391if test "${enable_threadsafe+set}" = set; then
19392 enableval="$enable_threadsafe"
drh71eb93e2001-09-28 01:34:43 +000019393
drh297ecf12001-04-05 15:57:13 +000019394else
dougcurrie0f290bf2004-06-21 18:57:29 +000019395 enable_threadsafe=no
drh71eb93e2001-09-28 01:34:43 +000019396fi;
dougcurrie0f290bf2004-06-21 18:57:29 +000019397echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
19398echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6
19399if test "$enable_threadsafe" = "no"; then
19400 THREADSAFE=0
paulb0208cc2003-04-13 18:26:49 +000019401 echo "$as_me:$LINENO: result: no" >&5
19402echo "${ECHO_T}no" >&6
19403else
dougcurrie0f290bf2004-06-21 18:57:29 +000019404 THREADSAFE=1
paulb0208cc2003-04-13 18:26:49 +000019405 echo "$as_me:$LINENO: result: yes" >&5
19406echo "${ECHO_T}yes" >&6
19407fi
19408
a.rottmann964dbb12004-02-26 19:47:42 +000019409
dougcurrie65623c72004-09-20 14:57:23 +000019410if test "$THREADSAFE" = "1"; then
19411 LIBS=""
19412
19413echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19414echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19415if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19416 echo $ECHO_N "(cached) $ECHO_C" >&6
19417else
19418 ac_check_lib_save_LIBS=$LIBS
19419LIBS="-lpthread $LIBS"
19420cat >conftest.$ac_ext <<_ACEOF
19421/* confdefs.h. */
19422_ACEOF
19423cat confdefs.h >>conftest.$ac_ext
19424cat >>conftest.$ac_ext <<_ACEOF
19425/* end confdefs.h. */
19426
19427/* Override any gcc2 internal prototype to avoid an error. */
19428#ifdef __cplusplus
19429extern "C"
19430#endif
19431/* We use char because int might match the return type of a gcc2
19432 builtin and then its argument prototype would still apply. */
19433char pthread_create ();
19434int
19435main ()
19436{
19437pthread_create ();
19438 ;
19439 return 0;
19440}
19441_ACEOF
19442rm -f conftest.$ac_objext conftest$ac_exeext
19443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19444 (eval $ac_link) 2>conftest.er1
19445 ac_status=$?
19446 grep -v '^ *+' conftest.er1 >conftest.err
19447 rm -f conftest.er1
19448 cat conftest.err >&5
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); } &&
19451 { ac_try='test -z "$ac_c_werror_flag"
19452 || test ! -s conftest.err'
19453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; } &&
19458 { ac_try='test -s conftest$ac_exeext'
19459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460 (eval $ac_try) 2>&5
19461 ac_status=$?
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; }; then
19464 ac_cv_lib_pthread_pthread_create=yes
19465else
19466 echo "$as_me: failed program was:" >&5
19467sed 's/^/| /' conftest.$ac_ext >&5
19468
19469ac_cv_lib_pthread_pthread_create=no
19470fi
19471rm -f conftest.err conftest.$ac_objext \
19472 conftest$ac_exeext conftest.$ac_ext
19473LIBS=$ac_check_lib_save_LIBS
19474fi
19475echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19476echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19477if test $ac_cv_lib_pthread_pthread_create = yes; then
19478 cat >>confdefs.h <<_ACEOF
19479#define HAVE_LIBPTHREAD 1
19480_ACEOF
19481
19482 LIBS="-lpthread $LIBS"
19483
19484fi
19485
19486 TARGET_THREAD_LIB="$LIBS"
19487 LIBS=""
19488else
19489 TARGET_THREAD_LIB=""
19490fi
19491
19492
xdong28f79f72003-09-23 00:35:21 +000019493##########
19494# Do we want to support release
19495#
19496# Check whether --enable-releasemode or --disable-releasemode was given.
19497if test "${enable_releasemode+set}" = set; then
19498 enableval="$enable_releasemode"
19499
19500else
19501 enable_releasemode=no
19502fi;
19503echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
19504echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6
19505if test "$enable_releasemode" = "no"; then
19506 ALLOWRELEASE=""
19507 echo "$as_me:$LINENO: result: no" >&5
19508echo "${ECHO_T}no" >&6
19509else
19510 ALLOWRELEASE="-release `cat VERSION`"
19511 echo "$as_me:$LINENO: result: yes" >&5
19512echo "${ECHO_T}yes" >&6
19513fi
paulb0208cc2003-04-13 18:26:49 +000019514
a.rottmann964dbb12004-02-26 19:47:42 +000019515
paulb0208cc2003-04-13 18:26:49 +000019516##########
19517# Do we want temporary databases in memory
19518#
dougcurrie0f290bf2004-06-21 18:57:29 +000019519# Check whether --enable-tempstore or --disable-tempstore was given.
19520if test "${enable_tempstore+set}" = set; then
19521 enableval="$enable_tempstore"
paulb0208cc2003-04-13 18:26:49 +000019522
19523else
dougcurrie0f290bf2004-06-21 18:57:29 +000019524 enable_tempstore=yes
paulb0208cc2003-04-13 18:26:49 +000019525fi;
19526echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
19527echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6
dougcurrie0f290bf2004-06-21 18:57:29 +000019528case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000019529 never )
paul2dc96f92003-04-20 11:46:34 +000019530 TEMP_STORE=0
paulb0208cc2003-04-13 18:26:49 +000019531 echo "$as_me:$LINENO: result: never" >&5
19532echo "${ECHO_T}never" >&6
19533 ;;
19534 no )
paul2dc96f92003-04-20 11:46:34 +000019535 TEMP_STORE=1
paulb0208cc2003-04-13 18:26:49 +000019536 echo "$as_me:$LINENO: result: no" >&5
19537echo "${ECHO_T}no" >&6
19538 ;;
19539 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000019540 TEMP_STORE=3
paulb0208cc2003-04-13 18:26:49 +000019541 echo "$as_me:$LINENO: result: always" >&5
19542echo "${ECHO_T}always" >&6
19543 ;;
19544 * )
paul2dc96f92003-04-20 11:46:34 +000019545 TEMP_STORE=2
paulb0208cc2003-04-13 18:26:49 +000019546 echo "$as_me:$LINENO: result: yes" >&5
19547echo "${ECHO_T}yes" >&6
19548 ;;
19549esac
19550
19551
19552
drh75897232000-05-29 14:26:00 +000019553###########
19554# Lots of things are different if we are compiling for Windows using
19555# the CYGWIN environment. So check for that special case and handle
19556# things accordingly.
19557#
a.rottmann84e63352003-03-24 09:42:16 +000019558echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
drh71eb93e2001-09-28 01:34:43 +000019559echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019560if test "$config_BUILD_EXEEXT" = ".exe"; then
19561 CYGWIN=yes
a.rottmann84e63352003-03-24 09:42:16 +000019562 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +000019563echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +000019564else
a.rottmann84e63352003-03-24 09:42:16 +000019565 echo "$as_me:$LINENO: result: unknown" >&5
drh71eb93e2001-09-28 01:34:43 +000019566echo "${ECHO_T}unknown" >&6
drh75897232000-05-29 14:26:00 +000019567fi
19568if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000019569
19570case $host_os in
drh71eb93e2001-09-28 01:34:43 +000019571 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000019572 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000019573esac
drh75897232000-05-29 14:26:00 +000019574
drh75897232000-05-29 14:26:00 +000019575fi
19576if test "$CYGWIN" = "yes"; then
19577 BUILD_EXEEXT=.exe
19578else
dougcurrie6194a5f2003-12-19 20:09:51 +000019579 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000019580fi
19581if test "$cross" = "0"; then
19582 TARGET_EXEEXT=$BUILD_EXEEXT
19583else
19584 TARGET_EXEEXT=$config_TARGET_EXEEXT
19585fi
19586if test "$TARGET_EXEEXT" = ".exe"; then
19587 OS_UNIX=0
19588 OS_WIN=1
19589 tclsubdir=win
dougcurrie0f290bf2004-06-21 18:57:29 +000019590 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_WIN=1"
drh75897232000-05-29 14:26:00 +000019591else
19592 OS_UNIX=1
19593 OS_WIN=0
19594 tclsubdir=unix
dougcurrie0f290bf2004-06-21 18:57:29 +000019595 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=1"
drh75897232000-05-29 14:26:00 +000019596fi
drh75897232000-05-29 14:26:00 +000019597
a.rottmann84e63352003-03-24 09:42:16 +000019598
19599
19600
19601
19602
drh75897232000-05-29 14:26:00 +000019603##########
19604# Extract generic linker options from the environment.
19605#
19606if test "$config_TARGET_LIBS" != ""; then
19607 TARGET_LIBS=$config_TARGET_LIBS
19608else
19609 TARGET_LIBS=""
19610fi
19611
a.rottmann84e63352003-03-24 09:42:16 +000019612
drh75897232000-05-29 14:26:00 +000019613##########
19614# Figure out what C libraries are required to compile Tcl programs.
19615#
19616if test "$config_TARGET_TCL_LIBS" != ""; then
19617 TARGET_TCL_LIBS="$config_TARGET_TCL_LIBS"
19618else
19619 if test "$with_tcl" != ""; then
19620 extra=`echo $with_tcl/$tclsubdir/libtcl8*.a`
19621 fi
19622 CC=$TARGET_CC
a.rottmann84e63352003-03-24 09:42:16 +000019623 echo "$as_me:$LINENO: checking for sin" >&5
drh71eb93e2001-09-28 01:34:43 +000019624echo $ECHO_N "checking for sin... $ECHO_C" >&6
19625if test "${ac_cv_func_sin+set}" = set; then
19626 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019627else
drh71eb93e2001-09-28 01:34:43 +000019628 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019629/* confdefs.h. */
19630_ACEOF
19631cat confdefs.h >>conftest.$ac_ext
19632cat >>conftest.$ac_ext <<_ACEOF
19633/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +000019634/* Define sin to an innocuous variant, in case <limits.h> declares sin.
19635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19636#define sin innocuous_sin
19637
drh75897232000-05-29 14:26:00 +000019638/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +000019639 which can conflict with char sin (); below.
19640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19641 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +000019642
a.rottmann84e63352003-03-24 09:42:16 +000019643#ifdef __STDC__
19644# include <limits.h>
19645#else
19646# include <assert.h>
19647#endif
a.rottmann964dbb12004-02-26 19:47:42 +000019648
19649#undef sin
19650
drh75897232000-05-29 14:26:00 +000019651/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +000019652#ifdef __cplusplus
19653extern "C"
a.rottmann84e63352003-03-24 09:42:16 +000019654{
drh71eb93e2001-09-28 01:34:43 +000019655#endif
drh75897232000-05-29 14:26:00 +000019656/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +000019657 builtin and then its argument prototype would still apply. */
19658char sin ();
drh75897232000-05-29 14:26:00 +000019659/* The GNU C library defines this for functions which it implements
19660 to always fail with ENOSYS. Some functions are actually named
19661 something starting with __ and the normal name is an alias. */
19662#if defined (__stub_sin) || defined (__stub___sin)
19663choke me
19664#else
a.rottmann84e63352003-03-24 09:42:16 +000019665char (*f) () = sin;
19666#endif
19667#ifdef __cplusplus
19668}
drh75897232000-05-29 14:26:00 +000019669#endif
19670
a.rottmann84e63352003-03-24 09:42:16 +000019671int
19672main ()
19673{
19674return f != sin;
drh71eb93e2001-09-28 01:34:43 +000019675 ;
19676 return 0;
19677}
19678_ACEOF
19679rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +000019680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019681 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019682 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019683 grep -v '^ *+' conftest.er1 >conftest.err
19684 rm -f conftest.er1
19685 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019687 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019688 { ac_try='test -z "$ac_c_werror_flag"
19689 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691 (eval $ac_try) 2>&5
19692 ac_status=$?
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; } &&
19695 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +000019696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019697 (eval $ac_try) 2>&5
19698 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019700 (exit $ac_status); }; }; then
19701 ac_cv_func_sin=yes
drh75897232000-05-29 14:26:00 +000019702else
drh71eb93e2001-09-28 01:34:43 +000019703 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019704sed 's/^/| /' conftest.$ac_ext >&5
19705
drh71eb93e2001-09-28 01:34:43 +000019706ac_cv_func_sin=no
drh75897232000-05-29 14:26:00 +000019707fi
a.rottmann964dbb12004-02-26 19:47:42 +000019708rm -f conftest.err conftest.$ac_objext \
19709 conftest$ac_exeext conftest.$ac_ext
drh75897232000-05-29 14:26:00 +000019710fi
a.rottmann84e63352003-03-24 09:42:16 +000019711echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
drh71eb93e2001-09-28 01:34:43 +000019712echo "${ECHO_T}$ac_cv_func_sin" >&6
19713if test $ac_cv_func_sin = yes; then
drh75897232000-05-29 14:26:00 +000019714 LIBS=""
19715else
drh71eb93e2001-09-28 01:34:43 +000019716 LIBS="-lm"
drh75897232000-05-29 14:26:00 +000019717fi
19718
a.rottmann84e63352003-03-24 09:42:16 +000019719
19720echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh71eb93e2001-09-28 01:34:43 +000019721echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19722if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19723 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019724else
drh71eb93e2001-09-28 01:34:43 +000019725 ac_check_lib_save_LIBS=$LIBS
drh75897232000-05-29 14:26:00 +000019726LIBS="-ldl $LIBS"
drh71eb93e2001-09-28 01:34:43 +000019727cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019728/* confdefs.h. */
19729_ACEOF
19730cat confdefs.h >>conftest.$ac_ext
19731cat >>conftest.$ac_ext <<_ACEOF
19732/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000019733
drh75897232000-05-29 14:26:00 +000019734/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +000019735#ifdef __cplusplus
19736extern "C"
19737#endif
drh75897232000-05-29 14:26:00 +000019738/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +000019739 builtin and then its argument prototype would still apply. */
19740char dlopen ();
19741int
19742main ()
19743{
19744dlopen ();
19745 ;
19746 return 0;
19747}
19748_ACEOF
19749rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +000019750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019751 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019752 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019753 grep -v '^ *+' conftest.er1 >conftest.err
19754 rm -f conftest.er1
19755 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019757 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019758 { ac_try='test -z "$ac_c_werror_flag"
19759 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761 (eval $ac_try) 2>&5
19762 ac_status=$?
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; } &&
19765 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +000019766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019767 (eval $ac_try) 2>&5
19768 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019770 (exit $ac_status); }; }; then
19771 ac_cv_lib_dl_dlopen=yes
drh75897232000-05-29 14:26:00 +000019772else
drh71eb93e2001-09-28 01:34:43 +000019773 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019774sed 's/^/| /' conftest.$ac_ext >&5
19775
drh71eb93e2001-09-28 01:34:43 +000019776ac_cv_lib_dl_dlopen=no
drh75897232000-05-29 14:26:00 +000019777fi
a.rottmann964dbb12004-02-26 19:47:42 +000019778rm -f conftest.err conftest.$ac_objext \
19779 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019780LIBS=$ac_check_lib_save_LIBS
drh75897232000-05-29 14:26:00 +000019781fi
a.rottmann84e63352003-03-24 09:42:16 +000019782echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +000019783echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19784if test $ac_cv_lib_dl_dlopen = yes; then
a.rottmann84e63352003-03-24 09:42:16 +000019785 cat >>confdefs.h <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000019786#define HAVE_LIBDL 1
a.rottmann84e63352003-03-24 09:42:16 +000019787_ACEOF
drh75897232000-05-29 14:26:00 +000019788
19789 LIBS="-ldl $LIBS"
19790
drh75897232000-05-29 14:26:00 +000019791fi
19792
19793 otherlibs=$LIBS
19794 if test "$extra" != ""; then
19795 LIBS=$extra
drh71eb93e2001-09-28 01:34:43 +000019796 else
drh75897232000-05-29 14:26:00 +000019797 LIBS=""
a.rottmann84e63352003-03-24 09:42:16 +000019798 echo "$as_me:$LINENO: checking for library containing Tcl_Init" >&5
drh71eb93e2001-09-28 01:34:43 +000019799echo $ECHO_N "checking for library containing Tcl_Init... $ECHO_C" >&6
19800if test "${ac_cv_search_Tcl_Init+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019802else
drh71eb93e2001-09-28 01:34:43 +000019803 ac_func_search_save_LIBS=$LIBS
19804ac_cv_search_Tcl_Init=no
19805cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019806/* confdefs.h. */
19807_ACEOF
19808cat confdefs.h >>conftest.$ac_ext
19809cat >>conftest.$ac_ext <<_ACEOF
19810/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000019811
drh71eb93e2001-09-28 01:34:43 +000019812/* Override any gcc2 internal prototype to avoid an error. */
19813#ifdef __cplusplus
19814extern "C"
19815#endif
19816/* We use char because int might match the return type of a gcc2
19817 builtin and then its argument prototype would still apply. */
19818char Tcl_Init ();
19819int
19820main ()
19821{
19822Tcl_Init ();
19823 ;
19824 return 0;
19825}
19826_ACEOF
19827rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +000019828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019829 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019830 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019831 grep -v '^ *+' conftest.er1 >conftest.err
19832 rm -f conftest.er1
19833 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019835 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019836 { ac_try='test -z "$ac_c_werror_flag"
19837 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839 (eval $ac_try) 2>&5
19840 ac_status=$?
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; } &&
19843 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +000019844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019845 (eval $ac_try) 2>&5
19846 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019848 (exit $ac_status); }; }; then
drh75897232000-05-29 14:26:00 +000019849 ac_cv_search_Tcl_Init="none required"
19850else
drh71eb93e2001-09-28 01:34:43 +000019851 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019852sed 's/^/| /' conftest.$ac_ext >&5
19853
drh75897232000-05-29 14:26:00 +000019854fi
a.rottmann964dbb12004-02-26 19:47:42 +000019855rm -f conftest.err conftest.$ac_objext \
19856 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019857if test "$ac_cv_search_Tcl_Init" = no; then
dougcurrie6194a5f2003-12-19 20:09:51 +000019858 for ac_lib in tcl8.4 tcl8.3 tcl84 tcl83 tcl; do
drh71eb93e2001-09-28 01:34:43 +000019859 LIBS="-l$ac_lib $otherlibs $ac_func_search_save_LIBS"
19860 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019861/* confdefs.h. */
19862_ACEOF
19863cat confdefs.h >>conftest.$ac_ext
19864cat >>conftest.$ac_ext <<_ACEOF
19865/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000019866
drh71eb93e2001-09-28 01:34:43 +000019867/* Override any gcc2 internal prototype to avoid an error. */
19868#ifdef __cplusplus
19869extern "C"
19870#endif
19871/* We use char because int might match the return type of a gcc2
19872 builtin and then its argument prototype would still apply. */
19873char Tcl_Init ();
19874int
19875main ()
19876{
19877Tcl_Init ();
19878 ;
19879 return 0;
19880}
19881_ACEOF
19882rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +000019883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019884 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019885 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019886 grep -v '^ *+' conftest.er1 >conftest.err
19887 rm -f conftest.er1
19888 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019890 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019891 { ac_try='test -z "$ac_c_werror_flag"
19892 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19894 (eval $ac_try) 2>&5
19895 ac_status=$?
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); }; } &&
19898 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +000019899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019900 (eval $ac_try) 2>&5
19901 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019903 (exit $ac_status); }; }; then
19904 ac_cv_search_Tcl_Init="-l$ac_lib"
drh75897232000-05-29 14:26:00 +000019905break
19906else
drh71eb93e2001-09-28 01:34:43 +000019907 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019908sed 's/^/| /' conftest.$ac_ext >&5
19909
drh75897232000-05-29 14:26:00 +000019910fi
a.rottmann964dbb12004-02-26 19:47:42 +000019911rm -f conftest.err conftest.$ac_objext \
19912 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019913 done
19914fi
19915LIBS=$ac_func_search_save_LIBS
19916fi
a.rottmann84e63352003-03-24 09:42:16 +000019917echo "$as_me:$LINENO: result: $ac_cv_search_Tcl_Init" >&5
drh71eb93e2001-09-28 01:34:43 +000019918echo "${ECHO_T}$ac_cv_search_Tcl_Init" >&6
19919if test "$ac_cv_search_Tcl_Init" != no; then
19920 test "$ac_cv_search_Tcl_Init" = "none required" || LIBS="$ac_cv_search_Tcl_Init $LIBS"
19921
drh75897232000-05-29 14:26:00 +000019922fi
19923
drh75897232000-05-29 14:26:00 +000019924 fi
19925 TARGET_TCL_LIBS="$LIBS $otherlibs"
19926fi
19927
a.rottmann84e63352003-03-24 09:42:16 +000019928
drh75897232000-05-29 14:26:00 +000019929##########
19930# Figure out where to get the TCL header files.
19931#
a.rottmann84e63352003-03-24 09:42:16 +000019932echo "$as_me:$LINENO: checking TCL header files" >&5
drh71eb93e2001-09-28 01:34:43 +000019933echo $ECHO_N "checking TCL header files... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019934found=no
19935if test "$config_TARGET_TCL_INC" != ""; then
19936 TARGET_TCL_INC=$config_TARGET_TCL_INC
19937 found=yes
19938else
19939 if test "$with_tcl" != ""; then
19940 TARGET_TCL_INC="-I$with_tcl/generic -I$with_tcl/$tclsubdir"
19941 found=yes
19942 else
19943 TARGET_TCL_INC=""
19944 found=no
19945 fi
19946fi
19947if test "$found" = "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000019948 echo "$as_me:$LINENO: result: $TARGET_TCL_INC" >&5
drh71eb93e2001-09-28 01:34:43 +000019949echo "${ECHO_T}$TARGET_TCL_INC" >&6
drh75897232000-05-29 14:26:00 +000019950else
a.rottmann84e63352003-03-24 09:42:16 +000019951 echo "$as_me:$LINENO: result: not specified: still searching..." >&5
drh71eb93e2001-09-28 01:34:43 +000019952echo "${ECHO_T}not specified: still searching..." >&6
a.rottmann84e63352003-03-24 09:42:16 +000019953 if test "${ac_cv_header_tcl_h+set}" = set; then
19954 echo "$as_me:$LINENO: checking for tcl.h" >&5
drh71eb93e2001-09-28 01:34:43 +000019955echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
19956if test "${ac_cv_header_tcl_h+set}" = set; then
19957 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019958fi
19959echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
19960echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
drh75897232000-05-29 14:26:00 +000019961else
a.rottmann84e63352003-03-24 09:42:16 +000019962 # Is the header compilable?
19963echo "$as_me:$LINENO: checking tcl.h usability" >&5
19964echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
19965cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019966/* confdefs.h. */
19967_ACEOF
19968cat confdefs.h >>conftest.$ac_ext
19969cat >>conftest.$ac_ext <<_ACEOF
19970/* end confdefs.h. */
19971$ac_includes_default
drh75897232000-05-29 14:26:00 +000019972#include <tcl.h>
drh71eb93e2001-09-28 01:34:43 +000019973_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019974rm -f conftest.$ac_objext
19975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019976 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000019977 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019978 grep -v '^ *+' conftest.er1 >conftest.err
19979 rm -f conftest.er1
19980 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019983 { ac_try='test -z "$ac_c_werror_flag"
19984 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986 (eval $ac_try) 2>&5
19987 ac_status=$?
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; } &&
19990 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19992 (eval $ac_try) 2>&5
19993 ac_status=$?
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); }; }; then
19996 ac_header_compiler=yes
19997else
19998 echo "$as_me: failed program was:" >&5
19999sed 's/^/| /' conftest.$ac_ext >&5
20000
20001ac_header_compiler=no
20002fi
a.rottmann964dbb12004-02-26 19:47:42 +000020003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000020004echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20005echo "${ECHO_T}$ac_header_compiler" >&6
20006
20007# Is the header present?
20008echo "$as_me:$LINENO: checking tcl.h presence" >&5
20009echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
20010cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020011/* confdefs.h. */
20012_ACEOF
20013cat confdefs.h >>conftest.$ac_ext
20014cat >>conftest.$ac_ext <<_ACEOF
20015/* end confdefs.h. */
20016#include <tcl.h>
20017_ACEOF
20018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
drh71eb93e2001-09-28 01:34:43 +000020019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20020 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000020021 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +000020022 rm -f conftest.er1
20023 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020025 (exit $ac_status); } >/dev/null; then
20026 if test -s conftest.err; then
20027 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +000020028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
drh71eb93e2001-09-28 01:34:43 +000020029 else
20030 ac_cpp_err=
20031 fi
drh75897232000-05-29 14:26:00 +000020032else
drh71eb93e2001-09-28 01:34:43 +000020033 ac_cpp_err=yes
20034fi
20035if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +000020036 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +000020037else
20038 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020039sed 's/^/| /' conftest.$ac_ext >&5
20040
20041 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +000020042fi
drh71eb93e2001-09-28 01:34:43 +000020043rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000020044echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20045echo "${ECHO_T}$ac_header_preproc" >&6
20046
20047# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +000020048case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20049 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +000020050 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20051echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020052 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
20053echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
20054 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +000020055 ;;
a.rottmann964dbb12004-02-26 19:47:42 +000020056 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +000020057 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
20058echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020059 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
20060echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
20061 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
20062echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
20063 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
20064echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000020065 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
20066echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020067 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
20068echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000020069 (
20070 cat <<\_ASBOX
a.rottmann964dbb12004-02-26 19:47:42 +000020071## ------------------------------------------ ##
20072## Report this to the AC_PACKAGE_NAME lists. ##
20073## ------------------------------------------ ##
a.rottmann84e63352003-03-24 09:42:16 +000020074_ASBOX
20075 ) |
20076 sed "s/^/$as_me: WARNING: /" >&2
20077 ;;
20078esac
20079echo "$as_me:$LINENO: checking for tcl.h" >&5
20080echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
20081if test "${ac_cv_header_tcl_h+set}" = set; then
20082 echo $ECHO_N "(cached) $ECHO_C" >&6
20083else
20084 ac_cv_header_tcl_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +000020085fi
a.rottmann84e63352003-03-24 09:42:16 +000020086echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
drh71eb93e2001-09-28 01:34:43 +000020087echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
a.rottmann84e63352003-03-24 09:42:16 +000020088
20089fi
drh71eb93e2001-09-28 01:34:43 +000020090if test $ac_cv_header_tcl_h = yes; then
drh75897232000-05-29 14:26:00 +000020091 found=yes
drh75897232000-05-29 14:26:00 +000020092fi
20093
a.rottmann84e63352003-03-24 09:42:16 +000020094
drh75897232000-05-29 14:26:00 +000020095fi
20096if test "$found" = "no"; then
drhfdc99e92000-09-29 15:15:51 +000020097 for dir in /usr/local /usr/X11 /usr/X11R6 /usr/pkg /usr/contrib /usr; do
drh71eb93e2001-09-28 01:34:43 +000020098 as_ac_File=`echo "ac_cv_file_$dir/include/tcl.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +000020099echo "$as_me:$LINENO: checking for $dir/include/tcl.h" >&5
drh71eb93e2001-09-28 01:34:43 +000020100echo $ECHO_N "checking for $dir/include/tcl.h... $ECHO_C" >&6
20101if eval "test \"\${$as_ac_File+set}\" = set"; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000020103else
20104 test "$cross_compiling" = yes &&
20105 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20106echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20107 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +000020108if test -r "$dir/include/tcl.h"; then
20109 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000020110else
drh71eb93e2001-09-28 01:34:43 +000020111 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000020112fi
20113fi
a.rottmann84e63352003-03-24 09:42:16 +000020114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +000020115echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
20116if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000020117 found=yes
drh75897232000-05-29 14:26:00 +000020118fi
20119
20120 if test "$found" = "yes"; then
20121 TARGET_TCL_INC="-I$dir/include"
20122 break
20123 fi
20124 done
20125fi
drh6d313162000-09-21 13:01:35 +000020126if test "$found" = "no"; then
20127 TARGET_TCL_INC="-DNO_TCL=1"
20128fi
drh75897232000-05-29 14:26:00 +000020129
a.rottmann84e63352003-03-24 09:42:16 +000020130
drh75897232000-05-29 14:26:00 +000020131##########
20132# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000020133# that use "readline()" library.
20134#
20135if test "$config_TARGET_READLINE_LIBS" != ""; then
20136 TARGET_READLINE_LIBS="$config_TARGET_READLINE_LIBS"
20137else
20138 CC=$TARGET_CC
20139 LIBS=""
paul38372372003-04-22 08:04:49 +000020140 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
20141echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
20142if test "${ac_cv_search_tgetent+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +000020143 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000020144else
drh71eb93e2001-09-28 01:34:43 +000020145 ac_func_search_save_LIBS=$LIBS
paul38372372003-04-22 08:04:49 +000020146ac_cv_search_tgetent=no
20147cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000020148/* confdefs.h. */
20149_ACEOF
20150cat confdefs.h >>conftest.$ac_ext
20151cat >>conftest.$ac_ext <<_ACEOF
20152/* end confdefs.h. */
20153
20154/* Override any gcc2 internal prototype to avoid an error. */
20155#ifdef __cplusplus
20156extern "C"
20157#endif
20158/* We use char because int might match the return type of a gcc2
20159 builtin and then its argument prototype would still apply. */
20160char tgetent ();
20161int
20162main ()
20163{
20164tgetent ();
20165 ;
20166 return 0;
20167}
20168_ACEOF
20169rm -f conftest.$ac_objext conftest$ac_exeext
20170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000020171 (eval $ac_link) 2>conftest.er1
paul38372372003-04-22 08:04:49 +000020172 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020173 grep -v '^ *+' conftest.er1 >conftest.err
20174 rm -f conftest.er1
20175 cat conftest.err >&5
paul38372372003-04-22 08:04:49 +000020176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000020178 { ac_try='test -z "$ac_c_werror_flag"
20179 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000020180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20181 (eval $ac_try) 2>&5
20182 ac_status=$?
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); }; } &&
20185 { ac_try='test -s conftest$ac_exeext'
paul38372372003-04-22 08:04:49 +000020186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187 (eval $ac_try) 2>&5
20188 ac_status=$?
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; }; then
20191 ac_cv_search_tgetent="none required"
20192else
20193 echo "$as_me: failed program was:" >&5
20194sed 's/^/| /' conftest.$ac_ext >&5
20195
20196fi
a.rottmann964dbb12004-02-26 19:47:42 +000020197rm -f conftest.err conftest.$ac_objext \
20198 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000020199if test "$ac_cv_search_tgetent" = no; then
20200 for ac_lib in readline ncurses curses termcap; do
20201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20202 cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000020203/* confdefs.h. */
20204_ACEOF
20205cat confdefs.h >>conftest.$ac_ext
20206cat >>conftest.$ac_ext <<_ACEOF
20207/* end confdefs.h. */
20208
20209/* Override any gcc2 internal prototype to avoid an error. */
20210#ifdef __cplusplus
20211extern "C"
20212#endif
20213/* We use char because int might match the return type of a gcc2
20214 builtin and then its argument prototype would still apply. */
20215char tgetent ();
20216int
20217main ()
20218{
20219tgetent ();
20220 ;
20221 return 0;
20222}
20223_ACEOF
20224rm -f conftest.$ac_objext conftest$ac_exeext
20225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000020226 (eval $ac_link) 2>conftest.er1
paul38372372003-04-22 08:04:49 +000020227 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
paul38372372003-04-22 08:04:49 +000020231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000020233 { ac_try='test -z "$ac_c_werror_flag"
20234 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000020235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236 (eval $ac_try) 2>&5
20237 ac_status=$?
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; } &&
20240 { ac_try='test -s conftest$ac_exeext'
paul38372372003-04-22 08:04:49 +000020241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20246 ac_cv_search_tgetent="-l$ac_lib"
20247break
20248else
20249 echo "$as_me: failed program was:" >&5
20250sed 's/^/| /' conftest.$ac_ext >&5
20251
20252fi
a.rottmann964dbb12004-02-26 19:47:42 +000020253rm -f conftest.err conftest.$ac_objext \
20254 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000020255 done
20256fi
20257LIBS=$ac_func_search_save_LIBS
20258fi
20259echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
20260echo "${ECHO_T}$ac_cv_search_tgetent" >&6
20261if test "$ac_cv_search_tgetent" != no; then
20262 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
20263
20264fi
20265
20266
20267echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20268echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20269if test "${ac_cv_lib_readline_readline+set}" = set; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
20271else
20272 ac_check_lib_save_LIBS=$LIBS
20273LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000020274cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020275/* confdefs.h. */
20276_ACEOF
20277cat confdefs.h >>conftest.$ac_ext
20278cat >>conftest.$ac_ext <<_ACEOF
20279/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000020280
drh71eb93e2001-09-28 01:34:43 +000020281/* Override any gcc2 internal prototype to avoid an error. */
20282#ifdef __cplusplus
20283extern "C"
20284#endif
20285/* We use char because int might match the return type of a gcc2
20286 builtin and then its argument prototype would still apply. */
20287char readline ();
20288int
20289main ()
20290{
20291readline ();
20292 ;
20293 return 0;
20294}
20295_ACEOF
20296rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +000020297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000020298 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000020299 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020300 grep -v '^ *+' conftest.er1 >conftest.err
20301 rm -f conftest.er1
20302 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020304 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000020305 { ac_try='test -z "$ac_c_werror_flag"
20306 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000020307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308 (eval $ac_try) 2>&5
20309 ac_status=$?
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; } &&
20312 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +000020313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000020314 (eval $ac_try) 2>&5
20315 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000020316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020317 (exit $ac_status); }; }; then
paul38372372003-04-22 08:04:49 +000020318 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000020319else
drh71eb93e2001-09-28 01:34:43 +000020320 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020321sed 's/^/| /' conftest.$ac_ext >&5
20322
paul38372372003-04-22 08:04:49 +000020323ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000020324fi
a.rottmann964dbb12004-02-26 19:47:42 +000020325rm -f conftest.err conftest.$ac_objext \
20326 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000020327LIBS=$ac_check_lib_save_LIBS
20328fi
20329echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20330echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20331if test $ac_cv_lib_readline_readline = yes; then
20332 cat >>confdefs.h <<_ACEOF
20333#define HAVE_LIBREADLINE 1
a.rottmann84e63352003-03-24 09:42:16 +000020334_ACEOF
drh75897232000-05-29 14:26:00 +000020335
paul38372372003-04-22 08:04:49 +000020336 LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000020337
drh75897232000-05-29 14:26:00 +000020338fi
20339
drh75897232000-05-29 14:26:00 +000020340 TARGET_READLINE_LIBS="$LIBS"
20341fi
20342
a.rottmann84e63352003-03-24 09:42:16 +000020343
drh75897232000-05-29 14:26:00 +000020344##########
20345# Figure out where to get the READLINE header files.
20346#
a.rottmann84e63352003-03-24 09:42:16 +000020347echo "$as_me:$LINENO: checking readline header files" >&5
drh71eb93e2001-09-28 01:34:43 +000020348echo $ECHO_N "checking readline header files... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000020349found=no
20350if test "$config_TARGET_READLINE_INC" != ""; then
20351 TARGET_READLINE_INC=$config_TARGET_READLINE_INC
20352 found=yes
20353fi
20354if test "$found" = "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000020355 echo "$as_me:$LINENO: result: $TARGET_READLINE_INC" >&5
drh71eb93e2001-09-28 01:34:43 +000020356echo "${ECHO_T}$TARGET_READLINE_INC" >&6
drh75897232000-05-29 14:26:00 +000020357else
a.rottmann84e63352003-03-24 09:42:16 +000020358 echo "$as_me:$LINENO: result: not specified: still searching..." >&5
drh71eb93e2001-09-28 01:34:43 +000020359echo "${ECHO_T}not specified: still searching..." >&6
a.rottmann84e63352003-03-24 09:42:16 +000020360 if test "${ac_cv_header_readline_h+set}" = set; then
20361 echo "$as_me:$LINENO: checking for readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +000020362echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
20363if test "${ac_cv_header_readline_h+set}" = set; then
20364 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000020365fi
20366echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
20367echo "${ECHO_T}$ac_cv_header_readline_h" >&6
drh75897232000-05-29 14:26:00 +000020368else
a.rottmann84e63352003-03-24 09:42:16 +000020369 # Is the header compilable?
20370echo "$as_me:$LINENO: checking readline.h usability" >&5
20371echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6
20372cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020373/* confdefs.h. */
20374_ACEOF
20375cat confdefs.h >>conftest.$ac_ext
20376cat >>conftest.$ac_ext <<_ACEOF
20377/* end confdefs.h. */
20378$ac_includes_default
drh75897232000-05-29 14:26:00 +000020379#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +000020380_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020381rm -f conftest.$ac_objext
20382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000020383 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000020384 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020385 grep -v '^ *+' conftest.er1 >conftest.err
20386 rm -f conftest.er1
20387 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000020390 { ac_try='test -z "$ac_c_werror_flag"
20391 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000020392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20393 (eval $ac_try) 2>&5
20394 ac_status=$?
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }; } &&
20397 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000020398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20399 (eval $ac_try) 2>&5
20400 ac_status=$?
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); }; }; then
20403 ac_header_compiler=yes
20404else
20405 echo "$as_me: failed program was:" >&5
20406sed 's/^/| /' conftest.$ac_ext >&5
20407
20408ac_header_compiler=no
20409fi
a.rottmann964dbb12004-02-26 19:47:42 +000020410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000020411echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20412echo "${ECHO_T}$ac_header_compiler" >&6
20413
20414# Is the header present?
20415echo "$as_me:$LINENO: checking readline.h presence" >&5
20416echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6
20417cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020418/* confdefs.h. */
20419_ACEOF
20420cat confdefs.h >>conftest.$ac_ext
20421cat >>conftest.$ac_ext <<_ACEOF
20422/* end confdefs.h. */
20423#include <readline.h>
20424_ACEOF
20425if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
drh71eb93e2001-09-28 01:34:43 +000020426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20427 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000020428 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +000020429 rm -f conftest.er1
20430 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020432 (exit $ac_status); } >/dev/null; then
20433 if test -s conftest.err; then
20434 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +000020435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
drh71eb93e2001-09-28 01:34:43 +000020436 else
20437 ac_cpp_err=
20438 fi
drh75897232000-05-29 14:26:00 +000020439else
drh71eb93e2001-09-28 01:34:43 +000020440 ac_cpp_err=yes
20441fi
20442if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +000020443 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +000020444else
20445 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020446sed 's/^/| /' conftest.$ac_ext >&5
20447
20448 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +000020449fi
drh71eb93e2001-09-28 01:34:43 +000020450rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000020451echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20452echo "${ECHO_T}$ac_header_preproc" >&6
20453
20454# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +000020455case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20456 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +000020457 { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
20458echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020459 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
20460echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
20461 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +000020462 ;;
a.rottmann964dbb12004-02-26 19:47:42 +000020463 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +000020464 { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
20465echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020466 { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
20467echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
20468 { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
20469echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
20470 { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
20471echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000020472 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
20473echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020474 { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
20475echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000020476 (
20477 cat <<\_ASBOX
a.rottmann964dbb12004-02-26 19:47:42 +000020478## ------------------------------------------ ##
20479## Report this to the AC_PACKAGE_NAME lists. ##
20480## ------------------------------------------ ##
a.rottmann84e63352003-03-24 09:42:16 +000020481_ASBOX
20482 ) |
20483 sed "s/^/$as_me: WARNING: /" >&2
20484 ;;
20485esac
20486echo "$as_me:$LINENO: checking for readline.h" >&5
20487echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
20488if test "${ac_cv_header_readline_h+set}" = set; then
20489 echo $ECHO_N "(cached) $ECHO_C" >&6
20490else
20491 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +000020492fi
a.rottmann84e63352003-03-24 09:42:16 +000020493echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
drh71eb93e2001-09-28 01:34:43 +000020494echo "${ECHO_T}$ac_cv_header_readline_h" >&6
a.rottmann84e63352003-03-24 09:42:16 +000020495
20496fi
drh71eb93e2001-09-28 01:34:43 +000020497if test $ac_cv_header_readline_h = yes; then
drh75897232000-05-29 14:26:00 +000020498 found=yes
drh75897232000-05-29 14:26:00 +000020499fi
20500
a.rottmann84e63352003-03-24 09:42:16 +000020501
drh75897232000-05-29 14:26:00 +000020502fi
20503if test "$found" = "no"; then
dougcurrie6194a5f2003-12-19 20:09:51 +000020504 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
drh71eb93e2001-09-28 01:34:43 +000020505 as_ac_File=`echo "ac_cv_file_$dir/include/readline.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +000020506echo "$as_me:$LINENO: checking for $dir/include/readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +000020507echo $ECHO_N "checking for $dir/include/readline.h... $ECHO_C" >&6
20508if eval "test \"\${$as_ac_File+set}\" = set"; then
20509 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000020510else
20511 test "$cross_compiling" = yes &&
20512 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20513echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20514 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +000020515if test -r "$dir/include/readline.h"; then
20516 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000020517else
drh71eb93e2001-09-28 01:34:43 +000020518 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000020519fi
20520fi
a.rottmann84e63352003-03-24 09:42:16 +000020521echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +000020522echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
20523if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000020524 found=yes
drh75897232000-05-29 14:26:00 +000020525fi
20526
20527 if test "$found" = "yes"; then
20528 TARGET_READLINE_INC="-I$dir/include"
20529 break
20530 fi
drh71eb93e2001-09-28 01:34:43 +000020531 as_ac_File=`echo "ac_cv_file_$dir/include/readline/readline.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +000020532echo "$as_me:$LINENO: checking for $dir/include/readline/readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +000020533echo $ECHO_N "checking for $dir/include/readline/readline.h... $ECHO_C" >&6
20534if eval "test \"\${$as_ac_File+set}\" = set"; then
20535 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000020536else
20537 test "$cross_compiling" = yes &&
20538 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20539echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20540 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +000020541if test -r "$dir/include/readline/readline.h"; then
20542 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000020543else
drh71eb93e2001-09-28 01:34:43 +000020544 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000020545fi
20546fi
a.rottmann84e63352003-03-24 09:42:16 +000020547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +000020548echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
20549if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000020550 found=yes
drh75897232000-05-29 14:26:00 +000020551fi
20552
20553 if test "$found" = "yes"; then
20554 TARGET_READLINE_INC="-I$dir/include/readline"
20555 break
20556 fi
20557 done
20558fi
20559if test "$found" = "yes"; then
drh82ad3832000-07-31 13:38:24 +000020560 if test "$TARGET_READLINE_LIBS" = ""; then
20561 TARGET_HAVE_READLINE=0
20562 else
20563 TARGET_HAVE_READLINE=1
20564 fi
drh75897232000-05-29 14:26:00 +000020565else
20566 TARGET_HAVE_READLINE=0
20567fi
20568
a.rottmann84e63352003-03-24 09:42:16 +000020569
20570
drh75897232000-05-29 14:26:00 +000020571#########
drh2dfbbca2000-07-28 14:32:48 +000020572# Figure out whether or not we have a "usleep()" function.
20573#
a.rottmann84e63352003-03-24 09:42:16 +000020574echo "$as_me:$LINENO: checking for usleep" >&5
drh71eb93e2001-09-28 01:34:43 +000020575echo $ECHO_N "checking for usleep... $ECHO_C" >&6
20576if test "${ac_cv_func_usleep+set}" = set; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
drh2dfbbca2000-07-28 14:32:48 +000020578else
drh71eb93e2001-09-28 01:34:43 +000020579 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020580/* confdefs.h. */
20581_ACEOF
20582cat confdefs.h >>conftest.$ac_ext
20583cat >>conftest.$ac_ext <<_ACEOF
20584/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +000020585/* Define usleep to an innocuous variant, in case <limits.h> declares usleep.
20586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20587#define usleep innocuous_usleep
20588
drh2dfbbca2000-07-28 14:32:48 +000020589/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +000020590 which can conflict with char usleep (); below.
20591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20592 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +000020593
a.rottmann84e63352003-03-24 09:42:16 +000020594#ifdef __STDC__
20595# include <limits.h>
20596#else
20597# include <assert.h>
20598#endif
a.rottmann964dbb12004-02-26 19:47:42 +000020599
20600#undef usleep
20601
drh2dfbbca2000-07-28 14:32:48 +000020602/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +000020603#ifdef __cplusplus
20604extern "C"
a.rottmann84e63352003-03-24 09:42:16 +000020605{
drh71eb93e2001-09-28 01:34:43 +000020606#endif
drh2dfbbca2000-07-28 14:32:48 +000020607/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +000020608 builtin and then its argument prototype would still apply. */
20609char usleep ();
drh2dfbbca2000-07-28 14:32:48 +000020610/* The GNU C library defines this for functions which it implements
20611 to always fail with ENOSYS. Some functions are actually named
20612 something starting with __ and the normal name is an alias. */
20613#if defined (__stub_usleep) || defined (__stub___usleep)
20614choke me
20615#else
a.rottmann84e63352003-03-24 09:42:16 +000020616char (*f) () = usleep;
20617#endif
20618#ifdef __cplusplus
20619}
drh2dfbbca2000-07-28 14:32:48 +000020620#endif
20621
a.rottmann84e63352003-03-24 09:42:16 +000020622int
20623main ()
20624{
20625return f != usleep;
drh71eb93e2001-09-28 01:34:43 +000020626 ;
20627 return 0;
20628}
20629_ACEOF
20630rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +000020631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000020632 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000020633 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020634 grep -v '^ *+' conftest.er1 >conftest.err
20635 rm -f conftest.er1
20636 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020638 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000020639 { ac_try='test -z "$ac_c_werror_flag"
20640 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000020641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20642 (eval $ac_try) 2>&5
20643 ac_status=$?
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); }; } &&
20646 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +000020647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000020648 (eval $ac_try) 2>&5
20649 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000020650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020651 (exit $ac_status); }; }; then
20652 ac_cv_func_usleep=yes
drh2dfbbca2000-07-28 14:32:48 +000020653else
drh71eb93e2001-09-28 01:34:43 +000020654 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020655sed 's/^/| /' conftest.$ac_ext >&5
20656
drh71eb93e2001-09-28 01:34:43 +000020657ac_cv_func_usleep=no
drh2dfbbca2000-07-28 14:32:48 +000020658fi
a.rottmann964dbb12004-02-26 19:47:42 +000020659rm -f conftest.err conftest.$ac_objext \
20660 conftest$ac_exeext conftest.$ac_ext
drh2dfbbca2000-07-28 14:32:48 +000020661fi
a.rottmann84e63352003-03-24 09:42:16 +000020662echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5
drh71eb93e2001-09-28 01:34:43 +000020663echo "${ECHO_T}$ac_cv_func_usleep" >&6
20664if test $ac_cv_func_usleep = yes; then
drh2dfbbca2000-07-28 14:32:48 +000020665 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1"
drh2dfbbca2000-07-28 14:32:48 +000020666fi
20667
a.rottmann84e63352003-03-24 09:42:16 +000020668
drh2dfbbca2000-07-28 14:32:48 +000020669#########
drh75897232000-05-29 14:26:00 +000020670# Generate the output files.
20671#
dougcurrie12b34442004-07-19 03:24:59 +000020672 ac_config_files="$ac_config_files Makefile sqlite3.pc"
drh71eb93e2001-09-28 01:34:43 +000020673cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000020674# This file is a shell script that caches the results of configure
20675# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000020676# scripts and configure runs, see configure's option --config-cache.
20677# It is not useful on other systems. If it contains results you don't
20678# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000020679#
drh71eb93e2001-09-28 01:34:43 +000020680# config.status only pays attention to the cache file if you give it
20681# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000020682#
a.rottmann84e63352003-03-24 09:42:16 +000020683# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000020684# loading this file, other *unset* `ac_cv_foo' will be assigned the
20685# following values.
20686
20687_ACEOF
20688
drh75897232000-05-29 14:26:00 +000020689# The following way of writing the cache mishandles newlines in values,
20690# but we know of no workaround that is simple, portable, and efficient.
20691# So, don't put newlines in cache variables' values.
20692# Ultrix sh set writes to stderr and can't be redirected directly,
20693# and sets the high bit in the cache file unless we assign to the vars.
drh71eb93e2001-09-28 01:34:43 +000020694{
20695 (set) 2>&1 |
20696 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20697 *ac_space=\ *)
20698 # `set' does not quote correctly, so add quotes (double-quote
20699 # substitution turns \\\\ into \\, and sed turns \\ into \).
20700 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000020701 "s/'/'\\\\''/g;
20702 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh71eb93e2001-09-28 01:34:43 +000020703 ;;
20704 *)
20705 # `set' quotes correctly as required by POSIX, so do not add quotes.
20706 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000020707 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
drh71eb93e2001-09-28 01:34:43 +000020708 ;;
20709 esac;
20710} |
20711 sed '
20712 t clear
20713 : clear
20714 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20715 t end
20716 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20717 : end' >>confcache
a.rottmann84e63352003-03-24 09:42:16 +000020718if diff $cache_file confcache >/dev/null 2>&1; then :; else
drh75897232000-05-29 14:26:00 +000020719 if test -w $cache_file; then
drh71eb93e2001-09-28 01:34:43 +000020720 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20721 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000020722 else
20723 echo "not updating unwritable cache $cache_file"
20724 fi
20725fi
20726rm -f confcache
20727
drh75897232000-05-29 14:26:00 +000020728test "x$prefix" = xNONE && prefix=$ac_default_prefix
20729# Let make expand exec_prefix.
20730test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20731
drh71eb93e2001-09-28 01:34:43 +000020732# VPATH may cause trouble with some makes, so we remove $(srcdir),
20733# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20734# trailing colons and then remove the whole line if VPATH becomes empty
20735# (actually we leave an empty line to preserve line numbers).
drh75897232000-05-29 14:26:00 +000020736if test "x$srcdir" = x.; then
a.rottmann964dbb12004-02-26 19:47:42 +000020737 ac_vpsub='/^[ ]*VPATH[ ]*=/{
drh71eb93e2001-09-28 01:34:43 +000020738s/:*\$(srcdir):*/:/;
20739s/:*\${srcdir}:*/:/;
20740s/:*@srcdir@:*/:/;
a.rottmann964dbb12004-02-26 19:47:42 +000020741s/^\([^=]*=[ ]*\):*/\1/;
drh71eb93e2001-09-28 01:34:43 +000020742s/:*$//;
a.rottmann964dbb12004-02-26 19:47:42 +000020743s/^[^=]*=[ ]*$//;
drh71eb93e2001-09-28 01:34:43 +000020744}'
drh75897232000-05-29 14:26:00 +000020745fi
20746
drh75897232000-05-29 14:26:00 +000020747# Transform confdefs.h into DEFS.
20748# Protect against shell expansion while executing Makefile rules.
20749# Protect against Makefile macro expansion.
drh71eb93e2001-09-28 01:34:43 +000020750#
20751# If the first sed substitution is executed (which looks for macros that
20752# take arguments), then we branch to the quote section. Otherwise,
20753# look for a macro that doesn't take arguments.
a.rottmann84e63352003-03-24 09:42:16 +000020754cat >confdef2opt.sed <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020755t clear
20756: clear
a.rottmann964dbb12004-02-26 19:47:42 +000020757s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
drh71eb93e2001-09-28 01:34:43 +000020758t quote
a.rottmann964dbb12004-02-26 19:47:42 +000020759s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
drh71eb93e2001-09-28 01:34:43 +000020760t quote
20761d
20762: quote
a.rottmann964dbb12004-02-26 19:47:42 +000020763s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
drh71eb93e2001-09-28 01:34:43 +000020764s,\[,\\&,g
20765s,\],\\&,g
20766s,\$,$$,g
20767p
a.rottmann84e63352003-03-24 09:42:16 +000020768_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020769# We use echo to avoid assuming a particular line-breaking character.
20770# The extra dot is to prevent the shell from consuming trailing
20771# line-breaks from the sub-command output. A line-break within
20772# single-quotes doesn't work because, if this script is created in a
20773# platform that uses two characters for line-breaks (e.g., DOS), tr
20774# would break.
20775ac_LF_and_DOT=`echo; echo .`
20776DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20777rm -f confdef2opt.sed
drh75897232000-05-29 14:26:00 +000020778
a.rottmann84e63352003-03-24 09:42:16 +000020779
20780ac_libobjs=
20781ac_ltlibobjs=
20782for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20783 # 1. Remove the extension, and $U if already installed.
20784 ac_i=`echo "$ac_i" |
a.rottmann964dbb12004-02-26 19:47:42 +000020785 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a.rottmann84e63352003-03-24 09:42:16 +000020786 # 2. Add them.
20787 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20788 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20789done
20790LIBOBJS=$ac_libobjs
20791
20792LTLIBOBJS=$ac_ltlibobjs
20793
20794
20795
drh75897232000-05-29 14:26:00 +000020796: ${CONFIG_STATUS=./config.status}
drh71eb93e2001-09-28 01:34:43 +000020797ac_clean_files_save=$ac_clean_files
20798ac_clean_files="$ac_clean_files $CONFIG_STATUS"
a.rottmann84e63352003-03-24 09:42:16 +000020799{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
drh71eb93e2001-09-28 01:34:43 +000020800echo "$as_me: creating $CONFIG_STATUS" >&6;}
20801cat >$CONFIG_STATUS <<_ACEOF
20802#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000020803# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000020804# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000020805# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000020806# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000020807
drh71eb93e2001-09-28 01:34:43 +000020808debug=false
a.rottmann84e63352003-03-24 09:42:16 +000020809ac_cs_recheck=false
20810ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +000020811SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +000020812_ACEOF
drh75897232000-05-29 14:26:00 +000020813
drh71eb93e2001-09-28 01:34:43 +000020814cat >>$CONFIG_STATUS <<\_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020815## --------------------- ##
20816## M4sh Initialization. ##
20817## --------------------- ##
20818
drh71eb93e2001-09-28 01:34:43 +000020819# Be Bourne compatible
20820if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20821 emulate sh
20822 NULLCMD=:
a.rottmann84e63352003-03-24 09:42:16 +000020823 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20824 # is contrary to our usage. Disable this feature.
20825 alias -g '${1+"$@"}'='"$@"'
drh71eb93e2001-09-28 01:34:43 +000020826elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20827 set -o posix
drh75897232000-05-29 14:26:00 +000020828fi
a.rottmann964dbb12004-02-26 19:47:42 +000020829DUALCASE=1; export DUALCASE # for MKS sh
drh71eb93e2001-09-28 01:34:43 +000020830
a.rottmann84e63352003-03-24 09:42:16 +000020831# Support unset when possible.
a.rottmann964dbb12004-02-26 19:47:42 +000020832if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a.rottmann84e63352003-03-24 09:42:16 +000020833 as_unset=unset
20834else
20835 as_unset=false
20836fi
20837
20838
20839# Work around bugs in pre-3.0 UWIN ksh.
20840$as_unset ENV MAIL MAILPATH
20841PS1='$ '
20842PS2='> '
20843PS4='+ '
20844
20845# NLS nuisances.
20846for as_var in \
20847 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20848 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20849 LC_TELEPHONE LC_TIME
20850do
a.rottmann964dbb12004-02-26 19:47:42 +000020851 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a.rottmann84e63352003-03-24 09:42:16 +000020852 eval $as_var=C; export $as_var
20853 else
20854 $as_unset $as_var
20855 fi
20856done
20857
20858# Required to use basename.
20859if expr a : '\(a\)' >/dev/null 2>&1; then
20860 as_expr=expr
20861else
20862 as_expr=false
20863fi
20864
20865if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20866 as_basename=basename
20867else
20868 as_basename=false
20869fi
20870
20871
drh71eb93e2001-09-28 01:34:43 +000020872# Name of the executable.
a.rottmann84e63352003-03-24 09:42:16 +000020873as_me=`$as_basename "$0" ||
20874$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20875 X"$0" : 'X\(//\)$' \| \
20876 X"$0" : 'X\(/\)$' \| \
20877 . : '\(.\)' 2>/dev/null ||
20878echo X/"$0" |
20879 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20880 /^X\/\(\/\/\)$/{ s//\1/; q; }
20881 /^X\/\(\/\).*/{ s//\1/; q; }
20882 s/.*/./; q'`
20883
20884
20885# PATH needs CR, and LINENO needs CR and PATH.
20886# Avoid depending upon Character Ranges.
20887as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20888as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20889as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20890as_cr_digits='0123456789'
20891as_cr_alnum=$as_cr_Letters$as_cr_digits
20892
20893# The user is always right.
20894if test "${PATH_SEPARATOR+set}" != set; then
20895 echo "#! /bin/sh" >conf$$.sh
20896 echo "exit 0" >>conf$$.sh
20897 chmod +x conf$$.sh
20898 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20899 PATH_SEPARATOR=';'
20900 else
20901 PATH_SEPARATOR=:
20902 fi
20903 rm -f conf$$.sh
20904fi
20905
20906
20907 as_lineno_1=$LINENO
20908 as_lineno_2=$LINENO
20909 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20910 test "x$as_lineno_1" != "x$as_lineno_2" &&
20911 test "x$as_lineno_3" = "x$as_lineno_2" || {
20912 # Find who we are. Look in the path if we contain no path at all
20913 # relative or not.
20914 case $0 in
20915 *[\\/]* ) as_myself=$0 ;;
20916 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20917for as_dir in $PATH
20918do
20919 IFS=$as_save_IFS
20920 test -z "$as_dir" && as_dir=.
20921 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20922done
20923
20924 ;;
20925 esac
20926 # We did not find ourselves, most probably we were run as `sh COMMAND'
20927 # in which case we are not to be found in the path.
20928 if test "x$as_myself" = x; then
20929 as_myself=$0
20930 fi
20931 if test ! -f "$as_myself"; then
20932 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20933echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20934 { (exit 1); exit 1; }; }
20935 fi
20936 case $CONFIG_SHELL in
20937 '')
20938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20939for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20940do
20941 IFS=$as_save_IFS
20942 test -z "$as_dir" && as_dir=.
20943 for as_base in sh bash ksh sh5; do
20944 case $as_dir in
20945 /*)
20946 if ("$as_dir/$as_base" -c '
20947 as_lineno_1=$LINENO
20948 as_lineno_2=$LINENO
20949 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20950 test "x$as_lineno_1" != "x$as_lineno_2" &&
20951 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20952 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20953 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20954 CONFIG_SHELL=$as_dir/$as_base
20955 export CONFIG_SHELL
20956 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20957 fi;;
20958 esac
20959 done
20960done
20961;;
20962 esac
20963
20964 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20965 # uniformly replaced by the line number. The first 'sed' inserts a
20966 # line-number line before each line; the second 'sed' does the real
20967 # work. The second script uses 'N' to pair each line-number line
20968 # with the numbered line, and appends trailing '-' during
20969 # substitution so that $LINENO is not a special case at line end.
20970 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20971 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20972 sed '=' <$as_myself |
20973 sed '
20974 N
20975 s,$,-,
20976 : loop
20977 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20978 t loop
20979 s,-$,,
20980 s,^['$as_cr_digits']*\n,,
20981 ' >$as_me.lineno &&
20982 chmod +x $as_me.lineno ||
20983 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20984echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20985 { (exit 1); exit 1; }; }
20986
20987 # Don't try to exec as it changes $[0], causing all sort of problems
20988 # (the dirname of $[0] is not the place where we might find the
20989 # original and so on. Autoconf is especially sensible to this).
20990 . ./$as_me.lineno
20991 # Exit status is that of the last command.
20992 exit
20993}
20994
20995
20996case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20997 *c*,-n*) ECHO_N= ECHO_C='
20998' ECHO_T=' ' ;;
20999 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21000 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21001esac
drh71eb93e2001-09-28 01:34:43 +000021002
21003if expr a : '\(a\)' >/dev/null 2>&1; then
21004 as_expr=expr
21005else
21006 as_expr=false
21007fi
21008
21009rm -f conf$$ conf$$.exe conf$$.file
21010echo >conf$$.file
21011if ln -s conf$$.file conf$$ 2>/dev/null; then
21012 # We could just check for DJGPP; but this test a) works b) is more generic
21013 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21014 if test -f conf$$.exe; then
21015 # Don't use ln at all; we don't have any links
21016 as_ln_s='cp -p'
21017 else
21018 as_ln_s='ln -s'
21019 fi
21020elif ln conf$$.file conf$$ 2>/dev/null; then
21021 as_ln_s=ln
21022else
21023 as_ln_s='cp -p'
21024fi
21025rm -f conf$$ conf$$.exe conf$$.file
21026
a.rottmann84e63352003-03-24 09:42:16 +000021027if mkdir -p . 2>/dev/null; then
21028 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000021029else
a.rottmann964dbb12004-02-26 19:47:42 +000021030 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000021031 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000021032fi
21033
a.rottmann84e63352003-03-24 09:42:16 +000021034as_executable_p="test -f"
21035
21036# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000021037as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000021038
21039# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000021040as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000021041
drh71eb93e2001-09-28 01:34:43 +000021042
21043# IFS
21044# We need space, tab and new line, in precisely that order.
21045as_nl='
21046'
21047IFS=" $as_nl"
21048
21049# CDPATH.
a.rottmann84e63352003-03-24 09:42:16 +000021050$as_unset CDPATH
drh71eb93e2001-09-28 01:34:43 +000021051
21052exec 6>&1
21053
a.rottmann84e63352003-03-24 09:42:16 +000021054# Open the log real soon, to keep \$[0] and so on meaningful, and to
21055# report actual input values of CONFIG_FILES etc. instead of their
21056# values after options handling. Logging --version etc. is OK.
21057exec 5>>config.log
21058{
21059 echo
21060 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21061## Running $as_me. ##
21062_ASBOX
21063} >&5
21064cat >&5 <<_CSEOF
21065
21066This file was extended by $as_me, which was
a.rottmann964dbb12004-02-26 19:47:42 +000021067generated by GNU Autoconf 2.59. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000021068
21069 CONFIG_FILES = $CONFIG_FILES
21070 CONFIG_HEADERS = $CONFIG_HEADERS
21071 CONFIG_LINKS = $CONFIG_LINKS
21072 CONFIG_COMMANDS = $CONFIG_COMMANDS
21073 $ $0 $@
21074
21075_CSEOF
21076echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21077echo >&5
drh71eb93e2001-09-28 01:34:43 +000021078_ACEOF
21079
21080# Files that config.status was made for.
21081if test -n "$ac_config_files"; then
21082 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21083fi
21084
21085if test -n "$ac_config_headers"; then
21086 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21087fi
21088
21089if test -n "$ac_config_links"; then
21090 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21091fi
21092
21093if test -n "$ac_config_commands"; then
21094 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21095fi
21096
a.rottmann84e63352003-03-24 09:42:16 +000021097cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021098
21099ac_cs_usage="\
21100\`$as_me' instantiates files from templates according to the
21101current configuration.
21102
21103Usage: $0 [OPTIONS] [FILE]...
21104
21105 -h, --help print this help, then exit
21106 -V, --version print version number, then exit
a.rottmann84e63352003-03-24 09:42:16 +000021107 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000021108 -d, --debug don't remove temporary files
21109 --recheck update $as_me by reconfiguring in the same conditions
21110 --file=FILE[:TEMPLATE]
a.rottmann964dbb12004-02-26 19:47:42 +000021111 instantiate the configuration file FILE
drh71eb93e2001-09-28 01:34:43 +000021112
21113Configuration files:
21114$config_files
21115
21116Report bugs to <bug-autoconf@gnu.org>."
a.rottmann84e63352003-03-24 09:42:16 +000021117_ACEOF
drh75897232000-05-29 14:26:00 +000021118
a.rottmann84e63352003-03-24 09:42:16 +000021119cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021120ac_cs_version="\\
21121config.status
a.rottmann964dbb12004-02-26 19:47:42 +000021122configured by $0, generated by GNU Autoconf 2.59,
drh71eb93e2001-09-28 01:34:43 +000021123 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
drh75897232000-05-29 14:26:00 +000021124
a.rottmann964dbb12004-02-26 19:47:42 +000021125Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000021126This config.status script is free software; the Free Software Foundation
21127gives unlimited permission to copy, distribute and modify it."
21128srcdir=$srcdir
21129INSTALL="$INSTALL"
a.rottmann84e63352003-03-24 09:42:16 +000021130_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021131
a.rottmann84e63352003-03-24 09:42:16 +000021132cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021133# If no file are specified by the user, then we need to provide default
21134# value. By we need to know if files were specified by the user.
21135ac_need_defaults=:
21136while test $# != 0
21137do
21138 case $1 in
21139 --*=*)
21140 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21141 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000021142 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000021143 ;;
a.rottmann84e63352003-03-24 09:42:16 +000021144 -*)
21145 ac_option=$1
21146 ac_optarg=$2
21147 ac_shift=shift
21148 ;;
drh71eb93e2001-09-28 01:34:43 +000021149 *) # This is not an option, so the user has probably given explicit
21150 # arguments.
a.rottmann84e63352003-03-24 09:42:16 +000021151 ac_option=$1
drh71eb93e2001-09-28 01:34:43 +000021152 ac_need_defaults=false;;
drh75897232000-05-29 14:26:00 +000021153 esac
21154
a.rottmann84e63352003-03-24 09:42:16 +000021155 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000021156 # Handling of the options.
a.rottmann84e63352003-03-24 09:42:16 +000021157_ACEOF
21158cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021159 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000021160 ac_cs_recheck=: ;;
drh71eb93e2001-09-28 01:34:43 +000021161 --version | --vers* | -V )
21162 echo "$ac_cs_version"; exit 0 ;;
21163 --he | --h)
21164 # Conflict between --help and --header
a.rottmann84e63352003-03-24 09:42:16 +000021165 { { echo "$as_me:$LINENO: error: ambiguous option: $1
drh71eb93e2001-09-28 01:34:43 +000021166Try \`$0 --help' for more information." >&5
21167echo "$as_me: error: ambiguous option: $1
21168Try \`$0 --help' for more information." >&2;}
21169 { (exit 1); exit 1; }; };;
21170 --help | --hel | -h )
21171 echo "$ac_cs_usage"; exit 0 ;;
21172 --debug | --d* | -d )
21173 debug=: ;;
21174 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000021175 $ac_shift
21176 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000021177 ac_need_defaults=false;;
21178 --header | --heade | --head | --hea )
a.rottmann84e63352003-03-24 09:42:16 +000021179 $ac_shift
21180 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000021181 ac_need_defaults=false;;
a.rottmann84e63352003-03-24 09:42:16 +000021182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21183 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21184 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000021185
drh71eb93e2001-09-28 01:34:43 +000021186 # This is an error.
a.rottmann84e63352003-03-24 09:42:16 +000021187 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
drh71eb93e2001-09-28 01:34:43 +000021188Try \`$0 --help' for more information." >&5
21189echo "$as_me: error: unrecognized option: $1
21190Try \`$0 --help' for more information." >&2;}
21191 { (exit 1); exit 1; }; } ;;
21192
21193 *) ac_config_targets="$ac_config_targets $1" ;;
21194
21195 esac
21196 shift
21197done
21198
a.rottmann84e63352003-03-24 09:42:16 +000021199ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000021200
a.rottmann84e63352003-03-24 09:42:16 +000021201if $ac_cs_silent; then
21202 exec 6>/dev/null
21203 ac_configure_extra_args="$ac_configure_extra_args --silent"
21204fi
drh71eb93e2001-09-28 01:34:43 +000021205
21206_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000021207cat >>$CONFIG_STATUS <<_ACEOF
21208if \$ac_cs_recheck; then
21209 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21210 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21211fi
drh71eb93e2001-09-28 01:34:43 +000021212
a.rottmann84e63352003-03-24 09:42:16 +000021213_ACEOF
21214
21215
21216
21217
21218
21219cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021220for ac_config_target in $ac_config_targets
21221do
21222 case "$ac_config_target" in
21223 # Handling of arguments.
dougcurrie001c0bd2004-06-21 21:44:49 +000021224 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
dougcurrie12b34442004-07-19 03:24:59 +000021225 "sqlite3.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
a.rottmann84e63352003-03-24 09:42:16 +000021226 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
drh71eb93e2001-09-28 01:34:43 +000021227echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21228 { (exit 1); exit 1; }; };;
21229 esac
21230done
21231
21232# If the user did not use the arguments to specify the items to instantiate,
21233# then the envvar interface is used. Set only those that are not.
21234# We use the long form for the default assignment because of an extremely
21235# bizarre bug on SunOS 4.1.3.
21236if $ac_need_defaults; then
21237 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21238fi
21239
a.rottmann84e63352003-03-24 09:42:16 +000021240# Have a temporary directory for convenience. Make it in the build tree
21241# simply because there is no reason to put it here, and in addition,
21242# creating and moving files from /tmp can sometimes cause problems.
drh71eb93e2001-09-28 01:34:43 +000021243# Create a temporary directory, and hook for its removal unless debugging.
21244$debug ||
21245{
21246 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21247 trap '{ (exit 1); exit 1; }' 1 2 13 15
21248}
21249
21250# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000021251
drh71eb93e2001-09-28 01:34:43 +000021252{
a.rottmann84e63352003-03-24 09:42:16 +000021253 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000021254 test -n "$tmp" && test -d "$tmp"
21255} ||
21256{
a.rottmann84e63352003-03-24 09:42:16 +000021257 tmp=./confstat$$-$RANDOM
drh71eb93e2001-09-28 01:34:43 +000021258 (umask 077 && mkdir $tmp)
21259} ||
21260{
a.rottmann84e63352003-03-24 09:42:16 +000021261 echo "$me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +000021262 { (exit 1); exit 1; }
21263}
21264
a.rottmann84e63352003-03-24 09:42:16 +000021265_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021266
a.rottmann84e63352003-03-24 09:42:16 +000021267cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021268
21269#
21270# CONFIG_FILES section.
21271#
21272
21273# No need to generate the scripts if there are no CONFIG_FILES.
21274# This happens for instance when ./config.status config.h
21275if test -n "\$CONFIG_FILES"; then
21276 # Protect against being on the right side of a sed subst in config.status.
21277 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21278 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21279s,@SHELL@,$SHELL,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021280s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21281s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21282s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21283s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21284s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21285s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
drh71eb93e2001-09-28 01:34:43 +000021286s,@exec_prefix@,$exec_prefix,;t t
21287s,@prefix@,$prefix,;t t
21288s,@program_transform_name@,$program_transform_name,;t t
21289s,@bindir@,$bindir,;t t
21290s,@sbindir@,$sbindir,;t t
21291s,@libexecdir@,$libexecdir,;t t
21292s,@datadir@,$datadir,;t t
21293s,@sysconfdir@,$sysconfdir,;t t
21294s,@sharedstatedir@,$sharedstatedir,;t t
21295s,@localstatedir@,$localstatedir,;t t
21296s,@libdir@,$libdir,;t t
21297s,@includedir@,$includedir,;t t
21298s,@oldincludedir@,$oldincludedir,;t t
21299s,@infodir@,$infodir,;t t
21300s,@mandir@,$mandir,;t t
drh71eb93e2001-09-28 01:34:43 +000021301s,@build_alias@,$build_alias,;t t
21302s,@host_alias@,$host_alias,;t t
21303s,@target_alias@,$target_alias,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021304s,@DEFS@,$DEFS,;t t
drh71eb93e2001-09-28 01:34:43 +000021305s,@ECHO_C@,$ECHO_C,;t t
21306s,@ECHO_N@,$ECHO_N,;t t
21307s,@ECHO_T@,$ECHO_T,;t t
drh71eb93e2001-09-28 01:34:43 +000021308s,@LIBS@,$LIBS,;t t
21309s,@build@,$build,;t t
21310s,@build_cpu@,$build_cpu,;t t
21311s,@build_vendor@,$build_vendor,;t t
21312s,@build_os@,$build_os,;t t
21313s,@host@,$host,;t t
21314s,@host_cpu@,$host_cpu,;t t
21315s,@host_vendor@,$host_vendor,;t t
21316s,@host_os@,$host_os,;t t
21317s,@CC@,$CC,;t t
21318s,@CFLAGS@,$CFLAGS,;t t
21319s,@LDFLAGS@,$LDFLAGS,;t t
21320s,@CPPFLAGS@,$CPPFLAGS,;t t
21321s,@ac_ct_CC@,$ac_ct_CC,;t t
21322s,@EXEEXT@,$EXEEXT,;t t
21323s,@OBJEXT@,$OBJEXT,;t t
a.rottmann9bc8b932004-02-29 15:18:31 +000021324s,@EGREP@,$EGREP,;t t
drh71eb93e2001-09-28 01:34:43 +000021325s,@LN_S@,$LN_S,;t t
21326s,@ECHO@,$ECHO,;t t
a.rottmann9bc8b932004-02-29 15:18:31 +000021327s,@AR@,$AR,;t t
21328s,@ac_ct_AR@,$ac_ct_AR,;t t
drh71eb93e2001-09-28 01:34:43 +000021329s,@RANLIB@,$RANLIB,;t t
21330s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21331s,@STRIP@,$STRIP,;t t
21332s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21333s,@CPP@,$CPP,;t t
a.rottmann9bc8b932004-02-29 15:18:31 +000021334s,@CXX@,$CXX,;t t
21335s,@CXXFLAGS@,$CXXFLAGS,;t t
21336s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21337s,@CXXCPP@,$CXXCPP,;t t
21338s,@F77@,$F77,;t t
21339s,@FFLAGS@,$FFLAGS,;t t
21340s,@ac_ct_F77@,$ac_ct_F77,;t t
drh71eb93e2001-09-28 01:34:43 +000021341s,@LIBTOOL@,$LIBTOOL,;t t
21342s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21343s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21344s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21345s,@program_prefix@,$program_prefix,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021346s,@VERSION@,$VERSION,;t t
drh71eb93e2001-09-28 01:34:43 +000021347s,@BUILD_CC@,$BUILD_CC,;t t
21348s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
21349s,@BUILD_LIBS@,$BUILD_LIBS,;t t
21350s,@TARGET_CC@,$TARGET_CC,;t t
21351s,@TARGET_CFLAGS@,$TARGET_CFLAGS,;t t
21352s,@TARGET_LINK@,$TARGET_LINK,;t t
21353s,@TARGET_LFLAGS@,$TARGET_LFLAGS,;t t
21354s,@TARGET_RANLIB@,$TARGET_RANLIB,;t t
21355s,@TARGET_AR@,$TARGET_AR,;t t
dougcurrie0f290bf2004-06-21 18:57:29 +000021356s,@THREADSAFE@,$THREADSAFE,;t t
dougcurrie65623c72004-09-20 14:57:23 +000021357s,@TARGET_THREAD_LIB@,$TARGET_THREAD_LIB,;t t
xdong28f79f72003-09-23 00:35:21 +000021358s,@ALLOWRELEASE@,$ALLOWRELEASE,;t t
paul2dc96f92003-04-20 11:46:34 +000021359s,@TEMP_STORE@,$TEMP_STORE,;t t
drh71eb93e2001-09-28 01:34:43 +000021360s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
21361s,@OS_UNIX@,$OS_UNIX,;t t
21362s,@OS_WIN@,$OS_WIN,;t t
21363s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t
21364s,@TARGET_LIBS@,$TARGET_LIBS,;t t
21365s,@TARGET_TCL_LIBS@,$TARGET_TCL_LIBS,;t t
21366s,@TARGET_TCL_INC@,$TARGET_TCL_INC,;t t
21367s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t
21368s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t
21369s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021370s,@LIBOBJS@,$LIBOBJS,;t t
21371s,@LTLIBOBJS@,$LTLIBOBJS,;t t
drh71eb93e2001-09-28 01:34:43 +000021372CEOF
21373
a.rottmann84e63352003-03-24 09:42:16 +000021374_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021375
a.rottmann84e63352003-03-24 09:42:16 +000021376 cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021377 # Split the substitutions into bite-sized pieces for seds with
21378 # small command number limits, like on Digital OSF/1 and HP-UX.
21379 ac_max_sed_lines=48
21380 ac_sed_frag=1 # Number of current file.
21381 ac_beg=1 # First line for current file.
21382 ac_end=$ac_max_sed_lines # Line after last line for current file.
21383 ac_more_lines=:
21384 ac_sed_cmds=
21385 while $ac_more_lines; do
21386 if test $ac_beg -gt 1; then
21387 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21388 else
21389 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21390 fi
21391 if test ! -s $tmp/subs.frag; then
21392 ac_more_lines=false
21393 else
21394 # The purpose of the label and of the branching condition is to
21395 # speed up the sed processing (if there are no `@' at all, there
21396 # is no need to browse any of the substitutions).
21397 # These are the two extra sed commands mentioned above.
21398 (echo ':t
21399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21400 if test -z "$ac_sed_cmds"; then
a.rottmann964dbb12004-02-26 19:47:42 +000021401 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
drh71eb93e2001-09-28 01:34:43 +000021402 else
a.rottmann964dbb12004-02-26 19:47:42 +000021403 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
drh71eb93e2001-09-28 01:34:43 +000021404 fi
21405 ac_sed_frag=`expr $ac_sed_frag + 1`
21406 ac_beg=$ac_end
21407 ac_end=`expr $ac_end + $ac_max_sed_lines`
21408 fi
21409 done
21410 if test -z "$ac_sed_cmds"; then
21411 ac_sed_cmds=cat
21412 fi
21413fi # test -n "$CONFIG_FILES"
21414
a.rottmann84e63352003-03-24 09:42:16 +000021415_ACEOF
21416cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021417for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21418 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21419 case $ac_file in
21420 - | *:- | *:-:* ) # input from stdin
a.rottmann964dbb12004-02-26 19:47:42 +000021421 cat >$tmp/stdin
21422 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21423 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
drh71eb93e2001-09-28 01:34:43 +000021424 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
a.rottmann964dbb12004-02-26 19:47:42 +000021425 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
drh71eb93e2001-09-28 01:34:43 +000021426 * ) ac_file_in=$ac_file.in ;;
21427 esac
21428
21429 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
a.rottmann84e63352003-03-24 09:42:16 +000021430 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21431$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000021432 X"$ac_file" : 'X\(//\)[^/]' \| \
21433 X"$ac_file" : 'X\(//\)$' \| \
21434 X"$ac_file" : 'X\(/\)' \| \
21435 . : '\(.\)' 2>/dev/null ||
drh71eb93e2001-09-28 01:34:43 +000021436echo X"$ac_file" |
21437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21438 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21439 /^X\(\/\/\)$/{ s//\1/; q; }
21440 /^X\(\/\).*/{ s//\1/; q; }
21441 s/.*/./; q'`
a.rottmann84e63352003-03-24 09:42:16 +000021442 { if $as_mkdir_p; then
21443 mkdir -p "$ac_dir"
drh75897232000-05-29 14:26:00 +000021444 else
a.rottmann84e63352003-03-24 09:42:16 +000021445 as_dir="$ac_dir"
21446 as_dirs=
21447 while test ! -d "$as_dir"; do
21448 as_dirs="$as_dir $as_dirs"
21449 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21450$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000021451 X"$as_dir" : 'X\(//\)[^/]' \| \
21452 X"$as_dir" : 'X\(//\)$' \| \
21453 X"$as_dir" : 'X\(/\)' \| \
21454 . : '\(.\)' 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +000021455echo X"$as_dir" |
21456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21458 /^X\(\/\/\)$/{ s//\1/; q; }
21459 /^X\(\/\).*/{ s//\1/; q; }
21460 s/.*/./; q'`
21461 done
21462 test ! -n "$as_dirs" || mkdir $as_dirs
21463 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21464echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21465 { (exit 1); exit 1; }; }; }
drh75897232000-05-29 14:26:00 +000021466
a.rottmann84e63352003-03-24 09:42:16 +000021467 ac_builddir=.
21468
21469if test "$ac_dir" != .; then
21470 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21471 # A "../" for each directory in $ac_dir_suffix.
21472 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21473else
21474 ac_dir_suffix= ac_top_builddir=
21475fi
21476
21477case $srcdir in
21478 .) # No --srcdir option. We are building in place.
21479 ac_srcdir=.
21480 if test -z "$ac_top_builddir"; then
21481 ac_top_srcdir=.
21482 else
21483 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21484 fi ;;
21485 [\\/]* | ?:[\\/]* ) # Absolute path.
21486 ac_srcdir=$srcdir$ac_dir_suffix;
21487 ac_top_srcdir=$srcdir ;;
drh75897232000-05-29 14:26:00 +000021488 *) # Relative path.
a.rottmann84e63352003-03-24 09:42:16 +000021489 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21490 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21491esac
a.rottmann964dbb12004-02-26 19:47:42 +000021492
21493# Do not use `cd foo && pwd` to compute absolute paths, because
21494# the directories may not exist.
21495case `pwd` in
21496.) ac_abs_builddir="$ac_dir";;
21497*)
21498 case "$ac_dir" in
21499 .) ac_abs_builddir=`pwd`;;
21500 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21501 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21502 esac;;
21503esac
21504case $ac_abs_builddir in
21505.) ac_abs_top_builddir=${ac_top_builddir}.;;
21506*)
21507 case ${ac_top_builddir}. in
21508 .) ac_abs_top_builddir=$ac_abs_builddir;;
21509 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21510 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21511 esac;;
21512esac
21513case $ac_abs_builddir in
21514.) ac_abs_srcdir=$ac_srcdir;;
21515*)
21516 case $ac_srcdir in
21517 .) ac_abs_srcdir=$ac_abs_builddir;;
21518 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21519 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21520 esac;;
21521esac
21522case $ac_abs_builddir in
21523.) ac_abs_top_srcdir=$ac_top_srcdir;;
21524*)
21525 case $ac_top_srcdir in
21526 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21527 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21528 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21529 esac;;
21530esac
a.rottmann84e63352003-03-24 09:42:16 +000021531
drh75897232000-05-29 14:26:00 +000021532
drh71eb93e2001-09-28 01:34:43 +000021533 case $INSTALL in
21534 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
a.rottmann84e63352003-03-24 09:42:16 +000021535 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
drh75897232000-05-29 14:26:00 +000021536 esac
21537
dougcurrie0f290bf2004-06-21 18:57:29 +000021538 if test x"$ac_file" != x-; then
21539 { echo "$as_me:$LINENO: creating $ac_file" >&5
21540echo "$as_me: creating $ac_file" >&6;}
21541 rm -f "$ac_file"
21542 fi
drh71eb93e2001-09-28 01:34:43 +000021543 # Let's still pretend it is `configure' which instantiates (i.e., don't
21544 # use $as_me), people would be surprised to read:
a.rottmann84e63352003-03-24 09:42:16 +000021545 # /* config.h. Generated by config.status. */
21546 if test x"$ac_file" = x-; then
21547 configure_input=
21548 else
21549 configure_input="$ac_file. "
21550 fi
21551 configure_input=$configure_input"Generated from `echo $ac_file_in |
a.rottmann964dbb12004-02-26 19:47:42 +000021552 sed 's,.*/,,'` by configure."
drh75897232000-05-29 14:26:00 +000021553
drh71eb93e2001-09-28 01:34:43 +000021554 # First look for the input files in the build tree, otherwise in the
21555 # src tree.
21556 ac_file_inputs=`IFS=:
21557 for f in $ac_file_in; do
21558 case $f in
21559 -) echo $tmp/stdin ;;
21560 [\\/$]*)
a.rottmann964dbb12004-02-26 19:47:42 +000021561 # Absolute (can't be DOS-style, as IFS=:)
21562 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
drh71eb93e2001-09-28 01:34:43 +000021563echo "$as_me: error: cannot find input file: $f" >&2;}
21564 { (exit 1); exit 1; }; }
a.rottmann964dbb12004-02-26 19:47:42 +000021565 echo "$f";;
drh71eb93e2001-09-28 01:34:43 +000021566 *) # Relative
a.rottmann964dbb12004-02-26 19:47:42 +000021567 if test -f "$f"; then
21568 # Build tree
21569 echo "$f"
21570 elif test -f "$srcdir/$f"; then
21571 # Source tree
21572 echo "$srcdir/$f"
21573 else
21574 # /dev/null tree
21575 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
drh71eb93e2001-09-28 01:34:43 +000021576echo "$as_me: error: cannot find input file: $f" >&2;}
21577 { (exit 1); exit 1; }; }
a.rottmann964dbb12004-02-26 19:47:42 +000021578 fi;;
drh71eb93e2001-09-28 01:34:43 +000021579 esac
21580 done` || { (exit 1); exit 1; }
a.rottmann84e63352003-03-24 09:42:16 +000021581_ACEOF
21582cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021583 sed "$ac_vpsub
21584$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000021585_ACEOF
21586cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021587:t
21588/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21589s,@configure_input@,$configure_input,;t t
21590s,@srcdir@,$ac_srcdir,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021591s,@abs_srcdir@,$ac_abs_srcdir,;t t
drh71eb93e2001-09-28 01:34:43 +000021592s,@top_srcdir@,$ac_top_srcdir,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021593s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21594s,@builddir@,$ac_builddir,;t t
21595s,@abs_builddir@,$ac_abs_builddir,;t t
21596s,@top_builddir@,$ac_top_builddir,;t t
21597s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
drh71eb93e2001-09-28 01:34:43 +000021598s,@INSTALL@,$ac_INSTALL,;t t
21599" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21600 rm -f $tmp/stdin
21601 if test x"$ac_file" != x-; then
21602 mv $tmp/out $ac_file
21603 else
21604 cat $tmp/out
21605 rm -f $tmp/out
21606 fi
drh75897232000-05-29 14:26:00 +000021607
drh71eb93e2001-09-28 01:34:43 +000021608done
a.rottmann84e63352003-03-24 09:42:16 +000021609_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021610
a.rottmann84e63352003-03-24 09:42:16 +000021611cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021612
21613{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000021614_ACEOF
drh75897232000-05-29 14:26:00 +000021615chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000021616ac_clean_files=$ac_clean_files_save
21617
a.rottmann84e63352003-03-24 09:42:16 +000021618
drh71eb93e2001-09-28 01:34:43 +000021619# configure is writing to config.log, and then calls config.status.
21620# config.status does its own redirection, appending to config.log.
21621# Unfortunately, on DOS this fails, as config.log is still kept open
21622# by configure, so config.status won't be able to write to it; its
21623# output is simply discarded. So we exec the FD to /dev/null,
21624# effectively closing config.log, so it can be properly (re)opened and
21625# appended to by config.status. When coming back to configure, we
21626# need to make the FD available again.
21627if test "$no_create" != yes; then
21628 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000021629 ac_config_status_args=
21630 test "$silent" = yes &&
21631 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000021632 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000021633 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000021634 exec 5>>config.log
21635 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21636 # would make configure fail if this is the last instruction.
21637 $ac_cs_success || { (exit 1); exit 1; }
21638fi
drh75897232000-05-29 14:26:00 +000021639