blob: b7ec40323138994127579a4ba7d878da07a2ebd7 [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.
drh613a0fe2007-11-23 17:31:17 +00003# Generated by GNU Autoconf 2.59.
drh75897232000-05-29 14:26:00 +00004#
drh613a0fe2007-11-23 17:31:17 +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
drh613a0fe2007-11-23 17:31:17 +000012# Be Bourne compatible
a.rottmann84e63352003-03-24 09:42:16 +000013if 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+"$@"}'='"$@"'
drh613a0fe2007-11-23 17:31:17 +000019elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
vapier7f19c022007-02-17 14:46:31 +000023
drh613a0fe2007-11-23 17:31:17 +000024# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
a.rottmann84e63352003-03-24 09:42:16 +000029fi
30
31
drh613a0fe2007-11-23 17:31:17 +000032# 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
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 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
a.rottmann84e63352003-03-24 09:42:16 +000063
64
drh613a0fe2007-11-23 17:31:17 +000065# 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.
a.rottmann84e63352003-03-24 09:42:16 +000079# 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
drh613a0fe2007-11-23 17:31:17 +0000100 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
a.rottmann84e63352003-03-24 09:42:16 +0000110for 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
drh613a0fe2007-11-23 17:31:17 +0000117 ;;
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
a.rottmann84e63352003-03-24 09:42:16 +0000123 fi
drh613a0fe2007-11-23 17:31:17 +0000124 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 '')
a.rottmann84e63352003-03-24 09:42:16 +0000130 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=.
drh613a0fe2007-11-23 17:31:17 +0000135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
a.rottmann84e63352003-03-24 09:42:16 +0000137 /*)
drh613a0fe2007-11-23 17:31:17 +0000138 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
vapier7f19c022007-02-17 14:46:31 +0000152done
drh613a0fe2007-11-23 17:31:17 +0000153;;
154 esac
a.rottmann84e63352003-03-24 09:42:16 +0000155
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
drh613a0fe2007-11-23 17:31:17 +0000158 # 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.
a.rottmann84e63352003-03-24 09:42:16 +0000162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
drh613a0fe2007-11-23 17:31:17 +0000163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +0000165 sed '
166 N
drh613a0fe2007-11-23 17:31:17 +0000167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
a.rottmann84e63352003-03-24 09:42:16 +0000170 t loop
drh613a0fe2007-11-23 17:31:17 +0000171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
a.rottmann84e63352003-03-24 09:42:16 +0000173 ' >$as_me.lineno &&
drh613a0fe2007-11-23 17:31:17 +0000174 chmod +x $as_me.lineno ||
a.rottmann84e63352003-03-24 09:42:16 +0000175 { 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
drh613a0fe2007-11-23 17:31:17 +0000180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
a.rottmann84e63352003-03-24 09:42:16 +0000182 # Exit status is that of the last command.
183 exit
184}
185
186
drh613a0fe2007-11-23 17:31:17 +0000187case `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= ;;
a.rottmann84e63352003-03-24 09:42:16 +0000192esac
193
drh613a0fe2007-11-23 17:31:17 +0000194if expr a : '\(a\)' >/dev/null 2>&1; then
a.rottmann84e63352003-03-24 09:42:16 +0000195 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
drh613a0fe2007-11-23 17:31:17 +0000203 # 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
a.rottmann84e63352003-03-24 09:42:16 +0000207 as_ln_s='cp -p'
drh613a0fe2007-11-23 17:31:17 +0000208 else
209 as_ln_s='ln -s'
210 fi
a.rottmann84e63352003-03-24 09:42:16 +0000211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
drh613a0fe2007-11-23 17:31:17 +0000216rm -f conf$$ conf$$.exe conf$$.file
a.rottmann84e63352003-03-24 09:42:16 +0000217
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
drh613a0fe2007-11-23 17:31:17 +0000225as_executable_p="test -f"
a.rottmann84e63352003-03-24 09:42:16 +0000226
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
drh613a0fe2007-11-23 17:31:17 +0000234# 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.
vapier7f19c022007-02-17 14:46:31 +0000281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
drh71eb93e2001-09-28 01:34:43 +0000282
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, ...
vapier7f19c022007-02-17 14:46:31 +0000288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
drh71eb93e2001-09-28 01:34:43 +0000290 (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
drh613a0fe2007-11-23 17:31:17 +0000403exec 6>&1
404
drh71eb93e2001-09-28 01:34:43 +0000405#
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
drh613a0fe2007-11-23 17:31:17 +0000416# 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>
drh613a0fe2007-11-23 17:31:17 +0000432#if HAVE_SYS_TYPES_H
a.rottmann84e63352003-03-24 09:42:16 +0000433# include <sys/types.h>
434#endif
drh613a0fe2007-11-23 17:31:17 +0000435#if HAVE_SYS_STAT_H
a.rottmann84e63352003-03-24 09:42:16 +0000436# include <sys/stat.h>
437#endif
drh613a0fe2007-11-23 17:31:17 +0000438#if STDC_HEADERS
a.rottmann84e63352003-03-24 09:42:16 +0000439# include <stdlib.h>
440# include <stddef.h>
441#else
drh613a0fe2007-11-23 17:31:17 +0000442# if HAVE_STDLIB_H
a.rottmann84e63352003-03-24 09:42:16 +0000443# include <stdlib.h>
444# endif
445#endif
drh613a0fe2007-11-23 17:31:17 +0000446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
a.rottmann84e63352003-03-24 09:42:16 +0000448# include <memory.h>
449# endif
450# include <string.h>
451#endif
drh613a0fe2007-11-23 17:31:17 +0000452#if HAVE_STRINGS_H
a.rottmann84e63352003-03-24 09:42:16 +0000453# include <strings.h>
454#endif
drh613a0fe2007-11-23 17:31:17 +0000455#if HAVE_INTTYPES_H
a.rottmann84e63352003-03-24 09:42:16 +0000456# include <inttypes.h>
drh613a0fe2007-11-23 17:31:17 +0000457#else
458# if HAVE_STDINT_H
459# include <stdint.h>
460# endif
a.rottmann84e63352003-03-24 09:42:16 +0000461#endif
drh613a0fe2007-11-23 17:31:17 +0000462#if HAVE_UNISTD_H
a.rottmann84e63352003-03-24 09:42:16 +0000463# include <unistd.h>
464#endif"
465
drh613a0fe2007-11-23 17:31:17 +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 AWK program_prefix VERSION RELEASE VERSION_NUMBER BUILD_CC BUILD_CFLAGS SQLITE_THREADSAFE TARGET_THREAD_LIB XTHREADCONNECT THREADSOVERRIDELOCKS ALLOWRELEASE TEMP_STORE BUILD_EXEEXT OS_UNIX OS_WIN OS_OS2 TARGET_EXEEXT TCL_VERSION TCL_BIN_DIR TCL_SRC_DIR TCL_LIBS TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC HAVE_TCL TARGET_READLINE_LIBS TARGET_READLINE_INC TARGET_HAVE_READLINE TARGET_DEBUG 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'
drh613a0fe2007-11-23 17:31:17 +0000497datadir='${prefix}/share'
drh75897232000-05-29 14:26:00 +0000498sysconfdir='${prefix}/etc'
499sharedstatedir='${prefix}/com'
500localstatedir='${prefix}/var'
drh613a0fe2007-11-23 17:31:17 +0000501libdir='${exec_prefix}/lib'
drh75897232000-05-29 14:26:00 +0000502includedir='${prefix}/include'
503oldincludedir='/usr/include'
drh613a0fe2007-11-23 17:31:17 +0000504infodir='${prefix}/info'
505mandir='${prefix}/man'
drh75897232000-05-29 14:26:00 +0000506
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
drh613a0fe2007-11-23 17:31:17 +0000512 eval "$ac_prev=\$ac_option"
drh75897232000-05-29 14:26:00 +0000513 ac_prev=
514 continue
515 fi
516
drh613a0fe2007-11-23 17:31:17 +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
drh613a0fe2007-11-23 17:31:17 +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
drh613a0fe2007-11-23 17:31:17 +0000543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
drh75897232000-05-29 14:26:00 +0000544 ac_prev=datadir ;;
drh613a0fe2007-11-23 17:31:17 +0000545 -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.
drh613a0fe2007-11-23 17:31:17 +0000552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
drh71eb93e2001-09-28 01:34:43 +0000553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
drh613a0fe2007-11-23 17:31:17 +0000555 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.
drh613a0fe2007-11-23 17:31:17 +0000561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
drh71eb93e2001-09-28 01:34:43 +0000562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
drh613a0fe2007-11-23 17:31:17 +0000564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 case $ac_option in
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567 *) ac_optarg=yes ;;
568 esac
569 eval "enable_$ac_feature='$ac_optarg'" ;;
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 \
drh613a0fe2007-11-23 17:31:17 +0000621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
drh75897232000-05-29 14:26:00 +0000623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh613a0fe2007-11-23 17:31:17 +0000625 | --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.
drh613a0fe2007-11-23 17:31:17 +0000743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
drh71eb93e2001-09-28 01:34:43 +0000744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
drh613a0fe2007-11-23 17:31:17 +0000746 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 case $ac_option in
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749 *) ac_optarg=yes ;;
750 esac
751 eval "with_$ac_package='$ac_optarg'" ;;
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.
drh613a0fe2007-11-23 17:31:17 +0000756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
drh71eb93e2001-09-28 01:34:43 +0000757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
drh613a0fe2007-11-23 17:31:17 +0000759 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; }; }
drh613a0fe2007-11-23 17:31:17 +0000791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +0000793 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
drh613a0fe2007-11-23 17:31:17 +0000812# Be sure to have absolute paths.
813for ac_var in exec_prefix prefix
drh75897232000-05-29 14:26:00 +0000814do
drh613a0fe2007-11-23 17:31:17 +0000815 eval ac_val=$`echo $ac_var`
drh71eb93e2001-09-28 01:34:43 +0000816 case $ac_val in
drh613a0fe2007-11-23 17:31:17 +0000817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
drh75897232000-05-29 14:26:00 +0000820 esac
drh613a0fe2007-11-23 17:31:17 +0000821done
822
823# Be sure to have absolute paths.
824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
826do
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
832 esac
drh71eb93e2001-09-28 01:34:43 +0000833done
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
drh613a0fe2007-11-23 17:31:17 +0000862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +0000864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +0000865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
drh613a0fe2007-11-23 17:31:17 +0000867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +0000869echo X"$0" |
drh613a0fe2007-11-23 17:31:17 +0000870 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
drh613a0fe2007-11-23 17:31:17 +0000876 if test ! -r $srcdir/$ac_unique_file; then
drh75897232000-05-29 14:26:00 +0000877 srcdir=..
878 fi
879else
880 ac_srcdir_defaulted=no
881fi
drh613a0fe2007-11-23 17:31:17 +0000882if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
drh71eb93e2001-09-28 01:34:43 +0000885 { (exit 1); exit 1; }; }
drh613a0fe2007-11-23 17:31:17 +0000886 else
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
a.rottmann84e63352003-03-24 09:42:16 +0000888 { (exit 1); exit 1; }; }
drh613a0fe2007-11-23 17:31:17 +0000889 fi
vapier7f19c022007-02-17 14:46:31 +0000890fi
drh613a0fe2007-11-23 17:31:17 +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; }; }
894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895ac_env_build_alias_set=${build_alias+set}
896ac_env_build_alias_value=$build_alias
897ac_cv_env_build_alias_set=${build_alias+set}
898ac_cv_env_build_alias_value=$build_alias
899ac_env_host_alias_set=${host_alias+set}
900ac_env_host_alias_value=$host_alias
901ac_cv_env_host_alias_set=${host_alias+set}
902ac_cv_env_host_alias_value=$host_alias
903ac_env_target_alias_set=${target_alias+set}
904ac_env_target_alias_value=$target_alias
905ac_cv_env_target_alias_set=${target_alias+set}
906ac_cv_env_target_alias_value=$target_alias
907ac_env_CC_set=${CC+set}
908ac_env_CC_value=$CC
909ac_cv_env_CC_set=${CC+set}
910ac_cv_env_CC_value=$CC
911ac_env_CFLAGS_set=${CFLAGS+set}
912ac_env_CFLAGS_value=$CFLAGS
913ac_cv_env_CFLAGS_set=${CFLAGS+set}
914ac_cv_env_CFLAGS_value=$CFLAGS
915ac_env_LDFLAGS_set=${LDFLAGS+set}
916ac_env_LDFLAGS_value=$LDFLAGS
917ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918ac_cv_env_LDFLAGS_value=$LDFLAGS
919ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920ac_env_CPPFLAGS_value=$CPPFLAGS
921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923ac_env_CPP_set=${CPP+set}
924ac_env_CPP_value=$CPP
925ac_cv_env_CPP_set=${CPP+set}
926ac_cv_env_CPP_value=$CPP
927ac_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
drh613a0fe2007-11-23 17:31:17 +0000975_ACEOF
976
977 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]
drh613a0fe2007-11-23 17:31:17 +0000995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
drh71eb93e2001-09-28 01:34:43 +0000996 --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]
drh613a0fe2007-11-23 17:31:17 +00001002 --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]
drh613a0fe2007-11-23 17:31:17 +00001021 --enable-shared[=PKGS]
1022 build shared libraries [default=yes]
1023 --enable-static[=PKGS]
1024 build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001025 --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)
drh94e4f822006-02-15 02:00:25 +00001028 --enable-threadsafe Support threadsafe operation
1029 --enable-cross-thread-connections
1030 Allow connection sharing across threads
1031 --enable-threads-override-locks
1032 Threads can override each others locks
1033 --enable-releasemode Support libtool link to release mode
1034 --enable-tempstore Use an in-ram database for temporary tables
1035 (never,no,yes,always)
1036 --disable-tcl do not build TCL extension
vapier7f19c022007-02-17 14:46:31 +00001037 --disable-readline disable readline support [default=detect]
drh94e4f822006-02-15 02:00:25 +00001038 --enable-debug enable debugging & verbose explain
drh71eb93e2001-09-28 01:34:43 +00001039
1040Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1045 both]
drh613a0fe2007-11-23 17:31:17 +00001046 --with-tags[=TAGS]
1047 include additional configurations [automatic]
drh71eb93e2001-09-28 01:34:43 +00001048 --with-hints=FILE Read configuration options from FILE
drh94e4f822006-02-15 02:00:25 +00001049 --with-tcl=DIR directory containing tcl configuration
1050 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001051 --with-readline-lib specify readline library
1052 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001053
1054Some influential environment variables:
1055 CC C compiler command
1056 CFLAGS C compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
drh613a0fe2007-11-23 17:31:17 +00001059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001061 CPP C preprocessor
a.rottmann9bc8b932004-02-29 15:18:31 +00001062 CXX C++ compiler command
1063 CXXFLAGS C++ compiler flags
1064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
drh71eb93e2001-09-28 01:34:43 +00001067
1068Use these variables to override the choices made by `configure' or to help
1069it to find libraries and programs with nonstandard names/locations.
1070
a.rottmann84e63352003-03-24 09:42:16 +00001071_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001072fi
1073
1074if test "$ac_init_help" = "recursive"; then
1075 # If there are subdirs, report their specific --help.
drh613a0fe2007-11-23 17:31:17 +00001076 ac_popdir=`pwd`
a.rottmann84e63352003-03-24 09:42:16 +00001077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh613a0fe2007-11-23 17:31:17 +00001078 test -d $ac_dir || continue
a.rottmann84e63352003-03-24 09:42:16 +00001079 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001080
drh613a0fe2007-11-23 17:31:17 +00001081if test "$ac_dir" != .; then
a.rottmann84e63352003-03-24 09:42:16 +00001082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
drh613a0fe2007-11-23 17:31:17 +00001083 # A "../" for each directory in $ac_dir_suffix.
1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1085else
1086 ac_dir_suffix= ac_top_builddir=
1087fi
drh71eb93e2001-09-28 01:34:43 +00001088
a.rottmann84e63352003-03-24 09:42:16 +00001089case $srcdir in
drh613a0fe2007-11-23 17:31:17 +00001090 .) # No --srcdir option. We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001091 ac_srcdir=.
drh613a0fe2007-11-23 17:31:17 +00001092 if test -z "$ac_top_builddir"; then
1093 ac_top_srcdir=.
1094 else
1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1096 fi ;;
1097 [\\/]* | ?:[\\/]* ) # Absolute path.
a.rottmann84e63352003-03-24 09:42:16 +00001098 ac_srcdir=$srcdir$ac_dir_suffix;
drh613a0fe2007-11-23 17:31:17 +00001099 ac_top_srcdir=$srcdir ;;
1100 *) # Relative path.
1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +00001103esac
a.rottmann964dbb12004-02-26 19:47:42 +00001104
drh613a0fe2007-11-23 17:31:17 +00001105# Do not use `cd foo && pwd` to compute absolute paths, because
1106# the directories may not exist.
1107case `pwd` in
1108.) ac_abs_builddir="$ac_dir";;
1109*)
1110 case "$ac_dir" in
1111 .) ac_abs_builddir=`pwd`;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1114 esac;;
1115esac
1116case $ac_abs_builddir in
1117.) ac_abs_top_builddir=${ac_top_builddir}.;;
1118*)
1119 case ${ac_top_builddir}. in
1120 .) ac_abs_top_builddir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1123 esac;;
1124esac
1125case $ac_abs_builddir in
1126.) ac_abs_srcdir=$ac_srcdir;;
1127*)
1128 case $ac_srcdir in
1129 .) ac_abs_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1132 esac;;
1133esac
1134case $ac_abs_builddir in
1135.) ac_abs_top_srcdir=$ac_top_srcdir;;
1136*)
1137 case $ac_top_srcdir in
1138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1141 esac;;
1142esac
1143
1144 cd $ac_dir
1145 # Check for guested configure; otherwise get Cygnus style configure.
1146 if test -f $ac_srcdir/configure.gnu; then
1147 echo
1148 $SHELL $ac_srcdir/configure.gnu --help=recursive
1149 elif test -f $ac_srcdir/configure; then
1150 echo
1151 $SHELL $ac_srcdir/configure --help=recursive
1152 elif test -f $ac_srcdir/configure.ac ||
1153 test -f $ac_srcdir/configure.in; then
1154 echo
1155 $ac_configure --help
drh71eb93e2001-09-28 01:34:43 +00001156 else
a.rottmann84e63352003-03-24 09:42:16 +00001157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
drh613a0fe2007-11-23 17:31:17 +00001158 fi
1159 cd $ac_popdir
drh71eb93e2001-09-28 01:34:43 +00001160 done
1161fi
1162
drh613a0fe2007-11-23 17:31:17 +00001163test -n "$ac_init_help" && exit 0
drh71eb93e2001-09-28 01:34:43 +00001164if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001165 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001166
drh613a0fe2007-11-23 17:31:17 +00001167Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001168This configure script is free software; the Free Software Foundation
1169gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001170_ACEOF
drh613a0fe2007-11-23 17:31:17 +00001171 exit 0
drh71eb93e2001-09-28 01:34:43 +00001172fi
drh613a0fe2007-11-23 17:31:17 +00001173exec 5>config.log
1174cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001175This file contains any messages produced by compilers while
1176running configure, to aid debugging if configure makes a mistake.
1177
1178It was created by $as_me, which was
drh613a0fe2007-11-23 17:31:17 +00001179generated by GNU Autoconf 2.59. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001180
1181 $ $0 $@
1182
a.rottmann84e63352003-03-24 09:42:16 +00001183_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001184{
1185cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001186## --------- ##
1187## Platform. ##
1188## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001189
1190hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1191uname -m = `(uname -m) 2>/dev/null || echo unknown`
1192uname -r = `(uname -r) 2>/dev/null || echo unknown`
1193uname -s = `(uname -s) 2>/dev/null || echo unknown`
1194uname -v = `(uname -v) 2>/dev/null || echo unknown`
1195
1196/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1197/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1198
1199/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1200/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1201/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh613a0fe2007-11-23 17:31:17 +00001202hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00001203/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1204/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1205/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1206
drh71eb93e2001-09-28 01:34:43 +00001207_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001208
1209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1210for as_dir in $PATH
1211do
1212 IFS=$as_save_IFS
1213 test -z "$as_dir" && as_dir=.
1214 echo "PATH: $as_dir"
1215done
1216
drh71eb93e2001-09-28 01:34:43 +00001217} >&5
1218
a.rottmann84e63352003-03-24 09:42:16 +00001219cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001220
a.rottmann84e63352003-03-24 09:42:16 +00001221
1222## ----------- ##
1223## Core tests. ##
1224## ----------- ##
1225
1226_ACEOF
1227
drh71eb93e2001-09-28 01:34:43 +00001228
1229# Keep a trace of the command line.
1230# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001231# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001232# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001233# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001234ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001235ac_configure_args0=
1236ac_configure_args1=
drh613a0fe2007-11-23 17:31:17 +00001237ac_sep=
a.rottmann84e63352003-03-24 09:42:16 +00001238ac_must_keep_next=false
1239for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001240do
a.rottmann84e63352003-03-24 09:42:16 +00001241 for ac_arg
1242 do
1243 case $ac_arg in
1244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246 | -silent | --silent | --silen | --sile | --sil)
1247 continue ;;
drh613a0fe2007-11-23 17:31:17 +00001248 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
a.rottmann84e63352003-03-24 09:42:16 +00001249 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1250 esac
1251 case $ac_pass in
1252 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1253 2)
1254 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1255 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001256 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001257 else
a.rottmann964dbb12004-02-26 19:47:42 +00001258 case $ac_arg in
1259 *=* | --config-cache | -C | -disable-* | --disable-* \
1260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1262 | -with-* | --with-* | -without-* | --without-* | --x)
1263 case "$ac_configure_args0 " in
1264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1265 esac
1266 ;;
1267 -* ) ac_must_keep_next=true ;;
1268 esac
a.rottmann84e63352003-03-24 09:42:16 +00001269 fi
drh613a0fe2007-11-23 17:31:17 +00001270 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1271 # Get rid of the leading space.
1272 ac_sep=" "
a.rottmann84e63352003-03-24 09:42:16 +00001273 ;;
1274 esac
1275 done
drh71eb93e2001-09-28 01:34:43 +00001276done
a.rottmann84e63352003-03-24 09:42:16 +00001277$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1278$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001279
1280# When interrupted or exit'd, cleanup temporary files, and complete
1281# config.log. We remove comments because anyway the quotes in there
1282# would cause problems or look ugly.
drh613a0fe2007-11-23 17:31:17 +00001283# WARNING: Be sure not to use single quotes in there, as some shells,
1284# such as our DU 5.0 friend, will then `close' the trap.
drh71eb93e2001-09-28 01:34:43 +00001285trap 'exit_status=$?
1286 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001287 {
1288 echo
1289
1290 cat <<\_ASBOX
1291## ---------------- ##
1292## Cache variables. ##
1293## ---------------- ##
1294_ASBOX
1295 echo
1296 # The following way of writing the cache mishandles newlines in values,
drh613a0fe2007-11-23 17:31:17 +00001297{
drh71eb93e2001-09-28 01:34:43 +00001298 (set) 2>&1 |
drh613a0fe2007-11-23 17:31:17 +00001299 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1300 *ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00001301 sed -n \
drh613a0fe2007-11-23 17:31:17 +00001302 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
drh71eb93e2001-09-28 01:34:43 +00001304 ;;
drh613a0fe2007-11-23 17:31:17 +00001305 *)
1306 sed -n \
1307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1308 ;;
1309 esac;
1310}
a.rottmann84e63352003-03-24 09:42:16 +00001311 echo
1312
1313 cat <<\_ASBOX
1314## ----------------- ##
1315## Output variables. ##
1316## ----------------- ##
1317_ASBOX
1318 echo
1319 for ac_var in $ac_subst_vars
1320 do
drh613a0fe2007-11-23 17:31:17 +00001321 eval ac_val=$`echo $ac_var`
1322 echo "$ac_var='"'"'$ac_val'"'"'"
a.rottmann84e63352003-03-24 09:42:16 +00001323 done | sort
1324 echo
1325
1326 if test -n "$ac_subst_files"; then
1327 cat <<\_ASBOX
drh613a0fe2007-11-23 17:31:17 +00001328## ------------- ##
1329## Output files. ##
1330## ------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001331_ASBOX
1332 echo
1333 for ac_var in $ac_subst_files
1334 do
drh613a0fe2007-11-23 17:31:17 +00001335 eval ac_val=$`echo $ac_var`
1336 echo "$ac_var='"'"'$ac_val'"'"'"
a.rottmann84e63352003-03-24 09:42:16 +00001337 done | sort
1338 echo
1339 fi
1340
1341 if test -s confdefs.h; then
1342 cat <<\_ASBOX
1343## ----------- ##
1344## confdefs.h. ##
1345## ----------- ##
1346_ASBOX
1347 echo
drh613a0fe2007-11-23 17:31:17 +00001348 sed "/^$/d" confdefs.h | sort
a.rottmann84e63352003-03-24 09:42:16 +00001349 echo
1350 fi
1351 test "$ac_signal" != 0 &&
1352 echo "$as_me: caught signal $ac_signal"
1353 echo "$as_me: exit $exit_status"
1354 } >&5
drh613a0fe2007-11-23 17:31:17 +00001355 rm -f core *.core &&
1356 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001357 exit $exit_status
drh613a0fe2007-11-23 17:31:17 +00001358 ' 0
drh71eb93e2001-09-28 01:34:43 +00001359for ac_signal in 1 2 13 15; do
1360 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1361done
1362ac_signal=0
1363
1364# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh613a0fe2007-11-23 17:31:17 +00001365rm -rf conftest* confdefs.h
1366# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1367echo >confdefs.h
drh71eb93e2001-09-28 01:34:43 +00001368
a.rottmann84e63352003-03-24 09:42:16 +00001369# Predefined preprocessor variables.
1370
1371cat >>confdefs.h <<_ACEOF
1372#define PACKAGE_NAME "$PACKAGE_NAME"
1373_ACEOF
1374
1375
1376cat >>confdefs.h <<_ACEOF
1377#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1378_ACEOF
1379
1380
1381cat >>confdefs.h <<_ACEOF
1382#define PACKAGE_VERSION "$PACKAGE_VERSION"
1383_ACEOF
1384
1385
1386cat >>confdefs.h <<_ACEOF
1387#define PACKAGE_STRING "$PACKAGE_STRING"
1388_ACEOF
1389
1390
1391cat >>confdefs.h <<_ACEOF
1392#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1393_ACEOF
1394
1395
drh71eb93e2001-09-28 01:34:43 +00001396# Let the site file select an alternate cache file if it wants to.
drh75897232000-05-29 14:26:00 +00001397# Prefer explicitly selected file to automatically selected ones.
drh613a0fe2007-11-23 17:31:17 +00001398if test -z "$CONFIG_SITE"; then
1399 if test "x$prefix" != xNONE; then
1400 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1401 else
1402 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1403 fi
drh75897232000-05-29 14:26:00 +00001404fi
drh613a0fe2007-11-23 17:31:17 +00001405for ac_site_file in $CONFIG_SITE; do
drh75897232000-05-29 14:26:00 +00001406 if test -r "$ac_site_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001407 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001408echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001409 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001410 . "$ac_site_file"
1411 fi
1412done
1413
1414if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001415 # Some versions of bash will fail to source /dev/null (special
1416 # files actually), so we avoid doing that.
1417 if test -f "$cache_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001418 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001419echo "$as_me: loading cache $cache_file" >&6;}
1420 case $cache_file in
drh613a0fe2007-11-23 17:31:17 +00001421 [\\/]* | ?:[\\/]* ) . $cache_file;;
1422 *) . ./$cache_file;;
drh71eb93e2001-09-28 01:34:43 +00001423 esac
1424 fi
drh75897232000-05-29 14:26:00 +00001425else
a.rottmann84e63352003-03-24 09:42:16 +00001426 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001427echo "$as_me: creating cache $cache_file" >&6;}
1428 >$cache_file
1429fi
1430
1431# Check that the precious variables saved in the cache have kept the same
1432# value.
1433ac_cache_corrupted=false
drh613a0fe2007-11-23 17:31:17 +00001434for ac_var in `(set) 2>&1 |
1435 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
drh71eb93e2001-09-28 01:34:43 +00001436 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1437 eval ac_new_set=\$ac_env_${ac_var}_set
drh613a0fe2007-11-23 17:31:17 +00001438 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1439 eval ac_new_val="\$ac_env_${ac_var}_value"
drh71eb93e2001-09-28 01:34:43 +00001440 case $ac_old_set,$ac_new_set in
1441 set,)
a.rottmann84e63352003-03-24 09:42:16 +00001442 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001443echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1444 ac_cache_corrupted=: ;;
1445 ,set)
a.rottmann84e63352003-03-24 09:42:16 +00001446 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001447echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1449 ,);;
1450 *)
1451 if test "x$ac_old_val" != "x$ac_new_val"; then
a.rottmann964dbb12004-02-26 19:47:42 +00001452 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
drh71eb93e2001-09-28 01:34:43 +00001453echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001454 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001455echo "$as_me: former value: $ac_old_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001456 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001457echo "$as_me: current value: $ac_new_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001458 ac_cache_corrupted=:
drh71eb93e2001-09-28 01:34:43 +00001459 fi;;
1460 esac
a.rottmann84e63352003-03-24 09:42:16 +00001461 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001462 if test "$ac_new_set" = set; then
1463 case $ac_new_val in
drh613a0fe2007-11-23 17:31:17 +00001464 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1465 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00001466 *) ac_arg=$ac_var=$ac_new_val ;;
1467 esac
1468 case " $ac_configure_args " in
1469 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1470 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00001471 esac
1472 fi
1473done
1474if $ac_cache_corrupted; then
a.rottmann84e63352003-03-24 09:42:16 +00001475 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
drh71eb93e2001-09-28 01:34:43 +00001476echo "$as_me: error: changes in the environment can compromise the build" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00001477 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
drh71eb93e2001-09-28 01:34:43 +00001478echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1479 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001480fi
1481
1482ac_ext=c
drh75897232000-05-29 14:26:00 +00001483ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00001484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00001487
a.rottmann84e63352003-03-24 09:42:16 +00001488
1489
drh613a0fe2007-11-23 17:31:17 +00001490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
drh75897232000-05-29 14:26:00 +00001507# The following RCS revision string applies to configure.in
drh0b47d342007-11-27 14:50:06 +00001508# $Revision: 1.45 $
drh75897232000-05-29 14:26:00 +00001509
1510#########
drh71eb93e2001-09-28 01:34:43 +00001511# Programs needed
drh75897232000-05-29 14:26:00 +00001512#
drh613a0fe2007-11-23 17:31:17 +00001513# Check whether --enable-shared or --disable-shared was given.
drh71eb93e2001-09-28 01:34:43 +00001514if test "${enable_shared+set}" = set; then
drh613a0fe2007-11-23 17:31:17 +00001515 enableval="$enable_shared"
1516 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001517 case $enableval in
1518 yes) enable_shared=yes ;;
1519 no) enable_shared=no ;;
1520 *)
1521 enable_shared=no
1522 # Look at the argument we got. We use all the common list separators.
1523 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1524 for pkg in $enableval; do
1525 IFS="$lt_save_ifs"
1526 if test "X$pkg" = "X$p"; then
1527 enable_shared=yes
1528 fi
1529 done
1530 IFS="$lt_save_ifs"
1531 ;;
1532 esac
drh71eb93e2001-09-28 01:34:43 +00001533else
1534 enable_shared=yes
drh613a0fe2007-11-23 17:31:17 +00001535fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001536
drh613a0fe2007-11-23 17:31:17 +00001537# Check whether --enable-static or --disable-static was given.
drh71eb93e2001-09-28 01:34:43 +00001538if test "${enable_static+set}" = set; then
drh613a0fe2007-11-23 17:31:17 +00001539 enableval="$enable_static"
1540 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001541 case $enableval in
1542 yes) enable_static=yes ;;
1543 no) enable_static=no ;;
1544 *)
1545 enable_static=no
1546 # Look at the argument we got. We use all the common list separators.
1547 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1548 for pkg in $enableval; do
1549 IFS="$lt_save_ifs"
1550 if test "X$pkg" = "X$p"; then
1551 enable_static=yes
1552 fi
1553 done
1554 IFS="$lt_save_ifs"
1555 ;;
1556 esac
drh71eb93e2001-09-28 01:34:43 +00001557else
1558 enable_static=yes
drh613a0fe2007-11-23 17:31:17 +00001559fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001560
drh613a0fe2007-11-23 17:31:17 +00001561# Check whether --enable-fast-install or --disable-fast-install was given.
drh71eb93e2001-09-28 01:34:43 +00001562if test "${enable_fast_install+set}" = set; then
drh613a0fe2007-11-23 17:31:17 +00001563 enableval="$enable_fast_install"
1564 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001565 case $enableval in
1566 yes) enable_fast_install=yes ;;
1567 no) enable_fast_install=no ;;
1568 *)
1569 enable_fast_install=no
1570 # Look at the argument we got. We use all the common list separators.
1571 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1572 for pkg in $enableval; do
1573 IFS="$lt_save_ifs"
1574 if test "X$pkg" = "X$p"; then
1575 enable_fast_install=yes
1576 fi
1577 done
1578 IFS="$lt_save_ifs"
1579 ;;
1580 esac
drh71eb93e2001-09-28 01:34:43 +00001581else
1582 enable_fast_install=yes
drh613a0fe2007-11-23 17:31:17 +00001583fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001584
drh71eb93e2001-09-28 01:34:43 +00001585ac_aux_dir=
drh613a0fe2007-11-23 17:31:17 +00001586for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1587 if test -f $ac_dir/install-sh; then
drh71eb93e2001-09-28 01:34:43 +00001588 ac_aux_dir=$ac_dir
1589 ac_install_sh="$ac_aux_dir/install-sh -c"
1590 break
drh613a0fe2007-11-23 17:31:17 +00001591 elif test -f $ac_dir/install.sh; then
drh71eb93e2001-09-28 01:34:43 +00001592 ac_aux_dir=$ac_dir
1593 ac_install_sh="$ac_aux_dir/install.sh -c"
1594 break
drh613a0fe2007-11-23 17:31:17 +00001595 elif test -f $ac_dir/shtool; then
drh71eb93e2001-09-28 01:34:43 +00001596 ac_aux_dir=$ac_dir
1597 ac_install_sh="$ac_aux_dir/shtool install -c"
1598 break
1599 fi
1600done
1601if test -z "$ac_aux_dir"; then
drh613a0fe2007-11-23 17:31:17 +00001602 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1603echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
drh71eb93e2001-09-28 01:34:43 +00001604 { (exit 1); exit 1; }; }
1605fi
drh613a0fe2007-11-23 17:31:17 +00001606ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1607ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1608ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
drh71eb93e2001-09-28 01:34:43 +00001609
1610# Make sure we can run config.sub.
drh613a0fe2007-11-23 17:31:17 +00001611$ac_config_sub sun4 >/dev/null 2>&1 ||
1612 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1613echo "$as_me: error: cannot run $ac_config_sub" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001614 { (exit 1); exit 1; }; }
1615
drh613a0fe2007-11-23 17:31:17 +00001616echo "$as_me:$LINENO: checking build system type" >&5
1617echo $ECHO_N "checking build system type... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001618if test "${ac_cv_build+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620else
drh613a0fe2007-11-23 17:31:17 +00001621 ac_cv_build_alias=$build_alias
1622test -z "$ac_cv_build_alias" &&
1623 ac_cv_build_alias=`$ac_config_guess`
1624test -z "$ac_cv_build_alias" &&
a.rottmann84e63352003-03-24 09:42:16 +00001625 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
drh71eb93e2001-09-28 01:34:43 +00001626echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1627 { (exit 1); exit 1; }; }
drh613a0fe2007-11-23 17:31:17 +00001628ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1629 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1630echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001631 { (exit 1); exit 1; }; }
1632
1633fi
drh613a0fe2007-11-23 17:31:17 +00001634echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1635echo "${ECHO_T}$ac_cv_build" >&6
drh71eb93e2001-09-28 01:34:43 +00001636build=$ac_cv_build
drh613a0fe2007-11-23 17:31:17 +00001637build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1638build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1639build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
drh71eb93e2001-09-28 01:34:43 +00001640
a.rottmann84e63352003-03-24 09:42:16 +00001641
drh613a0fe2007-11-23 17:31:17 +00001642echo "$as_me:$LINENO: checking host system type" >&5
1643echo $ECHO_N "checking host system type... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001644if test "${ac_cv_host+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1646else
drh613a0fe2007-11-23 17:31:17 +00001647 ac_cv_host_alias=$host_alias
1648test -z "$ac_cv_host_alias" &&
1649 ac_cv_host_alias=$ac_cv_build_alias
1650ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1651 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1652echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001653 { (exit 1); exit 1; }; }
1654
1655fi
drh613a0fe2007-11-23 17:31:17 +00001656echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1657echo "${ECHO_T}$ac_cv_host" >&6
drh71eb93e2001-09-28 01:34:43 +00001658host=$ac_cv_host
drh613a0fe2007-11-23 17:31:17 +00001659host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1660host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1661host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
drh71eb93e2001-09-28 01:34:43 +00001662
a.rottmann84e63352003-03-24 09:42:16 +00001663
drh71eb93e2001-09-28 01:34:43 +00001664ac_ext=c
1665ac_cpp='$CPP $CPPFLAGS'
1666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1668ac_compiler_gnu=$ac_cv_c_compiler_gnu
1669if test -n "$ac_tool_prefix"; then
1670 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1671set dummy ${ac_tool_prefix}gcc; ac_word=$2
drh613a0fe2007-11-23 17:31:17 +00001672echo "$as_me:$LINENO: checking for $ac_word" >&5
1673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001674if test "${ac_cv_prog_CC+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1676else
1677 if test -n "$CC"; then
1678 ac_cv_prog_CC="$CC" # Let the user override the test.
1679else
a.rottmann84e63352003-03-24 09:42:16 +00001680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681for as_dir in $PATH
1682do
1683 IFS=$as_save_IFS
1684 test -z "$as_dir" && as_dir=.
1685 for ac_exec_ext in '' $ac_executable_extensions; do
drh613a0fe2007-11-23 17:31:17 +00001686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00001687 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689 break 2
1690 fi
1691done
drh71eb93e2001-09-28 01:34:43 +00001692done
1693
1694fi
1695fi
1696CC=$ac_cv_prog_CC
1697if test -n "$CC"; then
drh613a0fe2007-11-23 17:31:17 +00001698 echo "$as_me:$LINENO: result: $CC" >&5
1699echo "${ECHO_T}$CC" >&6
drh71eb93e2001-09-28 01:34:43 +00001700else
drh613a0fe2007-11-23 17:31:17 +00001701 echo "$as_me:$LINENO: result: no" >&5
1702echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00001703fi
1704
1705fi
1706if test -z "$ac_cv_prog_CC"; then
1707 ac_ct_CC=$CC
1708 # Extract the first word of "gcc", so it can be a program name with args.
1709set dummy gcc; ac_word=$2
drh613a0fe2007-11-23 17:31:17 +00001710echo "$as_me:$LINENO: checking for $ac_word" >&5
1711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001712if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1714else
1715 if test -n "$ac_ct_CC"; then
1716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1717else
a.rottmann84e63352003-03-24 09:42:16 +00001718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719for as_dir in $PATH
1720do
1721 IFS=$as_save_IFS
1722 test -z "$as_dir" && as_dir=.
1723 for ac_exec_ext in '' $ac_executable_extensions; do
drh613a0fe2007-11-23 17:31:17 +00001724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00001725 ac_cv_prog_ac_ct_CC="gcc"
1726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727 break 2
1728 fi
1729done
drh71eb93e2001-09-28 01:34:43 +00001730done
1731
1732fi
1733fi
1734ac_ct_CC=$ac_cv_prog_ac_ct_CC
1735if test -n "$ac_ct_CC"; then
drh613a0fe2007-11-23 17:31:17 +00001736 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1737echo "${ECHO_T}$ac_ct_CC" >&6
drh71eb93e2001-09-28 01:34:43 +00001738else
drh613a0fe2007-11-23 17:31:17 +00001739 echo "$as_me:$LINENO: result: no" >&5
1740echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00001741fi
1742
drh613a0fe2007-11-23 17:31:17 +00001743 CC=$ac_ct_CC
drh71eb93e2001-09-28 01:34:43 +00001744else
1745 CC="$ac_cv_prog_CC"
1746fi
1747
1748if test -z "$CC"; then
drh613a0fe2007-11-23 17:31:17 +00001749 if test -n "$ac_tool_prefix"; then
1750 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00001751set dummy ${ac_tool_prefix}cc; ac_word=$2
drh613a0fe2007-11-23 17:31:17 +00001752echo "$as_me:$LINENO: checking for $ac_word" >&5
1753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001754if test "${ac_cv_prog_CC+set}" = set; then
1755 echo $ECHO_N "(cached) $ECHO_C" >&6
1756else
1757 if test -n "$CC"; then
1758 ac_cv_prog_CC="$CC" # Let the user override the test.
1759else
a.rottmann84e63352003-03-24 09:42:16 +00001760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761for as_dir in $PATH
1762do
1763 IFS=$as_save_IFS
1764 test -z "$as_dir" && as_dir=.
1765 for ac_exec_ext in '' $ac_executable_extensions; do
drh613a0fe2007-11-23 17:31:17 +00001766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00001767 ac_cv_prog_CC="${ac_tool_prefix}cc"
1768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769 break 2
1770 fi
1771done
drh71eb93e2001-09-28 01:34:43 +00001772done
1773
1774fi
1775fi
1776CC=$ac_cv_prog_CC
1777if test -n "$CC"; then
drh613a0fe2007-11-23 17:31:17 +00001778 echo "$as_me:$LINENO: result: $CC" >&5
1779echo "${ECHO_T}$CC" >&6
drh71eb93e2001-09-28 01:34:43 +00001780else
drh613a0fe2007-11-23 17:31:17 +00001781 echo "$as_me:$LINENO: result: no" >&5
1782echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00001783fi
1784
drh613a0fe2007-11-23 17:31:17 +00001785fi
1786if test -z "$ac_cv_prog_CC"; then
1787 ac_ct_CC=$CC
1788 # Extract the first word of "cc", so it can be a program name with args.
1789set dummy cc; ac_word=$2
1790echo "$as_me:$LINENO: checking for $ac_word" >&5
1791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1794else
1795 if test -n "$ac_ct_CC"; then
1796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1797else
1798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799for as_dir in $PATH
1800do
1801 IFS=$as_save_IFS
1802 test -z "$as_dir" && as_dir=.
1803 for ac_exec_ext in '' $ac_executable_extensions; do
1804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805 ac_cv_prog_ac_ct_CC="cc"
1806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807 break 2
a.rottmann84e63352003-03-24 09:42:16 +00001808 fi
drh613a0fe2007-11-23 17:31:17 +00001809done
1810done
1811
1812fi
1813fi
1814ac_ct_CC=$ac_cv_prog_ac_ct_CC
1815if test -n "$ac_ct_CC"; then
1816 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1817echo "${ECHO_T}$ac_ct_CC" >&6
1818else
1819 echo "$as_me:$LINENO: result: no" >&5
1820echo "${ECHO_T}no" >&6
1821fi
1822
1823 CC=$ac_ct_CC
1824else
1825 CC="$ac_cv_prog_CC"
1826fi
1827
drh71eb93e2001-09-28 01:34:43 +00001828fi
1829if test -z "$CC"; then
1830 # Extract the first word of "cc", so it can be a program name with args.
1831set dummy cc; ac_word=$2
drh613a0fe2007-11-23 17:31:17 +00001832echo "$as_me:$LINENO: checking for $ac_word" >&5
1833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001834if test "${ac_cv_prog_CC+set}" = set; then
1835 echo $ECHO_N "(cached) $ECHO_C" >&6
1836else
1837 if test -n "$CC"; then
1838 ac_cv_prog_CC="$CC" # Let the user override the test.
1839else
1840 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00001841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842for as_dir in $PATH
1843do
1844 IFS=$as_save_IFS
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
drh613a0fe2007-11-23 17:31:17 +00001847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00001848 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1849 ac_prog_rejected=yes
1850 continue
1851 fi
1852 ac_cv_prog_CC="cc"
1853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854 break 2
1855 fi
1856done
drh71eb93e2001-09-28 01:34:43 +00001857done
1858
1859if test $ac_prog_rejected = yes; then
1860 # We found a bogon in the path, so make sure we never use it.
1861 set dummy $ac_cv_prog_CC
1862 shift
1863 if test $# != 0; then
1864 # We chose a different compiler from the bogus one.
1865 # However, it has the same basename, so the bogon will be chosen
1866 # first if we set CC to just the basename; use the full file name.
1867 shift
a.rottmann84e63352003-03-24 09:42:16 +00001868 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00001869 fi
1870fi
1871fi
1872fi
1873CC=$ac_cv_prog_CC
1874if test -n "$CC"; then
drh613a0fe2007-11-23 17:31:17 +00001875 echo "$as_me:$LINENO: result: $CC" >&5
1876echo "${ECHO_T}$CC" >&6
drh71eb93e2001-09-28 01:34:43 +00001877else
drh613a0fe2007-11-23 17:31:17 +00001878 echo "$as_me:$LINENO: result: no" >&5
1879echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00001880fi
1881
1882fi
1883if test -z "$CC"; then
1884 if test -n "$ac_tool_prefix"; then
drh613a0fe2007-11-23 17:31:17 +00001885 for ac_prog in cl
drh71eb93e2001-09-28 01:34:43 +00001886 do
1887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1888set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh613a0fe2007-11-23 17:31:17 +00001889echo "$as_me:$LINENO: checking for $ac_word" >&5
1890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001891if test "${ac_cv_prog_CC+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1893else
1894 if test -n "$CC"; then
1895 ac_cv_prog_CC="$CC" # Let the user override the test.
1896else
a.rottmann84e63352003-03-24 09:42:16 +00001897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898for as_dir in $PATH
1899do
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
1902 for ac_exec_ext in '' $ac_executable_extensions; do
drh613a0fe2007-11-23 17:31:17 +00001903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00001904 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 break 2
1907 fi
1908done
drh71eb93e2001-09-28 01:34:43 +00001909done
1910
1911fi
1912fi
1913CC=$ac_cv_prog_CC
1914if test -n "$CC"; then
drh613a0fe2007-11-23 17:31:17 +00001915 echo "$as_me:$LINENO: result: $CC" >&5
1916echo "${ECHO_T}$CC" >&6
drh71eb93e2001-09-28 01:34:43 +00001917else
drh613a0fe2007-11-23 17:31:17 +00001918 echo "$as_me:$LINENO: result: no" >&5
1919echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00001920fi
1921
1922 test -n "$CC" && break
1923 done
1924fi
1925if test -z "$CC"; then
1926 ac_ct_CC=$CC
drh613a0fe2007-11-23 17:31:17 +00001927 for ac_prog in cl
drh71eb93e2001-09-28 01:34:43 +00001928do
1929 # Extract the first word of "$ac_prog", so it can be a program name with args.
1930set dummy $ac_prog; ac_word=$2
drh613a0fe2007-11-23 17:31:17 +00001931echo "$as_me:$LINENO: checking for $ac_word" >&5
1932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001933if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1935else
1936 if test -n "$ac_ct_CC"; then
1937 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1938else
a.rottmann84e63352003-03-24 09:42:16 +00001939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940for as_dir in $PATH
1941do
1942 IFS=$as_save_IFS
1943 test -z "$as_dir" && as_dir=.
1944 for ac_exec_ext in '' $ac_executable_extensions; do
drh613a0fe2007-11-23 17:31:17 +00001945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00001946 ac_cv_prog_ac_ct_CC="$ac_prog"
1947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1948 break 2
1949 fi
1950done
drh71eb93e2001-09-28 01:34:43 +00001951done
1952
1953fi
1954fi
1955ac_ct_CC=$ac_cv_prog_ac_ct_CC
1956if test -n "$ac_ct_CC"; then
drh613a0fe2007-11-23 17:31:17 +00001957 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1958echo "${ECHO_T}$ac_ct_CC" >&6
drh71eb93e2001-09-28 01:34:43 +00001959else
drh613a0fe2007-11-23 17:31:17 +00001960 echo "$as_me:$LINENO: result: no" >&5
1961echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00001962fi
1963
1964 test -n "$ac_ct_CC" && break
1965done
1966
drh613a0fe2007-11-23 17:31:17 +00001967 CC=$ac_ct_CC
drh71eb93e2001-09-28 01:34:43 +00001968fi
1969
1970fi
1971
a.rottmann84e63352003-03-24 09:42:16 +00001972
1973test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1974See \`config.log' for more details." >&5
1975echo "$as_me: error: no acceptable C compiler found in \$PATH
1976See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00001977 { (exit 1); exit 1; }; }
1978
1979# Provide some information about the compiler.
drh613a0fe2007-11-23 17:31:17 +00001980echo "$as_me:$LINENO:" \
1981 "checking for C compiler version" >&5
drh71eb93e2001-09-28 01:34:43 +00001982ac_compiler=`set X $ac_compile; echo $2`
drh613a0fe2007-11-23 17:31:17 +00001983{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1984 (eval $ac_compiler --version </dev/null >&5) 2>&5
drh71eb93e2001-09-28 01:34:43 +00001985 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001987 (exit $ac_status); }
drh613a0fe2007-11-23 17:31:17 +00001988{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1989 (eval $ac_compiler -v </dev/null >&5) 2>&5
drh71eb93e2001-09-28 01:34:43 +00001990 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001992 (exit $ac_status); }
drh613a0fe2007-11-23 17:31:17 +00001993{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1994 (eval $ac_compiler -V </dev/null >&5) 2>&5
drh71eb93e2001-09-28 01:34:43 +00001995 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001997 (exit $ac_status); }
1998
1999cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002000/* confdefs.h. */
2001_ACEOF
2002cat confdefs.h >>conftest.$ac_ext
2003cat >>conftest.$ac_ext <<_ACEOF
2004/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002005
2006int
2007main ()
2008{
2009
2010 ;
2011 return 0;
2012}
2013_ACEOF
2014ac_clean_files_save=$ac_clean_files
a.rottmann84e63352003-03-24 09:42:16 +00002015ac_clean_files="$ac_clean_files a.out a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002016# Try to create an executable without -o first, disregard a.out.
2017# It will help us diagnose broken compilers, and finding out an intuition
2018# of exeext.
drh613a0fe2007-11-23 17:31:17 +00002019echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2020echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002021ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh613a0fe2007-11-23 17:31:17 +00002022if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2023 (eval $ac_link_default) 2>&5
drh71eb93e2001-09-28 01:34:43 +00002024 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002026 (exit $ac_status); }; then
drh613a0fe2007-11-23 17:31:17 +00002027 # Find the output, starting from the most likely. This scheme is
2028# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2029# resort.
2030
2031# Be careful to initialize this variable, since it used to be cached.
2032# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2033ac_cv_exeext=
2034# b.out is created by i960 compilers.
2035for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
a.rottmann84e63352003-03-24 09:42:16 +00002036do
2037 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002038 case $ac_file in
drh613a0fe2007-11-23 17:31:17 +00002039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2040 ;;
2041 conftest.$ac_ext )
2042 # This is the source file.
a.rottmann964dbb12004-02-26 19:47:42 +00002043 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002044 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002045 # We found the default executable, but exeext='' is most
2046 # certainly right.
2047 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002048 *.* )
drh613a0fe2007-11-23 17:31:17 +00002049 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2050 # FIXME: I believe we export ac_cv_exeext for Libtool,
2051 # but it would be cool to find out if it's true. Does anybody
2052 # maintain Libtool? --akim.
2053 export ac_cv_exeext
a.rottmann964dbb12004-02-26 19:47:42 +00002054 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002055 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002056 break;;
drh71eb93e2001-09-28 01:34:43 +00002057 esac
2058done
2059else
2060 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002061sed 's/^/| /' conftest.$ac_ext >&5
2062
2063{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2064See \`config.log' for more details." >&5
2065echo "$as_me: error: C compiler cannot create executables
2066See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002067 { (exit 77); exit 77; }; }
2068fi
2069
2070ac_exeext=$ac_cv_exeext
drh613a0fe2007-11-23 17:31:17 +00002071echo "$as_me:$LINENO: result: $ac_file" >&5
2072echo "${ECHO_T}$ac_file" >&6
drh71eb93e2001-09-28 01:34:43 +00002073
drh613a0fe2007-11-23 17:31:17 +00002074# Check the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002075# the compiler is broken, or we cross compile.
drh613a0fe2007-11-23 17:31:17 +00002076echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2077echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002078# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2079# If not cross compiling, check that we can run a simple program.
2080if test "$cross_compiling" != yes; then
2081 if { ac_try='./$ac_file'
drh613a0fe2007-11-23 17:31:17 +00002082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2083 (eval $ac_try) 2>&5
drh71eb93e2001-09-28 01:34:43 +00002084 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002086 (exit $ac_status); }; }; then
2087 cross_compiling=no
2088 else
2089 if test "$cross_compiling" = maybe; then
2090 cross_compiling=yes
2091 else
a.rottmann84e63352003-03-24 09:42:16 +00002092 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2093If you meant to cross compile, use \`--host'.
2094See \`config.log' for more details." >&5
drh71eb93e2001-09-28 01:34:43 +00002095echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002096If you meant to cross compile, use \`--host'.
2097See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002098 { (exit 1); exit 1; }; }
2099 fi
2100 fi
2101fi
drh613a0fe2007-11-23 17:31:17 +00002102echo "$as_me:$LINENO: result: yes" >&5
2103echo "${ECHO_T}yes" >&6
drh71eb93e2001-09-28 01:34:43 +00002104
a.rottmann84e63352003-03-24 09:42:16 +00002105rm -f a.out a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002106ac_clean_files=$ac_clean_files_save
drh613a0fe2007-11-23 17:31:17 +00002107# Check the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002108# the compiler is broken, or we cross compile.
drh613a0fe2007-11-23 17:31:17 +00002109echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2110echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2111echo "$as_me:$LINENO: result: $cross_compiling" >&5
2112echo "${ECHO_T}$cross_compiling" >&6
drh71eb93e2001-09-28 01:34:43 +00002113
drh613a0fe2007-11-23 17:31:17 +00002114echo "$as_me:$LINENO: checking for suffix of executables" >&5
2115echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2117 (eval $ac_link) 2>&5
drh71eb93e2001-09-28 01:34:43 +00002118 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002120 (exit $ac_status); }; then
2121 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2122# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2123# work properly (i.e., refer to `conftest.exe'), while it won't with
2124# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002125for ac_file in conftest.exe conftest conftest.*; do
2126 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002127 case $ac_file in
drh613a0fe2007-11-23 17:31:17 +00002128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002129 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
drh613a0fe2007-11-23 17:31:17 +00002130 export ac_cv_exeext
a.rottmann964dbb12004-02-26 19:47:42 +00002131 break;;
drh71eb93e2001-09-28 01:34:43 +00002132 * ) break;;
2133 esac
2134done
2135else
a.rottmann84e63352003-03-24 09:42:16 +00002136 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2137See \`config.log' for more details." >&5
2138echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2139See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002140 { (exit 1); exit 1; }; }
2141fi
2142
2143rm -f conftest$ac_cv_exeext
drh613a0fe2007-11-23 17:31:17 +00002144echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2145echo "${ECHO_T}$ac_cv_exeext" >&6
drh71eb93e2001-09-28 01:34:43 +00002146
2147rm -f conftest.$ac_ext
2148EXEEXT=$ac_cv_exeext
2149ac_exeext=$EXEEXT
drh613a0fe2007-11-23 17:31:17 +00002150echo "$as_me:$LINENO: checking for suffix of object files" >&5
2151echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002152if test "${ac_cv_objext+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2154else
2155 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002156/* confdefs.h. */
2157_ACEOF
2158cat confdefs.h >>conftest.$ac_ext
2159cat >>conftest.$ac_ext <<_ACEOF
2160/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002161
2162int
2163main ()
2164{
2165
2166 ;
2167 return 0;
2168}
2169_ACEOF
2170rm -f conftest.o conftest.obj
drh613a0fe2007-11-23 17:31:17 +00002171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00002173 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002175 (exit $ac_status); }; then
drh613a0fe2007-11-23 17:31:17 +00002176 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
drh71eb93e2001-09-28 01:34:43 +00002177 case $ac_file in
drh613a0fe2007-11-23 17:31:17 +00002178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
drh71eb93e2001-09-28 01:34:43 +00002179 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2180 break;;
2181 esac
2182done
2183else
2184 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002185sed 's/^/| /' conftest.$ac_ext >&5
2186
2187{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2188See \`config.log' for more details." >&5
2189echo "$as_me: error: cannot compute suffix of object files: cannot compile
2190See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002191 { (exit 1); exit 1; }; }
2192fi
2193
2194rm -f conftest.$ac_cv_objext conftest.$ac_ext
2195fi
drh613a0fe2007-11-23 17:31:17 +00002196echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2197echo "${ECHO_T}$ac_cv_objext" >&6
drh71eb93e2001-09-28 01:34:43 +00002198OBJEXT=$ac_cv_objext
2199ac_objext=$OBJEXT
drh613a0fe2007-11-23 17:31:17 +00002200echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2201echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002202if test "${ac_cv_c_compiler_gnu+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204else
2205 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002206/* confdefs.h. */
2207_ACEOF
2208cat confdefs.h >>conftest.$ac_ext
2209cat >>conftest.$ac_ext <<_ACEOF
2210/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002211
2212int
2213main ()
2214{
2215#ifndef __GNUC__
2216 choke me
2217#endif
2218
2219 ;
2220 return 0;
2221}
2222_ACEOF
2223rm -f conftest.$ac_objext
drh613a0fe2007-11-23 17:31:17 +00002224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002226 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002227 grep -v '^ *+' conftest.er1 >conftest.err
2228 rm -f conftest.er1
2229 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00002231 (exit $ac_status); } &&
2232 { ac_try='test -z "$ac_c_werror_flag"
2233 || test ! -s conftest.err'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 (eval $ac_try) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; } &&
2239 { ac_try='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +00002245 ac_compiler_gnu=yes
2246else
2247 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002248sed 's/^/| /' conftest.$ac_ext >&5
2249
drh613a0fe2007-11-23 17:31:17 +00002250ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00002251fi
drh613a0fe2007-11-23 17:31:17 +00002252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002253ac_cv_c_compiler_gnu=$ac_compiler_gnu
2254
2255fi
drh613a0fe2007-11-23 17:31:17 +00002256echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2257echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
drh71eb93e2001-09-28 01:34:43 +00002258GCC=`test $ac_compiler_gnu = yes && echo yes`
2259ac_test_CFLAGS=${CFLAGS+set}
2260ac_save_CFLAGS=$CFLAGS
drh613a0fe2007-11-23 17:31:17 +00002261CFLAGS="-g"
2262echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2263echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002264if test "${ac_cv_prog_cc_g+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2266else
drh613a0fe2007-11-23 17:31:17 +00002267 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002268/* confdefs.h. */
2269_ACEOF
2270cat confdefs.h >>conftest.$ac_ext
2271cat >>conftest.$ac_ext <<_ACEOF
2272/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002273
2274int
2275main ()
2276{
2277
2278 ;
2279 return 0;
2280}
2281_ACEOF
2282rm -f conftest.$ac_objext
drh613a0fe2007-11-23 17:31:17 +00002283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2284 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002285 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002286 grep -v '^ *+' conftest.er1 >conftest.err
2287 rm -f conftest.er1
2288 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00002290 (exit $ac_status); } &&
2291 { ac_try='test -z "$ac_c_werror_flag"
2292 || test ! -s conftest.err'
2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294 (eval $ac_try) 2>&5
2295 ac_status=$?
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; } &&
2298 { ac_try='test -s conftest.$ac_objext'
2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 (eval $ac_try) 2>&5
2301 ac_status=$?
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +00002304 ac_cv_prog_cc_g=yes
2305else
2306 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002307sed 's/^/| /' conftest.$ac_ext >&5
2308
drh613a0fe2007-11-23 17:31:17 +00002309ac_cv_prog_cc_g=no
drh71eb93e2001-09-28 01:34:43 +00002310fi
drh613a0fe2007-11-23 17:31:17 +00002311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002312fi
drh613a0fe2007-11-23 17:31:17 +00002313echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2314echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
drh71eb93e2001-09-28 01:34:43 +00002315if test "$ac_test_CFLAGS" = set; then
2316 CFLAGS=$ac_save_CFLAGS
2317elif test $ac_cv_prog_cc_g = yes; then
2318 if test "$GCC" = yes; then
2319 CFLAGS="-g -O2"
2320 else
2321 CFLAGS="-g"
2322 fi
2323else
2324 if test "$GCC" = yes; then
2325 CFLAGS="-O2"
2326 else
2327 CFLAGS=
2328 fi
2329fi
drh613a0fe2007-11-23 17:31:17 +00002330echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2331echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2332if test "${ac_cv_prog_cc_stdc+set}" = set; then
a.rottmann84e63352003-03-24 09:42:16 +00002333 echo $ECHO_N "(cached) $ECHO_C" >&6
2334else
drh613a0fe2007-11-23 17:31:17 +00002335 ac_cv_prog_cc_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00002336ac_save_CC=$CC
2337cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002338/* confdefs.h. */
2339_ACEOF
2340cat confdefs.h >>conftest.$ac_ext
2341cat >>conftest.$ac_ext <<_ACEOF
2342/* end confdefs.h. */
2343#include <stdarg.h>
2344#include <stdio.h>
2345#include <sys/types.h>
2346#include <sys/stat.h>
2347/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2348struct buf { int x; };
2349FILE * (*rcsopen) (struct buf *, struct stat *, int);
2350static char *e (p, i)
2351 char **p;
2352 int i;
2353{
2354 return p[i];
2355}
2356static char *f (char * (*g) (char **, int), char **p, ...)
2357{
2358 char *s;
2359 va_list v;
2360 va_start (v,p);
2361 s = g (p, va_arg (v,int));
2362 va_end (v);
2363 return s;
2364}
a.rottmann964dbb12004-02-26 19:47:42 +00002365
2366/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2367 function prototypes and stuff, but not '\xHH' hex character constants.
2368 These don't provoke an error unfortunately, instead are silently treated
drh613a0fe2007-11-23 17:31:17 +00002369 as 'x'. The following induces an error, until -std1 is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00002370 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2371 array size at least. It's necessary to write '\x00'==0 to get something
drh613a0fe2007-11-23 17:31:17 +00002372 that's true only with -std1. */
a.rottmann964dbb12004-02-26 19:47:42 +00002373int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2374
a.rottmann84e63352003-03-24 09:42:16 +00002375int test (int i, double x);
2376struct s1 {int (*f) (int a);};
2377struct s2 {int (*f) (double a);};
2378int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2379int argc;
2380char **argv;
2381int
2382main ()
2383{
2384return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2385 ;
2386 return 0;
2387}
2388_ACEOF
drh613a0fe2007-11-23 17:31:17 +00002389# Don't try gcc -ansi; that turns off useful extensions and
2390# breaks some systems' header files.
2391# AIX -qlanglvl=ansi
2392# Ultrix and OSF/1 -std1
2393# HP-UX 10.20 and later -Ae
2394# HP-UX older versions -Aa -D_HPUX_SOURCE
2395# SVR4 -Xc -D__EXTENSIONS__
2396for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00002397do
2398 CC="$ac_save_CC $ac_arg"
2399 rm -f conftest.$ac_objext
drh613a0fe2007-11-23 17:31:17 +00002400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00002402 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002403 grep -v '^ *+' conftest.er1 >conftest.err
2404 rm -f conftest.er1
2405 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00002407 (exit $ac_status); } &&
2408 { ac_try='test -z "$ac_c_werror_flag"
2409 || test ! -s conftest.err'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 (eval $ac_try) 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2421 ac_cv_prog_cc_stdc=$ac_arg
2422break
a.rottmann84e63352003-03-24 09:42:16 +00002423else
2424 echo "$as_me: failed program was:" >&5
2425sed 's/^/| /' conftest.$ac_ext >&5
2426
2427fi
drh613a0fe2007-11-23 17:31:17 +00002428rm -f conftest.err conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002429done
drh613a0fe2007-11-23 17:31:17 +00002430rm -f conftest.$ac_ext conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002431CC=$ac_save_CC
2432
2433fi
drh613a0fe2007-11-23 17:31:17 +00002434
2435case "x$ac_cv_prog_cc_stdc" in
2436 x|xno)
2437 echo "$as_me:$LINENO: result: none needed" >&5
2438echo "${ECHO_T}none needed" >&6 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002439 *)
drh613a0fe2007-11-23 17:31:17 +00002440 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2441echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2442 CC="$CC $ac_cv_prog_cc_stdc" ;;
a.rottmann84e63352003-03-24 09:42:16 +00002443esac
2444
drh613a0fe2007-11-23 17:31:17 +00002445# Some people use a C++ compiler to compile C. Since we use `exit',
2446# in C++ we need to declare it. In case someone uses the same compiler
2447# for both compiling C and C++ we need to have the C++ compiler decide
2448# the declaration of exit, since it's the most demanding environment.
2449cat >conftest.$ac_ext <<_ACEOF
2450#ifndef __cplusplus
2451 choke me
2452#endif
2453_ACEOF
2454rm -f conftest.$ac_objext
2455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456 (eval $ac_compile) 2>conftest.er1
2457 ac_status=$?
2458 grep -v '^ *+' conftest.er1 >conftest.err
2459 rm -f conftest.er1
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
2463 { ac_try='test -z "$ac_c_werror_flag"
2464 || test ! -s conftest.err'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 (eval $ac_try) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2476 for ac_declaration in \
2477 '' \
2478 'extern "C" void std::exit (int) throw (); using std::exit;' \
2479 'extern "C" void std::exit (int); using std::exit;' \
2480 'extern "C" void exit (int) throw ();' \
2481 'extern "C" void exit (int);' \
2482 'void exit (int);'
2483do
2484 cat >conftest.$ac_ext <<_ACEOF
2485/* confdefs.h. */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h. */
2490$ac_declaration
2491#include <stdlib.h>
2492int
2493main ()
2494{
2495exit (42);
2496 ;
2497 return 0;
2498}
2499_ACEOF
2500rm -f conftest.$ac_objext
2501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2503 ac_status=$?
2504 grep -v '^ *+' conftest.er1 >conftest.err
2505 rm -f conftest.er1
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2522 :
2523else
2524 echo "$as_me: failed program was:" >&5
2525sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00002526
drh613a0fe2007-11-23 17:31:17 +00002527continue
2528fi
2529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2530 cat >conftest.$ac_ext <<_ACEOF
2531/* confdefs.h. */
2532_ACEOF
2533cat confdefs.h >>conftest.$ac_ext
2534cat >>conftest.$ac_ext <<_ACEOF
2535/* end confdefs.h. */
2536$ac_declaration
2537int
2538main ()
2539{
2540exit (42);
2541 ;
2542 return 0;
2543}
2544_ACEOF
2545rm -f conftest.$ac_objext
2546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>conftest.er1
2548 ac_status=$?
2549 grep -v '^ *+' conftest.er1 >conftest.err
2550 rm -f conftest.er1
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -z "$ac_c_werror_flag"
2555 || test ! -s conftest.err'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 (eval $ac_try) 2>&5
2558 ac_status=$?
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try='test -s conftest.$ac_objext'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2567 break
2568else
2569 echo "$as_me: failed program was:" >&5
2570sed 's/^/| /' conftest.$ac_ext >&5
2571
2572fi
2573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2574done
2575rm -f conftest*
2576if test -n "$ac_declaration"; then
2577 echo '#ifdef __cplusplus' >>confdefs.h
2578 echo $ac_declaration >>confdefs.h
2579 echo '#endif' >>confdefs.h
2580fi
2581
2582else
2583 echo "$as_me: failed program was:" >&5
2584sed 's/^/| /' conftest.$ac_ext >&5
2585
2586fi
2587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002588ac_ext=c
2589ac_cpp='$CPP $CPPFLAGS'
2590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592ac_compiler_gnu=$ac_cv_c_compiler_gnu
2593
drh613a0fe2007-11-23 17:31:17 +00002594echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2595echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00002596if test "${lt_cv_path_SED+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2598else
2599 # Loop through the user's path and test for sed and gsed.
2600# Then use that list of sed's as ones to test for truncation.
2601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602for as_dir in $PATH
2603do
2604 IFS=$as_save_IFS
2605 test -z "$as_dir" && as_dir=.
2606 for lt_ac_prog in sed gsed; do
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2609 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2610 fi
2611 done
2612 done
2613done
2614lt_ac_max=0
2615lt_ac_count=0
2616# Add /usr/xpg4/bin/sed as it is typically found on Solaris
2617# along with /bin/sed that truncates output.
2618for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
vapier7f19c022007-02-17 14:46:31 +00002619 test ! -f $lt_ac_sed && continue
a.rottmann9bc8b932004-02-29 15:18:31 +00002620 cat /dev/null > conftest.in
2621 lt_ac_count=0
2622 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2623 # Check for GNU sed and select it if it is found.
2624 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2625 lt_cv_path_SED=$lt_ac_sed
2626 break
2627 fi
2628 while true; do
2629 cat conftest.in conftest.in >conftest.tmp
2630 mv conftest.tmp conftest.in
2631 cp conftest.in conftest.nl
2632 echo >>conftest.nl
2633 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2634 cmp -s conftest.out conftest.nl || break
2635 # 10000 chars as input seems more than enough
2636 test $lt_ac_count -gt 10 && break
2637 lt_ac_count=`expr $lt_ac_count + 1`
2638 if test $lt_ac_count -gt $lt_ac_max; then
2639 lt_ac_max=$lt_ac_count
2640 lt_cv_path_SED=$lt_ac_sed
2641 fi
2642 done
2643done
a.rottmann9bc8b932004-02-29 15:18:31 +00002644
a.rottmann84e63352003-03-24 09:42:16 +00002645fi
2646
vapier7f19c022007-02-17 14:46:31 +00002647SED=$lt_cv_path_SED
drh613a0fe2007-11-23 17:31:17 +00002648echo "$as_me:$LINENO: result: $SED" >&5
2649echo "${ECHO_T}$SED" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00002650
drh613a0fe2007-11-23 17:31:17 +00002651echo "$as_me:$LINENO: checking for egrep" >&5
2652echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2653if test "${ac_cv_prog_egrep+set}" = set; then
a.rottmann9bc8b932004-02-29 15:18:31 +00002654 echo $ECHO_N "(cached) $ECHO_C" >&6
2655else
drh613a0fe2007-11-23 17:31:17 +00002656 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2657 then ac_cv_prog_egrep='grep -E'
2658 else ac_cv_prog_egrep='egrep'
a.rottmann9bc8b932004-02-29 15:18:31 +00002659 fi
2660fi
drh613a0fe2007-11-23 17:31:17 +00002661echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2662echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2663 EGREP=$ac_cv_prog_egrep
a.rottmann9bc8b932004-02-29 15:18:31 +00002664
2665
a.rottmann84e63352003-03-24 09:42:16 +00002666
drh613a0fe2007-11-23 17:31:17 +00002667# Check whether --with-gnu-ld or --without-gnu-ld was given.
drh71eb93e2001-09-28 01:34:43 +00002668if test "${with_gnu_ld+set}" = set; then
drh613a0fe2007-11-23 17:31:17 +00002669 withval="$with_gnu_ld"
2670 test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00002671else
2672 with_gnu_ld=no
drh613a0fe2007-11-23 17:31:17 +00002673fi;
drh71eb93e2001-09-28 01:34:43 +00002674ac_prog=ld
2675if test "$GCC" = yes; then
2676 # Check if gcc -print-prog-name=ld gives a path.
drh613a0fe2007-11-23 17:31:17 +00002677 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2678echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002679 case $host in
2680 *-*-mingw*)
2681 # gcc leaves a trailing carriage return which upsets mingw
2682 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2683 *)
2684 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2685 esac
2686 case $ac_prog in
2687 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00002688 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00002689 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00002690 # Canonicalize the pathname of ld
2691 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
drh71eb93e2001-09-28 01:34:43 +00002692 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002693 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00002694 done
2695 test -z "$LD" && LD="$ac_prog"
2696 ;;
2697 "")
2698 # If it fails, then pretend we aren't using GCC.
2699 ac_prog=ld
2700 ;;
2701 *)
2702 # If it is relative, then search for the first ld in PATH.
2703 with_gnu_ld=unknown
2704 ;;
2705 esac
2706elif test "$with_gnu_ld" = yes; then
drh613a0fe2007-11-23 17:31:17 +00002707 echo "$as_me:$LINENO: checking for GNU ld" >&5
2708echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002709else
drh613a0fe2007-11-23 17:31:17 +00002710 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2711echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002712fi
2713if test "${lt_cv_path_LD+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2715else
2716 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00002717 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002718 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002719 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002720 test -z "$ac_dir" && ac_dir=.
2721 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2722 lt_cv_path_LD="$ac_dir/$ac_prog"
2723 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00002724 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00002725 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00002726 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2727 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00002728 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00002729 ;;
2730 *)
drh71eb93e2001-09-28 01:34:43 +00002731 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00002732 ;;
2733 esac
drh71eb93e2001-09-28 01:34:43 +00002734 fi
2735 done
a.rottmann9bc8b932004-02-29 15:18:31 +00002736 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002737else
2738 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2739fi
2740fi
2741
2742LD="$lt_cv_path_LD"
2743if test -n "$LD"; then
drh613a0fe2007-11-23 17:31:17 +00002744 echo "$as_me:$LINENO: result: $LD" >&5
2745echo "${ECHO_T}$LD" >&6
drh71eb93e2001-09-28 01:34:43 +00002746else
drh613a0fe2007-11-23 17:31:17 +00002747 echo "$as_me:$LINENO: result: no" >&5
2748echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00002749fi
a.rottmann84e63352003-03-24 09:42:16 +00002750test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
drh71eb93e2001-09-28 01:34:43 +00002751echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2752 { (exit 1); exit 1; }; }
drh613a0fe2007-11-23 17:31:17 +00002753echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2754echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002755if test "${lt_cv_prog_gnu_ld+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2757else
vapier7f19c022007-02-17 14:46:31 +00002758 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00002759case `$LD -v 2>&1 </dev/null` in
2760*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00002761 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00002762 ;;
2763*)
drh71eb93e2001-09-28 01:34:43 +00002764 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00002765 ;;
2766esac
drh71eb93e2001-09-28 01:34:43 +00002767fi
drh613a0fe2007-11-23 17:31:17 +00002768echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2769echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
drh71eb93e2001-09-28 01:34:43 +00002770with_gnu_ld=$lt_cv_prog_gnu_ld
2771
a.rottmann84e63352003-03-24 09:42:16 +00002772
drh613a0fe2007-11-23 17:31:17 +00002773echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2774echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002775if test "${lt_cv_ld_reload_flag+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777else
2778 lt_cv_ld_reload_flag='-r'
2779fi
drh613a0fe2007-11-23 17:31:17 +00002780echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2781echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
drh71eb93e2001-09-28 01:34:43 +00002782reload_flag=$lt_cv_ld_reload_flag
a.rottmann9bc8b932004-02-29 15:18:31 +00002783case $reload_flag in
2784"" | " "*) ;;
2785*) reload_flag=" $reload_flag" ;;
2786esac
2787reload_cmds='$LD$reload_flag -o $output$reload_objs'
vapier7f19c022007-02-17 14:46:31 +00002788case $host_os in
2789 darwin*)
2790 if test "$GCC" = yes; then
2791 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2792 else
2793 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2794 fi
2795 ;;
2796esac
drh71eb93e2001-09-28 01:34:43 +00002797
drh613a0fe2007-11-23 17:31:17 +00002798echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2799echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002800if test "${lt_cv_path_NM+set}" = set; then
2801 echo $ECHO_N "(cached) $ECHO_C" >&6
2802else
2803 if test -n "$NM"; then
2804 # Let the user override the test.
2805 lt_cv_path_NM="$NM"
2806else
vapier7f19c022007-02-17 14:46:31 +00002807 lt_nm_to_check="${ac_tool_prefix}nm"
2808 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2809 lt_nm_to_check="$lt_nm_to_check nm"
2810 fi
2811 for lt_tmp_nm in $lt_nm_to_check; do
2812 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2813 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2814 IFS="$lt_save_ifs"
2815 test -z "$ac_dir" && ac_dir=.
2816 tmp_nm="$ac_dir/$lt_tmp_nm"
2817 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2818 # Check to see if the nm accepts a BSD-compat flag.
2819 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2820 # nm: unknown option "B" ignored
2821 # Tru64's nm complains that /dev/null is an invalid object file
2822 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2823 */dev/null* | *'Invalid file or object type'*)
2824 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00002825 break
2826 ;;
2827 *)
vapier7f19c022007-02-17 14:46:31 +00002828 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2829 */dev/null*)
2830 lt_cv_path_NM="$tmp_nm -p"
2831 break
2832 ;;
2833 *)
2834 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2835 continue # so that we can try to find one that supports BSD flags
2836 ;;
2837 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002838 ;;
2839 esac
vapier7f19c022007-02-17 14:46:31 +00002840 fi
2841 done
2842 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002843 done
drh71eb93e2001-09-28 01:34:43 +00002844 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2845fi
2846fi
drh613a0fe2007-11-23 17:31:17 +00002847echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2848echo "${ECHO_T}$lt_cv_path_NM" >&6
a.rottmann84e63352003-03-24 09:42:16 +00002849NM="$lt_cv_path_NM"
a.rottmann84e63352003-03-24 09:42:16 +00002850
drh613a0fe2007-11-23 17:31:17 +00002851echo "$as_me:$LINENO: checking whether ln -s works" >&5
2852echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002853LN_S=$as_ln_s
2854if test "$LN_S" = "ln -s"; then
drh613a0fe2007-11-23 17:31:17 +00002855 echo "$as_me:$LINENO: result: yes" >&5
2856echo "${ECHO_T}yes" >&6
drh71eb93e2001-09-28 01:34:43 +00002857else
drh613a0fe2007-11-23 17:31:17 +00002858 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2859echo "${ECHO_T}no, using $LN_S" >&6
drh71eb93e2001-09-28 01:34:43 +00002860fi
2861
drh613a0fe2007-11-23 17:31:17 +00002862echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2863echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002864if test "${lt_cv_deplibs_check_method+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866else
2867 lt_cv_file_magic_cmd='$MAGIC_CMD'
2868lt_cv_file_magic_test_file=
2869lt_cv_deplibs_check_method='unknown'
2870# Need to set the preceding variable on all platforms that support
2871# interlibrary dependencies.
2872# 'none' -- dependencies not supported.
2873# `unknown' -- same as none, but documents that we really don't know.
2874# 'pass_all' -- all dependencies passed with no checks.
2875# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00002876# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00002877# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00002878# If you have `file' or equivalent on your system and you're not sure
2879# whether `pass_all' will *always* work, you probably want this one.
2880
2881case $host_os in
2882aix4* | aix5*)
2883 lt_cv_deplibs_check_method=pass_all
2884 ;;
2885
2886beos*)
2887 lt_cv_deplibs_check_method=pass_all
2888 ;;
2889
vapier7f19c022007-02-17 14:46:31 +00002890bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00002891 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2892 lt_cv_file_magic_cmd='/usr/bin/file -L'
2893 lt_cv_file_magic_test_file=/shlib/libc.so
2894 ;;
2895
a.rottmann9bc8b932004-02-29 15:18:31 +00002896cygwin*)
vapier7f19c022007-02-17 14:46:31 +00002897 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00002898 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00002899 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00002900 ;;
2901
2902mingw* | pw32*)
2903 # Base MSYS/MinGW do not provide the 'file' command needed by
vapier7f19c022007-02-17 14:46:31 +00002904 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
drh71eb93e2001-09-28 01:34:43 +00002905 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2906 lt_cv_file_magic_cmd='$OBJDUMP -f'
2907 ;;
2908
2909darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00002910 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00002911 ;;
2912
vapier7f19c022007-02-17 14:46:31 +00002913freebsd* | kfreebsd*-gnu | dragonfly*)
drh71eb93e2001-09-28 01:34:43 +00002914 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2915 case $host_cpu in
2916 i*86 )
2917 # Not sure whether the presence of OpenBSD here was a mistake.
2918 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00002919 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
drh71eb93e2001-09-28 01:34:43 +00002920 lt_cv_file_magic_cmd=/usr/bin/file
2921 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2922 ;;
2923 esac
2924 else
2925 lt_cv_deplibs_check_method=pass_all
2926 fi
2927 ;;
2928
2929gnu*)
2930 lt_cv_deplibs_check_method=pass_all
2931 ;;
2932
a.rottmann9bc8b932004-02-29 15:18:31 +00002933hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00002934 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00002935 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00002936 ia64*)
2937 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2938 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2939 ;;
2940 hppa*64*)
2941 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]'
2942 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2943 ;;
2944 *)
2945 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2946 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2947 ;;
2948 esac
drh71eb93e2001-09-28 01:34:43 +00002949 ;;
2950
vapier7f19c022007-02-17 14:46:31 +00002951interix3*)
2952 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2953 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
2954 ;;
2955
a.rottmann84e63352003-03-24 09:42:16 +00002956irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00002957 case $LD in
2958 *-32|*"-32 ") libmagic=32-bit;;
2959 *-n32|*"-n32 ") libmagic=N32;;
2960 *-64|*"-64 ") libmagic=64-bit;;
2961 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00002962 esac
drh71eb93e2001-09-28 01:34:43 +00002963 lt_cv_deplibs_check_method=pass_all
2964 ;;
2965
2966# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00002967linux*)
2968 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00002969 ;;
2970
vapier7f19c022007-02-17 14:46:31 +00002971netbsd*)
drh71eb93e2001-09-28 01:34:43 +00002972 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00002973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00002974 else
a.rottmann9bc8b932004-02-29 15:18:31 +00002975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00002976 fi
2977 ;;
2978
2979newos6*)
2980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2981 lt_cv_file_magic_cmd=/usr/bin/file
2982 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2983 ;;
2984
a.rottmann9bc8b932004-02-29 15:18:31 +00002985nto-qnx*)
2986 lt_cv_deplibs_check_method=unknown
2987 ;;
2988
a.rottmann84e63352003-03-24 09:42:16 +00002989openbsd*)
a.rottmann84e63352003-03-24 09:42:16 +00002990 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00002991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00002992 else
vapier7f19c022007-02-17 14:46:31 +00002993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00002994 fi
drh71eb93e2001-09-28 01:34:43 +00002995 ;;
2996
2997osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00002998 lt_cv_deplibs_check_method=pass_all
2999 ;;
3000
drh71eb93e2001-09-28 01:34:43 +00003001solaris*)
3002 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00003003 ;;
3004
vapier7f19c022007-02-17 14:46:31 +00003005sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00003006 case $host_vendor in
3007 motorola)
3008 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]'
3009 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3010 ;;
3011 ncr)
3012 lt_cv_deplibs_check_method=pass_all
3013 ;;
3014 sequent)
3015 lt_cv_file_magic_cmd='/bin/file'
3016 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3017 ;;
3018 sni)
3019 lt_cv_file_magic_cmd='/bin/file'
3020 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3021 lt_cv_file_magic_test_file=/lib/libc.so
3022 ;;
a.rottmann84e63352003-03-24 09:42:16 +00003023 siemens)
3024 lt_cv_deplibs_check_method=pass_all
3025 ;;
vapier7f19c022007-02-17 14:46:31 +00003026 pc)
3027 lt_cv_deplibs_check_method=pass_all
3028 ;;
drh71eb93e2001-09-28 01:34:43 +00003029 esac
3030 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00003031
vapier7f19c022007-02-17 14:46:31 +00003032sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
a.rottmann9bc8b932004-02-29 15:18:31 +00003033 lt_cv_deplibs_check_method=pass_all
3034 ;;
drh71eb93e2001-09-28 01:34:43 +00003035esac
3036
3037fi
drh613a0fe2007-11-23 17:31:17 +00003038echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3039echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
drh71eb93e2001-09-28 01:34:43 +00003040file_magic_cmd=$lt_cv_file_magic_cmd
3041deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00003042test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00003043
drh71eb93e2001-09-28 01:34:43 +00003044
drh71eb93e2001-09-28 01:34:43 +00003045
drh71eb93e2001-09-28 01:34:43 +00003046
a.rottmann9bc8b932004-02-29 15:18:31 +00003047# If no C compiler was specified, use CC.
3048LTCC=${LTCC-"$CC"}
3049
vapier7f19c022007-02-17 14:46:31 +00003050# If no C compiler flags were specified, use CFLAGS.
3051LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3052
a.rottmann9bc8b932004-02-29 15:18:31 +00003053# Allow CC to be a program name with arguments.
3054compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00003055
drh71eb93e2001-09-28 01:34:43 +00003056
drh613a0fe2007-11-23 17:31:17 +00003057# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00003058if test "${enable_libtool_lock+set}" = set; then
drh613a0fe2007-11-23 17:31:17 +00003059 enableval="$enable_libtool_lock"
drh71eb93e2001-09-28 01:34:43 +00003060
drh613a0fe2007-11-23 17:31:17 +00003061fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00003062test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00003063
a.rottmann9bc8b932004-02-29 15:18:31 +00003064# Some flags need to be propagated to the compiler or linker for good
3065# libtool support.
3066case $host in
3067ia64-*-hpux*)
3068 # Find out which ABI we are using.
3069 echo 'int i;' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00003071 (eval $ac_compile) 2>&5
3072 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00003074 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003075 case `/usr/bin/file conftest.$ac_objext` in
3076 *ELF-32*)
3077 HPUX_IA64_MODE="32"
3078 ;;
3079 *ELF-64*)
3080 HPUX_IA64_MODE="64"
3081 ;;
3082 esac
3083 fi
3084 rm -rf conftest*
3085 ;;
3086*-*-irix6*)
3087 # Find out which ABI we are using.
drh613a0fe2007-11-23 17:31:17 +00003088 echo '#line 3088 "configure"' > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00003089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00003091 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003093 (exit $ac_status); }; then
3094 if test "$lt_cv_prog_gnu_ld" = yes; then
3095 case `/usr/bin/file conftest.$ac_objext` in
3096 *32-bit*)
3097 LD="${LD-ld} -melf32bsmip"
3098 ;;
3099 *N32*)
3100 LD="${LD-ld} -melf32bmipn32"
3101 ;;
3102 *64-bit*)
3103 LD="${LD-ld} -melf64bmip"
3104 ;;
3105 esac
3106 else
3107 case `/usr/bin/file conftest.$ac_objext` in
3108 *32-bit*)
3109 LD="${LD-ld} -32"
3110 ;;
3111 *N32*)
3112 LD="${LD-ld} -n32"
3113 ;;
3114 *64-bit*)
3115 LD="${LD-ld} -64"
3116 ;;
3117 esac
3118 fi
3119 fi
3120 rm -rf conftest*
3121 ;;
drh71eb93e2001-09-28 01:34:43 +00003122
a.rottmann9bc8b932004-02-29 15:18:31 +00003123x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3124 # Find out which ABI we are using.
3125 echo 'int i;' > conftest.$ac_ext
3126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3127 (eval $ac_compile) 2>&5
3128 ac_status=$?
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }; then
vapier7f19c022007-02-17 14:46:31 +00003131 case `/usr/bin/file conftest.o` in
a.rottmann9bc8b932004-02-29 15:18:31 +00003132 *32-bit*)
3133 case $host in
3134 x86_64-*linux*)
3135 LD="${LD-ld} -m elf_i386"
3136 ;;
3137 ppc64-*linux*|powerpc64-*linux*)
3138 LD="${LD-ld} -m elf32ppclinux"
3139 ;;
3140 s390x-*linux*)
3141 LD="${LD-ld} -m elf_s390"
3142 ;;
3143 sparc64-*linux*)
3144 LD="${LD-ld} -m elf32_sparc"
3145 ;;
3146 esac
3147 ;;
3148 *64-bit*)
3149 case $host in
3150 x86_64-*linux*)
3151 LD="${LD-ld} -m elf_x86_64"
3152 ;;
3153 ppc*-*linux*|powerpc*-*linux*)
3154 LD="${LD-ld} -m elf64ppc"
3155 ;;
3156 s390*-*linux*)
3157 LD="${LD-ld} -m elf64_s390"
3158 ;;
3159 sparc*-*linux*)
3160 LD="${LD-ld} -m elf64_sparc"
3161 ;;
3162 esac
3163 ;;
3164 esac
3165 fi
3166 rm -rf conftest*
3167 ;;
drh71eb93e2001-09-28 01:34:43 +00003168
a.rottmann9bc8b932004-02-29 15:18:31 +00003169*-*-sco3.2v5*)
3170 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3171 SAVE_CFLAGS="$CFLAGS"
3172 CFLAGS="$CFLAGS -belf"
drh613a0fe2007-11-23 17:31:17 +00003173 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3174echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003175if test "${lt_cv_cc_needs_belf+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3177else
3178 ac_ext=c
3179ac_cpp='$CPP $CPPFLAGS'
3180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3182ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00003183
a.rottmann9bc8b932004-02-29 15:18:31 +00003184 cat >conftest.$ac_ext <<_ACEOF
3185/* confdefs.h. */
3186_ACEOF
3187cat confdefs.h >>conftest.$ac_ext
3188cat >>conftest.$ac_ext <<_ACEOF
3189/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003190
a.rottmann9bc8b932004-02-29 15:18:31 +00003191int
3192main ()
drh71eb93e2001-09-28 01:34:43 +00003193{
drh71eb93e2001-09-28 01:34:43 +00003194
a.rottmann9bc8b932004-02-29 15:18:31 +00003195 ;
3196 return 0;
drh71eb93e2001-09-28 01:34:43 +00003197}
a.rottmann9bc8b932004-02-29 15:18:31 +00003198_ACEOF
3199rm -f conftest.$ac_objext conftest$ac_exeext
drh613a0fe2007-11-23 17:31:17 +00003200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3201 (eval $ac_link) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00003202 ac_status=$?
3203 grep -v '^ *+' conftest.er1 >conftest.err
3204 rm -f conftest.er1
3205 cat conftest.err >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00003207 (exit $ac_status); } &&
3208 { ac_try='test -z "$ac_c_werror_flag"
3209 || test ! -s conftest.err'
3210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211 (eval $ac_try) 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; } &&
3215 { ac_try='test -s conftest$ac_exeext'
3216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3217 (eval $ac_try) 2>&5
3218 ac_status=$?
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003221 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00003222else
a.rottmann9bc8b932004-02-29 15:18:31 +00003223 echo "$as_me: failed program was:" >&5
3224sed 's/^/| /' conftest.$ac_ext >&5
3225
drh613a0fe2007-11-23 17:31:17 +00003226lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00003227fi
drh613a0fe2007-11-23 17:31:17 +00003228rm -f conftest.err conftest.$ac_objext \
a.rottmann9bc8b932004-02-29 15:18:31 +00003229 conftest$ac_exeext conftest.$ac_ext
3230 ac_ext=c
3231ac_cpp='$CPP $CPPFLAGS'
3232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235
drh71eb93e2001-09-28 01:34:43 +00003236fi
drh613a0fe2007-11-23 17:31:17 +00003237echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3238echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003239 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3240 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3241 CFLAGS="$SAVE_CFLAGS"
3242 fi
3243 ;;
vapier7f19c022007-02-17 14:46:31 +00003244sparc*-*solaris*)
3245 # Find out which ABI we are using.
3246 echo 'int i;' > conftest.$ac_ext
3247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3248 (eval $ac_compile) 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; then
3252 case `/usr/bin/file conftest.o` in
3253 *64-bit*)
3254 case $lt_cv_prog_gnu_ld in
3255 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3256 *) LD="${LD-ld} -64" ;;
3257 esac
3258 ;;
3259 esac
3260 fi
3261 rm -rf conftest*
3262 ;;
3263
a.rottmann9bc8b932004-02-29 15:18:31 +00003264
3265esac
3266
3267need_locks="$enable_libtool_lock"
3268
drh71eb93e2001-09-28 01:34:43 +00003269
a.rottmann84e63352003-03-24 09:42:16 +00003270ac_ext=c
3271ac_cpp='$CPP $CPPFLAGS'
3272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh613a0fe2007-11-23 17:31:17 +00003275echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3276echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00003277# On Suns, sometimes $CPP names a directory.
3278if test -n "$CPP" && test -d "$CPP"; then
3279 CPP=
3280fi
3281if test -z "$CPP"; then
3282 if test "${ac_cv_prog_CPP+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284else
a.rottmann84e63352003-03-24 09:42:16 +00003285 # Double quotes because CPP needs to be expanded
3286 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3287 do
3288 ac_preproc_ok=false
3289for ac_c_preproc_warn_flag in '' yes
3290do
3291 # Use a header file that comes with gcc, so configuring glibc
3292 # with a fresh cross-compiler works.
3293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3294 # <limits.h> exists even on freestanding compilers.
3295 # On the NeXT, cc -E runs the code through the compiler's parser,
3296 # not just through cpp. "Syntax error" is here to catch this case.
3297 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003298/* confdefs.h. */
3299_ACEOF
3300cat confdefs.h >>conftest.$ac_ext
3301cat >>conftest.$ac_ext <<_ACEOF
3302/* end confdefs.h. */
3303#ifdef __STDC__
3304# include <limits.h>
3305#else
3306# include <assert.h>
3307#endif
a.rottmann964dbb12004-02-26 19:47:42 +00003308 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00003309_ACEOF
drh613a0fe2007-11-23 17:31:17 +00003310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003312 ac_status=$?
3313 grep -v '^ *+' conftest.er1 >conftest.err
3314 rm -f conftest.er1
3315 cat conftest.err >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00003317 (exit $ac_status); } >/dev/null; then
3318 if test -s conftest.err; then
3319 ac_cpp_err=$ac_c_preproc_warn_flag
3320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3321 else
3322 ac_cpp_err=
3323 fi
3324else
3325 ac_cpp_err=yes
3326fi
3327if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +00003328 :
3329else
3330 echo "$as_me: failed program was:" >&5
3331sed 's/^/| /' conftest.$ac_ext >&5
3332
3333 # Broken: fails on valid input.
3334continue
3335fi
3336rm -f conftest.err conftest.$ac_ext
3337
drh613a0fe2007-11-23 17:31:17 +00003338 # OK, works on sane cases. Now check whether non-existent headers
a.rottmann84e63352003-03-24 09:42:16 +00003339 # can be detected and how.
3340 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003341/* confdefs.h. */
3342_ACEOF
3343cat confdefs.h >>conftest.$ac_ext
3344cat >>conftest.$ac_ext <<_ACEOF
3345/* end confdefs.h. */
3346#include <ac_nonexistent.h>
3347_ACEOF
drh613a0fe2007-11-23 17:31:17 +00003348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003350 ac_status=$?
3351 grep -v '^ *+' conftest.er1 >conftest.err
3352 rm -f conftest.er1
3353 cat conftest.err >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00003355 (exit $ac_status); } >/dev/null; then
3356 if test -s conftest.err; then
3357 ac_cpp_err=$ac_c_preproc_warn_flag
3358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3359 else
3360 ac_cpp_err=
3361 fi
3362else
3363 ac_cpp_err=yes
3364fi
3365if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +00003366 # Broken: success on invalid input.
3367continue
3368else
3369 echo "$as_me: failed program was:" >&5
3370sed 's/^/| /' conftest.$ac_ext >&5
3371
3372 # Passes both tests.
3373ac_preproc_ok=:
3374break
3375fi
3376rm -f conftest.err conftest.$ac_ext
3377
3378done
3379# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3380rm -f conftest.err conftest.$ac_ext
3381if $ac_preproc_ok; then
3382 break
3383fi
3384
3385 done
3386 ac_cv_prog_CPP=$CPP
3387
3388fi
3389 CPP=$ac_cv_prog_CPP
3390else
3391 ac_cv_prog_CPP=$CPP
3392fi
drh613a0fe2007-11-23 17:31:17 +00003393echo "$as_me:$LINENO: result: $CPP" >&5
3394echo "${ECHO_T}$CPP" >&6
a.rottmann84e63352003-03-24 09:42:16 +00003395ac_preproc_ok=false
3396for ac_c_preproc_warn_flag in '' yes
3397do
3398 # Use a header file that comes with gcc, so configuring glibc
3399 # with a fresh cross-compiler works.
3400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3401 # <limits.h> exists even on freestanding compilers.
3402 # On the NeXT, cc -E runs the code through the compiler's parser,
3403 # not just through cpp. "Syntax error" is here to catch this case.
3404 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003405/* confdefs.h. */
3406_ACEOF
3407cat confdefs.h >>conftest.$ac_ext
3408cat >>conftest.$ac_ext <<_ACEOF
3409/* end confdefs.h. */
3410#ifdef __STDC__
3411# include <limits.h>
3412#else
3413# include <assert.h>
3414#endif
a.rottmann964dbb12004-02-26 19:47:42 +00003415 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00003416_ACEOF
drh613a0fe2007-11-23 17:31:17 +00003417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003419 ac_status=$?
3420 grep -v '^ *+' conftest.er1 >conftest.err
3421 rm -f conftest.er1
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00003424 (exit $ac_status); } >/dev/null; then
3425 if test -s conftest.err; then
3426 ac_cpp_err=$ac_c_preproc_warn_flag
3427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3428 else
3429 ac_cpp_err=
3430 fi
3431else
3432 ac_cpp_err=yes
3433fi
3434if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +00003435 :
3436else
3437 echo "$as_me: failed program was:" >&5
3438sed 's/^/| /' conftest.$ac_ext >&5
3439
3440 # Broken: fails on valid input.
3441continue
3442fi
3443rm -f conftest.err conftest.$ac_ext
3444
drh613a0fe2007-11-23 17:31:17 +00003445 # OK, works on sane cases. Now check whether non-existent headers
a.rottmann84e63352003-03-24 09:42:16 +00003446 # can be detected and how.
3447 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003448/* confdefs.h. */
3449_ACEOF
3450cat confdefs.h >>conftest.$ac_ext
3451cat >>conftest.$ac_ext <<_ACEOF
3452/* end confdefs.h. */
3453#include <ac_nonexistent.h>
3454_ACEOF
drh613a0fe2007-11-23 17:31:17 +00003455if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003457 ac_status=$?
3458 grep -v '^ *+' conftest.er1 >conftest.err
3459 rm -f conftest.er1
3460 cat conftest.err >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00003462 (exit $ac_status); } >/dev/null; then
3463 if test -s conftest.err; then
3464 ac_cpp_err=$ac_c_preproc_warn_flag
3465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3466 else
3467 ac_cpp_err=
3468 fi
3469else
3470 ac_cpp_err=yes
3471fi
3472if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +00003473 # Broken: success on invalid input.
3474continue
3475else
3476 echo "$as_me: failed program was:" >&5
3477sed 's/^/| /' conftest.$ac_ext >&5
3478
3479 # Passes both tests.
3480ac_preproc_ok=:
3481break
3482fi
3483rm -f conftest.err conftest.$ac_ext
3484
3485done
3486# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3487rm -f conftest.err conftest.$ac_ext
3488if $ac_preproc_ok; then
3489 :
3490else
3491 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3492See \`config.log' for more details." >&5
3493echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3494See \`config.log' for more details." >&2;}
3495 { (exit 1); exit 1; }; }
3496fi
3497
3498ac_ext=c
3499ac_cpp='$CPP $CPPFLAGS'
3500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502ac_compiler_gnu=$ac_cv_c_compiler_gnu
3503
3504
drh613a0fe2007-11-23 17:31:17 +00003505echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3506echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00003507if test "${ac_cv_header_stdc+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3509else
3510 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003511/* confdefs.h. */
3512_ACEOF
3513cat confdefs.h >>conftest.$ac_ext
3514cat >>conftest.$ac_ext <<_ACEOF
3515/* end confdefs.h. */
3516#include <stdlib.h>
3517#include <stdarg.h>
3518#include <string.h>
3519#include <float.h>
3520
3521int
3522main ()
3523{
3524
3525 ;
3526 return 0;
3527}
3528_ACEOF
3529rm -f conftest.$ac_objext
drh613a0fe2007-11-23 17:31:17 +00003530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3531 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003532 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003533 grep -v '^ *+' conftest.er1 >conftest.err
3534 rm -f conftest.er1
3535 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00003537 (exit $ac_status); } &&
3538 { ac_try='test -z "$ac_c_werror_flag"
3539 || test ! -s conftest.err'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; } &&
3545 { ac_try='test -s conftest.$ac_objext'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 (eval $ac_try) 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00003551 ac_cv_header_stdc=yes
3552else
3553 echo "$as_me: failed program was:" >&5
3554sed 's/^/| /' conftest.$ac_ext >&5
3555
drh613a0fe2007-11-23 17:31:17 +00003556ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00003557fi
drh613a0fe2007-11-23 17:31:17 +00003558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003559
3560if test $ac_cv_header_stdc = yes; then
3561 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3562 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003563/* confdefs.h. */
3564_ACEOF
3565cat confdefs.h >>conftest.$ac_ext
3566cat >>conftest.$ac_ext <<_ACEOF
3567/* end confdefs.h. */
3568#include <string.h>
3569
3570_ACEOF
3571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3572 $EGREP "memchr" >/dev/null 2>&1; then
3573 :
3574else
3575 ac_cv_header_stdc=no
3576fi
3577rm -f conftest*
3578
3579fi
3580
3581if test $ac_cv_header_stdc = yes; then
3582 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3583 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003584/* confdefs.h. */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
3588/* end confdefs.h. */
3589#include <stdlib.h>
3590
3591_ACEOF
3592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3593 $EGREP "free" >/dev/null 2>&1; then
3594 :
3595else
3596 ac_cv_header_stdc=no
3597fi
3598rm -f conftest*
3599
3600fi
3601
3602if test $ac_cv_header_stdc = yes; then
3603 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3604 if test "$cross_compiling" = yes; then
3605 :
3606else
3607 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003608/* confdefs.h. */
3609_ACEOF
3610cat confdefs.h >>conftest.$ac_ext
3611cat >>conftest.$ac_ext <<_ACEOF
3612/* end confdefs.h. */
3613#include <ctype.h>
3614#if ((' ' & 0x0FF) == 0x020)
3615# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3616# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3617#else
3618# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00003619 (('a' <= (c) && (c) <= 'i') \
3620 || ('j' <= (c) && (c) <= 'r') \
3621 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00003622# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3623#endif
3624
3625#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3626int
3627main ()
3628{
3629 int i;
3630 for (i = 0; i < 256; i++)
3631 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00003632 || toupper (i) != TOUPPER (i))
drh613a0fe2007-11-23 17:31:17 +00003633 exit(2);
3634 exit (0);
a.rottmann84e63352003-03-24 09:42:16 +00003635}
3636_ACEOF
3637rm -f conftest$ac_exeext
drh613a0fe2007-11-23 17:31:17 +00003638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3639 (eval $ac_link) 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00003640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
drh613a0fe2007-11-23 17:31:17 +00003643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 (eval $ac_try) 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00003645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 :
3649else
3650 echo "$as_me: program exited with status $ac_status" >&5
3651echo "$as_me: failed program was:" >&5
3652sed 's/^/| /' conftest.$ac_ext >&5
3653
3654( exit $ac_status )
3655ac_cv_header_stdc=no
3656fi
drh613a0fe2007-11-23 17:31:17 +00003657rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003658fi
3659fi
drh613a0fe2007-11-23 17:31:17 +00003660fi
3661echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3662echo "${ECHO_T}$ac_cv_header_stdc" >&6
a.rottmann84e63352003-03-24 09:42:16 +00003663if test $ac_cv_header_stdc = yes; then
3664
3665cat >>confdefs.h <<\_ACEOF
3666#define STDC_HEADERS 1
3667_ACEOF
3668
3669fi
3670
3671# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00003682 inttypes.h stdint.h unistd.h
a.rottmann84e63352003-03-24 09:42:16 +00003683do
3684as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
drh613a0fe2007-11-23 17:31:17 +00003685echo "$as_me:$LINENO: checking for $ac_header" >&5
3686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3687if eval "test \"\${$as_ac_Header+set}\" = set"; then
a.rottmann84e63352003-03-24 09:42:16 +00003688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689else
3690 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003691/* confdefs.h. */
3692_ACEOF
3693cat confdefs.h >>conftest.$ac_ext
3694cat >>conftest.$ac_ext <<_ACEOF
3695/* end confdefs.h. */
3696$ac_includes_default
3697
3698#include <$ac_header>
3699_ACEOF
3700rm -f conftest.$ac_objext
drh613a0fe2007-11-23 17:31:17 +00003701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3702 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003703 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00003708 (exit $ac_status); } &&
3709 { ac_try='test -z "$ac_c_werror_flag"
3710 || test ! -s conftest.err'
3711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712 (eval $ac_try) 2>&5
3713 ac_status=$?
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; } &&
3716 { ac_try='test -s conftest.$ac_objext'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 (eval $ac_try) 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00003722 eval "$as_ac_Header=yes"
3723else
3724 echo "$as_me: failed program was:" >&5
3725sed 's/^/| /' conftest.$ac_ext >&5
3726
drh613a0fe2007-11-23 17:31:17 +00003727eval "$as_ac_Header=no"
a.rottmann84e63352003-03-24 09:42:16 +00003728fi
drh613a0fe2007-11-23 17:31:17 +00003729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003730fi
drh613a0fe2007-11-23 17:31:17 +00003731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3732echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a.rottmann84e63352003-03-24 09:42:16 +00003733if test `eval echo '${'$as_ac_Header'}'` = yes; then
3734 cat >>confdefs.h <<_ACEOF
3735#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3736_ACEOF
3737
3738fi
3739
3740done
3741
3742
3743
3744for ac_header in dlfcn.h
3745do
3746as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
drh613a0fe2007-11-23 17:31:17 +00003747if eval "test \"\${$as_ac_Header+set}\" = set"; then
3748 echo "$as_me:$LINENO: checking for $ac_header" >&5
3749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3750if eval "test \"\${$as_ac_Header+set}\" = set"; then
a.rottmann84e63352003-03-24 09:42:16 +00003751 echo $ECHO_N "(cached) $ECHO_C" >&6
3752fi
drh613a0fe2007-11-23 17:31:17 +00003753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a.rottmann84e63352003-03-24 09:42:16 +00003755else
3756 # Is the header compilable?
drh613a0fe2007-11-23 17:31:17 +00003757echo "$as_me:$LINENO: checking $ac_header usability" >&5
3758echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00003759cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003760/* confdefs.h. */
3761_ACEOF
3762cat confdefs.h >>conftest.$ac_ext
3763cat >>conftest.$ac_ext <<_ACEOF
3764/* end confdefs.h. */
3765$ac_includes_default
3766#include <$ac_header>
3767_ACEOF
3768rm -f conftest.$ac_objext
drh613a0fe2007-11-23 17:31:17 +00003769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3770 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003771 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003772 grep -v '^ *+' conftest.er1 >conftest.err
3773 rm -f conftest.er1
3774 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00003776 (exit $ac_status); } &&
3777 { ac_try='test -z "$ac_c_werror_flag"
3778 || test ! -s conftest.err'
3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780 (eval $ac_try) 2>&5
3781 ac_status=$?
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; } &&
3784 { ac_try='test -s conftest.$ac_objext'
3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 (eval $ac_try) 2>&5
3787 ac_status=$?
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00003790 ac_header_compiler=yes
3791else
3792 echo "$as_me: failed program was:" >&5
3793sed 's/^/| /' conftest.$ac_ext >&5
3794
drh613a0fe2007-11-23 17:31:17 +00003795ac_header_compiler=no
a.rottmann84e63352003-03-24 09:42:16 +00003796fi
drh613a0fe2007-11-23 17:31:17 +00003797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3798echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3799echo "${ECHO_T}$ac_header_compiler" >&6
a.rottmann84e63352003-03-24 09:42:16 +00003800
3801# Is the header present?
drh613a0fe2007-11-23 17:31:17 +00003802echo "$as_me:$LINENO: checking $ac_header presence" >&5
3803echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00003804cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003805/* confdefs.h. */
3806_ACEOF
3807cat confdefs.h >>conftest.$ac_ext
3808cat >>conftest.$ac_ext <<_ACEOF
3809/* end confdefs.h. */
3810#include <$ac_header>
3811_ACEOF
drh613a0fe2007-11-23 17:31:17 +00003812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003814 ac_status=$?
3815 grep -v '^ *+' conftest.er1 >conftest.err
3816 rm -f conftest.er1
3817 cat conftest.err >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00003819 (exit $ac_status); } >/dev/null; then
3820 if test -s conftest.err; then
3821 ac_cpp_err=$ac_c_preproc_warn_flag
3822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3823 else
3824 ac_cpp_err=
3825 fi
3826else
3827 ac_cpp_err=yes
3828fi
3829if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +00003830 ac_header_preproc=yes
3831else
3832 echo "$as_me: failed program was:" >&5
3833sed 's/^/| /' conftest.$ac_ext >&5
3834
3835 ac_header_preproc=no
3836fi
3837rm -f conftest.err conftest.$ac_ext
drh613a0fe2007-11-23 17:31:17 +00003838echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3839echo "${ECHO_T}$ac_header_preproc" >&6
a.rottmann84e63352003-03-24 09:42:16 +00003840
3841# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +00003842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3843 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +00003844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3845echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3847echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3848 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +00003849 ;;
a.rottmann964dbb12004-02-26 19:47:42 +00003850 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +00003851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3854echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3856echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3858echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00003859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
drh613a0fe2007-11-23 17:31:17 +00003863 (
3864 cat <<\_ASBOX
3865## ------------------------------------------ ##
3866## Report this to the AC_PACKAGE_NAME lists. ##
3867## ------------------------------------------ ##
3868_ASBOX
3869 ) |
3870 sed "s/^/$as_me: WARNING: /" >&2
a.rottmann84e63352003-03-24 09:42:16 +00003871 ;;
drh71eb93e2001-09-28 01:34:43 +00003872esac
drh613a0fe2007-11-23 17:31:17 +00003873echo "$as_me:$LINENO: checking for $ac_header" >&5
3874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3875if eval "test \"\${$as_ac_Header+set}\" = set"; then
drh71eb93e2001-09-28 01:34:43 +00003876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877else
a.rottmann964dbb12004-02-26 19:47:42 +00003878 eval "$as_ac_Header=\$ac_header_preproc"
a.rottmann84e63352003-03-24 09:42:16 +00003879fi
drh613a0fe2007-11-23 17:31:17 +00003880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a.rottmann84e63352003-03-24 09:42:16 +00003882
3883fi
3884if test `eval echo '${'$as_ac_Header'}'` = yes; then
3885 cat >>confdefs.h <<_ACEOF
3886#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3887_ACEOF
3888
3889fi
3890
drh71eb93e2001-09-28 01:34:43 +00003891done
3892
drh613a0fe2007-11-23 17:31:17 +00003893ac_ext=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00003894ac_cpp='$CXXCPP $CPPFLAGS'
3895ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
drh613a0fe2007-11-23 17:31:17 +00003898if test -n "$ac_tool_prefix"; then
3899 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
a.rottmann9bc8b932004-02-29 15:18:31 +00003900 do
3901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3902set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh613a0fe2007-11-23 17:31:17 +00003903echo "$as_me:$LINENO: checking for $ac_word" >&5
3904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003905if test "${ac_cv_prog_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003906 echo $ECHO_N "(cached) $ECHO_C" >&6
3907else
a.rottmann9bc8b932004-02-29 15:18:31 +00003908 if test -n "$CXX"; then
3909 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3910else
3911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH
3913do
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
drh613a0fe2007-11-23 17:31:17 +00003917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003918 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 break 2
3921 fi
3922done
3923done
drh71eb93e2001-09-28 01:34:43 +00003924
drh71eb93e2001-09-28 01:34:43 +00003925fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003926fi
3927CXX=$ac_cv_prog_CXX
3928if test -n "$CXX"; then
drh613a0fe2007-11-23 17:31:17 +00003929 echo "$as_me:$LINENO: result: $CXX" >&5
3930echo "${ECHO_T}$CXX" >&6
drh71eb93e2001-09-28 01:34:43 +00003931else
drh613a0fe2007-11-23 17:31:17 +00003932 echo "$as_me:$LINENO: result: no" >&5
3933echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00003934fi
3935
a.rottmann9bc8b932004-02-29 15:18:31 +00003936 test -n "$CXX" && break
3937 done
3938fi
3939if test -z "$CXX"; then
3940 ac_ct_CXX=$CXX
drh613a0fe2007-11-23 17:31:17 +00003941 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
a.rottmann9bc8b932004-02-29 15:18:31 +00003942do
3943 # Extract the first word of "$ac_prog", so it can be a program name with args.
3944set dummy $ac_prog; ac_word=$2
drh613a0fe2007-11-23 17:31:17 +00003945echo "$as_me:$LINENO: checking for $ac_word" >&5
3946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003947if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003948 echo $ECHO_N "(cached) $ECHO_C" >&6
3949else
a.rottmann9bc8b932004-02-29 15:18:31 +00003950 if test -n "$ac_ct_CXX"; then
3951 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3952else
3953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954for as_dir in $PATH
3955do
3956 IFS=$as_save_IFS
3957 test -z "$as_dir" && as_dir=.
3958 for ac_exec_ext in '' $ac_executable_extensions; do
drh613a0fe2007-11-23 17:31:17 +00003959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003960 ac_cv_prog_ac_ct_CXX="$ac_prog"
3961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 break 2
3963 fi
3964done
3965done
drh71eb93e2001-09-28 01:34:43 +00003966
drh71eb93e2001-09-28 01:34:43 +00003967fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003968fi
3969ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3970if test -n "$ac_ct_CXX"; then
drh613a0fe2007-11-23 17:31:17 +00003971 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3972echo "${ECHO_T}$ac_ct_CXX" >&6
drh71eb93e2001-09-28 01:34:43 +00003973else
drh613a0fe2007-11-23 17:31:17 +00003974 echo "$as_me:$LINENO: result: no" >&5
3975echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00003976fi
3977
a.rottmann9bc8b932004-02-29 15:18:31 +00003978 test -n "$ac_ct_CXX" && break
3979done
drh613a0fe2007-11-23 17:31:17 +00003980test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
a.rottmann9bc8b932004-02-29 15:18:31 +00003981
drh613a0fe2007-11-23 17:31:17 +00003982 CXX=$ac_ct_CXX
a.rottmann9bc8b932004-02-29 15:18:31 +00003983fi
3984
drh613a0fe2007-11-23 17:31:17 +00003985
a.rottmann9bc8b932004-02-29 15:18:31 +00003986# Provide some information about the compiler.
drh613a0fe2007-11-23 17:31:17 +00003987echo "$as_me:$LINENO:" \
3988 "checking for C++ compiler version" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003989ac_compiler=`set X $ac_compile; echo $2`
drh613a0fe2007-11-23 17:31:17 +00003990{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3991 (eval $ac_compiler --version </dev/null >&5) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }
drh613a0fe2007-11-23 17:31:17 +00003995{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3996 (eval $ac_compiler -v </dev/null >&5) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }
drh613a0fe2007-11-23 17:31:17 +00004000{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4001 (eval $ac_compiler -V </dev/null >&5) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004002 ac_status=$?
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); }
4005
drh613a0fe2007-11-23 17:31:17 +00004006echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4007echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004008if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010else
4011 cat >conftest.$ac_ext <<_ACEOF
4012/* confdefs.h. */
4013_ACEOF
4014cat confdefs.h >>conftest.$ac_ext
4015cat >>conftest.$ac_ext <<_ACEOF
4016/* end confdefs.h. */
4017
4018int
4019main ()
4020{
4021#ifndef __GNUC__
4022 choke me
4023#endif
4024
4025 ;
4026 return 0;
4027}
4028_ACEOF
4029rm -f conftest.$ac_objext
drh613a0fe2007-11-23 17:31:17 +00004030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4031 (eval $ac_compile) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004032 ac_status=$?
4033 grep -v '^ *+' conftest.er1 >conftest.err
4034 rm -f conftest.er1
4035 cat conftest.err >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00004037 (exit $ac_status); } &&
4038 { ac_try='test -z "$ac_cxx_werror_flag"
4039 || test ! -s conftest.err'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 (eval $ac_try) 2>&5
4042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; } &&
4045 { ac_try='test -s conftest.$ac_objext'
4046 { (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); }; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004051 ac_compiler_gnu=yes
4052else
4053 echo "$as_me: failed program was:" >&5
4054sed 's/^/| /' conftest.$ac_ext >&5
4055
drh613a0fe2007-11-23 17:31:17 +00004056ac_compiler_gnu=no
a.rottmann9bc8b932004-02-29 15:18:31 +00004057fi
drh613a0fe2007-11-23 17:31:17 +00004058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00004059ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4060
4061fi
drh613a0fe2007-11-23 17:31:17 +00004062echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4063echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004064GXX=`test $ac_compiler_gnu = yes && echo yes`
4065ac_test_CXXFLAGS=${CXXFLAGS+set}
4066ac_save_CXXFLAGS=$CXXFLAGS
drh613a0fe2007-11-23 17:31:17 +00004067CXXFLAGS="-g"
4068echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4069echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004070if test "${ac_cv_prog_cxx_g+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4072else
drh613a0fe2007-11-23 17:31:17 +00004073 cat >conftest.$ac_ext <<_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00004074/* confdefs.h. */
4075_ACEOF
4076cat confdefs.h >>conftest.$ac_ext
4077cat >>conftest.$ac_ext <<_ACEOF
4078/* end confdefs.h. */
4079
4080int
4081main ()
4082{
4083
4084 ;
4085 return 0;
4086}
4087_ACEOF
4088rm -f conftest.$ac_objext
drh613a0fe2007-11-23 17:31:17 +00004089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4090 (eval $ac_compile) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004091 ac_status=$?
4092 grep -v '^ *+' conftest.er1 >conftest.err
4093 rm -f conftest.er1
4094 cat conftest.err >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00004096 (exit $ac_status); } &&
4097 { ac_try='test -z "$ac_cxx_werror_flag"
4098 || test ! -s conftest.err'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 (eval $ac_try) 2>&5
4101 ac_status=$?
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; } &&
4104 { ac_try='test -s conftest.$ac_objext'
4105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106 (eval $ac_try) 2>&5
4107 ac_status=$?
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004110 ac_cv_prog_cxx_g=yes
4111else
4112 echo "$as_me: failed program was:" >&5
4113sed 's/^/| /' conftest.$ac_ext >&5
4114
drh613a0fe2007-11-23 17:31:17 +00004115ac_cv_prog_cxx_g=no
a.rottmann9bc8b932004-02-29 15:18:31 +00004116fi
drh613a0fe2007-11-23 17:31:17 +00004117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00004118fi
drh613a0fe2007-11-23 17:31:17 +00004119echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4120echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004121if test "$ac_test_CXXFLAGS" = set; then
4122 CXXFLAGS=$ac_save_CXXFLAGS
4123elif test $ac_cv_prog_cxx_g = yes; then
4124 if test "$GXX" = yes; then
4125 CXXFLAGS="-g -O2"
drh71eb93e2001-09-28 01:34:43 +00004126 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004127 CXXFLAGS="-g"
4128 fi
4129else
4130 if test "$GXX" = yes; then
4131 CXXFLAGS="-O2"
4132 else
4133 CXXFLAGS=
4134 fi
4135fi
drh613a0fe2007-11-23 17:31:17 +00004136for ac_declaration in \
4137 '' \
4138 'extern "C" void std::exit (int) throw (); using std::exit;' \
4139 'extern "C" void std::exit (int); using std::exit;' \
4140 'extern "C" void exit (int) throw ();' \
4141 'extern "C" void exit (int);' \
4142 'void exit (int);'
4143do
4144 cat >conftest.$ac_ext <<_ACEOF
4145/* confdefs.h. */
4146_ACEOF
4147cat confdefs.h >>conftest.$ac_ext
4148cat >>conftest.$ac_ext <<_ACEOF
4149/* end confdefs.h. */
4150$ac_declaration
4151#include <stdlib.h>
4152int
4153main ()
4154{
4155exit (42);
4156 ;
4157 return 0;
4158}
4159_ACEOF
4160rm -f conftest.$ac_objext
4161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4162 (eval $ac_compile) 2>conftest.er1
4163 ac_status=$?
4164 grep -v '^ *+' conftest.er1 >conftest.err
4165 rm -f conftest.er1
4166 cat conftest.err >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 { ac_try='test -z "$ac_cxx_werror_flag"
4170 || test ! -s conftest.err'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 (eval $ac_try) 2>&5
4173 ac_status=$?
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; } &&
4176 { ac_try='test -s conftest.$ac_objext'
4177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178 (eval $ac_try) 2>&5
4179 ac_status=$?
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; }; then
4182 :
4183else
4184 echo "$as_me: failed program was:" >&5
4185sed 's/^/| /' conftest.$ac_ext >&5
4186
4187continue
4188fi
4189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4190 cat >conftest.$ac_ext <<_ACEOF
4191/* confdefs.h. */
4192_ACEOF
4193cat confdefs.h >>conftest.$ac_ext
4194cat >>conftest.$ac_ext <<_ACEOF
4195/* end confdefs.h. */
4196$ac_declaration
4197int
4198main ()
4199{
4200exit (42);
4201 ;
4202 return 0;
4203}
4204_ACEOF
4205rm -f conftest.$ac_objext
4206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4207 (eval $ac_compile) 2>conftest.er1
4208 ac_status=$?
4209 grep -v '^ *+' conftest.er1 >conftest.err
4210 rm -f conftest.er1
4211 cat conftest.err >&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } &&
4214 { ac_try='test -z "$ac_cxx_werror_flag"
4215 || test ! -s conftest.err'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 (eval $ac_try) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; } &&
4221 { ac_try='test -s conftest.$ac_objext'
4222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4223 (eval $ac_try) 2>&5
4224 ac_status=$?
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; }; then
4227 break
4228else
4229 echo "$as_me: failed program was:" >&5
4230sed 's/^/| /' conftest.$ac_ext >&5
4231
4232fi
4233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4234done
4235rm -f conftest*
4236if test -n "$ac_declaration"; then
4237 echo '#ifdef __cplusplus' >>confdefs.h
4238 echo $ac_declaration >>confdefs.h
4239 echo '#endif' >>confdefs.h
4240fi
4241
4242ac_ext=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00004243ac_cpp='$CXXCPP $CPPFLAGS'
4244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4247
vapier7f19c022007-02-17 14:46:31 +00004248
4249
4250if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4251 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4252 (test "X$CXX" != "Xg++"))) ; then
drh613a0fe2007-11-23 17:31:17 +00004253 ac_ext=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00004254ac_cpp='$CXXCPP $CPPFLAGS'
4255ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
drh613a0fe2007-11-23 17:31:17 +00004258echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4259echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004260if test -z "$CXXCPP"; then
4261 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263else
4264 # Double quotes because CXXCPP needs to be expanded
4265 for CXXCPP in "$CXX -E" "/lib/cpp"
4266 do
4267 ac_preproc_ok=false
4268for ac_cxx_preproc_warn_flag in '' yes
4269do
4270 # Use a header file that comes with gcc, so configuring glibc
4271 # with a fresh cross-compiler works.
4272 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4273 # <limits.h> exists even on freestanding compilers.
4274 # On the NeXT, cc -E runs the code through the compiler's parser,
4275 # not just through cpp. "Syntax error" is here to catch this case.
4276 cat >conftest.$ac_ext <<_ACEOF
4277/* confdefs.h. */
4278_ACEOF
4279cat confdefs.h >>conftest.$ac_ext
4280cat >>conftest.$ac_ext <<_ACEOF
4281/* end confdefs.h. */
4282#ifdef __STDC__
4283# include <limits.h>
4284#else
4285# include <assert.h>
4286#endif
4287 Syntax error
4288_ACEOF
drh613a0fe2007-11-23 17:31:17 +00004289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004291 ac_status=$?
4292 grep -v '^ *+' conftest.er1 >conftest.err
4293 rm -f conftest.er1
4294 cat conftest.err >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00004296 (exit $ac_status); } >/dev/null; then
4297 if test -s conftest.err; then
4298 ac_cpp_err=$ac_cxx_preproc_warn_flag
4299 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4300 else
4301 ac_cpp_err=
4302 fi
4303else
4304 ac_cpp_err=yes
4305fi
4306if test -z "$ac_cpp_err"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004307 :
4308else
4309 echo "$as_me: failed program was:" >&5
4310sed 's/^/| /' conftest.$ac_ext >&5
4311
4312 # Broken: fails on valid input.
4313continue
4314fi
4315rm -f conftest.err conftest.$ac_ext
4316
drh613a0fe2007-11-23 17:31:17 +00004317 # OK, works on sane cases. Now check whether non-existent headers
a.rottmann9bc8b932004-02-29 15:18:31 +00004318 # can be detected and how.
4319 cat >conftest.$ac_ext <<_ACEOF
4320/* confdefs.h. */
4321_ACEOF
4322cat confdefs.h >>conftest.$ac_ext
4323cat >>conftest.$ac_ext <<_ACEOF
4324/* end confdefs.h. */
4325#include <ac_nonexistent.h>
4326_ACEOF
drh613a0fe2007-11-23 17:31:17 +00004327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004329 ac_status=$?
4330 grep -v '^ *+' conftest.er1 >conftest.err
4331 rm -f conftest.er1
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00004334 (exit $ac_status); } >/dev/null; then
4335 if test -s conftest.err; then
4336 ac_cpp_err=$ac_cxx_preproc_warn_flag
4337 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4338 else
4339 ac_cpp_err=
4340 fi
4341else
4342 ac_cpp_err=yes
4343fi
4344if test -z "$ac_cpp_err"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004345 # Broken: success on invalid input.
4346continue
4347else
4348 echo "$as_me: failed program was:" >&5
4349sed 's/^/| /' conftest.$ac_ext >&5
4350
4351 # Passes both tests.
4352ac_preproc_ok=:
4353break
4354fi
4355rm -f conftest.err conftest.$ac_ext
4356
4357done
4358# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4359rm -f conftest.err conftest.$ac_ext
4360if $ac_preproc_ok; then
4361 break
4362fi
4363
4364 done
4365 ac_cv_prog_CXXCPP=$CXXCPP
4366
4367fi
4368 CXXCPP=$ac_cv_prog_CXXCPP
4369else
4370 ac_cv_prog_CXXCPP=$CXXCPP
4371fi
drh613a0fe2007-11-23 17:31:17 +00004372echo "$as_me:$LINENO: result: $CXXCPP" >&5
4373echo "${ECHO_T}$CXXCPP" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004374ac_preproc_ok=false
4375for ac_cxx_preproc_warn_flag in '' yes
4376do
4377 # Use a header file that comes with gcc, so configuring glibc
4378 # with a fresh cross-compiler works.
4379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4380 # <limits.h> exists even on freestanding compilers.
4381 # On the NeXT, cc -E runs the code through the compiler's parser,
4382 # not just through cpp. "Syntax error" is here to catch this case.
4383 cat >conftest.$ac_ext <<_ACEOF
4384/* confdefs.h. */
4385_ACEOF
4386cat confdefs.h >>conftest.$ac_ext
4387cat >>conftest.$ac_ext <<_ACEOF
4388/* end confdefs.h. */
4389#ifdef __STDC__
4390# include <limits.h>
4391#else
4392# include <assert.h>
4393#endif
4394 Syntax error
4395_ACEOF
drh613a0fe2007-11-23 17:31:17 +00004396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004398 ac_status=$?
4399 grep -v '^ *+' conftest.er1 >conftest.err
4400 rm -f conftest.er1
4401 cat conftest.err >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00004403 (exit $ac_status); } >/dev/null; then
4404 if test -s conftest.err; then
4405 ac_cpp_err=$ac_cxx_preproc_warn_flag
4406 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4407 else
4408 ac_cpp_err=
4409 fi
4410else
4411 ac_cpp_err=yes
4412fi
4413if test -z "$ac_cpp_err"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004414 :
4415else
4416 echo "$as_me: failed program was:" >&5
4417sed 's/^/| /' conftest.$ac_ext >&5
4418
4419 # Broken: fails on valid input.
4420continue
4421fi
4422rm -f conftest.err conftest.$ac_ext
4423
drh613a0fe2007-11-23 17:31:17 +00004424 # OK, works on sane cases. Now check whether non-existent headers
a.rottmann9bc8b932004-02-29 15:18:31 +00004425 # can be detected and how.
4426 cat >conftest.$ac_ext <<_ACEOF
4427/* confdefs.h. */
4428_ACEOF
4429cat confdefs.h >>conftest.$ac_ext
4430cat >>conftest.$ac_ext <<_ACEOF
4431/* end confdefs.h. */
4432#include <ac_nonexistent.h>
4433_ACEOF
drh613a0fe2007-11-23 17:31:17 +00004434if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004436 ac_status=$?
4437 grep -v '^ *+' conftest.er1 >conftest.err
4438 rm -f conftest.er1
4439 cat conftest.err >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00004441 (exit $ac_status); } >/dev/null; then
4442 if test -s conftest.err; then
4443 ac_cpp_err=$ac_cxx_preproc_warn_flag
4444 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4445 else
4446 ac_cpp_err=
4447 fi
4448else
4449 ac_cpp_err=yes
4450fi
4451if test -z "$ac_cpp_err"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004452 # Broken: success on invalid input.
4453continue
4454else
4455 echo "$as_me: failed program was:" >&5
4456sed 's/^/| /' conftest.$ac_ext >&5
4457
4458 # Passes both tests.
4459ac_preproc_ok=:
4460break
4461fi
4462rm -f conftest.err conftest.$ac_ext
4463
4464done
4465# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4466rm -f conftest.err conftest.$ac_ext
4467if $ac_preproc_ok; then
4468 :
4469else
4470 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4471See \`config.log' for more details." >&5
4472echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4473See \`config.log' for more details." >&2;}
4474 { (exit 1); exit 1; }; }
4475fi
4476
drh613a0fe2007-11-23 17:31:17 +00004477ac_ext=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00004478ac_cpp='$CXXCPP $CPPFLAGS'
4479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4482
vapier7f19c022007-02-17 14:46:31 +00004483fi
4484
a.rottmann9bc8b932004-02-29 15:18:31 +00004485
4486ac_ext=f
4487ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4488ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4490if test -n "$ac_tool_prefix"; then
drh613a0fe2007-11-23 17:31:17 +00004491 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
a.rottmann9bc8b932004-02-29 15:18:31 +00004492 do
4493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4494set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh613a0fe2007-11-23 17:31:17 +00004495echo "$as_me:$LINENO: checking for $ac_word" >&5
4496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004497if test "${ac_cv_prog_F77+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4499else
4500 if test -n "$F77"; then
4501 ac_cv_prog_F77="$F77" # Let the user override the test.
4502else
4503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504for as_dir in $PATH
4505do
4506 IFS=$as_save_IFS
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
drh613a0fe2007-11-23 17:31:17 +00004509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004510 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512 break 2
4513 fi
4514done
4515done
4516
4517fi
4518fi
4519F77=$ac_cv_prog_F77
4520if test -n "$F77"; then
drh613a0fe2007-11-23 17:31:17 +00004521 echo "$as_me:$LINENO: result: $F77" >&5
4522echo "${ECHO_T}$F77" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004523else
drh613a0fe2007-11-23 17:31:17 +00004524 echo "$as_me:$LINENO: result: no" >&5
4525echo "${ECHO_T}no" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004526fi
4527
4528 test -n "$F77" && break
4529 done
4530fi
4531if test -z "$F77"; then
4532 ac_ct_F77=$F77
drh613a0fe2007-11-23 17:31:17 +00004533 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
a.rottmann9bc8b932004-02-29 15:18:31 +00004534do
4535 # Extract the first word of "$ac_prog", so it can be a program name with args.
4536set dummy $ac_prog; ac_word=$2
drh613a0fe2007-11-23 17:31:17 +00004537echo "$as_me:$LINENO: checking for $ac_word" >&5
4538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004539if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541else
4542 if test -n "$ac_ct_F77"; then
4543 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4544else
4545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546for as_dir in $PATH
4547do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
drh613a0fe2007-11-23 17:31:17 +00004551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004552 ac_cv_prog_ac_ct_F77="$ac_prog"
4553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 break 2
4555 fi
4556done
4557done
4558
4559fi
4560fi
4561ac_ct_F77=$ac_cv_prog_ac_ct_F77
4562if test -n "$ac_ct_F77"; then
drh613a0fe2007-11-23 17:31:17 +00004563 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4564echo "${ECHO_T}$ac_ct_F77" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004565else
drh613a0fe2007-11-23 17:31:17 +00004566 echo "$as_me:$LINENO: result: no" >&5
4567echo "${ECHO_T}no" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004568fi
4569
4570 test -n "$ac_ct_F77" && break
4571done
4572
drh613a0fe2007-11-23 17:31:17 +00004573 F77=$ac_ct_F77
a.rottmann9bc8b932004-02-29 15:18:31 +00004574fi
4575
4576
4577# Provide some information about the compiler.
drh613a0fe2007-11-23 17:31:17 +00004578echo "$as_me:4578:" \
4579 "checking for Fortran 77 compiler version" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004580ac_compiler=`set X $ac_compile; echo $2`
drh613a0fe2007-11-23 17:31:17 +00004581{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4582 (eval $ac_compiler --version </dev/null >&5) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }
drh613a0fe2007-11-23 17:31:17 +00004586{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4587 (eval $ac_compiler -v </dev/null >&5) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004588 ac_status=$?
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }
drh613a0fe2007-11-23 17:31:17 +00004591{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4592 (eval $ac_compiler -V </dev/null >&5) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }
4596rm -f a.out
4597
4598# If we don't use `.F' as extension, the preprocessor is not run on the
4599# input file. (Note that this only needs to work for GNU compilers.)
4600ac_save_ext=$ac_ext
4601ac_ext=F
drh613a0fe2007-11-23 17:31:17 +00004602echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4603echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004604if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4606else
4607 cat >conftest.$ac_ext <<_ACEOF
4608 program main
4609#ifndef __GNUC__
4610 choke me
4611#endif
4612
4613 end
4614_ACEOF
4615rm -f conftest.$ac_objext
drh613a0fe2007-11-23 17:31:17 +00004616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4617 (eval $ac_compile) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004618 ac_status=$?
4619 grep -v '^ *+' conftest.er1 >conftest.err
4620 rm -f conftest.er1
4621 cat conftest.err >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00004623 (exit $ac_status); } &&
4624 { ac_try='test -z "$ac_f77_werror_flag"
4625 || test ! -s conftest.err'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 (eval $ac_try) 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; } &&
4631 { ac_try='test -s conftest.$ac_objext'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 (eval $ac_try) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004637 ac_compiler_gnu=yes
4638else
4639 echo "$as_me: failed program was:" >&5
4640sed 's/^/| /' conftest.$ac_ext >&5
4641
drh613a0fe2007-11-23 17:31:17 +00004642ac_compiler_gnu=no
a.rottmann9bc8b932004-02-29 15:18:31 +00004643fi
drh613a0fe2007-11-23 17:31:17 +00004644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00004645ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4646
4647fi
drh613a0fe2007-11-23 17:31:17 +00004648echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4649echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004650ac_ext=$ac_save_ext
4651ac_test_FFLAGS=${FFLAGS+set}
4652ac_save_FFLAGS=$FFLAGS
4653FFLAGS=
drh613a0fe2007-11-23 17:31:17 +00004654echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4655echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004656if test "${ac_cv_prog_f77_g+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4658else
4659 FFLAGS=-g
4660cat >conftest.$ac_ext <<_ACEOF
4661 program main
4662
4663 end
4664_ACEOF
4665rm -f conftest.$ac_objext
drh613a0fe2007-11-23 17:31:17 +00004666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4667 (eval $ac_compile) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004668 ac_status=$?
4669 grep -v '^ *+' conftest.er1 >conftest.err
4670 rm -f conftest.er1
4671 cat conftest.err >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00004673 (exit $ac_status); } &&
4674 { ac_try='test -z "$ac_f77_werror_flag"
4675 || test ! -s conftest.err'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 (eval $ac_try) 2>&5
4678 ac_status=$?
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; } &&
4681 { ac_try='test -s conftest.$ac_objext'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 (eval $ac_try) 2>&5
4684 ac_status=$?
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004687 ac_cv_prog_f77_g=yes
4688else
4689 echo "$as_me: failed program was:" >&5
4690sed 's/^/| /' conftest.$ac_ext >&5
4691
drh613a0fe2007-11-23 17:31:17 +00004692ac_cv_prog_f77_g=no
a.rottmann9bc8b932004-02-29 15:18:31 +00004693fi
drh613a0fe2007-11-23 17:31:17 +00004694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00004695
4696fi
drh613a0fe2007-11-23 17:31:17 +00004697echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4698echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004699if test "$ac_test_FFLAGS" = set; then
4700 FFLAGS=$ac_save_FFLAGS
4701elif test $ac_cv_prog_f77_g = yes; then
4702 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4703 FFLAGS="-g -O2"
4704 else
4705 FFLAGS="-g"
4706 fi
4707else
4708 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4709 FFLAGS="-O2"
4710 else
4711 FFLAGS=
drh71eb93e2001-09-28 01:34:43 +00004712 fi
4713fi
4714
a.rottmann9bc8b932004-02-29 15:18:31 +00004715G77=`test $ac_compiler_gnu = yes && echo yes`
4716ac_ext=c
4717ac_cpp='$CPP $CPPFLAGS'
4718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4720ac_compiler_gnu=$ac_cv_c_compiler_gnu
4721
4722
4723
4724# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4725
4726# find the maximum length of command line arguments
drh613a0fe2007-11-23 17:31:17 +00004727echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4728echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004729if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731else
4732 i=0
vapier7f19c022007-02-17 14:46:31 +00004733 teststring="ABCD"
a.rottmann9bc8b932004-02-29 15:18:31 +00004734
4735 case $build_os in
4736 msdosdjgpp*)
4737 # On DJGPP, this test can blow up pretty badly due to problems in libc
4738 # (any single argument exceeding 2000 bytes causes a buffer overrun
4739 # during glob expansion). Even if it were fixed, the result of this
4740 # check would be larger than it should be.
4741 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4742 ;;
4743
4744 gnu*)
4745 # Under GNU Hurd, this test is not required because there is
4746 # no limit to the length of command line arguments.
4747 # Libtool will interpret -1 as no limit whatsoever
4748 lt_cv_sys_max_cmd_len=-1;
4749 ;;
4750
4751 cygwin* | mingw*)
4752 # On Win9x/ME, this test blows up -- it succeeds, but takes
4753 # about 5 minutes as the teststring grows exponentially.
4754 # Worse, since 9x/ME are not pre-emptively multitasking,
4755 # you end up with a "frozen" computer, even though with patience
4756 # the test eventually succeeds (with a max line length of 256k).
4757 # Instead, let's just punt: use the minimum linelength reported by
4758 # all of the supported platforms: 8192 (on NT/2K/XP).
4759 lt_cv_sys_max_cmd_len=8192;
4760 ;;
4761
4762 amigaos*)
4763 # On AmigaOS with pdksh, this test takes hours, literally.
4764 # So we just punt and use a minimum line length of 8192.
4765 lt_cv_sys_max_cmd_len=8192;
4766 ;;
4767
vapier7f19c022007-02-17 14:46:31 +00004768 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4769 # This has been around since 386BSD, at least. Likely further.
4770 if test -x /sbin/sysctl; then
4771 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4772 elif test -x /usr/sbin/sysctl; then
4773 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4774 else
4775 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4776 fi
4777 # And add a safety zone
4778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4780 ;;
4781
4782 interix*)
4783 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4784 lt_cv_sys_max_cmd_len=196608
4785 ;;
4786
4787 osf*)
4788 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4789 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4790 # nice to cause kernel panics so lets avoid the loop below.
4791 # First set a reasonable default.
4792 lt_cv_sys_max_cmd_len=16384
4793 #
4794 if test -x /sbin/sysconfig; then
4795 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4796 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4797 esac
4798 fi
4799 ;;
4800 sco3.2v5*)
4801 lt_cv_sys_max_cmd_len=102400
4802 ;;
4803 sysv5* | sco5v6* | sysv4.2uw2*)
4804 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4805 if test -n "$kargmax"; then
4806 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4807 else
4808 lt_cv_sys_max_cmd_len=32768
4809 fi
4810 ;;
4811 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00004812 # If test is not a shell built-in, we'll probably end up computing a
4813 # maximum length that is only half of the actual maximum length, but
4814 # we can't tell.
vapier7f19c022007-02-17 14:46:31 +00004815 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4816 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
4817 = "XX$teststring") >/dev/null 2>&1 &&
4818 new_result=`expr "X$teststring" : ".*" 2>&1` &&
a.rottmann9bc8b932004-02-29 15:18:31 +00004819 lt_cv_sys_max_cmd_len=$new_result &&
4820 test $i != 17 # 1/2 MB should be enough
4821 do
4822 i=`expr $i + 1`
vapier7f19c022007-02-17 14:46:31 +00004823 teststring=$teststring$teststring
a.rottmann9bc8b932004-02-29 15:18:31 +00004824 done
vapier7f19c022007-02-17 14:46:31 +00004825 teststring=
a.rottmann9bc8b932004-02-29 15:18:31 +00004826 # Add a significant safety factor because C++ compilers can tack on massive
4827 # amounts of additional arguments before passing them to the linker.
4828 # It appears as though 1/2 is a usable value.
4829 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4830 ;;
4831 esac
4832
4833fi
4834
4835if test -n $lt_cv_sys_max_cmd_len ; then
drh613a0fe2007-11-23 17:31:17 +00004836 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4837echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004838else
drh613a0fe2007-11-23 17:31:17 +00004839 echo "$as_me:$LINENO: result: none" >&5
4840echo "${ECHO_T}none" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004841fi
4842
4843
4844
4845
4846# Check for command to grab the raw symbol name followed by C symbol from nm.
drh613a0fe2007-11-23 17:31:17 +00004847echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4848echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004849if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4851else
4852
4853# These are sane defaults that work on at least a few old systems.
4854# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4855
4856# Character class describing NM global symbol codes.
4857symcode='[BCDEGRST]'
4858
4859# Regexp to match symbols that can be accessed directly from C.
4860sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4861
a.rottmann9bc8b932004-02-29 15:18:31 +00004862# Transform an extracted symbol line into a proper C declaration
4863lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4864
4865# Transform an extracted symbol line into symbol name and symbol address
4866lt_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'"
4867
4868# Define system-specific variables.
4869case $host_os in
4870aix*)
4871 symcode='[BCDT]'
4872 ;;
4873cygwin* | mingw* | pw32*)
4874 symcode='[ABCDGISTW]'
4875 ;;
4876hpux*) # Its linker distinguishes data from code symbols
4877 if test "$host_cpu" = ia64; then
4878 symcode='[ABCDEGRST]'
4879 fi
4880 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4881 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'"
4882 ;;
vapier7f19c022007-02-17 14:46:31 +00004883linux*)
4884 if test "$host_cpu" = ia64; then
4885 symcode='[ABCDGIRSTW]'
4886 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4887 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'"
4888 fi
4889 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004890irix* | nonstopux*)
4891 symcode='[BCDEGRST]'
4892 ;;
4893osf*)
4894 symcode='[BCDEGQRST]'
4895 ;;
vapier7f19c022007-02-17 14:46:31 +00004896solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004897 symcode='[BDRT]'
4898 ;;
vapier7f19c022007-02-17 14:46:31 +00004899sco3.2v5*)
4900 symcode='[DT]'
4901 ;;
4902sysv4.2uw2*)
4903 symcode='[DT]'
4904 ;;
4905sysv5* | sco5v6* | unixware* | OpenUNIX*)
4906 symcode='[ABDT]'
4907 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004908sysv4)
4909 symcode='[DFNSTU]'
4910 ;;
4911esac
4912
4913# Handle CRLF in mingw tool chain
4914opt_cr=
4915case $build_os in
4916mingw*)
4917 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4918 ;;
4919esac
4920
4921# If we're using GNU nm, then use its standard symbol codes.
4922case `$NM -V 2>&1` in
4923*GNU* | *'with BFD'*)
4924 symcode='[ABCDGIRSTW]' ;;
4925esac
4926
4927# Try without a prefix undercore, then with it.
4928for ac_symprfx in "" "_"; do
4929
vapier7f19c022007-02-17 14:46:31 +00004930 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4931 symxfrm="\\1 $ac_symprfx\\2 \\2"
4932
a.rottmann9bc8b932004-02-29 15:18:31 +00004933 # Write the raw and C identifiers.
vapier7f19c022007-02-17 14:46:31 +00004934 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
a.rottmann9bc8b932004-02-29 15:18:31 +00004935
4936 # Check to see that the pipe works correctly.
4937 pipe_works=no
4938
4939 rm -f conftest*
4940 cat > conftest.$ac_ext <<EOF
4941#ifdef __cplusplus
4942extern "C" {
4943#endif
4944char nm_test_var;
4945void nm_test_func(){}
4946#ifdef __cplusplus
4947}
4948#endif
4949int main(){nm_test_var='a';nm_test_func();return(0);}
4950EOF
4951
4952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4953 (eval $ac_compile) 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; then
4957 # Now try to grab the symbols.
4958 nlist=conftest.nm
4959 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4960 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4961 ac_status=$?
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); } && test -s "$nlist"; then
4964 # Try sorting and uniquifying the output.
4965 if sort "$nlist" | uniq > "$nlist"T; then
4966 mv -f "$nlist"T "$nlist"
4967 else
4968 rm -f "$nlist"T
4969 fi
4970
4971 # Make sure that we snagged all the symbols we need.
4972 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4973 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4974 cat <<EOF > conftest.$ac_ext
4975#ifdef __cplusplus
4976extern "C" {
4977#endif
4978
4979EOF
4980 # Now generate the symbol file.
4981 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4982
4983 cat <<EOF >> conftest.$ac_ext
4984#if defined (__STDC__) && __STDC__
4985# define lt_ptr_t void *
4986#else
4987# define lt_ptr_t char *
4988# define const
4989#endif
4990
4991/* The mapping between symbol names and symbols. */
4992const struct {
4993 const char *name;
4994 lt_ptr_t address;
4995}
4996lt_preloaded_symbols[] =
4997{
4998EOF
4999 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5000 cat <<\EOF >> conftest.$ac_ext
5001 {0, (lt_ptr_t) 0}
5002};
5003
5004#ifdef __cplusplus
5005}
5006#endif
5007EOF
5008 # Now try linking the two files.
5009 mv conftest.$ac_objext conftstm.$ac_objext
5010 lt_save_LIBS="$LIBS"
5011 lt_save_CFLAGS="$CFLAGS"
5012 LIBS="conftstm.$ac_objext"
5013 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5015 (eval $ac_link) 2>&5
5016 ac_status=$?
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5019 pipe_works=yes
5020 fi
5021 LIBS="$lt_save_LIBS"
5022 CFLAGS="$lt_save_CFLAGS"
5023 else
5024 echo "cannot find nm_test_func in $nlist" >&5
5025 fi
5026 else
5027 echo "cannot find nm_test_var in $nlist" >&5
5028 fi
5029 else
5030 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5031 fi
5032 else
5033 echo "$progname: failed program was:" >&5
5034 cat conftest.$ac_ext >&5
5035 fi
5036 rm -f conftest* conftst*
5037
5038 # Do not use the global_symbol_pipe unless it works.
5039 if test "$pipe_works" = yes; then
5040 break
5041 else
5042 lt_cv_sys_global_symbol_pipe=
5043 fi
5044done
5045
5046fi
5047
5048if test -z "$lt_cv_sys_global_symbol_pipe"; then
5049 lt_cv_sys_global_symbol_to_cdecl=
5050fi
5051if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drh613a0fe2007-11-23 17:31:17 +00005052 echo "$as_me:$LINENO: result: failed" >&5
5053echo "${ECHO_T}failed" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005054else
drh613a0fe2007-11-23 17:31:17 +00005055 echo "$as_me:$LINENO: result: ok" >&5
5056echo "${ECHO_T}ok" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005057fi
5058
drh613a0fe2007-11-23 17:31:17 +00005059echo "$as_me:$LINENO: checking for objdir" >&5
5060echo $ECHO_N "checking for objdir... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005061if test "${lt_cv_objdir+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5063else
5064 rm -f .libs 2>/dev/null
5065mkdir .libs 2>/dev/null
5066if test -d .libs; then
5067 lt_cv_objdir=.libs
5068else
5069 # MS-DOS does not allow filenames that begin with a dot.
5070 lt_cv_objdir=_libs
5071fi
5072rmdir .libs 2>/dev/null
5073fi
drh613a0fe2007-11-23 17:31:17 +00005074echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5075echo "${ECHO_T}$lt_cv_objdir" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005076objdir=$lt_cv_objdir
5077
5078
5079
5080
5081
5082case $host_os in
5083aix3*)
5084 # AIX sometimes has problems with the GCC collect2 program. For some
5085 # reason, if we set the COLLECT_NAMES environment variable, the problems
5086 # vanish in a puff of smoke.
5087 if test "X${COLLECT_NAMES+set}" != Xset; then
5088 COLLECT_NAMES=
5089 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00005090 fi
5091 ;;
5092esac
5093
a.rottmann9bc8b932004-02-29 15:18:31 +00005094# Sed substitution that helps us do robust quoting. It backslashifies
5095# metacharacters that are still active within double-quoted strings.
vapier7f19c022007-02-17 14:46:31 +00005096Xsed='sed -e 1s/^X//'
a.rottmann9bc8b932004-02-29 15:18:31 +00005097sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5098
5099# Same as above, but do not quote variable references.
5100double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5101
5102# Sed substitution to delay expansion of an escaped shell variable in a
5103# double_quote_subst'ed string.
5104delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5105
5106# Sed substitution to avoid accidental globbing in evaled expressions
5107no_glob_subst='s/\*/\\\*/g'
5108
5109# Constants:
5110rm="rm -f"
5111
5112# Global variables:
5113default_ofile=libtool
5114can_build_shared=yes
5115
vapier7f19c022007-02-17 14:46:31 +00005116# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00005117# which needs '.lib').
5118libext=a
5119ltmain="$ac_aux_dir/ltmain.sh"
5120ofile="$default_ofile"
5121with_gnu_ld="$lt_cv_prog_gnu_ld"
5122
5123if test -n "$ac_tool_prefix"; then
5124 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5125set dummy ${ac_tool_prefix}ar; ac_word=$2
drh613a0fe2007-11-23 17:31:17 +00005126echo "$as_me:$LINENO: checking for $ac_word" >&5
5127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005128if test "${ac_cv_prog_AR+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130else
5131 if test -n "$AR"; then
5132 ac_cv_prog_AR="$AR" # Let the user override the test.
5133else
5134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135for as_dir in $PATH
5136do
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
drh613a0fe2007-11-23 17:31:17 +00005140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005141 ac_cv_prog_AR="${ac_tool_prefix}ar"
5142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5144 fi
5145done
5146done
5147
5148fi
5149fi
5150AR=$ac_cv_prog_AR
5151if test -n "$AR"; then
drh613a0fe2007-11-23 17:31:17 +00005152 echo "$as_me:$LINENO: result: $AR" >&5
5153echo "${ECHO_T}$AR" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005154else
drh613a0fe2007-11-23 17:31:17 +00005155 echo "$as_me:$LINENO: result: no" >&5
5156echo "${ECHO_T}no" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005157fi
5158
5159fi
5160if test -z "$ac_cv_prog_AR"; then
5161 ac_ct_AR=$AR
5162 # Extract the first word of "ar", so it can be a program name with args.
5163set dummy ar; ac_word=$2
drh613a0fe2007-11-23 17:31:17 +00005164echo "$as_me:$LINENO: checking for $ac_word" >&5
5165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005166if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5168else
5169 if test -n "$ac_ct_AR"; then
5170 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5171else
5172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173for as_dir in $PATH
5174do
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
drh613a0fe2007-11-23 17:31:17 +00005178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005179 ac_cv_prog_ac_ct_AR="ar"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5182 fi
5183done
5184done
5185
drh613a0fe2007-11-23 17:31:17 +00005186 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
a.rottmann9bc8b932004-02-29 15:18:31 +00005187fi
5188fi
5189ac_ct_AR=$ac_cv_prog_ac_ct_AR
5190if test -n "$ac_ct_AR"; then
drh613a0fe2007-11-23 17:31:17 +00005191 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5192echo "${ECHO_T}$ac_ct_AR" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005193else
drh613a0fe2007-11-23 17:31:17 +00005194 echo "$as_me:$LINENO: result: no" >&5
5195echo "${ECHO_T}no" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005196fi
5197
drh613a0fe2007-11-23 17:31:17 +00005198 AR=$ac_ct_AR
a.rottmann9bc8b932004-02-29 15:18:31 +00005199else
5200 AR="$ac_cv_prog_AR"
5201fi
5202
a.rottmann84e63352003-03-24 09:42:16 +00005203if test -n "$ac_tool_prefix"; then
5204 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5205set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drh613a0fe2007-11-23 17:31:17 +00005206echo "$as_me:$LINENO: checking for $ac_word" >&5
5207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005208if test "${ac_cv_prog_RANLIB+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210else
5211 if test -n "$RANLIB"; then
5212 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5213else
5214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215for as_dir in $PATH
5216do
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
drh613a0fe2007-11-23 17:31:17 +00005220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00005221 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5224 fi
5225done
5226done
5227
5228fi
5229fi
5230RANLIB=$ac_cv_prog_RANLIB
5231if test -n "$RANLIB"; then
drh613a0fe2007-11-23 17:31:17 +00005232 echo "$as_me:$LINENO: result: $RANLIB" >&5
5233echo "${ECHO_T}$RANLIB" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005234else
drh613a0fe2007-11-23 17:31:17 +00005235 echo "$as_me:$LINENO: result: no" >&5
5236echo "${ECHO_T}no" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005237fi
5238
5239fi
5240if test -z "$ac_cv_prog_RANLIB"; then
5241 ac_ct_RANLIB=$RANLIB
5242 # Extract the first word of "ranlib", so it can be a program name with args.
5243set dummy ranlib; ac_word=$2
drh613a0fe2007-11-23 17:31:17 +00005244echo "$as_me:$LINENO: checking for $ac_word" >&5
5245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005246if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248else
5249 if test -n "$ac_ct_RANLIB"; then
5250 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5251else
5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH
5254do
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
drh613a0fe2007-11-23 17:31:17 +00005258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00005259 ac_cv_prog_ac_ct_RANLIB="ranlib"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5262 fi
5263done
5264done
5265
drh613a0fe2007-11-23 17:31:17 +00005266 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
a.rottmann84e63352003-03-24 09:42:16 +00005267fi
5268fi
5269ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5270if test -n "$ac_ct_RANLIB"; then
drh613a0fe2007-11-23 17:31:17 +00005271 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5272echo "${ECHO_T}$ac_ct_RANLIB" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005273else
drh613a0fe2007-11-23 17:31:17 +00005274 echo "$as_me:$LINENO: result: no" >&5
5275echo "${ECHO_T}no" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005276fi
5277
drh613a0fe2007-11-23 17:31:17 +00005278 RANLIB=$ac_ct_RANLIB
a.rottmann84e63352003-03-24 09:42:16 +00005279else
5280 RANLIB="$ac_cv_prog_RANLIB"
5281fi
5282
5283if test -n "$ac_tool_prefix"; then
5284 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5285set dummy ${ac_tool_prefix}strip; ac_word=$2
drh613a0fe2007-11-23 17:31:17 +00005286echo "$as_me:$LINENO: checking for $ac_word" >&5
5287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005288if test "${ac_cv_prog_STRIP+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5290else
5291 if test -n "$STRIP"; then
5292 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5293else
5294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295for as_dir in $PATH
5296do
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
drh613a0fe2007-11-23 17:31:17 +00005300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00005301 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5304 fi
5305done
5306done
5307
5308fi
5309fi
5310STRIP=$ac_cv_prog_STRIP
5311if test -n "$STRIP"; then
drh613a0fe2007-11-23 17:31:17 +00005312 echo "$as_me:$LINENO: result: $STRIP" >&5
5313echo "${ECHO_T}$STRIP" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005314else
drh613a0fe2007-11-23 17:31:17 +00005315 echo "$as_me:$LINENO: result: no" >&5
5316echo "${ECHO_T}no" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005317fi
5318
5319fi
5320if test -z "$ac_cv_prog_STRIP"; then
5321 ac_ct_STRIP=$STRIP
5322 # Extract the first word of "strip", so it can be a program name with args.
5323set dummy strip; ac_word=$2
drh613a0fe2007-11-23 17:31:17 +00005324echo "$as_me:$LINENO: checking for $ac_word" >&5
5325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005326if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5328else
5329 if test -n "$ac_ct_STRIP"; then
5330 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5331else
5332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333for as_dir in $PATH
5334do
5335 IFS=$as_save_IFS
5336 test -z "$as_dir" && as_dir=.
5337 for ac_exec_ext in '' $ac_executable_extensions; do
drh613a0fe2007-11-23 17:31:17 +00005338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00005339 ac_cv_prog_ac_ct_STRIP="strip"
5340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5341 break 2
5342 fi
5343done
5344done
5345
drh613a0fe2007-11-23 17:31:17 +00005346 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
a.rottmann84e63352003-03-24 09:42:16 +00005347fi
5348fi
5349ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5350if test -n "$ac_ct_STRIP"; then
drh613a0fe2007-11-23 17:31:17 +00005351 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5352echo "${ECHO_T}$ac_ct_STRIP" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005353else
drh613a0fe2007-11-23 17:31:17 +00005354 echo "$as_me:$LINENO: result: no" >&5
5355echo "${ECHO_T}no" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005356fi
5357
drh613a0fe2007-11-23 17:31:17 +00005358 STRIP=$ac_ct_STRIP
a.rottmann84e63352003-03-24 09:42:16 +00005359else
5360 STRIP="$ac_cv_prog_STRIP"
5361fi
5362
5363
a.rottmann84e63352003-03-24 09:42:16 +00005364old_CC="$CC"
5365old_CFLAGS="$CFLAGS"
5366
5367# Set sane defaults for various variables
5368test -z "$AR" && AR=ar
5369test -z "$AR_FLAGS" && AR_FLAGS=cru
5370test -z "$AS" && AS=as
5371test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00005372test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00005373test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00005374test -z "$DLLTOOL" && DLLTOOL=dlltool
5375test -z "$LD" && LD=ld
5376test -z "$LN_S" && LN_S="ln -s"
5377test -z "$MAGIC_CMD" && MAGIC_CMD=file
5378test -z "$NM" && NM=nm
a.rottmann9bc8b932004-02-29 15:18:31 +00005379test -z "$SED" && SED=sed
a.rottmann84e63352003-03-24 09:42:16 +00005380test -z "$OBJDUMP" && OBJDUMP=objdump
5381test -z "$RANLIB" && RANLIB=:
5382test -z "$STRIP" && STRIP=:
5383test -z "$ac_objext" && ac_objext=o
5384
a.rottmann84e63352003-03-24 09:42:16 +00005385# Determine commands to create old-style static archives.
5386old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5387old_postinstall_cmds='chmod 644 $oldlib'
5388old_postuninstall_cmds=
5389
5390if test -n "$RANLIB"; then
5391 case $host_os in
5392 openbsd*)
vapier7f19c022007-02-17 14:46:31 +00005393 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
a.rottmann84e63352003-03-24 09:42:16 +00005394 ;;
5395 *)
vapier7f19c022007-02-17 14:46:31 +00005396 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
a.rottmann84e63352003-03-24 09:42:16 +00005397 ;;
5398 esac
5399 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5400fi
5401
vapier7f19c022007-02-17 14:46:31 +00005402for cc_temp in $compiler""; do
5403 case $cc_temp in
5404 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5405 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5406 \-*) ;;
5407 *) break;;
5408 esac
5409done
5410cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5411
5412
a.rottmann9bc8b932004-02-29 15:18:31 +00005413# Only perform the check for file, if the check method requires it
5414case $deplibs_check_method in
5415file_magic*)
5416 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drh613a0fe2007-11-23 17:31:17 +00005417 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5418echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005419if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005421else
a.rottmann9bc8b932004-02-29 15:18:31 +00005422 case $MAGIC_CMD in
5423[\\/*] | ?:[\\/]*)
5424 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5425 ;;
5426*)
5427 lt_save_MAGIC_CMD="$MAGIC_CMD"
5428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5429 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5430 for ac_dir in $ac_dummy; do
5431 IFS="$lt_save_ifs"
5432 test -z "$ac_dir" && ac_dir=.
5433 if test -f $ac_dir/${ac_tool_prefix}file; then
5434 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5435 if test -n "$file_magic_test_file"; then
5436 case $deplibs_check_method in
5437 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00005438 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00005439 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5440 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5441 $EGREP "$file_magic_regex" > /dev/null; then
5442 :
5443 else
5444 cat <<EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00005445
a.rottmann9bc8b932004-02-29 15:18:31 +00005446*** Warning: the command libtool uses to detect shared libraries,
5447*** $file_magic_cmd, produces output that libtool cannot recognize.
5448*** The result is that libtool may fail to recognize shared libraries
5449*** as such. This will affect the creation of libtool libraries that
5450*** depend on shared libraries, but programs linked with such libtool
5451*** libraries will work regardless of this problem. Nevertheless, you
5452*** may want to report the problem to your system manager and/or to
5453*** bug-libtool@gnu.org
5454
5455EOF
5456 fi ;;
5457 esac
5458 fi
5459 break
5460 fi
5461 done
5462 IFS="$lt_save_ifs"
5463 MAGIC_CMD="$lt_save_MAGIC_CMD"
5464 ;;
5465esac
5466fi
5467
5468MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5469if test -n "$MAGIC_CMD"; then
drh613a0fe2007-11-23 17:31:17 +00005470 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5471echo "${ECHO_T}$MAGIC_CMD" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005472else
drh613a0fe2007-11-23 17:31:17 +00005473 echo "$as_me:$LINENO: result: no" >&5
5474echo "${ECHO_T}no" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005475fi
5476
5477if test -z "$lt_cv_path_MAGIC_CMD"; then
5478 if test -n "$ac_tool_prefix"; then
drh613a0fe2007-11-23 17:31:17 +00005479 echo "$as_me:$LINENO: checking for file" >&5
5480echo $ECHO_N "checking for file... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005481if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483else
5484 case $MAGIC_CMD in
5485[\\/*] | ?:[\\/]*)
5486 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5487 ;;
5488*)
5489 lt_save_MAGIC_CMD="$MAGIC_CMD"
5490 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5491 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5492 for ac_dir in $ac_dummy; do
5493 IFS="$lt_save_ifs"
5494 test -z "$ac_dir" && ac_dir=.
5495 if test -f $ac_dir/file; then
5496 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5497 if test -n "$file_magic_test_file"; then
5498 case $deplibs_check_method in
5499 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00005500 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00005501 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5502 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5503 $EGREP "$file_magic_regex" > /dev/null; then
5504 :
5505 else
5506 cat <<EOF 1>&2
5507
5508*** Warning: the command libtool uses to detect shared libraries,
5509*** $file_magic_cmd, produces output that libtool cannot recognize.
5510*** The result is that libtool may fail to recognize shared libraries
5511*** as such. This will affect the creation of libtool libraries that
5512*** depend on shared libraries, but programs linked with such libtool
5513*** libraries will work regardless of this problem. Nevertheless, you
5514*** may want to report the problem to your system manager and/or to
5515*** bug-libtool@gnu.org
5516
5517EOF
5518 fi ;;
5519 esac
5520 fi
5521 break
5522 fi
5523 done
5524 IFS="$lt_save_ifs"
5525 MAGIC_CMD="$lt_save_MAGIC_CMD"
5526 ;;
5527esac
5528fi
5529
5530MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5531if test -n "$MAGIC_CMD"; then
drh613a0fe2007-11-23 17:31:17 +00005532 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5533echo "${ECHO_T}$MAGIC_CMD" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005534else
drh613a0fe2007-11-23 17:31:17 +00005535 echo "$as_me:$LINENO: result: no" >&5
5536echo "${ECHO_T}no" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005537fi
5538
5539 else
5540 MAGIC_CMD=:
5541 fi
5542fi
5543
5544 fi
5545 ;;
5546esac
5547
5548enable_dlopen=no
5549enable_win32_dll=no
5550
drh613a0fe2007-11-23 17:31:17 +00005551# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00005552if test "${enable_libtool_lock+set}" = set; then
drh613a0fe2007-11-23 17:31:17 +00005553 enableval="$enable_libtool_lock"
a.rottmann9bc8b932004-02-29 15:18:31 +00005554
drh613a0fe2007-11-23 17:31:17 +00005555fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00005556test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
a.rottmann84e63352003-03-24 09:42:16 +00005557
5558
drh613a0fe2007-11-23 17:31:17 +00005559# Check whether --with-pic or --without-pic was given.
drh71eb93e2001-09-28 01:34:43 +00005560if test "${with_pic+set}" = set; then
drh613a0fe2007-11-23 17:31:17 +00005561 withval="$with_pic"
5562 pic_mode="$withval"
drh71eb93e2001-09-28 01:34:43 +00005563else
5564 pic_mode=default
drh613a0fe2007-11-23 17:31:17 +00005565fi;
drh71eb93e2001-09-28 01:34:43 +00005566test -z "$pic_mode" && pic_mode=default
5567
vapier7f19c022007-02-17 14:46:31 +00005568# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
5569#
5570# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
5571# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
5572# calls AC_LIBTOOL_CONFIG and creates libtool.
5573#
drh613a0fe2007-11-23 17:31:17 +00005574echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
5575echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6
vapier7f19c022007-02-17 14:46:31 +00005576if test "x$ltmain" = "x" ; then
drh613a0fe2007-11-23 17:31:17 +00005577 echo "$as_me:$LINENO: result: no" >&5
5578echo "${ECHO_T}no" >&6
vapier7f19c022007-02-17 14:46:31 +00005579 { { echo "$as_me:$LINENO: error:
5580
5581*** [Gentoo] sanity check failed! ***
5582*** \$ltmain is not defined, please check the patch for consistency! ***
5583" >&5
5584echo "$as_me: error:
5585
5586*** [Gentoo] sanity check failed! ***
5587*** \$ltmain is not defined, please check the patch for consistency! ***
5588" >&2;}
5589 { (exit 1); exit 1; }; }
5590fi
5591gentoo_lt_version="1.5.22"
5592gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
5593if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
drh613a0fe2007-11-23 17:31:17 +00005594 echo "$as_me:$LINENO: result: no" >&5
5595echo "${ECHO_T}no" >&6
vapier7f19c022007-02-17 14:46:31 +00005596 { { echo "$as_me:$LINENO: error:
5597
5598*** [Gentoo] sanity check failed! ***
5599*** libtool.m4 and ltmain.sh have a version mismatch! ***
5600*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
5601
5602Please run:
5603
5604 libtoolize --copy --force
5605
5606if appropriate, please contact the maintainer of this
5607package (or your distribution) for help.
5608" >&5
5609echo "$as_me: error:
5610
5611*** [Gentoo] sanity check failed! ***
5612*** libtool.m4 and ltmain.sh have a version mismatch! ***
5613*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
5614
5615Please run:
5616
5617 libtoolize --copy --force
5618
5619if appropriate, please contact the maintainer of this
5620package (or your distribution) for help.
5621" >&2;}
5622 { (exit 1); exit 1; }; }
5623else
drh613a0fe2007-11-23 17:31:17 +00005624 echo "$as_me:$LINENO: result: yes" >&5
5625echo "${ECHO_T}yes" >&6
vapier7f19c022007-02-17 14:46:31 +00005626fi
5627
5628
a.rottmann9bc8b932004-02-29 15:18:31 +00005629# Use C for the default configuration in the libtool script
5630tagname=
5631lt_save_CC="$CC"
5632ac_ext=c
5633ac_cpp='$CPP $CPPFLAGS'
5634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5636ac_compiler_gnu=$ac_cv_c_compiler_gnu
5637
5638
5639# Source file extension for C test sources.
5640ac_ext=c
5641
5642# Object file extension for compiled C test sources.
5643objext=o
5644objext=$objext
5645
5646# Code to be used in simple compile tests
5647lt_simple_compile_test_code="int some_variable = 0;\n"
5648
5649# Code to be used in simple link tests
5650lt_simple_link_test_code='int main(){return(0);}\n'
5651
5652
5653# If no C compiler was specified, use CC.
5654LTCC=${LTCC-"$CC"}
5655
vapier7f19c022007-02-17 14:46:31 +00005656# If no C compiler flags were specified, use CFLAGS.
5657LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5658
a.rottmann9bc8b932004-02-29 15:18:31 +00005659# Allow CC to be a program name with arguments.
5660compiler=$CC
5661
5662
vapier7f19c022007-02-17 14:46:31 +00005663# save warnings/boilerplate of simple test code
5664ac_outfile=conftest.$ac_objext
5665printf "$lt_simple_compile_test_code" >conftest.$ac_ext
5666eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5667_lt_compiler_boilerplate=`cat conftest.err`
5668$rm conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00005669
vapier7f19c022007-02-17 14:46:31 +00005670ac_outfile=conftest.$ac_objext
5671printf "$lt_simple_link_test_code" >conftest.$ac_ext
5672eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5673_lt_linker_boilerplate=`cat conftest.err`
5674$rm conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00005675
5676
5677
5678lt_prog_compiler_no_builtin_flag=
5679
5680if test "$GCC" = yes; then
5681 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5682
5683
drh613a0fe2007-11-23 17:31:17 +00005684echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5685echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005686if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5688else
5689 lt_cv_prog_compiler_rtti_exceptions=no
5690 ac_outfile=conftest.$ac_objext
5691 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5692 lt_compiler_flag="-fno-rtti -fno-exceptions"
5693 # Insert the option either (1) after the last *FLAGS variable, or
5694 # (2) before a word containing "conftest.", or (3) at the end.
5695 # Note that $ac_compile itself does not contain backslashes and begins
5696 # with a dollar sign (not a hyphen), so the echo should work correctly.
5697 # The option is referenced via a variable to avoid confusing sed.
5698 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00005699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00005700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5701 -e 's:$: $lt_compiler_flag:'`
drh613a0fe2007-11-23 17:31:17 +00005702 (eval echo "\"\$as_me:5702: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00005703 (eval "$lt_compile" 2>conftest.err)
5704 ac_status=$?
5705 cat conftest.err >&5
drh613a0fe2007-11-23 17:31:17 +00005706 echo "$as_me:5706: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005707 if (exit $ac_status) && test -s "$ac_outfile"; then
5708 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00005709 # So say no if there are warnings other than the usual output.
5710 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005713 lt_cv_prog_compiler_rtti_exceptions=yes
5714 fi
5715 fi
5716 $rm conftest*
5717
5718fi
drh613a0fe2007-11-23 17:31:17 +00005719echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5720echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005721
5722if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5723 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5724else
5725 :
5726fi
5727
5728fi
5729
5730lt_prog_compiler_wl=
5731lt_prog_compiler_pic=
5732lt_prog_compiler_static=
5733
drh613a0fe2007-11-23 17:31:17 +00005734echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5735echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005736
drh71eb93e2001-09-28 01:34:43 +00005737 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005738 lt_prog_compiler_wl='-Wl,'
5739 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00005740
5741 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00005742 aix*)
5743 # All AIX code is PIC.
5744 if test "$host_cpu" = ia64; then
5745 # AIX 5 now supports IA64 processor
5746 lt_prog_compiler_static='-Bstatic'
5747 fi
drh71eb93e2001-09-28 01:34:43 +00005748 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005749
drh71eb93e2001-09-28 01:34:43 +00005750 amigaos*)
5751 # FIXME: we need at least 68020 code to build shared libraries, but
5752 # adding the `-m68020' flag to GCC prevents building anything better,
5753 # like `-m68040'.
a.rottmann9bc8b932004-02-29 15:18:31 +00005754 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
drh71eb93e2001-09-28 01:34:43 +00005755 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005756
5757 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00005758 # PIC is the default for these OSes.
5759 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005760
5761 mingw* | pw32* | os2*)
5762 # This hack is so that the source file can tell whether it is being
5763 # built for inclusion in a dll (and should export symbols for example).
5764 lt_prog_compiler_pic='-DDLL_EXPORT'
5765 ;;
5766
drh71eb93e2001-09-28 01:34:43 +00005767 darwin* | rhapsody*)
5768 # PIC is the default on this platform
5769 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00005770 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00005771 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005772
vapier7f19c022007-02-17 14:46:31 +00005773 interix3*)
5774 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5775 # Instead, we relocate shared libraries at runtime.
5776 ;;
5777
a.rottmann9bc8b932004-02-29 15:18:31 +00005778 msdosdjgpp*)
5779 # Just because we use GCC doesn't mean we suddenly get shared libraries
5780 # on systems that don't support them.
5781 lt_prog_compiler_can_build_shared=no
5782 enable_shared=no
drh71eb93e2001-09-28 01:34:43 +00005783 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005784
drh71eb93e2001-09-28 01:34:43 +00005785 sysv4*MP*)
5786 if test -d /usr/nec; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005787 lt_prog_compiler_pic=-Kconform_pic
drh71eb93e2001-09-28 01:34:43 +00005788 fi
5789 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005790
5791 hpux*)
5792 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5793 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00005794 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00005795 hppa*64*|ia64*)
5796 # +Z the default
5797 ;;
5798 *)
5799 lt_prog_compiler_pic='-fPIC'
5800 ;;
5801 esac
5802 ;;
5803
drh71eb93e2001-09-28 01:34:43 +00005804 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00005805 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00005806 ;;
5807 esac
5808 else
a.rottmann9bc8b932004-02-29 15:18:31 +00005809 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00005810 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00005811 aix*)
5812 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00005813 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00005814 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00005815 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005816 else
a.rottmann9bc8b932004-02-29 15:18:31 +00005817 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00005818 fi
5819 ;;
vapier7f19c022007-02-17 14:46:31 +00005820 darwin*)
5821 # PIC is the default on this platform
5822 # Common symbols not allowed in MH_DYLIB files
5823 case $cc_basename in
5824 xlc*)
5825 lt_prog_compiler_pic='-qnocommon'
5826 lt_prog_compiler_wl='-Wl,'
5827 ;;
5828 esac
5829 ;;
drh71eb93e2001-09-28 01:34:43 +00005830
a.rottmann9bc8b932004-02-29 15:18:31 +00005831 mingw* | pw32* | os2*)
5832 # This hack is so that the source file can tell whether it is being
5833 # built for inclusion in a dll (and should export symbols for example).
5834 lt_prog_compiler_pic='-DDLL_EXPORT'
5835 ;;
5836
a.rottmann84e63352003-03-24 09:42:16 +00005837 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005838 lt_prog_compiler_wl='-Wl,'
5839 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5840 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00005841 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00005842 hppa*64*|ia64*)
5843 # +Z the default
5844 ;;
5845 *)
5846 lt_prog_compiler_pic='+Z'
5847 ;;
5848 esac
5849 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5850 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00005851 ;;
5852
5853 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005854 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00005855 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00005856 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00005857 ;;
5858
5859 newsos6)
a.rottmann9bc8b932004-02-29 15:18:31 +00005860 lt_prog_compiler_pic='-KPIC'
5861 lt_prog_compiler_static='-Bstatic'
5862 ;;
5863
5864 linux*)
vapier7f19c022007-02-17 14:46:31 +00005865 case $cc_basename in
a.rottmann9bc8b932004-02-29 15:18:31 +00005866 icc* | ecc*)
5867 lt_prog_compiler_wl='-Wl,'
5868 lt_prog_compiler_pic='-KPIC'
5869 lt_prog_compiler_static='-static'
5870 ;;
vapier7f19c022007-02-17 14:46:31 +00005871 pgcc* | pgf77* | pgf90* | pgf95*)
5872 # Portland Group compilers (*not* the Pentium gcc compiler,
5873 # which looks to be a dead project)
5874 lt_prog_compiler_wl='-Wl,'
5875 lt_prog_compiler_pic='-fpic'
5876 lt_prog_compiler_static='-Bstatic'
5877 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005878 ccc*)
5879 lt_prog_compiler_wl='-Wl,'
5880 # All Alpha code is PIC.
5881 lt_prog_compiler_static='-non_shared'
5882 ;;
5883 esac
drh71eb93e2001-09-28 01:34:43 +00005884 ;;
5885
5886 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005887 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00005888 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00005889 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00005890 ;;
5891
drh71eb93e2001-09-28 01:34:43 +00005892 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005893 lt_prog_compiler_pic='-KPIC'
5894 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00005895 case $cc_basename in
5896 f77* | f90* | f95*)
5897 lt_prog_compiler_wl='-Qoption ld ';;
5898 *)
5899 lt_prog_compiler_wl='-Wl,';;
5900 esac
drh71eb93e2001-09-28 01:34:43 +00005901 ;;
5902
5903 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005904 lt_prog_compiler_wl='-Qoption ld '
5905 lt_prog_compiler_pic='-PIC'
5906 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005907 ;;
5908
vapier7f19c022007-02-17 14:46:31 +00005909 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005910 lt_prog_compiler_wl='-Wl,'
5911 lt_prog_compiler_pic='-KPIC'
5912 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005913 ;;
5914
5915 sysv4*MP*)
5916 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00005917 lt_prog_compiler_pic='-Kconform_pic'
5918 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005919 fi
5920 ;;
5921
vapier7f19c022007-02-17 14:46:31 +00005922 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5923 lt_prog_compiler_wl='-Wl,'
5924 lt_prog_compiler_pic='-KPIC'
5925 lt_prog_compiler_static='-Bstatic'
5926 ;;
5927
5928 unicos*)
5929 lt_prog_compiler_wl='-Wl,'
5930 lt_prog_compiler_can_build_shared=no
5931 ;;
5932
a.rottmann9bc8b932004-02-29 15:18:31 +00005933 uts4*)
5934 lt_prog_compiler_pic='-pic'
5935 lt_prog_compiler_static='-Bstatic'
5936 ;;
5937
drh71eb93e2001-09-28 01:34:43 +00005938 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00005939 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00005940 ;;
5941 esac
5942 fi
5943
drh613a0fe2007-11-23 17:31:17 +00005944echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5945echo "${ECHO_T}$lt_prog_compiler_pic" >&6
drh71eb93e2001-09-28 01:34:43 +00005946
a.rottmann9bc8b932004-02-29 15:18:31 +00005947#
5948# Check to make sure the PIC flag actually works.
5949#
5950if test -n "$lt_prog_compiler_pic"; then
a.rottmann84e63352003-03-24 09:42:16 +00005951
drh613a0fe2007-11-23 17:31:17 +00005952echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5953echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005954if test "${lt_prog_compiler_pic_works+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00005955 echo $ECHO_N "(cached) $ECHO_C" >&6
5956else
a.rottmann9bc8b932004-02-29 15:18:31 +00005957 lt_prog_compiler_pic_works=no
5958 ac_outfile=conftest.$ac_objext
5959 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5960 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5961 # Insert the option either (1) after the last *FLAGS variable, or
5962 # (2) before a word containing "conftest.", or (3) at the end.
5963 # Note that $ac_compile itself does not contain backslashes and begins
5964 # with a dollar sign (not a hyphen), so the echo should work correctly.
5965 # The option is referenced via a variable to avoid confusing sed.
5966 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00005967 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00005968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5969 -e 's:$: $lt_compiler_flag:'`
drh613a0fe2007-11-23 17:31:17 +00005970 (eval echo "\"\$as_me:5970: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00005971 (eval "$lt_compile" 2>conftest.err)
5972 ac_status=$?
5973 cat conftest.err >&5
drh613a0fe2007-11-23 17:31:17 +00005974 echo "$as_me:5974: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005975 if (exit $ac_status) && test -s "$ac_outfile"; then
5976 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00005977 # So say no if there are warnings other than the usual output.
5978 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5979 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5980 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005981 lt_prog_compiler_pic_works=yes
5982 fi
5983 fi
5984 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00005985
a.rottmann9bc8b932004-02-29 15:18:31 +00005986fi
drh613a0fe2007-11-23 17:31:17 +00005987echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5988echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
drh71eb93e2001-09-28 01:34:43 +00005989
a.rottmann9bc8b932004-02-29 15:18:31 +00005990if test x"$lt_prog_compiler_pic_works" = xyes; then
5991 case $lt_prog_compiler_pic in
5992 "" | " "*) ;;
5993 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5994 esac
drh71eb93e2001-09-28 01:34:43 +00005995else
a.rottmann9bc8b932004-02-29 15:18:31 +00005996 lt_prog_compiler_pic=
5997 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00005998fi
5999
a.rottmann84e63352003-03-24 09:42:16 +00006000fi
vapier7f19c022007-02-17 14:46:31 +00006001case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006002 # For platforms which do not support PIC, -DPIC is meaningless:
6003 *djgpp*)
6004 lt_prog_compiler_pic=
6005 ;;
6006 *)
6007 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6008 ;;
6009esac
a.rottmann84e63352003-03-24 09:42:16 +00006010
vapier7f19c022007-02-17 14:46:31 +00006011#
6012# Check to make sure the static flag actually works.
6013#
6014wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drh613a0fe2007-11-23 17:31:17 +00006015echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6016echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
vapier7f19c022007-02-17 14:46:31 +00006017if test "${lt_prog_compiler_static_works+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6019else
6020 lt_prog_compiler_static_works=no
6021 save_LDFLAGS="$LDFLAGS"
6022 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6023 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6024 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6025 # The linker can only warn and ignore the option if not recognized
6026 # So say no if there are warnings
6027 if test -s conftest.err; then
6028 # Append any errors to the config.log.
6029 cat conftest.err 1>&5
6030 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6032 if diff conftest.exp conftest.er2 >/dev/null; then
6033 lt_prog_compiler_static_works=yes
6034 fi
6035 else
6036 lt_prog_compiler_static_works=yes
6037 fi
6038 fi
6039 $rm conftest*
6040 LDFLAGS="$save_LDFLAGS"
6041
6042fi
drh613a0fe2007-11-23 17:31:17 +00006043echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6044echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
vapier7f19c022007-02-17 14:46:31 +00006045
6046if test x"$lt_prog_compiler_static_works" = xyes; then
6047 :
6048else
6049 lt_prog_compiler_static=
6050fi
6051
6052
drh613a0fe2007-11-23 17:31:17 +00006053echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6054echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006055if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00006056 echo $ECHO_N "(cached) $ECHO_C" >&6
6057else
a.rottmann9bc8b932004-02-29 15:18:31 +00006058 lt_cv_prog_compiler_c_o=no
6059 $rm -r conftest 2>/dev/null
6060 mkdir conftest
6061 cd conftest
6062 mkdir out
6063 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00006064
a.rottmann9bc8b932004-02-29 15:18:31 +00006065 lt_compiler_flag="-o out/conftest2.$ac_objext"
6066 # Insert the option either (1) after the last *FLAGS variable, or
6067 # (2) before a word containing "conftest.", or (3) at the end.
6068 # Note that $ac_compile itself does not contain backslashes and begins
6069 # with a dollar sign (not a hyphen), so the echo should work correctly.
6070 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6073 -e 's:$: $lt_compiler_flag:'`
drh613a0fe2007-11-23 17:31:17 +00006074 (eval echo "\"\$as_me:6074: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006075 (eval "$lt_compile" 2>out/conftest.err)
6076 ac_status=$?
6077 cat out/conftest.err >&5
drh613a0fe2007-11-23 17:31:17 +00006078 echo "$as_me:6078: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006079 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6080 then
6081 # The compiler can only warn and ignore the option if not recognized
6082 # So say no if there are warnings
vapier7f19c022007-02-17 14:46:31 +00006083 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6084 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6085 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006086 lt_cv_prog_compiler_c_o=yes
6087 fi
6088 fi
vapier7f19c022007-02-17 14:46:31 +00006089 chmod u+w . 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006090 $rm conftest*
6091 # SGI C++ compiler will create directory out/ii_files/ for
6092 # template instantiation
6093 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6094 $rm out/* && rmdir out
6095 cd ..
6096 rmdir conftest
6097 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00006098
6099fi
drh613a0fe2007-11-23 17:31:17 +00006100echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6101echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
drh71eb93e2001-09-28 01:34:43 +00006102
a.rottmann84e63352003-03-24 09:42:16 +00006103
drh71eb93e2001-09-28 01:34:43 +00006104hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00006105if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00006106 # do not overwrite the value of need_locks provided by the user
drh613a0fe2007-11-23 17:31:17 +00006107 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6108echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00006109 hard_links=yes
6110 $rm conftest*
6111 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6112 touch conftest.a
6113 ln conftest.a conftest.b 2>&5 || hard_links=no
6114 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drh613a0fe2007-11-23 17:31:17 +00006115 echo "$as_me:$LINENO: result: $hard_links" >&5
6116echo "${ECHO_T}$hard_links" >&6
drh71eb93e2001-09-28 01:34:43 +00006117 if test "$hard_links" = no; then
a.rottmann84e63352003-03-24 09:42:16 +00006118 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh71eb93e2001-09-28 01:34:43 +00006119echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6120 need_locks=warn
6121 fi
6122else
6123 need_locks=no
6124fi
6125
drh613a0fe2007-11-23 17:31:17 +00006126echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6127echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006128
6129 runpath_var=
6130 allow_undefined_flag=
6131 enable_shared_with_static_runtimes=no
6132 archive_cmds=
6133 archive_expsym_cmds=
6134 old_archive_From_new_cmds=
6135 old_archive_from_expsyms_cmds=
6136 export_dynamic_flag_spec=
6137 whole_archive_flag_spec=
6138 thread_safe_flag_spec=
6139 hardcode_libdir_flag_spec=
6140 hardcode_libdir_flag_spec_ld=
6141 hardcode_libdir_separator=
6142 hardcode_direct=no
6143 hardcode_minus_L=no
6144 hardcode_shlibpath_var=unsupported
6145 link_all_deplibs=unknown
6146 hardcode_automatic=no
6147 module_cmds=
6148 module_expsym_cmds=
6149 always_export_symbols=no
6150 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6151 # include_expsyms should be a list of space-separated symbols to be *always*
6152 # included in the symbol list
6153 include_expsyms=
6154 # exclude_expsyms can be an extended regexp of symbols to exclude
6155 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6156 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6157 # as well as any symbol that contains `d'.
6158 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6159 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6160 # platforms (ab)use it in PIC code, but their linkers get confused if
6161 # the symbol is explicitly referenced. Since portable code cannot
6162 # rely on this symbol name, it's probably fine to never include it in
6163 # preloaded symbol tables.
6164 extract_expsyms_cmds=
vapier7f19c022007-02-17 14:46:31 +00006165 # Just being paranoid about ensuring that cc_basename is set.
6166 for cc_temp in $compiler""; do
6167 case $cc_temp in
6168 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6169 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6170 \-*) ;;
6171 *) break;;
6172 esac
6173done
6174cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006175
6176 case $host_os in
6177 cygwin* | mingw* | pw32*)
6178 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6179 # When not using gcc, we currently assume that we are using
6180 # Microsoft Visual C++.
6181 if test "$GCC" != yes; then
6182 with_gnu_ld=no
6183 fi
6184 ;;
vapier7f19c022007-02-17 14:46:31 +00006185 interix*)
6186 # we just hope/assume this is gcc and not c89 (= MSVC++)
6187 with_gnu_ld=yes
6188 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006189 openbsd*)
6190 with_gnu_ld=no
6191 ;;
6192 esac
6193
6194 ld_shlibs=yes
6195 if test "$with_gnu_ld" = yes; then
6196 # If archive_cmds runs LD, not CC, wlarc should be empty
6197 wlarc='${wl}'
6198
vapier7f19c022007-02-17 14:46:31 +00006199 # Set some defaults for GNU ld with shared library support. These
6200 # are reset later if shared libraries are not supported. Putting them
6201 # here allows them to be overridden if necessary.
6202 runpath_var=LD_RUN_PATH
6203 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6204 export_dynamic_flag_spec='${wl}--export-dynamic'
6205 # ancient GNU ld didn't support --whole-archive et. al.
6206 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6207 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6208 else
6209 whole_archive_flag_spec=
6210 fi
6211 supports_anon_versioning=no
6212 case `$LD -v 2>/dev/null` in
6213 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6214 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6215 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6216 *\ 2.11.*) ;; # other 2.11 versions
6217 *) supports_anon_versioning=yes ;;
6218 esac
6219
a.rottmann9bc8b932004-02-29 15:18:31 +00006220 # See if GNU ld supports shared libraries.
6221 case $host_os in
6222 aix3* | aix4* | aix5*)
6223 # On AIX/PPC, the GNU linker is very broken
6224 if test "$host_cpu" != ia64; then
6225 ld_shlibs=no
6226 cat <<EOF 1>&2
6227
6228*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6229*** to be unable to reliably create shared libraries on AIX.
6230*** Therefore, libtool is disabling shared libraries support. If you
6231*** really care for shared libraries, you may want to modify your PATH
6232*** so that a non-GNU linker is found, and then restart.
6233
6234EOF
6235 fi
6236 ;;
6237
6238 amigaos*)
6239 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)'
6240 hardcode_libdir_flag_spec='-L$libdir'
6241 hardcode_minus_L=yes
6242
6243 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6244 # that the semantics of dynamic libraries on AmigaOS, at least up
6245 # to version 4, is to share data among multiple programs linked
6246 # with the same dynamic library. Since this doesn't match the
6247 # behavior of shared libraries on other platforms, we can't use
6248 # them.
6249 ld_shlibs=no
6250 ;;
6251
6252 beos*)
6253 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6254 allow_undefined_flag=unsupported
6255 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6256 # support --undefined. This deserves some investigation. FIXME
6257 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6258 else
6259 ld_shlibs=no
6260 fi
6261 ;;
6262
6263 cygwin* | mingw* | pw32*)
6264 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6265 # as there is no search path for DLLs.
6266 hardcode_libdir_flag_spec='-L$libdir'
6267 allow_undefined_flag=unsupported
6268 always_export_symbols=no
6269 enable_shared_with_static_runtimes=yes
vapier7f19c022007-02-17 14:46:31 +00006270 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +00006271
6272 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00006273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00006274 # If the export-symbols file already is a .def file (1st line
6275 # is EXPORTS), use it as is; otherwise, prepend...
6276 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6277 cp $export_symbols $output_objdir/$soname.def;
6278 else
6279 echo EXPORTS > $output_objdir/$soname.def;
6280 cat $export_symbols >> $output_objdir/$soname.def;
6281 fi~
vapier7f19c022007-02-17 14:46:31 +00006282 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00006283 else
6284 ld_shlibs=no
6285 fi
6286 ;;
6287
vapier7f19c022007-02-17 14:46:31 +00006288 interix3*)
6289 hardcode_direct=no
6290 hardcode_shlibpath_var=no
6291 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6292 export_dynamic_flag_spec='${wl}-E'
6293 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6294 # Instead, shared libraries are loaded at an image base (0x10000000 by
6295 # default) and relocated if they conflict, which is a slow very memory
6296 # consuming and fragmenting process. To avoid this, we pick a random,
6297 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6298 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6299 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6300 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6301 ;;
6302
6303 linux*)
6304 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6305 tmp_addflag=
6306 case $cc_basename,$host_cpu in
6307 pgcc*) # Portland Group C compiler
6308 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6309 tmp_addflag=' $pic_flag'
6310 ;;
6311 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6312 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6313 tmp_addflag=' $pic_flag -Mnomain' ;;
6314 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6315 tmp_addflag=' -i_dynamic' ;;
6316 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6317 tmp_addflag=' -i_dynamic -nofor_main' ;;
6318 ifc* | ifort*) # Intel Fortran compiler
6319 tmp_addflag=' -nofor_main' ;;
6320 esac
6321 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6322
6323 if test $supports_anon_versioning = yes; then
6324 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6325 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6326 $echo "local: *; };" >> $output_objdir/$libname.ver~
6327 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6328 fi
6329 else
6330 ld_shlibs=no
6331 fi
6332 ;;
6333
6334 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006335 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6336 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6337 wlarc=
6338 else
6339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6340 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6341 fi
6342 ;;
6343
vapier7f19c022007-02-17 14:46:31 +00006344 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006345 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6346 ld_shlibs=no
6347 cat <<EOF 1>&2
6348
6349*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6350*** create shared libraries on Solaris systems. Therefore, libtool
6351*** is disabling shared libraries support. We urge you to upgrade GNU
6352*** binutils to release 2.9.1 or newer. Another option is to modify
6353*** your PATH or compiler configuration so that the native linker is
6354*** used, and then restart.
6355
6356EOF
6357 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6359 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6360 else
6361 ld_shlibs=no
6362 fi
6363 ;;
6364
vapier7f19c022007-02-17 14:46:31 +00006365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6366 case `$LD -v 2>&1` in
6367 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6368 ld_shlibs=no
6369 cat <<_LT_EOF 1>&2
6370
6371*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6372*** reliably create shared libraries on SCO systems. Therefore, libtool
6373*** is disabling shared libraries support. We urge you to upgrade GNU
6374*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6375*** your PATH or compiler configuration so that the native linker is
6376*** used, and then restart.
6377
6378_LT_EOF
6379 ;;
6380 *)
6381 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6382 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6384 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6385 else
6386 ld_shlibs=no
6387 fi
6388 ;;
6389 esac
6390 ;;
6391
a.rottmann9bc8b932004-02-29 15:18:31 +00006392 sunos4*)
6393 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6394 wlarc=
6395 hardcode_direct=yes
6396 hardcode_shlibpath_var=no
6397 ;;
6398
a.rottmann9bc8b932004-02-29 15:18:31 +00006399 *)
6400 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6403 else
6404 ld_shlibs=no
6405 fi
6406 ;;
6407 esac
6408
vapier7f19c022007-02-17 14:46:31 +00006409 if test "$ld_shlibs" = no; then
6410 runpath_var=
6411 hardcode_libdir_flag_spec=
6412 export_dynamic_flag_spec=
6413 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00006414 fi
6415 else
6416 # PORTME fill in a description of your system's linker (not GNU ld)
6417 case $host_os in
6418 aix3*)
6419 allow_undefined_flag=unsupported
6420 always_export_symbols=yes
6421 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'
6422 # Note: this linker hardcodes the directories in LIBPATH if there
6423 # are no directories specified by -L.
6424 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00006425 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006426 # Neither direct hardcoding nor static linking is supported with a
6427 # broken collect2.
6428 hardcode_direct=unsupported
6429 fi
6430 ;;
6431
6432 aix4* | aix5*)
6433 if test "$host_cpu" = ia64; then
6434 # On IA64, the linker does run time linking by default, so we don't
6435 # have to do anything special.
6436 aix_use_runtimelinking=no
6437 exp_sym_flag='-Bexport'
6438 no_entry_flag=""
6439 else
6440 # If we're using GNU nm, then we don't want the "-C" option.
6441 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6442 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6443 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'
6444 else
6445 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'
6446 fi
6447 aix_use_runtimelinking=no
6448
6449 # Test if we are trying to use run time linking or normal
6450 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6451 # need to do runtime linking.
6452 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6453 for ld_flag in $LDFLAGS; do
6454 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6455 aix_use_runtimelinking=yes
6456 break
6457 fi
6458 done
vapier7f19c022007-02-17 14:46:31 +00006459 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006460 esac
6461
6462 exp_sym_flag='-bexport'
6463 no_entry_flag='-bnoentry'
6464 fi
6465
6466 # When large executables or shared objects are built, AIX ld can
6467 # have problems creating the table of contents. If linking a library
6468 # or program results in "error TOC overflow" add -mminimal-toc to
6469 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6470 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6471
6472 archive_cmds=''
6473 hardcode_direct=yes
6474 hardcode_libdir_separator=':'
6475 link_all_deplibs=yes
6476
6477 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00006478 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006479 # We only want to do this on AIX 4.2 and lower, the check
6480 # below for broken collect2 doesn't work under 4.3+
6481 collect2name=`${CC} -print-prog-name=collect2`
6482 if test -f "$collect2name" && \
6483 strings "$collect2name" | grep resolve_lib_name >/dev/null
6484 then
6485 # We have reworked collect2
6486 hardcode_direct=yes
6487 else
6488 # We have old collect2
6489 hardcode_direct=unsupported
6490 # It fails to find uninstalled libraries when the uninstalled
6491 # path is not listed in the libpath. Setting hardcode_minus_L
6492 # to unsupported forces relinking
6493 hardcode_minus_L=yes
6494 hardcode_libdir_flag_spec='-L$libdir'
6495 hardcode_libdir_separator=
6496 fi
vapier7f19c022007-02-17 14:46:31 +00006497 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006498 esac
6499 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00006500 if test "$aix_use_runtimelinking" = yes; then
6501 shared_flag="$shared_flag "'${wl}-G'
6502 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006503 else
6504 # not using gcc
6505 if test "$host_cpu" = ia64; then
6506 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6507 # chokes on -Wl,-G. The following line is correct:
6508 shared_flag='-G'
6509 else
vapier7f19c022007-02-17 14:46:31 +00006510 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006511 shared_flag='${wl}-G'
6512 else
6513 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00006514 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006515 fi
6516 fi
6517
6518 # It seems that -bexpall does not export symbols beginning with
6519 # underscore (_), so it is better to generate a list of symbols to export.
6520 always_export_symbols=yes
6521 if test "$aix_use_runtimelinking" = yes; then
6522 # Warning - without using the other runtime loading flags (-brtl),
6523 # -berok will link without error, but may produce a broken library.
6524 allow_undefined_flag='-berok'
6525 # Determine the default libpath from the value encoded in an empty executable.
6526 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006527/* confdefs.h. */
6528_ACEOF
6529cat confdefs.h >>conftest.$ac_ext
6530cat >>conftest.$ac_ext <<_ACEOF
6531/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006532
a.rottmann84e63352003-03-24 09:42:16 +00006533int
6534main ()
6535{
a.rottmann9bc8b932004-02-29 15:18:31 +00006536
a.rottmann84e63352003-03-24 09:42:16 +00006537 ;
6538 return 0;
6539}
6540_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006541rm -f conftest.$ac_objext conftest$ac_exeext
drh613a0fe2007-11-23 17:31:17 +00006542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6543 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006544 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006545 grep -v '^ *+' conftest.er1 >conftest.err
6546 rm -f conftest.er1
6547 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00006548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00006549 (exit $ac_status); } &&
6550 { ac_try='test -z "$ac_c_werror_flag"
6551 || test ! -s conftest.err'
6552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553 (eval $ac_try) 2>&5
6554 ac_status=$?
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; } &&
6557 { ac_try='test -s conftest$ac_exeext'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 (eval $ac_try) 2>&5
6560 ac_status=$?
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00006563
a.rottmann9bc8b932004-02-29 15:18:31 +00006564aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6565}'`
6566# Check for a 64-bit object if we didn't find anything.
6567if 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; }
6568}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00006569else
6570 echo "$as_me: failed program was:" >&5
6571sed 's/^/| /' conftest.$ac_ext >&5
6572
6573fi
drh613a0fe2007-11-23 17:31:17 +00006574rm -f conftest.err conftest.$ac_objext \
a.rottmann9bc8b932004-02-29 15:18:31 +00006575 conftest$ac_exeext conftest.$ac_ext
6576if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00006577
a.rottmann9bc8b932004-02-29 15:18:31 +00006578 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
vapier7f19c022007-02-17 14:46:31 +00006579 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
a.rottmann9bc8b932004-02-29 15:18:31 +00006580 else
6581 if test "$host_cpu" = ia64; then
6582 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6583 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00006584 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
a.rottmann9bc8b932004-02-29 15:18:31 +00006585 else
6586 # Determine the default libpath from the value encoded in an empty executable.
6587 cat >conftest.$ac_ext <<_ACEOF
6588/* confdefs.h. */
6589_ACEOF
6590cat confdefs.h >>conftest.$ac_ext
6591cat >>conftest.$ac_ext <<_ACEOF
6592/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00006593
a.rottmann9bc8b932004-02-29 15:18:31 +00006594int
6595main ()
6596{
a.rottmann84e63352003-03-24 09:42:16 +00006597
a.rottmann9bc8b932004-02-29 15:18:31 +00006598 ;
6599 return 0;
6600}
6601_ACEOF
6602rm -f conftest.$ac_objext conftest$ac_exeext
drh613a0fe2007-11-23 17:31:17 +00006603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6604 (eval $ac_link) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00006605 ac_status=$?
6606 grep -v '^ *+' conftest.er1 >conftest.err
6607 rm -f conftest.er1
6608 cat conftest.err >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00006610 (exit $ac_status); } &&
6611 { ac_try='test -z "$ac_c_werror_flag"
6612 || test ! -s conftest.err'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 (eval $ac_try) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; } &&
6618 { ac_try='test -s conftest$ac_exeext'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 (eval $ac_try) 2>&5
6621 ac_status=$?
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00006624
a.rottmann9bc8b932004-02-29 15:18:31 +00006625aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6626}'`
6627# Check for a 64-bit object if we didn't find anything.
6628if 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; }
6629}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00006630else
a.rottmann9bc8b932004-02-29 15:18:31 +00006631 echo "$as_me: failed program was:" >&5
6632sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00006633
a.rottmann9bc8b932004-02-29 15:18:31 +00006634fi
drh613a0fe2007-11-23 17:31:17 +00006635rm -f conftest.err conftest.$ac_objext \
a.rottmann9bc8b932004-02-29 15:18:31 +00006636 conftest$ac_exeext conftest.$ac_ext
6637if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00006638
a.rottmann9bc8b932004-02-29 15:18:31 +00006639 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6640 # Warning - without using the other run time loading flags,
6641 # -berok will link without error, but may produce a broken library.
6642 no_undefined_flag=' ${wl}-bernotok'
6643 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00006644 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00006645 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00006646 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00006647 # This is similar to how AIX traditionally builds its shared libraries.
6648 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
a.rottmann84e63352003-03-24 09:42:16 +00006649 fi
6650 fi
a.rottmann84e63352003-03-24 09:42:16 +00006651 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006652
6653 amigaos*)
6654 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)'
6655 hardcode_libdir_flag_spec='-L$libdir'
6656 hardcode_minus_L=yes
6657 # see comment about different semantics on the GNU ld section
6658 ld_shlibs=no
a.rottmann84e63352003-03-24 09:42:16 +00006659 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006660
vapier7f19c022007-02-17 14:46:31 +00006661 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006662 export_dynamic_flag_spec=-rdynamic
6663 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006664
a.rottmann9bc8b932004-02-29 15:18:31 +00006665 cygwin* | mingw* | pw32*)
6666 # When not using gcc, we currently assume that we are using
6667 # Microsoft Visual C++.
6668 # hardcode_libdir_flag_spec is actually meaningless, as there is
6669 # no search path for DLLs.
6670 hardcode_libdir_flag_spec=' '
6671 allow_undefined_flag=unsupported
6672 # Tell ltmain to make .lib files, not .a files.
6673 libext=lib
6674 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00006675 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00006676 # FIXME: Setting linknames here is a bad hack.
6677 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6678 # The linker will automatically build a .lib file if we build a DLL.
6679 old_archive_From_new_cmds='true'
6680 # FIXME: Should let the user specify the lib program.
6681 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6682 fix_srcfile_path='`cygpath -w "$srcfile"`'
6683 enable_shared_with_static_runtimes=yes
6684 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006685
a.rottmann9bc8b932004-02-29 15:18:31 +00006686 darwin* | rhapsody*)
vapier7f19c022007-02-17 14:46:31 +00006687 case $host_os in
6688 rhapsody* | darwin1.[012])
6689 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6690 ;;
6691 *) # Darwin 1.3 on
6692 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6693 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6694 else
6695 case ${MACOSX_DEPLOYMENT_TARGET} in
6696 10.[012])
6697 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6698 ;;
6699 10.*)
6700 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6701 ;;
6702 esac
6703 fi
6704 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006705 esac
vapier7f19c022007-02-17 14:46:31 +00006706 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006707 hardcode_direct=no
6708 hardcode_automatic=yes
6709 hardcode_shlibpath_var=unsupported
vapier7f19c022007-02-17 14:46:31 +00006710 whole_archive_flag_spec=''
a.rottmann9bc8b932004-02-29 15:18:31 +00006711 link_all_deplibs=yes
vapier7f19c022007-02-17 14:46:31 +00006712 if test "$GCC" = yes ; then
6713 output_verbose_link_cmd='echo'
6714 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6715 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6716 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6717 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}'
6718 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}'
a.rottmann84e63352003-03-24 09:42:16 +00006719 else
vapier7f19c022007-02-17 14:46:31 +00006720 case $cc_basename in
6721 xlc*)
6722 output_verbose_link_cmd='echo'
6723 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6724 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6725 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6726 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6727 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}'
6728 ;;
6729 *)
6730 ld_shlibs=no
6731 ;;
6732 esac
a.rottmann84e63352003-03-24 09:42:16 +00006733 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006734 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006735
a.rottmann9bc8b932004-02-29 15:18:31 +00006736 dgux*)
6737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6738 hardcode_libdir_flag_spec='-L$libdir'
6739 hardcode_shlibpath_var=no
6740 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006741
a.rottmann9bc8b932004-02-29 15:18:31 +00006742 freebsd1*)
6743 ld_shlibs=no
6744 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006745
a.rottmann9bc8b932004-02-29 15:18:31 +00006746 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6747 # support. Future versions do this automatically, but an explicit c++rt0.o
6748 # does not break anything, and helps significantly (at the cost of a little
6749 # extra space).
6750 freebsd2.2*)
6751 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6752 hardcode_libdir_flag_spec='-R$libdir'
6753 hardcode_direct=yes
6754 hardcode_shlibpath_var=no
6755 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006756
a.rottmann9bc8b932004-02-29 15:18:31 +00006757 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6758 freebsd2*)
6759 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6760 hardcode_direct=yes
6761 hardcode_minus_L=yes
6762 hardcode_shlibpath_var=no
6763 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006764
a.rottmann9bc8b932004-02-29 15:18:31 +00006765 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
vapier7f19c022007-02-17 14:46:31 +00006766 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006767 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6768 hardcode_libdir_flag_spec='-R$libdir'
6769 hardcode_direct=yes
6770 hardcode_shlibpath_var=no
6771 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006772
a.rottmann9bc8b932004-02-29 15:18:31 +00006773 hpux9*)
6774 if test "$GCC" = yes; then
6775 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'
6776 else
6777 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'
6778 fi
6779 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6780 hardcode_libdir_separator=:
6781 hardcode_direct=yes
6782
6783 # hardcode_minus_L: Not really in the search PATH,
6784 # but as the default location of the library.
6785 hardcode_minus_L=yes
6786 export_dynamic_flag_spec='${wl}-E'
6787 ;;
6788
vapier7f19c022007-02-17 14:46:31 +00006789 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006790 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00006791 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6792 else
6793 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6794 fi
6795 if test "$with_gnu_ld" = no; then
6796 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6797 hardcode_libdir_separator=:
6798
6799 hardcode_direct=yes
6800 export_dynamic_flag_spec='${wl}-E'
6801
6802 # hardcode_minus_L: Not really in the search PATH,
6803 # but as the default location of the library.
6804 hardcode_minus_L=yes
6805 fi
6806 ;;
6807
6808 hpux11*)
6809 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6810 case $host_cpu in
6811 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006812 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6813 ;;
vapier7f19c022007-02-17 14:46:31 +00006814 ia64*)
6815 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6816 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006817 *)
6818 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6819 ;;
6820 esac
6821 else
vapier7f19c022007-02-17 14:46:31 +00006822 case $host_cpu in
6823 hppa*64*)
6824 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6825 ;;
6826 ia64*)
6827 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00006828 ;;
6829 *)
vapier7f19c022007-02-17 14:46:31 +00006830 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00006831 ;;
6832 esac
6833 fi
6834 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00006835 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6836 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00006837
vapier7f19c022007-02-17 14:46:31 +00006838 case $host_cpu in
6839 hppa*64*|ia64*)
6840 hardcode_libdir_flag_spec_ld='+b $libdir'
6841 hardcode_direct=no
6842 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006843 ;;
6844 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006845 hardcode_direct=yes
6846 export_dynamic_flag_spec='${wl}-E'
6847
6848 # hardcode_minus_L: Not really in the search PATH,
6849 # but as the default location of the library.
6850 hardcode_minus_L=yes
6851 ;;
6852 esac
6853 fi
6854 ;;
6855
6856 irix5* | irix6* | nonstopux*)
6857 if test "$GCC" = yes; then
6858 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'
6859 else
6860 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'
6861 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6862 fi
6863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6864 hardcode_libdir_separator=:
6865 link_all_deplibs=yes
6866 ;;
6867
vapier7f19c022007-02-17 14:46:31 +00006868 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006869 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6871 else
6872 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6873 fi
6874 hardcode_libdir_flag_spec='-R$libdir'
6875 hardcode_direct=yes
6876 hardcode_shlibpath_var=no
6877 ;;
6878
6879 newsos6)
6880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6881 hardcode_direct=yes
6882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6883 hardcode_libdir_separator=:
6884 hardcode_shlibpath_var=no
6885 ;;
6886
6887 openbsd*)
6888 hardcode_direct=yes
6889 hardcode_shlibpath_var=no
6890 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00006892 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +00006893 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6894 export_dynamic_flag_spec='${wl}-E'
6895 else
6896 case $host_os in
6897 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6899 hardcode_libdir_flag_spec='-R$libdir'
6900 ;;
6901 *)
6902 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6903 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6904 ;;
6905 esac
6906 fi
6907 ;;
6908
6909 os2*)
6910 hardcode_libdir_flag_spec='-L$libdir'
6911 hardcode_minus_L=yes
6912 allow_undefined_flag=unsupported
6913 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'
6914 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6915 ;;
6916
6917 osf3*)
6918 if test "$GCC" = yes; then
6919 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6920 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'
6921 else
6922 allow_undefined_flag=' -expect_unresolved \*'
6923 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'
6924 fi
6925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6926 hardcode_libdir_separator=:
6927 ;;
6928
6929 osf4* | osf5*) # as osf3* with the addition of -msym flag
6930 if test "$GCC" = yes; then
6931 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6932 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'
6933 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6934 else
6935 allow_undefined_flag=' -expect_unresolved \*'
6936 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'
6937 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
vapier7f19c022007-02-17 14:46:31 +00006938 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
a.rottmann9bc8b932004-02-29 15:18:31 +00006939
6940 # Both c and cxx compiler support -rpath directly
6941 hardcode_libdir_flag_spec='-rpath $libdir'
6942 fi
6943 hardcode_libdir_separator=:
6944 ;;
6945
a.rottmann9bc8b932004-02-29 15:18:31 +00006946 solaris*)
6947 no_undefined_flag=' -z text'
6948 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00006949 wlarc='${wl}'
a.rottmann9bc8b932004-02-29 15:18:31 +00006950 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6951 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6952 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6953 else
vapier7f19c022007-02-17 14:46:31 +00006954 wlarc=''
a.rottmann9bc8b932004-02-29 15:18:31 +00006955 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6956 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6957 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6958 fi
6959 hardcode_libdir_flag_spec='-R$libdir'
6960 hardcode_shlibpath_var=no
6961 case $host_os in
6962 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00006963 *)
6964 # The compiler driver will combine linker options so we
6965 # cannot just pass the convience library names through
6966 # without $wl, iff we do not link with $LD.
6967 # Luckily, gcc supports the same syntax we need for Sun Studio.
6968 # Supported since Solaris 2.6 (maybe 2.5.1?)
6969 case $wlarc in
6970 '')
6971 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6972 *)
6973 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6974 esac ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006975 esac
6976 link_all_deplibs=yes
6977 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006978
a.rottmann9bc8b932004-02-29 15:18:31 +00006979 sunos4*)
6980 if test "x$host_vendor" = xsequent; then
6981 # Use $CC to link under sequent, because it throws in some extra .o
6982 # files that make .init and .fini sections work.
6983 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6984 else
6985 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6986 fi
6987 hardcode_libdir_flag_spec='-L$libdir'
6988 hardcode_direct=yes
6989 hardcode_minus_L=yes
6990 hardcode_shlibpath_var=no
6991 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006992
a.rottmann9bc8b932004-02-29 15:18:31 +00006993 sysv4)
6994 case $host_vendor in
6995 sni)
6996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6997 hardcode_direct=yes # is this really true???
6998 ;;
6999 siemens)
7000 ## LD is ld it makes a PLAMLIB
7001 ## CC just makes a GrossModule.
7002 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7003 reload_cmds='$CC -r -o $output$reload_objs'
7004 hardcode_direct=no
7005 ;;
7006 motorola)
7007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7008 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7009 ;;
7010 esac
7011 runpath_var='LD_RUN_PATH'
7012 hardcode_shlibpath_var=no
7013 ;;
7014
7015 sysv4.3*)
7016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7017 hardcode_shlibpath_var=no
7018 export_dynamic_flag_spec='-Bexport'
7019 ;;
7020
7021 sysv4*MP*)
7022 if test -d /usr/nec; then
7023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7024 hardcode_shlibpath_var=no
7025 runpath_var=LD_RUN_PATH
7026 hardcode_runpath_var=yes
7027 ld_shlibs=yes
7028 fi
7029 ;;
7030
vapier7f19c022007-02-17 14:46:31 +00007031 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7032 no_undefined_flag='${wl}-z,text'
7033 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007034 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00007035 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00007036
a.rottmann9bc8b932004-02-29 15:18:31 +00007037 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007038 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7039 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007040 else
vapier7f19c022007-02-17 14:46:31 +00007041 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7042 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007043 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007044 ;;
7045
vapier7f19c022007-02-17 14:46:31 +00007046 sysv5* | sco3.2v5* | sco5v6*)
7047 # Note: We can NOT use -z defs as we might desire, because we do not
7048 # link with -lc, and that would cause any symbols used from libc to
7049 # always be unresolved, which means just about no library would
7050 # ever link correctly. If we're not using GNU ld we use -z text
7051 # though, which does catch some bad symbols but isn't as heavy-handed
7052 # as -z defs.
7053 no_undefined_flag='${wl}-z,text'
7054 allow_undefined_flag='${wl}-z,nodefs'
7055 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007056 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00007057 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7058 hardcode_libdir_separator=':'
7059 link_all_deplibs=yes
7060 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00007061 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00007062
7063 if test "$GCC" = yes; then
7064 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7065 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7066 else
7067 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7068 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7069 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007070 ;;
7071
7072 uts4*)
7073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7074 hardcode_libdir_flag_spec='-L$libdir'
7075 hardcode_shlibpath_var=no
7076 ;;
7077
7078 *)
7079 ld_shlibs=no
7080 ;;
7081 esac
7082 fi
7083
drh613a0fe2007-11-23 17:31:17 +00007084echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7085echo "${ECHO_T}$ld_shlibs" >&6
a.rottmann84e63352003-03-24 09:42:16 +00007086test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00007087
a.rottmann9bc8b932004-02-29 15:18:31 +00007088#
7089# Do we need to explicitly link libc?
7090#
7091case "x$archive_cmds_need_lc" in
7092x|xyes)
7093 # Assume -lc should be added
7094 archive_cmds_need_lc=yes
7095
7096 if test "$enable_shared" = yes && test "$GCC" = yes; then
7097 case $archive_cmds in
7098 *'~'*)
7099 # FIXME: we may have to deal with multi-command sequences.
7100 ;;
7101 '$CC '*)
7102 # Test whether the compiler implicitly links with -lc since on some
7103 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7104 # to ld, don't add -lc before -lgcc.
drh613a0fe2007-11-23 17:31:17 +00007105 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7106echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00007107 $rm conftest*
7108 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7109
7110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7111 (eval $ac_compile) 2>&5
7112 ac_status=$?
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } 2>conftest.err; then
7115 soname=conftest
7116 lib=conftest
7117 libobjs=conftest.$ac_objext
7118 deplibs=
7119 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00007120 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00007121 compiler_flags=-v
7122 linker_flags=-v
7123 verstring=
7124 output_objdir=.
7125 libname=conftest
7126 lt_save_allow_undefined_flag=$allow_undefined_flag
7127 allow_undefined_flag=
7128 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7129 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7130 ac_status=$?
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }
7133 then
7134 archive_cmds_need_lc=no
7135 else
7136 archive_cmds_need_lc=yes
7137 fi
7138 allow_undefined_flag=$lt_save_allow_undefined_flag
7139 else
7140 cat conftest.err 1>&5
7141 fi
7142 $rm conftest*
drh613a0fe2007-11-23 17:31:17 +00007143 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7144echo "${ECHO_T}$archive_cmds_need_lc" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00007145 ;;
7146 esac
drh71eb93e2001-09-28 01:34:43 +00007147 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007148 ;;
7149esac
drh71eb93e2001-09-28 01:34:43 +00007150
drh613a0fe2007-11-23 17:31:17 +00007151echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7152echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00007153library_names_spec=
7154libname_spec='lib$name'
7155soname_spec=
vapier7f19c022007-02-17 14:46:31 +00007156shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00007157postinstall_cmds=
7158postuninstall_cmds=
7159finish_cmds=
7160finish_eval=
7161shlibpath_var=
7162shlibpath_overrides_runpath=unknown
7163version_type=none
7164dynamic_linker="$host_os ld.so"
7165sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00007166if test "$GCC" = yes; then
7167 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7168 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7169 # if the path contains ";" then we assume it to be the separator
7170 # otherwise default to the standard path separator (i.e. ":") - it is
7171 # assumed that no part of a normal pathname contains ";" but that should
7172 # okay in the real world where ";" in dirpaths is itself problematic.
7173 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7174 else
7175 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7176 fi
7177else
7178 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7179fi
7180need_lib_prefix=unknown
7181hardcode_into_libs=no
7182
7183# when you set need_version to no, make sure it does not cause -set_version
7184# flags to be left without arguments
7185need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00007186
7187case $host_os in
7188aix3*)
7189 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007190 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00007191 shlibpath_var=LIBPATH
7192
a.rottmann9bc8b932004-02-29 15:18:31 +00007193 # AIX 3 has no versioning support, so we append a major version to the name.
7194 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007195 ;;
7196
7197aix4* | aix5*)
7198 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00007199 need_lib_prefix=no
7200 need_version=no
7201 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00007202 if test "$host_cpu" = ia64; then
7203 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00007204 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007205 shlibpath_var=LD_LIBRARY_PATH
7206 else
7207 # With GCC up to 2.95.x, collect2 would create an import file
7208 # for dependence libraries. The import file would start with
7209 # the line `#! .'. This would cause the generated library to
7210 # depend on `.', always an invalid library. This was fixed in
7211 # development snapshots of GCC prior to 3.0.
7212 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00007213 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007214 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7215 echo ' yes '
7216 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7217 :
7218 else
7219 can_build_shared=no
7220 fi
7221 ;;
drh71eb93e2001-09-28 01:34:43 +00007222 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007223 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7224 # soname into executable. Probably we can add versioning support to
7225 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00007226 if test "$aix_use_runtimelinking" = yes; then
7227 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7228 # instead of lib<name>.a to let people know that these are not
7229 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00007230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007231 else
7232 # We preserve .a as extension for shared libraries through AIX4.2
7233 # and later when we are not doing run time linking.
7234 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00007235 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007236 fi
7237 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00007238 fi
7239 ;;
7240
7241amigaos*)
7242 library_names_spec='$libname.ixlibrary $libname.a'
7243 # Create ${libname}_ixlibrary.a entries in /sys/libs.
a.rottmann9bc8b932004-02-29 15:18:31 +00007244 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 +00007245 ;;
7246
7247beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007248 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007249 dynamic_linker="$host_os ld.so"
7250 shlibpath_var=LIBRARY_PATH
7251 ;;
7252
vapier7f19c022007-02-17 14:46:31 +00007253bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00007254 version_type=linux
7255 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7257 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007258 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7259 shlibpath_var=LD_LIBRARY_PATH
7260 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7261 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7262 # the default ld.so.conf also contains /usr/contrib/lib and
7263 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7264 # libtool to hard-code these into programs
7265 ;;
7266
7267cygwin* | mingw* | pw32*)
7268 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00007269 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00007270 need_version=no
7271 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007272
drh71eb93e2001-09-28 01:34:43 +00007273 case $GCC,$host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00007274 yes,cygwin* | yes,mingw* | yes,pw32*)
drh71eb93e2001-09-28 01:34:43 +00007275 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00007276 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7277 postinstall_cmds='base_file=`basename \${file}`~
7278 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00007279 dldir=$destdir/`dirname \$dlpath`~
7280 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00007281 $install_prog $dir/$dlname \$dldir/$dlname~
7282 chmod a+x \$dldir/$dlname'
a.rottmann9bc8b932004-02-29 15:18:31 +00007283 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00007284 dlpath=$dir/\$dldll~
7285 $rm \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00007286 shlibpath_overrides_runpath=yes
7287
7288 case $host_os in
7289 cygwin*)
7290 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7291 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7292 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7293 ;;
7294 mingw*)
7295 # MinGW DLLs use traditional 'lib' prefix
7296 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7297 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7298 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7299 # It is most probably a Windows format PATH printed by
7300 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7301 # path with ; separators, and with drive letters. We can handle the
7302 # drive letters (cygwin fileutils understands them), so leave them,
7303 # especially as we might pass files found there to a mingw objdump,
7304 # which wouldn't understand a cygwinified path. Ahh.
7305 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7306 else
7307 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7308 fi
7309 ;;
7310 pw32*)
7311 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00007312 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
a.rottmann9bc8b932004-02-29 15:18:31 +00007313 ;;
7314 esac
drh71eb93e2001-09-28 01:34:43 +00007315 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007316
vapier7f19c022007-02-17 14:46:31 +00007317 linux*)
7318 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7320 supports_anon_versioning=no
7321 case `$LD -v 2>/dev/null` in
7322 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7323 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7324 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7325 *\ 2.11.*) ;; # other 2.11 versions
7326 *) supports_anon_versioning=yes ;;
7327 esac
7328 if test $supports_anon_versioning = yes; then
7329 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7330cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7331$echo "local: *; };" >> $output_objdir/$libname.ver~
7332 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7333 else
7334 $archive_expsym_cmds="$archive_cmds"
7335 fi
7336 else
7337 ld_shlibs=no
7338 fi
7339 ;;
7340
drh71eb93e2001-09-28 01:34:43 +00007341 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007342 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00007343 ;;
7344 esac
7345 dynamic_linker='Win32 ld.exe'
7346 # FIXME: first we should search . and the directory the executable is in
7347 shlibpath_var=PATH
7348 ;;
7349
7350darwin* | rhapsody*)
7351 dynamic_linker="$host_os dyld"
7352 version_type=darwin
7353 need_lib_prefix=no
7354 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007355 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7356 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00007357 shlibpath_overrides_runpath=yes
7358 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00007359 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a.rottmann9bc8b932004-02-29 15:18:31 +00007360 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7361 if test "$GCC" = yes; then
7362 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"`
7363 else
7364 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7365 fi
7366 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7367 ;;
7368
7369dgux*)
7370 version_type=linux
7371 need_lib_prefix=no
7372 need_version=no
7373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7374 soname_spec='${libname}${release}${shared_ext}$major'
7375 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00007376 ;;
7377
a.rottmann84e63352003-03-24 09:42:16 +00007378freebsd1*)
7379 dynamic_linker=no
7380 ;;
7381
a.rottmann9bc8b932004-02-29 15:18:31 +00007382kfreebsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00007383 version_type=linux
7384 need_lib_prefix=no
7385 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7387 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007388 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00007389 shlibpath_overrides_runpath=no
7390 hardcode_into_libs=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007391 dynamic_linker='GNU ld.so'
drh71eb93e2001-09-28 01:34:43 +00007392 ;;
7393
vapier7f19c022007-02-17 14:46:31 +00007394freebsd* | dragonfly*)
7395 # DragonFly does not have aout. When/if they implement a new
7396 # versioning mechanism, adjust this.
7397 if test -x /usr/bin/objformat; then
7398 objformat=`/usr/bin/objformat`
7399 else
7400 case $host_os in
7401 freebsd[123]*) objformat=aout ;;
7402 *) objformat=elf ;;
7403 esac
7404 fi
7405 # Handle Gentoo/FreeBSD as it was Linux
7406 case $host_vendor in
7407 gentoo)
7408 version_type=linux ;;
7409 *)
7410 version_type=freebsd-$objformat ;;
7411 esac
7412
drh71eb93e2001-09-28 01:34:43 +00007413 case $version_type in
7414 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007416 need_version=no
7417 need_lib_prefix=no
7418 ;;
7419 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007420 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007421 need_version=yes
7422 ;;
vapier7f19c022007-02-17 14:46:31 +00007423 linux)
7424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7425 soname_spec='${libname}${release}${shared_ext}$major'
7426 need_lib_prefix=no
7427 need_version=no
7428 ;;
drh71eb93e2001-09-28 01:34:43 +00007429 esac
7430 shlibpath_var=LD_LIBRARY_PATH
7431 case $host_os in
7432 freebsd2*)
7433 shlibpath_overrides_runpath=yes
7434 ;;
vapier7f19c022007-02-17 14:46:31 +00007435 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007436 shlibpath_overrides_runpath=yes
7437 hardcode_into_libs=yes
7438 ;;
vapier7f19c022007-02-17 14:46:31 +00007439 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7440 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00007441 shlibpath_overrides_runpath=no
7442 hardcode_into_libs=yes
7443 ;;
vapier7f19c022007-02-17 14:46:31 +00007444 freebsd*) # from 4.6 on
7445 shlibpath_overrides_runpath=yes
7446 hardcode_into_libs=yes
7447 ;;
drh71eb93e2001-09-28 01:34:43 +00007448 esac
7449 ;;
7450
7451gnu*)
7452 version_type=linux
7453 need_lib_prefix=no
7454 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7456 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007457 shlibpath_var=LD_LIBRARY_PATH
7458 hardcode_into_libs=yes
7459 ;;
7460
7461hpux9* | hpux10* | hpux11*)
7462 # Give a soname corresponding to the major version so that dld.sl refuses to
7463 # link against other versions.
7464 version_type=sunos
7465 need_lib_prefix=no
7466 need_version=no
vapier7f19c022007-02-17 14:46:31 +00007467 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00007468 ia64*)
vapier7f19c022007-02-17 14:46:31 +00007469 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00007470 hardcode_into_libs=yes
7471 dynamic_linker="$host_os dld.so"
7472 shlibpath_var=LD_LIBRARY_PATH
7473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7475 soname_spec='${libname}${release}${shared_ext}$major'
7476 if test "X$HPUX_IA64_MODE" = X32; then
7477 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7478 else
7479 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7480 fi
7481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7482 ;;
7483 hppa*64*)
vapier7f19c022007-02-17 14:46:31 +00007484 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00007485 hardcode_into_libs=yes
7486 dynamic_linker="$host_os dld.sl"
7487 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7490 soname_spec='${libname}${release}${shared_ext}$major'
7491 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7493 ;;
7494 *)
vapier7f19c022007-02-17 14:46:31 +00007495 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00007496 dynamic_linker="$host_os dld.sl"
7497 shlibpath_var=SHLIB_PATH
7498 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7500 soname_spec='${libname}${release}${shared_ext}$major'
7501 ;;
7502 esac
drh71eb93e2001-09-28 01:34:43 +00007503 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7504 postinstall_cmds='chmod 555 $lib'
7505 ;;
7506
vapier7f19c022007-02-17 14:46:31 +00007507interix3*)
7508 version_type=linux
7509 need_lib_prefix=no
7510 need_version=no
7511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7512 soname_spec='${libname}${release}${shared_ext}$major'
7513 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7514 shlibpath_var=LD_LIBRARY_PATH
7515 shlibpath_overrides_runpath=no
7516 hardcode_into_libs=yes
7517 ;;
7518
a.rottmann84e63352003-03-24 09:42:16 +00007519irix5* | irix6* | nonstopux*)
7520 case $host_os in
7521 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007522 *)
7523 if test "$lt_cv_prog_gnu_ld" = yes; then
7524 version_type=linux
7525 else
7526 version_type=irix
7527 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00007528 esac
drh71eb93e2001-09-28 01:34:43 +00007529 need_lib_prefix=no
7530 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007531 soname_spec='${libname}${release}${shared_ext}$major'
7532 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 +00007533 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00007534 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00007535 libsuff= shlibsuff=
7536 ;;
7537 *)
7538 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00007539 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7540 libsuff= shlibsuff= libmagic=32-bit;;
7541 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7542 libsuff=32 shlibsuff=N32 libmagic=N32;;
7543 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7544 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00007545 *) libsuff= shlibsuff= libmagic=never-match;;
7546 esac
7547 ;;
7548 esac
7549 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7550 shlibpath_overrides_runpath=no
7551 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7552 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00007553 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00007554 ;;
7555
7556# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00007557linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00007558 dynamic_linker=no
7559 ;;
7560
7561# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00007562linux*)
drh71eb93e2001-09-28 01:34:43 +00007563 version_type=linux
7564 need_lib_prefix=no
7565 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7567 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7569 shlibpath_var=LD_LIBRARY_PATH
7570 shlibpath_overrides_runpath=no
7571 # This implies no fast_install, which is unacceptable.
7572 # Some rework will be needed to allow for fast_install
7573 # before this can be enabled.
7574 hardcode_into_libs=yes
7575
a.rottmann9bc8b932004-02-29 15:18:31 +00007576 # Append ld.so.conf contents to the search path
7577 if test -f /etc/ld.so.conf; then
vapier7f19c022007-02-17 14:46:31 +00007578 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7579 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00007580 fi
7581
drh71eb93e2001-09-28 01:34:43 +00007582 # We used to test for /lib/ld.so.1 and disable shared libraries on
7583 # powerpc, because MkLinux only supported shared libraries with the
7584 # GNU dynamic linker. Since this was broken with cross compilers,
7585 # most powerpc-linux boxes support dynamic linking these days and
7586 # people can always --disable-shared, the test was removed, and we
7587 # assume the GNU/Linux dynamic linker is in use.
7588 dynamic_linker='GNU/Linux ld.so'
7589 ;;
7590
a.rottmann9bc8b932004-02-29 15:18:31 +00007591knetbsd*-gnu)
7592 version_type=linux
7593 need_lib_prefix=no
7594 need_version=no
7595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7596 soname_spec='${libname}${release}${shared_ext}$major'
7597 shlibpath_var=LD_LIBRARY_PATH
7598 shlibpath_overrides_runpath=no
7599 hardcode_into_libs=yes
7600 dynamic_linker='GNU ld.so'
7601 ;;
7602
drh71eb93e2001-09-28 01:34:43 +00007603netbsd*)
7604 version_type=sunos
7605 need_lib_prefix=no
7606 need_version=no
7607 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7610 dynamic_linker='NetBSD (a.out) ld.so'
7611 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7613 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007614 dynamic_linker='NetBSD ld.elf_so'
7615 fi
7616 shlibpath_var=LD_LIBRARY_PATH
7617 shlibpath_overrides_runpath=yes
7618 hardcode_into_libs=yes
7619 ;;
7620
7621newsos6)
7622 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7624 shlibpath_var=LD_LIBRARY_PATH
7625 shlibpath_overrides_runpath=yes
7626 ;;
7627
7628nto-qnx*)
7629 version_type=linux
7630 need_lib_prefix=no
7631 need_version=no
7632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7633 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007634 shlibpath_var=LD_LIBRARY_PATH
7635 shlibpath_overrides_runpath=yes
7636 ;;
7637
drh71eb93e2001-09-28 01:34:43 +00007638openbsd*)
7639 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00007640 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00007641 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00007642 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
7643 case $host_os in
7644 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
7645 *) need_version=no ;;
7646 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7649 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00007650 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 +00007651 case $host_os in
7652 openbsd2.[89] | openbsd2.[89].*)
7653 shlibpath_overrides_runpath=no
7654 ;;
7655 *)
7656 shlibpath_overrides_runpath=yes
7657 ;;
7658 esac
a.rottmann84e63352003-03-24 09:42:16 +00007659 else
7660 shlibpath_overrides_runpath=yes
7661 fi
drh71eb93e2001-09-28 01:34:43 +00007662 ;;
7663
7664os2*)
7665 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00007666 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00007667 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007668 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00007669 dynamic_linker='OS/2 ld.exe'
7670 shlibpath_var=LIBPATH
7671 ;;
7672
7673osf3* | osf4* | osf5*)
7674 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00007675 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007676 need_version=no
7677 soname_spec='${libname}${release}${shared_ext}$major'
7678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007679 shlibpath_var=LD_LIBRARY_PATH
7680 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7681 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7682 ;;
7683
drh71eb93e2001-09-28 01:34:43 +00007684solaris*)
7685 version_type=linux
7686 need_lib_prefix=no
7687 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7689 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007690 shlibpath_var=LD_LIBRARY_PATH
7691 shlibpath_overrides_runpath=yes
7692 hardcode_into_libs=yes
7693 # ldd complains unless libraries are executable
7694 postinstall_cmds='chmod +x $lib'
7695 ;;
7696
7697sunos4*)
7698 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00007699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007700 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7701 shlibpath_var=LD_LIBRARY_PATH
7702 shlibpath_overrides_runpath=yes
7703 if test "$with_gnu_ld" = yes; then
7704 need_lib_prefix=no
7705 fi
7706 need_version=yes
7707 ;;
7708
vapier7f19c022007-02-17 14:46:31 +00007709sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00007710 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7712 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007713 shlibpath_var=LD_LIBRARY_PATH
7714 case $host_vendor in
7715 sni)
7716 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00007717 need_lib_prefix=no
7718 export_dynamic_flag_spec='${wl}-Blargedynsym'
7719 runpath_var=LD_RUN_PATH
7720 ;;
7721 siemens)
7722 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00007723 ;;
7724 motorola)
7725 need_lib_prefix=no
7726 need_version=no
7727 shlibpath_overrides_runpath=no
7728 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7729 ;;
7730 esac
7731 ;;
7732
7733sysv4*MP*)
7734 if test -d /usr/nec ;then
7735 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007736 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7737 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00007738 shlibpath_var=LD_LIBRARY_PATH
7739 fi
7740 ;;
7741
vapier7f19c022007-02-17 14:46:31 +00007742sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7743 version_type=freebsd-elf
7744 need_lib_prefix=no
7745 need_version=no
7746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7747 soname_spec='${libname}${release}${shared_ext}$major'
7748 shlibpath_var=LD_LIBRARY_PATH
7749 hardcode_into_libs=yes
7750 if test "$with_gnu_ld" = yes; then
7751 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
7752 shlibpath_overrides_runpath=no
7753 else
7754 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
7755 shlibpath_overrides_runpath=yes
7756 case $host_os in
7757 sco3.2v5*)
7758 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
7759 ;;
7760 esac
7761 fi
7762 sys_lib_dlsearch_path_spec='/usr/lib'
7763 ;;
7764
a.rottmann9bc8b932004-02-29 15:18:31 +00007765uts4*)
7766 version_type=linux
7767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7768 soname_spec='${libname}${release}${shared_ext}$major'
7769 shlibpath_var=LD_LIBRARY_PATH
7770 ;;
7771
drh71eb93e2001-09-28 01:34:43 +00007772*)
7773 dynamic_linker=no
7774 ;;
7775esac
drh613a0fe2007-11-23 17:31:17 +00007776echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7777echo "${ECHO_T}$dynamic_linker" >&6
drh71eb93e2001-09-28 01:34:43 +00007778test "$dynamic_linker" = no && can_build_shared=no
7779
vapier7f19c022007-02-17 14:46:31 +00007780variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7781if test "$GCC" = yes; then
7782 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7783fi
7784
drh613a0fe2007-11-23 17:31:17 +00007785echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7786echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00007787hardcode_action=
7788if test -n "$hardcode_libdir_flag_spec" || \
vapier7f19c022007-02-17 14:46:31 +00007789 test -n "$runpath_var" || \
7790 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00007791
a.rottmann9bc8b932004-02-29 15:18:31 +00007792 # We can hardcode non-existant directories.
7793 if test "$hardcode_direct" != no &&
7794 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7795 # have to relink, otherwise we might link with an installed library
7796 # when we should be linking with a yet-to-be-installed one
7797 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7798 test "$hardcode_minus_L" != no; then
7799 # Linking always hardcodes the temporary library directory.
7800 hardcode_action=relink
7801 else
7802 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7803 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00007804 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007805else
7806 # We cannot hardcode anything, or else we can only hardcode existing
7807 # directories.
7808 hardcode_action=unsupported
7809fi
drh613a0fe2007-11-23 17:31:17 +00007810echo "$as_me:$LINENO: result: $hardcode_action" >&5
7811echo "${ECHO_T}$hardcode_action" >&6
a.rottmann84e63352003-03-24 09:42:16 +00007812
7813if test "$hardcode_action" = relink; then
7814 # Fast installation is not supported
7815 enable_fast_install=no
7816elif test "$shlibpath_overrides_runpath" = yes ||
7817 test "$enable_shared" = no; then
7818 # Fast installation is not necessary
7819 enable_fast_install=needless
7820fi
7821
a.rottmann9bc8b932004-02-29 15:18:31 +00007822striplib=
7823old_striplib=
drh613a0fe2007-11-23 17:31:17 +00007824echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7825echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00007826if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7827 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7828 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drh613a0fe2007-11-23 17:31:17 +00007829 echo "$as_me:$LINENO: result: yes" >&5
7830echo "${ECHO_T}yes" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00007831else
7832# FIXME - insert some real tests, host_os isn't really good enough
7833 case $host_os in
7834 darwin*)
7835 if test -n "$STRIP" ; then
7836 striplib="$STRIP -x"
drh613a0fe2007-11-23 17:31:17 +00007837 echo "$as_me:$LINENO: result: yes" >&5
7838echo "${ECHO_T}yes" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00007839 else
drh613a0fe2007-11-23 17:31:17 +00007840 echo "$as_me:$LINENO: result: no" >&5
7841echo "${ECHO_T}no" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00007842fi
7843 ;;
7844 *)
drh613a0fe2007-11-23 17:31:17 +00007845 echo "$as_me:$LINENO: result: no" >&5
7846echo "${ECHO_T}no" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00007847 ;;
7848 esac
a.rottmann84e63352003-03-24 09:42:16 +00007849fi
7850
drh71eb93e2001-09-28 01:34:43 +00007851if test "x$enable_dlopen" != xyes; then
7852 enable_dlopen=unknown
7853 enable_dlopen_self=unknown
7854 enable_dlopen_self_static=unknown
7855else
7856 lt_cv_dlopen=no
7857 lt_cv_dlopen_libs=
7858
7859 case $host_os in
7860 beos*)
7861 lt_cv_dlopen="load_add_on"
7862 lt_cv_dlopen_libs=
7863 lt_cv_dlopen_self=yes
7864 ;;
7865
a.rottmann9bc8b932004-02-29 15:18:31 +00007866 mingw* | pw32*)
drh71eb93e2001-09-28 01:34:43 +00007867 lt_cv_dlopen="LoadLibrary"
7868 lt_cv_dlopen_libs=
7869 ;;
7870
a.rottmann9bc8b932004-02-29 15:18:31 +00007871 cygwin*)
7872 lt_cv_dlopen="dlopen"
7873 lt_cv_dlopen_libs=
7874 ;;
7875
7876 darwin*)
7877 # if libdl is installed we need to link against it
drh613a0fe2007-11-23 17:31:17 +00007878 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7879echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00007880if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7882else
7883 ac_check_lib_save_LIBS=$LIBS
7884LIBS="-ldl $LIBS"
7885cat >conftest.$ac_ext <<_ACEOF
7886/* confdefs.h. */
7887_ACEOF
7888cat confdefs.h >>conftest.$ac_ext
7889cat >>conftest.$ac_ext <<_ACEOF
7890/* end confdefs.h. */
7891
drh613a0fe2007-11-23 17:31:17 +00007892/* Override any gcc2 internal prototype to avoid an error. */
a.rottmann9bc8b932004-02-29 15:18:31 +00007893#ifdef __cplusplus
7894extern "C"
7895#endif
drh613a0fe2007-11-23 17:31:17 +00007896/* We use char because int might match the return type of a gcc2
7897 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00007898char dlopen ();
7899int
7900main ()
7901{
drh613a0fe2007-11-23 17:31:17 +00007902dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00007903 ;
7904 return 0;
7905}
7906_ACEOF
7907rm -f conftest.$ac_objext conftest$ac_exeext
drh613a0fe2007-11-23 17:31:17 +00007908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7909 (eval $ac_link) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00007910 ac_status=$?
7911 grep -v '^ *+' conftest.er1 >conftest.err
7912 rm -f conftest.er1
7913 cat conftest.err >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00007915 (exit $ac_status); } &&
7916 { ac_try='test -z "$ac_c_werror_flag"
7917 || test ! -s conftest.err'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 (eval $ac_try) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; } &&
7923 { ac_try='test -s conftest$ac_exeext'
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 (eval $ac_try) 2>&5
7926 ac_status=$?
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007929 ac_cv_lib_dl_dlopen=yes
7930else
7931 echo "$as_me: failed program was:" >&5
7932sed 's/^/| /' conftest.$ac_ext >&5
7933
drh613a0fe2007-11-23 17:31:17 +00007934ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007935fi
drh613a0fe2007-11-23 17:31:17 +00007936rm -f conftest.err conftest.$ac_objext \
a.rottmann9bc8b932004-02-29 15:18:31 +00007937 conftest$ac_exeext conftest.$ac_ext
7938LIBS=$ac_check_lib_save_LIBS
7939fi
drh613a0fe2007-11-23 17:31:17 +00007940echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7941echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00007942if test $ac_cv_lib_dl_dlopen = yes; then
7943 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7944else
7945
7946 lt_cv_dlopen="dyld"
7947 lt_cv_dlopen_libs=
7948 lt_cv_dlopen_self=yes
7949
7950fi
7951
7952 ;;
7953
drh71eb93e2001-09-28 01:34:43 +00007954 *)
drh613a0fe2007-11-23 17:31:17 +00007955 echo "$as_me:$LINENO: checking for shl_load" >&5
7956echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00007957if test "${ac_cv_func_shl_load+set}" = set; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
7959else
7960 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007961/* confdefs.h. */
7962_ACEOF
7963cat confdefs.h >>conftest.$ac_ext
7964cat >>conftest.$ac_ext <<_ACEOF
7965/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00007966/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7968#define shl_load innocuous_shl_load
7969
drh71eb93e2001-09-28 01:34:43 +00007970/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00007971 which can conflict with char shl_load (); below.
7972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7973 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00007974
a.rottmann84e63352003-03-24 09:42:16 +00007975#ifdef __STDC__
7976# include <limits.h>
7977#else
7978# include <assert.h>
7979#endif
a.rottmann964dbb12004-02-26 19:47:42 +00007980
7981#undef shl_load
7982
drh613a0fe2007-11-23 17:31:17 +00007983/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00007984#ifdef __cplusplus
7985extern "C"
drh613a0fe2007-11-23 17:31:17 +00007986{
drh71eb93e2001-09-28 01:34:43 +00007987#endif
drh613a0fe2007-11-23 17:31:17 +00007988/* We use char because int might match the return type of a gcc2
7989 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00007990char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00007991/* The GNU C library defines this for functions which it implements
7992 to always fail with ENOSYS. Some functions are actually named
7993 something starting with __ and the normal name is an alias. */
drh613a0fe2007-11-23 17:31:17 +00007994#if defined (__stub_shl_load) || defined (__stub___shl_load)
drh71eb93e2001-09-28 01:34:43 +00007995choke me
drh613a0fe2007-11-23 17:31:17 +00007996#else
7997char (*f) () = shl_load;
7998#endif
7999#ifdef __cplusplus
8000}
drh71eb93e2001-09-28 01:34:43 +00008001#endif
8002
a.rottmann84e63352003-03-24 09:42:16 +00008003int
8004main ()
8005{
drh613a0fe2007-11-23 17:31:17 +00008006return f != shl_load;
drh71eb93e2001-09-28 01:34:43 +00008007 ;
8008 return 0;
8009}
8010_ACEOF
8011rm -f conftest.$ac_objext conftest$ac_exeext
drh613a0fe2007-11-23 17:31:17 +00008012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8013 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008014 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008015 grep -v '^ *+' conftest.er1 >conftest.err
8016 rm -f conftest.er1
8017 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00008019 (exit $ac_status); } &&
8020 { ac_try='test -z "$ac_c_werror_flag"
8021 || test ! -s conftest.err'
8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 (eval $ac_try) 2>&5
8024 ac_status=$?
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; } &&
8027 { ac_try='test -s conftest$ac_exeext'
8028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029 (eval $ac_try) 2>&5
8030 ac_status=$?
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +00008033 ac_cv_func_shl_load=yes
8034else
8035 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008036sed 's/^/| /' conftest.$ac_ext >&5
8037
drh613a0fe2007-11-23 17:31:17 +00008038ac_cv_func_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00008039fi
drh613a0fe2007-11-23 17:31:17 +00008040rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008041 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008042fi
drh613a0fe2007-11-23 17:31:17 +00008043echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8044echo "${ECHO_T}$ac_cv_func_shl_load" >&6
drh71eb93e2001-09-28 01:34:43 +00008045if test $ac_cv_func_shl_load = yes; then
8046 lt_cv_dlopen="shl_load"
8047else
drh613a0fe2007-11-23 17:31:17 +00008048 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8049echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008050if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8052else
8053 ac_check_lib_save_LIBS=$LIBS
8054LIBS="-ldld $LIBS"
8055cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008056/* confdefs.h. */
8057_ACEOF
8058cat confdefs.h >>conftest.$ac_ext
8059cat >>conftest.$ac_ext <<_ACEOF
8060/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008061
drh613a0fe2007-11-23 17:31:17 +00008062/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008063#ifdef __cplusplus
8064extern "C"
8065#endif
drh613a0fe2007-11-23 17:31:17 +00008066/* We use char because int might match the return type of a gcc2
8067 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008068char shl_load ();
8069int
8070main ()
8071{
drh613a0fe2007-11-23 17:31:17 +00008072shl_load ();
drh71eb93e2001-09-28 01:34:43 +00008073 ;
8074 return 0;
8075}
8076_ACEOF
8077rm -f conftest.$ac_objext conftest$ac_exeext
drh613a0fe2007-11-23 17:31:17 +00008078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8079 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008080 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008081 grep -v '^ *+' conftest.er1 >conftest.err
8082 rm -f conftest.er1
8083 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00008085 (exit $ac_status); } &&
8086 { ac_try='test -z "$ac_c_werror_flag"
8087 || test ! -s conftest.err'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089 (eval $ac_try) 2>&5
8090 ac_status=$?
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; } &&
8093 { ac_try='test -s conftest$ac_exeext'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 (eval $ac_try) 2>&5
8096 ac_status=$?
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +00008099 ac_cv_lib_dld_shl_load=yes
8100else
8101 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008102sed 's/^/| /' conftest.$ac_ext >&5
8103
drh613a0fe2007-11-23 17:31:17 +00008104ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00008105fi
drh613a0fe2007-11-23 17:31:17 +00008106rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008107 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008108LIBS=$ac_check_lib_save_LIBS
8109fi
drh613a0fe2007-11-23 17:31:17 +00008110echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8111echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
drh71eb93e2001-09-28 01:34:43 +00008112if test $ac_cv_lib_dld_shl_load = yes; then
8113 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8114else
drh613a0fe2007-11-23 17:31:17 +00008115 echo "$as_me:$LINENO: checking for dlopen" >&5
8116echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008117if test "${ac_cv_func_dlopen+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8119else
8120 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008121/* confdefs.h. */
8122_ACEOF
8123cat confdefs.h >>conftest.$ac_ext
8124cat >>conftest.$ac_ext <<_ACEOF
8125/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00008126/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8128#define dlopen innocuous_dlopen
8129
a.rottmann84e63352003-03-24 09:42:16 +00008130/* System header to define __stub macros and hopefully few prototypes,
8131 which can conflict with char dlopen (); below.
8132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8133 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00008134
a.rottmann84e63352003-03-24 09:42:16 +00008135#ifdef __STDC__
8136# include <limits.h>
8137#else
8138# include <assert.h>
8139#endif
a.rottmann964dbb12004-02-26 19:47:42 +00008140
8141#undef dlopen
8142
drh613a0fe2007-11-23 17:31:17 +00008143/* Override any gcc2 internal prototype to avoid an error. */
a.rottmann84e63352003-03-24 09:42:16 +00008144#ifdef __cplusplus
8145extern "C"
drh613a0fe2007-11-23 17:31:17 +00008146{
a.rottmann84e63352003-03-24 09:42:16 +00008147#endif
drh613a0fe2007-11-23 17:31:17 +00008148/* We use char because int might match the return type of a gcc2
8149 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00008150char dlopen ();
8151/* The GNU C library defines this for functions which it implements
8152 to always fail with ENOSYS. Some functions are actually named
8153 something starting with __ and the normal name is an alias. */
drh613a0fe2007-11-23 17:31:17 +00008154#if defined (__stub_dlopen) || defined (__stub___dlopen)
a.rottmann84e63352003-03-24 09:42:16 +00008155choke me
drh613a0fe2007-11-23 17:31:17 +00008156#else
8157char (*f) () = dlopen;
8158#endif
8159#ifdef __cplusplus
8160}
a.rottmann84e63352003-03-24 09:42:16 +00008161#endif
8162
8163int
8164main ()
8165{
drh613a0fe2007-11-23 17:31:17 +00008166return f != dlopen;
a.rottmann84e63352003-03-24 09:42:16 +00008167 ;
8168 return 0;
8169}
8170_ACEOF
8171rm -f conftest.$ac_objext conftest$ac_exeext
drh613a0fe2007-11-23 17:31:17 +00008172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8173 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00008174 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008175 grep -v '^ *+' conftest.er1 >conftest.err
8176 rm -f conftest.er1
8177 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00008179 (exit $ac_status); } &&
8180 { ac_try='test -z "$ac_c_werror_flag"
8181 || test ! -s conftest.err'
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183 (eval $ac_try) 2>&5
8184 ac_status=$?
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; } &&
8187 { ac_try='test -s conftest$ac_exeext'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 (eval $ac_try) 2>&5
8190 ac_status=$?
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00008193 ac_cv_func_dlopen=yes
8194else
8195 echo "$as_me: failed program was:" >&5
8196sed 's/^/| /' conftest.$ac_ext >&5
8197
drh613a0fe2007-11-23 17:31:17 +00008198ac_cv_func_dlopen=no
a.rottmann84e63352003-03-24 09:42:16 +00008199fi
drh613a0fe2007-11-23 17:31:17 +00008200rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008201 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00008202fi
drh613a0fe2007-11-23 17:31:17 +00008203echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8204echo "${ECHO_T}$ac_cv_func_dlopen" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008205if test $ac_cv_func_dlopen = yes; then
8206 lt_cv_dlopen="dlopen"
8207else
drh613a0fe2007-11-23 17:31:17 +00008208 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8209echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008210if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8212else
8213 ac_check_lib_save_LIBS=$LIBS
8214LIBS="-ldl $LIBS"
8215cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008216/* confdefs.h. */
8217_ACEOF
8218cat confdefs.h >>conftest.$ac_ext
8219cat >>conftest.$ac_ext <<_ACEOF
8220/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008221
drh613a0fe2007-11-23 17:31:17 +00008222/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008223#ifdef __cplusplus
8224extern "C"
8225#endif
drh613a0fe2007-11-23 17:31:17 +00008226/* We use char because int might match the return type of a gcc2
8227 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008228char dlopen ();
8229int
8230main ()
8231{
drh613a0fe2007-11-23 17:31:17 +00008232dlopen ();
drh71eb93e2001-09-28 01:34:43 +00008233 ;
8234 return 0;
8235}
8236_ACEOF
8237rm -f conftest.$ac_objext conftest$ac_exeext
drh613a0fe2007-11-23 17:31:17 +00008238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8239 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008240 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008241 grep -v '^ *+' conftest.er1 >conftest.err
8242 rm -f conftest.er1
8243 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00008245 (exit $ac_status); } &&
8246 { ac_try='test -z "$ac_c_werror_flag"
8247 || test ! -s conftest.err'
8248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249 (eval $ac_try) 2>&5
8250 ac_status=$?
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; } &&
8253 { ac_try='test -s conftest$ac_exeext'
8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255 (eval $ac_try) 2>&5
8256 ac_status=$?
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +00008259 ac_cv_lib_dl_dlopen=yes
8260else
8261 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008262sed 's/^/| /' conftest.$ac_ext >&5
8263
drh613a0fe2007-11-23 17:31:17 +00008264ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00008265fi
drh613a0fe2007-11-23 17:31:17 +00008266rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008267 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008268LIBS=$ac_check_lib_save_LIBS
8269fi
drh613a0fe2007-11-23 17:31:17 +00008270echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8271echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
drh71eb93e2001-09-28 01:34:43 +00008272if test $ac_cv_lib_dl_dlopen = yes; then
8273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8274else
drh613a0fe2007-11-23 17:31:17 +00008275 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8276echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008277if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
8279else
8280 ac_check_lib_save_LIBS=$LIBS
8281LIBS="-lsvld $LIBS"
8282cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008283/* confdefs.h. */
8284_ACEOF
8285cat confdefs.h >>conftest.$ac_ext
8286cat >>conftest.$ac_ext <<_ACEOF
8287/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008288
drh613a0fe2007-11-23 17:31:17 +00008289/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008290#ifdef __cplusplus
8291extern "C"
8292#endif
drh613a0fe2007-11-23 17:31:17 +00008293/* We use char because int might match the return type of a gcc2
8294 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008295char dlopen ();
8296int
8297main ()
8298{
drh613a0fe2007-11-23 17:31:17 +00008299dlopen ();
drh71eb93e2001-09-28 01:34:43 +00008300 ;
8301 return 0;
8302}
8303_ACEOF
8304rm -f conftest.$ac_objext conftest$ac_exeext
drh613a0fe2007-11-23 17:31:17 +00008305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8306 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008307 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008308 grep -v '^ *+' conftest.er1 >conftest.err
8309 rm -f conftest.er1
8310 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00008312 (exit $ac_status); } &&
8313 { ac_try='test -z "$ac_c_werror_flag"
8314 || test ! -s conftest.err'
8315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316 (eval $ac_try) 2>&5
8317 ac_status=$?
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; } &&
8320 { ac_try='test -s conftest$ac_exeext'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 (eval $ac_try) 2>&5
8323 ac_status=$?
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +00008326 ac_cv_lib_svld_dlopen=yes
8327else
8328 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008329sed 's/^/| /' conftest.$ac_ext >&5
8330
drh613a0fe2007-11-23 17:31:17 +00008331ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00008332fi
drh613a0fe2007-11-23 17:31:17 +00008333rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008334 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008335LIBS=$ac_check_lib_save_LIBS
8336fi
drh613a0fe2007-11-23 17:31:17 +00008337echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8338echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
drh71eb93e2001-09-28 01:34:43 +00008339if test $ac_cv_lib_svld_dlopen = yes; then
8340 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00008341else
drh613a0fe2007-11-23 17:31:17 +00008342 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8343echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008344if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8346else
8347 ac_check_lib_save_LIBS=$LIBS
8348LIBS="-ldld $LIBS"
8349cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008350/* confdefs.h. */
8351_ACEOF
8352cat confdefs.h >>conftest.$ac_ext
8353cat >>conftest.$ac_ext <<_ACEOF
8354/* end confdefs.h. */
8355
drh613a0fe2007-11-23 17:31:17 +00008356/* Override any gcc2 internal prototype to avoid an error. */
a.rottmann84e63352003-03-24 09:42:16 +00008357#ifdef __cplusplus
8358extern "C"
8359#endif
drh613a0fe2007-11-23 17:31:17 +00008360/* We use char because int might match the return type of a gcc2
8361 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00008362char dld_link ();
8363int
8364main ()
8365{
drh613a0fe2007-11-23 17:31:17 +00008366dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00008367 ;
8368 return 0;
8369}
8370_ACEOF
8371rm -f conftest.$ac_objext conftest$ac_exeext
drh613a0fe2007-11-23 17:31:17 +00008372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8373 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00008374 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008375 grep -v '^ *+' conftest.er1 >conftest.err
8376 rm -f conftest.er1
8377 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00008379 (exit $ac_status); } &&
8380 { ac_try='test -z "$ac_c_werror_flag"
8381 || test ! -s conftest.err'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 (eval $ac_try) 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; } &&
8387 { ac_try='test -s conftest$ac_exeext'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 (eval $ac_try) 2>&5
8390 ac_status=$?
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00008393 ac_cv_lib_dld_dld_link=yes
8394else
8395 echo "$as_me: failed program was:" >&5
8396sed 's/^/| /' conftest.$ac_ext >&5
8397
drh613a0fe2007-11-23 17:31:17 +00008398ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00008399fi
drh613a0fe2007-11-23 17:31:17 +00008400rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008401 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00008402LIBS=$ac_check_lib_save_LIBS
8403fi
drh613a0fe2007-11-23 17:31:17 +00008404echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8405echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008406if test $ac_cv_lib_dld_dld_link = yes; then
8407 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8408fi
8409
drh71eb93e2001-09-28 01:34:43 +00008410
8411fi
8412
drh71eb93e2001-09-28 01:34:43 +00008413
8414fi
8415
a.rottmann84e63352003-03-24 09:42:16 +00008416
8417fi
8418
8419
8420fi
8421
8422
drh71eb93e2001-09-28 01:34:43 +00008423fi
8424
8425 ;;
8426 esac
8427
8428 if test "x$lt_cv_dlopen" != xno; then
8429 enable_dlopen=yes
8430 else
8431 enable_dlopen=no
8432 fi
8433
8434 case $lt_cv_dlopen in
8435 dlopen)
8436 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00008437 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00008438
8439 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00008440 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00008441
8442 save_LIBS="$LIBS"
8443 LIBS="$lt_cv_dlopen_libs $LIBS"
8444
drh613a0fe2007-11-23 17:31:17 +00008445 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8446echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008447if test "${lt_cv_dlopen_self+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8449else
8450 if test "$cross_compiling" = yes; then :
8451 lt_cv_dlopen_self=cross
8452else
a.rottmann9bc8b932004-02-29 15:18:31 +00008453 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00008454 lt_status=$lt_dlunknown
8455 cat > conftest.$ac_ext <<EOF
drh613a0fe2007-11-23 17:31:17 +00008456#line 8456 "configure"
drh71eb93e2001-09-28 01:34:43 +00008457#include "confdefs.h"
8458
8459#if HAVE_DLFCN_H
8460#include <dlfcn.h>
8461#endif
8462
8463#include <stdio.h>
8464
8465#ifdef RTLD_GLOBAL
8466# define LT_DLGLOBAL RTLD_GLOBAL
8467#else
8468# ifdef DL_GLOBAL
8469# define LT_DLGLOBAL DL_GLOBAL
8470# else
8471# define LT_DLGLOBAL 0
8472# endif
8473#endif
8474
8475/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8476 find out it does not work in some platform. */
8477#ifndef LT_DLLAZY_OR_NOW
8478# ifdef RTLD_LAZY
8479# define LT_DLLAZY_OR_NOW RTLD_LAZY
8480# else
8481# ifdef DL_LAZY
8482# define LT_DLLAZY_OR_NOW DL_LAZY
8483# else
8484# ifdef RTLD_NOW
8485# define LT_DLLAZY_OR_NOW RTLD_NOW
8486# else
8487# ifdef DL_NOW
8488# define LT_DLLAZY_OR_NOW DL_NOW
8489# else
8490# define LT_DLLAZY_OR_NOW 0
8491# endif
8492# endif
8493# endif
8494# endif
8495#endif
8496
8497#ifdef __cplusplus
8498extern "C" void exit (int);
8499#endif
8500
8501void fnord() { int i=42;}
8502int main ()
8503{
8504 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8505 int status = $lt_dlunknown;
8506
8507 if (self)
8508 {
8509 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8510 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8511 /* dlclose (self); */
8512 }
vapier7f19c022007-02-17 14:46:31 +00008513 else
8514 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00008515
8516 exit (status);
8517}
8518EOF
a.rottmann84e63352003-03-24 09:42:16 +00008519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008520 (eval $ac_link) 2>&5
8521 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008523 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00008524 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00008525 lt_status=$?
8526 case x$lt_status in
8527 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8528 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00008529 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00008530 esac
8531 else :
8532 # compilation failed
8533 lt_cv_dlopen_self=no
8534 fi
8535fi
8536rm -fr conftest*
8537
a.rottmann84e63352003-03-24 09:42:16 +00008538
drh71eb93e2001-09-28 01:34:43 +00008539fi
drh613a0fe2007-11-23 17:31:17 +00008540echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8541echo "${ECHO_T}$lt_cv_dlopen_self" >&6
drh71eb93e2001-09-28 01:34:43 +00008542
8543 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00008544 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drh613a0fe2007-11-23 17:31:17 +00008545 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8546echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008547if test "${lt_cv_dlopen_self_static+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8549else
8550 if test "$cross_compiling" = yes; then :
8551 lt_cv_dlopen_self_static=cross
8552else
a.rottmann9bc8b932004-02-29 15:18:31 +00008553 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00008554 lt_status=$lt_dlunknown
8555 cat > conftest.$ac_ext <<EOF
drh613a0fe2007-11-23 17:31:17 +00008556#line 8556 "configure"
drh71eb93e2001-09-28 01:34:43 +00008557#include "confdefs.h"
8558
8559#if HAVE_DLFCN_H
8560#include <dlfcn.h>
8561#endif
8562
8563#include <stdio.h>
8564
8565#ifdef RTLD_GLOBAL
8566# define LT_DLGLOBAL RTLD_GLOBAL
8567#else
8568# ifdef DL_GLOBAL
8569# define LT_DLGLOBAL DL_GLOBAL
8570# else
8571# define LT_DLGLOBAL 0
8572# endif
8573#endif
8574
8575/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8576 find out it does not work in some platform. */
8577#ifndef LT_DLLAZY_OR_NOW
8578# ifdef RTLD_LAZY
8579# define LT_DLLAZY_OR_NOW RTLD_LAZY
8580# else
8581# ifdef DL_LAZY
8582# define LT_DLLAZY_OR_NOW DL_LAZY
8583# else
8584# ifdef RTLD_NOW
8585# define LT_DLLAZY_OR_NOW RTLD_NOW
8586# else
8587# ifdef DL_NOW
8588# define LT_DLLAZY_OR_NOW DL_NOW
8589# else
8590# define LT_DLLAZY_OR_NOW 0
8591# endif
8592# endif
8593# endif
8594# endif
8595#endif
8596
8597#ifdef __cplusplus
8598extern "C" void exit (int);
8599#endif
8600
8601void fnord() { int i=42;}
8602int main ()
8603{
8604 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8605 int status = $lt_dlunknown;
8606
8607 if (self)
8608 {
8609 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8610 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8611 /* dlclose (self); */
8612 }
vapier7f19c022007-02-17 14:46:31 +00008613 else
8614 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00008615
8616 exit (status);
8617}
8618EOF
a.rottmann84e63352003-03-24 09:42:16 +00008619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008620 (eval $ac_link) 2>&5
8621 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008623 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00008624 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00008625 lt_status=$?
8626 case x$lt_status in
8627 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8628 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00008629 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00008630 esac
8631 else :
8632 # compilation failed
8633 lt_cv_dlopen_self_static=no
8634 fi
8635fi
8636rm -fr conftest*
8637
a.rottmann84e63352003-03-24 09:42:16 +00008638
drh71eb93e2001-09-28 01:34:43 +00008639fi
drh613a0fe2007-11-23 17:31:17 +00008640echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8641echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
drh71eb93e2001-09-28 01:34:43 +00008642 fi
8643
8644 CPPFLAGS="$save_CPPFLAGS"
8645 LDFLAGS="$save_LDFLAGS"
8646 LIBS="$save_LIBS"
8647 ;;
8648 esac
8649
8650 case $lt_cv_dlopen_self in
8651 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8652 *) enable_dlopen_self=unknown ;;
8653 esac
8654
8655 case $lt_cv_dlopen_self_static in
8656 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8657 *) enable_dlopen_self_static=unknown ;;
8658 esac
8659fi
8660
drh71eb93e2001-09-28 01:34:43 +00008661
vapier7f19c022007-02-17 14:46:31 +00008662# Report which library types will actually be built
drh613a0fe2007-11-23 17:31:17 +00008663echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8664echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8665echo "$as_me:$LINENO: result: $can_build_shared" >&5
8666echo "${ECHO_T}$can_build_shared" >&6
drh71eb93e2001-09-28 01:34:43 +00008667
drh613a0fe2007-11-23 17:31:17 +00008668echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8669echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00008670test "$can_build_shared" = "no" && enable_shared=no
8671
8672# On AIX, shared libraries and static libraries use the same namespace, and
8673# are all built from PIC.
vapier7f19c022007-02-17 14:46:31 +00008674case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00008675aix3*)
8676 test "$enable_shared" = yes && enable_static=no
8677 if test -n "$RANLIB"; then
8678 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8679 postinstall_cmds='$RANLIB $lib'
8680 fi
8681 ;;
8682
vapier7f19c022007-02-17 14:46:31 +00008683aix4* | aix5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008684 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8685 test "$enable_shared" = yes && enable_static=no
8686 fi
a.rottmann84e63352003-03-24 09:42:16 +00008687 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008688esac
drh613a0fe2007-11-23 17:31:17 +00008689echo "$as_me:$LINENO: result: $enable_shared" >&5
8690echo "${ECHO_T}$enable_shared" >&6
drh71eb93e2001-09-28 01:34:43 +00008691
drh613a0fe2007-11-23 17:31:17 +00008692echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8693echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00008694# Make sure either enable_shared or enable_static is yes.
8695test "$enable_shared" = yes || enable_static=yes
drh613a0fe2007-11-23 17:31:17 +00008696echo "$as_me:$LINENO: result: $enable_static" >&5
8697echo "${ECHO_T}$enable_static" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00008698
8699# The else clause should only fire when bootstrapping the
drh71eb93e2001-09-28 01:34:43 +00008700# libtool distribution, otherwise you forgot to ship ltmain.sh
8701# with your package, and you will get complaints that there are
8702# no rules to generate ltmain.sh.
8703if test -f "$ltmain"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008704 # See if we are running on zsh, and set the options which allow our commands through
8705 # without removal of \ escapes.
8706 if test -n "${ZSH_VERSION+set}" ; then
8707 setopt NO_GLOB_SUBST
8708 fi
drh71eb93e2001-09-28 01:34:43 +00008709 # Now quote all the things that may contain metacharacters while being
8710 # careful not to overquote the AC_SUBSTed values. We take copies of the
8711 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +00008712 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a.rottmann9bc8b932004-02-29 15:18:31 +00008713 SED SHELL STRIP \
8714 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8715 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8716 deplibs_check_method reload_flag reload_cmds need_locks \
8717 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8718 lt_cv_sys_global_symbol_to_c_name_address \
drh71eb93e2001-09-28 01:34:43 +00008719 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
a.rottmann9bc8b932004-02-29 15:18:31 +00008720 old_postinstall_cmds old_postuninstall_cmds \
8721 compiler \
8722 CC \
8723 LD \
8724 lt_prog_compiler_wl \
8725 lt_prog_compiler_pic \
8726 lt_prog_compiler_static \
8727 lt_prog_compiler_no_builtin_flag \
8728 export_dynamic_flag_spec \
8729 thread_safe_flag_spec \
8730 whole_archive_flag_spec \
8731 enable_shared_with_static_runtimes \
8732 old_archive_cmds \
8733 old_archive_from_new_cmds \
8734 predep_objects \
8735 postdep_objects \
8736 predeps \
8737 postdeps \
8738 compiler_lib_search_path \
8739 archive_cmds \
8740 archive_expsym_cmds \
8741 postinstall_cmds \
8742 postuninstall_cmds \
8743 old_archive_from_expsyms_cmds \
8744 allow_undefined_flag \
8745 no_undefined_flag \
8746 export_symbols_cmds \
8747 hardcode_libdir_flag_spec \
8748 hardcode_libdir_flag_spec_ld \
8749 hardcode_libdir_separator \
8750 hardcode_automatic \
8751 module_cmds \
8752 module_expsym_cmds \
8753 lt_cv_prog_compiler_c_o \
8754 exclude_expsyms \
8755 include_expsyms; do
drh71eb93e2001-09-28 01:34:43 +00008756
8757 case $var in
a.rottmann9bc8b932004-02-29 15:18:31 +00008758 old_archive_cmds | \
8759 old_archive_from_new_cmds | \
8760 archive_cmds | \
8761 archive_expsym_cmds | \
8762 module_cmds | \
8763 module_expsym_cmds | \
8764 old_archive_from_expsyms_cmds | \
8765 export_symbols_cmds | \
8766 extract_expsyms_cmds | reload_cmds | finish_cmds | \
a.rottmann84e63352003-03-24 09:42:16 +00008767 postinstall_cmds | postuninstall_cmds | \
a.rottmann9bc8b932004-02-29 15:18:31 +00008768 old_postinstall_cmds | old_postuninstall_cmds | \
8769 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
drh71eb93e2001-09-28 01:34:43 +00008770 # Double-quote double-evaled strings.
8771 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8772 ;;
8773 *)
8774 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8775 ;;
8776 esac
8777 done
8778
a.rottmann9bc8b932004-02-29 15:18:31 +00008779 case $lt_echo in
8780 *'\$0 --fallback-echo"')
8781 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8782 ;;
8783 esac
8784
8785cfgfile="${ofile}T"
8786 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8787 $rm -f "$cfgfile"
8788 { echo "$as_me:$LINENO: creating $ofile" >&5
8789echo "$as_me: creating $ofile" >&6;}
8790
8791 cat <<__EOF__ >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +00008792#! $SHELL
8793
a.rottmann9bc8b932004-02-29 15:18:31 +00008794# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
drh71eb93e2001-09-28 01:34:43 +00008795# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8796# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8797#
a.rottmann9bc8b932004-02-29 15:18:31 +00008798# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8799# Free Software Foundation, Inc.
8800#
8801# This file is part of GNU Libtool:
drh71eb93e2001-09-28 01:34:43 +00008802# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8803#
8804# This program is free software; you can redistribute it and/or modify
8805# it under the terms of the GNU General Public License as published by
8806# the Free Software Foundation; either version 2 of the License, or
8807# (at your option) any later version.
8808#
8809# This program is distributed in the hope that it will be useful, but
8810# WITHOUT ANY WARRANTY; without even the implied warranty of
8811# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8812# General Public License for more details.
8813#
8814# You should have received a copy of the GNU General Public License
8815# along with this program; if not, write to the Free Software
vapier7f19c022007-02-17 14:46:31 +00008816# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
drh71eb93e2001-09-28 01:34:43 +00008817#
8818# As a special exception to the GNU General Public License, if you
8819# distribute this file as part of a program that contains a
8820# configuration script generated by Autoconf, you may include it under
8821# the same distribution terms that you use for the rest of that program.
8822
a.rottmann9bc8b932004-02-29 15:18:31 +00008823# A sed program that does not truncate output.
a.rottmann84e63352003-03-24 09:42:16 +00008824SED=$lt_SED
8825
drh71eb93e2001-09-28 01:34:43 +00008826# Sed that helps us avoid accidentally triggering echo(1) options like -n.
vapier7f19c022007-02-17 14:46:31 +00008827Xsed="$SED -e 1s/^X//"
drh71eb93e2001-09-28 01:34:43 +00008828
8829# The HP-UX ksh and POSIX shell print the target directory to stdout
8830# if CDPATH is set.
vapier7f19c022007-02-17 14:46:31 +00008831(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
drh71eb93e2001-09-28 01:34:43 +00008832
a.rottmann9bc8b932004-02-29 15:18:31 +00008833# The names of the tagged configurations supported by this script.
8834available_tags=
8835
drh71eb93e2001-09-28 01:34:43 +00008836# ### BEGIN LIBTOOL CONFIG
8837
8838# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8839
8840# Shell to use when invoking shell scripts.
8841SHELL=$lt_SHELL
8842
8843# Whether or not to build shared libraries.
8844build_libtool_libs=$enable_shared
8845
8846# Whether or not to build static libraries.
8847build_old_libs=$enable_static
8848
8849# Whether or not to add -lc for building shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008850build_libtool_need_lc=$archive_cmds_need_lc
8851
8852# Whether or not to disallow shared libs when runtime libs are static
8853allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
drh71eb93e2001-09-28 01:34:43 +00008854
8855# Whether or not to optimize for fast installation.
8856fast_install=$enable_fast_install
8857
8858# The host system.
8859host_alias=$host_alias
8860host=$host
vapier7f19c022007-02-17 14:46:31 +00008861host_os=$host_os
8862
8863# The build system.
8864build_alias=$build_alias
8865build=$build
8866build_os=$build_os
drh71eb93e2001-09-28 01:34:43 +00008867
8868# An echo program that does not interpret backslashes.
8869echo=$lt_echo
8870
8871# The archiver.
8872AR=$lt_AR
8873AR_FLAGS=$lt_AR_FLAGS
8874
a.rottmann9bc8b932004-02-29 15:18:31 +00008875# A C compiler.
8876LTCC=$lt_LTCC
8877
vapier7f19c022007-02-17 14:46:31 +00008878# LTCC compiler flags.
8879LTCFLAGS=$lt_LTCFLAGS
8880
a.rottmann9bc8b932004-02-29 15:18:31 +00008881# A language-specific compiler.
8882CC=$lt_compiler
drh71eb93e2001-09-28 01:34:43 +00008883
8884# Is the compiler the GNU C compiler?
8885with_gcc=$GCC
8886
a.rottmann9bc8b932004-02-29 15:18:31 +00008887# An ERE matcher.
8888EGREP=$lt_EGREP
8889
drh71eb93e2001-09-28 01:34:43 +00008890# The linker used to build libraries.
8891LD=$lt_LD
8892
8893# Whether we need hard or soft links.
8894LN_S=$lt_LN_S
8895
8896# A BSD-compatible nm program.
8897NM=$lt_NM
8898
8899# A symbol stripping program
a.rottmann9bc8b932004-02-29 15:18:31 +00008900STRIP=$lt_STRIP
drh71eb93e2001-09-28 01:34:43 +00008901
8902# Used to examine libraries when file_magic_cmd begins "file"
8903MAGIC_CMD=$MAGIC_CMD
8904
8905# Used on cygwin: DLL creation program.
8906DLLTOOL="$DLLTOOL"
8907
8908# Used on cygwin: object dumper.
8909OBJDUMP="$OBJDUMP"
8910
8911# Used on cygwin: assembler.
8912AS="$AS"
8913
8914# The name of the directory that contains temporary libtool files.
8915objdir=$objdir
8916
8917# How to create reloadable object files.
8918reload_flag=$lt_reload_flag
8919reload_cmds=$lt_reload_cmds
8920
8921# How to pass a linker flag through the compiler.
a.rottmann9bc8b932004-02-29 15:18:31 +00008922wl=$lt_lt_prog_compiler_wl
drh71eb93e2001-09-28 01:34:43 +00008923
8924# Object file suffix (normally "o").
8925objext="$ac_objext"
8926
8927# Old archive suffix (normally "a").
8928libext="$libext"
8929
a.rottmann9bc8b932004-02-29 15:18:31 +00008930# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +00008931shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +00008932
drh71eb93e2001-09-28 01:34:43 +00008933# Executable file suffix (normally "").
8934exeext="$exeext"
8935
8936# Additional compiler flags for building library objects.
a.rottmann9bc8b932004-02-29 15:18:31 +00008937pic_flag=$lt_lt_prog_compiler_pic
drh71eb93e2001-09-28 01:34:43 +00008938pic_mode=$pic_mode
8939
a.rottmann9bc8b932004-02-29 15:18:31 +00008940# What is the maximum length of a command?
8941max_cmd_len=$lt_cv_sys_max_cmd_len
a.rottmann84e63352003-03-24 09:42:16 +00008942
a.rottmann9bc8b932004-02-29 15:18:31 +00008943# Does compiler simultaneously support -c and -o options?
8944compiler_c_o=$lt_lt_cv_prog_compiler_c_o
drh71eb93e2001-09-28 01:34:43 +00008945
vapier7f19c022007-02-17 14:46:31 +00008946# Must we lock files when doing compilation?
drh71eb93e2001-09-28 01:34:43 +00008947need_locks=$lt_need_locks
8948
8949# Do we need the lib prefix for modules?
8950need_lib_prefix=$need_lib_prefix
8951
8952# Do we need a version for libraries?
8953need_version=$need_version
8954
8955# Whether dlopen is supported.
8956dlopen_support=$enable_dlopen
8957
8958# Whether dlopen of programs is supported.
8959dlopen_self=$enable_dlopen_self
8960
8961# Whether dlopen of statically linked programs is supported.
8962dlopen_self_static=$enable_dlopen_self_static
8963
8964# Compiler flag to prevent dynamic linking.
a.rottmann9bc8b932004-02-29 15:18:31 +00008965link_static_flag=$lt_lt_prog_compiler_static
drh71eb93e2001-09-28 01:34:43 +00008966
8967# Compiler flag to turn off builtin functions.
a.rottmann9bc8b932004-02-29 15:18:31 +00008968no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
drh71eb93e2001-09-28 01:34:43 +00008969
8970# Compiler flag to allow reflexive dlopens.
8971export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8972
8973# Compiler flag to generate shared objects directly from archives.
8974whole_archive_flag_spec=$lt_whole_archive_flag_spec
8975
8976# Compiler flag to generate thread-safe objects.
8977thread_safe_flag_spec=$lt_thread_safe_flag_spec
8978
8979# Library versioning type.
8980version_type=$version_type
8981
8982# Format of library name prefix.
8983libname_spec=$lt_libname_spec
8984
8985# List of archive names. First name is the real one, the rest are links.
8986# The last name is the one that the linker finds with -lNAME.
8987library_names_spec=$lt_library_names_spec
8988
8989# The coded name of the library, if different from the real name.
8990soname_spec=$lt_soname_spec
8991
8992# Commands used to build and install an old-style archive.
8993RANLIB=$lt_RANLIB
8994old_archive_cmds=$lt_old_archive_cmds
8995old_postinstall_cmds=$lt_old_postinstall_cmds
8996old_postuninstall_cmds=$lt_old_postuninstall_cmds
8997
8998# Create an old-style archive from a shared archive.
8999old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9000
9001# Create a temporary old-style archive to link instead of a shared archive.
9002old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9003
9004# Commands used to build and install a shared archive.
9005archive_cmds=$lt_archive_cmds
9006archive_expsym_cmds=$lt_archive_expsym_cmds
9007postinstall_cmds=$lt_postinstall_cmds
9008postuninstall_cmds=$lt_postuninstall_cmds
9009
a.rottmann9bc8b932004-02-29 15:18:31 +00009010# Commands used to build a loadable module (assumed same as above if empty)
9011module_cmds=$lt_module_cmds
9012module_expsym_cmds=$lt_module_expsym_cmds
9013
drh71eb93e2001-09-28 01:34:43 +00009014# Commands to strip libraries.
9015old_striplib=$lt_old_striplib
9016striplib=$lt_striplib
9017
a.rottmann9bc8b932004-02-29 15:18:31 +00009018# Dependencies to place before the objects being linked to create a
9019# shared library.
9020predep_objects=$lt_predep_objects
9021
9022# Dependencies to place after the objects being linked to create a
9023# shared library.
9024postdep_objects=$lt_postdep_objects
9025
9026# Dependencies to place before the objects being linked to create a
9027# shared library.
9028predeps=$lt_predeps
9029
9030# Dependencies to place after the objects being linked to create a
9031# shared library.
9032postdeps=$lt_postdeps
9033
9034# The library search path used internally by the compiler when linking
9035# a shared library.
9036compiler_lib_search_path=$lt_compiler_lib_search_path
9037
drh71eb93e2001-09-28 01:34:43 +00009038# Method to check whether dependent libraries are shared objects.
9039deplibs_check_method=$lt_deplibs_check_method
9040
9041# Command to use when deplibs_check_method == file_magic.
9042file_magic_cmd=$lt_file_magic_cmd
9043
9044# Flag that allows shared libraries with undefined symbols to be built.
9045allow_undefined_flag=$lt_allow_undefined_flag
9046
9047# Flag that forces no undefined symbols.
9048no_undefined_flag=$lt_no_undefined_flag
9049
9050# Commands used to finish a libtool library installation in a directory.
9051finish_cmds=$lt_finish_cmds
9052
9053# Same as above, but a single script fragment to be evaled but not shown.
9054finish_eval=$lt_finish_eval
9055
9056# Take the output of nm and produce a listing of raw symbols and C names.
a.rottmann9bc8b932004-02-29 15:18:31 +00009057global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
drh71eb93e2001-09-28 01:34:43 +00009058
9059# Transform the output of nm in a proper C declaration
a.rottmann9bc8b932004-02-29 15:18:31 +00009060global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
drh71eb93e2001-09-28 01:34:43 +00009061
9062# Transform the output of nm in a C name address pair
a.rottmann9bc8b932004-02-29 15:18:31 +00009063global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
drh71eb93e2001-09-28 01:34:43 +00009064
9065# This is the shared library runtime path variable.
9066runpath_var=$runpath_var
9067
9068# This is the shared library path variable.
9069shlibpath_var=$shlibpath_var
9070
9071# Is shlibpath searched before the hard-coded library search path?
9072shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9073
9074# How to hardcode a shared library path into an executable.
9075hardcode_action=$hardcode_action
9076
9077# Whether we should hardcode library paths into libraries.
9078hardcode_into_libs=$hardcode_into_libs
9079
9080# Flag to hardcode \$libdir into a binary during linking.
9081# This must work even if \$libdir does not exist.
9082hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9083
a.rottmann9bc8b932004-02-29 15:18:31 +00009084# If ld is used when linking, flag to hardcode \$libdir into
9085# a binary during linking. This must work even if \$libdir does
9086# not exist.
9087hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9088
drh71eb93e2001-09-28 01:34:43 +00009089# Whether we need a single -rpath flag with a separated argument.
9090hardcode_libdir_separator=$lt_hardcode_libdir_separator
9091
a.rottmann9bc8b932004-02-29 15:18:31 +00009092# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
drh71eb93e2001-09-28 01:34:43 +00009093# resulting binary.
9094hardcode_direct=$hardcode_direct
9095
9096# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9097# resulting binary.
9098hardcode_minus_L=$hardcode_minus_L
9099
9100# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9101# the resulting binary.
9102hardcode_shlibpath_var=$hardcode_shlibpath_var
9103
a.rottmann9bc8b932004-02-29 15:18:31 +00009104# Set to yes if building a shared library automatically hardcodes DIR into the library
9105# and all subsequent libraries and executables linked against it.
9106hardcode_automatic=$hardcode_automatic
9107
drh71eb93e2001-09-28 01:34:43 +00009108# Variables whose values should be saved in libtool wrapper scripts and
9109# restored at relink time.
9110variables_saved_for_relink="$variables_saved_for_relink"
9111
9112# Whether libtool must link a program against all its dependency libraries.
9113link_all_deplibs=$link_all_deplibs
9114
9115# Compile-time system search path for libraries
9116sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9117
9118# Run-time system search path for libraries
9119sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9120
9121# Fix the shell variable \$srcfile for the compiler.
9122fix_srcfile_path="$fix_srcfile_path"
9123
9124# Set to yes if exported symbols are required.
9125always_export_symbols=$always_export_symbols
9126
9127# The commands to list exported symbols.
9128export_symbols_cmds=$lt_export_symbols_cmds
9129
9130# The commands to extract the exported symbol list from a shared archive.
9131extract_expsyms_cmds=$lt_extract_expsyms_cmds
9132
9133# Symbols that should not be listed in the preloaded symbols.
9134exclude_expsyms=$lt_exclude_expsyms
9135
9136# Symbols that must always be exported.
9137include_expsyms=$lt_include_expsyms
9138
9139# ### END LIBTOOL CONFIG
9140
9141__EOF__
9142
a.rottmann9bc8b932004-02-29 15:18:31 +00009143
drh71eb93e2001-09-28 01:34:43 +00009144 case $host_os in
9145 aix3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00009146 cat <<\EOF >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +00009147
9148# AIX sometimes has problems with the GCC collect2 program. For some
9149# reason, if we set the COLLECT_NAMES environment variable, the problems
9150# vanish in a puff of smoke.
9151if test "X${COLLECT_NAMES+set}" != Xset; then
9152 COLLECT_NAMES=
9153 export COLLECT_NAMES
9154fi
9155EOF
9156 ;;
a.rottmann84e63352003-03-24 09:42:16 +00009157 esac
drh71eb93e2001-09-28 01:34:43 +00009158
drh71eb93e2001-09-28 01:34:43 +00009159 # We use sed instead of cat because bash on DJGPP gets confused if
9160 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9161 # text mode, it properly converts lines to CR/LF. This bash problem
9162 # is reportedly fixed, but why not run on old versions too?
a.rottmann9bc8b932004-02-29 15:18:31 +00009163 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
drh71eb93e2001-09-28 01:34:43 +00009164
a.rottmann9bc8b932004-02-29 15:18:31 +00009165 mv -f "$cfgfile" "$ofile" || \
9166 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
drh71eb93e2001-09-28 01:34:43 +00009167 chmod +x "$ofile"
a.rottmann9bc8b932004-02-29 15:18:31 +00009168
9169else
9170 # If there is no Makefile yet, we rely on a make rule to execute
9171 # `config.status --recheck' to rerun these tests and create the
9172 # libtool script then.
9173 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9174 if test -f "$ltmain_in"; then
9175 test -f Makefile && make "$ltmain"
9176 fi
drh71eb93e2001-09-28 01:34:43 +00009177fi
9178
drh71eb93e2001-09-28 01:34:43 +00009179
a.rottmann9bc8b932004-02-29 15:18:31 +00009180ac_ext=c
9181ac_cpp='$CPP $CPPFLAGS'
9182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9184ac_compiler_gnu=$ac_cv_c_compiler_gnu
9185
9186CC="$lt_save_CC"
9187
9188
drh613a0fe2007-11-23 17:31:17 +00009189# Check whether --with-tags or --without-tags was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00009190if test "${with_tags+set}" = set; then
drh613a0fe2007-11-23 17:31:17 +00009191 withval="$with_tags"
9192 tagnames="$withval"
9193fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00009194
9195if test -f "$ltmain" && test -n "$tagnames"; then
9196 if test ! -f "${ofile}"; then
9197 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9198echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9199 fi
9200
9201 if test -z "$LTCC"; then
9202 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9203 if test -z "$LTCC"; then
9204 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9205echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9206 else
9207 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9208echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9209 fi
9210 fi
vapier7f19c022007-02-17 14:46:31 +00009211 if test -z "$LTCFLAGS"; then
9212 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9213 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009214
9215 # Extract list of available tagged configurations in $ofile.
9216 # Note that this assumes the entire list is on one line.
9217 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9218
9219 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9220 for tagname in $tagnames; do
9221 IFS="$lt_save_ifs"
9222 # Check whether tagname contains only valid characters
9223 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9224 "") ;;
9225 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9226echo "$as_me: error: invalid tag name: $tagname" >&2;}
9227 { (exit 1); exit 1; }; }
9228 ;;
9229 esac
9230
9231 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9232 then
9233 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9234echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9235 { (exit 1); exit 1; }; }
9236 fi
9237
9238 # Update the list of available tags.
9239 if test -n "$tagname"; then
9240 echo appending configuration tag \"$tagname\" to $ofile
9241
9242 case $tagname in
9243 CXX)
vapier7f19c022007-02-17 14:46:31 +00009244 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9245 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9246 (test "X$CXX" != "Xg++"))) ; then
drh613a0fe2007-11-23 17:31:17 +00009247 ac_ext=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00009248ac_cpp='$CXXCPP $CPPFLAGS'
9249ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9250ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9251ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9252
9253
9254
9255
9256archive_cmds_need_lc_CXX=no
9257allow_undefined_flag_CXX=
9258always_export_symbols_CXX=no
9259archive_expsym_cmds_CXX=
9260export_dynamic_flag_spec_CXX=
9261hardcode_direct_CXX=no
9262hardcode_libdir_flag_spec_CXX=
9263hardcode_libdir_flag_spec_ld_CXX=
9264hardcode_libdir_separator_CXX=
9265hardcode_minus_L_CXX=no
vapier7f19c022007-02-17 14:46:31 +00009266hardcode_shlibpath_var_CXX=unsupported
a.rottmann9bc8b932004-02-29 15:18:31 +00009267hardcode_automatic_CXX=no
9268module_cmds_CXX=
9269module_expsym_cmds_CXX=
9270link_all_deplibs_CXX=unknown
9271old_archive_cmds_CXX=$old_archive_cmds
9272no_undefined_flag_CXX=
9273whole_archive_flag_spec_CXX=
9274enable_shared_with_static_runtimes_CXX=no
9275
9276# Dependencies to place before and after the object being linked:
9277predep_objects_CXX=
9278postdep_objects_CXX=
9279predeps_CXX=
9280postdeps_CXX=
9281compiler_lib_search_path_CXX=
9282
9283# Source file extension for C++ test sources.
vapier7f19c022007-02-17 14:46:31 +00009284ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00009285
9286# Object file extension for compiled C++ test sources.
9287objext=o
9288objext_CXX=$objext
9289
9290# Code to be used in simple compile tests
9291lt_simple_compile_test_code="int some_variable = 0;\n"
9292
9293# Code to be used in simple link tests
vapier7f19c022007-02-17 14:46:31 +00009294lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
a.rottmann9bc8b932004-02-29 15:18:31 +00009295
9296# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9297
9298# If no C compiler was specified, use CC.
9299LTCC=${LTCC-"$CC"}
9300
vapier7f19c022007-02-17 14:46:31 +00009301# If no C compiler flags were specified, use CFLAGS.
9302LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9303
a.rottmann9bc8b932004-02-29 15:18:31 +00009304# Allow CC to be a program name with arguments.
9305compiler=$CC
9306
9307
vapier7f19c022007-02-17 14:46:31 +00009308# save warnings/boilerplate of simple test code
9309ac_outfile=conftest.$ac_objext
9310printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9311eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9312_lt_compiler_boilerplate=`cat conftest.err`
9313$rm conftest*
9314
9315ac_outfile=conftest.$ac_objext
9316printf "$lt_simple_link_test_code" >conftest.$ac_ext
9317eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9318_lt_linker_boilerplate=`cat conftest.err`
9319$rm conftest*
9320
9321
a.rottmann9bc8b932004-02-29 15:18:31 +00009322# Allow CC to be a program name with arguments.
9323lt_save_CC=$CC
9324lt_save_LD=$LD
9325lt_save_GCC=$GCC
9326GCC=$GXX
9327lt_save_with_gnu_ld=$with_gnu_ld
9328lt_save_path_LD=$lt_cv_path_LD
9329if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9330 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9331else
vapier7f19c022007-02-17 14:46:31 +00009332 $as_unset lt_cv_prog_gnu_ld
a.rottmann9bc8b932004-02-29 15:18:31 +00009333fi
9334if test -n "${lt_cv_path_LDCXX+set}"; then
9335 lt_cv_path_LD=$lt_cv_path_LDCXX
9336else
vapier7f19c022007-02-17 14:46:31 +00009337 $as_unset lt_cv_path_LD
a.rottmann9bc8b932004-02-29 15:18:31 +00009338fi
9339test -z "${LDCXX+set}" || LD=$LDCXX
9340CC=${CXX-"c++"}
9341compiler=$CC
9342compiler_CXX=$CC
vapier7f19c022007-02-17 14:46:31 +00009343for cc_temp in $compiler""; do
9344 case $cc_temp in
9345 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9346 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9347 \-*) ;;
9348 *) break;;
9349 esac
9350done
9351cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9352
a.rottmann9bc8b932004-02-29 15:18:31 +00009353
9354# We don't want -fno-exception wen compiling C++ code, so set the
9355# no_builtin_flag separately
9356if test "$GXX" = yes; then
9357 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9358else
9359 lt_prog_compiler_no_builtin_flag_CXX=
9360fi
9361
9362if test "$GXX" = yes; then
9363 # Set up default GNU C++ configuration
9364
9365
drh613a0fe2007-11-23 17:31:17 +00009366# Check whether --with-gnu-ld or --without-gnu-ld was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00009367if test "${with_gnu_ld+set}" = set; then
drh613a0fe2007-11-23 17:31:17 +00009368 withval="$with_gnu_ld"
9369 test "$withval" = no || with_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00009370else
9371 with_gnu_ld=no
drh613a0fe2007-11-23 17:31:17 +00009372fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00009373ac_prog=ld
9374if test "$GCC" = yes; then
9375 # Check if gcc -print-prog-name=ld gives a path.
drh613a0fe2007-11-23 17:31:17 +00009376 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9377echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009378 case $host in
9379 *-*-mingw*)
9380 # gcc leaves a trailing carriage return which upsets mingw
9381 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9382 *)
9383 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9384 esac
9385 case $ac_prog in
9386 # Accept absolute paths.
9387 [\\/]* | ?:[\\/]*)
9388 re_direlt='/[^/][^/]*/\.\./'
9389 # Canonicalize the pathname of ld
9390 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9391 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9392 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9393 done
9394 test -z "$LD" && LD="$ac_prog"
9395 ;;
9396 "")
9397 # If it fails, then pretend we aren't using GCC.
9398 ac_prog=ld
9399 ;;
9400 *)
9401 # If it is relative, then search for the first ld in PATH.
9402 with_gnu_ld=unknown
9403 ;;
9404 esac
9405elif test "$with_gnu_ld" = yes; then
drh613a0fe2007-11-23 17:31:17 +00009406 echo "$as_me:$LINENO: checking for GNU ld" >&5
9407echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009408else
drh613a0fe2007-11-23 17:31:17 +00009409 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9410echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009411fi
9412if test "${lt_cv_path_LD+set}" = set; then
9413 echo $ECHO_N "(cached) $ECHO_C" >&6
9414else
9415 if test -z "$LD"; then
9416 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9417 for ac_dir in $PATH; do
9418 IFS="$lt_save_ifs"
9419 test -z "$ac_dir" && ac_dir=.
9420 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9421 lt_cv_path_LD="$ac_dir/$ac_prog"
9422 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00009423 # but apparently some variants of GNU ld only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00009424 # Break only if it was the GNU/non-GNU ld that we prefer.
9425 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9426 *GNU* | *'with BFD'*)
9427 test "$with_gnu_ld" != no && break
9428 ;;
9429 *)
9430 test "$with_gnu_ld" != yes && break
9431 ;;
9432 esac
9433 fi
9434 done
9435 IFS="$lt_save_ifs"
9436else
9437 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9438fi
9439fi
9440
9441LD="$lt_cv_path_LD"
9442if test -n "$LD"; then
drh613a0fe2007-11-23 17:31:17 +00009443 echo "$as_me:$LINENO: result: $LD" >&5
9444echo "${ECHO_T}$LD" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009445else
drh613a0fe2007-11-23 17:31:17 +00009446 echo "$as_me:$LINENO: result: no" >&5
9447echo "${ECHO_T}no" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009448fi
9449test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9450echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9451 { (exit 1); exit 1; }; }
drh613a0fe2007-11-23 17:31:17 +00009452echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9453echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009454if test "${lt_cv_prog_gnu_ld+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9456else
vapier7f19c022007-02-17 14:46:31 +00009457 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00009458case `$LD -v 2>&1 </dev/null` in
9459*GNU* | *'with BFD'*)
9460 lt_cv_prog_gnu_ld=yes
9461 ;;
9462*)
9463 lt_cv_prog_gnu_ld=no
9464 ;;
9465esac
9466fi
drh613a0fe2007-11-23 17:31:17 +00009467echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9468echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009469with_gnu_ld=$lt_cv_prog_gnu_ld
9470
9471
9472
9473 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9474 # archiving commands below assume that GNU ld is being used.
9475 if test "$with_gnu_ld" = yes; then
9476 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9477 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'
9478
9479 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9480 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9481
9482 # If archive_cmds runs LD, not CC, wlarc should be empty
9483 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9484 # investigate it a little bit more. (MM)
9485 wlarc='${wl}'
9486
9487 # ancient GNU ld didn't support --whole-archive et. al.
9488 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9489 grep 'no-whole-archive' > /dev/null; then
9490 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9491 else
9492 whole_archive_flag_spec_CXX=
9493 fi
9494 else
9495 with_gnu_ld=no
9496 wlarc=
9497
9498 # A generic and very simple default shared library creation
9499 # command for GNU C++ for the case where it uses the native
9500 # linker, instead of GNU ld. If possible, this setting should
9501 # overridden to take advantage of the native linker features on
9502 # the platform it is being used on.
9503 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9504 fi
9505
9506 # Commands to make compiler produce verbose output that lists
9507 # what "hidden" libraries, object files and flags are used when
9508 # linking a shared library.
9509 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9510
9511else
9512 GXX=no
9513 with_gnu_ld=no
9514 wlarc=
9515fi
9516
9517# PORTME: fill in a description of your system's C++ link characteristics
drh613a0fe2007-11-23 17:31:17 +00009518echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9519echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009520ld_shlibs_CXX=yes
9521case $host_os in
9522 aix3*)
9523 # FIXME: insert proper C++ library support
9524 ld_shlibs_CXX=no
9525 ;;
9526 aix4* | aix5*)
9527 if test "$host_cpu" = ia64; then
9528 # On IA64, the linker does run time linking by default, so we don't
9529 # have to do anything special.
9530 aix_use_runtimelinking=no
9531 exp_sym_flag='-Bexport'
9532 no_entry_flag=""
9533 else
9534 aix_use_runtimelinking=no
9535
9536 # Test if we are trying to use run time linking or normal
9537 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9538 # need to do runtime linking.
9539 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9540 for ld_flag in $LDFLAGS; do
9541 case $ld_flag in
9542 *-brtl*)
9543 aix_use_runtimelinking=yes
9544 break
9545 ;;
9546 esac
9547 done
vapier7f19c022007-02-17 14:46:31 +00009548 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009549 esac
9550
9551 exp_sym_flag='-bexport'
9552 no_entry_flag='-bnoentry'
9553 fi
9554
9555 # When large executables or shared objects are built, AIX ld can
9556 # have problems creating the table of contents. If linking a library
9557 # or program results in "error TOC overflow" add -mminimal-toc to
9558 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9559 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9560
9561 archive_cmds_CXX=''
9562 hardcode_direct_CXX=yes
9563 hardcode_libdir_separator_CXX=':'
9564 link_all_deplibs_CXX=yes
9565
9566 if test "$GXX" = yes; then
vapier7f19c022007-02-17 14:46:31 +00009567 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00009568 # We only want to do this on AIX 4.2 and lower, the check
9569 # below for broken collect2 doesn't work under 4.3+
9570 collect2name=`${CC} -print-prog-name=collect2`
9571 if test -f "$collect2name" && \
9572 strings "$collect2name" | grep resolve_lib_name >/dev/null
9573 then
9574 # We have reworked collect2
9575 hardcode_direct_CXX=yes
9576 else
9577 # We have old collect2
9578 hardcode_direct_CXX=unsupported
9579 # It fails to find uninstalled libraries when the uninstalled
9580 # path is not listed in the libpath. Setting hardcode_minus_L
9581 # to unsupported forces relinking
9582 hardcode_minus_L_CXX=yes
9583 hardcode_libdir_flag_spec_CXX='-L$libdir'
9584 hardcode_libdir_separator_CXX=
9585 fi
vapier7f19c022007-02-17 14:46:31 +00009586 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009587 esac
9588 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00009589 if test "$aix_use_runtimelinking" = yes; then
9590 shared_flag="$shared_flag "'${wl}-G'
9591 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009592 else
9593 # not using gcc
9594 if test "$host_cpu" = ia64; then
9595 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9596 # chokes on -Wl,-G. The following line is correct:
9597 shared_flag='-G'
9598 else
9599 if test "$aix_use_runtimelinking" = yes; then
9600 shared_flag='${wl}-G'
9601 else
9602 shared_flag='${wl}-bM:SRE'
9603 fi
9604 fi
9605 fi
9606
9607 # It seems that -bexpall does not export symbols beginning with
9608 # underscore (_), so it is better to generate a list of symbols to export.
9609 always_export_symbols_CXX=yes
9610 if test "$aix_use_runtimelinking" = yes; then
9611 # Warning - without using the other runtime loading flags (-brtl),
9612 # -berok will link without error, but may produce a broken library.
9613 allow_undefined_flag_CXX='-berok'
9614 # Determine the default libpath from the value encoded in an empty executable.
9615 cat >conftest.$ac_ext <<_ACEOF
9616/* confdefs.h. */
9617_ACEOF
9618cat confdefs.h >>conftest.$ac_ext
9619cat >>conftest.$ac_ext <<_ACEOF
9620/* end confdefs.h. */
9621
9622int
9623main ()
9624{
9625
9626 ;
9627 return 0;
9628}
9629_ACEOF
9630rm -f conftest.$ac_objext conftest$ac_exeext
drh613a0fe2007-11-23 17:31:17 +00009631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9632 (eval $ac_link) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00009633 ac_status=$?
9634 grep -v '^ *+' conftest.er1 >conftest.err
9635 rm -f conftest.er1
9636 cat conftest.err >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00009638 (exit $ac_status); } &&
9639 { ac_try='test -z "$ac_cxx_werror_flag"
9640 || test ! -s conftest.err'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642 (eval $ac_try) 2>&5
9643 ac_status=$?
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; } &&
9646 { ac_try='test -s conftest$ac_exeext'
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648 (eval $ac_try) 2>&5
9649 ac_status=$?
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009652
9653aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9654}'`
9655# Check for a 64-bit object if we didn't find anything.
9656if 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; }
9657}'`; fi
9658else
9659 echo "$as_me: failed program was:" >&5
9660sed 's/^/| /' conftest.$ac_ext >&5
9661
9662fi
drh613a0fe2007-11-23 17:31:17 +00009663rm -f conftest.err conftest.$ac_objext \
a.rottmann9bc8b932004-02-29 15:18:31 +00009664 conftest$ac_exeext conftest.$ac_ext
9665if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9666
9667 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9668
vapier7f19c022007-02-17 14:46:31 +00009669 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
a.rottmann9bc8b932004-02-29 15:18:31 +00009670 else
9671 if test "$host_cpu" = ia64; then
9672 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9673 allow_undefined_flag_CXX="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00009674 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
a.rottmann9bc8b932004-02-29 15:18:31 +00009675 else
9676 # Determine the default libpath from the value encoded in an empty executable.
9677 cat >conftest.$ac_ext <<_ACEOF
9678/* confdefs.h. */
9679_ACEOF
9680cat confdefs.h >>conftest.$ac_ext
9681cat >>conftest.$ac_ext <<_ACEOF
9682/* end confdefs.h. */
9683
9684int
9685main ()
9686{
9687
9688 ;
9689 return 0;
9690}
9691_ACEOF
9692rm -f conftest.$ac_objext conftest$ac_exeext
drh613a0fe2007-11-23 17:31:17 +00009693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9694 (eval $ac_link) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00009695 ac_status=$?
9696 grep -v '^ *+' conftest.er1 >conftest.err
9697 rm -f conftest.er1
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +00009700 (exit $ac_status); } &&
9701 { ac_try='test -z "$ac_cxx_werror_flag"
9702 || test ! -s conftest.err'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 (eval $ac_try) 2>&5
9705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; } &&
9708 { ac_try='test -s conftest$ac_exeext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 (eval $ac_try) 2>&5
9711 ac_status=$?
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009714
9715aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9716}'`
9717# Check for a 64-bit object if we didn't find anything.
9718if 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; }
9719}'`; fi
9720else
9721 echo "$as_me: failed program was:" >&5
9722sed 's/^/| /' conftest.$ac_ext >&5
9723
9724fi
drh613a0fe2007-11-23 17:31:17 +00009725rm -f conftest.err conftest.$ac_objext \
a.rottmann9bc8b932004-02-29 15:18:31 +00009726 conftest$ac_exeext conftest.$ac_ext
9727if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9728
9729 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9730 # Warning - without using the other run time loading flags,
9731 # -berok will link without error, but may produce a broken library.
9732 no_undefined_flag_CXX=' ${wl}-bernotok'
9733 allow_undefined_flag_CXX=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00009734 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00009735 whole_archive_flag_spec_CXX='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00009736 archive_cmds_need_lc_CXX=yes
vapier7f19c022007-02-17 14:46:31 +00009737 # This is similar to how AIX traditionally builds its shared libraries.
9738 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
a.rottmann9bc8b932004-02-29 15:18:31 +00009739 fi
9740 fi
9741 ;;
vapier7f19c022007-02-17 14:46:31 +00009742
9743 beos*)
9744 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9745 allow_undefined_flag_CXX=unsupported
9746 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9747 # support --undefined. This deserves some investigation. FIXME
9748 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9749 else
9750 ld_shlibs_CXX=no
9751 fi
9752 ;;
9753
a.rottmann9bc8b932004-02-29 15:18:31 +00009754 chorus*)
9755 case $cc_basename in
9756 *)
9757 # FIXME: insert proper C++ library support
9758 ld_shlibs_CXX=no
9759 ;;
9760 esac
9761 ;;
9762
9763 cygwin* | mingw* | pw32*)
9764 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9765 # as there is no search path for DLLs.
9766 hardcode_libdir_flag_spec_CXX='-L$libdir'
9767 allow_undefined_flag_CXX=unsupported
9768 always_export_symbols_CXX=no
9769 enable_shared_with_static_runtimes_CXX=yes
9770
9771 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009772 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00009773 # If the export-symbols file already is a .def file (1st line
9774 # is EXPORTS), use it as is; otherwise, prepend...
9775 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9776 cp $export_symbols $output_objdir/$soname.def;
9777 else
9778 echo EXPORTS > $output_objdir/$soname.def;
9779 cat $export_symbols >> $output_objdir/$soname.def;
9780 fi~
vapier7f19c022007-02-17 14:46:31 +00009781 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00009782 else
9783 ld_shlibs_CXX=no
9784 fi
9785 ;;
vapier7f19c022007-02-17 14:46:31 +00009786 darwin* | rhapsody*)
9787 case $host_os in
9788 rhapsody* | darwin1.[012])
9789 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9790 ;;
9791 *) # Darwin 1.3 on
9792 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9793 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9794 else
9795 case ${MACOSX_DEPLOYMENT_TARGET} in
9796 10.[012])
9797 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9798 ;;
9799 10.*)
9800 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9801 ;;
9802 esac
9803 fi
9804 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009805 esac
vapier7f19c022007-02-17 14:46:31 +00009806 archive_cmds_need_lc_CXX=no
9807 hardcode_direct_CXX=no
9808 hardcode_automatic_CXX=yes
9809 hardcode_shlibpath_var_CXX=unsupported
9810 whole_archive_flag_spec_CXX=''
9811 link_all_deplibs_CXX=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00009812
vapier7f19c022007-02-17 14:46:31 +00009813 if test "$GXX" = yes ; then
9814 lt_int_apple_cc_single_mod=no
9815 output_verbose_link_cmd='echo'
9816 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9817 lt_int_apple_cc_single_mod=yes
9818 fi
9819 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9820 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9821 else
9822 archive_cmds_CXX='$CC -r -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'
9823 fi
9824 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9825 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9826 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9827 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}'
9828 else
9829 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
9830 fi
9831 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}'
9832 else
9833 case $cc_basename in
9834 xlc*)
9835 output_verbose_link_cmd='echo'
9836 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9837 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9838 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9839 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9840 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}'
9841 ;;
9842 *)
9843 ld_shlibs_CXX=no
9844 ;;
9845 esac
9846 fi
9847 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009848
9849 dgux*)
9850 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +00009851 ec++*)
a.rottmann9bc8b932004-02-29 15:18:31 +00009852 # FIXME: insert proper C++ library support
9853 ld_shlibs_CXX=no
9854 ;;
vapier7f19c022007-02-17 14:46:31 +00009855 ghcx*)
a.rottmann9bc8b932004-02-29 15:18:31 +00009856 # Green Hills C++ Compiler
9857 # FIXME: insert proper C++ library support
9858 ld_shlibs_CXX=no
9859 ;;
9860 *)
9861 # FIXME: insert proper C++ library support
9862 ld_shlibs_CXX=no
9863 ;;
9864 esac
9865 ;;
vapier7f19c022007-02-17 14:46:31 +00009866 freebsd[12]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00009867 # C++ shared libraries reported to be fairly broken before switch to ELF
9868 ld_shlibs_CXX=no
9869 ;;
9870 freebsd-elf*)
9871 archive_cmds_need_lc_CXX=no
9872 ;;
vapier7f19c022007-02-17 14:46:31 +00009873 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00009874 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9875 # conventions
9876 ld_shlibs_CXX=yes
9877 ;;
9878 gnu*)
9879 ;;
9880 hpux9*)
9881 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9882 hardcode_libdir_separator_CXX=:
9883 export_dynamic_flag_spec_CXX='${wl}-E'
9884 hardcode_direct_CXX=yes
9885 hardcode_minus_L_CXX=yes # Not in the search PATH,
9886 # but as the default
9887 # location of the library.
9888
9889 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +00009890 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +00009891 # FIXME: insert proper C++ library support
9892 ld_shlibs_CXX=no
9893 ;;
vapier7f19c022007-02-17 14:46:31 +00009894 aCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +00009895 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'
9896 # Commands to make compiler produce verbose output that lists
9897 # what "hidden" libraries, object files and flags are used when
9898 # linking a shared library.
9899 #
9900 # There doesn't appear to be a way to prevent this compiler from
9901 # explicitly linking system object files so we need to strip them
9902 # from the output so that they don't get included in the library
9903 # dependencies.
vapier7f19c022007-02-17 14:46:31 +00009904 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'
a.rottmann9bc8b932004-02-29 15:18:31 +00009905 ;;
9906 *)
9907 if test "$GXX" = yes; then
9908 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'
9909 else
9910 # FIXME: insert proper C++ library support
9911 ld_shlibs_CXX=no
9912 fi
9913 ;;
9914 esac
9915 ;;
9916 hpux10*|hpux11*)
9917 if test $with_gnu_ld = no; then
vapier7f19c022007-02-17 14:46:31 +00009918 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9919 hardcode_libdir_separator_CXX=:
9920
9921 case $host_cpu in
9922 hppa*64*|ia64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00009923 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
a.rottmann9bc8b932004-02-29 15:18:31 +00009924 ;;
9925 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00009926 export_dynamic_flag_spec_CXX='${wl}-E'
9927 ;;
9928 esac
9929 fi
vapier7f19c022007-02-17 14:46:31 +00009930 case $host_cpu in
9931 hppa*64*|ia64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00009932 hardcode_direct_CXX=no
9933 hardcode_shlibpath_var_CXX=no
9934 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009935 *)
9936 hardcode_direct_CXX=yes
9937 hardcode_minus_L_CXX=yes # Not in the search PATH,
9938 # but as the default
9939 # location of the library.
9940 ;;
9941 esac
9942
9943 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +00009944 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +00009945 # FIXME: insert proper C++ library support
9946 ld_shlibs_CXX=no
9947 ;;
vapier7f19c022007-02-17 14:46:31 +00009948 aCC*)
9949 case $host_cpu in
9950 hppa*64*)
9951 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9952 ;;
9953 ia64*)
9954 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00009955 ;;
9956 *)
9957 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9958 ;;
9959 esac
9960 # Commands to make compiler produce verbose output that lists
9961 # what "hidden" libraries, object files and flags are used when
9962 # linking a shared library.
9963 #
9964 # There doesn't appear to be a way to prevent this compiler from
9965 # explicitly linking system object files so we need to strip them
9966 # from the output so that they don't get included in the library
9967 # dependencies.
9968 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'
9969 ;;
9970 *)
9971 if test "$GXX" = yes; then
9972 if test $with_gnu_ld = no; then
vapier7f19c022007-02-17 14:46:31 +00009973 case $host_cpu in
9974 hppa*64*)
9975 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9976 ;;
9977 ia64*)
9978 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00009979 ;;
9980 *)
9981 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'
9982 ;;
9983 esac
9984 fi
9985 else
9986 # FIXME: insert proper C++ library support
9987 ld_shlibs_CXX=no
9988 fi
9989 ;;
9990 esac
9991 ;;
vapier7f19c022007-02-17 14:46:31 +00009992 interix3*)
9993 hardcode_direct_CXX=no
9994 hardcode_shlibpath_var_CXX=no
9995 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9996 export_dynamic_flag_spec_CXX='${wl}-E'
9997 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9998 # Instead, shared libraries are loaded at an image base (0x10000000 by
9999 # default) and relocated if they conflict, which is a slow very memory
10000 # consuming and fragmenting process. To avoid this, we pick a random,
10001 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10002 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10003 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10004 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10005 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010006 irix5* | irix6*)
10007 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010008 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010009 # SGI C++
vapier7f19c022007-02-17 14:46:31 +000010010 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 ${output_objdir}/so_locations -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +000010011
10012 # Archives containing C++ object files must be created using
10013 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10014 # necessary to make sure instantiated templates are included
10015 # in the archive.
10016 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10017 ;;
10018 *)
10019 if test "$GXX" = yes; then
10020 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000010021 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}${output_objdir}/so_locations -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +000010022 else
10023 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'
10024 fi
10025 fi
10026 link_all_deplibs_CXX=yes
10027 ;;
10028 esac
10029 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10030 hardcode_libdir_separator_CXX=:
10031 ;;
10032 linux*)
10033 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010034 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010035 # Kuck and Associates, Inc. (KAI) C++ Compiler
10036
10037 # KCC will only create a shared library if the output file
10038 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10039 # to its proper name (with version) after linking.
10040 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'
10041 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'
10042 # Commands to make compiler produce verbose output that lists
10043 # what "hidden" libraries, object files and flags are used when
10044 # linking a shared library.
10045 #
10046 # There doesn't appear to be a way to prevent this compiler from
10047 # explicitly linking system object files so we need to strip them
10048 # from the output so that they don't get included in the library
10049 # dependencies.
10050 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'
10051
10052 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10053 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10054
10055 # Archives containing C++ object files must be created using
10056 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10057 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10058 ;;
vapier7f19c022007-02-17 14:46:31 +000010059 icpc*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010060 # Intel C++
10061 with_gnu_ld=yes
vapier7f19c022007-02-17 14:46:31 +000010062 # version 8.0 and above of icpc choke on multiply defined symbols
10063 # if we add $predep_objects and $postdep_objects, however 7.1 and
10064 # earlier do not add the objects themselves.
10065 case `$CC -V 2>&1` in
10066 *"Version 7."*)
10067 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10068 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'
10069 ;;
10070 *) # Version 8.0 or newer
10071 tmp_idyn=
10072 case $host_cpu in
10073 ia64*) tmp_idyn=' -i_dynamic';;
10074 esac
10075 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10076 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10077 ;;
10078 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000010079 archive_cmds_need_lc_CXX=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010080 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10081 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10082 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10083 ;;
vapier7f19c022007-02-17 14:46:31 +000010084 pgCC*)
10085 # Portland Group C++ compiler
10086 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10087 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10088
10089 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10090 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10091 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10092 ;;
10093 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010094 # Compaq C++
10095 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10096 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'
10097
10098 runpath_var=LD_RUN_PATH
10099 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10100 hardcode_libdir_separator_CXX=:
10101
10102 # Commands to make compiler produce verbose output that lists
10103 # what "hidden" libraries, object files and flags are used when
10104 # linking a shared library.
10105 #
10106 # There doesn't appear to be a way to prevent this compiler from
10107 # explicitly linking system object files so we need to strip them
10108 # from the output so that they don't get included in the library
10109 # dependencies.
10110 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'
10111 ;;
10112 esac
10113 ;;
10114 lynxos*)
10115 # FIXME: insert proper C++ library support
10116 ld_shlibs_CXX=no
10117 ;;
10118 m88k*)
10119 # FIXME: insert proper C++ library support
10120 ld_shlibs_CXX=no
10121 ;;
10122 mvs*)
10123 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010124 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010125 # FIXME: insert proper C++ library support
10126 ld_shlibs_CXX=no
10127 ;;
10128 *)
10129 # FIXME: insert proper C++ library support
10130 ld_shlibs_CXX=no
10131 ;;
10132 esac
10133 ;;
vapier7f19c022007-02-17 14:46:31 +000010134 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010135 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10136 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10137 wlarc=
10138 hardcode_libdir_flag_spec_CXX='-R$libdir'
10139 hardcode_direct_CXX=yes
10140 hardcode_shlibpath_var_CXX=no
10141 fi
10142 # Workaround some broken pre-1.5 toolchains
10143 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10144 ;;
vapier7f19c022007-02-17 14:46:31 +000010145 openbsd2*)
10146 # C++ shared libraries are fairly broken
10147 ld_shlibs_CXX=no
10148 ;;
10149 openbsd*)
10150 hardcode_direct_CXX=yes
10151 hardcode_shlibpath_var_CXX=no
10152 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10153 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10154 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10155 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10156 export_dynamic_flag_spec_CXX='${wl}-E'
10157 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10158 fi
10159 output_verbose_link_cmd='echo'
10160 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010161 osf3*)
10162 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010163 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010164 # Kuck and Associates, Inc. (KAI) C++ Compiler
10165
10166 # KCC will only create a shared library if the output file
10167 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10168 # to its proper name (with version) after linking.
10169 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'
10170
10171 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10172 hardcode_libdir_separator_CXX=:
10173
10174 # Archives containing C++ object files must be created using
10175 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10176 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10177
10178 ;;
vapier7f19c022007-02-17 14:46:31 +000010179 RCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010180 # Rational C++ 2.4.1
10181 # FIXME: insert proper C++ library support
10182 ld_shlibs_CXX=no
10183 ;;
vapier7f19c022007-02-17 14:46:31 +000010184 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010185 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
vapier7f19c022007-02-17 14:46:31 +000010186 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 ${output_objdir}/so_locations -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +000010187
10188 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10189 hardcode_libdir_separator_CXX=:
10190
10191 # Commands to make compiler produce verbose output that lists
10192 # what "hidden" libraries, object files and flags are used when
10193 # linking a shared library.
10194 #
10195 # There doesn't appear to be a way to prevent this compiler from
10196 # explicitly linking system object files so we need to strip them
10197 # from the output so that they don't get included in the library
10198 # dependencies.
10199 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'
10200 ;;
10201 *)
10202 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10203 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
vapier7f19c022007-02-17 14:46:31 +000010204 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}${output_objdir}/so_locations -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +000010205
10206 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10207 hardcode_libdir_separator_CXX=:
10208
10209 # Commands to make compiler produce verbose output that lists
10210 # what "hidden" libraries, object files and flags are used when
10211 # linking a shared library.
10212 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10213
10214 else
10215 # FIXME: insert proper C++ library support
10216 ld_shlibs_CXX=no
10217 fi
10218 ;;
10219 esac
10220 ;;
10221 osf4* | osf5*)
10222 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010223 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010224 # Kuck and Associates, Inc. (KAI) C++ Compiler
10225
10226 # KCC will only create a shared library if the output file
10227 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10228 # to its proper name (with version) after linking.
10229 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'
10230
10231 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10232 hardcode_libdir_separator_CXX=:
10233
10234 # Archives containing C++ object files must be created using
10235 # the KAI C++ compiler.
10236 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10237 ;;
vapier7f19c022007-02-17 14:46:31 +000010238 RCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010239 # Rational C++ 2.4.1
10240 # FIXME: insert proper C++ library support
10241 ld_shlibs_CXX=no
10242 ;;
vapier7f19c022007-02-17 14:46:31 +000010243 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010244 allow_undefined_flag_CXX=' -expect_unresolved \*'
vapier7f19c022007-02-17 14:46:31 +000010245 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 ${output_objdir}/so_locations -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +000010246 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10247 echo "-hidden">> $lib.exp~
vapier7f19c022007-02-17 14:46:31 +000010248 $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 ${output_objdir}/so_locations -o $lib~
a.rottmann9bc8b932004-02-29 15:18:31 +000010249 $rm $lib.exp'
10250
10251 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10252 hardcode_libdir_separator_CXX=:
10253
10254 # Commands to make compiler produce verbose output that lists
10255 # what "hidden" libraries, object files and flags are used when
10256 # linking a shared library.
10257 #
10258 # There doesn't appear to be a way to prevent this compiler from
10259 # explicitly linking system object files so we need to strip them
10260 # from the output so that they don't get included in the library
10261 # dependencies.
10262 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'
10263 ;;
10264 *)
10265 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10266 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
vapier7f19c022007-02-17 14:46:31 +000010267 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}${output_objdir}/so_locations -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +000010268
10269 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10270 hardcode_libdir_separator_CXX=:
10271
10272 # Commands to make compiler produce verbose output that lists
10273 # what "hidden" libraries, object files and flags are used when
10274 # linking a shared library.
10275 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10276
10277 else
10278 # FIXME: insert proper C++ library support
10279 ld_shlibs_CXX=no
10280 fi
10281 ;;
10282 esac
10283 ;;
10284 psos*)
10285 # FIXME: insert proper C++ library support
10286 ld_shlibs_CXX=no
10287 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010288 sunos4*)
10289 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010290 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010291 # Sun C++ 4.x
10292 # FIXME: insert proper C++ library support
10293 ld_shlibs_CXX=no
10294 ;;
vapier7f19c022007-02-17 14:46:31 +000010295 lcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010296 # Lucid
10297 # FIXME: insert proper C++ library support
10298 ld_shlibs_CXX=no
10299 ;;
10300 *)
10301 # FIXME: insert proper C++ library support
10302 ld_shlibs_CXX=no
10303 ;;
10304 esac
10305 ;;
10306 solaris*)
10307 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010308 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010309 # Sun C++ 4.2, 5.x and Centerline C++
vapier7f19c022007-02-17 14:46:31 +000010310 archive_cmds_need_lc_CXX=yes
a.rottmann9bc8b932004-02-29 15:18:31 +000010311 no_undefined_flag_CXX=' -zdefs'
vapier7f19c022007-02-17 14:46:31 +000010312 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000010313 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
vapier7f19c022007-02-17 14:46:31 +000010314 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
a.rottmann9bc8b932004-02-29 15:18:31 +000010315
10316 hardcode_libdir_flag_spec_CXX='-R$libdir'
10317 hardcode_shlibpath_var_CXX=no
10318 case $host_os in
vapier7f19c022007-02-17 14:46:31 +000010319 solaris2.[0-5] | solaris2.[0-5].*) ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010320 *)
10321 # The C++ compiler is used as linker so we must use $wl
10322 # flag to pass the commands to the underlying system
vapier7f19c022007-02-17 14:46:31 +000010323 # linker. We must also pass each convience library through
10324 # to the system linker between allextract/defaultextract.
10325 # The C++ compiler will combine linker options so we
10326 # cannot just pass the convience library names through
10327 # without $wl.
a.rottmann9bc8b932004-02-29 15:18:31 +000010328 # Supported since Solaris 2.6 (maybe 2.5.1?)
vapier7f19c022007-02-17 14:46:31 +000010329 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
a.rottmann9bc8b932004-02-29 15:18:31 +000010330 ;;
10331 esac
10332 link_all_deplibs_CXX=yes
10333
vapier7f19c022007-02-17 14:46:31 +000010334 output_verbose_link_cmd='echo'
a.rottmann9bc8b932004-02-29 15:18:31 +000010335
10336 # Archives containing C++ object files must be created using
10337 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10338 # necessary to make sure instantiated templates are included
10339 # in the archive.
10340 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10341 ;;
vapier7f19c022007-02-17 14:46:31 +000010342 gcx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010343 # Green Hills C++ Compiler
10344 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10345
10346 # The C++ compiler must be used to create the archive.
10347 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10348 ;;
10349 *)
10350 # GNU C++ compiler with Solaris linker
10351 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10352 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10353 if $CC --version | grep -v '^2\.7' > /dev/null; then
10354 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10355 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10356 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10357
10358 # Commands to make compiler produce verbose output that lists
10359 # what "hidden" libraries, object files and flags are used when
10360 # linking a shared library.
10361 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10362 else
10363 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10364 # platform.
10365 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10366 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10367 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10368
10369 # Commands to make compiler produce verbose output that lists
10370 # what "hidden" libraries, object files and flags are used when
10371 # linking a shared library.
10372 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10373 fi
10374
10375 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10376 fi
10377 ;;
10378 esac
10379 ;;
vapier7f19c022007-02-17 14:46:31 +000010380 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10381 no_undefined_flag_CXX='${wl}-z,text'
a.rottmann9bc8b932004-02-29 15:18:31 +000010382 archive_cmds_need_lc_CXX=no
vapier7f19c022007-02-17 14:46:31 +000010383 hardcode_shlibpath_var_CXX=no
10384 runpath_var='LD_RUN_PATH'
10385
10386 case $cc_basename in
10387 CC*)
10388 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10389 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10390 ;;
10391 *)
10392 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394 ;;
10395 esac
10396 ;;
10397 sysv5* | sco3.2v5* | sco5v6*)
10398 # Note: We can NOT use -z defs as we might desire, because we do not
10399 # link with -lc, and that would cause any symbols used from libc to
10400 # always be unresolved, which means just about no library would
10401 # ever link correctly. If we're not using GNU ld we use -z text
10402 # though, which does catch some bad symbols but isn't as heavy-handed
10403 # as -z defs.
10404 # For security reasons, it is highly recommended that you always
10405 # use absolute paths for naming shared libraries, and exclude the
10406 # DT_RUNPATH tag from executables and libraries. But doing so
10407 # requires that you compile everything twice, which is a pain.
10408 # So that behaviour is only enabled if SCOABSPATH is set to a
10409 # non-empty value in the environment. Most likely only useful for
10410 # creating official distributions of packages.
10411 # This is a hack until libtool officially supports absolute path
10412 # names for shared libraries.
10413 no_undefined_flag_CXX='${wl}-z,text'
10414 allow_undefined_flag_CXX='${wl}-z,nodefs'
10415 archive_cmds_need_lc_CXX=no
10416 hardcode_shlibpath_var_CXX=no
10417 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10418 hardcode_libdir_separator_CXX=':'
10419 link_all_deplibs_CXX=yes
10420 export_dynamic_flag_spec_CXX='${wl}-Bexport'
10421 runpath_var='LD_RUN_PATH'
10422
10423 case $cc_basename in
10424 CC*)
10425 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10426 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10427 ;;
10428 *)
10429 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10430 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10431 ;;
10432 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000010433 ;;
10434 tandem*)
10435 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010436 NCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010437 # NonStop-UX NCC 3.20
10438 # FIXME: insert proper C++ library support
10439 ld_shlibs_CXX=no
10440 ;;
10441 *)
10442 # FIXME: insert proper C++ library support
10443 ld_shlibs_CXX=no
10444 ;;
10445 esac
10446 ;;
10447 vxworks*)
10448 # FIXME: insert proper C++ library support
10449 ld_shlibs_CXX=no
10450 ;;
10451 *)
10452 # FIXME: insert proper C++ library support
10453 ld_shlibs_CXX=no
10454 ;;
10455esac
drh613a0fe2007-11-23 17:31:17 +000010456echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10457echo "${ECHO_T}$ld_shlibs_CXX" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000010458test "$ld_shlibs_CXX" = no && can_build_shared=no
10459
10460GCC_CXX="$GXX"
10461LD_CXX="$LD"
10462
10463
10464cat > conftest.$ac_ext <<EOF
10465class Foo
10466{
10467public:
10468 Foo (void) { a = 0; }
10469private:
10470 int a;
10471};
10472EOF
10473
10474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10475 (eval $ac_compile) 2>&5
10476 ac_status=$?
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); }; then
10479 # Parse the compiler output and extract the necessary
10480 # objects, libraries and library flags.
10481
10482 # Sentinel used to keep track of whether or not we are before
10483 # the conftest object file.
10484 pre_test_object_deps_done=no
10485
10486 # The `*' in the case matches for architectures that use `case' in
10487 # $output_verbose_cmd can trigger glob expansion during the loop
10488 # eval without this substitution.
vapier7f19c022007-02-17 14:46:31 +000010489 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
a.rottmann9bc8b932004-02-29 15:18:31 +000010490
10491 for p in `eval $output_verbose_link_cmd`; do
10492 case $p in
10493
10494 -L* | -R* | -l*)
10495 # Some compilers place space between "-{L,R}" and the path.
10496 # Remove the space.
10497 if test $p = "-L" \
10498 || test $p = "-R"; then
10499 prev=$p
10500 continue
10501 else
10502 prev=
10503 fi
10504
10505 if test "$pre_test_object_deps_done" = no; then
10506 case $p in
10507 -L* | -R*)
10508 # Internal compiler library paths should come after those
10509 # provided the user. The postdeps already come after the
10510 # user supplied libs so there is no need to process them.
10511 if test -z "$compiler_lib_search_path_CXX"; then
10512 compiler_lib_search_path_CXX="${prev}${p}"
10513 else
10514 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10515 fi
10516 ;;
10517 # The "-l" case would never come before the object being
10518 # linked, so don't bother handling this case.
10519 esac
10520 else
10521 if test -z "$postdeps_CXX"; then
10522 postdeps_CXX="${prev}${p}"
10523 else
10524 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10525 fi
10526 fi
10527 ;;
10528
10529 *.$objext)
10530 # This assumes that the test object file only shows up
10531 # once in the compiler output.
10532 if test "$p" = "conftest.$objext"; then
10533 pre_test_object_deps_done=yes
10534 continue
10535 fi
10536
10537 if test "$pre_test_object_deps_done" = no; then
10538 if test -z "$predep_objects_CXX"; then
10539 predep_objects_CXX="$p"
10540 else
10541 predep_objects_CXX="$predep_objects_CXX $p"
10542 fi
10543 else
10544 if test -z "$postdep_objects_CXX"; then
10545 postdep_objects_CXX="$p"
10546 else
10547 postdep_objects_CXX="$postdep_objects_CXX $p"
10548 fi
10549 fi
10550 ;;
10551
10552 *) ;; # Ignore the rest.
10553
10554 esac
10555 done
10556
10557 # Clean up.
10558 rm -f a.out a.exe
10559else
10560 echo "libtool.m4: error: problem compiling CXX test program"
10561fi
10562
10563$rm -f confest.$objext
10564
vapier7f19c022007-02-17 14:46:31 +000010565# PORTME: override above test on systems where it is broken
10566case $host_os in
10567interix3*)
10568 # Interix 3.5 installs completely hosed .la files for C++, so rather than
10569 # hack all around it, let's just trust "g++" to DTRT.
10570 predep_objects_CXX=
10571 postdep_objects_CXX=
10572 postdeps_CXX=
10573 ;;
10574
10575solaris*)
10576 case $cc_basename in
10577 CC*)
10578 # Adding this requires a known-good setup of shared libraries for
10579 # Sun compiler versions before 5.6, else PIC objects from an old
10580 # archive will be linked into the output, leading to subtle bugs.
10581 postdeps_CXX='-lCstd -lCrun'
10582 ;;
10583 esac
10584 ;;
10585esac
10586
10587
a.rottmann9bc8b932004-02-29 15:18:31 +000010588case " $postdeps_CXX " in
10589*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10590esac
10591
10592lt_prog_compiler_wl_CXX=
10593lt_prog_compiler_pic_CXX=
10594lt_prog_compiler_static_CXX=
10595
drh613a0fe2007-11-23 17:31:17 +000010596echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10597echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000010598
10599 # C++ specific cases for pic, static, wl, etc.
10600 if test "$GXX" = yes; then
10601 lt_prog_compiler_wl_CXX='-Wl,'
10602 lt_prog_compiler_static_CXX='-static'
10603
10604 case $host_os in
10605 aix*)
10606 # All AIX code is PIC.
10607 if test "$host_cpu" = ia64; then
10608 # AIX 5 now supports IA64 processor
10609 lt_prog_compiler_static_CXX='-Bstatic'
10610 fi
10611 ;;
10612 amigaos*)
10613 # FIXME: we need at least 68020 code to build shared libraries, but
10614 # adding the `-m68020' flag to GCC prevents building anything better,
10615 # like `-m68040'.
10616 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10617 ;;
10618 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10619 # PIC is the default for these OSes.
10620 ;;
10621 mingw* | os2* | pw32*)
10622 # This hack is so that the source file can tell whether it is being
10623 # built for inclusion in a dll (and should export symbols for example).
10624 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10625 ;;
10626 darwin* | rhapsody*)
10627 # PIC is the default on this platform
10628 # Common symbols not allowed in MH_DYLIB files
10629 lt_prog_compiler_pic_CXX='-fno-common'
10630 ;;
10631 *djgpp*)
10632 # DJGPP does not support shared libraries at all
10633 lt_prog_compiler_pic_CXX=
10634 ;;
vapier7f19c022007-02-17 14:46:31 +000010635 interix3*)
10636 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10637 # Instead, we relocate shared libraries at runtime.
10638 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010639 sysv4*MP*)
10640 if test -d /usr/nec; then
10641 lt_prog_compiler_pic_CXX=-Kconform_pic
10642 fi
10643 ;;
10644 hpux*)
10645 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10646 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000010647 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000010648 hppa*64*|ia64*)
10649 ;;
10650 *)
10651 lt_prog_compiler_pic_CXX='-fPIC'
10652 ;;
10653 esac
10654 ;;
10655 *)
10656 lt_prog_compiler_pic_CXX='-fPIC'
10657 ;;
10658 esac
10659 else
10660 case $host_os in
10661 aix4* | aix5*)
10662 # All AIX code is PIC.
10663 if test "$host_cpu" = ia64; then
10664 # AIX 5 now supports IA64 processor
10665 lt_prog_compiler_static_CXX='-Bstatic'
10666 else
10667 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10668 fi
10669 ;;
10670 chorus*)
10671 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010672 cxch68*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010673 # Green Hills C++ Compiler
10674 # _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"
10675 ;;
10676 esac
10677 ;;
vapier7f19c022007-02-17 14:46:31 +000010678 darwin*)
10679 # PIC is the default on this platform
10680 # Common symbols not allowed in MH_DYLIB files
10681 case $cc_basename in
10682 xlc*)
10683 lt_prog_compiler_pic_CXX='-qnocommon'
10684 lt_prog_compiler_wl_CXX='-Wl,'
10685 ;;
10686 esac
10687 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010688 dgux*)
10689 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010690 ec++*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010691 lt_prog_compiler_pic_CXX='-KPIC'
10692 ;;
vapier7f19c022007-02-17 14:46:31 +000010693 ghcx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010694 # Green Hills C++ Compiler
10695 lt_prog_compiler_pic_CXX='-pic'
10696 ;;
10697 *)
10698 ;;
10699 esac
10700 ;;
vapier7f19c022007-02-17 14:46:31 +000010701 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010702 # FreeBSD uses GNU C++
10703 ;;
10704 hpux9* | hpux10* | hpux11*)
10705 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010706 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010707 lt_prog_compiler_wl_CXX='-Wl,'
vapier7f19c022007-02-17 14:46:31 +000010708 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
a.rottmann9bc8b932004-02-29 15:18:31 +000010709 if test "$host_cpu" != ia64; then
10710 lt_prog_compiler_pic_CXX='+Z'
10711 fi
10712 ;;
vapier7f19c022007-02-17 14:46:31 +000010713 aCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010714 lt_prog_compiler_wl_CXX='-Wl,'
vapier7f19c022007-02-17 14:46:31 +000010715 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
10716 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000010717 hppa*64*|ia64*)
10718 # +Z the default
10719 ;;
10720 *)
10721 lt_prog_compiler_pic_CXX='+Z'
10722 ;;
10723 esac
10724 ;;
10725 *)
10726 ;;
10727 esac
10728 ;;
vapier7f19c022007-02-17 14:46:31 +000010729 interix*)
10730 # This is c89, which is MS Visual C++ (no shared libs)
10731 # Anyone wants to do a port?
10732 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010733 irix5* | irix6* | nonstopux*)
10734 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010735 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010736 lt_prog_compiler_wl_CXX='-Wl,'
10737 lt_prog_compiler_static_CXX='-non_shared'
10738 # CC pic flag -KPIC is the default.
10739 ;;
10740 *)
10741 ;;
10742 esac
10743 ;;
10744 linux*)
10745 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010746 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010747 # KAI C++ Compiler
10748 lt_prog_compiler_wl_CXX='--backend -Wl,'
10749 lt_prog_compiler_pic_CXX='-fPIC'
10750 ;;
vapier7f19c022007-02-17 14:46:31 +000010751 icpc* | ecpc*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010752 # Intel C++
10753 lt_prog_compiler_wl_CXX='-Wl,'
10754 lt_prog_compiler_pic_CXX='-KPIC'
10755 lt_prog_compiler_static_CXX='-static'
10756 ;;
vapier7f19c022007-02-17 14:46:31 +000010757 pgCC*)
10758 # Portland Group C++ compiler.
10759 lt_prog_compiler_wl_CXX='-Wl,'
10760 lt_prog_compiler_pic_CXX='-fpic'
10761 lt_prog_compiler_static_CXX='-Bstatic'
10762 ;;
10763 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010764 # Compaq C++
10765 # Make sure the PIC flag is empty. It appears that all Alpha
10766 # Linux and Compaq Tru64 Unix objects are PIC.
10767 lt_prog_compiler_pic_CXX=
10768 lt_prog_compiler_static_CXX='-non_shared'
10769 ;;
10770 *)
10771 ;;
10772 esac
10773 ;;
10774 lynxos*)
10775 ;;
10776 m88k*)
10777 ;;
10778 mvs*)
10779 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010780 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010781 lt_prog_compiler_pic_CXX='-W c,exportall'
10782 ;;
10783 *)
10784 ;;
10785 esac
10786 ;;
vapier7f19c022007-02-17 14:46:31 +000010787 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010788 ;;
10789 osf3* | osf4* | osf5*)
10790 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010791 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010792 lt_prog_compiler_wl_CXX='--backend -Wl,'
10793 ;;
vapier7f19c022007-02-17 14:46:31 +000010794 RCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010795 # Rational C++ 2.4.1
10796 lt_prog_compiler_pic_CXX='-pic'
10797 ;;
vapier7f19c022007-02-17 14:46:31 +000010798 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010799 # Digital/Compaq C++
10800 lt_prog_compiler_wl_CXX='-Wl,'
10801 # Make sure the PIC flag is empty. It appears that all Alpha
10802 # Linux and Compaq Tru64 Unix objects are PIC.
10803 lt_prog_compiler_pic_CXX=
10804 lt_prog_compiler_static_CXX='-non_shared'
10805 ;;
10806 *)
10807 ;;
10808 esac
10809 ;;
10810 psos*)
10811 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010812 solaris*)
10813 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010814 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010815 # Sun C++ 4.2, 5.x and Centerline C++
10816 lt_prog_compiler_pic_CXX='-KPIC'
10817 lt_prog_compiler_static_CXX='-Bstatic'
10818 lt_prog_compiler_wl_CXX='-Qoption ld '
10819 ;;
vapier7f19c022007-02-17 14:46:31 +000010820 gcx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010821 # Green Hills C++ Compiler
10822 lt_prog_compiler_pic_CXX='-PIC'
10823 ;;
10824 *)
10825 ;;
10826 esac
10827 ;;
10828 sunos4*)
10829 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010830 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010831 # Sun C++ 4.x
10832 lt_prog_compiler_pic_CXX='-pic'
10833 lt_prog_compiler_static_CXX='-Bstatic'
10834 ;;
vapier7f19c022007-02-17 14:46:31 +000010835 lcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010836 # Lucid
10837 lt_prog_compiler_pic_CXX='-pic'
10838 ;;
10839 *)
10840 ;;
10841 esac
10842 ;;
10843 tandem*)
10844 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010845 NCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010846 # NonStop-UX NCC 3.20
10847 lt_prog_compiler_pic_CXX='-KPIC'
10848 ;;
10849 *)
10850 ;;
10851 esac
10852 ;;
vapier7f19c022007-02-17 14:46:31 +000010853 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10854 case $cc_basename in
10855 CC*)
10856 lt_prog_compiler_wl_CXX='-Wl,'
10857 lt_prog_compiler_pic_CXX='-KPIC'
10858 lt_prog_compiler_static_CXX='-Bstatic'
10859 ;;
10860 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000010861 ;;
10862 vxworks*)
10863 ;;
10864 *)
10865 lt_prog_compiler_can_build_shared_CXX=no
10866 ;;
10867 esac
10868 fi
10869
drh613a0fe2007-11-23 17:31:17 +000010870echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10871echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000010872
10873#
10874# Check to make sure the PIC flag actually works.
10875#
10876if test -n "$lt_prog_compiler_pic_CXX"; then
10877
drh613a0fe2007-11-23 17:31:17 +000010878echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10879echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000010880if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10882else
10883 lt_prog_compiler_pic_works_CXX=no
10884 ac_outfile=conftest.$ac_objext
10885 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10886 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10887 # Insert the option either (1) after the last *FLAGS variable, or
10888 # (2) before a word containing "conftest.", or (3) at the end.
10889 # Note that $ac_compile itself does not contain backslashes and begins
10890 # with a dollar sign (not a hyphen), so the echo should work correctly.
10891 # The option is referenced via a variable to avoid confusing sed.
10892 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000010893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000010894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10895 -e 's:$: $lt_compiler_flag:'`
drh613a0fe2007-11-23 17:31:17 +000010896 (eval echo "\"\$as_me:10896: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000010897 (eval "$lt_compile" 2>conftest.err)
10898 ac_status=$?
10899 cat conftest.err >&5
drh613a0fe2007-11-23 17:31:17 +000010900 echo "$as_me:10900: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000010901 if (exit $ac_status) && test -s "$ac_outfile"; then
10902 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +000010903 # So say no if there are warnings other than the usual output.
10904 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10906 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000010907 lt_prog_compiler_pic_works_CXX=yes
10908 fi
10909 fi
10910 $rm conftest*
10911
10912fi
drh613a0fe2007-11-23 17:31:17 +000010913echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10914echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000010915
10916if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10917 case $lt_prog_compiler_pic_CXX in
10918 "" | " "*) ;;
10919 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10920 esac
10921else
10922 lt_prog_compiler_pic_CXX=
10923 lt_prog_compiler_can_build_shared_CXX=no
10924fi
10925
10926fi
vapier7f19c022007-02-17 14:46:31 +000010927case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +000010928 # For platforms which do not support PIC, -DPIC is meaningless:
10929 *djgpp*)
10930 lt_prog_compiler_pic_CXX=
10931 ;;
10932 *)
10933 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10934 ;;
10935esac
10936
vapier7f19c022007-02-17 14:46:31 +000010937#
10938# Check to make sure the static flag actually works.
10939#
10940wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
drh613a0fe2007-11-23 17:31:17 +000010941echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10942echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
vapier7f19c022007-02-17 14:46:31 +000010943if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
10945else
10946 lt_prog_compiler_static_works_CXX=no
10947 save_LDFLAGS="$LDFLAGS"
10948 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10949 printf "$lt_simple_link_test_code" > conftest.$ac_ext
10950 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10951 # The linker can only warn and ignore the option if not recognized
10952 # So say no if there are warnings
10953 if test -s conftest.err; then
10954 # Append any errors to the config.log.
10955 cat conftest.err 1>&5
10956 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10958 if diff conftest.exp conftest.er2 >/dev/null; then
10959 lt_prog_compiler_static_works_CXX=yes
10960 fi
10961 else
10962 lt_prog_compiler_static_works_CXX=yes
10963 fi
10964 fi
10965 $rm conftest*
10966 LDFLAGS="$save_LDFLAGS"
10967
10968fi
drh613a0fe2007-11-23 17:31:17 +000010969echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
10970echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
vapier7f19c022007-02-17 14:46:31 +000010971
10972if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
10973 :
10974else
10975 lt_prog_compiler_static_CXX=
10976fi
10977
10978
drh613a0fe2007-11-23 17:31:17 +000010979echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10980echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000010981if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10983else
10984 lt_cv_prog_compiler_c_o_CXX=no
10985 $rm -r conftest 2>/dev/null
10986 mkdir conftest
10987 cd conftest
10988 mkdir out
10989 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10990
10991 lt_compiler_flag="-o out/conftest2.$ac_objext"
10992 # Insert the option either (1) after the last *FLAGS variable, or
10993 # (2) before a word containing "conftest.", or (3) at the end.
10994 # Note that $ac_compile itself does not contain backslashes and begins
10995 # with a dollar sign (not a hyphen), so the echo should work correctly.
10996 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000010997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000010998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10999 -e 's:$: $lt_compiler_flag:'`
drh613a0fe2007-11-23 17:31:17 +000011000 (eval echo "\"\$as_me:11000: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000011001 (eval "$lt_compile" 2>out/conftest.err)
11002 ac_status=$?
11003 cat out/conftest.err >&5
drh613a0fe2007-11-23 17:31:17 +000011004 echo "$as_me:11004: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000011005 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11006 then
11007 # The compiler can only warn and ignore the option if not recognized
11008 # So say no if there are warnings
vapier7f19c022007-02-17 14:46:31 +000011009 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11010 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11011 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000011012 lt_cv_prog_compiler_c_o_CXX=yes
11013 fi
11014 fi
vapier7f19c022007-02-17 14:46:31 +000011015 chmod u+w . 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +000011016 $rm conftest*
11017 # SGI C++ compiler will create directory out/ii_files/ for
11018 # template instantiation
11019 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11020 $rm out/* && rmdir out
11021 cd ..
11022 rmdir conftest
11023 $rm conftest*
11024
11025fi
drh613a0fe2007-11-23 17:31:17 +000011026echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11027echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000011028
11029
11030hard_links="nottested"
11031if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11032 # do not overwrite the value of need_locks provided by the user
drh613a0fe2007-11-23 17:31:17 +000011033 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11034echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000011035 hard_links=yes
11036 $rm conftest*
11037 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11038 touch conftest.a
11039 ln conftest.a conftest.b 2>&5 || hard_links=no
11040 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drh613a0fe2007-11-23 17:31:17 +000011041 echo "$as_me:$LINENO: result: $hard_links" >&5
11042echo "${ECHO_T}$hard_links" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000011043 if test "$hard_links" = no; then
11044 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11045echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11046 need_locks=warn
11047 fi
11048else
11049 need_locks=no
11050fi
11051
drh613a0fe2007-11-23 17:31:17 +000011052echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11053echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000011054
11055 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11056 case $host_os in
11057 aix4* | aix5*)
11058 # If we're using GNU nm, then we don't want the "-C" option.
11059 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11060 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11061 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'
11062 else
11063 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'
11064 fi
11065 ;;
11066 pw32*)
11067 export_symbols_cmds_CXX="$ltdll_cmds"
11068 ;;
11069 cygwin* | mingw*)
vapier7f19c022007-02-17 14:46:31 +000011070 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +000011071 ;;
11072 *)
11073 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11074 ;;
11075 esac
11076
drh613a0fe2007-11-23 17:31:17 +000011077echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11078echo "${ECHO_T}$ld_shlibs_CXX" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000011079test "$ld_shlibs_CXX" = no && can_build_shared=no
11080
a.rottmann9bc8b932004-02-29 15:18:31 +000011081#
11082# Do we need to explicitly link libc?
11083#
11084case "x$archive_cmds_need_lc_CXX" in
11085x|xyes)
11086 # Assume -lc should be added
11087 archive_cmds_need_lc_CXX=yes
11088
11089 if test "$enable_shared" = yes && test "$GCC" = yes; then
11090 case $archive_cmds_CXX in
11091 *'~'*)
11092 # FIXME: we may have to deal with multi-command sequences.
11093 ;;
11094 '$CC '*)
11095 # Test whether the compiler implicitly links with -lc since on some
11096 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11097 # to ld, don't add -lc before -lgcc.
drh613a0fe2007-11-23 17:31:17 +000011098 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11099echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000011100 $rm conftest*
11101 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11102
11103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11104 (eval $ac_compile) 2>&5
11105 ac_status=$?
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); } 2>conftest.err; then
11108 soname=conftest
11109 lib=conftest
11110 libobjs=conftest.$ac_objext
11111 deplibs=
11112 wl=$lt_prog_compiler_wl_CXX
vapier7f19c022007-02-17 14:46:31 +000011113 pic_flag=$lt_prog_compiler_pic_CXX
a.rottmann9bc8b932004-02-29 15:18:31 +000011114 compiler_flags=-v
11115 linker_flags=-v
11116 verstring=
11117 output_objdir=.
11118 libname=conftest
11119 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11120 allow_undefined_flag_CXX=
11121 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11122 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11123 ac_status=$?
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }
11126 then
11127 archive_cmds_need_lc_CXX=no
11128 else
11129 archive_cmds_need_lc_CXX=yes
11130 fi
11131 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11132 else
11133 cat conftest.err 1>&5
11134 fi
11135 $rm conftest*
drh613a0fe2007-11-23 17:31:17 +000011136 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11137echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000011138 ;;
11139 esac
11140 fi
11141 ;;
11142esac
11143
drh613a0fe2007-11-23 17:31:17 +000011144echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11145echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000011146library_names_spec=
11147libname_spec='lib$name'
11148soname_spec=
vapier7f19c022007-02-17 14:46:31 +000011149shrext_cmds=".so"
a.rottmann9bc8b932004-02-29 15:18:31 +000011150postinstall_cmds=
11151postuninstall_cmds=
11152finish_cmds=
11153finish_eval=
11154shlibpath_var=
11155shlibpath_overrides_runpath=unknown
11156version_type=none
11157dynamic_linker="$host_os ld.so"
11158sys_lib_dlsearch_path_spec="/lib /usr/lib"
11159if test "$GCC" = yes; then
11160 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11161 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11162 # if the path contains ";" then we assume it to be the separator
11163 # otherwise default to the standard path separator (i.e. ":") - it is
11164 # assumed that no part of a normal pathname contains ";" but that should
11165 # okay in the real world where ";" in dirpaths is itself problematic.
11166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11167 else
11168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11169 fi
11170else
11171 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11172fi
11173need_lib_prefix=unknown
11174hardcode_into_libs=no
11175
11176# when you set need_version to no, make sure it does not cause -set_version
11177# flags to be left without arguments
11178need_version=unknown
11179
11180case $host_os in
11181aix3*)
11182 version_type=linux
11183 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11184 shlibpath_var=LIBPATH
11185
11186 # AIX 3 has no versioning support, so we append a major version to the name.
11187 soname_spec='${libname}${release}${shared_ext}$major'
11188 ;;
11189
11190aix4* | aix5*)
11191 version_type=linux
11192 need_lib_prefix=no
11193 need_version=no
11194 hardcode_into_libs=yes
11195 if test "$host_cpu" = ia64; then
11196 # AIX 5 supports IA64
11197 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11198 shlibpath_var=LD_LIBRARY_PATH
11199 else
11200 # With GCC up to 2.95.x, collect2 would create an import file
11201 # for dependence libraries. The import file would start with
11202 # the line `#! .'. This would cause the generated library to
11203 # depend on `.', always an invalid library. This was fixed in
11204 # development snapshots of GCC prior to 3.0.
11205 case $host_os in
11206 aix4 | aix4.[01] | aix4.[01].*)
11207 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11208 echo ' yes '
11209 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11210 :
11211 else
11212 can_build_shared=no
11213 fi
11214 ;;
11215 esac
11216 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11217 # soname into executable. Probably we can add versioning support to
11218 # collect2, so additional links can be useful in future.
11219 if test "$aix_use_runtimelinking" = yes; then
11220 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11221 # instead of lib<name>.a to let people know that these are not
11222 # typical AIX shared libraries.
11223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11224 else
11225 # We preserve .a as extension for shared libraries through AIX4.2
11226 # and later when we are not doing run time linking.
11227 library_names_spec='${libname}${release}.a $libname.a'
11228 soname_spec='${libname}${release}${shared_ext}$major'
11229 fi
11230 shlibpath_var=LIBPATH
11231 fi
11232 ;;
11233
11234amigaos*)
11235 library_names_spec='$libname.ixlibrary $libname.a'
11236 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11237 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'
11238 ;;
11239
11240beos*)
11241 library_names_spec='${libname}${shared_ext}'
11242 dynamic_linker="$host_os ld.so"
11243 shlibpath_var=LIBRARY_PATH
11244 ;;
11245
vapier7f19c022007-02-17 14:46:31 +000011246bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011247 version_type=linux
11248 need_version=no
11249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11250 soname_spec='${libname}${release}${shared_ext}$major'
11251 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11252 shlibpath_var=LD_LIBRARY_PATH
11253 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11254 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11255 # the default ld.so.conf also contains /usr/contrib/lib and
11256 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11257 # libtool to hard-code these into programs
11258 ;;
11259
11260cygwin* | mingw* | pw32*)
11261 version_type=windows
vapier7f19c022007-02-17 14:46:31 +000011262 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000011263 need_version=no
11264 need_lib_prefix=no
11265
11266 case $GCC,$host_os in
11267 yes,cygwin* | yes,mingw* | yes,pw32*)
11268 library_names_spec='$libname.dll.a'
11269 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11270 postinstall_cmds='base_file=`basename \${file}`~
11271 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11272 dldir=$destdir/`dirname \$dlpath`~
11273 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +000011274 $install_prog $dir/$dlname \$dldir/$dlname~
11275 chmod a+x \$dldir/$dlname'
a.rottmann9bc8b932004-02-29 15:18:31 +000011276 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11277 dlpath=$dir/\$dldll~
11278 $rm \$dlpath'
11279 shlibpath_overrides_runpath=yes
11280
11281 case $host_os in
11282 cygwin*)
11283 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11284 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11285 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11286 ;;
11287 mingw*)
11288 # MinGW DLLs use traditional 'lib' prefix
11289 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11290 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11291 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11292 # It is most probably a Windows format PATH printed by
11293 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11294 # path with ; separators, and with drive letters. We can handle the
11295 # drive letters (cygwin fileutils understands them), so leave them,
11296 # especially as we might pass files found there to a mingw objdump,
11297 # which wouldn't understand a cygwinified path. Ahh.
11298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11299 else
11300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11301 fi
11302 ;;
11303 pw32*)
11304 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +000011305 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
a.rottmann9bc8b932004-02-29 15:18:31 +000011306 ;;
11307 esac
11308 ;;
11309
vapier7f19c022007-02-17 14:46:31 +000011310 linux*)
11311 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
11312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11313 supports_anon_versioning=no
11314 case `$LD -v 2>/dev/null` in
11315 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11316 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11317 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11318 *\ 2.11.*) ;; # other 2.11 versions
11319 *) supports_anon_versioning=yes ;;
11320 esac
11321 if test $supports_anon_versioning = yes; then
11322 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11323cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11324$echo "local: *; };" >> $output_objdir/$libname.ver~
11325 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11326 else
11327 $archive_expsym_cmds="$archive_cmds"
11328 fi
11329 else
11330 ld_shlibs=no
11331 fi
11332 ;;
11333
a.rottmann9bc8b932004-02-29 15:18:31 +000011334 *)
11335 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11336 ;;
11337 esac
11338 dynamic_linker='Win32 ld.exe'
11339 # FIXME: first we should search . and the directory the executable is in
11340 shlibpath_var=PATH
11341 ;;
11342
11343darwin* | rhapsody*)
11344 dynamic_linker="$host_os dyld"
11345 version_type=darwin
11346 need_lib_prefix=no
11347 need_version=no
11348 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11349 soname_spec='${libname}${release}${major}$shared_ext'
11350 shlibpath_overrides_runpath=yes
11351 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +000011352 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a.rottmann9bc8b932004-02-29 15:18:31 +000011353 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11354 if test "$GCC" = yes; then
11355 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"`
11356 else
11357 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11358 fi
11359 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11360 ;;
11361
11362dgux*)
11363 version_type=linux
11364 need_lib_prefix=no
11365 need_version=no
11366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11367 soname_spec='${libname}${release}${shared_ext}$major'
11368 shlibpath_var=LD_LIBRARY_PATH
11369 ;;
11370
11371freebsd1*)
11372 dynamic_linker=no
11373 ;;
11374
11375kfreebsd*-gnu)
11376 version_type=linux
11377 need_lib_prefix=no
11378 need_version=no
11379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11380 soname_spec='${libname}${release}${shared_ext}$major'
11381 shlibpath_var=LD_LIBRARY_PATH
11382 shlibpath_overrides_runpath=no
11383 hardcode_into_libs=yes
11384 dynamic_linker='GNU ld.so'
11385 ;;
11386
vapier7f19c022007-02-17 14:46:31 +000011387freebsd* | dragonfly*)
11388 # DragonFly does not have aout. When/if they implement a new
11389 # versioning mechanism, adjust this.
11390 if test -x /usr/bin/objformat; then
11391 objformat=`/usr/bin/objformat`
11392 else
11393 case $host_os in
11394 freebsd[123]*) objformat=aout ;;
11395 *) objformat=elf ;;
11396 esac
11397 fi
11398 # Handle Gentoo/FreeBSD as it was Linux
11399 case $host_vendor in
11400 gentoo)
11401 version_type=linux ;;
11402 *)
11403 version_type=freebsd-$objformat ;;
11404 esac
11405
a.rottmann9bc8b932004-02-29 15:18:31 +000011406 case $version_type in
11407 freebsd-elf*)
11408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11409 need_version=no
11410 need_lib_prefix=no
11411 ;;
11412 freebsd-*)
11413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11414 need_version=yes
11415 ;;
vapier7f19c022007-02-17 14:46:31 +000011416 linux)
11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11418 soname_spec='${libname}${release}${shared_ext}$major'
11419 need_lib_prefix=no
11420 need_version=no
11421 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000011422 esac
11423 shlibpath_var=LD_LIBRARY_PATH
11424 case $host_os in
11425 freebsd2*)
11426 shlibpath_overrides_runpath=yes
11427 ;;
vapier7f19c022007-02-17 14:46:31 +000011428 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011429 shlibpath_overrides_runpath=yes
11430 hardcode_into_libs=yes
11431 ;;
vapier7f19c022007-02-17 14:46:31 +000011432 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11433 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a.rottmann9bc8b932004-02-29 15:18:31 +000011434 shlibpath_overrides_runpath=no
11435 hardcode_into_libs=yes
11436 ;;
vapier7f19c022007-02-17 14:46:31 +000011437 freebsd*) # from 4.6 on
11438 shlibpath_overrides_runpath=yes
11439 hardcode_into_libs=yes
11440 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000011441 esac
11442 ;;
11443
11444gnu*)
11445 version_type=linux
11446 need_lib_prefix=no
11447 need_version=no
11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11449 soname_spec='${libname}${release}${shared_ext}$major'
11450 shlibpath_var=LD_LIBRARY_PATH
11451 hardcode_into_libs=yes
11452 ;;
11453
11454hpux9* | hpux10* | hpux11*)
11455 # Give a soname corresponding to the major version so that dld.sl refuses to
11456 # link against other versions.
11457 version_type=sunos
11458 need_lib_prefix=no
11459 need_version=no
vapier7f19c022007-02-17 14:46:31 +000011460 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000011461 ia64*)
vapier7f19c022007-02-17 14:46:31 +000011462 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +000011463 hardcode_into_libs=yes
11464 dynamic_linker="$host_os dld.so"
11465 shlibpath_var=LD_LIBRARY_PATH
11466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11468 soname_spec='${libname}${release}${shared_ext}$major'
11469 if test "X$HPUX_IA64_MODE" = X32; then
11470 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11471 else
11472 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11473 fi
11474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11475 ;;
11476 hppa*64*)
vapier7f19c022007-02-17 14:46:31 +000011477 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000011478 hardcode_into_libs=yes
11479 dynamic_linker="$host_os dld.sl"
11480 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11483 soname_spec='${libname}${release}${shared_ext}$major'
11484 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11485 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11486 ;;
11487 *)
vapier7f19c022007-02-17 14:46:31 +000011488 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000011489 dynamic_linker="$host_os dld.sl"
11490 shlibpath_var=SHLIB_PATH
11491 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11493 soname_spec='${libname}${release}${shared_ext}$major'
11494 ;;
11495 esac
11496 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11497 postinstall_cmds='chmod 555 $lib'
11498 ;;
11499
vapier7f19c022007-02-17 14:46:31 +000011500interix3*)
11501 version_type=linux
11502 need_lib_prefix=no
11503 need_version=no
11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11505 soname_spec='${libname}${release}${shared_ext}$major'
11506 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11507 shlibpath_var=LD_LIBRARY_PATH
11508 shlibpath_overrides_runpath=no
11509 hardcode_into_libs=yes
11510 ;;
11511
a.rottmann9bc8b932004-02-29 15:18:31 +000011512irix5* | irix6* | nonstopux*)
11513 case $host_os in
11514 nonstopux*) version_type=nonstopux ;;
11515 *)
11516 if test "$lt_cv_prog_gnu_ld" = yes; then
11517 version_type=linux
11518 else
11519 version_type=irix
11520 fi ;;
11521 esac
11522 need_lib_prefix=no
11523 need_version=no
11524 soname_spec='${libname}${release}${shared_ext}$major'
11525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11526 case $host_os in
11527 irix5* | nonstopux*)
11528 libsuff= shlibsuff=
11529 ;;
11530 *)
11531 case $LD in # libtool.m4 will add one of these switches to LD
11532 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11533 libsuff= shlibsuff= libmagic=32-bit;;
11534 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11535 libsuff=32 shlibsuff=N32 libmagic=N32;;
11536 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11537 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11538 *) libsuff= shlibsuff= libmagic=never-match;;
11539 esac
11540 ;;
11541 esac
11542 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11543 shlibpath_overrides_runpath=no
11544 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11545 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11546 hardcode_into_libs=yes
11547 ;;
11548
11549# No shared lib support for Linux oldld, aout, or coff.
11550linux*oldld* | linux*aout* | linux*coff*)
11551 dynamic_linker=no
11552 ;;
11553
11554# This must be Linux ELF.
11555linux*)
11556 version_type=linux
11557 need_lib_prefix=no
11558 need_version=no
11559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11560 soname_spec='${libname}${release}${shared_ext}$major'
11561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11562 shlibpath_var=LD_LIBRARY_PATH
11563 shlibpath_overrides_runpath=no
11564 # This implies no fast_install, which is unacceptable.
11565 # Some rework will be needed to allow for fast_install
11566 # before this can be enabled.
11567 hardcode_into_libs=yes
11568
11569 # Append ld.so.conf contents to the search path
11570 if test -f /etc/ld.so.conf; then
vapier7f19c022007-02-17 14:46:31 +000011571 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11572 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +000011573 fi
11574
11575 # We used to test for /lib/ld.so.1 and disable shared libraries on
11576 # powerpc, because MkLinux only supported shared libraries with the
11577 # GNU dynamic linker. Since this was broken with cross compilers,
11578 # most powerpc-linux boxes support dynamic linking these days and
11579 # people can always --disable-shared, the test was removed, and we
11580 # assume the GNU/Linux dynamic linker is in use.
11581 dynamic_linker='GNU/Linux ld.so'
11582 ;;
11583
11584knetbsd*-gnu)
11585 version_type=linux
11586 need_lib_prefix=no
11587 need_version=no
11588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11589 soname_spec='${libname}${release}${shared_ext}$major'
11590 shlibpath_var=LD_LIBRARY_PATH
11591 shlibpath_overrides_runpath=no
11592 hardcode_into_libs=yes
11593 dynamic_linker='GNU ld.so'
11594 ;;
11595
11596netbsd*)
11597 version_type=sunos
11598 need_lib_prefix=no
11599 need_version=no
11600 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11603 dynamic_linker='NetBSD (a.out) ld.so'
11604 else
11605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11606 soname_spec='${libname}${release}${shared_ext}$major'
11607 dynamic_linker='NetBSD ld.elf_so'
11608 fi
11609 shlibpath_var=LD_LIBRARY_PATH
11610 shlibpath_overrides_runpath=yes
11611 hardcode_into_libs=yes
11612 ;;
11613
11614newsos6)
11615 version_type=linux
11616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11617 shlibpath_var=LD_LIBRARY_PATH
11618 shlibpath_overrides_runpath=yes
11619 ;;
11620
11621nto-qnx*)
11622 version_type=linux
11623 need_lib_prefix=no
11624 need_version=no
11625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11626 soname_spec='${libname}${release}${shared_ext}$major'
11627 shlibpath_var=LD_LIBRARY_PATH
11628 shlibpath_overrides_runpath=yes
11629 ;;
11630
11631openbsd*)
11632 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +000011633 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +000011634 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +000011635 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11636 case $host_os in
11637 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11638 *) need_version=no ;;
11639 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000011640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11642 shlibpath_var=LD_LIBRARY_PATH
11643 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11644 case $host_os in
11645 openbsd2.[89] | openbsd2.[89].*)
11646 shlibpath_overrides_runpath=no
11647 ;;
11648 *)
11649 shlibpath_overrides_runpath=yes
11650 ;;
11651 esac
11652 else
11653 shlibpath_overrides_runpath=yes
11654 fi
11655 ;;
11656
11657os2*)
11658 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +000011659 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000011660 need_lib_prefix=no
11661 library_names_spec='$libname${shared_ext} $libname.a'
11662 dynamic_linker='OS/2 ld.exe'
11663 shlibpath_var=LIBPATH
11664 ;;
11665
11666osf3* | osf4* | osf5*)
11667 version_type=osf
11668 need_lib_prefix=no
11669 need_version=no
11670 soname_spec='${libname}${release}${shared_ext}$major'
11671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11672 shlibpath_var=LD_LIBRARY_PATH
11673 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11674 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11675 ;;
11676
a.rottmann9bc8b932004-02-29 15:18:31 +000011677solaris*)
11678 version_type=linux
11679 need_lib_prefix=no
11680 need_version=no
11681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11682 soname_spec='${libname}${release}${shared_ext}$major'
11683 shlibpath_var=LD_LIBRARY_PATH
11684 shlibpath_overrides_runpath=yes
11685 hardcode_into_libs=yes
11686 # ldd complains unless libraries are executable
11687 postinstall_cmds='chmod +x $lib'
11688 ;;
11689
11690sunos4*)
11691 version_type=sunos
11692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11693 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11694 shlibpath_var=LD_LIBRARY_PATH
11695 shlibpath_overrides_runpath=yes
11696 if test "$with_gnu_ld" = yes; then
11697 need_lib_prefix=no
11698 fi
11699 need_version=yes
11700 ;;
11701
vapier7f19c022007-02-17 14:46:31 +000011702sysv4 | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011703 version_type=linux
11704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11705 soname_spec='${libname}${release}${shared_ext}$major'
11706 shlibpath_var=LD_LIBRARY_PATH
11707 case $host_vendor in
11708 sni)
11709 shlibpath_overrides_runpath=no
11710 need_lib_prefix=no
11711 export_dynamic_flag_spec='${wl}-Blargedynsym'
11712 runpath_var=LD_RUN_PATH
11713 ;;
11714 siemens)
11715 need_lib_prefix=no
11716 ;;
11717 motorola)
11718 need_lib_prefix=no
11719 need_version=no
11720 shlibpath_overrides_runpath=no
11721 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11722 ;;
11723 esac
11724 ;;
11725
11726sysv4*MP*)
11727 if test -d /usr/nec ;then
11728 version_type=linux
11729 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11730 soname_spec='$libname${shared_ext}.$major'
11731 shlibpath_var=LD_LIBRARY_PATH
11732 fi
11733 ;;
11734
vapier7f19c022007-02-17 14:46:31 +000011735sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11736 version_type=freebsd-elf
11737 need_lib_prefix=no
11738 need_version=no
11739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11740 soname_spec='${libname}${release}${shared_ext}$major'
11741 shlibpath_var=LD_LIBRARY_PATH
11742 hardcode_into_libs=yes
11743 if test "$with_gnu_ld" = yes; then
11744 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11745 shlibpath_overrides_runpath=no
11746 else
11747 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11748 shlibpath_overrides_runpath=yes
11749 case $host_os in
11750 sco3.2v5*)
11751 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11752 ;;
11753 esac
11754 fi
11755 sys_lib_dlsearch_path_spec='/usr/lib'
11756 ;;
11757
a.rottmann9bc8b932004-02-29 15:18:31 +000011758uts4*)
11759 version_type=linux
11760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11761 soname_spec='${libname}${release}${shared_ext}$major'
11762 shlibpath_var=LD_LIBRARY_PATH
11763 ;;
11764
11765*)
11766 dynamic_linker=no
11767 ;;
11768esac
drh613a0fe2007-11-23 17:31:17 +000011769echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11770echo "${ECHO_T}$dynamic_linker" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000011771test "$dynamic_linker" = no && can_build_shared=no
11772
vapier7f19c022007-02-17 14:46:31 +000011773variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11774if test "$GCC" = yes; then
11775 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11776fi
11777
drh613a0fe2007-11-23 17:31:17 +000011778echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11779echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000011780hardcode_action_CXX=
11781if test -n "$hardcode_libdir_flag_spec_CXX" || \
vapier7f19c022007-02-17 14:46:31 +000011782 test -n "$runpath_var_CXX" || \
11783 test "X$hardcode_automatic_CXX" = "Xyes" ; then
a.rottmann9bc8b932004-02-29 15:18:31 +000011784
11785 # We can hardcode non-existant directories.
11786 if test "$hardcode_direct_CXX" != no &&
11787 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11788 # have to relink, otherwise we might link with an installed library
11789 # when we should be linking with a yet-to-be-installed one
11790 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11791 test "$hardcode_minus_L_CXX" != no; then
11792 # Linking always hardcodes the temporary library directory.
11793 hardcode_action_CXX=relink
11794 else
11795 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11796 hardcode_action_CXX=immediate
11797 fi
11798else
11799 # We cannot hardcode anything, or else we can only hardcode existing
11800 # directories.
11801 hardcode_action_CXX=unsupported
11802fi
drh613a0fe2007-11-23 17:31:17 +000011803echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11804echo "${ECHO_T}$hardcode_action_CXX" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000011805
11806if test "$hardcode_action_CXX" = relink; then
11807 # Fast installation is not supported
11808 enable_fast_install=no
11809elif test "$shlibpath_overrides_runpath" = yes ||
11810 test "$enable_shared" = no; then
11811 # Fast installation is not necessary
11812 enable_fast_install=needless
11813fi
11814
a.rottmann9bc8b932004-02-29 15:18:31 +000011815
11816# The else clause should only fire when bootstrapping the
11817# libtool distribution, otherwise you forgot to ship ltmain.sh
11818# with your package, and you will get complaints that there are
11819# no rules to generate ltmain.sh.
11820if test -f "$ltmain"; then
11821 # See if we are running on zsh, and set the options which allow our commands through
11822 # without removal of \ escapes.
11823 if test -n "${ZSH_VERSION+set}" ; then
11824 setopt NO_GLOB_SUBST
11825 fi
11826 # Now quote all the things that may contain metacharacters while being
11827 # careful not to overquote the AC_SUBSTed values. We take copies of the
11828 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +000011829 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a.rottmann9bc8b932004-02-29 15:18:31 +000011830 SED SHELL STRIP \
11831 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11832 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11833 deplibs_check_method reload_flag reload_cmds need_locks \
11834 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11835 lt_cv_sys_global_symbol_to_c_name_address \
11836 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11837 old_postinstall_cmds old_postuninstall_cmds \
11838 compiler_CXX \
11839 CC_CXX \
11840 LD_CXX \
11841 lt_prog_compiler_wl_CXX \
11842 lt_prog_compiler_pic_CXX \
11843 lt_prog_compiler_static_CXX \
11844 lt_prog_compiler_no_builtin_flag_CXX \
11845 export_dynamic_flag_spec_CXX \
11846 thread_safe_flag_spec_CXX \
11847 whole_archive_flag_spec_CXX \
11848 enable_shared_with_static_runtimes_CXX \
11849 old_archive_cmds_CXX \
11850 old_archive_from_new_cmds_CXX \
11851 predep_objects_CXX \
11852 postdep_objects_CXX \
11853 predeps_CXX \
11854 postdeps_CXX \
11855 compiler_lib_search_path_CXX \
11856 archive_cmds_CXX \
11857 archive_expsym_cmds_CXX \
11858 postinstall_cmds_CXX \
11859 postuninstall_cmds_CXX \
11860 old_archive_from_expsyms_cmds_CXX \
11861 allow_undefined_flag_CXX \
11862 no_undefined_flag_CXX \
11863 export_symbols_cmds_CXX \
11864 hardcode_libdir_flag_spec_CXX \
11865 hardcode_libdir_flag_spec_ld_CXX \
11866 hardcode_libdir_separator_CXX \
11867 hardcode_automatic_CXX \
11868 module_cmds_CXX \
11869 module_expsym_cmds_CXX \
11870 lt_cv_prog_compiler_c_o_CXX \
11871 exclude_expsyms_CXX \
11872 include_expsyms_CXX; do
11873
11874 case $var in
11875 old_archive_cmds_CXX | \
11876 old_archive_from_new_cmds_CXX | \
11877 archive_cmds_CXX | \
11878 archive_expsym_cmds_CXX | \
11879 module_cmds_CXX | \
11880 module_expsym_cmds_CXX | \
11881 old_archive_from_expsyms_cmds_CXX | \
11882 export_symbols_cmds_CXX | \
11883 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11884 postinstall_cmds | postuninstall_cmds | \
11885 old_postinstall_cmds | old_postuninstall_cmds | \
11886 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11887 # Double-quote double-evaled strings.
11888 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11889 ;;
11890 *)
11891 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11892 ;;
11893 esac
11894 done
11895
11896 case $lt_echo in
11897 *'\$0 --fallback-echo"')
11898 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11899 ;;
11900 esac
11901
11902cfgfile="$ofile"
11903
11904 cat <<__EOF__ >> "$cfgfile"
11905# ### BEGIN LIBTOOL TAG CONFIG: $tagname
11906
11907# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11908
11909# Shell to use when invoking shell scripts.
11910SHELL=$lt_SHELL
11911
11912# Whether or not to build shared libraries.
11913build_libtool_libs=$enable_shared
11914
11915# Whether or not to build static libraries.
11916build_old_libs=$enable_static
11917
11918# Whether or not to add -lc for building shared libraries.
11919build_libtool_need_lc=$archive_cmds_need_lc_CXX
11920
11921# Whether or not to disallow shared libs when runtime libs are static
11922allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11923
11924# Whether or not to optimize for fast installation.
11925fast_install=$enable_fast_install
11926
11927# The host system.
11928host_alias=$host_alias
11929host=$host
vapier7f19c022007-02-17 14:46:31 +000011930host_os=$host_os
11931
11932# The build system.
11933build_alias=$build_alias
11934build=$build
11935build_os=$build_os
a.rottmann9bc8b932004-02-29 15:18:31 +000011936
11937# An echo program that does not interpret backslashes.
11938echo=$lt_echo
11939
11940# The archiver.
11941AR=$lt_AR
11942AR_FLAGS=$lt_AR_FLAGS
11943
11944# A C compiler.
11945LTCC=$lt_LTCC
11946
vapier7f19c022007-02-17 14:46:31 +000011947# LTCC compiler flags.
11948LTCFLAGS=$lt_LTCFLAGS
11949
a.rottmann9bc8b932004-02-29 15:18:31 +000011950# A language-specific compiler.
11951CC=$lt_compiler_CXX
11952
11953# Is the compiler the GNU C compiler?
11954with_gcc=$GCC_CXX
11955
11956# An ERE matcher.
11957EGREP=$lt_EGREP
11958
11959# The linker used to build libraries.
11960LD=$lt_LD_CXX
11961
11962# Whether we need hard or soft links.
11963LN_S=$lt_LN_S
11964
11965# A BSD-compatible nm program.
11966NM=$lt_NM
11967
11968# A symbol stripping program
11969STRIP=$lt_STRIP
11970
11971# Used to examine libraries when file_magic_cmd begins "file"
11972MAGIC_CMD=$MAGIC_CMD
11973
11974# Used on cygwin: DLL creation program.
11975DLLTOOL="$DLLTOOL"
11976
11977# Used on cygwin: object dumper.
11978OBJDUMP="$OBJDUMP"
11979
11980# Used on cygwin: assembler.
11981AS="$AS"
11982
11983# The name of the directory that contains temporary libtool files.
11984objdir=$objdir
11985
11986# How to create reloadable object files.
11987reload_flag=$lt_reload_flag
11988reload_cmds=$lt_reload_cmds
11989
11990# How to pass a linker flag through the compiler.
11991wl=$lt_lt_prog_compiler_wl_CXX
11992
11993# Object file suffix (normally "o").
11994objext="$ac_objext"
11995
11996# Old archive suffix (normally "a").
11997libext="$libext"
11998
11999# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +000012000shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +000012001
12002# Executable file suffix (normally "").
12003exeext="$exeext"
12004
12005# Additional compiler flags for building library objects.
12006pic_flag=$lt_lt_prog_compiler_pic_CXX
12007pic_mode=$pic_mode
12008
12009# What is the maximum length of a command?
12010max_cmd_len=$lt_cv_sys_max_cmd_len
12011
12012# Does compiler simultaneously support -c and -o options?
12013compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12014
vapier7f19c022007-02-17 14:46:31 +000012015# Must we lock files when doing compilation?
a.rottmann9bc8b932004-02-29 15:18:31 +000012016need_locks=$lt_need_locks
12017
12018# Do we need the lib prefix for modules?
12019need_lib_prefix=$need_lib_prefix
12020
12021# Do we need a version for libraries?
12022need_version=$need_version
12023
12024# Whether dlopen is supported.
12025dlopen_support=$enable_dlopen
12026
12027# Whether dlopen of programs is supported.
12028dlopen_self=$enable_dlopen_self
12029
12030# Whether dlopen of statically linked programs is supported.
12031dlopen_self_static=$enable_dlopen_self_static
12032
12033# Compiler flag to prevent dynamic linking.
12034link_static_flag=$lt_lt_prog_compiler_static_CXX
12035
12036# Compiler flag to turn off builtin functions.
12037no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12038
12039# Compiler flag to allow reflexive dlopens.
12040export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12041
12042# Compiler flag to generate shared objects directly from archives.
12043whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12044
12045# Compiler flag to generate thread-safe objects.
12046thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12047
12048# Library versioning type.
12049version_type=$version_type
12050
12051# Format of library name prefix.
12052libname_spec=$lt_libname_spec
12053
12054# List of archive names. First name is the real one, the rest are links.
12055# The last name is the one that the linker finds with -lNAME.
12056library_names_spec=$lt_library_names_spec
12057
12058# The coded name of the library, if different from the real name.
12059soname_spec=$lt_soname_spec
12060
12061# Commands used to build and install an old-style archive.
12062RANLIB=$lt_RANLIB
12063old_archive_cmds=$lt_old_archive_cmds_CXX
12064old_postinstall_cmds=$lt_old_postinstall_cmds
12065old_postuninstall_cmds=$lt_old_postuninstall_cmds
12066
12067# Create an old-style archive from a shared archive.
12068old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12069
12070# Create a temporary old-style archive to link instead of a shared archive.
12071old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12072
12073# Commands used to build and install a shared archive.
12074archive_cmds=$lt_archive_cmds_CXX
12075archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12076postinstall_cmds=$lt_postinstall_cmds
12077postuninstall_cmds=$lt_postuninstall_cmds
12078
12079# Commands used to build a loadable module (assumed same as above if empty)
12080module_cmds=$lt_module_cmds_CXX
12081module_expsym_cmds=$lt_module_expsym_cmds_CXX
12082
12083# Commands to strip libraries.
12084old_striplib=$lt_old_striplib
12085striplib=$lt_striplib
12086
12087# Dependencies to place before the objects being linked to create a
12088# shared library.
12089predep_objects=$lt_predep_objects_CXX
12090
12091# Dependencies to place after the objects being linked to create a
12092# shared library.
12093postdep_objects=$lt_postdep_objects_CXX
12094
12095# Dependencies to place before the objects being linked to create a
12096# shared library.
12097predeps=$lt_predeps_CXX
12098
12099# Dependencies to place after the objects being linked to create a
12100# shared library.
12101postdeps=$lt_postdeps_CXX
12102
12103# The library search path used internally by the compiler when linking
12104# a shared library.
12105compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12106
12107# Method to check whether dependent libraries are shared objects.
12108deplibs_check_method=$lt_deplibs_check_method
12109
12110# Command to use when deplibs_check_method == file_magic.
12111file_magic_cmd=$lt_file_magic_cmd
12112
12113# Flag that allows shared libraries with undefined symbols to be built.
12114allow_undefined_flag=$lt_allow_undefined_flag_CXX
12115
12116# Flag that forces no undefined symbols.
12117no_undefined_flag=$lt_no_undefined_flag_CXX
12118
12119# Commands used to finish a libtool library installation in a directory.
12120finish_cmds=$lt_finish_cmds
12121
12122# Same as above, but a single script fragment to be evaled but not shown.
12123finish_eval=$lt_finish_eval
12124
12125# Take the output of nm and produce a listing of raw symbols and C names.
12126global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12127
12128# Transform the output of nm in a proper C declaration
12129global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12130
12131# Transform the output of nm in a C name address pair
12132global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12133
12134# This is the shared library runtime path variable.
12135runpath_var=$runpath_var
12136
12137# This is the shared library path variable.
12138shlibpath_var=$shlibpath_var
12139
12140# Is shlibpath searched before the hard-coded library search path?
12141shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12142
12143# How to hardcode a shared library path into an executable.
12144hardcode_action=$hardcode_action_CXX
12145
12146# Whether we should hardcode library paths into libraries.
12147hardcode_into_libs=$hardcode_into_libs
12148
12149# Flag to hardcode \$libdir into a binary during linking.
12150# This must work even if \$libdir does not exist.
12151hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12152
12153# If ld is used when linking, flag to hardcode \$libdir into
12154# a binary during linking. This must work even if \$libdir does
12155# not exist.
12156hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12157
12158# Whether we need a single -rpath flag with a separated argument.
12159hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12160
12161# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12162# resulting binary.
12163hardcode_direct=$hardcode_direct_CXX
12164
12165# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12166# resulting binary.
12167hardcode_minus_L=$hardcode_minus_L_CXX
12168
12169# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12170# the resulting binary.
12171hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12172
12173# Set to yes if building a shared library automatically hardcodes DIR into the library
12174# and all subsequent libraries and executables linked against it.
12175hardcode_automatic=$hardcode_automatic_CXX
12176
12177# Variables whose values should be saved in libtool wrapper scripts and
12178# restored at relink time.
12179variables_saved_for_relink="$variables_saved_for_relink"
12180
12181# Whether libtool must link a program against all its dependency libraries.
12182link_all_deplibs=$link_all_deplibs_CXX
12183
12184# Compile-time system search path for libraries
12185sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12186
12187# Run-time system search path for libraries
12188sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12189
12190# Fix the shell variable \$srcfile for the compiler.
12191fix_srcfile_path="$fix_srcfile_path_CXX"
12192
12193# Set to yes if exported symbols are required.
12194always_export_symbols=$always_export_symbols_CXX
12195
12196# The commands to list exported symbols.
12197export_symbols_cmds=$lt_export_symbols_cmds_CXX
12198
12199# The commands to extract the exported symbol list from a shared archive.
12200extract_expsyms_cmds=$lt_extract_expsyms_cmds
12201
12202# Symbols that should not be listed in the preloaded symbols.
12203exclude_expsyms=$lt_exclude_expsyms_CXX
12204
12205# Symbols that must always be exported.
12206include_expsyms=$lt_include_expsyms_CXX
12207
12208# ### END LIBTOOL TAG CONFIG: $tagname
12209
12210__EOF__
12211
12212
12213else
12214 # If there is no Makefile yet, we rely on a make rule to execute
12215 # `config.status --recheck' to rerun these tests and create the
12216 # libtool script then.
12217 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12218 if test -f "$ltmain_in"; then
12219 test -f Makefile && make "$ltmain"
12220 fi
12221fi
12222
12223
12224ac_ext=c
12225ac_cpp='$CPP $CPPFLAGS'
12226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12228ac_compiler_gnu=$ac_cv_c_compiler_gnu
12229
12230CC=$lt_save_CC
12231LDCXX=$LD
12232LD=$lt_save_LD
12233GCC=$lt_save_GCC
12234with_gnu_ldcxx=$with_gnu_ld
12235with_gnu_ld=$lt_save_with_gnu_ld
12236lt_cv_path_LDCXX=$lt_cv_path_LD
12237lt_cv_path_LD=$lt_save_path_LD
12238lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12239lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12240
12241 else
12242 tagname=""
12243 fi
12244 ;;
12245
12246 F77)
12247 if test -n "$F77" && test "X$F77" != "Xno"; then
12248
12249ac_ext=f
12250ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12251ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12252ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12253
12254
12255archive_cmds_need_lc_F77=no
12256allow_undefined_flag_F77=
12257always_export_symbols_F77=no
12258archive_expsym_cmds_F77=
12259export_dynamic_flag_spec_F77=
12260hardcode_direct_F77=no
12261hardcode_libdir_flag_spec_F77=
12262hardcode_libdir_flag_spec_ld_F77=
12263hardcode_libdir_separator_F77=
12264hardcode_minus_L_F77=no
12265hardcode_automatic_F77=no
12266module_cmds_F77=
12267module_expsym_cmds_F77=
12268link_all_deplibs_F77=unknown
12269old_archive_cmds_F77=$old_archive_cmds
12270no_undefined_flag_F77=
12271whole_archive_flag_spec_F77=
12272enable_shared_with_static_runtimes_F77=no
12273
12274# Source file extension for f77 test sources.
12275ac_ext=f
12276
12277# Object file extension for compiled f77 test sources.
12278objext=o
12279objext_F77=$objext
12280
12281# Code to be used in simple compile tests
12282lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12283
12284# Code to be used in simple link tests
12285lt_simple_link_test_code=" program t\n end\n"
12286
12287# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12288
12289# If no C compiler was specified, use CC.
12290LTCC=${LTCC-"$CC"}
12291
vapier7f19c022007-02-17 14:46:31 +000012292# If no C compiler flags were specified, use CFLAGS.
12293LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12294
a.rottmann9bc8b932004-02-29 15:18:31 +000012295# Allow CC to be a program name with arguments.
12296compiler=$CC
12297
12298
vapier7f19c022007-02-17 14:46:31 +000012299# save warnings/boilerplate of simple test code
12300ac_outfile=conftest.$ac_objext
12301printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12302eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12303_lt_compiler_boilerplate=`cat conftest.err`
12304$rm conftest*
12305
12306ac_outfile=conftest.$ac_objext
12307printf "$lt_simple_link_test_code" >conftest.$ac_ext
12308eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12309_lt_linker_boilerplate=`cat conftest.err`
12310$rm conftest*
12311
12312
a.rottmann9bc8b932004-02-29 15:18:31 +000012313# Allow CC to be a program name with arguments.
12314lt_save_CC="$CC"
12315CC=${F77-"f77"}
12316compiler=$CC
12317compiler_F77=$CC
vapier7f19c022007-02-17 14:46:31 +000012318for cc_temp in $compiler""; do
12319 case $cc_temp in
12320 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12321 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12322 \-*) ;;
12323 *) break;;
12324 esac
12325done
12326cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a.rottmann9bc8b932004-02-29 15:18:31 +000012327
a.rottmann9bc8b932004-02-29 15:18:31 +000012328
drh613a0fe2007-11-23 17:31:17 +000012329echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12330echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12331echo "$as_me:$LINENO: result: $can_build_shared" >&5
12332echo "${ECHO_T}$can_build_shared" >&6
vapier7f19c022007-02-17 14:46:31 +000012333
drh613a0fe2007-11-23 17:31:17 +000012334echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12335echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000012336test "$can_build_shared" = "no" && enable_shared=no
12337
12338# On AIX, shared libraries and static libraries use the same namespace, and
12339# are all built from PIC.
vapier7f19c022007-02-17 14:46:31 +000012340case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +000012341aix3*)
12342 test "$enable_shared" = yes && enable_static=no
12343 if test -n "$RANLIB"; then
12344 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12345 postinstall_cmds='$RANLIB $lib'
12346 fi
12347 ;;
vapier7f19c022007-02-17 14:46:31 +000012348aix4* | aix5*)
12349 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12350 test "$enable_shared" = yes && enable_static=no
12351 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000012352 ;;
12353esac
drh613a0fe2007-11-23 17:31:17 +000012354echo "$as_me:$LINENO: result: $enable_shared" >&5
12355echo "${ECHO_T}$enable_shared" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000012356
drh613a0fe2007-11-23 17:31:17 +000012357echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12358echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000012359# Make sure either enable_shared or enable_static is yes.
12360test "$enable_shared" = yes || enable_static=yes
drh613a0fe2007-11-23 17:31:17 +000012361echo "$as_me:$LINENO: result: $enable_static" >&5
12362echo "${ECHO_T}$enable_static" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000012363
12364GCC_F77="$G77"
12365LD_F77="$LD"
12366
12367lt_prog_compiler_wl_F77=
12368lt_prog_compiler_pic_F77=
12369lt_prog_compiler_static_F77=
12370
drh613a0fe2007-11-23 17:31:17 +000012371echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12372echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000012373
12374 if test "$GCC" = yes; then
12375 lt_prog_compiler_wl_F77='-Wl,'
12376 lt_prog_compiler_static_F77='-static'
12377
12378 case $host_os in
12379 aix*)
12380 # All AIX code is PIC.
12381 if test "$host_cpu" = ia64; then
12382 # AIX 5 now supports IA64 processor
12383 lt_prog_compiler_static_F77='-Bstatic'
12384 fi
12385 ;;
12386
12387 amigaos*)
12388 # FIXME: we need at least 68020 code to build shared libraries, but
12389 # adding the `-m68020' flag to GCC prevents building anything better,
12390 # like `-m68040'.
12391 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12392 ;;
12393
12394 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12395 # PIC is the default for these OSes.
12396 ;;
12397
12398 mingw* | pw32* | os2*)
12399 # This hack is so that the source file can tell whether it is being
12400 # built for inclusion in a dll (and should export symbols for example).
12401 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12402 ;;
12403
12404 darwin* | rhapsody*)
12405 # PIC is the default on this platform
12406 # Common symbols not allowed in MH_DYLIB files
12407 lt_prog_compiler_pic_F77='-fno-common'
12408 ;;
12409
vapier7f19c022007-02-17 14:46:31 +000012410 interix3*)
12411 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12412 # Instead, we relocate shared libraries at runtime.
12413 ;;
12414
a.rottmann9bc8b932004-02-29 15:18:31 +000012415 msdosdjgpp*)
12416 # Just because we use GCC doesn't mean we suddenly get shared libraries
12417 # on systems that don't support them.
12418 lt_prog_compiler_can_build_shared_F77=no
12419 enable_shared=no
12420 ;;
12421
12422 sysv4*MP*)
12423 if test -d /usr/nec; then
12424 lt_prog_compiler_pic_F77=-Kconform_pic
12425 fi
12426 ;;
12427
12428 hpux*)
12429 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12430 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000012431 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000012432 hppa*64*|ia64*)
12433 # +Z the default
12434 ;;
12435 *)
12436 lt_prog_compiler_pic_F77='-fPIC'
12437 ;;
12438 esac
12439 ;;
12440
12441 *)
12442 lt_prog_compiler_pic_F77='-fPIC'
12443 ;;
12444 esac
12445 else
12446 # PORTME Check for flag to pass linker flags through the system compiler.
12447 case $host_os in
12448 aix*)
12449 lt_prog_compiler_wl_F77='-Wl,'
12450 if test "$host_cpu" = ia64; then
12451 # AIX 5 now supports IA64 processor
12452 lt_prog_compiler_static_F77='-Bstatic'
12453 else
12454 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12455 fi
12456 ;;
vapier7f19c022007-02-17 14:46:31 +000012457 darwin*)
12458 # PIC is the default on this platform
12459 # Common symbols not allowed in MH_DYLIB files
12460 case $cc_basename in
12461 xlc*)
12462 lt_prog_compiler_pic_F77='-qnocommon'
12463 lt_prog_compiler_wl_F77='-Wl,'
12464 ;;
12465 esac
12466 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000012467
12468 mingw* | pw32* | os2*)
12469 # This hack is so that the source file can tell whether it is being
12470 # built for inclusion in a dll (and should export symbols for example).
12471 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12472 ;;
12473
12474 hpux9* | hpux10* | hpux11*)
12475 lt_prog_compiler_wl_F77='-Wl,'
12476 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12477 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000012478 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000012479 hppa*64*|ia64*)
12480 # +Z the default
12481 ;;
12482 *)
12483 lt_prog_compiler_pic_F77='+Z'
12484 ;;
12485 esac
12486 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12487 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12488 ;;
12489
12490 irix5* | irix6* | nonstopux*)
12491 lt_prog_compiler_wl_F77='-Wl,'
12492 # PIC (with -KPIC) is the default.
12493 lt_prog_compiler_static_F77='-non_shared'
12494 ;;
12495
12496 newsos6)
12497 lt_prog_compiler_pic_F77='-KPIC'
12498 lt_prog_compiler_static_F77='-Bstatic'
12499 ;;
12500
12501 linux*)
vapier7f19c022007-02-17 14:46:31 +000012502 case $cc_basename in
a.rottmann9bc8b932004-02-29 15:18:31 +000012503 icc* | ecc*)
12504 lt_prog_compiler_wl_F77='-Wl,'
12505 lt_prog_compiler_pic_F77='-KPIC'
12506 lt_prog_compiler_static_F77='-static'
12507 ;;
vapier7f19c022007-02-17 14:46:31 +000012508 pgcc* | pgf77* | pgf90* | pgf95*)
12509 # Portland Group compilers (*not* the Pentium gcc compiler,
12510 # which looks to be a dead project)
12511 lt_prog_compiler_wl_F77='-Wl,'
12512 lt_prog_compiler_pic_F77='-fpic'
12513 lt_prog_compiler_static_F77='-Bstatic'
12514 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000012515 ccc*)
12516 lt_prog_compiler_wl_F77='-Wl,'
12517 # All Alpha code is PIC.
12518 lt_prog_compiler_static_F77='-non_shared'
12519 ;;
12520 esac
12521 ;;
12522
12523 osf3* | osf4* | osf5*)
12524 lt_prog_compiler_wl_F77='-Wl,'
12525 # All OSF/1 code is PIC.
12526 lt_prog_compiler_static_F77='-non_shared'
12527 ;;
12528
a.rottmann9bc8b932004-02-29 15:18:31 +000012529 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +000012530 lt_prog_compiler_pic_F77='-KPIC'
12531 lt_prog_compiler_static_F77='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +000012532 case $cc_basename in
12533 f77* | f90* | f95*)
12534 lt_prog_compiler_wl_F77='-Qoption ld ';;
12535 *)
12536 lt_prog_compiler_wl_F77='-Wl,';;
12537 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000012538 ;;
12539
12540 sunos4*)
12541 lt_prog_compiler_wl_F77='-Qoption ld '
12542 lt_prog_compiler_pic_F77='-PIC'
12543 lt_prog_compiler_static_F77='-Bstatic'
12544 ;;
12545
vapier7f19c022007-02-17 14:46:31 +000012546 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000012547 lt_prog_compiler_wl_F77='-Wl,'
12548 lt_prog_compiler_pic_F77='-KPIC'
12549 lt_prog_compiler_static_F77='-Bstatic'
12550 ;;
12551
12552 sysv4*MP*)
12553 if test -d /usr/nec ;then
12554 lt_prog_compiler_pic_F77='-Kconform_pic'
12555 lt_prog_compiler_static_F77='-Bstatic'
12556 fi
12557 ;;
12558
vapier7f19c022007-02-17 14:46:31 +000012559 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12560 lt_prog_compiler_wl_F77='-Wl,'
12561 lt_prog_compiler_pic_F77='-KPIC'
12562 lt_prog_compiler_static_F77='-Bstatic'
12563 ;;
12564
12565 unicos*)
12566 lt_prog_compiler_wl_F77='-Wl,'
12567 lt_prog_compiler_can_build_shared_F77=no
12568 ;;
12569
a.rottmann9bc8b932004-02-29 15:18:31 +000012570 uts4*)
12571 lt_prog_compiler_pic_F77='-pic'
12572 lt_prog_compiler_static_F77='-Bstatic'
12573 ;;
12574
12575 *)
12576 lt_prog_compiler_can_build_shared_F77=no
12577 ;;
12578 esac
12579 fi
12580
drh613a0fe2007-11-23 17:31:17 +000012581echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12582echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000012583
12584#
12585# Check to make sure the PIC flag actually works.
12586#
12587if test -n "$lt_prog_compiler_pic_F77"; then
12588
drh613a0fe2007-11-23 17:31:17 +000012589echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12590echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000012591if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
12593else
12594 lt_prog_compiler_pic_works_F77=no
12595 ac_outfile=conftest.$ac_objext
12596 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12597 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12598 # Insert the option either (1) after the last *FLAGS variable, or
12599 # (2) before a word containing "conftest.", or (3) at the end.
12600 # Note that $ac_compile itself does not contain backslashes and begins
12601 # with a dollar sign (not a hyphen), so the echo should work correctly.
12602 # The option is referenced via a variable to avoid confusing sed.
12603 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000012604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000012605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12606 -e 's:$: $lt_compiler_flag:'`
drh613a0fe2007-11-23 17:31:17 +000012607 (eval echo "\"\$as_me:12607: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000012608 (eval "$lt_compile" 2>conftest.err)
12609 ac_status=$?
12610 cat conftest.err >&5
drh613a0fe2007-11-23 17:31:17 +000012611 echo "$as_me:12611: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000012612 if (exit $ac_status) && test -s "$ac_outfile"; then
12613 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +000012614 # So say no if there are warnings other than the usual output.
12615 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12616 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12617 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000012618 lt_prog_compiler_pic_works_F77=yes
12619 fi
12620 fi
12621 $rm conftest*
12622
12623fi
drh613a0fe2007-11-23 17:31:17 +000012624echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12625echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000012626
12627if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12628 case $lt_prog_compiler_pic_F77 in
12629 "" | " "*) ;;
12630 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12631 esac
12632else
12633 lt_prog_compiler_pic_F77=
12634 lt_prog_compiler_can_build_shared_F77=no
12635fi
12636
12637fi
vapier7f19c022007-02-17 14:46:31 +000012638case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +000012639 # For platforms which do not support PIC, -DPIC is meaningless:
12640 *djgpp*)
12641 lt_prog_compiler_pic_F77=
12642 ;;
12643 *)
12644 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12645 ;;
12646esac
12647
vapier7f19c022007-02-17 14:46:31 +000012648#
12649# Check to make sure the static flag actually works.
12650#
12651wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
drh613a0fe2007-11-23 17:31:17 +000012652echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12653echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
vapier7f19c022007-02-17 14:46:31 +000012654if test "${lt_prog_compiler_static_works_F77+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12656else
12657 lt_prog_compiler_static_works_F77=no
12658 save_LDFLAGS="$LDFLAGS"
12659 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12660 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12661 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12662 # The linker can only warn and ignore the option if not recognized
12663 # So say no if there are warnings
12664 if test -s conftest.err; then
12665 # Append any errors to the config.log.
12666 cat conftest.err 1>&5
12667 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12669 if diff conftest.exp conftest.er2 >/dev/null; then
12670 lt_prog_compiler_static_works_F77=yes
12671 fi
12672 else
12673 lt_prog_compiler_static_works_F77=yes
12674 fi
12675 fi
12676 $rm conftest*
12677 LDFLAGS="$save_LDFLAGS"
12678
12679fi
drh613a0fe2007-11-23 17:31:17 +000012680echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
12681echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
vapier7f19c022007-02-17 14:46:31 +000012682
12683if test x"$lt_prog_compiler_static_works_F77" = xyes; then
12684 :
12685else
12686 lt_prog_compiler_static_F77=
12687fi
12688
12689
drh613a0fe2007-11-23 17:31:17 +000012690echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12691echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000012692if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12693 echo $ECHO_N "(cached) $ECHO_C" >&6
12694else
12695 lt_cv_prog_compiler_c_o_F77=no
12696 $rm -r conftest 2>/dev/null
12697 mkdir conftest
12698 cd conftest
12699 mkdir out
12700 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12701
12702 lt_compiler_flag="-o out/conftest2.$ac_objext"
12703 # Insert the option either (1) after the last *FLAGS variable, or
12704 # (2) before a word containing "conftest.", or (3) at the end.
12705 # Note that $ac_compile itself does not contain backslashes and begins
12706 # with a dollar sign (not a hyphen), so the echo should work correctly.
12707 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000012708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000012709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12710 -e 's:$: $lt_compiler_flag:'`
drh613a0fe2007-11-23 17:31:17 +000012711 (eval echo "\"\$as_me:12711: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000012712 (eval "$lt_compile" 2>out/conftest.err)
12713 ac_status=$?
12714 cat out/conftest.err >&5
drh613a0fe2007-11-23 17:31:17 +000012715 echo "$as_me:12715: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000012716 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12717 then
12718 # The compiler can only warn and ignore the option if not recognized
12719 # So say no if there are warnings
vapier7f19c022007-02-17 14:46:31 +000012720 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000012723 lt_cv_prog_compiler_c_o_F77=yes
12724 fi
12725 fi
vapier7f19c022007-02-17 14:46:31 +000012726 chmod u+w . 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +000012727 $rm conftest*
12728 # SGI C++ compiler will create directory out/ii_files/ for
12729 # template instantiation
12730 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12731 $rm out/* && rmdir out
12732 cd ..
12733 rmdir conftest
12734 $rm conftest*
12735
12736fi
drh613a0fe2007-11-23 17:31:17 +000012737echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12738echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000012739
12740
12741hard_links="nottested"
12742if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12743 # do not overwrite the value of need_locks provided by the user
drh613a0fe2007-11-23 17:31:17 +000012744 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12745echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000012746 hard_links=yes
12747 $rm conftest*
12748 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12749 touch conftest.a
12750 ln conftest.a conftest.b 2>&5 || hard_links=no
12751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drh613a0fe2007-11-23 17:31:17 +000012752 echo "$as_me:$LINENO: result: $hard_links" >&5
12753echo "${ECHO_T}$hard_links" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000012754 if test "$hard_links" = no; then
12755 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12756echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12757 need_locks=warn
12758 fi
12759else
12760 need_locks=no
12761fi
12762
drh613a0fe2007-11-23 17:31:17 +000012763echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12764echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000012765
12766 runpath_var=
12767 allow_undefined_flag_F77=
12768 enable_shared_with_static_runtimes_F77=no
12769 archive_cmds_F77=
12770 archive_expsym_cmds_F77=
12771 old_archive_From_new_cmds_F77=
12772 old_archive_from_expsyms_cmds_F77=
12773 export_dynamic_flag_spec_F77=
12774 whole_archive_flag_spec_F77=
12775 thread_safe_flag_spec_F77=
12776 hardcode_libdir_flag_spec_F77=
12777 hardcode_libdir_flag_spec_ld_F77=
12778 hardcode_libdir_separator_F77=
12779 hardcode_direct_F77=no
12780 hardcode_minus_L_F77=no
12781 hardcode_shlibpath_var_F77=unsupported
12782 link_all_deplibs_F77=unknown
12783 hardcode_automatic_F77=no
12784 module_cmds_F77=
12785 module_expsym_cmds_F77=
12786 always_export_symbols_F77=no
12787 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12788 # include_expsyms should be a list of space-separated symbols to be *always*
12789 # included in the symbol list
12790 include_expsyms_F77=
12791 # exclude_expsyms can be an extended regexp of symbols to exclude
12792 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12793 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12794 # as well as any symbol that contains `d'.
12795 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12796 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12797 # platforms (ab)use it in PIC code, but their linkers get confused if
12798 # the symbol is explicitly referenced. Since portable code cannot
12799 # rely on this symbol name, it's probably fine to never include it in
12800 # preloaded symbol tables.
12801 extract_expsyms_cmds=
vapier7f19c022007-02-17 14:46:31 +000012802 # Just being paranoid about ensuring that cc_basename is set.
12803 for cc_temp in $compiler""; do
12804 case $cc_temp in
12805 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12806 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12807 \-*) ;;
12808 *) break;;
12809 esac
12810done
12811cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a.rottmann9bc8b932004-02-29 15:18:31 +000012812
12813 case $host_os in
12814 cygwin* | mingw* | pw32*)
12815 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12816 # When not using gcc, we currently assume that we are using
12817 # Microsoft Visual C++.
12818 if test "$GCC" != yes; then
12819 with_gnu_ld=no
12820 fi
12821 ;;
vapier7f19c022007-02-17 14:46:31 +000012822 interix*)
12823 # we just hope/assume this is gcc and not c89 (= MSVC++)
12824 with_gnu_ld=yes
12825 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000012826 openbsd*)
12827 with_gnu_ld=no
12828 ;;
12829 esac
12830
12831 ld_shlibs_F77=yes
12832 if test "$with_gnu_ld" = yes; then
12833 # If archive_cmds runs LD, not CC, wlarc should be empty
12834 wlarc='${wl}'
12835
vapier7f19c022007-02-17 14:46:31 +000012836 # Set some defaults for GNU ld with shared library support. These
12837 # are reset later if shared libraries are not supported. Putting them
12838 # here allows them to be overridden if necessary.
12839 runpath_var=LD_RUN_PATH
12840 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12841 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12842 # ancient GNU ld didn't support --whole-archive et. al.
12843 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12844 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12845 else
12846 whole_archive_flag_spec_F77=
12847 fi
12848 supports_anon_versioning=no
12849 case `$LD -v 2>/dev/null` in
12850 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12851 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12852 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12853 *\ 2.11.*) ;; # other 2.11 versions
12854 *) supports_anon_versioning=yes ;;
12855 esac
12856
a.rottmann9bc8b932004-02-29 15:18:31 +000012857 # See if GNU ld supports shared libraries.
12858 case $host_os in
12859 aix3* | aix4* | aix5*)
12860 # On AIX/PPC, the GNU linker is very broken
12861 if test "$host_cpu" != ia64; then
12862 ld_shlibs_F77=no
12863 cat <<EOF 1>&2
12864
12865*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12866*** to be unable to reliably create shared libraries on AIX.
12867*** Therefore, libtool is disabling shared libraries support. If you
12868*** really care for shared libraries, you may want to modify your PATH
12869*** so that a non-GNU linker is found, and then restart.
12870
12871EOF
12872 fi
12873 ;;
12874
12875 amigaos*)
12876 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)'
12877 hardcode_libdir_flag_spec_F77='-L$libdir'
12878 hardcode_minus_L_F77=yes
12879
12880 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12881 # that the semantics of dynamic libraries on AmigaOS, at least up
12882 # to version 4, is to share data among multiple programs linked
12883 # with the same dynamic library. Since this doesn't match the
12884 # behavior of shared libraries on other platforms, we can't use
12885 # them.
12886 ld_shlibs_F77=no
12887 ;;
12888
12889 beos*)
12890 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12891 allow_undefined_flag_F77=unsupported
12892 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12893 # support --undefined. This deserves some investigation. FIXME
12894 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12895 else
12896 ld_shlibs_F77=no
12897 fi
12898 ;;
12899
12900 cygwin* | mingw* | pw32*)
12901 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12902 # as there is no search path for DLLs.
12903 hardcode_libdir_flag_spec_F77='-L$libdir'
12904 allow_undefined_flag_F77=unsupported
12905 always_export_symbols_F77=no
12906 enable_shared_with_static_runtimes_F77=yes
vapier7f19c022007-02-17 14:46:31 +000012907 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +000012908
12909 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +000012910 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +000012911 # If the export-symbols file already is a .def file (1st line
12912 # is EXPORTS), use it as is; otherwise, prepend...
12913 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12914 cp $export_symbols $output_objdir/$soname.def;
12915 else
12916 echo EXPORTS > $output_objdir/$soname.def;
12917 cat $export_symbols >> $output_objdir/$soname.def;
12918 fi~
vapier7f19c022007-02-17 14:46:31 +000012919 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +000012920 else
vapier7f19c022007-02-17 14:46:31 +000012921 ld_shlibs_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000012922 fi
12923 ;;
12924
vapier7f19c022007-02-17 14:46:31 +000012925 interix3*)
12926 hardcode_direct_F77=no
12927 hardcode_shlibpath_var_F77=no
12928 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
12929 export_dynamic_flag_spec_F77='${wl}-E'
12930 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12931 # Instead, shared libraries are loaded at an image base (0x10000000 by
12932 # default) and relocated if they conflict, which is a slow very memory
12933 # consuming and fragmenting process. To avoid this, we pick a random,
12934 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12935 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12936 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12937 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12938 ;;
12939
12940 linux*)
12941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12942 tmp_addflag=
12943 case $cc_basename,$host_cpu in
12944 pgcc*) # Portland Group C compiler
12945 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12946 tmp_addflag=' $pic_flag'
12947 ;;
12948 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12949 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12950 tmp_addflag=' $pic_flag -Mnomain' ;;
12951 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12952 tmp_addflag=' -i_dynamic' ;;
12953 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12954 tmp_addflag=' -i_dynamic -nofor_main' ;;
12955 ifc* | ifort*) # Intel Fortran compiler
12956 tmp_addflag=' -nofor_main' ;;
12957 esac
12958 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12959
12960 if test $supports_anon_versioning = yes; then
12961 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
12962 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12963 $echo "local: *; };" >> $output_objdir/$libname.ver~
12964 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12965 fi
12966 else
12967 ld_shlibs_F77=no
12968 fi
12969 ;;
12970
12971 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000012972 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12973 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12974 wlarc=
12975 else
12976 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12977 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12978 fi
12979 ;;
12980
vapier7f19c022007-02-17 14:46:31 +000012981 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +000012982 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12983 ld_shlibs_F77=no
12984 cat <<EOF 1>&2
12985
12986*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12987*** create shared libraries on Solaris systems. Therefore, libtool
12988*** is disabling shared libraries support. We urge you to upgrade GNU
12989*** binutils to release 2.9.1 or newer. Another option is to modify
12990*** your PATH or compiler configuration so that the native linker is
12991*** used, and then restart.
12992
12993EOF
12994 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12995 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12996 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12997 else
12998 ld_shlibs_F77=no
12999 fi
13000 ;;
13001
vapier7f19c022007-02-17 14:46:31 +000013002 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13003 case `$LD -v 2>&1` in
13004 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13005 ld_shlibs_F77=no
13006 cat <<_LT_EOF 1>&2
13007
13008*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13009*** reliably create shared libraries on SCO systems. Therefore, libtool
13010*** is disabling shared libraries support. We urge you to upgrade GNU
13011*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13012*** your PATH or compiler configuration so that the native linker is
13013*** used, and then restart.
13014
13015_LT_EOF
13016 ;;
13017 *)
13018 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13019 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13020 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13021 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13022 else
13023 ld_shlibs_F77=no
13024 fi
13025 ;;
13026 esac
13027 ;;
13028
a.rottmann9bc8b932004-02-29 15:18:31 +000013029 sunos4*)
13030 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13031 wlarc=
13032 hardcode_direct_F77=yes
13033 hardcode_shlibpath_var_F77=no
13034 ;;
13035
a.rottmann9bc8b932004-02-29 15:18:31 +000013036 *)
13037 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13038 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13039 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13040 else
13041 ld_shlibs_F77=no
13042 fi
13043 ;;
13044 esac
13045
vapier7f19c022007-02-17 14:46:31 +000013046 if test "$ld_shlibs_F77" = no; then
13047 runpath_var=
13048 hardcode_libdir_flag_spec_F77=
13049 export_dynamic_flag_spec_F77=
13050 whole_archive_flag_spec_F77=
a.rottmann9bc8b932004-02-29 15:18:31 +000013051 fi
13052 else
13053 # PORTME fill in a description of your system's linker (not GNU ld)
13054 case $host_os in
13055 aix3*)
13056 allow_undefined_flag_F77=unsupported
13057 always_export_symbols_F77=yes
13058 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'
13059 # Note: this linker hardcodes the directories in LIBPATH if there
13060 # are no directories specified by -L.
13061 hardcode_minus_L_F77=yes
vapier7f19c022007-02-17 14:46:31 +000013062 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013063 # Neither direct hardcoding nor static linking is supported with a
13064 # broken collect2.
13065 hardcode_direct_F77=unsupported
13066 fi
13067 ;;
13068
13069 aix4* | aix5*)
13070 if test "$host_cpu" = ia64; then
13071 # On IA64, the linker does run time linking by default, so we don't
13072 # have to do anything special.
13073 aix_use_runtimelinking=no
13074 exp_sym_flag='-Bexport'
13075 no_entry_flag=""
13076 else
13077 # If we're using GNU nm, then we don't want the "-C" option.
13078 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13079 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13080 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'
13081 else
13082 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'
13083 fi
13084 aix_use_runtimelinking=no
13085
13086 # Test if we are trying to use run time linking or normal
13087 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13088 # need to do runtime linking.
13089 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13090 for ld_flag in $LDFLAGS; do
13091 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13092 aix_use_runtimelinking=yes
13093 break
13094 fi
13095 done
vapier7f19c022007-02-17 14:46:31 +000013096 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013097 esac
13098
13099 exp_sym_flag='-bexport'
13100 no_entry_flag='-bnoentry'
13101 fi
13102
13103 # When large executables or shared objects are built, AIX ld can
13104 # have problems creating the table of contents. If linking a library
13105 # or program results in "error TOC overflow" add -mminimal-toc to
13106 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13107 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13108
13109 archive_cmds_F77=''
13110 hardcode_direct_F77=yes
13111 hardcode_libdir_separator_F77=':'
13112 link_all_deplibs_F77=yes
13113
13114 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000013115 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013116 # We only want to do this on AIX 4.2 and lower, the check
13117 # below for broken collect2 doesn't work under 4.3+
13118 collect2name=`${CC} -print-prog-name=collect2`
13119 if test -f "$collect2name" && \
13120 strings "$collect2name" | grep resolve_lib_name >/dev/null
13121 then
13122 # We have reworked collect2
13123 hardcode_direct_F77=yes
13124 else
13125 # We have old collect2
13126 hardcode_direct_F77=unsupported
13127 # It fails to find uninstalled libraries when the uninstalled
13128 # path is not listed in the libpath. Setting hardcode_minus_L
13129 # to unsupported forces relinking
13130 hardcode_minus_L_F77=yes
13131 hardcode_libdir_flag_spec_F77='-L$libdir'
13132 hardcode_libdir_separator_F77=
13133 fi
vapier7f19c022007-02-17 14:46:31 +000013134 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013135 esac
13136 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +000013137 if test "$aix_use_runtimelinking" = yes; then
13138 shared_flag="$shared_flag "'${wl}-G'
13139 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000013140 else
13141 # not using gcc
13142 if test "$host_cpu" = ia64; then
13143 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13144 # chokes on -Wl,-G. The following line is correct:
13145 shared_flag='-G'
13146 else
vapier7f19c022007-02-17 14:46:31 +000013147 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013148 shared_flag='${wl}-G'
13149 else
13150 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +000013151 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000013152 fi
13153 fi
13154
13155 # It seems that -bexpall does not export symbols beginning with
13156 # underscore (_), so it is better to generate a list of symbols to export.
13157 always_export_symbols_F77=yes
13158 if test "$aix_use_runtimelinking" = yes; then
13159 # Warning - without using the other runtime loading flags (-brtl),
13160 # -berok will link without error, but may produce a broken library.
13161 allow_undefined_flag_F77='-berok'
13162 # Determine the default libpath from the value encoded in an empty executable.
13163 cat >conftest.$ac_ext <<_ACEOF
13164 program main
13165
13166 end
13167_ACEOF
13168rm -f conftest.$ac_objext conftest$ac_exeext
drh613a0fe2007-11-23 17:31:17 +000013169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13170 (eval $ac_link) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000013171 ac_status=$?
13172 grep -v '^ *+' conftest.er1 >conftest.err
13173 rm -f conftest.er1
13174 cat conftest.err >&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +000013176 (exit $ac_status); } &&
13177 { ac_try='test -z "$ac_f77_werror_flag"
13178 || test ! -s conftest.err'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; } &&
13184 { ac_try='test -s conftest$ac_exeext'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13187 ac_status=$?
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013190
13191aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13192}'`
13193# Check for a 64-bit object if we didn't find anything.
13194if 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; }
13195}'`; fi
13196else
13197 echo "$as_me: failed program was:" >&5
13198sed 's/^/| /' conftest.$ac_ext >&5
13199
13200fi
drh613a0fe2007-11-23 17:31:17 +000013201rm -f conftest.err conftest.$ac_objext \
a.rottmann9bc8b932004-02-29 15:18:31 +000013202 conftest$ac_exeext conftest.$ac_ext
13203if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13204
13205 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
vapier7f19c022007-02-17 14:46:31 +000013206 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
a.rottmann9bc8b932004-02-29 15:18:31 +000013207 else
13208 if test "$host_cpu" = ia64; then
13209 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13210 allow_undefined_flag_F77="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +000013211 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
a.rottmann9bc8b932004-02-29 15:18:31 +000013212 else
13213 # Determine the default libpath from the value encoded in an empty executable.
13214 cat >conftest.$ac_ext <<_ACEOF
13215 program main
13216
13217 end
13218_ACEOF
13219rm -f conftest.$ac_objext conftest$ac_exeext
drh613a0fe2007-11-23 17:31:17 +000013220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13221 (eval $ac_link) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000013222 ac_status=$?
13223 grep -v '^ *+' conftest.er1 >conftest.err
13224 rm -f conftest.er1
13225 cat conftest.err >&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +000013227 (exit $ac_status); } &&
13228 { ac_try='test -z "$ac_f77_werror_flag"
13229 || test ! -s conftest.err'
13230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13231 (eval $ac_try) 2>&5
13232 ac_status=$?
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); }; } &&
13235 { ac_try='test -s conftest$ac_exeext'
13236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237 (eval $ac_try) 2>&5
13238 ac_status=$?
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013241
13242aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13243}'`
13244# Check for a 64-bit object if we didn't find anything.
13245if 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; }
13246}'`; fi
13247else
13248 echo "$as_me: failed program was:" >&5
13249sed 's/^/| /' conftest.$ac_ext >&5
13250
13251fi
drh613a0fe2007-11-23 17:31:17 +000013252rm -f conftest.err conftest.$ac_objext \
a.rottmann9bc8b932004-02-29 15:18:31 +000013253 conftest$ac_exeext conftest.$ac_ext
13254if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13255
13256 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13257 # Warning - without using the other run time loading flags,
13258 # -berok will link without error, but may produce a broken library.
13259 no_undefined_flag_F77=' ${wl}-bernotok'
13260 allow_undefined_flag_F77=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +000013261 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +000013262 whole_archive_flag_spec_F77='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +000013263 archive_cmds_need_lc_F77=yes
vapier7f19c022007-02-17 14:46:31 +000013264 # This is similar to how AIX traditionally builds its shared libraries.
13265 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
a.rottmann9bc8b932004-02-29 15:18:31 +000013266 fi
13267 fi
13268 ;;
13269
13270 amigaos*)
13271 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)'
13272 hardcode_libdir_flag_spec_F77='-L$libdir'
13273 hardcode_minus_L_F77=yes
13274 # see comment about different semantics on the GNU ld section
13275 ld_shlibs_F77=no
13276 ;;
13277
vapier7f19c022007-02-17 14:46:31 +000013278 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013279 export_dynamic_flag_spec_F77=-rdynamic
13280 ;;
13281
13282 cygwin* | mingw* | pw32*)
13283 # When not using gcc, we currently assume that we are using
13284 # Microsoft Visual C++.
13285 # hardcode_libdir_flag_spec is actually meaningless, as there is
13286 # no search path for DLLs.
13287 hardcode_libdir_flag_spec_F77=' '
13288 allow_undefined_flag_F77=unsupported
13289 # Tell ltmain to make .lib files, not .a files.
13290 libext=lib
13291 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +000013292 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000013293 # FIXME: Setting linknames here is a bad hack.
13294 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13295 # The linker will automatically build a .lib file if we build a DLL.
13296 old_archive_From_new_cmds_F77='true'
13297 # FIXME: Should let the user specify the lib program.
13298 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
vapier7f19c022007-02-17 14:46:31 +000013299 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
a.rottmann9bc8b932004-02-29 15:18:31 +000013300 enable_shared_with_static_runtimes_F77=yes
13301 ;;
13302
13303 darwin* | rhapsody*)
vapier7f19c022007-02-17 14:46:31 +000013304 case $host_os in
13305 rhapsody* | darwin1.[012])
13306 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13307 ;;
13308 *) # Darwin 1.3 on
13309 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13310 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13311 else
13312 case ${MACOSX_DEPLOYMENT_TARGET} in
13313 10.[012])
13314 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13315 ;;
13316 10.*)
13317 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13318 ;;
13319 esac
13320 fi
13321 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013322 esac
vapier7f19c022007-02-17 14:46:31 +000013323 archive_cmds_need_lc_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000013324 hardcode_direct_F77=no
13325 hardcode_automatic_F77=yes
13326 hardcode_shlibpath_var_F77=unsupported
vapier7f19c022007-02-17 14:46:31 +000013327 whole_archive_flag_spec_F77=''
a.rottmann9bc8b932004-02-29 15:18:31 +000013328 link_all_deplibs_F77=yes
vapier7f19c022007-02-17 14:46:31 +000013329 if test "$GCC" = yes ; then
13330 output_verbose_link_cmd='echo'
13331 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13332 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13333 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13334 archive_expsym_cmds_F77='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}'
13335 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}'
a.rottmann9bc8b932004-02-29 15:18:31 +000013336 else
vapier7f19c022007-02-17 14:46:31 +000013337 case $cc_basename in
13338 xlc*)
13339 output_verbose_link_cmd='echo'
13340 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13341 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13342 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13343 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13344 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}'
13345 ;;
13346 *)
13347 ld_shlibs_F77=no
13348 ;;
13349 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000013350 fi
13351 ;;
13352
13353 dgux*)
13354 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13355 hardcode_libdir_flag_spec_F77='-L$libdir'
13356 hardcode_shlibpath_var_F77=no
13357 ;;
13358
13359 freebsd1*)
13360 ld_shlibs_F77=no
13361 ;;
13362
13363 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13364 # support. Future versions do this automatically, but an explicit c++rt0.o
13365 # does not break anything, and helps significantly (at the cost of a little
13366 # extra space).
13367 freebsd2.2*)
13368 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13369 hardcode_libdir_flag_spec_F77='-R$libdir'
13370 hardcode_direct_F77=yes
13371 hardcode_shlibpath_var_F77=no
13372 ;;
13373
13374 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13375 freebsd2*)
13376 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13377 hardcode_direct_F77=yes
13378 hardcode_minus_L_F77=yes
13379 hardcode_shlibpath_var_F77=no
13380 ;;
13381
13382 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
vapier7f19c022007-02-17 14:46:31 +000013383 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013384 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13385 hardcode_libdir_flag_spec_F77='-R$libdir'
13386 hardcode_direct_F77=yes
13387 hardcode_shlibpath_var_F77=no
13388 ;;
13389
13390 hpux9*)
13391 if test "$GCC" = yes; then
13392 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'
13393 else
13394 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'
13395 fi
13396 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13397 hardcode_libdir_separator_F77=:
13398 hardcode_direct_F77=yes
13399
13400 # hardcode_minus_L: Not really in the search PATH,
13401 # but as the default location of the library.
13402 hardcode_minus_L_F77=yes
13403 export_dynamic_flag_spec_F77='${wl}-E'
13404 ;;
13405
vapier7f19c022007-02-17 14:46:31 +000013406 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013407 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000013408 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13409 else
13410 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13411 fi
13412 if test "$with_gnu_ld" = no; then
13413 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13414 hardcode_libdir_separator_F77=:
13415
13416 hardcode_direct_F77=yes
13417 export_dynamic_flag_spec_F77='${wl}-E'
13418
13419 # hardcode_minus_L: Not really in the search PATH,
13420 # but as the default location of the library.
13421 hardcode_minus_L_F77=yes
13422 fi
13423 ;;
13424
13425 hpux11*)
13426 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13427 case $host_cpu in
13428 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013429 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13430 ;;
vapier7f19c022007-02-17 14:46:31 +000013431 ia64*)
13432 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13433 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013434 *)
13435 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13436 ;;
13437 esac
13438 else
vapier7f19c022007-02-17 14:46:31 +000013439 case $host_cpu in
13440 hppa*64*)
13441 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13442 ;;
13443 ia64*)
13444 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000013445 ;;
13446 *)
vapier7f19c022007-02-17 14:46:31 +000013447 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000013448 ;;
13449 esac
13450 fi
13451 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000013452 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13453 hardcode_libdir_separator_F77=:
a.rottmann9bc8b932004-02-29 15:18:31 +000013454
vapier7f19c022007-02-17 14:46:31 +000013455 case $host_cpu in
13456 hppa*64*|ia64*)
13457 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13458 hardcode_direct_F77=no
13459 hardcode_shlibpath_var_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000013460 ;;
13461 *)
a.rottmann9bc8b932004-02-29 15:18:31 +000013462 hardcode_direct_F77=yes
13463 export_dynamic_flag_spec_F77='${wl}-E'
13464
13465 # hardcode_minus_L: Not really in the search PATH,
13466 # but as the default location of the library.
13467 hardcode_minus_L_F77=yes
13468 ;;
13469 esac
13470 fi
13471 ;;
13472
13473 irix5* | irix6* | nonstopux*)
13474 if test "$GCC" = yes; then
13475 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'
13476 else
13477 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'
13478 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13479 fi
13480 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13481 hardcode_libdir_separator_F77=:
13482 link_all_deplibs_F77=yes
13483 ;;
13484
vapier7f19c022007-02-17 14:46:31 +000013485 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013486 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13487 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13488 else
13489 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13490 fi
13491 hardcode_libdir_flag_spec_F77='-R$libdir'
13492 hardcode_direct_F77=yes
13493 hardcode_shlibpath_var_F77=no
13494 ;;
13495
13496 newsos6)
13497 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13498 hardcode_direct_F77=yes
13499 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13500 hardcode_libdir_separator_F77=:
13501 hardcode_shlibpath_var_F77=no
13502 ;;
13503
13504 openbsd*)
13505 hardcode_direct_F77=yes
13506 hardcode_shlibpath_var_F77=no
13507 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13508 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +000013509 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +000013510 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13511 export_dynamic_flag_spec_F77='${wl}-E'
13512 else
13513 case $host_os in
13514 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13515 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13516 hardcode_libdir_flag_spec_F77='-R$libdir'
13517 ;;
13518 *)
13519 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13520 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13521 ;;
13522 esac
13523 fi
13524 ;;
13525
13526 os2*)
13527 hardcode_libdir_flag_spec_F77='-L$libdir'
13528 hardcode_minus_L_F77=yes
13529 allow_undefined_flag_F77=unsupported
13530 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'
13531 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13532 ;;
13533
13534 osf3*)
13535 if test "$GCC" = yes; then
13536 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13537 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'
13538 else
13539 allow_undefined_flag_F77=' -expect_unresolved \*'
13540 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'
13541 fi
13542 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13543 hardcode_libdir_separator_F77=:
13544 ;;
13545
13546 osf4* | osf5*) # as osf3* with the addition of -msym flag
13547 if test "$GCC" = yes; then
13548 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13549 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'
13550 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13551 else
13552 allow_undefined_flag_F77=' -expect_unresolved \*'
13553 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'
13554 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~
vapier7f19c022007-02-17 14:46:31 +000013555 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
a.rottmann9bc8b932004-02-29 15:18:31 +000013556
13557 # Both c and cxx compiler support -rpath directly
13558 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13559 fi
13560 hardcode_libdir_separator_F77=:
13561 ;;
13562
a.rottmann9bc8b932004-02-29 15:18:31 +000013563 solaris*)
13564 no_undefined_flag_F77=' -z text'
13565 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000013566 wlarc='${wl}'
a.rottmann9bc8b932004-02-29 15:18:31 +000013567 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13568 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13569 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13570 else
vapier7f19c022007-02-17 14:46:31 +000013571 wlarc=''
a.rottmann9bc8b932004-02-29 15:18:31 +000013572 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13573 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13574 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13575 fi
13576 hardcode_libdir_flag_spec_F77='-R$libdir'
13577 hardcode_shlibpath_var_F77=no
13578 case $host_os in
13579 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +000013580 *)
13581 # The compiler driver will combine linker options so we
13582 # cannot just pass the convience library names through
13583 # without $wl, iff we do not link with $LD.
13584 # Luckily, gcc supports the same syntax we need for Sun Studio.
13585 # Supported since Solaris 2.6 (maybe 2.5.1?)
13586 case $wlarc in
13587 '')
13588 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13589 *)
13590 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
13591 esac ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013592 esac
13593 link_all_deplibs_F77=yes
13594 ;;
13595
13596 sunos4*)
13597 if test "x$host_vendor" = xsequent; then
13598 # Use $CC to link under sequent, because it throws in some extra .o
13599 # files that make .init and .fini sections work.
13600 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13601 else
13602 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13603 fi
13604 hardcode_libdir_flag_spec_F77='-L$libdir'
13605 hardcode_direct_F77=yes
13606 hardcode_minus_L_F77=yes
13607 hardcode_shlibpath_var_F77=no
13608 ;;
13609
13610 sysv4)
13611 case $host_vendor in
13612 sni)
13613 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13614 hardcode_direct_F77=yes # is this really true???
13615 ;;
13616 siemens)
13617 ## LD is ld it makes a PLAMLIB
13618 ## CC just makes a GrossModule.
13619 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13620 reload_cmds_F77='$CC -r -o $output$reload_objs'
13621 hardcode_direct_F77=no
13622 ;;
13623 motorola)
13624 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13625 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13626 ;;
13627 esac
13628 runpath_var='LD_RUN_PATH'
13629 hardcode_shlibpath_var_F77=no
13630 ;;
13631
13632 sysv4.3*)
13633 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13634 hardcode_shlibpath_var_F77=no
13635 export_dynamic_flag_spec_F77='-Bexport'
13636 ;;
13637
13638 sysv4*MP*)
13639 if test -d /usr/nec; then
13640 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13641 hardcode_shlibpath_var_F77=no
13642 runpath_var=LD_RUN_PATH
13643 hardcode_runpath_var=yes
13644 ld_shlibs_F77=yes
13645 fi
13646 ;;
13647
vapier7f19c022007-02-17 14:46:31 +000013648 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
13649 no_undefined_flag_F77='${wl}-z,text'
13650 archive_cmds_need_lc_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000013651 hardcode_shlibpath_var_F77=no
vapier7f19c022007-02-17 14:46:31 +000013652 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +000013653
a.rottmann9bc8b932004-02-29 15:18:31 +000013654 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000013655 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13656 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000013657 else
vapier7f19c022007-02-17 14:46:31 +000013658 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13659 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000013660 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000013661 ;;
13662
vapier7f19c022007-02-17 14:46:31 +000013663 sysv5* | sco3.2v5* | sco5v6*)
13664 # Note: We can NOT use -z defs as we might desire, because we do not
13665 # link with -lc, and that would cause any symbols used from libc to
13666 # always be unresolved, which means just about no library would
13667 # ever link correctly. If we're not using GNU ld we use -z text
13668 # though, which does catch some bad symbols but isn't as heavy-handed
13669 # as -z defs.
13670 no_undefined_flag_F77='${wl}-z,text'
13671 allow_undefined_flag_F77='${wl}-z,nodefs'
13672 archive_cmds_need_lc_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000013673 hardcode_shlibpath_var_F77=no
vapier7f19c022007-02-17 14:46:31 +000013674 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13675 hardcode_libdir_separator_F77=':'
13676 link_all_deplibs_F77=yes
13677 export_dynamic_flag_spec_F77='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +000013678 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +000013679
13680 if test "$GCC" = yes; then
13681 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13682 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13683 else
13684 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13685 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13686 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000013687 ;;
13688
13689 uts4*)
13690 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13691 hardcode_libdir_flag_spec_F77='-L$libdir'
13692 hardcode_shlibpath_var_F77=no
13693 ;;
13694
13695 *)
13696 ld_shlibs_F77=no
13697 ;;
13698 esac
13699 fi
13700
drh613a0fe2007-11-23 17:31:17 +000013701echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13702echo "${ECHO_T}$ld_shlibs_F77" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000013703test "$ld_shlibs_F77" = no && can_build_shared=no
13704
a.rottmann9bc8b932004-02-29 15:18:31 +000013705#
13706# Do we need to explicitly link libc?
13707#
13708case "x$archive_cmds_need_lc_F77" in
13709x|xyes)
13710 # Assume -lc should be added
13711 archive_cmds_need_lc_F77=yes
13712
13713 if test "$enable_shared" = yes && test "$GCC" = yes; then
13714 case $archive_cmds_F77 in
13715 *'~'*)
13716 # FIXME: we may have to deal with multi-command sequences.
13717 ;;
13718 '$CC '*)
13719 # Test whether the compiler implicitly links with -lc since on some
13720 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13721 # to ld, don't add -lc before -lgcc.
drh613a0fe2007-11-23 17:31:17 +000013722 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13723echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000013724 $rm conftest*
13725 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13726
13727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13728 (eval $ac_compile) 2>&5
13729 ac_status=$?
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } 2>conftest.err; then
13732 soname=conftest
13733 lib=conftest
13734 libobjs=conftest.$ac_objext
13735 deplibs=
13736 wl=$lt_prog_compiler_wl_F77
vapier7f19c022007-02-17 14:46:31 +000013737 pic_flag=$lt_prog_compiler_pic_F77
a.rottmann9bc8b932004-02-29 15:18:31 +000013738 compiler_flags=-v
13739 linker_flags=-v
13740 verstring=
13741 output_objdir=.
13742 libname=conftest
13743 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13744 allow_undefined_flag_F77=
13745 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13746 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13747 ac_status=$?
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }
13750 then
13751 archive_cmds_need_lc_F77=no
13752 else
13753 archive_cmds_need_lc_F77=yes
13754 fi
13755 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13756 else
13757 cat conftest.err 1>&5
13758 fi
13759 $rm conftest*
drh613a0fe2007-11-23 17:31:17 +000013760 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13761echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000013762 ;;
13763 esac
13764 fi
13765 ;;
13766esac
13767
drh613a0fe2007-11-23 17:31:17 +000013768echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13769echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000013770library_names_spec=
13771libname_spec='lib$name'
13772soname_spec=
vapier7f19c022007-02-17 14:46:31 +000013773shrext_cmds=".so"
a.rottmann9bc8b932004-02-29 15:18:31 +000013774postinstall_cmds=
13775postuninstall_cmds=
13776finish_cmds=
13777finish_eval=
13778shlibpath_var=
13779shlibpath_overrides_runpath=unknown
13780version_type=none
13781dynamic_linker="$host_os ld.so"
13782sys_lib_dlsearch_path_spec="/lib /usr/lib"
13783if test "$GCC" = yes; then
13784 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13785 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13786 # if the path contains ";" then we assume it to be the separator
13787 # otherwise default to the standard path separator (i.e. ":") - it is
13788 # assumed that no part of a normal pathname contains ";" but that should
13789 # okay in the real world where ";" in dirpaths is itself problematic.
13790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13791 else
13792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13793 fi
13794else
13795 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13796fi
13797need_lib_prefix=unknown
13798hardcode_into_libs=no
13799
13800# when you set need_version to no, make sure it does not cause -set_version
13801# flags to be left without arguments
13802need_version=unknown
13803
13804case $host_os in
13805aix3*)
13806 version_type=linux
13807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13808 shlibpath_var=LIBPATH
13809
13810 # AIX 3 has no versioning support, so we append a major version to the name.
13811 soname_spec='${libname}${release}${shared_ext}$major'
13812 ;;
13813
13814aix4* | aix5*)
13815 version_type=linux
13816 need_lib_prefix=no
13817 need_version=no
13818 hardcode_into_libs=yes
13819 if test "$host_cpu" = ia64; then
13820 # AIX 5 supports IA64
13821 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13822 shlibpath_var=LD_LIBRARY_PATH
13823 else
13824 # With GCC up to 2.95.x, collect2 would create an import file
13825 # for dependence libraries. The import file would start with
13826 # the line `#! .'. This would cause the generated library to
13827 # depend on `.', always an invalid library. This was fixed in
13828 # development snapshots of GCC prior to 3.0.
13829 case $host_os in
13830 aix4 | aix4.[01] | aix4.[01].*)
13831 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13832 echo ' yes '
13833 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13834 :
13835 else
13836 can_build_shared=no
13837 fi
13838 ;;
13839 esac
13840 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13841 # soname into executable. Probably we can add versioning support to
13842 # collect2, so additional links can be useful in future.
13843 if test "$aix_use_runtimelinking" = yes; then
13844 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13845 # instead of lib<name>.a to let people know that these are not
13846 # typical AIX shared libraries.
13847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13848 else
13849 # We preserve .a as extension for shared libraries through AIX4.2
13850 # and later when we are not doing run time linking.
13851 library_names_spec='${libname}${release}.a $libname.a'
13852 soname_spec='${libname}${release}${shared_ext}$major'
13853 fi
13854 shlibpath_var=LIBPATH
13855 fi
13856 ;;
13857
13858amigaos*)
13859 library_names_spec='$libname.ixlibrary $libname.a'
13860 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13861 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'
13862 ;;
13863
13864beos*)
13865 library_names_spec='${libname}${shared_ext}'
13866 dynamic_linker="$host_os ld.so"
13867 shlibpath_var=LIBRARY_PATH
13868 ;;
13869
vapier7f19c022007-02-17 14:46:31 +000013870bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013871 version_type=linux
13872 need_version=no
13873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13874 soname_spec='${libname}${release}${shared_ext}$major'
13875 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13876 shlibpath_var=LD_LIBRARY_PATH
13877 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13878 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13879 # the default ld.so.conf also contains /usr/contrib/lib and
13880 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13881 # libtool to hard-code these into programs
13882 ;;
13883
13884cygwin* | mingw* | pw32*)
13885 version_type=windows
vapier7f19c022007-02-17 14:46:31 +000013886 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000013887 need_version=no
13888 need_lib_prefix=no
13889
13890 case $GCC,$host_os in
13891 yes,cygwin* | yes,mingw* | yes,pw32*)
13892 library_names_spec='$libname.dll.a'
13893 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13894 postinstall_cmds='base_file=`basename \${file}`~
13895 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13896 dldir=$destdir/`dirname \$dlpath`~
13897 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +000013898 $install_prog $dir/$dlname \$dldir/$dlname~
13899 chmod a+x \$dldir/$dlname'
a.rottmann9bc8b932004-02-29 15:18:31 +000013900 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13901 dlpath=$dir/\$dldll~
13902 $rm \$dlpath'
13903 shlibpath_overrides_runpath=yes
13904
13905 case $host_os in
13906 cygwin*)
13907 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13908 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13909 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13910 ;;
13911 mingw*)
13912 # MinGW DLLs use traditional 'lib' prefix
13913 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13914 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13915 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13916 # It is most probably a Windows format PATH printed by
13917 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13918 # path with ; separators, and with drive letters. We can handle the
13919 # drive letters (cygwin fileutils understands them), so leave them,
13920 # especially as we might pass files found there to a mingw objdump,
13921 # which wouldn't understand a cygwinified path. Ahh.
13922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13923 else
13924 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13925 fi
13926 ;;
13927 pw32*)
13928 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +000013929 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
a.rottmann9bc8b932004-02-29 15:18:31 +000013930 ;;
13931 esac
13932 ;;
13933
vapier7f19c022007-02-17 14:46:31 +000013934 linux*)
13935 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13936 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13937 supports_anon_versioning=no
13938 case `$LD -v 2>/dev/null` in
13939 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13940 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13941 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13942 *\ 2.11.*) ;; # other 2.11 versions
13943 *) supports_anon_versioning=yes ;;
13944 esac
13945 if test $supports_anon_versioning = yes; then
13946 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
13947cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13948$echo "local: *; };" >> $output_objdir/$libname.ver~
13949 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13950 else
13951 $archive_expsym_cmds="$archive_cmds"
13952 fi
13953 else
13954 ld_shlibs=no
13955 fi
13956 ;;
13957
a.rottmann9bc8b932004-02-29 15:18:31 +000013958 *)
13959 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13960 ;;
13961 esac
13962 dynamic_linker='Win32 ld.exe'
13963 # FIXME: first we should search . and the directory the executable is in
13964 shlibpath_var=PATH
13965 ;;
13966
13967darwin* | rhapsody*)
13968 dynamic_linker="$host_os dyld"
13969 version_type=darwin
13970 need_lib_prefix=no
13971 need_version=no
13972 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13973 soname_spec='${libname}${release}${major}$shared_ext'
13974 shlibpath_overrides_runpath=yes
13975 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +000013976 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a.rottmann9bc8b932004-02-29 15:18:31 +000013977 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13978 if test "$GCC" = yes; then
13979 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"`
13980 else
13981 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13982 fi
13983 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13984 ;;
13985
13986dgux*)
13987 version_type=linux
13988 need_lib_prefix=no
13989 need_version=no
13990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13991 soname_spec='${libname}${release}${shared_ext}$major'
13992 shlibpath_var=LD_LIBRARY_PATH
13993 ;;
13994
13995freebsd1*)
13996 dynamic_linker=no
13997 ;;
13998
13999kfreebsd*-gnu)
14000 version_type=linux
14001 need_lib_prefix=no
14002 need_version=no
14003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14004 soname_spec='${libname}${release}${shared_ext}$major'
14005 shlibpath_var=LD_LIBRARY_PATH
14006 shlibpath_overrides_runpath=no
14007 hardcode_into_libs=yes
14008 dynamic_linker='GNU ld.so'
14009 ;;
14010
vapier7f19c022007-02-17 14:46:31 +000014011freebsd* | dragonfly*)
14012 # DragonFly does not have aout. When/if they implement a new
14013 # versioning mechanism, adjust this.
14014 if test -x /usr/bin/objformat; then
14015 objformat=`/usr/bin/objformat`
14016 else
14017 case $host_os in
14018 freebsd[123]*) objformat=aout ;;
14019 *) objformat=elf ;;
14020 esac
14021 fi
14022 # Handle Gentoo/FreeBSD as it was Linux
14023 case $host_vendor in
14024 gentoo)
14025 version_type=linux ;;
14026 *)
14027 version_type=freebsd-$objformat ;;
14028 esac
14029
a.rottmann9bc8b932004-02-29 15:18:31 +000014030 case $version_type in
14031 freebsd-elf*)
14032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14033 need_version=no
14034 need_lib_prefix=no
14035 ;;
14036 freebsd-*)
14037 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14038 need_version=yes
14039 ;;
vapier7f19c022007-02-17 14:46:31 +000014040 linux)
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 need_lib_prefix=no
14044 need_version=no
14045 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000014046 esac
14047 shlibpath_var=LD_LIBRARY_PATH
14048 case $host_os in
14049 freebsd2*)
14050 shlibpath_overrides_runpath=yes
14051 ;;
vapier7f19c022007-02-17 14:46:31 +000014052 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014053 shlibpath_overrides_runpath=yes
14054 hardcode_into_libs=yes
14055 ;;
vapier7f19c022007-02-17 14:46:31 +000014056 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14057 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a.rottmann9bc8b932004-02-29 15:18:31 +000014058 shlibpath_overrides_runpath=no
14059 hardcode_into_libs=yes
14060 ;;
vapier7f19c022007-02-17 14:46:31 +000014061 freebsd*) # from 4.6 on
14062 shlibpath_overrides_runpath=yes
14063 hardcode_into_libs=yes
14064 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000014065 esac
14066 ;;
14067
14068gnu*)
14069 version_type=linux
14070 need_lib_prefix=no
14071 need_version=no
14072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14073 soname_spec='${libname}${release}${shared_ext}$major'
14074 shlibpath_var=LD_LIBRARY_PATH
14075 hardcode_into_libs=yes
14076 ;;
14077
14078hpux9* | hpux10* | hpux11*)
14079 # Give a soname corresponding to the major version so that dld.sl refuses to
14080 # link against other versions.
14081 version_type=sunos
14082 need_lib_prefix=no
14083 need_version=no
vapier7f19c022007-02-17 14:46:31 +000014084 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000014085 ia64*)
vapier7f19c022007-02-17 14:46:31 +000014086 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +000014087 hardcode_into_libs=yes
14088 dynamic_linker="$host_os dld.so"
14089 shlibpath_var=LD_LIBRARY_PATH
14090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14092 soname_spec='${libname}${release}${shared_ext}$major'
14093 if test "X$HPUX_IA64_MODE" = X32; then
14094 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14095 else
14096 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14097 fi
14098 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14099 ;;
14100 hppa*64*)
vapier7f19c022007-02-17 14:46:31 +000014101 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000014102 hardcode_into_libs=yes
14103 dynamic_linker="$host_os dld.sl"
14104 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14107 soname_spec='${libname}${release}${shared_ext}$major'
14108 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14110 ;;
14111 *)
vapier7f19c022007-02-17 14:46:31 +000014112 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000014113 dynamic_linker="$host_os dld.sl"
14114 shlibpath_var=SHLIB_PATH
14115 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14117 soname_spec='${libname}${release}${shared_ext}$major'
14118 ;;
14119 esac
14120 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14121 postinstall_cmds='chmod 555 $lib'
14122 ;;
14123
vapier7f19c022007-02-17 14:46:31 +000014124interix3*)
14125 version_type=linux
14126 need_lib_prefix=no
14127 need_version=no
14128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14129 soname_spec='${libname}${release}${shared_ext}$major'
14130 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14131 shlibpath_var=LD_LIBRARY_PATH
14132 shlibpath_overrides_runpath=no
14133 hardcode_into_libs=yes
14134 ;;
14135
a.rottmann9bc8b932004-02-29 15:18:31 +000014136irix5* | irix6* | nonstopux*)
14137 case $host_os in
14138 nonstopux*) version_type=nonstopux ;;
14139 *)
14140 if test "$lt_cv_prog_gnu_ld" = yes; then
14141 version_type=linux
14142 else
14143 version_type=irix
14144 fi ;;
14145 esac
14146 need_lib_prefix=no
14147 need_version=no
14148 soname_spec='${libname}${release}${shared_ext}$major'
14149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14150 case $host_os in
14151 irix5* | nonstopux*)
14152 libsuff= shlibsuff=
14153 ;;
14154 *)
14155 case $LD in # libtool.m4 will add one of these switches to LD
14156 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14157 libsuff= shlibsuff= libmagic=32-bit;;
14158 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14159 libsuff=32 shlibsuff=N32 libmagic=N32;;
14160 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14161 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14162 *) libsuff= shlibsuff= libmagic=never-match;;
14163 esac
14164 ;;
14165 esac
14166 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14167 shlibpath_overrides_runpath=no
14168 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14169 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14170 hardcode_into_libs=yes
14171 ;;
14172
14173# No shared lib support for Linux oldld, aout, or coff.
14174linux*oldld* | linux*aout* | linux*coff*)
14175 dynamic_linker=no
14176 ;;
14177
14178# This must be Linux ELF.
14179linux*)
14180 version_type=linux
14181 need_lib_prefix=no
14182 need_version=no
14183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14184 soname_spec='${libname}${release}${shared_ext}$major'
14185 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14186 shlibpath_var=LD_LIBRARY_PATH
14187 shlibpath_overrides_runpath=no
14188 # This implies no fast_install, which is unacceptable.
14189 # Some rework will be needed to allow for fast_install
14190 # before this can be enabled.
14191 hardcode_into_libs=yes
14192
14193 # Append ld.so.conf contents to the search path
14194 if test -f /etc/ld.so.conf; then
vapier7f19c022007-02-17 14:46:31 +000014195 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14196 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +000014197 fi
14198
14199 # We used to test for /lib/ld.so.1 and disable shared libraries on
14200 # powerpc, because MkLinux only supported shared libraries with the
14201 # GNU dynamic linker. Since this was broken with cross compilers,
14202 # most powerpc-linux boxes support dynamic linking these days and
14203 # people can always --disable-shared, the test was removed, and we
14204 # assume the GNU/Linux dynamic linker is in use.
14205 dynamic_linker='GNU/Linux ld.so'
14206 ;;
14207
14208knetbsd*-gnu)
14209 version_type=linux
14210 need_lib_prefix=no
14211 need_version=no
14212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14213 soname_spec='${libname}${release}${shared_ext}$major'
14214 shlibpath_var=LD_LIBRARY_PATH
14215 shlibpath_overrides_runpath=no
14216 hardcode_into_libs=yes
14217 dynamic_linker='GNU ld.so'
14218 ;;
14219
14220netbsd*)
14221 version_type=sunos
14222 need_lib_prefix=no
14223 need_version=no
14224 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14227 dynamic_linker='NetBSD (a.out) ld.so'
14228 else
14229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14230 soname_spec='${libname}${release}${shared_ext}$major'
14231 dynamic_linker='NetBSD ld.elf_so'
14232 fi
14233 shlibpath_var=LD_LIBRARY_PATH
14234 shlibpath_overrides_runpath=yes
14235 hardcode_into_libs=yes
14236 ;;
14237
14238newsos6)
14239 version_type=linux
14240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14241 shlibpath_var=LD_LIBRARY_PATH
14242 shlibpath_overrides_runpath=yes
14243 ;;
14244
14245nto-qnx*)
14246 version_type=linux
14247 need_lib_prefix=no
14248 need_version=no
14249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14250 soname_spec='${libname}${release}${shared_ext}$major'
14251 shlibpath_var=LD_LIBRARY_PATH
14252 shlibpath_overrides_runpath=yes
14253 ;;
14254
14255openbsd*)
14256 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +000014257 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +000014258 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +000014259 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14260 case $host_os in
14261 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14262 *) need_version=no ;;
14263 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000014264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14266 shlibpath_var=LD_LIBRARY_PATH
14267 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14268 case $host_os in
14269 openbsd2.[89] | openbsd2.[89].*)
14270 shlibpath_overrides_runpath=no
14271 ;;
14272 *)
14273 shlibpath_overrides_runpath=yes
14274 ;;
14275 esac
14276 else
14277 shlibpath_overrides_runpath=yes
14278 fi
14279 ;;
14280
14281os2*)
14282 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +000014283 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000014284 need_lib_prefix=no
14285 library_names_spec='$libname${shared_ext} $libname.a'
14286 dynamic_linker='OS/2 ld.exe'
14287 shlibpath_var=LIBPATH
14288 ;;
14289
14290osf3* | osf4* | osf5*)
14291 version_type=osf
14292 need_lib_prefix=no
14293 need_version=no
14294 soname_spec='${libname}${release}${shared_ext}$major'
14295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14296 shlibpath_var=LD_LIBRARY_PATH
14297 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14298 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14299 ;;
14300
a.rottmann9bc8b932004-02-29 15:18:31 +000014301solaris*)
14302 version_type=linux
14303 need_lib_prefix=no
14304 need_version=no
14305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14306 soname_spec='${libname}${release}${shared_ext}$major'
14307 shlibpath_var=LD_LIBRARY_PATH
14308 shlibpath_overrides_runpath=yes
14309 hardcode_into_libs=yes
14310 # ldd complains unless libraries are executable
14311 postinstall_cmds='chmod +x $lib'
14312 ;;
14313
14314sunos4*)
14315 version_type=sunos
14316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14317 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14318 shlibpath_var=LD_LIBRARY_PATH
14319 shlibpath_overrides_runpath=yes
14320 if test "$with_gnu_ld" = yes; then
14321 need_lib_prefix=no
14322 fi
14323 need_version=yes
14324 ;;
14325
vapier7f19c022007-02-17 14:46:31 +000014326sysv4 | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014327 version_type=linux
14328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14329 soname_spec='${libname}${release}${shared_ext}$major'
14330 shlibpath_var=LD_LIBRARY_PATH
14331 case $host_vendor in
14332 sni)
14333 shlibpath_overrides_runpath=no
14334 need_lib_prefix=no
14335 export_dynamic_flag_spec='${wl}-Blargedynsym'
14336 runpath_var=LD_RUN_PATH
14337 ;;
14338 siemens)
14339 need_lib_prefix=no
14340 ;;
14341 motorola)
14342 need_lib_prefix=no
14343 need_version=no
14344 shlibpath_overrides_runpath=no
14345 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14346 ;;
14347 esac
14348 ;;
14349
14350sysv4*MP*)
14351 if test -d /usr/nec ;then
14352 version_type=linux
14353 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14354 soname_spec='$libname${shared_ext}.$major'
14355 shlibpath_var=LD_LIBRARY_PATH
14356 fi
14357 ;;
14358
vapier7f19c022007-02-17 14:46:31 +000014359sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14360 version_type=freebsd-elf
14361 need_lib_prefix=no
14362 need_version=no
14363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14364 soname_spec='${libname}${release}${shared_ext}$major'
14365 shlibpath_var=LD_LIBRARY_PATH
14366 hardcode_into_libs=yes
14367 if test "$with_gnu_ld" = yes; then
14368 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14369 shlibpath_overrides_runpath=no
14370 else
14371 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14372 shlibpath_overrides_runpath=yes
14373 case $host_os in
14374 sco3.2v5*)
14375 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14376 ;;
14377 esac
14378 fi
14379 sys_lib_dlsearch_path_spec='/usr/lib'
14380 ;;
14381
a.rottmann9bc8b932004-02-29 15:18:31 +000014382uts4*)
14383 version_type=linux
14384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14385 soname_spec='${libname}${release}${shared_ext}$major'
14386 shlibpath_var=LD_LIBRARY_PATH
14387 ;;
14388
14389*)
14390 dynamic_linker=no
14391 ;;
14392esac
drh613a0fe2007-11-23 17:31:17 +000014393echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14394echo "${ECHO_T}$dynamic_linker" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000014395test "$dynamic_linker" = no && can_build_shared=no
14396
vapier7f19c022007-02-17 14:46:31 +000014397variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14398if test "$GCC" = yes; then
14399 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14400fi
14401
drh613a0fe2007-11-23 17:31:17 +000014402echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14403echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000014404hardcode_action_F77=
14405if test -n "$hardcode_libdir_flag_spec_F77" || \
vapier7f19c022007-02-17 14:46:31 +000014406 test -n "$runpath_var_F77" || \
14407 test "X$hardcode_automatic_F77" = "Xyes" ; then
a.rottmann9bc8b932004-02-29 15:18:31 +000014408
14409 # We can hardcode non-existant directories.
14410 if test "$hardcode_direct_F77" != no &&
14411 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14412 # have to relink, otherwise we might link with an installed library
14413 # when we should be linking with a yet-to-be-installed one
14414 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14415 test "$hardcode_minus_L_F77" != no; then
14416 # Linking always hardcodes the temporary library directory.
14417 hardcode_action_F77=relink
14418 else
14419 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14420 hardcode_action_F77=immediate
14421 fi
14422else
14423 # We cannot hardcode anything, or else we can only hardcode existing
14424 # directories.
14425 hardcode_action_F77=unsupported
14426fi
drh613a0fe2007-11-23 17:31:17 +000014427echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14428echo "${ECHO_T}$hardcode_action_F77" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000014429
14430if test "$hardcode_action_F77" = relink; then
14431 # Fast installation is not supported
14432 enable_fast_install=no
14433elif test "$shlibpath_overrides_runpath" = yes ||
14434 test "$enable_shared" = no; then
14435 # Fast installation is not necessary
14436 enable_fast_install=needless
14437fi
14438
a.rottmann9bc8b932004-02-29 15:18:31 +000014439
14440# The else clause should only fire when bootstrapping the
14441# libtool distribution, otherwise you forgot to ship ltmain.sh
14442# with your package, and you will get complaints that there are
14443# no rules to generate ltmain.sh.
14444if test -f "$ltmain"; then
14445 # See if we are running on zsh, and set the options which allow our commands through
14446 # without removal of \ escapes.
14447 if test -n "${ZSH_VERSION+set}" ; then
14448 setopt NO_GLOB_SUBST
14449 fi
14450 # Now quote all the things that may contain metacharacters while being
14451 # careful not to overquote the AC_SUBSTed values. We take copies of the
14452 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +000014453 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a.rottmann9bc8b932004-02-29 15:18:31 +000014454 SED SHELL STRIP \
14455 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14456 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14457 deplibs_check_method reload_flag reload_cmds need_locks \
14458 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14459 lt_cv_sys_global_symbol_to_c_name_address \
14460 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14461 old_postinstall_cmds old_postuninstall_cmds \
14462 compiler_F77 \
14463 CC_F77 \
14464 LD_F77 \
14465 lt_prog_compiler_wl_F77 \
14466 lt_prog_compiler_pic_F77 \
14467 lt_prog_compiler_static_F77 \
14468 lt_prog_compiler_no_builtin_flag_F77 \
14469 export_dynamic_flag_spec_F77 \
14470 thread_safe_flag_spec_F77 \
14471 whole_archive_flag_spec_F77 \
14472 enable_shared_with_static_runtimes_F77 \
14473 old_archive_cmds_F77 \
14474 old_archive_from_new_cmds_F77 \
14475 predep_objects_F77 \
14476 postdep_objects_F77 \
14477 predeps_F77 \
14478 postdeps_F77 \
14479 compiler_lib_search_path_F77 \
14480 archive_cmds_F77 \
14481 archive_expsym_cmds_F77 \
14482 postinstall_cmds_F77 \
14483 postuninstall_cmds_F77 \
14484 old_archive_from_expsyms_cmds_F77 \
14485 allow_undefined_flag_F77 \
14486 no_undefined_flag_F77 \
14487 export_symbols_cmds_F77 \
14488 hardcode_libdir_flag_spec_F77 \
14489 hardcode_libdir_flag_spec_ld_F77 \
14490 hardcode_libdir_separator_F77 \
14491 hardcode_automatic_F77 \
14492 module_cmds_F77 \
14493 module_expsym_cmds_F77 \
14494 lt_cv_prog_compiler_c_o_F77 \
14495 exclude_expsyms_F77 \
14496 include_expsyms_F77; do
14497
14498 case $var in
14499 old_archive_cmds_F77 | \
14500 old_archive_from_new_cmds_F77 | \
14501 archive_cmds_F77 | \
14502 archive_expsym_cmds_F77 | \
14503 module_cmds_F77 | \
14504 module_expsym_cmds_F77 | \
14505 old_archive_from_expsyms_cmds_F77 | \
14506 export_symbols_cmds_F77 | \
14507 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14508 postinstall_cmds | postuninstall_cmds | \
14509 old_postinstall_cmds | old_postuninstall_cmds | \
14510 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14511 # Double-quote double-evaled strings.
14512 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14513 ;;
14514 *)
14515 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14516 ;;
14517 esac
14518 done
14519
14520 case $lt_echo in
14521 *'\$0 --fallback-echo"')
14522 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14523 ;;
14524 esac
14525
14526cfgfile="$ofile"
14527
14528 cat <<__EOF__ >> "$cfgfile"
14529# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14530
14531# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14532
14533# Shell to use when invoking shell scripts.
14534SHELL=$lt_SHELL
14535
14536# Whether or not to build shared libraries.
14537build_libtool_libs=$enable_shared
14538
14539# Whether or not to build static libraries.
14540build_old_libs=$enable_static
14541
14542# Whether or not to add -lc for building shared libraries.
14543build_libtool_need_lc=$archive_cmds_need_lc_F77
14544
14545# Whether or not to disallow shared libs when runtime libs are static
14546allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14547
14548# Whether or not to optimize for fast installation.
14549fast_install=$enable_fast_install
14550
14551# The host system.
14552host_alias=$host_alias
14553host=$host
vapier7f19c022007-02-17 14:46:31 +000014554host_os=$host_os
14555
14556# The build system.
14557build_alias=$build_alias
14558build=$build
14559build_os=$build_os
a.rottmann9bc8b932004-02-29 15:18:31 +000014560
14561# An echo program that does not interpret backslashes.
14562echo=$lt_echo
14563
14564# The archiver.
14565AR=$lt_AR
14566AR_FLAGS=$lt_AR_FLAGS
14567
14568# A C compiler.
14569LTCC=$lt_LTCC
14570
vapier7f19c022007-02-17 14:46:31 +000014571# LTCC compiler flags.
14572LTCFLAGS=$lt_LTCFLAGS
14573
a.rottmann9bc8b932004-02-29 15:18:31 +000014574# A language-specific compiler.
14575CC=$lt_compiler_F77
14576
14577# Is the compiler the GNU C compiler?
14578with_gcc=$GCC_F77
14579
14580# An ERE matcher.
14581EGREP=$lt_EGREP
14582
14583# The linker used to build libraries.
14584LD=$lt_LD_F77
14585
14586# Whether we need hard or soft links.
14587LN_S=$lt_LN_S
14588
14589# A BSD-compatible nm program.
14590NM=$lt_NM
14591
14592# A symbol stripping program
14593STRIP=$lt_STRIP
14594
14595# Used to examine libraries when file_magic_cmd begins "file"
14596MAGIC_CMD=$MAGIC_CMD
14597
14598# Used on cygwin: DLL creation program.
14599DLLTOOL="$DLLTOOL"
14600
14601# Used on cygwin: object dumper.
14602OBJDUMP="$OBJDUMP"
14603
14604# Used on cygwin: assembler.
14605AS="$AS"
14606
14607# The name of the directory that contains temporary libtool files.
14608objdir=$objdir
14609
14610# How to create reloadable object files.
14611reload_flag=$lt_reload_flag
14612reload_cmds=$lt_reload_cmds
14613
14614# How to pass a linker flag through the compiler.
14615wl=$lt_lt_prog_compiler_wl_F77
14616
14617# Object file suffix (normally "o").
14618objext="$ac_objext"
14619
14620# Old archive suffix (normally "a").
14621libext="$libext"
14622
14623# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +000014624shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +000014625
14626# Executable file suffix (normally "").
14627exeext="$exeext"
14628
14629# Additional compiler flags for building library objects.
14630pic_flag=$lt_lt_prog_compiler_pic_F77
14631pic_mode=$pic_mode
14632
14633# What is the maximum length of a command?
14634max_cmd_len=$lt_cv_sys_max_cmd_len
14635
14636# Does compiler simultaneously support -c and -o options?
14637compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14638
vapier7f19c022007-02-17 14:46:31 +000014639# Must we lock files when doing compilation?
a.rottmann9bc8b932004-02-29 15:18:31 +000014640need_locks=$lt_need_locks
14641
14642# Do we need the lib prefix for modules?
14643need_lib_prefix=$need_lib_prefix
14644
14645# Do we need a version for libraries?
14646need_version=$need_version
14647
14648# Whether dlopen is supported.
14649dlopen_support=$enable_dlopen
14650
14651# Whether dlopen of programs is supported.
14652dlopen_self=$enable_dlopen_self
14653
14654# Whether dlopen of statically linked programs is supported.
14655dlopen_self_static=$enable_dlopen_self_static
14656
14657# Compiler flag to prevent dynamic linking.
14658link_static_flag=$lt_lt_prog_compiler_static_F77
14659
14660# Compiler flag to turn off builtin functions.
14661no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14662
14663# Compiler flag to allow reflexive dlopens.
14664export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14665
14666# Compiler flag to generate shared objects directly from archives.
14667whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14668
14669# Compiler flag to generate thread-safe objects.
14670thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14671
14672# Library versioning type.
14673version_type=$version_type
14674
14675# Format of library name prefix.
14676libname_spec=$lt_libname_spec
14677
14678# List of archive names. First name is the real one, the rest are links.
14679# The last name is the one that the linker finds with -lNAME.
14680library_names_spec=$lt_library_names_spec
14681
14682# The coded name of the library, if different from the real name.
14683soname_spec=$lt_soname_spec
14684
14685# Commands used to build and install an old-style archive.
14686RANLIB=$lt_RANLIB
14687old_archive_cmds=$lt_old_archive_cmds_F77
14688old_postinstall_cmds=$lt_old_postinstall_cmds
14689old_postuninstall_cmds=$lt_old_postuninstall_cmds
14690
14691# Create an old-style archive from a shared archive.
14692old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14693
14694# Create a temporary old-style archive to link instead of a shared archive.
14695old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14696
14697# Commands used to build and install a shared archive.
14698archive_cmds=$lt_archive_cmds_F77
14699archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14700postinstall_cmds=$lt_postinstall_cmds
14701postuninstall_cmds=$lt_postuninstall_cmds
14702
14703# Commands used to build a loadable module (assumed same as above if empty)
14704module_cmds=$lt_module_cmds_F77
14705module_expsym_cmds=$lt_module_expsym_cmds_F77
14706
14707# Commands to strip libraries.
14708old_striplib=$lt_old_striplib
14709striplib=$lt_striplib
14710
14711# Dependencies to place before the objects being linked to create a
14712# shared library.
14713predep_objects=$lt_predep_objects_F77
14714
14715# Dependencies to place after the objects being linked to create a
14716# shared library.
14717postdep_objects=$lt_postdep_objects_F77
14718
14719# Dependencies to place before the objects being linked to create a
14720# shared library.
14721predeps=$lt_predeps_F77
14722
14723# Dependencies to place after the objects being linked to create a
14724# shared library.
14725postdeps=$lt_postdeps_F77
14726
14727# The library search path used internally by the compiler when linking
14728# a shared library.
14729compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14730
14731# Method to check whether dependent libraries are shared objects.
14732deplibs_check_method=$lt_deplibs_check_method
14733
14734# Command to use when deplibs_check_method == file_magic.
14735file_magic_cmd=$lt_file_magic_cmd
14736
14737# Flag that allows shared libraries with undefined symbols to be built.
14738allow_undefined_flag=$lt_allow_undefined_flag_F77
14739
14740# Flag that forces no undefined symbols.
14741no_undefined_flag=$lt_no_undefined_flag_F77
14742
14743# Commands used to finish a libtool library installation in a directory.
14744finish_cmds=$lt_finish_cmds
14745
14746# Same as above, but a single script fragment to be evaled but not shown.
14747finish_eval=$lt_finish_eval
14748
14749# Take the output of nm and produce a listing of raw symbols and C names.
14750global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14751
14752# Transform the output of nm in a proper C declaration
14753global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14754
14755# Transform the output of nm in a C name address pair
14756global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14757
14758# This is the shared library runtime path variable.
14759runpath_var=$runpath_var
14760
14761# This is the shared library path variable.
14762shlibpath_var=$shlibpath_var
14763
14764# Is shlibpath searched before the hard-coded library search path?
14765shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14766
14767# How to hardcode a shared library path into an executable.
14768hardcode_action=$hardcode_action_F77
14769
14770# Whether we should hardcode library paths into libraries.
14771hardcode_into_libs=$hardcode_into_libs
14772
14773# Flag to hardcode \$libdir into a binary during linking.
14774# This must work even if \$libdir does not exist.
14775hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14776
14777# If ld is used when linking, flag to hardcode \$libdir into
14778# a binary during linking. This must work even if \$libdir does
14779# not exist.
14780hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14781
14782# Whether we need a single -rpath flag with a separated argument.
14783hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14784
14785# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14786# resulting binary.
14787hardcode_direct=$hardcode_direct_F77
14788
14789# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14790# resulting binary.
14791hardcode_minus_L=$hardcode_minus_L_F77
14792
14793# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14794# the resulting binary.
14795hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14796
14797# Set to yes if building a shared library automatically hardcodes DIR into the library
14798# and all subsequent libraries and executables linked against it.
14799hardcode_automatic=$hardcode_automatic_F77
14800
14801# Variables whose values should be saved in libtool wrapper scripts and
14802# restored at relink time.
14803variables_saved_for_relink="$variables_saved_for_relink"
14804
14805# Whether libtool must link a program against all its dependency libraries.
14806link_all_deplibs=$link_all_deplibs_F77
14807
14808# Compile-time system search path for libraries
14809sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14810
14811# Run-time system search path for libraries
14812sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14813
14814# Fix the shell variable \$srcfile for the compiler.
14815fix_srcfile_path="$fix_srcfile_path_F77"
14816
14817# Set to yes if exported symbols are required.
14818always_export_symbols=$always_export_symbols_F77
14819
14820# The commands to list exported symbols.
14821export_symbols_cmds=$lt_export_symbols_cmds_F77
14822
14823# The commands to extract the exported symbol list from a shared archive.
14824extract_expsyms_cmds=$lt_extract_expsyms_cmds
14825
14826# Symbols that should not be listed in the preloaded symbols.
14827exclude_expsyms=$lt_exclude_expsyms_F77
14828
14829# Symbols that must always be exported.
14830include_expsyms=$lt_include_expsyms_F77
14831
14832# ### END LIBTOOL TAG CONFIG: $tagname
14833
14834__EOF__
14835
14836
14837else
14838 # If there is no Makefile yet, we rely on a make rule to execute
14839 # `config.status --recheck' to rerun these tests and create the
14840 # libtool script then.
14841 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14842 if test -f "$ltmain_in"; then
14843 test -f Makefile && make "$ltmain"
14844 fi
14845fi
14846
14847
14848ac_ext=c
14849ac_cpp='$CPP $CPPFLAGS'
14850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14852ac_compiler_gnu=$ac_cv_c_compiler_gnu
14853
14854CC="$lt_save_CC"
14855
14856 else
14857 tagname=""
14858 fi
14859 ;;
14860
14861 GCJ)
14862 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14863
14864
drh613a0fe2007-11-23 17:31:17 +000014865
a.rottmann9bc8b932004-02-29 15:18:31 +000014866# Source file extension for Java test sources.
14867ac_ext=java
14868
14869# Object file extension for compiled Java test sources.
14870objext=o
14871objext_GCJ=$objext
14872
14873# Code to be used in simple compile tests
14874lt_simple_compile_test_code="class foo {}\n"
14875
14876# Code to be used in simple link tests
vapier7f19c022007-02-17 14:46:31 +000014877lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
a.rottmann9bc8b932004-02-29 15:18:31 +000014878
14879# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14880
14881# If no C compiler was specified, use CC.
14882LTCC=${LTCC-"$CC"}
14883
vapier7f19c022007-02-17 14:46:31 +000014884# If no C compiler flags were specified, use CFLAGS.
14885LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14886
a.rottmann9bc8b932004-02-29 15:18:31 +000014887# Allow CC to be a program name with arguments.
14888compiler=$CC
14889
14890
vapier7f19c022007-02-17 14:46:31 +000014891# save warnings/boilerplate of simple test code
14892ac_outfile=conftest.$ac_objext
14893printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14894eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14895_lt_compiler_boilerplate=`cat conftest.err`
14896$rm conftest*
14897
14898ac_outfile=conftest.$ac_objext
14899printf "$lt_simple_link_test_code" >conftest.$ac_ext
14900eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14901_lt_linker_boilerplate=`cat conftest.err`
14902$rm conftest*
14903
14904
a.rottmann9bc8b932004-02-29 15:18:31 +000014905# Allow CC to be a program name with arguments.
14906lt_save_CC="$CC"
14907CC=${GCJ-"gcj"}
14908compiler=$CC
14909compiler_GCJ=$CC
vapier7f19c022007-02-17 14:46:31 +000014910for cc_temp in $compiler""; do
14911 case $cc_temp in
14912 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14913 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14914 \-*) ;;
14915 *) break;;
14916 esac
14917done
14918cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14919
a.rottmann9bc8b932004-02-29 15:18:31 +000014920
14921# GCJ did not exist at the time GCC didn't implicitly link libc in.
14922archive_cmds_need_lc_GCJ=no
14923
vapier7f19c022007-02-17 14:46:31 +000014924old_archive_cmds_GCJ=$old_archive_cmds
14925
a.rottmann9bc8b932004-02-29 15:18:31 +000014926
14927lt_prog_compiler_no_builtin_flag_GCJ=
14928
14929if test "$GCC" = yes; then
14930 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14931
14932
drh613a0fe2007-11-23 17:31:17 +000014933echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14934echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000014935if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14937else
14938 lt_cv_prog_compiler_rtti_exceptions=no
14939 ac_outfile=conftest.$ac_objext
14940 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14941 lt_compiler_flag="-fno-rtti -fno-exceptions"
14942 # Insert the option either (1) after the last *FLAGS variable, or
14943 # (2) before a word containing "conftest.", or (3) at the end.
14944 # Note that $ac_compile itself does not contain backslashes and begins
14945 # with a dollar sign (not a hyphen), so the echo should work correctly.
14946 # The option is referenced via a variable to avoid confusing sed.
14947 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000014948 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000014949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14950 -e 's:$: $lt_compiler_flag:'`
drh613a0fe2007-11-23 17:31:17 +000014951 (eval echo "\"\$as_me:14951: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000014952 (eval "$lt_compile" 2>conftest.err)
14953 ac_status=$?
14954 cat conftest.err >&5
drh613a0fe2007-11-23 17:31:17 +000014955 echo "$as_me:14955: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000014956 if (exit $ac_status) && test -s "$ac_outfile"; then
14957 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +000014958 # So say no if there are warnings other than the usual output.
14959 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14960 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14961 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000014962 lt_cv_prog_compiler_rtti_exceptions=yes
14963 fi
14964 fi
14965 $rm conftest*
14966
14967fi
drh613a0fe2007-11-23 17:31:17 +000014968echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14969echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000014970
14971if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14972 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14973else
14974 :
14975fi
14976
14977fi
14978
14979lt_prog_compiler_wl_GCJ=
14980lt_prog_compiler_pic_GCJ=
14981lt_prog_compiler_static_GCJ=
14982
drh613a0fe2007-11-23 17:31:17 +000014983echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14984echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000014985
14986 if test "$GCC" = yes; then
14987 lt_prog_compiler_wl_GCJ='-Wl,'
14988 lt_prog_compiler_static_GCJ='-static'
14989
14990 case $host_os in
14991 aix*)
14992 # All AIX code is PIC.
14993 if test "$host_cpu" = ia64; then
14994 # AIX 5 now supports IA64 processor
14995 lt_prog_compiler_static_GCJ='-Bstatic'
14996 fi
14997 ;;
14998
14999 amigaos*)
15000 # FIXME: we need at least 68020 code to build shared libraries, but
15001 # adding the `-m68020' flag to GCC prevents building anything better,
15002 # like `-m68040'.
15003 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15004 ;;
15005
15006 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15007 # PIC is the default for these OSes.
15008 ;;
15009
15010 mingw* | pw32* | os2*)
15011 # This hack is so that the source file can tell whether it is being
15012 # built for inclusion in a dll (and should export symbols for example).
15013 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15014 ;;
15015
15016 darwin* | rhapsody*)
15017 # PIC is the default on this platform
15018 # Common symbols not allowed in MH_DYLIB files
15019 lt_prog_compiler_pic_GCJ='-fno-common'
15020 ;;
15021
vapier7f19c022007-02-17 14:46:31 +000015022 interix3*)
15023 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15024 # Instead, we relocate shared libraries at runtime.
15025 ;;
15026
a.rottmann9bc8b932004-02-29 15:18:31 +000015027 msdosdjgpp*)
15028 # Just because we use GCC doesn't mean we suddenly get shared libraries
15029 # on systems that don't support them.
15030 lt_prog_compiler_can_build_shared_GCJ=no
15031 enable_shared=no
15032 ;;
15033
15034 sysv4*MP*)
15035 if test -d /usr/nec; then
15036 lt_prog_compiler_pic_GCJ=-Kconform_pic
15037 fi
15038 ;;
15039
15040 hpux*)
15041 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15042 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000015043 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000015044 hppa*64*|ia64*)
15045 # +Z the default
15046 ;;
15047 *)
15048 lt_prog_compiler_pic_GCJ='-fPIC'
15049 ;;
15050 esac
15051 ;;
15052
15053 *)
15054 lt_prog_compiler_pic_GCJ='-fPIC'
15055 ;;
15056 esac
15057 else
15058 # PORTME Check for flag to pass linker flags through the system compiler.
15059 case $host_os in
15060 aix*)
15061 lt_prog_compiler_wl_GCJ='-Wl,'
15062 if test "$host_cpu" = ia64; then
15063 # AIX 5 now supports IA64 processor
15064 lt_prog_compiler_static_GCJ='-Bstatic'
15065 else
15066 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15067 fi
15068 ;;
vapier7f19c022007-02-17 14:46:31 +000015069 darwin*)
15070 # PIC is the default on this platform
15071 # Common symbols not allowed in MH_DYLIB files
15072 case $cc_basename in
15073 xlc*)
15074 lt_prog_compiler_pic_GCJ='-qnocommon'
15075 lt_prog_compiler_wl_GCJ='-Wl,'
15076 ;;
15077 esac
15078 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000015079
15080 mingw* | pw32* | os2*)
15081 # This hack is so that the source file can tell whether it is being
15082 # built for inclusion in a dll (and should export symbols for example).
15083 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15084 ;;
15085
15086 hpux9* | hpux10* | hpux11*)
15087 lt_prog_compiler_wl_GCJ='-Wl,'
15088 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15089 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000015090 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000015091 hppa*64*|ia64*)
15092 # +Z the default
15093 ;;
15094 *)
15095 lt_prog_compiler_pic_GCJ='+Z'
15096 ;;
15097 esac
15098 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15099 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15100 ;;
15101
15102 irix5* | irix6* | nonstopux*)
15103 lt_prog_compiler_wl_GCJ='-Wl,'
15104 # PIC (with -KPIC) is the default.
15105 lt_prog_compiler_static_GCJ='-non_shared'
15106 ;;
15107
15108 newsos6)
15109 lt_prog_compiler_pic_GCJ='-KPIC'
15110 lt_prog_compiler_static_GCJ='-Bstatic'
15111 ;;
15112
15113 linux*)
vapier7f19c022007-02-17 14:46:31 +000015114 case $cc_basename in
a.rottmann9bc8b932004-02-29 15:18:31 +000015115 icc* | ecc*)
15116 lt_prog_compiler_wl_GCJ='-Wl,'
15117 lt_prog_compiler_pic_GCJ='-KPIC'
15118 lt_prog_compiler_static_GCJ='-static'
15119 ;;
vapier7f19c022007-02-17 14:46:31 +000015120 pgcc* | pgf77* | pgf90* | pgf95*)
15121 # Portland Group compilers (*not* the Pentium gcc compiler,
15122 # which looks to be a dead project)
15123 lt_prog_compiler_wl_GCJ='-Wl,'
15124 lt_prog_compiler_pic_GCJ='-fpic'
15125 lt_prog_compiler_static_GCJ='-Bstatic'
15126 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000015127 ccc*)
15128 lt_prog_compiler_wl_GCJ='-Wl,'
15129 # All Alpha code is PIC.
15130 lt_prog_compiler_static_GCJ='-non_shared'
15131 ;;
15132 esac
15133 ;;
15134
15135 osf3* | osf4* | osf5*)
15136 lt_prog_compiler_wl_GCJ='-Wl,'
15137 # All OSF/1 code is PIC.
15138 lt_prog_compiler_static_GCJ='-non_shared'
15139 ;;
15140
a.rottmann9bc8b932004-02-29 15:18:31 +000015141 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +000015142 lt_prog_compiler_pic_GCJ='-KPIC'
15143 lt_prog_compiler_static_GCJ='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +000015144 case $cc_basename in
15145 f77* | f90* | f95*)
15146 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15147 *)
15148 lt_prog_compiler_wl_GCJ='-Wl,';;
15149 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000015150 ;;
15151
15152 sunos4*)
15153 lt_prog_compiler_wl_GCJ='-Qoption ld '
15154 lt_prog_compiler_pic_GCJ='-PIC'
15155 lt_prog_compiler_static_GCJ='-Bstatic'
15156 ;;
15157
vapier7f19c022007-02-17 14:46:31 +000015158 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000015159 lt_prog_compiler_wl_GCJ='-Wl,'
15160 lt_prog_compiler_pic_GCJ='-KPIC'
15161 lt_prog_compiler_static_GCJ='-Bstatic'
15162 ;;
15163
15164 sysv4*MP*)
15165 if test -d /usr/nec ;then
15166 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15167 lt_prog_compiler_static_GCJ='-Bstatic'
15168 fi
15169 ;;
15170
vapier7f19c022007-02-17 14:46:31 +000015171 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15172 lt_prog_compiler_wl_GCJ='-Wl,'
15173 lt_prog_compiler_pic_GCJ='-KPIC'
15174 lt_prog_compiler_static_GCJ='-Bstatic'
15175 ;;
15176
15177 unicos*)
15178 lt_prog_compiler_wl_GCJ='-Wl,'
15179 lt_prog_compiler_can_build_shared_GCJ=no
15180 ;;
15181
a.rottmann9bc8b932004-02-29 15:18:31 +000015182 uts4*)
15183 lt_prog_compiler_pic_GCJ='-pic'
15184 lt_prog_compiler_static_GCJ='-Bstatic'
15185 ;;
15186
15187 *)
15188 lt_prog_compiler_can_build_shared_GCJ=no
15189 ;;
15190 esac
15191 fi
15192
drh613a0fe2007-11-23 17:31:17 +000015193echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15194echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000015195
15196#
15197# Check to make sure the PIC flag actually works.
15198#
15199if test -n "$lt_prog_compiler_pic_GCJ"; then
15200
drh613a0fe2007-11-23 17:31:17 +000015201echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15202echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000015203if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15204 echo $ECHO_N "(cached) $ECHO_C" >&6
15205else
15206 lt_prog_compiler_pic_works_GCJ=no
15207 ac_outfile=conftest.$ac_objext
15208 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15209 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15210 # Insert the option either (1) after the last *FLAGS variable, or
15211 # (2) before a word containing "conftest.", or (3) at the end.
15212 # Note that $ac_compile itself does not contain backslashes and begins
15213 # with a dollar sign (not a hyphen), so the echo should work correctly.
15214 # The option is referenced via a variable to avoid confusing sed.
15215 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000015216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000015217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15218 -e 's:$: $lt_compiler_flag:'`
drh613a0fe2007-11-23 17:31:17 +000015219 (eval echo "\"\$as_me:15219: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000015220 (eval "$lt_compile" 2>conftest.err)
15221 ac_status=$?
15222 cat conftest.err >&5
drh613a0fe2007-11-23 17:31:17 +000015223 echo "$as_me:15223: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015224 if (exit $ac_status) && test -s "$ac_outfile"; then
15225 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +000015226 # So say no if there are warnings other than the usual output.
15227 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15229 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000015230 lt_prog_compiler_pic_works_GCJ=yes
15231 fi
15232 fi
15233 $rm conftest*
15234
15235fi
drh613a0fe2007-11-23 17:31:17 +000015236echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15237echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000015238
15239if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15240 case $lt_prog_compiler_pic_GCJ in
15241 "" | " "*) ;;
15242 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15243 esac
15244else
15245 lt_prog_compiler_pic_GCJ=
15246 lt_prog_compiler_can_build_shared_GCJ=no
15247fi
15248
15249fi
vapier7f19c022007-02-17 14:46:31 +000015250case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +000015251 # For platforms which do not support PIC, -DPIC is meaningless:
15252 *djgpp*)
15253 lt_prog_compiler_pic_GCJ=
15254 ;;
15255 *)
15256 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15257 ;;
15258esac
15259
vapier7f19c022007-02-17 14:46:31 +000015260#
15261# Check to make sure the static flag actually works.
15262#
15263wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
drh613a0fe2007-11-23 17:31:17 +000015264echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15265echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
vapier7f19c022007-02-17 14:46:31 +000015266if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15267 echo $ECHO_N "(cached) $ECHO_C" >&6
15268else
15269 lt_prog_compiler_static_works_GCJ=no
15270 save_LDFLAGS="$LDFLAGS"
15271 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15272 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15273 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15274 # The linker can only warn and ignore the option if not recognized
15275 # So say no if there are warnings
15276 if test -s conftest.err; then
15277 # Append any errors to the config.log.
15278 cat conftest.err 1>&5
15279 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15281 if diff conftest.exp conftest.er2 >/dev/null; then
15282 lt_prog_compiler_static_works_GCJ=yes
15283 fi
15284 else
15285 lt_prog_compiler_static_works_GCJ=yes
15286 fi
15287 fi
15288 $rm conftest*
15289 LDFLAGS="$save_LDFLAGS"
15290
15291fi
drh613a0fe2007-11-23 17:31:17 +000015292echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15293echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
vapier7f19c022007-02-17 14:46:31 +000015294
15295if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15296 :
15297else
15298 lt_prog_compiler_static_GCJ=
15299fi
15300
15301
drh613a0fe2007-11-23 17:31:17 +000015302echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15303echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000015304if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15305 echo $ECHO_N "(cached) $ECHO_C" >&6
15306else
15307 lt_cv_prog_compiler_c_o_GCJ=no
15308 $rm -r conftest 2>/dev/null
15309 mkdir conftest
15310 cd conftest
15311 mkdir out
15312 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15313
15314 lt_compiler_flag="-o out/conftest2.$ac_objext"
15315 # Insert the option either (1) after the last *FLAGS variable, or
15316 # (2) before a word containing "conftest.", or (3) at the end.
15317 # Note that $ac_compile itself does not contain backslashes and begins
15318 # with a dollar sign (not a hyphen), so the echo should work correctly.
15319 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000015320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000015321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15322 -e 's:$: $lt_compiler_flag:'`
drh613a0fe2007-11-23 17:31:17 +000015323 (eval echo "\"\$as_me:15323: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000015324 (eval "$lt_compile" 2>out/conftest.err)
15325 ac_status=$?
15326 cat out/conftest.err >&5
drh613a0fe2007-11-23 17:31:17 +000015327 echo "$as_me:15327: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015328 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15329 then
15330 # The compiler can only warn and ignore the option if not recognized
15331 # So say no if there are warnings
vapier7f19c022007-02-17 14:46:31 +000015332 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15333 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15334 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000015335 lt_cv_prog_compiler_c_o_GCJ=yes
15336 fi
15337 fi
vapier7f19c022007-02-17 14:46:31 +000015338 chmod u+w . 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015339 $rm conftest*
15340 # SGI C++ compiler will create directory out/ii_files/ for
15341 # template instantiation
15342 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15343 $rm out/* && rmdir out
15344 cd ..
15345 rmdir conftest
15346 $rm conftest*
15347
15348fi
drh613a0fe2007-11-23 17:31:17 +000015349echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15350echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000015351
15352
15353hard_links="nottested"
15354if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15355 # do not overwrite the value of need_locks provided by the user
drh613a0fe2007-11-23 17:31:17 +000015356 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15357echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000015358 hard_links=yes
15359 $rm conftest*
15360 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15361 touch conftest.a
15362 ln conftest.a conftest.b 2>&5 || hard_links=no
15363 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drh613a0fe2007-11-23 17:31:17 +000015364 echo "$as_me:$LINENO: result: $hard_links" >&5
15365echo "${ECHO_T}$hard_links" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000015366 if test "$hard_links" = no; then
15367 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15368echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15369 need_locks=warn
15370 fi
15371else
15372 need_locks=no
15373fi
15374
drh613a0fe2007-11-23 17:31:17 +000015375echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15376echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000015377
15378 runpath_var=
15379 allow_undefined_flag_GCJ=
15380 enable_shared_with_static_runtimes_GCJ=no
15381 archive_cmds_GCJ=
15382 archive_expsym_cmds_GCJ=
15383 old_archive_From_new_cmds_GCJ=
15384 old_archive_from_expsyms_cmds_GCJ=
15385 export_dynamic_flag_spec_GCJ=
15386 whole_archive_flag_spec_GCJ=
15387 thread_safe_flag_spec_GCJ=
15388 hardcode_libdir_flag_spec_GCJ=
15389 hardcode_libdir_flag_spec_ld_GCJ=
15390 hardcode_libdir_separator_GCJ=
15391 hardcode_direct_GCJ=no
15392 hardcode_minus_L_GCJ=no
15393 hardcode_shlibpath_var_GCJ=unsupported
15394 link_all_deplibs_GCJ=unknown
15395 hardcode_automatic_GCJ=no
15396 module_cmds_GCJ=
15397 module_expsym_cmds_GCJ=
15398 always_export_symbols_GCJ=no
15399 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15400 # include_expsyms should be a list of space-separated symbols to be *always*
15401 # included in the symbol list
15402 include_expsyms_GCJ=
15403 # exclude_expsyms can be an extended regexp of symbols to exclude
15404 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15405 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15406 # as well as any symbol that contains `d'.
15407 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15408 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15409 # platforms (ab)use it in PIC code, but their linkers get confused if
15410 # the symbol is explicitly referenced. Since portable code cannot
15411 # rely on this symbol name, it's probably fine to never include it in
15412 # preloaded symbol tables.
15413 extract_expsyms_cmds=
vapier7f19c022007-02-17 14:46:31 +000015414 # Just being paranoid about ensuring that cc_basename is set.
15415 for cc_temp in $compiler""; do
15416 case $cc_temp in
15417 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15418 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15419 \-*) ;;
15420 *) break;;
15421 esac
15422done
15423cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a.rottmann9bc8b932004-02-29 15:18:31 +000015424
15425 case $host_os in
15426 cygwin* | mingw* | pw32*)
15427 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15428 # When not using gcc, we currently assume that we are using
15429 # Microsoft Visual C++.
15430 if test "$GCC" != yes; then
15431 with_gnu_ld=no
15432 fi
15433 ;;
vapier7f19c022007-02-17 14:46:31 +000015434 interix*)
15435 # we just hope/assume this is gcc and not c89 (= MSVC++)
15436 with_gnu_ld=yes
15437 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000015438 openbsd*)
15439 with_gnu_ld=no
15440 ;;
15441 esac
15442
15443 ld_shlibs_GCJ=yes
15444 if test "$with_gnu_ld" = yes; then
15445 # If archive_cmds runs LD, not CC, wlarc should be empty
15446 wlarc='${wl}'
15447
vapier7f19c022007-02-17 14:46:31 +000015448 # Set some defaults for GNU ld with shared library support. These
15449 # are reset later if shared libraries are not supported. Putting them
15450 # here allows them to be overridden if necessary.
15451 runpath_var=LD_RUN_PATH
15452 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15453 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15454 # ancient GNU ld didn't support --whole-archive et. al.
15455 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15456 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15457 else
15458 whole_archive_flag_spec_GCJ=
15459 fi
15460 supports_anon_versioning=no
15461 case `$LD -v 2>/dev/null` in
15462 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15463 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15464 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15465 *\ 2.11.*) ;; # other 2.11 versions
15466 *) supports_anon_versioning=yes ;;
15467 esac
15468
a.rottmann9bc8b932004-02-29 15:18:31 +000015469 # See if GNU ld supports shared libraries.
15470 case $host_os in
15471 aix3* | aix4* | aix5*)
15472 # On AIX/PPC, the GNU linker is very broken
15473 if test "$host_cpu" != ia64; then
15474 ld_shlibs_GCJ=no
15475 cat <<EOF 1>&2
15476
15477*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15478*** to be unable to reliably create shared libraries on AIX.
15479*** Therefore, libtool is disabling shared libraries support. If you
15480*** really care for shared libraries, you may want to modify your PATH
15481*** so that a non-GNU linker is found, and then restart.
15482
15483EOF
15484 fi
15485 ;;
15486
15487 amigaos*)
15488 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)'
15489 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15490 hardcode_minus_L_GCJ=yes
15491
15492 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15493 # that the semantics of dynamic libraries on AmigaOS, at least up
15494 # to version 4, is to share data among multiple programs linked
15495 # with the same dynamic library. Since this doesn't match the
15496 # behavior of shared libraries on other platforms, we can't use
15497 # them.
15498 ld_shlibs_GCJ=no
15499 ;;
15500
15501 beos*)
15502 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15503 allow_undefined_flag_GCJ=unsupported
15504 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15505 # support --undefined. This deserves some investigation. FIXME
15506 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15507 else
15508 ld_shlibs_GCJ=no
15509 fi
15510 ;;
15511
15512 cygwin* | mingw* | pw32*)
15513 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15514 # as there is no search path for DLLs.
15515 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15516 allow_undefined_flag_GCJ=unsupported
15517 always_export_symbols_GCJ=no
15518 enable_shared_with_static_runtimes_GCJ=yes
vapier7f19c022007-02-17 14:46:31 +000015519 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +000015520
15521 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +000015522 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +000015523 # If the export-symbols file already is a .def file (1st line
15524 # is EXPORTS), use it as is; otherwise, prepend...
15525 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15526 cp $export_symbols $output_objdir/$soname.def;
15527 else
15528 echo EXPORTS > $output_objdir/$soname.def;
15529 cat $export_symbols >> $output_objdir/$soname.def;
15530 fi~
vapier7f19c022007-02-17 14:46:31 +000015531 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +000015532 else
vapier7f19c022007-02-17 14:46:31 +000015533 ld_shlibs_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000015534 fi
15535 ;;
15536
vapier7f19c022007-02-17 14:46:31 +000015537 interix3*)
15538 hardcode_direct_GCJ=no
15539 hardcode_shlibpath_var_GCJ=no
15540 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15541 export_dynamic_flag_spec_GCJ='${wl}-E'
15542 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15543 # Instead, shared libraries are loaded at an image base (0x10000000 by
15544 # default) and relocated if they conflict, which is a slow very memory
15545 # consuming and fragmenting process. To avoid this, we pick a random,
15546 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15547 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15548 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15549 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15550 ;;
15551
15552 linux*)
15553 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15554 tmp_addflag=
15555 case $cc_basename,$host_cpu in
15556 pgcc*) # Portland Group C compiler
15557 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15558 tmp_addflag=' $pic_flag'
15559 ;;
15560 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15561 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15562 tmp_addflag=' $pic_flag -Mnomain' ;;
15563 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15564 tmp_addflag=' -i_dynamic' ;;
15565 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15566 tmp_addflag=' -i_dynamic -nofor_main' ;;
15567 ifc* | ifort*) # Intel Fortran compiler
15568 tmp_addflag=' -nofor_main' ;;
15569 esac
15570 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15571
15572 if test $supports_anon_versioning = yes; then
15573 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15574 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15575 $echo "local: *; };" >> $output_objdir/$libname.ver~
15576 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15577 fi
15578 else
15579 ld_shlibs_GCJ=no
15580 fi
15581 ;;
15582
15583 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000015584 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15585 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15586 wlarc=
15587 else
15588 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15589 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15590 fi
15591 ;;
15592
vapier7f19c022007-02-17 14:46:31 +000015593 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +000015594 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15595 ld_shlibs_GCJ=no
15596 cat <<EOF 1>&2
15597
15598*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15599*** create shared libraries on Solaris systems. Therefore, libtool
15600*** is disabling shared libraries support. We urge you to upgrade GNU
15601*** binutils to release 2.9.1 or newer. Another option is to modify
15602*** your PATH or compiler configuration so that the native linker is
15603*** used, and then restart.
15604
15605EOF
15606 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15607 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15608 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15609 else
15610 ld_shlibs_GCJ=no
15611 fi
15612 ;;
15613
vapier7f19c022007-02-17 14:46:31 +000015614 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15615 case `$LD -v 2>&1` in
15616 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15617 ld_shlibs_GCJ=no
15618 cat <<_LT_EOF 1>&2
15619
15620*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15621*** reliably create shared libraries on SCO systems. Therefore, libtool
15622*** is disabling shared libraries support. We urge you to upgrade GNU
15623*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15624*** your PATH or compiler configuration so that the native linker is
15625*** used, and then restart.
15626
15627_LT_EOF
15628 ;;
15629 *)
15630 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15631 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15632 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15633 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15634 else
15635 ld_shlibs_GCJ=no
15636 fi
15637 ;;
15638 esac
15639 ;;
15640
a.rottmann9bc8b932004-02-29 15:18:31 +000015641 sunos4*)
15642 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15643 wlarc=
15644 hardcode_direct_GCJ=yes
15645 hardcode_shlibpath_var_GCJ=no
15646 ;;
15647
a.rottmann9bc8b932004-02-29 15:18:31 +000015648 *)
15649 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15650 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15651 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15652 else
15653 ld_shlibs_GCJ=no
15654 fi
15655 ;;
15656 esac
15657
vapier7f19c022007-02-17 14:46:31 +000015658 if test "$ld_shlibs_GCJ" = no; then
15659 runpath_var=
15660 hardcode_libdir_flag_spec_GCJ=
15661 export_dynamic_flag_spec_GCJ=
15662 whole_archive_flag_spec_GCJ=
a.rottmann9bc8b932004-02-29 15:18:31 +000015663 fi
15664 else
15665 # PORTME fill in a description of your system's linker (not GNU ld)
15666 case $host_os in
15667 aix3*)
15668 allow_undefined_flag_GCJ=unsupported
15669 always_export_symbols_GCJ=yes
15670 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'
15671 # Note: this linker hardcodes the directories in LIBPATH if there
15672 # are no directories specified by -L.
15673 hardcode_minus_L_GCJ=yes
vapier7f19c022007-02-17 14:46:31 +000015674 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +000015675 # Neither direct hardcoding nor static linking is supported with a
15676 # broken collect2.
15677 hardcode_direct_GCJ=unsupported
15678 fi
15679 ;;
15680
15681 aix4* | aix5*)
15682 if test "$host_cpu" = ia64; then
15683 # On IA64, the linker does run time linking by default, so we don't
15684 # have to do anything special.
15685 aix_use_runtimelinking=no
15686 exp_sym_flag='-Bexport'
15687 no_entry_flag=""
15688 else
15689 # If we're using GNU nm, then we don't want the "-C" option.
15690 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15691 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15692 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'
15693 else
15694 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'
15695 fi
15696 aix_use_runtimelinking=no
15697
15698 # Test if we are trying to use run time linking or normal
15699 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15700 # need to do runtime linking.
15701 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15702 for ld_flag in $LDFLAGS; do
15703 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15704 aix_use_runtimelinking=yes
15705 break
15706 fi
15707 done
vapier7f19c022007-02-17 14:46:31 +000015708 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000015709 esac
15710
15711 exp_sym_flag='-bexport'
15712 no_entry_flag='-bnoentry'
15713 fi
15714
15715 # When large executables or shared objects are built, AIX ld can
15716 # have problems creating the table of contents. If linking a library
15717 # or program results in "error TOC overflow" add -mminimal-toc to
15718 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15719 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15720
15721 archive_cmds_GCJ=''
15722 hardcode_direct_GCJ=yes
15723 hardcode_libdir_separator_GCJ=':'
15724 link_all_deplibs_GCJ=yes
15725
15726 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000015727 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +000015728 # We only want to do this on AIX 4.2 and lower, the check
15729 # below for broken collect2 doesn't work under 4.3+
15730 collect2name=`${CC} -print-prog-name=collect2`
15731 if test -f "$collect2name" && \
15732 strings "$collect2name" | grep resolve_lib_name >/dev/null
15733 then
15734 # We have reworked collect2
15735 hardcode_direct_GCJ=yes
15736 else
15737 # We have old collect2
15738 hardcode_direct_GCJ=unsupported
15739 # It fails to find uninstalled libraries when the uninstalled
15740 # path is not listed in the libpath. Setting hardcode_minus_L
15741 # to unsupported forces relinking
15742 hardcode_minus_L_GCJ=yes
15743 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15744 hardcode_libdir_separator_GCJ=
15745 fi
vapier7f19c022007-02-17 14:46:31 +000015746 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000015747 esac
15748 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +000015749 if test "$aix_use_runtimelinking" = yes; then
15750 shared_flag="$shared_flag "'${wl}-G'
15751 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000015752 else
15753 # not using gcc
15754 if test "$host_cpu" = ia64; then
15755 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15756 # chokes on -Wl,-G. The following line is correct:
15757 shared_flag='-G'
15758 else
vapier7f19c022007-02-17 14:46:31 +000015759 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +000015760 shared_flag='${wl}-G'
15761 else
15762 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +000015763 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000015764 fi
15765 fi
15766
15767 # It seems that -bexpall does not export symbols beginning with
15768 # underscore (_), so it is better to generate a list of symbols to export.
15769 always_export_symbols_GCJ=yes
15770 if test "$aix_use_runtimelinking" = yes; then
15771 # Warning - without using the other runtime loading flags (-brtl),
15772 # -berok will link without error, but may produce a broken library.
15773 allow_undefined_flag_GCJ='-berok'
15774 # Determine the default libpath from the value encoded in an empty executable.
15775 cat >conftest.$ac_ext <<_ACEOF
15776/* confdefs.h. */
15777_ACEOF
15778cat confdefs.h >>conftest.$ac_ext
15779cat >>conftest.$ac_ext <<_ACEOF
15780/* end confdefs.h. */
15781
15782int
15783main ()
15784{
15785
15786 ;
15787 return 0;
15788}
15789_ACEOF
15790rm -f conftest.$ac_objext conftest$ac_exeext
drh613a0fe2007-11-23 17:31:17 +000015791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15792 (eval $ac_link) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000015793 ac_status=$?
15794 grep -v '^ *+' conftest.er1 >conftest.err
15795 rm -f conftest.er1
15796 cat conftest.err >&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +000015798 (exit $ac_status); } &&
15799 { ac_try='test -z "$ac_c_werror_flag"
15800 || test ! -s conftest.err'
15801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15803 ac_status=$?
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; } &&
15806 { ac_try='test -s conftest$ac_exeext'
15807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808 (eval $ac_try) 2>&5
15809 ac_status=$?
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); }; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +000015812
15813aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15814}'`
15815# Check for a 64-bit object if we didn't find anything.
15816if 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; }
15817}'`; fi
15818else
15819 echo "$as_me: failed program was:" >&5
15820sed 's/^/| /' conftest.$ac_ext >&5
15821
15822fi
drh613a0fe2007-11-23 17:31:17 +000015823rm -f conftest.err conftest.$ac_objext \
a.rottmann9bc8b932004-02-29 15:18:31 +000015824 conftest$ac_exeext conftest.$ac_ext
15825if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15826
15827 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
vapier7f19c022007-02-17 14:46:31 +000015828 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
a.rottmann9bc8b932004-02-29 15:18:31 +000015829 else
15830 if test "$host_cpu" = ia64; then
15831 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15832 allow_undefined_flag_GCJ="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +000015833 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
a.rottmann9bc8b932004-02-29 15:18:31 +000015834 else
15835 # Determine the default libpath from the value encoded in an empty executable.
15836 cat >conftest.$ac_ext <<_ACEOF
15837/* confdefs.h. */
15838_ACEOF
15839cat confdefs.h >>conftest.$ac_ext
15840cat >>conftest.$ac_ext <<_ACEOF
15841/* end confdefs.h. */
15842
15843int
15844main ()
15845{
15846
15847 ;
15848 return 0;
15849}
15850_ACEOF
15851rm -f conftest.$ac_objext conftest$ac_exeext
drh613a0fe2007-11-23 17:31:17 +000015852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15853 (eval $ac_link) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000015854 ac_status=$?
15855 grep -v '^ *+' conftest.er1 >conftest.err
15856 rm -f conftest.er1
15857 cat conftest.err >&5
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +000015859 (exit $ac_status); } &&
15860 { ac_try='test -z "$ac_c_werror_flag"
15861 || test ! -s conftest.err'
15862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863 (eval $ac_try) 2>&5
15864 ac_status=$?
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; } &&
15867 { ac_try='test -s conftest$ac_exeext'
15868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869 (eval $ac_try) 2>&5
15870 ac_status=$?
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +000015873
15874aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15875}'`
15876# Check for a 64-bit object if we didn't find anything.
15877if 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; }
15878}'`; fi
15879else
15880 echo "$as_me: failed program was:" >&5
15881sed 's/^/| /' conftest.$ac_ext >&5
15882
15883fi
drh613a0fe2007-11-23 17:31:17 +000015884rm -f conftest.err conftest.$ac_objext \
a.rottmann9bc8b932004-02-29 15:18:31 +000015885 conftest$ac_exeext conftest.$ac_ext
15886if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15887
15888 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15889 # Warning - without using the other run time loading flags,
15890 # -berok will link without error, but may produce a broken library.
15891 no_undefined_flag_GCJ=' ${wl}-bernotok'
15892 allow_undefined_flag_GCJ=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +000015893 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +000015894 whole_archive_flag_spec_GCJ='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +000015895 archive_cmds_need_lc_GCJ=yes
vapier7f19c022007-02-17 14:46:31 +000015896 # This is similar to how AIX traditionally builds its shared libraries.
15897 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
a.rottmann9bc8b932004-02-29 15:18:31 +000015898 fi
15899 fi
15900 ;;
15901
15902 amigaos*)
15903 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)'
15904 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15905 hardcode_minus_L_GCJ=yes
15906 # see comment about different semantics on the GNU ld section
15907 ld_shlibs_GCJ=no
15908 ;;
15909
vapier7f19c022007-02-17 14:46:31 +000015910 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000015911 export_dynamic_flag_spec_GCJ=-rdynamic
15912 ;;
15913
15914 cygwin* | mingw* | pw32*)
15915 # When not using gcc, we currently assume that we are using
15916 # Microsoft Visual C++.
15917 # hardcode_libdir_flag_spec is actually meaningless, as there is
15918 # no search path for DLLs.
15919 hardcode_libdir_flag_spec_GCJ=' '
15920 allow_undefined_flag_GCJ=unsupported
15921 # Tell ltmain to make .lib files, not .a files.
15922 libext=lib
15923 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +000015924 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000015925 # FIXME: Setting linknames here is a bad hack.
15926 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15927 # The linker will automatically build a .lib file if we build a DLL.
15928 old_archive_From_new_cmds_GCJ='true'
15929 # FIXME: Should let the user specify the lib program.
15930 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
vapier7f19c022007-02-17 14:46:31 +000015931 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
a.rottmann9bc8b932004-02-29 15:18:31 +000015932 enable_shared_with_static_runtimes_GCJ=yes
15933 ;;
15934
15935 darwin* | rhapsody*)
vapier7f19c022007-02-17 14:46:31 +000015936 case $host_os in
15937 rhapsody* | darwin1.[012])
15938 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
15939 ;;
15940 *) # Darwin 1.3 on
15941 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15942 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15943 else
15944 case ${MACOSX_DEPLOYMENT_TARGET} in
15945 10.[012])
15946 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15947 ;;
15948 10.*)
15949 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
15950 ;;
15951 esac
15952 fi
15953 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000015954 esac
vapier7f19c022007-02-17 14:46:31 +000015955 archive_cmds_need_lc_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000015956 hardcode_direct_GCJ=no
15957 hardcode_automatic_GCJ=yes
15958 hardcode_shlibpath_var_GCJ=unsupported
vapier7f19c022007-02-17 14:46:31 +000015959 whole_archive_flag_spec_GCJ=''
a.rottmann9bc8b932004-02-29 15:18:31 +000015960 link_all_deplibs_GCJ=yes
vapier7f19c022007-02-17 14:46:31 +000015961 if test "$GCC" = yes ; then
15962 output_verbose_link_cmd='echo'
15963 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15964 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15965 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15966 archive_expsym_cmds_GCJ='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}'
15967 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}'
a.rottmann9bc8b932004-02-29 15:18:31 +000015968 else
vapier7f19c022007-02-17 14:46:31 +000015969 case $cc_basename in
15970 xlc*)
15971 output_verbose_link_cmd='echo'
15972 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15973 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15974 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15975 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15976 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}'
15977 ;;
15978 *)
15979 ld_shlibs_GCJ=no
15980 ;;
15981 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000015982 fi
15983 ;;
15984
15985 dgux*)
15986 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15987 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15988 hardcode_shlibpath_var_GCJ=no
15989 ;;
15990
15991 freebsd1*)
15992 ld_shlibs_GCJ=no
15993 ;;
15994
15995 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15996 # support. Future versions do this automatically, but an explicit c++rt0.o
15997 # does not break anything, and helps significantly (at the cost of a little
15998 # extra space).
15999 freebsd2.2*)
16000 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16001 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16002 hardcode_direct_GCJ=yes
16003 hardcode_shlibpath_var_GCJ=no
16004 ;;
16005
16006 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16007 freebsd2*)
16008 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16009 hardcode_direct_GCJ=yes
16010 hardcode_minus_L_GCJ=yes
16011 hardcode_shlibpath_var_GCJ=no
16012 ;;
16013
16014 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
vapier7f19c022007-02-17 14:46:31 +000016015 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016016 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16017 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16018 hardcode_direct_GCJ=yes
16019 hardcode_shlibpath_var_GCJ=no
16020 ;;
16021
16022 hpux9*)
16023 if test "$GCC" = yes; then
16024 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'
16025 else
16026 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'
16027 fi
16028 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16029 hardcode_libdir_separator_GCJ=:
16030 hardcode_direct_GCJ=yes
16031
16032 # hardcode_minus_L: Not really in the search PATH,
16033 # but as the default location of the library.
16034 hardcode_minus_L_GCJ=yes
16035 export_dynamic_flag_spec_GCJ='${wl}-E'
16036 ;;
16037
vapier7f19c022007-02-17 14:46:31 +000016038 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016039 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000016040 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16041 else
16042 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16043 fi
16044 if test "$with_gnu_ld" = no; then
16045 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16046 hardcode_libdir_separator_GCJ=:
16047
16048 hardcode_direct_GCJ=yes
16049 export_dynamic_flag_spec_GCJ='${wl}-E'
16050
16051 # hardcode_minus_L: Not really in the search PATH,
16052 # but as the default location of the library.
16053 hardcode_minus_L_GCJ=yes
16054 fi
16055 ;;
16056
16057 hpux11*)
16058 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16059 case $host_cpu in
16060 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016061 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16062 ;;
vapier7f19c022007-02-17 14:46:31 +000016063 ia64*)
16064 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16065 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016066 *)
16067 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16068 ;;
16069 esac
16070 else
vapier7f19c022007-02-17 14:46:31 +000016071 case $host_cpu in
16072 hppa*64*)
16073 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16074 ;;
16075 ia64*)
16076 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000016077 ;;
16078 *)
vapier7f19c022007-02-17 14:46:31 +000016079 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000016080 ;;
16081 esac
16082 fi
16083 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000016084 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16085 hardcode_libdir_separator_GCJ=:
a.rottmann9bc8b932004-02-29 15:18:31 +000016086
vapier7f19c022007-02-17 14:46:31 +000016087 case $host_cpu in
16088 hppa*64*|ia64*)
16089 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16090 hardcode_direct_GCJ=no
16091 hardcode_shlibpath_var_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016092 ;;
16093 *)
a.rottmann9bc8b932004-02-29 15:18:31 +000016094 hardcode_direct_GCJ=yes
16095 export_dynamic_flag_spec_GCJ='${wl}-E'
16096
16097 # hardcode_minus_L: Not really in the search PATH,
16098 # but as the default location of the library.
16099 hardcode_minus_L_GCJ=yes
16100 ;;
16101 esac
16102 fi
16103 ;;
16104
16105 irix5* | irix6* | nonstopux*)
16106 if test "$GCC" = yes; then
16107 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'
16108 else
16109 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'
16110 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16111 fi
16112 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16113 hardcode_libdir_separator_GCJ=:
16114 link_all_deplibs_GCJ=yes
16115 ;;
16116
vapier7f19c022007-02-17 14:46:31 +000016117 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016118 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16119 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16120 else
16121 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16122 fi
16123 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16124 hardcode_direct_GCJ=yes
16125 hardcode_shlibpath_var_GCJ=no
16126 ;;
16127
16128 newsos6)
16129 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16130 hardcode_direct_GCJ=yes
16131 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16132 hardcode_libdir_separator_GCJ=:
16133 hardcode_shlibpath_var_GCJ=no
16134 ;;
16135
16136 openbsd*)
16137 hardcode_direct_GCJ=yes
16138 hardcode_shlibpath_var_GCJ=no
16139 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16140 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +000016141 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +000016142 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16143 export_dynamic_flag_spec_GCJ='${wl}-E'
16144 else
16145 case $host_os in
16146 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16147 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16148 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16149 ;;
16150 *)
16151 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16152 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16153 ;;
16154 esac
16155 fi
16156 ;;
16157
16158 os2*)
16159 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16160 hardcode_minus_L_GCJ=yes
16161 allow_undefined_flag_GCJ=unsupported
16162 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'
16163 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16164 ;;
16165
16166 osf3*)
16167 if test "$GCC" = yes; then
16168 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16169 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'
16170 else
16171 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16172 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'
16173 fi
16174 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16175 hardcode_libdir_separator_GCJ=:
16176 ;;
16177
16178 osf4* | osf5*) # as osf3* with the addition of -msym flag
16179 if test "$GCC" = yes; then
16180 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16181 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'
16182 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16183 else
16184 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16185 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'
16186 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~
vapier7f19c022007-02-17 14:46:31 +000016187 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
a.rottmann9bc8b932004-02-29 15:18:31 +000016188
16189 # Both c and cxx compiler support -rpath directly
16190 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16191 fi
16192 hardcode_libdir_separator_GCJ=:
16193 ;;
16194
a.rottmann9bc8b932004-02-29 15:18:31 +000016195 solaris*)
16196 no_undefined_flag_GCJ=' -z text'
16197 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000016198 wlarc='${wl}'
a.rottmann9bc8b932004-02-29 15:18:31 +000016199 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16200 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16201 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16202 else
vapier7f19c022007-02-17 14:46:31 +000016203 wlarc=''
a.rottmann9bc8b932004-02-29 15:18:31 +000016204 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16205 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16206 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16207 fi
16208 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16209 hardcode_shlibpath_var_GCJ=no
16210 case $host_os in
16211 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +000016212 *)
16213 # The compiler driver will combine linker options so we
16214 # cannot just pass the convience library names through
16215 # without $wl, iff we do not link with $LD.
16216 # Luckily, gcc supports the same syntax we need for Sun Studio.
16217 # Supported since Solaris 2.6 (maybe 2.5.1?)
16218 case $wlarc in
16219 '')
16220 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16221 *)
16222 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16223 esac ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016224 esac
16225 link_all_deplibs_GCJ=yes
16226 ;;
16227
16228 sunos4*)
16229 if test "x$host_vendor" = xsequent; then
16230 # Use $CC to link under sequent, because it throws in some extra .o
16231 # files that make .init and .fini sections work.
16232 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16233 else
16234 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16235 fi
16236 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16237 hardcode_direct_GCJ=yes
16238 hardcode_minus_L_GCJ=yes
16239 hardcode_shlibpath_var_GCJ=no
16240 ;;
16241
16242 sysv4)
16243 case $host_vendor in
16244 sni)
16245 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16246 hardcode_direct_GCJ=yes # is this really true???
16247 ;;
16248 siemens)
16249 ## LD is ld it makes a PLAMLIB
16250 ## CC just makes a GrossModule.
16251 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16252 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16253 hardcode_direct_GCJ=no
16254 ;;
16255 motorola)
16256 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16257 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16258 ;;
16259 esac
16260 runpath_var='LD_RUN_PATH'
16261 hardcode_shlibpath_var_GCJ=no
16262 ;;
16263
16264 sysv4.3*)
16265 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16266 hardcode_shlibpath_var_GCJ=no
16267 export_dynamic_flag_spec_GCJ='-Bexport'
16268 ;;
16269
16270 sysv4*MP*)
16271 if test -d /usr/nec; then
16272 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16273 hardcode_shlibpath_var_GCJ=no
16274 runpath_var=LD_RUN_PATH
16275 hardcode_runpath_var=yes
16276 ld_shlibs_GCJ=yes
16277 fi
16278 ;;
16279
vapier7f19c022007-02-17 14:46:31 +000016280 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16281 no_undefined_flag_GCJ='${wl}-z,text'
16282 archive_cmds_need_lc_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016283 hardcode_shlibpath_var_GCJ=no
vapier7f19c022007-02-17 14:46:31 +000016284 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +000016285
a.rottmann9bc8b932004-02-29 15:18:31 +000016286 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000016287 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16288 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000016289 else
vapier7f19c022007-02-17 14:46:31 +000016290 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16291 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000016292 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000016293 ;;
16294
vapier7f19c022007-02-17 14:46:31 +000016295 sysv5* | sco3.2v5* | sco5v6*)
16296 # Note: We can NOT use -z defs as we might desire, because we do not
16297 # link with -lc, and that would cause any symbols used from libc to
16298 # always be unresolved, which means just about no library would
16299 # ever link correctly. If we're not using GNU ld we use -z text
16300 # though, which does catch some bad symbols but isn't as heavy-handed
16301 # as -z defs.
16302 no_undefined_flag_GCJ='${wl}-z,text'
16303 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16304 archive_cmds_need_lc_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016305 hardcode_shlibpath_var_GCJ=no
vapier7f19c022007-02-17 14:46:31 +000016306 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16307 hardcode_libdir_separator_GCJ=':'
16308 link_all_deplibs_GCJ=yes
16309 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +000016310 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +000016311
16312 if test "$GCC" = yes; then
16313 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16314 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16315 else
16316 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16317 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16318 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000016319 ;;
16320
16321 uts4*)
16322 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16323 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16324 hardcode_shlibpath_var_GCJ=no
16325 ;;
16326
16327 *)
16328 ld_shlibs_GCJ=no
16329 ;;
16330 esac
16331 fi
16332
drh613a0fe2007-11-23 17:31:17 +000016333echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16334echo "${ECHO_T}$ld_shlibs_GCJ" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000016335test "$ld_shlibs_GCJ" = no && can_build_shared=no
16336
a.rottmann9bc8b932004-02-29 15:18:31 +000016337#
16338# Do we need to explicitly link libc?
16339#
16340case "x$archive_cmds_need_lc_GCJ" in
16341x|xyes)
16342 # Assume -lc should be added
16343 archive_cmds_need_lc_GCJ=yes
16344
16345 if test "$enable_shared" = yes && test "$GCC" = yes; then
16346 case $archive_cmds_GCJ in
16347 *'~'*)
16348 # FIXME: we may have to deal with multi-command sequences.
16349 ;;
16350 '$CC '*)
16351 # Test whether the compiler implicitly links with -lc since on some
16352 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16353 # to ld, don't add -lc before -lgcc.
drh613a0fe2007-11-23 17:31:17 +000016354 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16355echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000016356 $rm conftest*
16357 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16358
16359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16360 (eval $ac_compile) 2>&5
16361 ac_status=$?
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); } 2>conftest.err; then
16364 soname=conftest
16365 lib=conftest
16366 libobjs=conftest.$ac_objext
16367 deplibs=
16368 wl=$lt_prog_compiler_wl_GCJ
vapier7f19c022007-02-17 14:46:31 +000016369 pic_flag=$lt_prog_compiler_pic_GCJ
a.rottmann9bc8b932004-02-29 15:18:31 +000016370 compiler_flags=-v
16371 linker_flags=-v
16372 verstring=
16373 output_objdir=.
16374 libname=conftest
16375 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16376 allow_undefined_flag_GCJ=
16377 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16378 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16379 ac_status=$?
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }
16382 then
16383 archive_cmds_need_lc_GCJ=no
16384 else
16385 archive_cmds_need_lc_GCJ=yes
16386 fi
16387 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16388 else
16389 cat conftest.err 1>&5
16390 fi
16391 $rm conftest*
drh613a0fe2007-11-23 17:31:17 +000016392 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16393echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000016394 ;;
16395 esac
16396 fi
16397 ;;
16398esac
16399
drh613a0fe2007-11-23 17:31:17 +000016400echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16401echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000016402library_names_spec=
16403libname_spec='lib$name'
16404soname_spec=
vapier7f19c022007-02-17 14:46:31 +000016405shrext_cmds=".so"
a.rottmann9bc8b932004-02-29 15:18:31 +000016406postinstall_cmds=
16407postuninstall_cmds=
16408finish_cmds=
16409finish_eval=
16410shlibpath_var=
16411shlibpath_overrides_runpath=unknown
16412version_type=none
16413dynamic_linker="$host_os ld.so"
16414sys_lib_dlsearch_path_spec="/lib /usr/lib"
16415if test "$GCC" = yes; then
16416 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16417 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16418 # if the path contains ";" then we assume it to be the separator
16419 # otherwise default to the standard path separator (i.e. ":") - it is
16420 # assumed that no part of a normal pathname contains ";" but that should
16421 # okay in the real world where ";" in dirpaths is itself problematic.
16422 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16423 else
16424 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16425 fi
16426else
16427 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16428fi
16429need_lib_prefix=unknown
16430hardcode_into_libs=no
16431
16432# when you set need_version to no, make sure it does not cause -set_version
16433# flags to be left without arguments
16434need_version=unknown
16435
16436case $host_os in
16437aix3*)
16438 version_type=linux
16439 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16440 shlibpath_var=LIBPATH
16441
16442 # AIX 3 has no versioning support, so we append a major version to the name.
16443 soname_spec='${libname}${release}${shared_ext}$major'
16444 ;;
16445
16446aix4* | aix5*)
16447 version_type=linux
16448 need_lib_prefix=no
16449 need_version=no
16450 hardcode_into_libs=yes
16451 if test "$host_cpu" = ia64; then
16452 # AIX 5 supports IA64
16453 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16454 shlibpath_var=LD_LIBRARY_PATH
16455 else
16456 # With GCC up to 2.95.x, collect2 would create an import file
16457 # for dependence libraries. The import file would start with
16458 # the line `#! .'. This would cause the generated library to
16459 # depend on `.', always an invalid library. This was fixed in
16460 # development snapshots of GCC prior to 3.0.
16461 case $host_os in
16462 aix4 | aix4.[01] | aix4.[01].*)
16463 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16464 echo ' yes '
16465 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16466 :
16467 else
16468 can_build_shared=no
16469 fi
16470 ;;
16471 esac
16472 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16473 # soname into executable. Probably we can add versioning support to
16474 # collect2, so additional links can be useful in future.
16475 if test "$aix_use_runtimelinking" = yes; then
16476 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16477 # instead of lib<name>.a to let people know that these are not
16478 # typical AIX shared libraries.
16479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16480 else
16481 # We preserve .a as extension for shared libraries through AIX4.2
16482 # and later when we are not doing run time linking.
16483 library_names_spec='${libname}${release}.a $libname.a'
16484 soname_spec='${libname}${release}${shared_ext}$major'
16485 fi
16486 shlibpath_var=LIBPATH
16487 fi
16488 ;;
16489
16490amigaos*)
16491 library_names_spec='$libname.ixlibrary $libname.a'
16492 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16493 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'
16494 ;;
16495
16496beos*)
16497 library_names_spec='${libname}${shared_ext}'
16498 dynamic_linker="$host_os ld.so"
16499 shlibpath_var=LIBRARY_PATH
16500 ;;
16501
vapier7f19c022007-02-17 14:46:31 +000016502bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016503 version_type=linux
16504 need_version=no
16505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16506 soname_spec='${libname}${release}${shared_ext}$major'
16507 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16508 shlibpath_var=LD_LIBRARY_PATH
16509 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16510 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16511 # the default ld.so.conf also contains /usr/contrib/lib and
16512 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16513 # libtool to hard-code these into programs
16514 ;;
16515
16516cygwin* | mingw* | pw32*)
16517 version_type=windows
vapier7f19c022007-02-17 14:46:31 +000016518 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000016519 need_version=no
16520 need_lib_prefix=no
16521
16522 case $GCC,$host_os in
16523 yes,cygwin* | yes,mingw* | yes,pw32*)
16524 library_names_spec='$libname.dll.a'
16525 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16526 postinstall_cmds='base_file=`basename \${file}`~
16527 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16528 dldir=$destdir/`dirname \$dlpath`~
16529 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +000016530 $install_prog $dir/$dlname \$dldir/$dlname~
16531 chmod a+x \$dldir/$dlname'
a.rottmann9bc8b932004-02-29 15:18:31 +000016532 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16533 dlpath=$dir/\$dldll~
16534 $rm \$dlpath'
16535 shlibpath_overrides_runpath=yes
16536
16537 case $host_os in
16538 cygwin*)
16539 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16540 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16541 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16542 ;;
16543 mingw*)
16544 # MinGW DLLs use traditional 'lib' prefix
16545 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16546 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16547 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16548 # It is most probably a Windows format PATH printed by
16549 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16550 # path with ; separators, and with drive letters. We can handle the
16551 # drive letters (cygwin fileutils understands them), so leave them,
16552 # especially as we might pass files found there to a mingw objdump,
16553 # which wouldn't understand a cygwinified path. Ahh.
16554 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16555 else
16556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16557 fi
16558 ;;
16559 pw32*)
16560 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +000016561 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
a.rottmann9bc8b932004-02-29 15:18:31 +000016562 ;;
16563 esac
16564 ;;
16565
vapier7f19c022007-02-17 14:46:31 +000016566 linux*)
16567 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16568 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16569 supports_anon_versioning=no
16570 case `$LD -v 2>/dev/null` in
16571 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16572 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16573 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16574 *\ 2.11.*) ;; # other 2.11 versions
16575 *) supports_anon_versioning=yes ;;
16576 esac
16577 if test $supports_anon_versioning = yes; then
16578 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
16579cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16580$echo "local: *; };" >> $output_objdir/$libname.ver~
16581 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16582 else
16583 $archive_expsym_cmds="$archive_cmds"
16584 fi
16585 else
16586 ld_shlibs=no
16587 fi
16588 ;;
16589
a.rottmann9bc8b932004-02-29 15:18:31 +000016590 *)
16591 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16592 ;;
16593 esac
16594 dynamic_linker='Win32 ld.exe'
16595 # FIXME: first we should search . and the directory the executable is in
16596 shlibpath_var=PATH
16597 ;;
16598
16599darwin* | rhapsody*)
16600 dynamic_linker="$host_os dyld"
16601 version_type=darwin
16602 need_lib_prefix=no
16603 need_version=no
16604 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16605 soname_spec='${libname}${release}${major}$shared_ext'
16606 shlibpath_overrides_runpath=yes
16607 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +000016608 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a.rottmann9bc8b932004-02-29 15:18:31 +000016609 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16610 if test "$GCC" = yes; then
16611 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"`
16612 else
16613 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16614 fi
16615 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16616 ;;
16617
16618dgux*)
16619 version_type=linux
16620 need_lib_prefix=no
16621 need_version=no
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16623 soname_spec='${libname}${release}${shared_ext}$major'
16624 shlibpath_var=LD_LIBRARY_PATH
16625 ;;
16626
16627freebsd1*)
16628 dynamic_linker=no
16629 ;;
16630
16631kfreebsd*-gnu)
16632 version_type=linux
16633 need_lib_prefix=no
16634 need_version=no
16635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16636 soname_spec='${libname}${release}${shared_ext}$major'
16637 shlibpath_var=LD_LIBRARY_PATH
16638 shlibpath_overrides_runpath=no
16639 hardcode_into_libs=yes
16640 dynamic_linker='GNU ld.so'
16641 ;;
16642
vapier7f19c022007-02-17 14:46:31 +000016643freebsd* | dragonfly*)
16644 # DragonFly does not have aout. When/if they implement a new
16645 # versioning mechanism, adjust this.
16646 if test -x /usr/bin/objformat; then
16647 objformat=`/usr/bin/objformat`
16648 else
16649 case $host_os in
16650 freebsd[123]*) objformat=aout ;;
16651 *) objformat=elf ;;
16652 esac
16653 fi
16654 # Handle Gentoo/FreeBSD as it was Linux
16655 case $host_vendor in
16656 gentoo)
16657 version_type=linux ;;
16658 *)
16659 version_type=freebsd-$objformat ;;
16660 esac
16661
a.rottmann9bc8b932004-02-29 15:18:31 +000016662 case $version_type in
16663 freebsd-elf*)
16664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16665 need_version=no
16666 need_lib_prefix=no
16667 ;;
16668 freebsd-*)
16669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16670 need_version=yes
16671 ;;
vapier7f19c022007-02-17 14:46:31 +000016672 linux)
16673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16674 soname_spec='${libname}${release}${shared_ext}$major'
16675 need_lib_prefix=no
16676 need_version=no
16677 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016678 esac
16679 shlibpath_var=LD_LIBRARY_PATH
16680 case $host_os in
16681 freebsd2*)
16682 shlibpath_overrides_runpath=yes
16683 ;;
vapier7f19c022007-02-17 14:46:31 +000016684 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016685 shlibpath_overrides_runpath=yes
16686 hardcode_into_libs=yes
16687 ;;
vapier7f19c022007-02-17 14:46:31 +000016688 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16689 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a.rottmann9bc8b932004-02-29 15:18:31 +000016690 shlibpath_overrides_runpath=no
16691 hardcode_into_libs=yes
16692 ;;
vapier7f19c022007-02-17 14:46:31 +000016693 freebsd*) # from 4.6 on
16694 shlibpath_overrides_runpath=yes
16695 hardcode_into_libs=yes
16696 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016697 esac
16698 ;;
16699
16700gnu*)
16701 version_type=linux
16702 need_lib_prefix=no
16703 need_version=no
16704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16705 soname_spec='${libname}${release}${shared_ext}$major'
16706 shlibpath_var=LD_LIBRARY_PATH
16707 hardcode_into_libs=yes
16708 ;;
16709
16710hpux9* | hpux10* | hpux11*)
16711 # Give a soname corresponding to the major version so that dld.sl refuses to
16712 # link against other versions.
16713 version_type=sunos
16714 need_lib_prefix=no
16715 need_version=no
vapier7f19c022007-02-17 14:46:31 +000016716 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000016717 ia64*)
vapier7f19c022007-02-17 14:46:31 +000016718 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +000016719 hardcode_into_libs=yes
16720 dynamic_linker="$host_os dld.so"
16721 shlibpath_var=LD_LIBRARY_PATH
16722 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16724 soname_spec='${libname}${release}${shared_ext}$major'
16725 if test "X$HPUX_IA64_MODE" = X32; then
16726 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16727 else
16728 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16729 fi
16730 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16731 ;;
16732 hppa*64*)
vapier7f19c022007-02-17 14:46:31 +000016733 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000016734 hardcode_into_libs=yes
16735 dynamic_linker="$host_os dld.sl"
16736 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16739 soname_spec='${libname}${release}${shared_ext}$major'
16740 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16742 ;;
16743 *)
vapier7f19c022007-02-17 14:46:31 +000016744 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000016745 dynamic_linker="$host_os dld.sl"
16746 shlibpath_var=SHLIB_PATH
16747 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749 soname_spec='${libname}${release}${shared_ext}$major'
16750 ;;
16751 esac
16752 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16753 postinstall_cmds='chmod 555 $lib'
16754 ;;
16755
vapier7f19c022007-02-17 14:46:31 +000016756interix3*)
16757 version_type=linux
16758 need_lib_prefix=no
16759 need_version=no
16760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16761 soname_spec='${libname}${release}${shared_ext}$major'
16762 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16763 shlibpath_var=LD_LIBRARY_PATH
16764 shlibpath_overrides_runpath=no
16765 hardcode_into_libs=yes
16766 ;;
16767
a.rottmann9bc8b932004-02-29 15:18:31 +000016768irix5* | irix6* | nonstopux*)
16769 case $host_os in
16770 nonstopux*) version_type=nonstopux ;;
16771 *)
16772 if test "$lt_cv_prog_gnu_ld" = yes; then
16773 version_type=linux
16774 else
16775 version_type=irix
16776 fi ;;
16777 esac
16778 need_lib_prefix=no
16779 need_version=no
16780 soname_spec='${libname}${release}${shared_ext}$major'
16781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16782 case $host_os in
16783 irix5* | nonstopux*)
16784 libsuff= shlibsuff=
16785 ;;
16786 *)
16787 case $LD in # libtool.m4 will add one of these switches to LD
16788 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16789 libsuff= shlibsuff= libmagic=32-bit;;
16790 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16791 libsuff=32 shlibsuff=N32 libmagic=N32;;
16792 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16793 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16794 *) libsuff= shlibsuff= libmagic=never-match;;
16795 esac
16796 ;;
16797 esac
16798 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16799 shlibpath_overrides_runpath=no
16800 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16801 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16802 hardcode_into_libs=yes
16803 ;;
16804
16805# No shared lib support for Linux oldld, aout, or coff.
16806linux*oldld* | linux*aout* | linux*coff*)
16807 dynamic_linker=no
16808 ;;
16809
16810# This must be Linux ELF.
16811linux*)
16812 version_type=linux
16813 need_lib_prefix=no
16814 need_version=no
16815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16816 soname_spec='${libname}${release}${shared_ext}$major'
16817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16818 shlibpath_var=LD_LIBRARY_PATH
16819 shlibpath_overrides_runpath=no
16820 # This implies no fast_install, which is unacceptable.
16821 # Some rework will be needed to allow for fast_install
16822 # before this can be enabled.
16823 hardcode_into_libs=yes
16824
16825 # Append ld.so.conf contents to the search path
16826 if test -f /etc/ld.so.conf; then
vapier7f19c022007-02-17 14:46:31 +000016827 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16828 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +000016829 fi
16830
16831 # We used to test for /lib/ld.so.1 and disable shared libraries on
16832 # powerpc, because MkLinux only supported shared libraries with the
16833 # GNU dynamic linker. Since this was broken with cross compilers,
16834 # most powerpc-linux boxes support dynamic linking these days and
16835 # people can always --disable-shared, the test was removed, and we
16836 # assume the GNU/Linux dynamic linker is in use.
16837 dynamic_linker='GNU/Linux ld.so'
16838 ;;
16839
16840knetbsd*-gnu)
16841 version_type=linux
16842 need_lib_prefix=no
16843 need_version=no
16844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16845 soname_spec='${libname}${release}${shared_ext}$major'
16846 shlibpath_var=LD_LIBRARY_PATH
16847 shlibpath_overrides_runpath=no
16848 hardcode_into_libs=yes
16849 dynamic_linker='GNU ld.so'
16850 ;;
16851
16852netbsd*)
16853 version_type=sunos
16854 need_lib_prefix=no
16855 need_version=no
16856 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16859 dynamic_linker='NetBSD (a.out) ld.so'
16860 else
16861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16862 soname_spec='${libname}${release}${shared_ext}$major'
16863 dynamic_linker='NetBSD ld.elf_so'
16864 fi
16865 shlibpath_var=LD_LIBRARY_PATH
16866 shlibpath_overrides_runpath=yes
16867 hardcode_into_libs=yes
16868 ;;
16869
16870newsos6)
16871 version_type=linux
16872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16873 shlibpath_var=LD_LIBRARY_PATH
16874 shlibpath_overrides_runpath=yes
16875 ;;
16876
16877nto-qnx*)
16878 version_type=linux
16879 need_lib_prefix=no
16880 need_version=no
16881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16882 soname_spec='${libname}${release}${shared_ext}$major'
16883 shlibpath_var=LD_LIBRARY_PATH
16884 shlibpath_overrides_runpath=yes
16885 ;;
16886
16887openbsd*)
16888 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +000016889 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +000016890 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +000016891 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16892 case $host_os in
16893 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16894 *) need_version=no ;;
16895 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000016896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16898 shlibpath_var=LD_LIBRARY_PATH
16899 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16900 case $host_os in
16901 openbsd2.[89] | openbsd2.[89].*)
16902 shlibpath_overrides_runpath=no
16903 ;;
16904 *)
16905 shlibpath_overrides_runpath=yes
16906 ;;
16907 esac
16908 else
16909 shlibpath_overrides_runpath=yes
16910 fi
16911 ;;
16912
16913os2*)
16914 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +000016915 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000016916 need_lib_prefix=no
16917 library_names_spec='$libname${shared_ext} $libname.a'
16918 dynamic_linker='OS/2 ld.exe'
16919 shlibpath_var=LIBPATH
16920 ;;
16921
16922osf3* | osf4* | osf5*)
16923 version_type=osf
16924 need_lib_prefix=no
16925 need_version=no
16926 soname_spec='${libname}${release}${shared_ext}$major'
16927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16928 shlibpath_var=LD_LIBRARY_PATH
16929 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16930 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16931 ;;
16932
a.rottmann9bc8b932004-02-29 15:18:31 +000016933solaris*)
16934 version_type=linux
16935 need_lib_prefix=no
16936 need_version=no
16937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16938 soname_spec='${libname}${release}${shared_ext}$major'
16939 shlibpath_var=LD_LIBRARY_PATH
16940 shlibpath_overrides_runpath=yes
16941 hardcode_into_libs=yes
16942 # ldd complains unless libraries are executable
16943 postinstall_cmds='chmod +x $lib'
16944 ;;
16945
16946sunos4*)
16947 version_type=sunos
16948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16949 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16950 shlibpath_var=LD_LIBRARY_PATH
16951 shlibpath_overrides_runpath=yes
16952 if test "$with_gnu_ld" = yes; then
16953 need_lib_prefix=no
16954 fi
16955 need_version=yes
16956 ;;
16957
vapier7f19c022007-02-17 14:46:31 +000016958sysv4 | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016959 version_type=linux
16960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16961 soname_spec='${libname}${release}${shared_ext}$major'
16962 shlibpath_var=LD_LIBRARY_PATH
16963 case $host_vendor in
16964 sni)
16965 shlibpath_overrides_runpath=no
16966 need_lib_prefix=no
16967 export_dynamic_flag_spec='${wl}-Blargedynsym'
16968 runpath_var=LD_RUN_PATH
16969 ;;
16970 siemens)
16971 need_lib_prefix=no
16972 ;;
16973 motorola)
16974 need_lib_prefix=no
16975 need_version=no
16976 shlibpath_overrides_runpath=no
16977 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16978 ;;
16979 esac
16980 ;;
16981
16982sysv4*MP*)
16983 if test -d /usr/nec ;then
16984 version_type=linux
16985 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16986 soname_spec='$libname${shared_ext}.$major'
16987 shlibpath_var=LD_LIBRARY_PATH
16988 fi
16989 ;;
16990
vapier7f19c022007-02-17 14:46:31 +000016991sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16992 version_type=freebsd-elf
16993 need_lib_prefix=no
16994 need_version=no
16995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16996 soname_spec='${libname}${release}${shared_ext}$major'
16997 shlibpath_var=LD_LIBRARY_PATH
16998 hardcode_into_libs=yes
16999 if test "$with_gnu_ld" = yes; then
17000 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17001 shlibpath_overrides_runpath=no
17002 else
17003 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17004 shlibpath_overrides_runpath=yes
17005 case $host_os in
17006 sco3.2v5*)
17007 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17008 ;;
17009 esac
17010 fi
17011 sys_lib_dlsearch_path_spec='/usr/lib'
17012 ;;
17013
a.rottmann9bc8b932004-02-29 15:18:31 +000017014uts4*)
17015 version_type=linux
17016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17017 soname_spec='${libname}${release}${shared_ext}$major'
17018 shlibpath_var=LD_LIBRARY_PATH
17019 ;;
17020
17021*)
17022 dynamic_linker=no
17023 ;;
17024esac
drh613a0fe2007-11-23 17:31:17 +000017025echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17026echo "${ECHO_T}$dynamic_linker" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000017027test "$dynamic_linker" = no && can_build_shared=no
17028
vapier7f19c022007-02-17 14:46:31 +000017029variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17030if test "$GCC" = yes; then
17031 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17032fi
17033
drh613a0fe2007-11-23 17:31:17 +000017034echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17035echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000017036hardcode_action_GCJ=
17037if test -n "$hardcode_libdir_flag_spec_GCJ" || \
vapier7f19c022007-02-17 14:46:31 +000017038 test -n "$runpath_var_GCJ" || \
17039 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
a.rottmann9bc8b932004-02-29 15:18:31 +000017040
17041 # We can hardcode non-existant directories.
17042 if test "$hardcode_direct_GCJ" != no &&
17043 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17044 # have to relink, otherwise we might link with an installed library
17045 # when we should be linking with a yet-to-be-installed one
17046 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17047 test "$hardcode_minus_L_GCJ" != no; then
17048 # Linking always hardcodes the temporary library directory.
17049 hardcode_action_GCJ=relink
17050 else
17051 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17052 hardcode_action_GCJ=immediate
17053 fi
17054else
17055 # We cannot hardcode anything, or else we can only hardcode existing
17056 # directories.
17057 hardcode_action_GCJ=unsupported
17058fi
drh613a0fe2007-11-23 17:31:17 +000017059echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17060echo "${ECHO_T}$hardcode_action_GCJ" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +000017061
17062if test "$hardcode_action_GCJ" = relink; then
17063 # Fast installation is not supported
17064 enable_fast_install=no
17065elif test "$shlibpath_overrides_runpath" = yes ||
17066 test "$enable_shared" = no; then
17067 # Fast installation is not necessary
17068 enable_fast_install=needless
17069fi
17070
a.rottmann9bc8b932004-02-29 15:18:31 +000017071
17072# The else clause should only fire when bootstrapping the
17073# libtool distribution, otherwise you forgot to ship ltmain.sh
17074# with your package, and you will get complaints that there are
17075# no rules to generate ltmain.sh.
17076if test -f "$ltmain"; then
17077 # See if we are running on zsh, and set the options which allow our commands through
17078 # without removal of \ escapes.
17079 if test -n "${ZSH_VERSION+set}" ; then
17080 setopt NO_GLOB_SUBST
17081 fi
17082 # Now quote all the things that may contain metacharacters while being
17083 # careful not to overquote the AC_SUBSTed values. We take copies of the
17084 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +000017085 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a.rottmann9bc8b932004-02-29 15:18:31 +000017086 SED SHELL STRIP \
17087 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17088 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17089 deplibs_check_method reload_flag reload_cmds need_locks \
17090 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17091 lt_cv_sys_global_symbol_to_c_name_address \
17092 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17093 old_postinstall_cmds old_postuninstall_cmds \
17094 compiler_GCJ \
17095 CC_GCJ \
17096 LD_GCJ \
17097 lt_prog_compiler_wl_GCJ \
17098 lt_prog_compiler_pic_GCJ \
17099 lt_prog_compiler_static_GCJ \
17100 lt_prog_compiler_no_builtin_flag_GCJ \
17101 export_dynamic_flag_spec_GCJ \
17102 thread_safe_flag_spec_GCJ \
17103 whole_archive_flag_spec_GCJ \
17104 enable_shared_with_static_runtimes_GCJ \
17105 old_archive_cmds_GCJ \
17106 old_archive_from_new_cmds_GCJ \
17107 predep_objects_GCJ \
17108 postdep_objects_GCJ \
17109 predeps_GCJ \
17110 postdeps_GCJ \
17111 compiler_lib_search_path_GCJ \
17112 archive_cmds_GCJ \
17113 archive_expsym_cmds_GCJ \
17114 postinstall_cmds_GCJ \
17115 postuninstall_cmds_GCJ \
17116 old_archive_from_expsyms_cmds_GCJ \
17117 allow_undefined_flag_GCJ \
17118 no_undefined_flag_GCJ \
17119 export_symbols_cmds_GCJ \
17120 hardcode_libdir_flag_spec_GCJ \
17121 hardcode_libdir_flag_spec_ld_GCJ \
17122 hardcode_libdir_separator_GCJ \
17123 hardcode_automatic_GCJ \
17124 module_cmds_GCJ \
17125 module_expsym_cmds_GCJ \
17126 lt_cv_prog_compiler_c_o_GCJ \
17127 exclude_expsyms_GCJ \
17128 include_expsyms_GCJ; do
17129
17130 case $var in
17131 old_archive_cmds_GCJ | \
17132 old_archive_from_new_cmds_GCJ | \
17133 archive_cmds_GCJ | \
17134 archive_expsym_cmds_GCJ | \
17135 module_cmds_GCJ | \
17136 module_expsym_cmds_GCJ | \
17137 old_archive_from_expsyms_cmds_GCJ | \
17138 export_symbols_cmds_GCJ | \
17139 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17140 postinstall_cmds | postuninstall_cmds | \
17141 old_postinstall_cmds | old_postuninstall_cmds | \
17142 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17143 # Double-quote double-evaled strings.
17144 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17145 ;;
17146 *)
17147 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17148 ;;
17149 esac
17150 done
17151
17152 case $lt_echo in
17153 *'\$0 --fallback-echo"')
17154 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17155 ;;
17156 esac
17157
17158cfgfile="$ofile"
17159
17160 cat <<__EOF__ >> "$cfgfile"
17161# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17162
17163# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17164
17165# Shell to use when invoking shell scripts.
17166SHELL=$lt_SHELL
17167
17168# Whether or not to build shared libraries.
17169build_libtool_libs=$enable_shared
17170
17171# Whether or not to build static libraries.
17172build_old_libs=$enable_static
17173
17174# Whether or not to add -lc for building shared libraries.
17175build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17176
17177# Whether or not to disallow shared libs when runtime libs are static
17178allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17179
17180# Whether or not to optimize for fast installation.
17181fast_install=$enable_fast_install
17182
17183# The host system.
17184host_alias=$host_alias
17185host=$host
vapier7f19c022007-02-17 14:46:31 +000017186host_os=$host_os
17187
17188# The build system.
17189build_alias=$build_alias
17190build=$build
17191build_os=$build_os
a.rottmann9bc8b932004-02-29 15:18:31 +000017192
17193# An echo program that does not interpret backslashes.
17194echo=$lt_echo
17195
17196# The archiver.
17197AR=$lt_AR
17198AR_FLAGS=$lt_AR_FLAGS
17199
17200# A C compiler.
17201LTCC=$lt_LTCC
17202
vapier7f19c022007-02-17 14:46:31 +000017203# LTCC compiler flags.
17204LTCFLAGS=$lt_LTCFLAGS
17205
a.rottmann9bc8b932004-02-29 15:18:31 +000017206# A language-specific compiler.
17207CC=$lt_compiler_GCJ
17208
17209# Is the compiler the GNU C compiler?
17210with_gcc=$GCC_GCJ
17211
17212# An ERE matcher.
17213EGREP=$lt_EGREP
17214
17215# The linker used to build libraries.
17216LD=$lt_LD_GCJ
17217
17218# Whether we need hard or soft links.
17219LN_S=$lt_LN_S
17220
17221# A BSD-compatible nm program.
17222NM=$lt_NM
17223
17224# A symbol stripping program
17225STRIP=$lt_STRIP
17226
17227# Used to examine libraries when file_magic_cmd begins "file"
17228MAGIC_CMD=$MAGIC_CMD
17229
17230# Used on cygwin: DLL creation program.
17231DLLTOOL="$DLLTOOL"
17232
17233# Used on cygwin: object dumper.
17234OBJDUMP="$OBJDUMP"
17235
17236# Used on cygwin: assembler.
17237AS="$AS"
17238
17239# The name of the directory that contains temporary libtool files.
17240objdir=$objdir
17241
17242# How to create reloadable object files.
17243reload_flag=$lt_reload_flag
17244reload_cmds=$lt_reload_cmds
17245
17246# How to pass a linker flag through the compiler.
17247wl=$lt_lt_prog_compiler_wl_GCJ
17248
17249# Object file suffix (normally "o").
17250objext="$ac_objext"
17251
17252# Old archive suffix (normally "a").
17253libext="$libext"
17254
17255# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +000017256shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +000017257
17258# Executable file suffix (normally "").
17259exeext="$exeext"
17260
17261# Additional compiler flags for building library objects.
17262pic_flag=$lt_lt_prog_compiler_pic_GCJ
17263pic_mode=$pic_mode
17264
17265# What is the maximum length of a command?
17266max_cmd_len=$lt_cv_sys_max_cmd_len
17267
17268# Does compiler simultaneously support -c and -o options?
17269compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17270
vapier7f19c022007-02-17 14:46:31 +000017271# Must we lock files when doing compilation?
a.rottmann9bc8b932004-02-29 15:18:31 +000017272need_locks=$lt_need_locks
17273
17274# Do we need the lib prefix for modules?
17275need_lib_prefix=$need_lib_prefix
17276
17277# Do we need a version for libraries?
17278need_version=$need_version
17279
17280# Whether dlopen is supported.
17281dlopen_support=$enable_dlopen
17282
17283# Whether dlopen of programs is supported.
17284dlopen_self=$enable_dlopen_self
17285
17286# Whether dlopen of statically linked programs is supported.
17287dlopen_self_static=$enable_dlopen_self_static
17288
17289# Compiler flag to prevent dynamic linking.
17290link_static_flag=$lt_lt_prog_compiler_static_GCJ
17291
17292# Compiler flag to turn off builtin functions.
17293no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17294
17295# Compiler flag to allow reflexive dlopens.
17296export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17297
17298# Compiler flag to generate shared objects directly from archives.
17299whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17300
17301# Compiler flag to generate thread-safe objects.
17302thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17303
17304# Library versioning type.
17305version_type=$version_type
17306
17307# Format of library name prefix.
17308libname_spec=$lt_libname_spec
17309
17310# List of archive names. First name is the real one, the rest are links.
17311# The last name is the one that the linker finds with -lNAME.
17312library_names_spec=$lt_library_names_spec
17313
17314# The coded name of the library, if different from the real name.
17315soname_spec=$lt_soname_spec
17316
17317# Commands used to build and install an old-style archive.
17318RANLIB=$lt_RANLIB
17319old_archive_cmds=$lt_old_archive_cmds_GCJ
17320old_postinstall_cmds=$lt_old_postinstall_cmds
17321old_postuninstall_cmds=$lt_old_postuninstall_cmds
17322
17323# Create an old-style archive from a shared archive.
17324old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17325
17326# Create a temporary old-style archive to link instead of a shared archive.
17327old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17328
17329# Commands used to build and install a shared archive.
17330archive_cmds=$lt_archive_cmds_GCJ
17331archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17332postinstall_cmds=$lt_postinstall_cmds
17333postuninstall_cmds=$lt_postuninstall_cmds
17334
17335# Commands used to build a loadable module (assumed same as above if empty)
17336module_cmds=$lt_module_cmds_GCJ
17337module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17338
17339# Commands to strip libraries.
17340old_striplib=$lt_old_striplib
17341striplib=$lt_striplib
17342
17343# Dependencies to place before the objects being linked to create a
17344# shared library.
17345predep_objects=$lt_predep_objects_GCJ
17346
17347# Dependencies to place after the objects being linked to create a
17348# shared library.
17349postdep_objects=$lt_postdep_objects_GCJ
17350
17351# Dependencies to place before the objects being linked to create a
17352# shared library.
17353predeps=$lt_predeps_GCJ
17354
17355# Dependencies to place after the objects being linked to create a
17356# shared library.
17357postdeps=$lt_postdeps_GCJ
17358
17359# The library search path used internally by the compiler when linking
17360# a shared library.
17361compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17362
17363# Method to check whether dependent libraries are shared objects.
17364deplibs_check_method=$lt_deplibs_check_method
17365
17366# Command to use when deplibs_check_method == file_magic.
17367file_magic_cmd=$lt_file_magic_cmd
17368
17369# Flag that allows shared libraries with undefined symbols to be built.
17370allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17371
17372# Flag that forces no undefined symbols.
17373no_undefined_flag=$lt_no_undefined_flag_GCJ
17374
17375# Commands used to finish a libtool library installation in a directory.
17376finish_cmds=$lt_finish_cmds
17377
17378# Same as above, but a single script fragment to be evaled but not shown.
17379finish_eval=$lt_finish_eval
17380
17381# Take the output of nm and produce a listing of raw symbols and C names.
17382global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17383
17384# Transform the output of nm in a proper C declaration
17385global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17386
17387# Transform the output of nm in a C name address pair
17388global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17389
17390# This is the shared library runtime path variable.
17391runpath_var=$runpath_var
17392
17393# This is the shared library path variable.
17394shlibpath_var=$shlibpath_var
17395
17396# Is shlibpath searched before the hard-coded library search path?
17397shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17398
17399# How to hardcode a shared library path into an executable.
17400hardcode_action=$hardcode_action_GCJ
17401
17402# Whether we should hardcode library paths into libraries.
17403hardcode_into_libs=$hardcode_into_libs
17404
17405# Flag to hardcode \$libdir into a binary during linking.
17406# This must work even if \$libdir does not exist.
17407hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17408
17409# If ld is used when linking, flag to hardcode \$libdir into
17410# a binary during linking. This must work even if \$libdir does
17411# not exist.
17412hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17413
17414# Whether we need a single -rpath flag with a separated argument.
17415hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17416
17417# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17418# resulting binary.
17419hardcode_direct=$hardcode_direct_GCJ
17420
17421# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17422# resulting binary.
17423hardcode_minus_L=$hardcode_minus_L_GCJ
17424
17425# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17426# the resulting binary.
17427hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17428
17429# Set to yes if building a shared library automatically hardcodes DIR into the library
17430# and all subsequent libraries and executables linked against it.
17431hardcode_automatic=$hardcode_automatic_GCJ
17432
17433# Variables whose values should be saved in libtool wrapper scripts and
17434# restored at relink time.
17435variables_saved_for_relink="$variables_saved_for_relink"
17436
17437# Whether libtool must link a program against all its dependency libraries.
17438link_all_deplibs=$link_all_deplibs_GCJ
17439
17440# Compile-time system search path for libraries
17441sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17442
17443# Run-time system search path for libraries
17444sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17445
17446# Fix the shell variable \$srcfile for the compiler.
17447fix_srcfile_path="$fix_srcfile_path_GCJ"
17448
17449# Set to yes if exported symbols are required.
17450always_export_symbols=$always_export_symbols_GCJ
17451
17452# The commands to list exported symbols.
17453export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17454
17455# The commands to extract the exported symbol list from a shared archive.
17456extract_expsyms_cmds=$lt_extract_expsyms_cmds
17457
17458# Symbols that should not be listed in the preloaded symbols.
17459exclude_expsyms=$lt_exclude_expsyms_GCJ
17460
17461# Symbols that must always be exported.
17462include_expsyms=$lt_include_expsyms_GCJ
17463
17464# ### END LIBTOOL TAG CONFIG: $tagname
17465
17466__EOF__
17467
17468
17469else
17470 # If there is no Makefile yet, we rely on a make rule to execute
17471 # `config.status --recheck' to rerun these tests and create the
17472 # libtool script then.
17473 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17474 if test -f "$ltmain_in"; then
17475 test -f Makefile && make "$ltmain"
17476 fi
17477fi
17478
17479
17480ac_ext=c
17481ac_cpp='$CPP $CPPFLAGS'
17482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17484ac_compiler_gnu=$ac_cv_c_compiler_gnu
17485
17486CC="$lt_save_CC"
17487
17488 else
17489 tagname=""
17490 fi
17491 ;;
17492
17493 RC)
17494
17495
drh613a0fe2007-11-23 17:31:17 +000017496
a.rottmann9bc8b932004-02-29 15:18:31 +000017497# Source file extension for RC test sources.
17498ac_ext=rc
17499
17500# Object file extension for compiled RC test sources.
17501objext=o
17502objext_RC=$objext
17503
17504# Code to be used in simple compile tests
17505lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17506
17507# Code to be used in simple link tests
17508lt_simple_link_test_code="$lt_simple_compile_test_code"
17509
17510# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17511
17512# If no C compiler was specified, use CC.
17513LTCC=${LTCC-"$CC"}
17514
vapier7f19c022007-02-17 14:46:31 +000017515# If no C compiler flags were specified, use CFLAGS.
17516LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17517
a.rottmann9bc8b932004-02-29 15:18:31 +000017518# Allow CC to be a program name with arguments.
17519compiler=$CC
17520
17521
vapier7f19c022007-02-17 14:46:31 +000017522# save warnings/boilerplate of simple test code
17523ac_outfile=conftest.$ac_objext
17524printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17525eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17526_lt_compiler_boilerplate=`cat conftest.err`
17527$rm conftest*
17528
17529ac_outfile=conftest.$ac_objext
17530printf "$lt_simple_link_test_code" >conftest.$ac_ext
17531eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17532_lt_linker_boilerplate=`cat conftest.err`
17533$rm conftest*
17534
17535
a.rottmann9bc8b932004-02-29 15:18:31 +000017536# Allow CC to be a program name with arguments.
17537lt_save_CC="$CC"
17538CC=${RC-"windres"}
17539compiler=$CC
17540compiler_RC=$CC
vapier7f19c022007-02-17 14:46:31 +000017541for cc_temp in $compiler""; do
17542 case $cc_temp in
17543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17545 \-*) ;;
17546 *) break;;
17547 esac
17548done
17549cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17550
a.rottmann9bc8b932004-02-29 15:18:31 +000017551lt_cv_prog_compiler_c_o_RC=yes
17552
17553# The else clause should only fire when bootstrapping the
17554# libtool distribution, otherwise you forgot to ship ltmain.sh
17555# with your package, and you will get complaints that there are
17556# no rules to generate ltmain.sh.
17557if test -f "$ltmain"; then
17558 # See if we are running on zsh, and set the options which allow our commands through
17559 # without removal of \ escapes.
17560 if test -n "${ZSH_VERSION+set}" ; then
17561 setopt NO_GLOB_SUBST
17562 fi
17563 # Now quote all the things that may contain metacharacters while being
17564 # careful not to overquote the AC_SUBSTed values. We take copies of the
17565 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +000017566 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a.rottmann9bc8b932004-02-29 15:18:31 +000017567 SED SHELL STRIP \
17568 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17569 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17570 deplibs_check_method reload_flag reload_cmds need_locks \
17571 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17572 lt_cv_sys_global_symbol_to_c_name_address \
17573 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17574 old_postinstall_cmds old_postuninstall_cmds \
17575 compiler_RC \
17576 CC_RC \
17577 LD_RC \
17578 lt_prog_compiler_wl_RC \
17579 lt_prog_compiler_pic_RC \
17580 lt_prog_compiler_static_RC \
17581 lt_prog_compiler_no_builtin_flag_RC \
17582 export_dynamic_flag_spec_RC \
17583 thread_safe_flag_spec_RC \
17584 whole_archive_flag_spec_RC \
17585 enable_shared_with_static_runtimes_RC \
17586 old_archive_cmds_RC \
17587 old_archive_from_new_cmds_RC \
17588 predep_objects_RC \
17589 postdep_objects_RC \
17590 predeps_RC \
17591 postdeps_RC \
17592 compiler_lib_search_path_RC \
17593 archive_cmds_RC \
17594 archive_expsym_cmds_RC \
17595 postinstall_cmds_RC \
17596 postuninstall_cmds_RC \
17597 old_archive_from_expsyms_cmds_RC \
17598 allow_undefined_flag_RC \
17599 no_undefined_flag_RC \
17600 export_symbols_cmds_RC \
17601 hardcode_libdir_flag_spec_RC \
17602 hardcode_libdir_flag_spec_ld_RC \
17603 hardcode_libdir_separator_RC \
17604 hardcode_automatic_RC \
17605 module_cmds_RC \
17606 module_expsym_cmds_RC \
17607 lt_cv_prog_compiler_c_o_RC \
17608 exclude_expsyms_RC \
17609 include_expsyms_RC; do
17610
17611 case $var in
17612 old_archive_cmds_RC | \
17613 old_archive_from_new_cmds_RC | \
17614 archive_cmds_RC | \
17615 archive_expsym_cmds_RC | \
17616 module_cmds_RC | \
17617 module_expsym_cmds_RC | \
17618 old_archive_from_expsyms_cmds_RC | \
17619 export_symbols_cmds_RC | \
17620 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17621 postinstall_cmds | postuninstall_cmds | \
17622 old_postinstall_cmds | old_postuninstall_cmds | \
17623 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17624 # Double-quote double-evaled strings.
17625 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17626 ;;
17627 *)
17628 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17629 ;;
17630 esac
17631 done
17632
17633 case $lt_echo in
17634 *'\$0 --fallback-echo"')
17635 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17636 ;;
17637 esac
17638
17639cfgfile="$ofile"
17640
17641 cat <<__EOF__ >> "$cfgfile"
17642# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17643
17644# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17645
17646# Shell to use when invoking shell scripts.
17647SHELL=$lt_SHELL
17648
17649# Whether or not to build shared libraries.
17650build_libtool_libs=$enable_shared
17651
17652# Whether or not to build static libraries.
17653build_old_libs=$enable_static
17654
17655# Whether or not to add -lc for building shared libraries.
17656build_libtool_need_lc=$archive_cmds_need_lc_RC
17657
17658# Whether or not to disallow shared libs when runtime libs are static
17659allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17660
17661# Whether or not to optimize for fast installation.
17662fast_install=$enable_fast_install
17663
17664# The host system.
17665host_alias=$host_alias
17666host=$host
vapier7f19c022007-02-17 14:46:31 +000017667host_os=$host_os
17668
17669# The build system.
17670build_alias=$build_alias
17671build=$build
17672build_os=$build_os
a.rottmann9bc8b932004-02-29 15:18:31 +000017673
17674# An echo program that does not interpret backslashes.
17675echo=$lt_echo
17676
17677# The archiver.
17678AR=$lt_AR
17679AR_FLAGS=$lt_AR_FLAGS
17680
17681# A C compiler.
17682LTCC=$lt_LTCC
17683
vapier7f19c022007-02-17 14:46:31 +000017684# LTCC compiler flags.
17685LTCFLAGS=$lt_LTCFLAGS
17686
a.rottmann9bc8b932004-02-29 15:18:31 +000017687# A language-specific compiler.
17688CC=$lt_compiler_RC
17689
17690# Is the compiler the GNU C compiler?
17691with_gcc=$GCC_RC
17692
17693# An ERE matcher.
17694EGREP=$lt_EGREP
17695
17696# The linker used to build libraries.
17697LD=$lt_LD_RC
17698
17699# Whether we need hard or soft links.
17700LN_S=$lt_LN_S
17701
17702# A BSD-compatible nm program.
17703NM=$lt_NM
17704
17705# A symbol stripping program
17706STRIP=$lt_STRIP
17707
17708# Used to examine libraries when file_magic_cmd begins "file"
17709MAGIC_CMD=$MAGIC_CMD
17710
17711# Used on cygwin: DLL creation program.
17712DLLTOOL="$DLLTOOL"
17713
17714# Used on cygwin: object dumper.
17715OBJDUMP="$OBJDUMP"
17716
17717# Used on cygwin: assembler.
17718AS="$AS"
17719
17720# The name of the directory that contains temporary libtool files.
17721objdir=$objdir
17722
17723# How to create reloadable object files.
17724reload_flag=$lt_reload_flag
17725reload_cmds=$lt_reload_cmds
17726
17727# How to pass a linker flag through the compiler.
17728wl=$lt_lt_prog_compiler_wl_RC
17729
17730# Object file suffix (normally "o").
17731objext="$ac_objext"
17732
17733# Old archive suffix (normally "a").
17734libext="$libext"
17735
17736# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +000017737shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +000017738
17739# Executable file suffix (normally "").
17740exeext="$exeext"
17741
17742# Additional compiler flags for building library objects.
17743pic_flag=$lt_lt_prog_compiler_pic_RC
17744pic_mode=$pic_mode
17745
17746# What is the maximum length of a command?
17747max_cmd_len=$lt_cv_sys_max_cmd_len
17748
17749# Does compiler simultaneously support -c and -o options?
17750compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17751
vapier7f19c022007-02-17 14:46:31 +000017752# Must we lock files when doing compilation?
a.rottmann9bc8b932004-02-29 15:18:31 +000017753need_locks=$lt_need_locks
17754
17755# Do we need the lib prefix for modules?
17756need_lib_prefix=$need_lib_prefix
17757
17758# Do we need a version for libraries?
17759need_version=$need_version
17760
17761# Whether dlopen is supported.
17762dlopen_support=$enable_dlopen
17763
17764# Whether dlopen of programs is supported.
17765dlopen_self=$enable_dlopen_self
17766
17767# Whether dlopen of statically linked programs is supported.
17768dlopen_self_static=$enable_dlopen_self_static
17769
17770# Compiler flag to prevent dynamic linking.
17771link_static_flag=$lt_lt_prog_compiler_static_RC
17772
17773# Compiler flag to turn off builtin functions.
17774no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17775
17776# Compiler flag to allow reflexive dlopens.
17777export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17778
17779# Compiler flag to generate shared objects directly from archives.
17780whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17781
17782# Compiler flag to generate thread-safe objects.
17783thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17784
17785# Library versioning type.
17786version_type=$version_type
17787
17788# Format of library name prefix.
17789libname_spec=$lt_libname_spec
17790
17791# List of archive names. First name is the real one, the rest are links.
17792# The last name is the one that the linker finds with -lNAME.
17793library_names_spec=$lt_library_names_spec
17794
17795# The coded name of the library, if different from the real name.
17796soname_spec=$lt_soname_spec
17797
17798# Commands used to build and install an old-style archive.
17799RANLIB=$lt_RANLIB
17800old_archive_cmds=$lt_old_archive_cmds_RC
17801old_postinstall_cmds=$lt_old_postinstall_cmds
17802old_postuninstall_cmds=$lt_old_postuninstall_cmds
17803
17804# Create an old-style archive from a shared archive.
17805old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17806
17807# Create a temporary old-style archive to link instead of a shared archive.
17808old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17809
17810# Commands used to build and install a shared archive.
17811archive_cmds=$lt_archive_cmds_RC
17812archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17813postinstall_cmds=$lt_postinstall_cmds
17814postuninstall_cmds=$lt_postuninstall_cmds
17815
17816# Commands used to build a loadable module (assumed same as above if empty)
17817module_cmds=$lt_module_cmds_RC
17818module_expsym_cmds=$lt_module_expsym_cmds_RC
17819
17820# Commands to strip libraries.
17821old_striplib=$lt_old_striplib
17822striplib=$lt_striplib
17823
17824# Dependencies to place before the objects being linked to create a
17825# shared library.
17826predep_objects=$lt_predep_objects_RC
17827
17828# Dependencies to place after the objects being linked to create a
17829# shared library.
17830postdep_objects=$lt_postdep_objects_RC
17831
17832# Dependencies to place before the objects being linked to create a
17833# shared library.
17834predeps=$lt_predeps_RC
17835
17836# Dependencies to place after the objects being linked to create a
17837# shared library.
17838postdeps=$lt_postdeps_RC
17839
17840# The library search path used internally by the compiler when linking
17841# a shared library.
17842compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17843
17844# Method to check whether dependent libraries are shared objects.
17845deplibs_check_method=$lt_deplibs_check_method
17846
17847# Command to use when deplibs_check_method == file_magic.
17848file_magic_cmd=$lt_file_magic_cmd
17849
17850# Flag that allows shared libraries with undefined symbols to be built.
17851allow_undefined_flag=$lt_allow_undefined_flag_RC
17852
17853# Flag that forces no undefined symbols.
17854no_undefined_flag=$lt_no_undefined_flag_RC
17855
17856# Commands used to finish a libtool library installation in a directory.
17857finish_cmds=$lt_finish_cmds
17858
17859# Same as above, but a single script fragment to be evaled but not shown.
17860finish_eval=$lt_finish_eval
17861
17862# Take the output of nm and produce a listing of raw symbols and C names.
17863global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17864
17865# Transform the output of nm in a proper C declaration
17866global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17867
17868# Transform the output of nm in a C name address pair
17869global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17870
17871# This is the shared library runtime path variable.
17872runpath_var=$runpath_var
17873
17874# This is the shared library path variable.
17875shlibpath_var=$shlibpath_var
17876
17877# Is shlibpath searched before the hard-coded library search path?
17878shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17879
17880# How to hardcode a shared library path into an executable.
17881hardcode_action=$hardcode_action_RC
17882
17883# Whether we should hardcode library paths into libraries.
17884hardcode_into_libs=$hardcode_into_libs
17885
17886# Flag to hardcode \$libdir into a binary during linking.
17887# This must work even if \$libdir does not exist.
17888hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17889
17890# If ld is used when linking, flag to hardcode \$libdir into
17891# a binary during linking. This must work even if \$libdir does
17892# not exist.
17893hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17894
17895# Whether we need a single -rpath flag with a separated argument.
17896hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17897
17898# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17899# resulting binary.
17900hardcode_direct=$hardcode_direct_RC
17901
17902# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17903# resulting binary.
17904hardcode_minus_L=$hardcode_minus_L_RC
17905
17906# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17907# the resulting binary.
17908hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17909
17910# Set to yes if building a shared library automatically hardcodes DIR into the library
17911# and all subsequent libraries and executables linked against it.
17912hardcode_automatic=$hardcode_automatic_RC
17913
17914# Variables whose values should be saved in libtool wrapper scripts and
17915# restored at relink time.
17916variables_saved_for_relink="$variables_saved_for_relink"
17917
17918# Whether libtool must link a program against all its dependency libraries.
17919link_all_deplibs=$link_all_deplibs_RC
17920
17921# Compile-time system search path for libraries
17922sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17923
17924# Run-time system search path for libraries
17925sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17926
17927# Fix the shell variable \$srcfile for the compiler.
17928fix_srcfile_path="$fix_srcfile_path_RC"
17929
17930# Set to yes if exported symbols are required.
17931always_export_symbols=$always_export_symbols_RC
17932
17933# The commands to list exported symbols.
17934export_symbols_cmds=$lt_export_symbols_cmds_RC
17935
17936# The commands to extract the exported symbol list from a shared archive.
17937extract_expsyms_cmds=$lt_extract_expsyms_cmds
17938
17939# Symbols that should not be listed in the preloaded symbols.
17940exclude_expsyms=$lt_exclude_expsyms_RC
17941
17942# Symbols that must always be exported.
17943include_expsyms=$lt_include_expsyms_RC
17944
17945# ### END LIBTOOL TAG CONFIG: $tagname
17946
17947__EOF__
17948
17949
17950else
17951 # If there is no Makefile yet, we rely on a make rule to execute
17952 # `config.status --recheck' to rerun these tests and create the
17953 # libtool script then.
17954 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17955 if test -f "$ltmain_in"; then
17956 test -f Makefile && make "$ltmain"
17957 fi
17958fi
17959
17960
17961ac_ext=c
17962ac_cpp='$CPP $CPPFLAGS'
17963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17965ac_compiler_gnu=$ac_cv_c_compiler_gnu
17966
17967CC="$lt_save_CC"
17968
17969 ;;
17970
17971 *)
17972 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
17973echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
17974 { (exit 1); exit 1; }; }
17975 ;;
17976 esac
17977
17978 # Append the new tag name to the list of available tags.
17979 if test -n "$tagname" ; then
17980 available_tags="$available_tags $tagname"
17981 fi
17982 fi
17983 done
17984 IFS="$lt_save_ifs"
17985
17986 # Now substitute the updated list of available tags.
17987 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17988 mv "${ofile}T" "$ofile"
17989 chmod +x "$ofile"
17990 else
17991 rm -f "${ofile}T"
17992 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
17993echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
17994 { (exit 1); exit 1; }; }
17995 fi
17996fi
drh71eb93e2001-09-28 01:34:43 +000017997
drh71eb93e2001-09-28 01:34:43 +000017998
drh71eb93e2001-09-28 01:34:43 +000017999
18000# This can be used to rebuild libtool when needed
18001LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18002
18003# Always use our own libtool.
18004LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18005
18006# Prevent multiple expansion
18007
a.rottmann84e63352003-03-24 09:42:16 +000018008
a.rottmann9bc8b932004-02-29 15:18:31 +000018009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
drh71eb93e2001-09-28 01:34:43 +000018027# Find a good install program. We prefer a C program (faster),
18028# so one script is as good as another. But avoid the broken or
18029# incompatible versions:
18030# SysV /etc/install, /usr/sbin/install
18031# SunOS /usr/etc/install
18032# IRIX /sbin/install
18033# AIX /bin/install
18034# AmigaOS /C/install, which installs bootblocks on floppy discs
18035# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18036# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18037# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +000018038# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +000018039# ./install, which can be erroneously created by make from ./install.sh.
drh613a0fe2007-11-23 17:31:17 +000018040echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18041echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +000018042if test -z "$INSTALL"; then
18043if test "${ac_cv_path_install+set}" = set; then
18044 echo $ECHO_N "(cached) $ECHO_C" >&6
18045else
a.rottmann84e63352003-03-24 09:42:16 +000018046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18047for as_dir in $PATH
18048do
18049 IFS=$as_save_IFS
18050 test -z "$as_dir" && as_dir=.
18051 # Account for people who put trailing slashes in PATH elements.
18052case $as_dir/ in
18053 ./ | .// | /cC/* | \
18054 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a.rottmann964dbb12004-02-26 19:47:42 +000018055 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +000018056 /usr/ucb/* ) ;;
18057 *)
18058 # OSF1 and SCO ODT 3.0 have their own names for install.
18059 # Don't use installbsd from OSF since it installs stuff as root
18060 # by default.
18061 for ac_prog in ginstall scoinst install; do
18062 for ac_exec_ext in '' $ac_executable_extensions; do
drh613a0fe2007-11-23 17:31:17 +000018063 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a.rottmann964dbb12004-02-26 19:47:42 +000018064 if test $ac_prog = install &&
18065 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18066 # AIX install. It has an incompatible calling convention.
18067 :
18068 elif test $ac_prog = install &&
18069 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18070 # program-specific install script used by HP pwplus--don't use.
18071 :
18072 else
18073 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18074 break 3
18075 fi
18076 fi
drh71eb93e2001-09-28 01:34:43 +000018077 done
a.rottmann84e63352003-03-24 09:42:16 +000018078 done
18079 ;;
18080esac
18081done
18082
drh71eb93e2001-09-28 01:34:43 +000018083
18084fi
18085 if test "${ac_cv_path_install+set}" = set; then
18086 INSTALL=$ac_cv_path_install
18087 else
drh613a0fe2007-11-23 17:31:17 +000018088 # As a last resort, use the slow shell script. We don't cache a
18089 # path for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +000018090 # break other packages using the cache if that directory is
drh613a0fe2007-11-23 17:31:17 +000018091 # removed, or if the path is relative.
drh71eb93e2001-09-28 01:34:43 +000018092 INSTALL=$ac_install_sh
18093 fi
18094fi
drh613a0fe2007-11-23 17:31:17 +000018095echo "$as_me:$LINENO: result: $INSTALL" >&5
18096echo "${ECHO_T}$INSTALL" >&6
drh71eb93e2001-09-28 01:34:43 +000018097
18098# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18099# It thinks the first close brace ends the variable substitution.
18100test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18101
18102test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18103
18104test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18105
drhf1878b42006-01-23 18:06:52 +000018106for ac_prog in gawk mawk nawk awk
18107do
18108 # Extract the first word of "$ac_prog", so it can be a program name with args.
18109set dummy $ac_prog; ac_word=$2
drh613a0fe2007-11-23 17:31:17 +000018110echo "$as_me:$LINENO: checking for $ac_word" >&5
18111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
drhf1878b42006-01-23 18:06:52 +000018112if test "${ac_cv_prog_AWK+set}" = set; then
18113 echo $ECHO_N "(cached) $ECHO_C" >&6
18114else
18115 if test -n "$AWK"; then
18116 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18117else
18118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18119for as_dir in $PATH
18120do
18121 IFS=$as_save_IFS
18122 test -z "$as_dir" && as_dir=.
18123 for ac_exec_ext in '' $ac_executable_extensions; do
drh613a0fe2007-11-23 17:31:17 +000018124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
drhf1878b42006-01-23 18:06:52 +000018125 ac_cv_prog_AWK="$ac_prog"
18126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18127 break 2
18128 fi
18129done
18130done
18131
18132fi
18133fi
18134AWK=$ac_cv_prog_AWK
18135if test -n "$AWK"; then
drh613a0fe2007-11-23 17:31:17 +000018136 echo "$as_me:$LINENO: result: $AWK" >&5
18137echo "${ECHO_T}$AWK" >&6
drhf1878b42006-01-23 18:06:52 +000018138else
drh613a0fe2007-11-23 17:31:17 +000018139 echo "$as_me:$LINENO: result: no" >&5
18140echo "${ECHO_T}no" >&6
drhf1878b42006-01-23 18:06:52 +000018141fi
18142
18143 test -n "$AWK" && break
18144done
18145
a.rottmann84e63352003-03-24 09:42:16 +000018146
drh75897232000-05-29 14:26:00 +000018147#########
18148# Set up an appropriate program prefix
18149#
18150if test "$program_prefix" = "NONE"; then
18151 program_prefix=""
18152fi
18153
a.rottmann84e63352003-03-24 09:42:16 +000018154
drh4b2266a2004-11-27 15:52:16 +000018155VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
18156echo "Version set to $VERSION"
18157
18158RELEASE=`cat $srcdir/VERSION`
18159echo "Release set to $RELEASE"
a.rottmann84e63352003-03-24 09:42:16 +000018160
danielk197799ba19e2005-02-05 07:33:34 +000018161VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000018162 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000018163 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
danielk197799ba19e2005-02-05 07:33:34 +000018164echo "Version number set to $VERSION_NUMBER"
a.rottmann84e63352003-03-24 09:42:16 +000018165
drh26d0e2a2005-07-06 13:51:27 +000018166
drh75897232000-05-29 14:26:00 +000018167#########
18168# Check to see if the --with-hints=FILE option is used. If there is none,
18169# then check for a files named "$host.hints" and ../$hosts.hints where
18170# $host is the hostname of the build system. If still no hints are
18171# found, try looking in $system.hints and ../$system.hints where
18172# $system is the result of uname -s.
18173#
drh71eb93e2001-09-28 01:34:43 +000018174
drh613a0fe2007-11-23 17:31:17 +000018175# Check whether --with-hints or --without-hints was given.
drh75897232000-05-29 14:26:00 +000018176if test "${with_hints+set}" = set; then
drh613a0fe2007-11-23 17:31:17 +000018177 withval="$with_hints"
18178 hints=$withval
18179fi;
drh75897232000-05-29 14:26:00 +000018180if test "$hints" = ""; then
18181 host=`hostname | sed 's/\..*//'`
18182 if test -r $host.hints; then
18183 hints=$host.hints
18184 else
18185 if test -r ../$host.hints; then
18186 hints=../$host.hints
18187 fi
18188 fi
18189fi
18190if test "$hints" = ""; then
18191 sys=`uname -s`
18192 if test -r $sys.hints; then
18193 hints=$sys.hints
18194 else
18195 if test -r ../$sys.hints; then
18196 hints=../$sys.hints
18197 fi
18198 fi
18199fi
18200if test "$hints" != ""; then
drh613a0fe2007-11-23 17:31:17 +000018201 echo "$as_me:$LINENO: result: reading hints from $hints" >&5
18202echo "${ECHO_T}reading hints from $hints" >&6
drh75897232000-05-29 14:26:00 +000018203 . $hints
18204fi
18205
18206#########
18207# Locate a compiler for the build machine. This compiler should
18208# generate command-line programs that run on the build machine.
18209#
vapier7f19c022007-02-17 14:46:31 +000018210if test x"$cross_compiling" = xno; then
18211 BUILD_CC=$CC
18212 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000018213else
vapier7f19c022007-02-17 14:46:31 +000018214 if test "${BUILD_CC+set}" != set; then
18215 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000018216do
18217 # Extract the first word of "$ac_prog", so it can be a program name with args.
18218set dummy $ac_prog; ac_word=$2
drh613a0fe2007-11-23 17:31:17 +000018219echo "$as_me:$LINENO: checking for $ac_word" >&5
18220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
vapier7f19c022007-02-17 14:46:31 +000018221if test "${ac_cv_prog_BUILD_CC+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +000018222 echo $ECHO_N "(cached) $ECHO_C" >&6
18223else
vapier7f19c022007-02-17 14:46:31 +000018224 if test -n "$BUILD_CC"; then
18225 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000018226else
a.rottmann84e63352003-03-24 09:42:16 +000018227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18228for as_dir in $PATH
18229do
18230 IFS=$as_save_IFS
18231 test -z "$as_dir" && as_dir=.
18232 for ac_exec_ext in '' $ac_executable_extensions; do
drh613a0fe2007-11-23 17:31:17 +000018233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier7f19c022007-02-17 14:46:31 +000018234 ac_cv_prog_BUILD_CC="$ac_prog"
a.rottmann84e63352003-03-24 09:42:16 +000018235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18236 break 2
18237 fi
18238done
drh71eb93e2001-09-28 01:34:43 +000018239done
drh75897232000-05-29 14:26:00 +000018240
drh71eb93e2001-09-28 01:34:43 +000018241fi
18242fi
vapier7f19c022007-02-17 14:46:31 +000018243BUILD_CC=$ac_cv_prog_BUILD_CC
18244if test -n "$BUILD_CC"; then
drh613a0fe2007-11-23 17:31:17 +000018245 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
18246echo "${ECHO_T}$BUILD_CC" >&6
drh71eb93e2001-09-28 01:34:43 +000018247else
drh613a0fe2007-11-23 17:31:17 +000018248 echo "$as_me:$LINENO: result: no" >&5
18249echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +000018250fi
drh75897232000-05-29 14:26:00 +000018251
vapier7f19c022007-02-17 14:46:31 +000018252 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000018253done
drh75897232000-05-29 14:26:00 +000018254
vapier7f19c022007-02-17 14:46:31 +000018255 fi
18256 if test "${BUILD_CFLAGS+set}" != set; then
18257 BUILD_CFLAGS="-g"
18258 fi
drh71eb93e2001-09-28 01:34:43 +000018259fi
18260
a.rottmann84e63352003-03-24 09:42:16 +000018261
drh75897232000-05-29 14:26:00 +000018262
drh297ecf12001-04-05 15:57:13 +000018263##########
dougcurrie0f290bf2004-06-21 18:57:29 +000018264# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000018265#
drh613a0fe2007-11-23 17:31:17 +000018266# Check whether --enable-threadsafe or --disable-threadsafe was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000018267if test "${enable_threadsafe+set}" = set; then
drh613a0fe2007-11-23 17:31:17 +000018268 enableval="$enable_threadsafe"
18269
drh297ecf12001-04-05 15:57:13 +000018270else
drh5a3032b2007-09-03 16:12:09 +000018271 enable_threadsafe=yes
drh613a0fe2007-11-23 17:31:17 +000018272fi;
18273echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
18274echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6
dougcurrie0f290bf2004-06-21 18:57:29 +000018275if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000018276 SQLITE_THREADSAFE=0
drh613a0fe2007-11-23 17:31:17 +000018277 echo "$as_me:$LINENO: result: no" >&5
18278echo "${ECHO_T}no" >&6
paulb0208cc2003-04-13 18:26:49 +000018279else
drh5a3032b2007-09-03 16:12:09 +000018280 SQLITE_THREADSAFE=1
drh613a0fe2007-11-23 17:31:17 +000018281 echo "$as_me:$LINENO: result: yes" >&5
18282echo "${ECHO_T}yes" >&6
paulb0208cc2003-04-13 18:26:49 +000018283fi
18284
a.rottmann964dbb12004-02-26 19:47:42 +000018285
drh5a3032b2007-09-03 16:12:09 +000018286if test "$SQLITE_THREADSAFE" = "1"; then
dougcurrie65623c72004-09-20 14:57:23 +000018287 LIBS=""
18288
drh613a0fe2007-11-23 17:31:17 +000018289echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18290echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
dougcurrie65623c72004-09-20 14:57:23 +000018291if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18292 echo $ECHO_N "(cached) $ECHO_C" >&6
18293else
18294 ac_check_lib_save_LIBS=$LIBS
18295LIBS="-lpthread $LIBS"
18296cat >conftest.$ac_ext <<_ACEOF
18297/* confdefs.h. */
18298_ACEOF
18299cat confdefs.h >>conftest.$ac_ext
18300cat >>conftest.$ac_ext <<_ACEOF
18301/* end confdefs.h. */
18302
drh613a0fe2007-11-23 17:31:17 +000018303/* Override any gcc2 internal prototype to avoid an error. */
dougcurrie65623c72004-09-20 14:57:23 +000018304#ifdef __cplusplus
18305extern "C"
18306#endif
drh613a0fe2007-11-23 17:31:17 +000018307/* We use char because int might match the return type of a gcc2
18308 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000018309char pthread_create ();
18310int
18311main ()
18312{
drh613a0fe2007-11-23 17:31:17 +000018313pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000018314 ;
18315 return 0;
18316}
18317_ACEOF
18318rm -f conftest.$ac_objext conftest$ac_exeext
drh613a0fe2007-11-23 17:31:17 +000018319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18320 (eval $ac_link) 2>conftest.er1
dougcurrie65623c72004-09-20 14:57:23 +000018321 ac_status=$?
18322 grep -v '^ *+' conftest.er1 >conftest.err
18323 rm -f conftest.er1
18324 cat conftest.err >&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +000018326 (exit $ac_status); } &&
18327 { ac_try='test -z "$ac_c_werror_flag"
18328 || test ! -s conftest.err'
18329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330 (eval $ac_try) 2>&5
18331 ac_status=$?
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; } &&
18334 { ac_try='test -s conftest$ac_exeext'
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; }; then
dougcurrie65623c72004-09-20 14:57:23 +000018340 ac_cv_lib_pthread_pthread_create=yes
18341else
18342 echo "$as_me: failed program was:" >&5
18343sed 's/^/| /' conftest.$ac_ext >&5
18344
drh613a0fe2007-11-23 17:31:17 +000018345ac_cv_lib_pthread_pthread_create=no
dougcurrie65623c72004-09-20 14:57:23 +000018346fi
drh613a0fe2007-11-23 17:31:17 +000018347rm -f conftest.err conftest.$ac_objext \
dougcurrie65623c72004-09-20 14:57:23 +000018348 conftest$ac_exeext conftest.$ac_ext
18349LIBS=$ac_check_lib_save_LIBS
18350fi
drh613a0fe2007-11-23 17:31:17 +000018351echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18352echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
dougcurrie65623c72004-09-20 14:57:23 +000018353if test $ac_cv_lib_pthread_pthread_create = yes; then
18354 cat >>confdefs.h <<_ACEOF
18355#define HAVE_LIBPTHREAD 1
18356_ACEOF
18357
18358 LIBS="-lpthread $LIBS"
18359
18360fi
18361
18362 TARGET_THREAD_LIB="$LIBS"
18363 LIBS=""
18364else
18365 TARGET_THREAD_LIB=""
18366fi
18367
18368
xdong28f79f72003-09-23 00:35:21 +000018369##########
drh91636d52005-11-24 23:14:00 +000018370# Do we want to allow a connection created in one thread to be used
18371# in another thread. This does not work on many Linux systems (ex: RedHat 9)
18372# due to bugs in the threading implementations. This is thus off by default.
18373#
drh613a0fe2007-11-23 17:31:17 +000018374# Check whether --enable-cross-thread-connections or --disable-cross-thread-connections was given.
drh91636d52005-11-24 23:14:00 +000018375if test "${enable_cross_thread_connections+set}" = set; then
drh613a0fe2007-11-23 17:31:17 +000018376 enableval="$enable_cross_thread_connections"
18377
drh91636d52005-11-24 23:14:00 +000018378else
18379 enable_xthreadconnect=no
drh613a0fe2007-11-23 17:31:17 +000018380fi;
18381echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
18382echo $ECHO_N "checking whether to allow connections to be shared across threads... $ECHO_C" >&6
drh91636d52005-11-24 23:14:00 +000018383if test "$enable_xthreadconnect" = "no"; then
18384 XTHREADCONNECT=''
drh613a0fe2007-11-23 17:31:17 +000018385 echo "$as_me:$LINENO: result: no" >&5
18386echo "${ECHO_T}no" >&6
drh91636d52005-11-24 23:14:00 +000018387else
18388 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
drh613a0fe2007-11-23 17:31:17 +000018389 echo "$as_me:$LINENO: result: yes" >&5
18390echo "${ECHO_T}yes" >&6
drh91636d52005-11-24 23:14:00 +000018391fi
18392
18393
18394##########
drh8e2e2a12006-02-01 01:55:17 +000018395# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
18396# default. Normally, a test at runtime is performed to determine the
18397# appropriate value of this variable. Use this option only if you're sure that
18398# threads can safely override each others locks in all runtime situations.
18399#
drh613a0fe2007-11-23 17:31:17 +000018400# Check whether --enable-threads-override-locks or --disable-threads-override-locks was given.
drh8e2e2a12006-02-01 01:55:17 +000018401if test "${enable_threads_override_locks+set}" = set; then
drh613a0fe2007-11-23 17:31:17 +000018402 enableval="$enable_threads_override_locks"
18403
drh8e2e2a12006-02-01 01:55:17 +000018404else
18405 enable_threads_override_locks=no
drh613a0fe2007-11-23 17:31:17 +000018406fi;
18407echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5
18408echo $ECHO_N "checking whether threads can override each others locks... $ECHO_C" >&6
drh8e2e2a12006-02-01 01:55:17 +000018409if test "$enable_threads_override_locks" = "no"; then
18410 THREADSOVERRIDELOCKS='-1'
drh613a0fe2007-11-23 17:31:17 +000018411 echo "$as_me:$LINENO: result: no" >&5
18412echo "${ECHO_T}no" >&6
drh8e2e2a12006-02-01 01:55:17 +000018413else
18414 THREADSOVERRIDELOCKS='1'
drh613a0fe2007-11-23 17:31:17 +000018415 echo "$as_me:$LINENO: result: yes" >&5
18416echo "${ECHO_T}yes" >&6
drh8e2e2a12006-02-01 01:55:17 +000018417fi
18418
18419
18420##########
xdong28f79f72003-09-23 00:35:21 +000018421# Do we want to support release
18422#
drh613a0fe2007-11-23 17:31:17 +000018423# Check whether --enable-releasemode or --disable-releasemode was given.
xdong28f79f72003-09-23 00:35:21 +000018424if test "${enable_releasemode+set}" = set; then
drh613a0fe2007-11-23 17:31:17 +000018425 enableval="$enable_releasemode"
18426
xdong28f79f72003-09-23 00:35:21 +000018427else
18428 enable_releasemode=no
drh613a0fe2007-11-23 17:31:17 +000018429fi;
18430echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
18431echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000018432if test "$enable_releasemode" = "no"; then
18433 ALLOWRELEASE=""
drh613a0fe2007-11-23 17:31:17 +000018434 echo "$as_me:$LINENO: result: no" >&5
18435echo "${ECHO_T}no" >&6
xdong28f79f72003-09-23 00:35:21 +000018436else
drh0b47d342007-11-27 14:50:06 +000018437 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drh613a0fe2007-11-23 17:31:17 +000018438 echo "$as_me:$LINENO: result: yes" >&5
18439echo "${ECHO_T}yes" >&6
xdong28f79f72003-09-23 00:35:21 +000018440fi
paulb0208cc2003-04-13 18:26:49 +000018441
a.rottmann964dbb12004-02-26 19:47:42 +000018442
paulb0208cc2003-04-13 18:26:49 +000018443##########
18444# Do we want temporary databases in memory
18445#
drh613a0fe2007-11-23 17:31:17 +000018446# Check whether --enable-tempstore or --disable-tempstore was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000018447if test "${enable_tempstore+set}" = set; then
drh613a0fe2007-11-23 17:31:17 +000018448 enableval="$enable_tempstore"
18449
paulb0208cc2003-04-13 18:26:49 +000018450else
drh54414bb2005-10-10 00:05:50 +000018451 enable_tempstore=no
drh613a0fe2007-11-23 17:31:17 +000018452fi;
18453echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
18454echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6
dougcurrie0f290bf2004-06-21 18:57:29 +000018455case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000018456 never )
paul2dc96f92003-04-20 11:46:34 +000018457 TEMP_STORE=0
drh613a0fe2007-11-23 17:31:17 +000018458 echo "$as_me:$LINENO: result: never" >&5
18459echo "${ECHO_T}never" >&6
paulb0208cc2003-04-13 18:26:49 +000018460 ;;
18461 no )
paul2dc96f92003-04-20 11:46:34 +000018462 TEMP_STORE=1
drh613a0fe2007-11-23 17:31:17 +000018463 echo "$as_me:$LINENO: result: no" >&5
18464echo "${ECHO_T}no" >&6
paulb0208cc2003-04-13 18:26:49 +000018465 ;;
18466 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000018467 TEMP_STORE=3
drh613a0fe2007-11-23 17:31:17 +000018468 echo "$as_me:$LINENO: result: always" >&5
18469echo "${ECHO_T}always" >&6
paulb0208cc2003-04-13 18:26:49 +000018470 ;;
drh54414bb2005-10-10 00:05:50 +000018471 yes )
18472 TEMP_STORE=3
drh613a0fe2007-11-23 17:31:17 +000018473 echo "$as_me:$LINENO: result: always" >&5
18474echo "${ECHO_T}always" >&6
drh54414bb2005-10-10 00:05:50 +000018475 ;;
paulb0208cc2003-04-13 18:26:49 +000018476 * )
drh54414bb2005-10-10 00:05:50 +000018477 TEMP_STORE=1
drh613a0fe2007-11-23 17:31:17 +000018478 echo "$as_me:$LINENO: result: yes" >&5
18479echo "${ECHO_T}yes" >&6
paulb0208cc2003-04-13 18:26:49 +000018480 ;;
18481esac
18482
18483
18484
drh75897232000-05-29 14:26:00 +000018485###########
18486# Lots of things are different if we are compiling for Windows using
18487# the CYGWIN environment. So check for that special case and handle
18488# things accordingly.
18489#
drh613a0fe2007-11-23 17:31:17 +000018490echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
18491echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018492if test "$config_BUILD_EXEEXT" = ".exe"; then
18493 CYGWIN=yes
drh613a0fe2007-11-23 17:31:17 +000018494 echo "$as_me:$LINENO: result: yes" >&5
18495echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +000018496else
drh613a0fe2007-11-23 17:31:17 +000018497 echo "$as_me:$LINENO: result: unknown" >&5
18498echo "${ECHO_T}unknown" >&6
drh75897232000-05-29 14:26:00 +000018499fi
18500if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000018501
18502case $host_os in
drh71eb93e2001-09-28 01:34:43 +000018503 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000018504 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000018505esac
drh75897232000-05-29 14:26:00 +000018506
drh75897232000-05-29 14:26:00 +000018507fi
18508if test "$CYGWIN" = "yes"; then
18509 BUILD_EXEEXT=.exe
18510else
dougcurrie6194a5f2003-12-19 20:09:51 +000018511 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000018512fi
vapier7f19c022007-02-17 14:46:31 +000018513if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000018514 TARGET_EXEEXT=$BUILD_EXEEXT
18515else
18516 TARGET_EXEEXT=$config_TARGET_EXEEXT
18517fi
18518if test "$TARGET_EXEEXT" = ".exe"; then
drh60a1e4b2006-06-03 18:02:15 +000018519 if test $OS2_SHELL ; then
18520 OS_UNIX=0
18521 OS_WIN=0
18522 OS_OS2=1
18523 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_OS2=1"
18524 if test "$ac_compiler_gnu" == "yes" ; then
18525 TARGET_CFLAGS="$TARGET_CFLAGS -Zomf -Zexe -Zmap"
18526 BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe"
18527 fi
18528 else
18529 OS_UNIX=0
18530 OS_WIN=1
18531 OS_OS2=0
18532 tclsubdir=win
18533 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_WIN=1"
18534 fi
drh75897232000-05-29 14:26:00 +000018535else
18536 OS_UNIX=1
18537 OS_WIN=0
drh60a1e4b2006-06-03 18:02:15 +000018538 OS_OS2=0
drh75897232000-05-29 14:26:00 +000018539 tclsubdir=unix
dougcurrie0f290bf2004-06-21 18:57:29 +000018540 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=1"
drh75897232000-05-29 14:26:00 +000018541fi
drh75897232000-05-29 14:26:00 +000018542
a.rottmann84e63352003-03-24 09:42:16 +000018543
18544
18545
18546
18547
drh75897232000-05-29 14:26:00 +000018548
drh75897232000-05-29 14:26:00 +000018549##########
drh7b5717e2004-11-25 13:50:01 +000018550# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000018551#
drh7b5717e2004-11-25 13:50:01 +000018552# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
18553# macros in the in the tcl.m4 file of the standard TCL distribution.
18554# Those macros could not be used directly since we have to make some
18555# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000018556#
drh613a0fe2007-11-23 17:31:17 +000018557# Check whether --enable-tcl or --disable-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000018558if test "${enable_tcl+set}" = set; then
drh613a0fe2007-11-23 17:31:17 +000018559 enableval="$enable_tcl"
18560 use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000018561else
drh7b5717e2004-11-25 13:50:01 +000018562 use_tcl=yes
drh613a0fe2007-11-23 17:31:17 +000018563fi;
drh7b5717e2004-11-25 13:50:01 +000018564if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000018565
drh613a0fe2007-11-23 17:31:17 +000018566# Check whether --with-tcl or --without-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000018567if test "${with_tcl+set}" = set; then
drh613a0fe2007-11-23 17:31:17 +000018568 withval="$with_tcl"
18569 with_tclconfig=${withval}
18570fi;
18571 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
18572echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
drh7b5717e2004-11-25 13:50:01 +000018573 if test "${ac_cv_c_tclconfig+set}" = set; then
a.rottmann84e63352003-03-24 09:42:16 +000018574 echo $ECHO_N "(cached) $ECHO_C" >&6
18575else
a.rottmann84e63352003-03-24 09:42:16 +000018576
drh7b5717e2004-11-25 13:50:01 +000018577 # First check to see if --with-tcl was specified.
18578 if test x"${with_tclconfig}" != x ; then
18579 if test -f "${with_tclconfig}/tclConfig.sh" ; then
18580 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
18581 else
18582 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
18583echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
xdong28f79f72003-09-23 00:35:21 +000018584 { (exit 1); exit 1; }; }
drh7b5717e2004-11-25 13:50:01 +000018585 fi
18586 fi
18587 # then check for a private Tcl installation
18588 if test x"${ac_cv_c_tclconfig}" = x ; then
18589 for i in \
18590 ../tcl \
18591 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
18592 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
18593 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
18594 ../../tcl \
18595 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
18596 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
18597 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
18598 ../../../tcl \
18599 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
18600 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
18601 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
18602 do
18603 if test -f "$i/unix/tclConfig.sh" ; then
18604 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
18605 break
18606 fi
18607 done
18608 fi
18609
18610 # check in a few common install locations
18611 if test x"${ac_cv_c_tclconfig}" = x ; then
18612 for i in \
18613 `ls -d ${libdir} 2>/dev/null` \
18614 `ls -d /usr/local/lib 2>/dev/null` \
18615 `ls -d /usr/contrib/lib 2>/dev/null` \
18616 `ls -d /usr/lib 2>/dev/null`
18617 do
18618 if test -f "$i/tclConfig.sh" ; then
18619 ac_cv_c_tclconfig=`(cd $i; pwd)`
18620 break
18621 fi
18622 done
18623 fi
18624
18625 # check in a few other private locations
18626 if test x"${ac_cv_c_tclconfig}" = x ; then
18627 for i in \
18628 ${srcdir}/../tcl \
18629 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
18630 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
18631 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
18632 do
18633 if test -f "$i/unix/tclConfig.sh" ; then
18634 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
18635 break
18636 fi
18637 done
18638 fi
18639
drh75897232000-05-29 14:26:00 +000018640fi
18641
drh7b5717e2004-11-25 13:50:01 +000018642
18643 if test x"${ac_cv_c_tclconfig}" = x ; then
18644 use_tcl=no
18645 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
18646echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
18647 { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
18648echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
18649 { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
18650echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
18651 else
18652 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drh613a0fe2007-11-23 17:31:17 +000018653 echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
18654echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6
drh7b5717e2004-11-25 13:50:01 +000018655
drh613a0fe2007-11-23 17:31:17 +000018656 echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
18657echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
drh7b5717e2004-11-25 13:50:01 +000018658 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drh613a0fe2007-11-23 17:31:17 +000018659 echo "$as_me:$LINENO: result: loading" >&5
18660echo "${ECHO_T}loading" >&6
drh7b5717e2004-11-25 13:50:01 +000018661 . $TCL_BIN_DIR/tclConfig.sh
18662 else
drh613a0fe2007-11-23 17:31:17 +000018663 echo "$as_me:$LINENO: result: file not found" >&5
18664echo "${ECHO_T}file not found" >&6
drh75897232000-05-29 14:26:00 +000018665 fi
drh7b5717e2004-11-25 13:50:01 +000018666
18667 #
18668 # If the TCL_BIN_DIR is the build directory (not the install directory),
18669 # then set the common variable name to the value of the build variables.
18670 # For example, the variable TCL_LIB_SPEC will be set to the value
18671 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
18672 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
18673 # installed and uninstalled version of Tcl.
18674 #
18675
18676 if test -f $TCL_BIN_DIR/Makefile ; then
18677 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
18678 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
18679 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
18680 fi
18681
18682 #
18683 # eval is required to do the TCL_DBGX substitution
18684 #
18685
18686 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
18687 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
18688 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
18689
18690 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
18691 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
18692 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707 fi
drh75897232000-05-29 14:26:00 +000018708fi
drh7b5717e2004-11-25 13:50:01 +000018709if test "${use_tcl}" = "no" ; then
18710 HAVE_TCL=""
18711else
18712 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000018713fi
drh75897232000-05-29 14:26:00 +000018714
a.rottmann84e63352003-03-24 09:42:16 +000018715
drh75897232000-05-29 14:26:00 +000018716##########
18717# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000018718# that use "readline()" library.
18719#
vapier7f19c022007-02-17 14:46:31 +000018720TARGET_READLINE_LIBS=""
18721TARGET_READLINE_INC=""
18722TARGET_HAVE_READLINE=0
drh613a0fe2007-11-23 17:31:17 +000018723# Check whether --enable-readline or --disable-readline was given.
vapier7f19c022007-02-17 14:46:31 +000018724if test "${enable_readline+set}" = set; then
drh613a0fe2007-11-23 17:31:17 +000018725 enableval="$enable_readline"
18726 with_readline=$enableval
drh75897232000-05-29 14:26:00 +000018727else
vapier7f19c022007-02-17 14:46:31 +000018728 with_readline=auto
drh613a0fe2007-11-23 17:31:17 +000018729fi;
vapier7f19c022007-02-17 14:46:31 +000018730
18731if test x"$with_readline" != xno; then
18732 found="yes"
18733
18734
drh613a0fe2007-11-23 17:31:17 +000018735# Check whether --with-readline-lib or --without-readline-lib was given.
vapier7f19c022007-02-17 14:46:31 +000018736if test "${with_readline_lib+set}" = set; then
drh613a0fe2007-11-23 17:31:17 +000018737 withval="$with_readline_lib"
18738 with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000018739else
18740 with_readline_lib="auto"
drh613a0fe2007-11-23 17:31:17 +000018741fi;
vapier7f19c022007-02-17 14:46:31 +000018742 if test "x$with_readline_lib" = xauto; then
18743 save_LIBS="$LIBS"
18744 LIBS=""
drh613a0fe2007-11-23 17:31:17 +000018745 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
18746echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
paul38372372003-04-22 08:04:49 +000018747if test "${ac_cv_search_tgetent+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +000018748 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018749else
drh71eb93e2001-09-28 01:34:43 +000018750 ac_func_search_save_LIBS=$LIBS
drh613a0fe2007-11-23 17:31:17 +000018751ac_cv_search_tgetent=no
paul38372372003-04-22 08:04:49 +000018752cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000018753/* confdefs.h. */
18754_ACEOF
18755cat confdefs.h >>conftest.$ac_ext
18756cat >>conftest.$ac_ext <<_ACEOF
18757/* end confdefs.h. */
18758
drh613a0fe2007-11-23 17:31:17 +000018759/* Override any gcc2 internal prototype to avoid an error. */
paul38372372003-04-22 08:04:49 +000018760#ifdef __cplusplus
18761extern "C"
18762#endif
drh613a0fe2007-11-23 17:31:17 +000018763/* We use char because int might match the return type of a gcc2
18764 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000018765char tgetent ();
18766int
18767main ()
18768{
drh613a0fe2007-11-23 17:31:17 +000018769tgetent ();
paul38372372003-04-22 08:04:49 +000018770 ;
18771 return 0;
18772}
18773_ACEOF
drh613a0fe2007-11-23 17:31:17 +000018774rm -f conftest.$ac_objext conftest$ac_exeext
18775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18776 (eval $ac_link) 2>conftest.er1
paul38372372003-04-22 08:04:49 +000018777 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000018778 grep -v '^ *+' conftest.er1 >conftest.err
18779 rm -f conftest.er1
18780 cat conftest.err >&5
paul38372372003-04-22 08:04:49 +000018781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +000018782 (exit $ac_status); } &&
18783 { ac_try='test -z "$ac_c_werror_flag"
18784 || test ! -s conftest.err'
18785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786 (eval $ac_try) 2>&5
18787 ac_status=$?
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; } &&
18790 { ac_try='test -s conftest$ac_exeext'
18791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18792 (eval $ac_try) 2>&5
18793 ac_status=$?
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; }; then
18796 ac_cv_search_tgetent="none required"
paul38372372003-04-22 08:04:49 +000018797else
18798 echo "$as_me: failed program was:" >&5
18799sed 's/^/| /' conftest.$ac_ext >&5
18800
18801fi
drh613a0fe2007-11-23 17:31:17 +000018802rm -f conftest.err conftest.$ac_objext \
18803 conftest$ac_exeext conftest.$ac_ext
18804if test "$ac_cv_search_tgetent" = no; then
18805 for ac_lib in readline ncurses curses termcap; do
18806 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18807 cat >conftest.$ac_ext <<_ACEOF
18808/* confdefs.h. */
18809_ACEOF
18810cat confdefs.h >>conftest.$ac_ext
18811cat >>conftest.$ac_ext <<_ACEOF
18812/* end confdefs.h. */
vapier7f19c022007-02-17 14:46:31 +000018813
drh613a0fe2007-11-23 17:31:17 +000018814/* Override any gcc2 internal prototype to avoid an error. */
18815#ifdef __cplusplus
18816extern "C"
18817#endif
18818/* We use char because int might match the return type of a gcc2
18819 builtin and then its argument prototype would still apply. */
18820char tgetent ();
18821int
18822main ()
18823{
18824tgetent ();
18825 ;
18826 return 0;
18827}
18828_ACEOF
18829rm -f conftest.$ac_objext conftest$ac_exeext
18830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18831 (eval $ac_link) 2>conftest.er1
18832 ac_status=$?
18833 grep -v '^ *+' conftest.er1 >conftest.err
18834 rm -f conftest.er1
18835 cat conftest.err >&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); } &&
18838 { ac_try='test -z "$ac_c_werror_flag"
18839 || test ! -s conftest.err'
18840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841 (eval $ac_try) 2>&5
18842 ac_status=$?
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; } &&
18845 { ac_try='test -s conftest$ac_exeext'
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
18851 ac_cv_search_tgetent="-l$ac_lib"
18852break
vapier7f19c022007-02-17 14:46:31 +000018853else
drh613a0fe2007-11-23 17:31:17 +000018854 echo "$as_me: failed program was:" >&5
18855sed 's/^/| /' conftest.$ac_ext >&5
18856
vapier7f19c022007-02-17 14:46:31 +000018857fi
drh613a0fe2007-11-23 17:31:17 +000018858rm -f conftest.err conftest.$ac_objext \
18859 conftest$ac_exeext conftest.$ac_ext
18860 done
18861fi
paul38372372003-04-22 08:04:49 +000018862LIBS=$ac_func_search_save_LIBS
18863fi
drh613a0fe2007-11-23 17:31:17 +000018864echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
18865echo "${ECHO_T}$ac_cv_search_tgetent" >&6
18866if test "$ac_cv_search_tgetent" != no; then
18867 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
vapier7f19c022007-02-17 14:46:31 +000018868 term_LIBS="$LIBS"
18869else
18870 term_LIBS=""
paul38372372003-04-22 08:04:49 +000018871fi
18872
drh613a0fe2007-11-23 17:31:17 +000018873 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
18874echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
paul38372372003-04-22 08:04:49 +000018875if test "${ac_cv_lib_readline_readline+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18877else
18878 ac_check_lib_save_LIBS=$LIBS
18879LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000018880cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018881/* confdefs.h. */
18882_ACEOF
18883cat confdefs.h >>conftest.$ac_ext
18884cat >>conftest.$ac_ext <<_ACEOF
18885/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000018886
drh613a0fe2007-11-23 17:31:17 +000018887/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +000018888#ifdef __cplusplus
18889extern "C"
18890#endif
drh613a0fe2007-11-23 17:31:17 +000018891/* We use char because int might match the return type of a gcc2
18892 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000018893char readline ();
18894int
18895main ()
18896{
drh613a0fe2007-11-23 17:31:17 +000018897readline ();
drh71eb93e2001-09-28 01:34:43 +000018898 ;
18899 return 0;
18900}
18901_ACEOF
18902rm -f conftest.$ac_objext conftest$ac_exeext
drh613a0fe2007-11-23 17:31:17 +000018903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18904 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000018905 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000018906 grep -v '^ *+' conftest.er1 >conftest.err
18907 rm -f conftest.er1
18908 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000018909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +000018910 (exit $ac_status); } &&
18911 { ac_try='test -z "$ac_c_werror_flag"
18912 || test ! -s conftest.err'
18913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18914 (eval $ac_try) 2>&5
18915 ac_status=$?
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); }; } &&
18918 { ac_try='test -s conftest$ac_exeext'
18919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920 (eval $ac_try) 2>&5
18921 ac_status=$?
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; }; then
paul38372372003-04-22 08:04:49 +000018924 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000018925else
drh71eb93e2001-09-28 01:34:43 +000018926 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000018927sed 's/^/| /' conftest.$ac_ext >&5
18928
drh613a0fe2007-11-23 17:31:17 +000018929ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000018930fi
drh613a0fe2007-11-23 17:31:17 +000018931rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +000018932 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000018933LIBS=$ac_check_lib_save_LIBS
18934fi
drh613a0fe2007-11-23 17:31:17 +000018935echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
18936echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
paul38372372003-04-22 08:04:49 +000018937if test $ac_cv_lib_readline_readline = yes; then
vapier7f19c022007-02-17 14:46:31 +000018938 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000018939else
vapier7f19c022007-02-17 14:46:31 +000018940 found="no"
18941fi
drhf1878b42006-01-23 18:06:52 +000018942
vapier7f19c022007-02-17 14:46:31 +000018943 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
18944 LIBS="$save_LIBS"
18945 else
18946 TARGET_READLINE_LIBS="$with_readline_lib"
18947 fi
18948
18949
drh613a0fe2007-11-23 17:31:17 +000018950# Check whether --with-readline-inc or --without-readline-inc was given.
vapier7f19c022007-02-17 14:46:31 +000018951if test "${with_readline_inc+set}" = set; then
drh613a0fe2007-11-23 17:31:17 +000018952 withval="$with_readline_inc"
18953 with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000018954else
vapier7f19c022007-02-17 14:46:31 +000018955 with_readline_inc="auto"
drh613a0fe2007-11-23 17:31:17 +000018956fi;
vapier7f19c022007-02-17 14:46:31 +000018957 if test "x$with_readline_inc" = xauto; then
18958 if test "${ac_cv_header_readline_h+set}" = set; then
drh613a0fe2007-11-23 17:31:17 +000018959 echo "$as_me:$LINENO: checking for readline.h" >&5
18960echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +000018961if test "${ac_cv_header_readline_h+set}" = set; then
18962 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000018963fi
drh613a0fe2007-11-23 17:31:17 +000018964echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
18965echo "${ECHO_T}$ac_cv_header_readline_h" >&6
drh75897232000-05-29 14:26:00 +000018966else
a.rottmann84e63352003-03-24 09:42:16 +000018967 # Is the header compilable?
drh613a0fe2007-11-23 17:31:17 +000018968echo "$as_me:$LINENO: checking readline.h usability" >&5
18969echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000018970cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018971/* confdefs.h. */
18972_ACEOF
18973cat confdefs.h >>conftest.$ac_ext
18974cat >>conftest.$ac_ext <<_ACEOF
18975/* end confdefs.h. */
18976$ac_includes_default
drh75897232000-05-29 14:26:00 +000018977#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +000018978_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018979rm -f conftest.$ac_objext
drh613a0fe2007-11-23 17:31:17 +000018980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18981 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000018982 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000018983 grep -v '^ *+' conftest.er1 >conftest.err
18984 rm -f conftest.er1
18985 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000018986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +000018987 (exit $ac_status); } &&
18988 { ac_try='test -z "$ac_c_werror_flag"
18989 || test ! -s conftest.err'
18990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18991 (eval $ac_try) 2>&5
18992 ac_status=$?
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; } &&
18995 { ac_try='test -s conftest.$ac_objext'
18996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997 (eval $ac_try) 2>&5
18998 ac_status=$?
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +000019001 ac_header_compiler=yes
19002else
19003 echo "$as_me: failed program was:" >&5
19004sed 's/^/| /' conftest.$ac_ext >&5
19005
drh613a0fe2007-11-23 17:31:17 +000019006ac_header_compiler=no
a.rottmann84e63352003-03-24 09:42:16 +000019007fi
drh613a0fe2007-11-23 17:31:17 +000019008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19009echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19010echo "${ECHO_T}$ac_header_compiler" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019011
19012# Is the header present?
drh613a0fe2007-11-23 17:31:17 +000019013echo "$as_me:$LINENO: checking readline.h presence" >&5
19014echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019015cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019016/* confdefs.h. */
19017_ACEOF
19018cat confdefs.h >>conftest.$ac_ext
19019cat >>conftest.$ac_ext <<_ACEOF
19020/* end confdefs.h. */
19021#include <readline.h>
19022_ACEOF
drh613a0fe2007-11-23 17:31:17 +000019023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019025 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019026 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +000019027 rm -f conftest.er1
19028 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +000019030 (exit $ac_status); } >/dev/null; then
19031 if test -s conftest.err; then
19032 ac_cpp_err=$ac_c_preproc_warn_flag
19033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19034 else
19035 ac_cpp_err=
19036 fi
19037else
19038 ac_cpp_err=yes
19039fi
19040if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +000019041 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +000019042else
19043 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019044sed 's/^/| /' conftest.$ac_ext >&5
19045
19046 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +000019047fi
drh71eb93e2001-09-28 01:34:43 +000019048rm -f conftest.err conftest.$ac_ext
drh613a0fe2007-11-23 17:31:17 +000019049echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19050echo "${ECHO_T}$ac_header_preproc" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019051
19052# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +000019053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19054 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +000019055 { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
19056echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000019057 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
19058echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
19059 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +000019060 ;;
a.rottmann964dbb12004-02-26 19:47:42 +000019061 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +000019062 { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
19063echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000019064 { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
19065echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
19066 { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
19067echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
19068 { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
19069echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000019070 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
19071echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000019072 { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
19073echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
drh613a0fe2007-11-23 17:31:17 +000019074 (
19075 cat <<\_ASBOX
19076## ------------------------------------------ ##
19077## Report this to the AC_PACKAGE_NAME lists. ##
19078## ------------------------------------------ ##
19079_ASBOX
19080 ) |
19081 sed "s/^/$as_me: WARNING: /" >&2
a.rottmann84e63352003-03-24 09:42:16 +000019082 ;;
19083esac
drh613a0fe2007-11-23 17:31:17 +000019084echo "$as_me:$LINENO: checking for readline.h" >&5
19085echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019086if test "${ac_cv_header_readline_h+set}" = set; then
19087 echo $ECHO_N "(cached) $ECHO_C" >&6
19088else
19089 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +000019090fi
drh613a0fe2007-11-23 17:31:17 +000019091echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
19092echo "${ECHO_T}$ac_cv_header_readline_h" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019093
19094fi
drh71eb93e2001-09-28 01:34:43 +000019095if test $ac_cv_header_readline_h = yes; then
vapier7f19c022007-02-17 14:46:31 +000019096 found="yes"
19097else
drh75897232000-05-29 14:26:00 +000019098
vapier7f19c022007-02-17 14:46:31 +000019099 found="no"
19100 if test "$cross_compiling" != yes; then
19101 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
19102 for subdir in include include/readline; do
19103 as_ac_File=`echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
drh613a0fe2007-11-23 17:31:17 +000019104echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
19105echo $ECHO_N "checking for $dir/$subdir/readline.h... $ECHO_C" >&6
19106if eval "test \"\${$as_ac_File+set}\" = set"; then
drh71eb93e2001-09-28 01:34:43 +000019107 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000019108else
19109 test "$cross_compiling" = yes &&
19110 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
19111echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
19112 { (exit 1); exit 1; }; }
vapier7f19c022007-02-17 14:46:31 +000019113if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000019114 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000019115else
drh71eb93e2001-09-28 01:34:43 +000019116 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000019117fi
19118fi
drh613a0fe2007-11-23 17:31:17 +000019119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
19120echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
drh71eb93e2001-09-28 01:34:43 +000019121if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000019122 found=yes
drh75897232000-05-29 14:26:00 +000019123fi
19124
vapier7f19c022007-02-17 14:46:31 +000019125 if test "$found" = "yes"; then
19126 TARGET_READLINE_INC="-I$dir/$subdir"
19127 break
19128 fi
19129 done
19130 test "$found" = "yes" && break
19131 done
19132 fi
19133
19134fi
19135
19136
19137 else
19138 TARGET_READLINE_INC="$with_readline_inc"
19139 fi
19140
19141 if test x"$found" = xno; then
19142 TARGET_READLINE_LIBS=""
19143 TARGET_READLINE_INC=""
19144 TARGET_HAVE_READLINE=0
19145 else
19146 TARGET_HAVE_READLINE=1
19147 fi
19148fi
19149
19150
19151
19152
19153
19154##########
19155# Figure out what C libraries are required to compile programs
19156# that use "fdatasync()" function.
19157#
drh613a0fe2007-11-23 17:31:17 +000019158echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
19159echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
vapier7f19c022007-02-17 14:46:31 +000019160if test "${ac_cv_search_fdatasync+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +000019161 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000019162else
vapier7f19c022007-02-17 14:46:31 +000019163 ac_func_search_save_LIBS=$LIBS
drh613a0fe2007-11-23 17:31:17 +000019164ac_cv_search_fdatasync=no
vapier7f19c022007-02-17 14:46:31 +000019165cat >conftest.$ac_ext <<_ACEOF
19166/* confdefs.h. */
19167_ACEOF
19168cat confdefs.h >>conftest.$ac_ext
19169cat >>conftest.$ac_ext <<_ACEOF
19170/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000019171
drh613a0fe2007-11-23 17:31:17 +000019172/* Override any gcc2 internal prototype to avoid an error. */
vapier7f19c022007-02-17 14:46:31 +000019173#ifdef __cplusplus
19174extern "C"
19175#endif
drh613a0fe2007-11-23 17:31:17 +000019176/* We use char because int might match the return type of a gcc2
19177 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000019178char fdatasync ();
19179int
19180main ()
19181{
drh613a0fe2007-11-23 17:31:17 +000019182fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000019183 ;
19184 return 0;
19185}
19186_ACEOF
drh613a0fe2007-11-23 17:31:17 +000019187rm -f conftest.$ac_objext conftest$ac_exeext
19188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19189 (eval $ac_link) 2>conftest.er1
vapier7f19c022007-02-17 14:46:31 +000019190 ac_status=$?
19191 grep -v '^ *+' conftest.er1 >conftest.err
19192 rm -f conftest.er1
19193 cat conftest.err >&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +000019195 (exit $ac_status); } &&
19196 { ac_try='test -z "$ac_c_werror_flag"
19197 || test ! -s conftest.err'
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19200 ac_status=$?
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; } &&
19203 { ac_try='test -s conftest$ac_exeext'
19204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205 (eval $ac_try) 2>&5
19206 ac_status=$?
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; }; then
19209 ac_cv_search_fdatasync="none required"
drh75897232000-05-29 14:26:00 +000019210else
vapier7f19c022007-02-17 14:46:31 +000019211 echo "$as_me: failed program was:" >&5
19212sed 's/^/| /' conftest.$ac_ext >&5
19213
drh75897232000-05-29 14:26:00 +000019214fi
drh613a0fe2007-11-23 17:31:17 +000019215rm -f conftest.err conftest.$ac_objext \
19216 conftest$ac_exeext conftest.$ac_ext
19217if test "$ac_cv_search_fdatasync" = no; then
19218 for ac_lib in rt; do
19219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19220 cat >conftest.$ac_ext <<_ACEOF
19221/* confdefs.h. */
19222_ACEOF
19223cat confdefs.h >>conftest.$ac_ext
19224cat >>conftest.$ac_ext <<_ACEOF
19225/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000019226
drh613a0fe2007-11-23 17:31:17 +000019227/* Override any gcc2 internal prototype to avoid an error. */
19228#ifdef __cplusplus
19229extern "C"
19230#endif
19231/* We use char because int might match the return type of a gcc2
19232 builtin and then its argument prototype would still apply. */
19233char fdatasync ();
19234int
19235main ()
19236{
19237fdatasync ();
19238 ;
19239 return 0;
19240}
19241_ACEOF
19242rm -f conftest.$ac_objext conftest$ac_exeext
19243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19244 (eval $ac_link) 2>conftest.er1
19245 ac_status=$?
19246 grep -v '^ *+' conftest.er1 >conftest.err
19247 rm -f conftest.er1
19248 cat conftest.err >&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); } &&
19251 { ac_try='test -z "$ac_c_werror_flag"
19252 || test ! -s conftest.err'
19253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19254 (eval $ac_try) 2>&5
19255 ac_status=$?
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); }; } &&
19258 { ac_try='test -s conftest$ac_exeext'
19259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19260 (eval $ac_try) 2>&5
19261 ac_status=$?
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); }; }; then
19264 ac_cv_search_fdatasync="-l$ac_lib"
19265break
vapier7f19c022007-02-17 14:46:31 +000019266else
drh613a0fe2007-11-23 17:31:17 +000019267 echo "$as_me: failed program was:" >&5
19268sed 's/^/| /' conftest.$ac_ext >&5
19269
vapier7f19c022007-02-17 14:46:31 +000019270fi
drh613a0fe2007-11-23 17:31:17 +000019271rm -f conftest.err conftest.$ac_objext \
19272 conftest$ac_exeext conftest.$ac_ext
19273 done
19274fi
vapier7f19c022007-02-17 14:46:31 +000019275LIBS=$ac_func_search_save_LIBS
19276fi
drh613a0fe2007-11-23 17:31:17 +000019277echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
19278echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
19279if test "$ac_cv_search_fdatasync" != no; then
19280 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000019281
vapier7f19c022007-02-17 14:46:31 +000019282fi
19283
a.rottmann84e63352003-03-24 09:42:16 +000019284
drh75897232000-05-29 14:26:00 +000019285#########
tpoindex9d9f76c2005-01-03 21:28:56 +000019286# check for debug enabled
drh613a0fe2007-11-23 17:31:17 +000019287# Check whether --enable-debug or --disable-debug was given.
tpoindex9d9f76c2005-01-03 21:28:56 +000019288if test "${enable_debug+set}" = set; then
drh613a0fe2007-11-23 17:31:17 +000019289 enableval="$enable_debug"
19290 use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000019291else
19292 use_debug=no
drh613a0fe2007-11-23 17:31:17 +000019293fi;
tpoindex9d9f76c2005-01-03 21:28:56 +000019294if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000019295 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000019296else
19297 TARGET_DEBUG="-DNDEBUG"
19298fi
19299
19300
19301#########
drh2dfbbca2000-07-28 14:32:48 +000019302# Figure out whether or not we have a "usleep()" function.
19303#
drh613a0fe2007-11-23 17:31:17 +000019304echo "$as_me:$LINENO: checking for usleep" >&5
19305echo $ECHO_N "checking for usleep... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +000019306if test "${ac_cv_func_usleep+set}" = set; then
19307 echo $ECHO_N "(cached) $ECHO_C" >&6
drh2dfbbca2000-07-28 14:32:48 +000019308else
drh71eb93e2001-09-28 01:34:43 +000019309 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019310/* confdefs.h. */
19311_ACEOF
19312cat confdefs.h >>conftest.$ac_ext
19313cat >>conftest.$ac_ext <<_ACEOF
19314/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +000019315/* Define usleep to an innocuous variant, in case <limits.h> declares usleep.
19316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19317#define usleep innocuous_usleep
19318
drh2dfbbca2000-07-28 14:32:48 +000019319/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +000019320 which can conflict with char usleep (); below.
19321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19322 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +000019323
a.rottmann84e63352003-03-24 09:42:16 +000019324#ifdef __STDC__
19325# include <limits.h>
19326#else
19327# include <assert.h>
19328#endif
a.rottmann964dbb12004-02-26 19:47:42 +000019329
19330#undef usleep
19331
drh613a0fe2007-11-23 17:31:17 +000019332/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +000019333#ifdef __cplusplus
19334extern "C"
drh613a0fe2007-11-23 17:31:17 +000019335{
drh71eb93e2001-09-28 01:34:43 +000019336#endif
drh613a0fe2007-11-23 17:31:17 +000019337/* We use char because int might match the return type of a gcc2
19338 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000019339char usleep ();
drh2dfbbca2000-07-28 14:32:48 +000019340/* The GNU C library defines this for functions which it implements
19341 to always fail with ENOSYS. Some functions are actually named
19342 something starting with __ and the normal name is an alias. */
drh613a0fe2007-11-23 17:31:17 +000019343#if defined (__stub_usleep) || defined (__stub___usleep)
drh2dfbbca2000-07-28 14:32:48 +000019344choke me
drh613a0fe2007-11-23 17:31:17 +000019345#else
19346char (*f) () = usleep;
19347#endif
19348#ifdef __cplusplus
19349}
drh2dfbbca2000-07-28 14:32:48 +000019350#endif
19351
a.rottmann84e63352003-03-24 09:42:16 +000019352int
19353main ()
19354{
drh613a0fe2007-11-23 17:31:17 +000019355return f != usleep;
drh71eb93e2001-09-28 01:34:43 +000019356 ;
19357 return 0;
19358}
19359_ACEOF
19360rm -f conftest.$ac_objext conftest$ac_exeext
drh613a0fe2007-11-23 17:31:17 +000019361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19362 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019363 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019364 grep -v '^ *+' conftest.er1 >conftest.err
19365 rm -f conftest.er1
19366 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +000019368 (exit $ac_status); } &&
19369 { ac_try='test -z "$ac_c_werror_flag"
19370 || test ! -s conftest.err'
19371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19372 (eval $ac_try) 2>&5
19373 ac_status=$?
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); }; } &&
19376 { ac_try='test -s conftest$ac_exeext'
19377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19379 ac_status=$?
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +000019382 ac_cv_func_usleep=yes
drh2dfbbca2000-07-28 14:32:48 +000019383else
drh71eb93e2001-09-28 01:34:43 +000019384 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019385sed 's/^/| /' conftest.$ac_ext >&5
19386
drh613a0fe2007-11-23 17:31:17 +000019387ac_cv_func_usleep=no
drh2dfbbca2000-07-28 14:32:48 +000019388fi
drh613a0fe2007-11-23 17:31:17 +000019389rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +000019390 conftest$ac_exeext conftest.$ac_ext
drh2dfbbca2000-07-28 14:32:48 +000019391fi
drh613a0fe2007-11-23 17:31:17 +000019392echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5
19393echo "${ECHO_T}$ac_cv_func_usleep" >&6
drh71eb93e2001-09-28 01:34:43 +000019394if test $ac_cv_func_usleep = yes; then
drh2dfbbca2000-07-28 14:32:48 +000019395 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1"
drh2dfbbca2000-07-28 14:32:48 +000019396fi
19397
a.rottmann84e63352003-03-24 09:42:16 +000019398
drhaf6edf52005-10-04 18:38:49 +000019399#--------------------------------------------------------------------
19400# Redefine fdatasync as fsync on systems that lack fdatasync
19401#--------------------------------------------------------------------
19402
drh613a0fe2007-11-23 17:31:17 +000019403echo "$as_me:$LINENO: checking for fdatasync" >&5
19404echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
drhaf6edf52005-10-04 18:38:49 +000019405if test "${ac_cv_func_fdatasync+set}" = set; then
19406 echo $ECHO_N "(cached) $ECHO_C" >&6
19407else
19408 cat >conftest.$ac_ext <<_ACEOF
19409/* confdefs.h. */
19410_ACEOF
19411cat confdefs.h >>conftest.$ac_ext
19412cat >>conftest.$ac_ext <<_ACEOF
19413/* end confdefs.h. */
19414/* Define fdatasync to an innocuous variant, in case <limits.h> declares fdatasync.
19415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19416#define fdatasync innocuous_fdatasync
19417
19418/* System header to define __stub macros and hopefully few prototypes,
19419 which can conflict with char fdatasync (); below.
19420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19421 <limits.h> exists even on freestanding compilers. */
19422
19423#ifdef __STDC__
19424# include <limits.h>
19425#else
19426# include <assert.h>
19427#endif
19428
19429#undef fdatasync
19430
drh613a0fe2007-11-23 17:31:17 +000019431/* Override any gcc2 internal prototype to avoid an error. */
drhaf6edf52005-10-04 18:38:49 +000019432#ifdef __cplusplus
19433extern "C"
drh613a0fe2007-11-23 17:31:17 +000019434{
drhaf6edf52005-10-04 18:38:49 +000019435#endif
drh613a0fe2007-11-23 17:31:17 +000019436/* We use char because int might match the return type of a gcc2
19437 builtin and then its argument prototype would still apply. */
drhaf6edf52005-10-04 18:38:49 +000019438char fdatasync ();
19439/* The GNU C library defines this for functions which it implements
19440 to always fail with ENOSYS. Some functions are actually named
19441 something starting with __ and the normal name is an alias. */
drh613a0fe2007-11-23 17:31:17 +000019442#if defined (__stub_fdatasync) || defined (__stub___fdatasync)
drhaf6edf52005-10-04 18:38:49 +000019443choke me
drh613a0fe2007-11-23 17:31:17 +000019444#else
19445char (*f) () = fdatasync;
19446#endif
19447#ifdef __cplusplus
19448}
drhaf6edf52005-10-04 18:38:49 +000019449#endif
19450
19451int
19452main ()
19453{
drh613a0fe2007-11-23 17:31:17 +000019454return f != fdatasync;
drhaf6edf52005-10-04 18:38:49 +000019455 ;
19456 return 0;
19457}
19458_ACEOF
19459rm -f conftest.$ac_objext conftest$ac_exeext
drh613a0fe2007-11-23 17:31:17 +000019460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19461 (eval $ac_link) 2>conftest.er1
drhaf6edf52005-10-04 18:38:49 +000019462 ac_status=$?
19463 grep -v '^ *+' conftest.er1 >conftest.err
19464 rm -f conftest.er1
19465 cat conftest.err >&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh613a0fe2007-11-23 17:31:17 +000019467 (exit $ac_status); } &&
19468 { ac_try='test -z "$ac_c_werror_flag"
19469 || test ! -s conftest.err'
19470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471 (eval $ac_try) 2>&5
19472 ac_status=$?
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; } &&
19475 { ac_try='test -s conftest$ac_exeext'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19478 ac_status=$?
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
drhaf6edf52005-10-04 18:38:49 +000019481 ac_cv_func_fdatasync=yes
19482else
19483 echo "$as_me: failed program was:" >&5
19484sed 's/^/| /' conftest.$ac_ext >&5
19485
drh613a0fe2007-11-23 17:31:17 +000019486ac_cv_func_fdatasync=no
drhaf6edf52005-10-04 18:38:49 +000019487fi
drh613a0fe2007-11-23 17:31:17 +000019488rm -f conftest.err conftest.$ac_objext \
drhaf6edf52005-10-04 18:38:49 +000019489 conftest$ac_exeext conftest.$ac_ext
19490fi
drh613a0fe2007-11-23 17:31:17 +000019491echo "$as_me:$LINENO: result: $ac_cv_func_fdatasync" >&5
19492echo "${ECHO_T}$ac_cv_func_fdatasync" >&6
drhaf6edf52005-10-04 18:38:49 +000019493if test $ac_cv_func_fdatasync = yes; then
drhf2f23912005-10-05 10:29:36 +000019494 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_FDATASYNC=1"
drhaf6edf52005-10-04 18:38:49 +000019495fi
19496
19497
drh2dfbbca2000-07-28 14:32:48 +000019498#########
drh75897232000-05-29 14:26:00 +000019499# Generate the output files.
19500#
drh613a0fe2007-11-23 17:31:17 +000019501 ac_config_files="$ac_config_files Makefile sqlite3.pc"
drh71eb93e2001-09-28 01:34:43 +000019502cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000019503# This file is a shell script that caches the results of configure
19504# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000019505# scripts and configure runs, see configure's option --config-cache.
19506# It is not useful on other systems. If it contains results you don't
19507# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000019508#
drh71eb93e2001-09-28 01:34:43 +000019509# config.status only pays attention to the cache file if you give it
19510# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000019511#
a.rottmann84e63352003-03-24 09:42:16 +000019512# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000019513# loading this file, other *unset* `ac_cv_foo' will be assigned the
19514# following values.
19515
19516_ACEOF
19517
drh75897232000-05-29 14:26:00 +000019518# The following way of writing the cache mishandles newlines in values,
19519# but we know of no workaround that is simple, portable, and efficient.
drh613a0fe2007-11-23 17:31:17 +000019520# So, don't put newlines in cache variables' values.
drh75897232000-05-29 14:26:00 +000019521# Ultrix sh set writes to stderr and can't be redirected directly,
19522# and sets the high bit in the cache file unless we assign to the vars.
drh613a0fe2007-11-23 17:31:17 +000019523{
drh71eb93e2001-09-28 01:34:43 +000019524 (set) 2>&1 |
drh613a0fe2007-11-23 17:31:17 +000019525 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19526 *ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +000019527 # `set' does not quote correctly, so add quotes (double-quote
19528 # substitution turns \\\\ into \\, and sed turns \\ into \).
19529 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000019530 "s/'/'\\\\''/g;
19531 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh613a0fe2007-11-23 17:31:17 +000019532 ;;
drh71eb93e2001-09-28 01:34:43 +000019533 *)
19534 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh613a0fe2007-11-23 17:31:17 +000019535 sed -n \
19536 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
drh71eb93e2001-09-28 01:34:43 +000019537 ;;
drh613a0fe2007-11-23 17:31:17 +000019538 esac;
19539} |
drh71eb93e2001-09-28 01:34:43 +000019540 sed '
19541 t clear
drh613a0fe2007-11-23 17:31:17 +000019542 : clear
drh71eb93e2001-09-28 01:34:43 +000019543 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19544 t end
drh613a0fe2007-11-23 17:31:17 +000019545 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19546 : end' >>confcache
19547if diff $cache_file confcache >/dev/null 2>&1; then :; else
19548 if test -w $cache_file; then
19549 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
drh71eb93e2001-09-28 01:34:43 +000019550 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000019551 else
drh613a0fe2007-11-23 17:31:17 +000019552 echo "not updating unwritable cache $cache_file"
drh75897232000-05-29 14:26:00 +000019553 fi
19554fi
19555rm -f confcache
19556
drh75897232000-05-29 14:26:00 +000019557test "x$prefix" = xNONE && prefix=$ac_default_prefix
19558# Let make expand exec_prefix.
19559test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19560
drh613a0fe2007-11-23 17:31:17 +000019561# VPATH may cause trouble with some makes, so we remove $(srcdir),
19562# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19563# trailing colons and then remove the whole line if VPATH becomes empty
19564# (actually we leave an empty line to preserve line numbers).
19565if test "x$srcdir" = x.; then
19566 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19567s/:*\$(srcdir):*/:/;
19568s/:*\${srcdir}:*/:/;
19569s/:*@srcdir@:*/:/;
19570s/^\([^=]*=[ ]*\):*/\1/;
19571s/:*$//;
19572s/^[^=]*=[ ]*$//;
19573}'
19574fi
19575
drh75897232000-05-29 14:26:00 +000019576# Transform confdefs.h into DEFS.
19577# Protect against shell expansion while executing Makefile rules.
19578# Protect against Makefile macro expansion.
drh71eb93e2001-09-28 01:34:43 +000019579#
19580# If the first sed substitution is executed (which looks for macros that
drh613a0fe2007-11-23 17:31:17 +000019581# take arguments), then we branch to the quote section. Otherwise,
drh71eb93e2001-09-28 01:34:43 +000019582# look for a macro that doesn't take arguments.
drh613a0fe2007-11-23 17:31:17 +000019583cat >confdef2opt.sed <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000019584t clear
drh613a0fe2007-11-23 17:31:17 +000019585: clear
19586s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
drh71eb93e2001-09-28 01:34:43 +000019587t quote
drh613a0fe2007-11-23 17:31:17 +000019588s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
drh71eb93e2001-09-28 01:34:43 +000019589t quote
drh613a0fe2007-11-23 17:31:17 +000019590d
19591: quote
19592s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
19593s,\[,\\&,g
19594s,\],\\&,g
19595s,\$,$$,g
19596p
19597_ACEOF
19598# We use echo to avoid assuming a particular line-breaking character.
19599# The extra dot is to prevent the shell from consuming trailing
19600# line-breaks from the sub-command output. A line-break within
19601# single-quotes doesn't work because, if this script is created in a
19602# platform that uses two characters for line-breaks (e.g., DOS), tr
19603# would break.
19604ac_LF_and_DOT=`echo; echo .`
19605DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
19606rm -f confdef2opt.sed
drh75897232000-05-29 14:26:00 +000019607
a.rottmann84e63352003-03-24 09:42:16 +000019608
19609ac_libobjs=
19610ac_ltlibobjs=
19611for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19612 # 1. Remove the extension, and $U if already installed.
drh613a0fe2007-11-23 17:31:17 +000019613 ac_i=`echo "$ac_i" |
19614 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19615 # 2. Add them.
19616 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19617 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000019618done
19619LIBOBJS=$ac_libobjs
19620
19621LTLIBOBJS=$ac_ltlibobjs
19622
19623
19624
drh75897232000-05-29 14:26:00 +000019625: ${CONFIG_STATUS=./config.status}
drh71eb93e2001-09-28 01:34:43 +000019626ac_clean_files_save=$ac_clean_files
19627ac_clean_files="$ac_clean_files $CONFIG_STATUS"
a.rottmann84e63352003-03-24 09:42:16 +000019628{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
drh71eb93e2001-09-28 01:34:43 +000019629echo "$as_me: creating $CONFIG_STATUS" >&6;}
19630cat >$CONFIG_STATUS <<_ACEOF
19631#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000019632# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000019633# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000019634# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000019635# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000019636
drh71eb93e2001-09-28 01:34:43 +000019637debug=false
a.rottmann84e63352003-03-24 09:42:16 +000019638ac_cs_recheck=false
19639ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +000019640SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +000019641_ACEOF
drh75897232000-05-29 14:26:00 +000019642
drh71eb93e2001-09-28 01:34:43 +000019643cat >>$CONFIG_STATUS <<\_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019644## --------------------- ##
19645## M4sh Initialization. ##
19646## --------------------- ##
19647
drh613a0fe2007-11-23 17:31:17 +000019648# Be Bourne compatible
drh71eb93e2001-09-28 01:34:43 +000019649if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19650 emulate sh
19651 NULLCMD=:
a.rottmann84e63352003-03-24 09:42:16 +000019652 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19653 # is contrary to our usage. Disable this feature.
19654 alias -g '${1+"$@"}'='"$@"'
drh613a0fe2007-11-23 17:31:17 +000019655elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19656 set -o posix
19657fi
19658DUALCASE=1; export DUALCASE # for MKS sh
vapier7f19c022007-02-17 14:46:31 +000019659
drh613a0fe2007-11-23 17:31:17 +000019660# Support unset when possible.
19661if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19662 as_unset=unset
19663else
19664 as_unset=false
a.rottmann84e63352003-03-24 09:42:16 +000019665fi
19666
19667
drh613a0fe2007-11-23 17:31:17 +000019668# Work around bugs in pre-3.0 UWIN ksh.
19669$as_unset ENV MAIL MAILPATH
19670PS1='$ '
19671PS2='> '
19672PS4='+ '
19673
19674# NLS nuisances.
19675for as_var in \
19676 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19677 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19678 LC_TELEPHONE LC_TIME
19679do
19680 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19681 eval $as_var=C; export $as_var
19682 else
19683 $as_unset $as_var
19684 fi
19685done
19686
19687# Required to use basename.
19688if expr a : '\(a\)' >/dev/null 2>&1; then
19689 as_expr=expr
19690else
19691 as_expr=false
19692fi
19693
19694if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19695 as_basename=basename
19696else
19697 as_basename=false
19698fi
a.rottmann84e63352003-03-24 09:42:16 +000019699
19700
drh613a0fe2007-11-23 17:31:17 +000019701# Name of the executable.
19702as_me=`$as_basename "$0" ||
19703$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19704 X"$0" : 'X\(//\)$' \| \
19705 X"$0" : 'X\(/\)$' \| \
19706 . : '\(.\)' 2>/dev/null ||
19707echo X/"$0" |
19708 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19709 /^X\/\(\/\/\)$/{ s//\1/; q; }
19710 /^X\/\(\/\).*/{ s//\1/; q; }
19711 s/.*/./; q'`
19712
19713
19714# PATH needs CR, and LINENO needs CR and PATH.
a.rottmann84e63352003-03-24 09:42:16 +000019715# Avoid depending upon Character Ranges.
19716as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19717as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19718as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19719as_cr_digits='0123456789'
19720as_cr_alnum=$as_cr_Letters$as_cr_digits
19721
19722# The user is always right.
19723if test "${PATH_SEPARATOR+set}" != set; then
19724 echo "#! /bin/sh" >conf$$.sh
19725 echo "exit 0" >>conf$$.sh
19726 chmod +x conf$$.sh
19727 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19728 PATH_SEPARATOR=';'
19729 else
19730 PATH_SEPARATOR=:
19731 fi
19732 rm -f conf$$.sh
19733fi
19734
19735
drh613a0fe2007-11-23 17:31:17 +000019736 as_lineno_1=$LINENO
19737 as_lineno_2=$LINENO
19738 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19739 test "x$as_lineno_1" != "x$as_lineno_2" &&
19740 test "x$as_lineno_3" = "x$as_lineno_2" || {
19741 # Find who we are. Look in the path if we contain no path at all
19742 # relative or not.
19743 case $0 in
19744 *[\\/]* ) as_myself=$0 ;;
19745 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann84e63352003-03-24 09:42:16 +000019746for as_dir in $PATH
19747do
19748 IFS=$as_save_IFS
19749 test -z "$as_dir" && as_dir=.
19750 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19751done
19752
drh613a0fe2007-11-23 17:31:17 +000019753 ;;
19754 esac
19755 # We did not find ourselves, most probably we were run as `sh COMMAND'
19756 # in which case we are not to be found in the path.
19757 if test "x$as_myself" = x; then
19758 as_myself=$0
vapier7f19c022007-02-17 14:46:31 +000019759 fi
drh613a0fe2007-11-23 17:31:17 +000019760 if test ! -f "$as_myself"; then
19761 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19762echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19763 { (exit 1); exit 1; }; }
19764 fi
19765 case $CONFIG_SHELL in
19766 '')
19767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19768for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19769do
19770 IFS=$as_save_IFS
19771 test -z "$as_dir" && as_dir=.
19772 for as_base in sh bash ksh sh5; do
19773 case $as_dir in
19774 /*)
19775 if ("$as_dir/$as_base" -c '
a.rottmann84e63352003-03-24 09:42:16 +000019776 as_lineno_1=$LINENO
19777 as_lineno_2=$LINENO
drh613a0fe2007-11-23 17:31:17 +000019778 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
a.rottmann84e63352003-03-24 09:42:16 +000019779 test "x$as_lineno_1" != "x$as_lineno_2" &&
drh613a0fe2007-11-23 17:31:17 +000019780 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19781 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19782 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19783 CONFIG_SHELL=$as_dir/$as_base
19784 export CONFIG_SHELL
19785 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19786 fi;;
19787 esac
19788 done
19789done
19790;;
19791 esac
a.rottmann84e63352003-03-24 09:42:16 +000019792
19793 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19794 # uniformly replaced by the line number. The first 'sed' inserts a
drh613a0fe2007-11-23 17:31:17 +000019795 # line-number line before each line; the second 'sed' does the real
19796 # work. The second script uses 'N' to pair each line-number line
19797 # with the numbered line, and appends trailing '-' during
19798 # substitution so that $LINENO is not a special case at line end.
a.rottmann84e63352003-03-24 09:42:16 +000019799 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
drh613a0fe2007-11-23 17:31:17 +000019800 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19801 sed '=' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +000019802 sed '
19803 N
drh613a0fe2007-11-23 17:31:17 +000019804 s,$,-,
19805 : loop
19806 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
a.rottmann84e63352003-03-24 09:42:16 +000019807 t loop
drh613a0fe2007-11-23 17:31:17 +000019808 s,-$,,
19809 s,^['$as_cr_digits']*\n,,
a.rottmann84e63352003-03-24 09:42:16 +000019810 ' >$as_me.lineno &&
drh613a0fe2007-11-23 17:31:17 +000019811 chmod +x $as_me.lineno ||
19812 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19813echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000019814 { (exit 1); exit 1; }; }
19815
19816 # Don't try to exec as it changes $[0], causing all sort of problems
19817 # (the dirname of $[0] is not the place where we might find the
drh613a0fe2007-11-23 17:31:17 +000019818 # original and so on. Autoconf is especially sensible to this).
19819 . ./$as_me.lineno
a.rottmann84e63352003-03-24 09:42:16 +000019820 # Exit status is that of the last command.
19821 exit
19822}
19823
19824
drh613a0fe2007-11-23 17:31:17 +000019825case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19826 *c*,-n*) ECHO_N= ECHO_C='
19827' ECHO_T=' ' ;;
19828 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19829 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
a.rottmann84e63352003-03-24 09:42:16 +000019830esac
drh71eb93e2001-09-28 01:34:43 +000019831
drh613a0fe2007-11-23 17:31:17 +000019832if expr a : '\(a\)' >/dev/null 2>&1; then
drh71eb93e2001-09-28 01:34:43 +000019833 as_expr=expr
19834else
19835 as_expr=false
19836fi
19837
19838rm -f conf$$ conf$$.exe conf$$.file
19839echo >conf$$.file
19840if ln -s conf$$.file conf$$ 2>/dev/null; then
drh613a0fe2007-11-23 17:31:17 +000019841 # We could just check for DJGPP; but this test a) works b) is more generic
19842 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19843 if test -f conf$$.exe; then
19844 # Don't use ln at all; we don't have any links
drh71eb93e2001-09-28 01:34:43 +000019845 as_ln_s='cp -p'
drh613a0fe2007-11-23 17:31:17 +000019846 else
19847 as_ln_s='ln -s'
19848 fi
drh71eb93e2001-09-28 01:34:43 +000019849elif ln conf$$.file conf$$ 2>/dev/null; then
19850 as_ln_s=ln
19851else
19852 as_ln_s='cp -p'
19853fi
drh613a0fe2007-11-23 17:31:17 +000019854rm -f conf$$ conf$$.exe conf$$.file
drh71eb93e2001-09-28 01:34:43 +000019855
a.rottmann84e63352003-03-24 09:42:16 +000019856if mkdir -p . 2>/dev/null; then
19857 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000019858else
a.rottmann964dbb12004-02-26 19:47:42 +000019859 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000019860 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000019861fi
19862
drh613a0fe2007-11-23 17:31:17 +000019863as_executable_p="test -f"
a.rottmann84e63352003-03-24 09:42:16 +000019864
19865# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000019866as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000019867
19868# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000019869as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000019870
drh71eb93e2001-09-28 01:34:43 +000019871
drh613a0fe2007-11-23 17:31:17 +000019872# IFS
19873# We need space, tab and new line, in precisely that order.
19874as_nl='
19875'
19876IFS=" $as_nl"
19877
19878# CDPATH.
19879$as_unset CDPATH
19880
drh71eb93e2001-09-28 01:34:43 +000019881exec 6>&1
19882
drh613a0fe2007-11-23 17:31:17 +000019883# Open the log real soon, to keep \$[0] and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000019884# report actual input values of CONFIG_FILES etc. instead of their
drh613a0fe2007-11-23 17:31:17 +000019885# values after options handling. Logging --version etc. is OK.
19886exec 5>>config.log
19887{
19888 echo
19889 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19890## Running $as_me. ##
19891_ASBOX
19892} >&5
19893cat >&5 <<_CSEOF
19894
a.rottmann84e63352003-03-24 09:42:16 +000019895This file was extended by $as_me, which was
drh613a0fe2007-11-23 17:31:17 +000019896generated by GNU Autoconf 2.59. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000019897
19898 CONFIG_FILES = $CONFIG_FILES
19899 CONFIG_HEADERS = $CONFIG_HEADERS
19900 CONFIG_LINKS = $CONFIG_LINKS
19901 CONFIG_COMMANDS = $CONFIG_COMMANDS
19902 $ $0 $@
19903
drh613a0fe2007-11-23 17:31:17 +000019904_CSEOF
19905echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19906echo >&5
drh71eb93e2001-09-28 01:34:43 +000019907_ACEOF
19908
19909# Files that config.status was made for.
drh613a0fe2007-11-23 17:31:17 +000019910if test -n "$ac_config_files"; then
19911 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19912fi
drh71eb93e2001-09-28 01:34:43 +000019913
drh613a0fe2007-11-23 17:31:17 +000019914if test -n "$ac_config_headers"; then
19915 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19916fi
19917
19918if test -n "$ac_config_links"; then
19919 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19920fi
19921
19922if test -n "$ac_config_commands"; then
19923 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19924fi
drh71eb93e2001-09-28 01:34:43 +000019925
a.rottmann84e63352003-03-24 09:42:16 +000019926cat >>$CONFIG_STATUS <<\_ACEOF
drh613a0fe2007-11-23 17:31:17 +000019927
drh71eb93e2001-09-28 01:34:43 +000019928ac_cs_usage="\
19929\`$as_me' instantiates files from templates according to the
19930current configuration.
19931
19932Usage: $0 [OPTIONS] [FILE]...
19933
19934 -h, --help print this help, then exit
drh613a0fe2007-11-23 17:31:17 +000019935 -V, --version print version number, then exit
a.rottmann84e63352003-03-24 09:42:16 +000019936 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000019937 -d, --debug don't remove temporary files
19938 --recheck update $as_me by reconfiguring in the same conditions
19939 --file=FILE[:TEMPLATE]
a.rottmann964dbb12004-02-26 19:47:42 +000019940 instantiate the configuration file FILE
drh71eb93e2001-09-28 01:34:43 +000019941
19942Configuration files:
19943$config_files
19944
19945Report bugs to <bug-autoconf@gnu.org>."
vapier7f19c022007-02-17 14:46:31 +000019946_ACEOF
drh613a0fe2007-11-23 17:31:17 +000019947
a.rottmann84e63352003-03-24 09:42:16 +000019948cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000019949ac_cs_version="\\
19950config.status
drh613a0fe2007-11-23 17:31:17 +000019951configured by $0, generated by GNU Autoconf 2.59,
19952 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
drh75897232000-05-29 14:26:00 +000019953
drh613a0fe2007-11-23 17:31:17 +000019954Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000019955This config.status script is free software; the Free Software Foundation
19956gives unlimited permission to copy, distribute and modify it."
drh613a0fe2007-11-23 17:31:17 +000019957srcdir=$srcdir
19958INSTALL="$INSTALL"
a.rottmann84e63352003-03-24 09:42:16 +000019959_ACEOF
drh71eb93e2001-09-28 01:34:43 +000019960
a.rottmann84e63352003-03-24 09:42:16 +000019961cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000019962# If no file are specified by the user, then we need to provide default
19963# value. By we need to know if files were specified by the user.
19964ac_need_defaults=:
19965while test $# != 0
19966do
19967 case $1 in
19968 --*=*)
drh613a0fe2007-11-23 17:31:17 +000019969 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19970 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000019971 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000019972 ;;
drh613a0fe2007-11-23 17:31:17 +000019973 -*)
a.rottmann84e63352003-03-24 09:42:16 +000019974 ac_option=$1
19975 ac_optarg=$2
19976 ac_shift=shift
19977 ;;
drh613a0fe2007-11-23 17:31:17 +000019978 *) # This is not an option, so the user has probably given explicit
19979 # arguments.
19980 ac_option=$1
19981 ac_need_defaults=false;;
drh75897232000-05-29 14:26:00 +000019982 esac
19983
a.rottmann84e63352003-03-24 09:42:16 +000019984 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000019985 # Handling of the options.
drh613a0fe2007-11-23 17:31:17 +000019986_ACEOF
19987cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000019988 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000019989 ac_cs_recheck=: ;;
drh613a0fe2007-11-23 17:31:17 +000019990 --version | --vers* | -V )
19991 echo "$ac_cs_version"; exit 0 ;;
19992 --he | --h)
19993 # Conflict between --help and --header
19994 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19995Try \`$0 --help' for more information." >&5
19996echo "$as_me: error: ambiguous option: $1
19997Try \`$0 --help' for more information." >&2;}
19998 { (exit 1); exit 1; }; };;
19999 --help | --hel | -h )
20000 echo "$ac_cs_usage"; exit 0 ;;
20001 --debug | --d* | -d )
drh71eb93e2001-09-28 01:34:43 +000020002 debug=: ;;
20003 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000020004 $ac_shift
20005 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000020006 ac_need_defaults=false;;
drh613a0fe2007-11-23 17:31:17 +000020007 --header | --heade | --head | --hea )
20008 $ac_shift
20009 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20010 ac_need_defaults=false;;
a.rottmann84e63352003-03-24 09:42:16 +000020011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20012 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20013 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000020014
drh71eb93e2001-09-28 01:34:43 +000020015 # This is an error.
drh613a0fe2007-11-23 17:31:17 +000020016 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20017Try \`$0 --help' for more information." >&5
20018echo "$as_me: error: unrecognized option: $1
20019Try \`$0 --help' for more information." >&2;}
drh71eb93e2001-09-28 01:34:43 +000020020 { (exit 1); exit 1; }; } ;;
20021
drh613a0fe2007-11-23 17:31:17 +000020022 *) ac_config_targets="$ac_config_targets $1" ;;
drh71eb93e2001-09-28 01:34:43 +000020023
20024 esac
20025 shift
20026done
20027
a.rottmann84e63352003-03-24 09:42:16 +000020028ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000020029
a.rottmann84e63352003-03-24 09:42:16 +000020030if $ac_cs_silent; then
20031 exec 6>/dev/null
20032 ac_configure_extra_args="$ac_configure_extra_args --silent"
20033fi
drh71eb93e2001-09-28 01:34:43 +000020034
20035_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020036cat >>$CONFIG_STATUS <<_ACEOF
20037if \$ac_cs_recheck; then
drh613a0fe2007-11-23 17:31:17 +000020038 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20039 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
a.rottmann84e63352003-03-24 09:42:16 +000020040fi
drh71eb93e2001-09-28 01:34:43 +000020041
a.rottmann84e63352003-03-24 09:42:16 +000020042_ACEOF
20043
drh613a0fe2007-11-23 17:31:17 +000020044
20045
20046
a.rottmann84e63352003-03-24 09:42:16 +000020047
20048cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020049for ac_config_target in $ac_config_targets
20050do
drh613a0fe2007-11-23 17:31:17 +000020051 case "$ac_config_target" in
20052 # Handling of arguments.
20053 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20054 "sqlite3.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
a.rottmann84e63352003-03-24 09:42:16 +000020055 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
drh71eb93e2001-09-28 01:34:43 +000020056echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20057 { (exit 1); exit 1; }; };;
20058 esac
20059done
20060
20061# If the user did not use the arguments to specify the items to instantiate,
20062# then the envvar interface is used. Set only those that are not.
20063# We use the long form for the default assignment because of an extremely
20064# bizarre bug on SunOS 4.1.3.
20065if $ac_need_defaults; then
20066 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20067fi
20068
a.rottmann84e63352003-03-24 09:42:16 +000020069# Have a temporary directory for convenience. Make it in the build tree
drh613a0fe2007-11-23 17:31:17 +000020070# simply because there is no reason to put it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000020071# creating and moving files from /tmp can sometimes cause problems.
drh613a0fe2007-11-23 17:31:17 +000020072# Create a temporary directory, and hook for its removal unless debugging.
drh71eb93e2001-09-28 01:34:43 +000020073$debug ||
20074{
drh613a0fe2007-11-23 17:31:17 +000020075 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
drh71eb93e2001-09-28 01:34:43 +000020076 trap '{ (exit 1); exit 1; }' 1 2 13 15
20077}
drh613a0fe2007-11-23 17:31:17 +000020078
drh71eb93e2001-09-28 01:34:43 +000020079# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000020080
drh71eb93e2001-09-28 01:34:43 +000020081{
drh613a0fe2007-11-23 17:31:17 +000020082 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000020083 test -n "$tmp" && test -d "$tmp"
20084} ||
20085{
drh613a0fe2007-11-23 17:31:17 +000020086 tmp=./confstat$$-$RANDOM
20087 (umask 077 && mkdir $tmp)
drh71eb93e2001-09-28 01:34:43 +000020088} ||
20089{
a.rottmann84e63352003-03-24 09:42:16 +000020090 echo "$me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +000020091 { (exit 1); exit 1; }
20092}
20093
drh613a0fe2007-11-23 17:31:17 +000020094_ACEOF
20095
20096cat >>$CONFIG_STATUS <<_ACEOF
20097
drh71eb93e2001-09-28 01:34:43 +000020098#
drh613a0fe2007-11-23 17:31:17 +000020099# CONFIG_FILES section.
drh71eb93e2001-09-28 01:34:43 +000020100#
20101
20102# No need to generate the scripts if there are no CONFIG_FILES.
20103# This happens for instance when ./config.status config.h
drh613a0fe2007-11-23 17:31:17 +000020104if test -n "\$CONFIG_FILES"; then
20105 # Protect against being on the right side of a sed subst in config.status.
20106 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20107 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20108s,@SHELL@,$SHELL,;t t
20109s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20110s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20111s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20112s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20113s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20114s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20115s,@exec_prefix@,$exec_prefix,;t t
20116s,@prefix@,$prefix,;t t
20117s,@program_transform_name@,$program_transform_name,;t t
20118s,@bindir@,$bindir,;t t
20119s,@sbindir@,$sbindir,;t t
20120s,@libexecdir@,$libexecdir,;t t
20121s,@datadir@,$datadir,;t t
20122s,@sysconfdir@,$sysconfdir,;t t
20123s,@sharedstatedir@,$sharedstatedir,;t t
20124s,@localstatedir@,$localstatedir,;t t
20125s,@libdir@,$libdir,;t t
20126s,@includedir@,$includedir,;t t
20127s,@oldincludedir@,$oldincludedir,;t t
20128s,@infodir@,$infodir,;t t
20129s,@mandir@,$mandir,;t t
20130s,@build_alias@,$build_alias,;t t
20131s,@host_alias@,$host_alias,;t t
20132s,@target_alias@,$target_alias,;t t
20133s,@DEFS@,$DEFS,;t t
20134s,@ECHO_C@,$ECHO_C,;t t
20135s,@ECHO_N@,$ECHO_N,;t t
20136s,@ECHO_T@,$ECHO_T,;t t
20137s,@LIBS@,$LIBS,;t t
20138s,@build@,$build,;t t
20139s,@build_cpu@,$build_cpu,;t t
20140s,@build_vendor@,$build_vendor,;t t
20141s,@build_os@,$build_os,;t t
20142s,@host@,$host,;t t
20143s,@host_cpu@,$host_cpu,;t t
20144s,@host_vendor@,$host_vendor,;t t
20145s,@host_os@,$host_os,;t t
20146s,@CC@,$CC,;t t
20147s,@CFLAGS@,$CFLAGS,;t t
20148s,@LDFLAGS@,$LDFLAGS,;t t
20149s,@CPPFLAGS@,$CPPFLAGS,;t t
20150s,@ac_ct_CC@,$ac_ct_CC,;t t
20151s,@EXEEXT@,$EXEEXT,;t t
20152s,@OBJEXT@,$OBJEXT,;t t
20153s,@EGREP@,$EGREP,;t t
20154s,@LN_S@,$LN_S,;t t
20155s,@ECHO@,$ECHO,;t t
20156s,@AR@,$AR,;t t
20157s,@ac_ct_AR@,$ac_ct_AR,;t t
20158s,@RANLIB@,$RANLIB,;t t
20159s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20160s,@STRIP@,$STRIP,;t t
20161s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20162s,@CPP@,$CPP,;t t
20163s,@CXX@,$CXX,;t t
20164s,@CXXFLAGS@,$CXXFLAGS,;t t
20165s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20166s,@CXXCPP@,$CXXCPP,;t t
20167s,@F77@,$F77,;t t
20168s,@FFLAGS@,$FFLAGS,;t t
20169s,@ac_ct_F77@,$ac_ct_F77,;t t
20170s,@LIBTOOL@,$LIBTOOL,;t t
20171s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20172s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20173s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20174s,@AWK@,$AWK,;t t
20175s,@program_prefix@,$program_prefix,;t t
20176s,@VERSION@,$VERSION,;t t
20177s,@RELEASE@,$RELEASE,;t t
20178s,@VERSION_NUMBER@,$VERSION_NUMBER,;t t
20179s,@BUILD_CC@,$BUILD_CC,;t t
20180s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
20181s,@SQLITE_THREADSAFE@,$SQLITE_THREADSAFE,;t t
20182s,@TARGET_THREAD_LIB@,$TARGET_THREAD_LIB,;t t
20183s,@XTHREADCONNECT@,$XTHREADCONNECT,;t t
20184s,@THREADSOVERRIDELOCKS@,$THREADSOVERRIDELOCKS,;t t
20185s,@ALLOWRELEASE@,$ALLOWRELEASE,;t t
20186s,@TEMP_STORE@,$TEMP_STORE,;t t
20187s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
20188s,@OS_UNIX@,$OS_UNIX,;t t
20189s,@OS_WIN@,$OS_WIN,;t t
20190s,@OS_OS2@,$OS_OS2,;t t
20191s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t
20192s,@TCL_VERSION@,$TCL_VERSION,;t t
20193s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
20194s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
20195s,@TCL_LIBS@,$TCL_LIBS,;t t
20196s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
20197s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
20198s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
20199s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
20200s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
20201s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
20202s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
20203s,@HAVE_TCL@,$HAVE_TCL,;t t
20204s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t
20205s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t
20206s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t
20207s,@TARGET_DEBUG@,$TARGET_DEBUG,;t t
20208s,@LIBOBJS@,$LIBOBJS,;t t
20209s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20210CEOF
drh71eb93e2001-09-28 01:34:43 +000020211
a.rottmann84e63352003-03-24 09:42:16 +000020212_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020213
drh613a0fe2007-11-23 17:31:17 +000020214 cat >>$CONFIG_STATUS <<\_ACEOF
20215 # Split the substitutions into bite-sized pieces for seds with
20216 # small command number limits, like on Digital OSF/1 and HP-UX.
20217 ac_max_sed_lines=48
20218 ac_sed_frag=1 # Number of current file.
20219 ac_beg=1 # First line for current file.
20220 ac_end=$ac_max_sed_lines # Line after last line for current file.
20221 ac_more_lines=:
20222 ac_sed_cmds=
20223 while $ac_more_lines; do
20224 if test $ac_beg -gt 1; then
20225 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20226 else
20227 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20228 fi
20229 if test ! -s $tmp/subs.frag; then
20230 ac_more_lines=false
20231 else
20232 # The purpose of the label and of the branching condition is to
20233 # speed up the sed processing (if there are no `@' at all, there
20234 # is no need to browse any of the substitutions).
20235 # These are the two extra sed commands mentioned above.
20236 (echo ':t
20237 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20238 if test -z "$ac_sed_cmds"; then
20239 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20240 else
20241 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20242 fi
20243 ac_sed_frag=`expr $ac_sed_frag + 1`
20244 ac_beg=$ac_end
20245 ac_end=`expr $ac_end + $ac_max_sed_lines`
20246 fi
20247 done
20248 if test -z "$ac_sed_cmds"; then
20249 ac_sed_cmds=cat
drh71eb93e2001-09-28 01:34:43 +000020250 fi
20251fi # test -n "$CONFIG_FILES"
20252
drh613a0fe2007-11-23 17:31:17 +000020253_ACEOF
20254cat >>$CONFIG_STATUS <<\_ACEOF
20255for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20256 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20257 case $ac_file in
20258 - | *:- | *:-:* ) # input from stdin
20259 cat >$tmp/stdin
20260 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20261 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20262 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20263 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20264 * ) ac_file_in=$ac_file.in ;;
drh71eb93e2001-09-28 01:34:43 +000020265 esac
20266
drh613a0fe2007-11-23 17:31:17 +000020267 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20268 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +000020269$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000020270 X"$ac_file" : 'X\(//\)[^/]' \| \
20271 X"$ac_file" : 'X\(//\)$' \| \
drh613a0fe2007-11-23 17:31:17 +000020272 X"$ac_file" : 'X\(/\)' \| \
20273 . : '\(.\)' 2>/dev/null ||
drh71eb93e2001-09-28 01:34:43 +000020274echo X"$ac_file" |
drh613a0fe2007-11-23 17:31:17 +000020275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20276 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20277 /^X\(\/\/\)$/{ s//\1/; q; }
20278 /^X\(\/\).*/{ s//\1/; q; }
20279 s/.*/./; q'`
20280 { if $as_mkdir_p; then
20281 mkdir -p "$ac_dir"
20282 else
20283 as_dir="$ac_dir"
a.rottmann84e63352003-03-24 09:42:16 +000020284 as_dirs=
drh613a0fe2007-11-23 17:31:17 +000020285 while test ! -d "$as_dir"; do
20286 as_dirs="$as_dir $as_dirs"
20287 as_dir=`(dirname "$as_dir") 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +000020288$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000020289 X"$as_dir" : 'X\(//\)[^/]' \| \
20290 X"$as_dir" : 'X\(//\)$' \| \
drh613a0fe2007-11-23 17:31:17 +000020291 X"$as_dir" : 'X\(/\)' \| \
20292 . : '\(.\)' 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +000020293echo X"$as_dir" |
drh613a0fe2007-11-23 17:31:17 +000020294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20295 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20296 /^X\(\/\/\)$/{ s//\1/; q; }
20297 /^X\(\/\).*/{ s//\1/; q; }
20298 s/.*/./; q'`
a.rottmann84e63352003-03-24 09:42:16 +000020299 done
drh613a0fe2007-11-23 17:31:17 +000020300 test ! -n "$as_dirs" || mkdir $as_dirs
20301 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20302echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000020303 { (exit 1); exit 1; }; }; }
drh613a0fe2007-11-23 17:31:17 +000020304
a.rottmann84e63352003-03-24 09:42:16 +000020305 ac_builddir=.
20306
drh613a0fe2007-11-23 17:31:17 +000020307if test "$ac_dir" != .; then
a.rottmann84e63352003-03-24 09:42:16 +000020308 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
drh613a0fe2007-11-23 17:31:17 +000020309 # A "../" for each directory in $ac_dir_suffix.
20310 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20311else
20312 ac_dir_suffix= ac_top_builddir=
20313fi
a.rottmann84e63352003-03-24 09:42:16 +000020314
20315case $srcdir in
drh613a0fe2007-11-23 17:31:17 +000020316 .) # No --srcdir option. We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000020317 ac_srcdir=.
drh613a0fe2007-11-23 17:31:17 +000020318 if test -z "$ac_top_builddir"; then
20319 ac_top_srcdir=.
20320 else
20321 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20322 fi ;;
20323 [\\/]* | ?:[\\/]* ) # Absolute path.
a.rottmann84e63352003-03-24 09:42:16 +000020324 ac_srcdir=$srcdir$ac_dir_suffix;
drh613a0fe2007-11-23 17:31:17 +000020325 ac_top_srcdir=$srcdir ;;
20326 *) # Relative path.
20327 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20328 ac_top_srcdir=$ac_top_builddir$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000020329esac
a.rottmann964dbb12004-02-26 19:47:42 +000020330
drh613a0fe2007-11-23 17:31:17 +000020331# Do not use `cd foo && pwd` to compute absolute paths, because
20332# the directories may not exist.
20333case `pwd` in
20334.) ac_abs_builddir="$ac_dir";;
20335*)
20336 case "$ac_dir" in
20337 .) ac_abs_builddir=`pwd`;;
20338 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20339 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20340 esac;;
20341esac
20342case $ac_abs_builddir in
20343.) ac_abs_top_builddir=${ac_top_builddir}.;;
20344*)
20345 case ${ac_top_builddir}. in
20346 .) ac_abs_top_builddir=$ac_abs_builddir;;
20347 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20348 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20349 esac;;
20350esac
20351case $ac_abs_builddir in
20352.) ac_abs_srcdir=$ac_srcdir;;
20353*)
20354 case $ac_srcdir in
20355 .) ac_abs_srcdir=$ac_abs_builddir;;
20356 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20357 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20358 esac;;
20359esac
20360case $ac_abs_builddir in
20361.) ac_abs_top_srcdir=$ac_top_srcdir;;
20362*)
20363 case $ac_top_srcdir in
20364 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20365 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20366 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20367 esac;;
20368esac
a.rottmann84e63352003-03-24 09:42:16 +000020369
drh75897232000-05-29 14:26:00 +000020370
drh71eb93e2001-09-28 01:34:43 +000020371 case $INSTALL in
20372 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh613a0fe2007-11-23 17:31:17 +000020373 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
drh75897232000-05-29 14:26:00 +000020374 esac
vapier7f19c022007-02-17 14:46:31 +000020375
drh613a0fe2007-11-23 17:31:17 +000020376 if test x"$ac_file" != x-; then
20377 { echo "$as_me:$LINENO: creating $ac_file" >&5
20378echo "$as_me: creating $ac_file" >&6;}
20379 rm -f "$ac_file"
20380 fi
20381 # Let's still pretend it is `configure' which instantiates (i.e., don't
20382 # use $as_me), people would be surprised to read:
20383 # /* config.h. Generated by config.status. */
20384 if test x"$ac_file" = x-; then
20385 configure_input=
20386 else
20387 configure_input="$ac_file. "
20388 fi
20389 configure_input=$configure_input"Generated from `echo $ac_file_in |
20390 sed 's,.*/,,'` by configure."
vapier7f19c022007-02-17 14:46:31 +000020391
drh613a0fe2007-11-23 17:31:17 +000020392 # First look for the input files in the build tree, otherwise in the
20393 # src tree.
20394 ac_file_inputs=`IFS=:
20395 for f in $ac_file_in; do
20396 case $f in
20397 -) echo $tmp/stdin ;;
20398 [\\/$]*)
20399 # Absolute (can't be DOS-style, as IFS=:)
20400 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20401echo "$as_me: error: cannot find input file: $f" >&2;}
20402 { (exit 1); exit 1; }; }
20403 echo "$f";;
20404 *) # Relative
20405 if test -f "$f"; then
20406 # Build tree
20407 echo "$f"
20408 elif test -f "$srcdir/$f"; then
20409 # Source tree
20410 echo "$srcdir/$f"
20411 else
20412 # /dev/null tree
20413 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20414echo "$as_me: error: cannot find input file: $f" >&2;}
20415 { (exit 1); exit 1; }; }
20416 fi;;
20417 esac
20418 done` || { (exit 1); exit 1; }
vapier7f19c022007-02-17 14:46:31 +000020419_ACEOF
20420cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020421 sed "$ac_vpsub
20422$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000020423_ACEOF
20424cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020425:t
20426/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh613a0fe2007-11-23 17:31:17 +000020427s,@configure_input@,$configure_input,;t t
20428s,@srcdir@,$ac_srcdir,;t t
20429s,@abs_srcdir@,$ac_abs_srcdir,;t t
20430s,@top_srcdir@,$ac_top_srcdir,;t t
20431s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20432s,@builddir@,$ac_builddir,;t t
20433s,@abs_builddir@,$ac_abs_builddir,;t t
20434s,@top_builddir@,$ac_top_builddir,;t t
20435s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20436s,@INSTALL@,$ac_INSTALL,;t t
20437" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20438 rm -f $tmp/stdin
20439 if test x"$ac_file" != x-; then
20440 mv $tmp/out $ac_file
20441 else
20442 cat $tmp/out
20443 rm -f $tmp/out
20444 fi
drh75897232000-05-29 14:26:00 +000020445
drh613a0fe2007-11-23 17:31:17 +000020446done
20447_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020448
drh613a0fe2007-11-23 17:31:17 +000020449cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020450
20451{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000020452_ACEOF
drh75897232000-05-29 14:26:00 +000020453chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000020454ac_clean_files=$ac_clean_files_save
20455
a.rottmann84e63352003-03-24 09:42:16 +000020456
drh71eb93e2001-09-28 01:34:43 +000020457# configure is writing to config.log, and then calls config.status.
20458# config.status does its own redirection, appending to config.log.
20459# Unfortunately, on DOS this fails, as config.log is still kept open
20460# by configure, so config.status won't be able to write to it; its
20461# output is simply discarded. So we exec the FD to /dev/null,
20462# effectively closing config.log, so it can be properly (re)opened and
20463# appended to by config.status. When coming back to configure, we
20464# need to make the FD available again.
20465if test "$no_create" != yes; then
20466 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000020467 ac_config_status_args=
20468 test "$silent" = yes &&
20469 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000020470 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000020471 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000020472 exec 5>>config.log
20473 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20474 # would make configure fail if this is the last instruction.
20475 $ac_cs_success || { (exit 1); exit 1; }
20476fi
drh613a0fe2007-11-23 17:31:17 +000020477